Merge branch 'upstream' into dfsg-orig
[debian/tar] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for GNU tar 1.23.
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, 2007, 2008 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   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21   # is contrary to our usage.  Disable this feature.
22   alias -g '${1+"$@"}'='"$@"'
23   setopt NO_GLOB_SUBST
24 else
25   case `(set -o) 2>/dev/null` in
26   *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85   as_unset=unset
86 else
87   as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order.  Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" ""        $as_nl"
97
98 # Find who we are.  Look in the path if we contain no directory separator.
99 case $0 in
100   *[\\/]* ) as_myself=$0 ;;
101   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104   IFS=$as_save_IFS
105   test -z "$as_dir" && as_dir=.
106   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110      ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115   as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119   { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138    test "X`expr 00001 : '.*\(...\)'`" = X001; then
139   as_expr=expr
140 else
141   as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145   as_basename=basename
146 else
147   as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154          X"$0" : 'X\(//\)$' \| \
155          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157     sed '/^.*\/\([^/][^/]*\)\/*$/{
158             s//\1/
159             q
160           }
161           /^X\/\(\/\/\)$/{
162             s//\1/
163             q
164           }
165           /^X\/\(\/\).*/{
166             s//\1/
167             q
168           }
169           s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176   if (eval ":") 2>/dev/null; then
177   as_have_required=yes
178 else
179   as_have_required=no
180 fi
181
182   if test $as_have_required = yes &&     (eval ":
183 (as_func_return () {
184   (exit \$1)
185 }
186 as_func_success () {
187   as_func_return 0
188 }
189 as_func_failure () {
190   as_func_return 1
191 }
192 as_func_ret_success () {
193   return 0
194 }
195 as_func_ret_failure () {
196   return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201   :
202 else
203   exitcode=1
204   echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208   exitcode=1
209   echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213   :
214 else
215   exitcode=1
216   echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220   exitcode=1
221   echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225   :
226 else
227   exitcode=1
228   echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234   as_lineno_1=\$LINENO
235   as_lineno_2=\$LINENO
236   test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237   test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239   :
240 else
241   as_candidate_shells=
242     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245   IFS=$as_save_IFS
246   test -z "$as_dir" && as_dir=.
247   case $as_dir in
248          /*)
249            for as_base in sh bash ksh sh5; do
250              as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251            done;;
252        esac
253 done
254 IFS=$as_save_IFS
255
256
257       for as_shell in $as_candidate_shells $SHELL; do
258          # Try only shells that exist, to save several forks.
259          if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260                 { ("$as_shell") 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262   emulate sh
263   NULLCMD=:
264   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
265   # is contrary to our usage.  Disable this feature.
266   alias -g '${1+"$@"}'='"$@"'
267   setopt NO_GLOB_SUBST
268 else
269   case `(set -o) 2>/dev/null` in
270   *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 _ASEOF
278 }; then
279   CONFIG_SHELL=$as_shell
280                as_have_required=yes
281                if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283   emulate sh
284   NULLCMD=:
285   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286   # is contrary to our usage.  Disable this feature.
287   alias -g '${1+"$@"}'='"$@"'
288   setopt NO_GLOB_SUBST
289 else
290   case `(set -o) 2>/dev/null` in
291   *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299   (exit $1)
300 }
301 as_func_success () {
302   as_func_return 0
303 }
304 as_func_failure () {
305   as_func_return 1
306 }
307 as_func_ret_success () {
308   return 0
309 }
310 as_func_ret_failure () {
311   return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316   :
317 else
318   exitcode=1
319   echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323   exitcode=1
324   echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328   :
329 else
330   exitcode=1
331   echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335   exitcode=1
336   echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340   :
341 else
342   exitcode=1
343   echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349   as_lineno_1=$LINENO
350   as_lineno_2=$LINENO
351   test "x$as_lineno_1" != "x$as_lineno_2" &&
352   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356   break
357 fi
358
359 fi
360
361       done
362
363       if test "x$CONFIG_SHELL" != x; then
364   for as_var in BASH_ENV ENV
365         do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366         done
367         export CONFIG_SHELL
368         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372     if test $as_have_required = no; then
373   echo This script requires a shell more modern than all the
374       echo shells that I found on your system.  Please install a
375       echo modern shell, or manually run the script under such a
376       echo shell if you do have one.
377       { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388   (exit \$1)
389 }
390 as_func_success () {
391   as_func_return 0
392 }
393 as_func_failure () {
394   as_func_return 1
395 }
396 as_func_ret_success () {
397   return 0
398 }
399 as_func_ret_failure () {
400   return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405   :
406 else
407   exitcode=1
408   echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412   exitcode=1
413   echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417   :
418 else
419   exitcode=1
420   echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424   exitcode=1
425   echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429   :
430 else
431   exitcode=1
432   echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436   echo No shell found that supports shell functions.
437   echo Please tell bug-autoconf@gnu.org about your system,
438   echo including any error possibly output before this message.
439   echo This can help us improve future autoconf versions.
440   echo Configuration will now proceed without shell functions.
441 }
442
443
444
445   as_lineno_1=$LINENO
446   as_lineno_2=$LINENO
447   test "x$as_lineno_1" != "x$as_lineno_2" &&
448   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451   # uniformly replaced by the line number.  The first 'sed' inserts a
452   # line-number line after each line using $LINENO; the second 'sed'
453   # does the real work.  The second script uses 'N' to pair each
454   # line-number line with the line containing $LINENO, and appends
455   # trailing '-' during substitution so that $LINENO is not a special
456   # case at line end.
457   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458   # scripts with optimization help from Paolo Bonzini.  Blame Lee
459   # E. McMahon (1931-1989) for sed's syntax.  :-)
460   sed -n '
461     p
462     /[$]LINENO/=
463   ' <$as_myself |
464     sed '
465       s/[$]LINENO.*/&-/
466       t lineno
467       b
468       :lineno
469       N
470       :loop
471       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472       t loop
473       s/-\n.*//
474     ' >$as_me.lineno &&
475   chmod +x "$as_me.lineno" ||
476     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477    { (exit 1); exit 1; }; }
478
479   # Don't try to exec as it changes $[0], causing all sort of problems
480   # (the dirname of $[0] is not the place where we might find the
481   # original and so on.  Autoconf is especially sensitive to this).
482   . "./$as_me.lineno"
483   # Exit status is that of the last command.
484   exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489   as_dirname=dirname
490 else
491   as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497   case `echo 'x\c'` in
498   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
499   *)   ECHO_C='\c';;
500   esac;;
501 *)
502   ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505    test "X`expr 00001 : '.*\(...\)'`" = X001; then
506   as_expr=expr
507 else
508   as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513   rm -f conf$$.dir/conf$$.file
514 else
515   rm -f conf$$.dir
516   mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519   if ln -s conf$$.file conf$$ 2>/dev/null; then
520     as_ln_s='ln -s'
521     # ... but there are two gotchas:
522     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524     # In both cases, we have to default to `cp -p'.
525     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526       as_ln_s='cp -p'
527   elif ln conf$$.file conf$$ 2>/dev/null; then
528     as_ln_s=ln
529   else
530     as_ln_s='cp -p'
531   fi
532 else
533   as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539   as_mkdir_p=:
540 else
541   test -d ./-p && rmdir ./-p
542   as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546   as_test_x='test -x'
547 else
548   if ls -dL / >/dev/null 2>&1; then
549     as_ls_L_option=L
550   else
551     as_ls_L_option=
552   fi
553   as_test_x='
554     eval sh -c '\''
555       if test -d "$1"; then
556         test -d "$1/.";
557       else
558         case $1 in
559         -*)set "./$1";;
560         esac;
561         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562         ???[sx]*):;;*)false;;esac;fi
563     '\'' sh
564   '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576 exec 7<&0 </dev/null 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596 # Identity of this package.
597 PACKAGE_NAME='GNU tar'
598 PACKAGE_TARNAME='tar'
599 PACKAGE_VERSION='1.23'
600 PACKAGE_STRING='GNU tar 1.23'
601 PACKAGE_BUGREPORT='bug-tar@gnu.org'
602
603 ac_unique_file="src/tar.c"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stdio.h>
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
609 #endif
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
612 #endif
613 #ifdef STDC_HEADERS
614 # include <stdlib.h>
615 # include <stddef.h>
616 #else
617 # ifdef HAVE_STDLIB_H
618 #  include <stdlib.h>
619 # endif
620 #endif
621 #ifdef HAVE_STRING_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 #  include <memory.h>
624 # endif
625 # include <string.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_header_list=
641 ac_func_list=
642 gl_fnmatch_required=POSIX
643 gl_getopt_required=POSIX
644 gl_getopt_required=POSIX
645 gt_needs=
646 ac_subst_vars='gltests_LTLIBOBJS
647 gltests_LIBOBJS
648 gl_LTLIBOBJS
649 gl_LIBOBJS
650 am__EXEEXT_FALSE
651 am__EXEEXT_TRUE
652 LTLIBOBJS
653 BACKUP_SED_COND
654 BACKUP_SBIN_SCRIPTS
655 BACKUP_LIBEXEC_SCRIPTS
656 AUTOM4TE
657 POSUB
658 INTLLIBS
659 INTL_MACOSX_LIBS
660 XGETTEXT_EXTRA_OPTIONS
661 MSGMERGE
662 XGETTEXT_015
663 XGETTEXT
664 GMSGFMT_015
665 MSGFMT_015
666 GMSGFMT
667 MSGFMT
668 GETTEXT_MACRO_VERSION
669 USE_NLS
670 LTLIBICONV
671 LIBICONV
672 DEFAULT_QUOTING_STYLE
673 DEFAULT_BLOCKING
674 DEFAULT_ARCHIVE
675 DEFAULT_ARCHIVE_FORMAT
676 LIBOBJS
677 DEFAULT_RMT_COMMAND
678 DEFAULT_RMT_DIR
679 PU_RMT_PROG
680 LIB_SETSOCKOPT
681 LIBGNU_LTLIBDEPS
682 LIBGNU_LIBDEPS
683 REPLACE_ISWCNTRL
684 HAVE_WCTYPE_H
685 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
686 NEXT_WCTYPE_H
687 HAVE_ISWCNTRL
688 HAVE_WINT_T
689 HAVE_WCHAR_H
690 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
691 NEXT_WCHAR_H
692 HAVE_UNISTD_H
693 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
694 NEXT_UNISTD_H
695 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
696 TIME_H_DEFINES_STRUCT_TIMESPEC
697 NEXT_AS_FIRST_DIRECTIVE_TIME_H
698 NEXT_TIME_H
699 SYSEXITS_H
700 HAVE_SYSEXITS_H
701 NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H
702 NEXT_SYSEXITS_H
703 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
704 NEXT_SYS_STAT_H
705 NEXT_AS_FIRST_DIRECTIVE_STRINGS_H
706 NEXT_STRINGS_H
707 NEXT_AS_FIRST_DIRECTIVE_STRING_H
708 NEXT_STRING_H
709 HAVE_DECL_STRNCASECMP
710 HAVE_STRCASECMP
711 HAVE_RANDOM_H
712 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
713 NEXT_STDLIB_H
714 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
715 NEXT_STDIO_H
716 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
717 NEXT_STDDEF_H
718 STDDEF_H
719 HAVE_WCHAR_T
720 REPLACE_NULL
721 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
722 NEXT_STDARG_H
723 STDARG_H
724 REPLACE_TIMEGM
725 REPLACE_STRPTIME
726 REPLACE_NANOSLEEP
727 REPLACE_MKTIME
728 REPLACE_LOCALTIME_R
729 GNULIB_TIMEGM
730 GNULIB_STRPTIME
731 GNULIB_NANOSLEEP
732 GNULIB_MKTIME
733 UNDEFINE_STRTOK_R
734 REPLACE_STRTOK_R
735 REPLACE_STRSIGNAL
736 REPLACE_STRNDUP
737 REPLACE_STRERROR
738 REPLACE_STRCASESTR
739 REPLACE_STRSTR
740 REPLACE_STRDUP
741 REPLACE_MEMMEM
742 REPLACE_MEMCHR
743 HAVE_STRVERSCMP
744 HAVE_DECL_STRSIGNAL
745 HAVE_DECL_STRERROR
746 HAVE_DECL_STRTOK_R
747 HAVE_STRCASESTR
748 HAVE_STRSEP
749 HAVE_STRPBRK
750 HAVE_DECL_STRNLEN
751 HAVE_DECL_STRNDUP
752 HAVE_DECL_STRDUP
753 HAVE_STRCHRNUL
754 HAVE_STPNCPY
755 HAVE_STPCPY
756 HAVE_RAWMEMCHR
757 HAVE_DECL_MEMRCHR
758 HAVE_MEMPCPY
759 HAVE_DECL_MEMMEM
760 HAVE_MBSLEN
761 GNULIB_STRVERSCMP
762 GNULIB_STRSIGNAL
763 GNULIB_STRERROR
764 GNULIB_MBSTOK_R
765 GNULIB_MBSSEP
766 GNULIB_MBSSPN
767 GNULIB_MBSPBRK
768 GNULIB_MBSCSPN
769 GNULIB_MBSCASESTR
770 GNULIB_MBSPCASECMP
771 GNULIB_MBSNCASECMP
772 GNULIB_MBSCASECMP
773 GNULIB_MBSSTR
774 GNULIB_MBSRCHR
775 GNULIB_MBSCHR
776 GNULIB_MBSNLEN
777 GNULIB_MBSLEN
778 GNULIB_STRTOK_R
779 GNULIB_STRCASESTR
780 GNULIB_STRSTR
781 GNULIB_STRSEP
782 GNULIB_STRPBRK
783 GNULIB_STRNLEN
784 GNULIB_STRNDUP
785 GNULIB_STRDUP
786 GNULIB_STRCHRNUL
787 GNULIB_STPNCPY
788 GNULIB_STPCPY
789 GNULIB_RAWMEMCHR
790 GNULIB_MEMRCHR
791 GNULIB_MEMPCPY
792 GNULIB_MEMMEM
793 GNULIB_MEMCHR
794 LOCALE_FR_UTF8
795 LOCALE_ZH_CN
796 LOCALE_JA
797 LOCALCHARSET_TESTS_ENVIRONMENT
798 GLIBC21
799 HAVE_LANGINFO_ERA
800 HAVE_LANGINFO_CODESET
801 HAVE_LANGINFO_H
802 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
803 NEXT_LANGINFO_H
804 REPLACE_NL_LANGINFO
805 HAVE_NL_LANGINFO
806 GNULIB_NL_LANGINFO
807 UINT64_MAX_EQ_ULONG_MAX
808 UINT32_MAX_LT_UINTMAX_MAX
809 INT64_MAX_EQ_LONG_MAX
810 INT32_MAX_LT_INTMAX_MAX
811 PRIPTR_PREFIX
812 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
813 NEXT_INTTYPES_H
814 HAVE_DECL_STRTOUMAX
815 HAVE_DECL_STRTOIMAX
816 HAVE_DECL_IMAXDIV
817 HAVE_DECL_IMAXABS
818 GNULIB_STRTOUMAX
819 GNULIB_STRTOIMAX
820 GNULIB_IMAXDIV
821 GNULIB_IMAXABS
822 PRI_MACROS_BROKEN
823 STDINT_H
824 WINT_T_SUFFIX
825 WCHAR_T_SUFFIX
826 SIG_ATOMIC_T_SUFFIX
827 SIZE_T_SUFFIX
828 PTRDIFF_T_SUFFIX
829 HAVE_SIGNED_WINT_T
830 HAVE_SIGNED_WCHAR_T
831 HAVE_SIGNED_SIG_ATOMIC_T
832 BITSIZEOF_WINT_T
833 BITSIZEOF_WCHAR_T
834 BITSIZEOF_SIG_ATOMIC_T
835 BITSIZEOF_SIZE_T
836 BITSIZEOF_PTRDIFF_T
837 APPLE_UNIVERSAL_BUILD
838 HAVE_SYS_BITYPES_H
839 HAVE_SYS_INTTYPES_H
840 HAVE_STDINT_H
841 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
842 NEXT_STDINT_H
843 HAVE_SYS_TYPES_H
844 HAVE_INTTYPES_H
845 HAVE_UNSIGNED_LONG_LONG_INT
846 HAVE_LONG_LONG_INT
847 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
848 NEXT_SYS_TIME_H
849 REPLACE_GETTIMEOFDAY
850 HAVE_SYS_TIME_H
851 HAVE_STRUCT_TIMEVAL
852 HAVE_GETTIMEOFDAY
853 GNULIB_GETTIMEOFDAY
854 LTLIBINTL
855 LIBINTL
856 HAVE_GETOPT_H
857 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
858 NEXT_GETOPT_H
859 HAVE__BOOL
860 STDBOOL_H
861 FNMATCH_H
862 FLOAT_H
863 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
864 NEXT_FLOAT_H
865 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
866 NEXT_FCNTL_H
867 REPLACE_VSPRINTF
868 REPLACE_VSNPRINTF
869 REPLACE_VPRINTF
870 REPLACE_VFPRINTF
871 REPLACE_VDPRINTF
872 REPLACE_VASPRINTF
873 REPLACE_STDIO_WRITE_FUNCS
874 REPLACE_SPRINTF
875 REPLACE_SNPRINTF
876 REPLACE_RENAMEAT
877 REPLACE_RENAME
878 REPLACE_REMOVE
879 REPLACE_PRINTF
880 REPLACE_POPEN
881 REPLACE_PERROR
882 REPLACE_OBSTACK_PRINTF
883 REPLACE_GETLINE
884 REPLACE_GETDELIM
885 REPLACE_FTELLO
886 REPLACE_FTELL
887 REPLACE_FSEEKO
888 REPLACE_FSEEK
889 REPLACE_FREOPEN
890 REPLACE_FPURGE
891 REPLACE_FPRINTF
892 REPLACE_FOPEN
893 REPLACE_FFLUSH
894 REPLACE_FCLOSE
895 REPLACE_DPRINTF
896 HAVE_VDPRINTF
897 HAVE_VASPRINTF
898 HAVE_RENAMEAT
899 HAVE_DPRINTF
900 HAVE_DECL_VSNPRINTF
901 HAVE_DECL_SNPRINTF
902 HAVE_DECL_OBSTACK_PRINTF
903 HAVE_DECL_GETLINE
904 HAVE_DECL_GETDELIM
905 HAVE_DECL_FPURGE
906 GNULIB_VSPRINTF_POSIX
907 GNULIB_VSNPRINTF
908 GNULIB_VPRINTF_POSIX
909 GNULIB_VPRINTF
910 GNULIB_VFPRINTF_POSIX
911 GNULIB_VFPRINTF
912 GNULIB_VDPRINTF
913 GNULIB_VASPRINTF
914 GNULIB_STDIO_H_SIGPIPE
915 GNULIB_SPRINTF_POSIX
916 GNULIB_SNPRINTF
917 GNULIB_RENAMEAT
918 GNULIB_RENAME
919 GNULIB_REMOVE
920 GNULIB_PUTS
921 GNULIB_PUTCHAR
922 GNULIB_PUTC
923 GNULIB_PRINTF_POSIX
924 GNULIB_PRINTF
925 GNULIB_POPEN
926 GNULIB_PERROR
927 GNULIB_OBSTACK_PRINTF_POSIX
928 GNULIB_OBSTACK_PRINTF
929 GNULIB_GETLINE
930 GNULIB_GETDELIM
931 GNULIB_FWRITE
932 GNULIB_FTELLO
933 GNULIB_FTELL
934 GNULIB_FSEEKO
935 GNULIB_FSEEK
936 GNULIB_FREOPEN
937 GNULIB_FPUTS
938 GNULIB_FPUTC
939 GNULIB_FPURGE
940 GNULIB_FPRINTF_POSIX
941 GNULIB_FPRINTF
942 GNULIB_FOPEN
943 GNULIB_FFLUSH
944 GNULIB_FCLOSE
945 GNULIB_DPRINTF
946 REPLACE_OPENAT
947 REPLACE_OPEN
948 REPLACE_FCNTL
949 HAVE_OPENAT
950 HAVE_FCNTL
951 GNULIB_OPENAT
952 GNULIB_OPEN
953 GNULIB_FCNTL
954 REPLACE_UTIMENSAT
955 REPLACE_STAT
956 REPLACE_MKNOD
957 REPLACE_MKFIFO
958 REPLACE_MKDIR
959 REPLACE_LSTAT
960 REPLACE_FUTIMENS
961 REPLACE_FSTATAT
962 REPLACE_FSTAT
963 HAVE_UTIMENSAT
964 HAVE_MKNODAT
965 HAVE_MKNOD
966 HAVE_MKFIFOAT
967 HAVE_MKFIFO
968 HAVE_MKDIRAT
969 HAVE_LSTAT
970 HAVE_LCHMOD
971 HAVE_FUTIMENS
972 HAVE_FSTATAT
973 HAVE_FCHMODAT
974 GNULIB_UTIMENSAT
975 GNULIB_STAT
976 GNULIB_MKNODAT
977 GNULIB_MKNOD
978 GNULIB_MKFIFOAT
979 GNULIB_MKFIFO
980 GNULIB_MKDIRAT
981 GNULIB_LSTAT
982 GNULIB_LCHMOD
983 GNULIB_FUTIMENS
984 GNULIB_FSTATAT
985 GNULIB_FCHMODAT
986 EOVERFLOW_VALUE
987 EOVERFLOW_HIDDEN
988 ENOLINK_VALUE
989 ENOLINK_HIDDEN
990 EMULTIHOP_VALUE
991 EMULTIHOP_HIDDEN
992 ERRNO_H
993 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
994 NEXT_ERRNO_H
995 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
996 NEXT_DIRENT_H
997 PRAGMA_SYSTEM_HEADER
998 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
999 INCLUDE_NEXT
1000 REPLACE_OPENDIR
1001 REPLACE_FDOPENDIR
1002 REPLACE_CLOSEDIR
1003 HAVE_ALPHASORT
1004 HAVE_SCANDIR
1005 HAVE_FDOPENDIR
1006 HAVE_DECL_DIRFD
1007 GNULIB_ALPHASORT
1008 GNULIB_SCANDIR
1009 GNULIB_FDOPENDIR
1010 GNULIB_DIRFD
1011 LIB_CLOCK_GETTIME
1012 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1013 UNISTD_H_HAVE_WINSOCK2_H
1014 REPLACE_WRITE
1015 REPLACE_USLEEP
1016 REPLACE_UNLINKAT
1017 REPLACE_UNLINK
1018 REPLACE_SYMLINK
1019 REPLACE_SLEEP
1020 REPLACE_RMDIR
1021 REPLACE_READLINK
1022 REPLACE_PREAD
1023 REPLACE_LSEEK
1024 REPLACE_LINKAT
1025 REPLACE_LINK
1026 REPLACE_LCHOWN
1027 REPLACE_GETPAGESIZE
1028 REPLACE_GETGROUPS
1029 REPLACE_GETCWD
1030 REPLACE_FCHOWNAT
1031 REPLACE_FCHDIR
1032 REPLACE_DUP2
1033 REPLACE_DUP
1034 REPLACE_CLOSE
1035 REPLACE_CHOWN
1036 HAVE_USLEEP
1037 HAVE_UNLINKAT
1038 HAVE_SYS_PARAM_H
1039 HAVE_OS_H
1040 HAVE_DECL_GETLOGIN_R
1041 HAVE_DECL_ENVIRON
1042 HAVE_SYMLINKAT
1043 HAVE_SYMLINK
1044 HAVE_SLEEP
1045 HAVE_READLINKAT
1046 HAVE_READLINK
1047 HAVE_PREAD
1048 HAVE_PIPE2
1049 HAVE_LINKAT
1050 HAVE_LINK
1051 HAVE_LCHOWN
1052 HAVE_GETUSERSHELL
1053 HAVE_GETPAGESIZE
1054 HAVE_GETLOGIN
1055 HAVE_GETHOSTNAME
1056 HAVE_GETGROUPS
1057 HAVE_GETDTABLESIZE
1058 HAVE_GETDOMAINNAME
1059 HAVE_FTRUNCATE
1060 HAVE_FSYNC
1061 HAVE_FCHOWNAT
1062 HAVE_FACCESSAT
1063 HAVE_EUIDACCESS
1064 HAVE_DUP3
1065 HAVE_DUP2
1066 HAVE_CHOWN
1067 GNULIB_WRITE
1068 GNULIB_USLEEP
1069 GNULIB_UNLINKAT
1070 GNULIB_UNLINK
1071 GNULIB_UNISTD_H_SIGPIPE
1072 GNULIB_UNISTD_H_GETOPT
1073 GNULIB_SYMLINKAT
1074 GNULIB_SYMLINK
1075 GNULIB_SLEEP
1076 GNULIB_RMDIR
1077 GNULIB_READLINKAT
1078 GNULIB_READLINK
1079 GNULIB_PREAD
1080 GNULIB_PIPE2
1081 GNULIB_LSEEK
1082 GNULIB_LINKAT
1083 GNULIB_LINK
1084 GNULIB_LCHOWN
1085 GNULIB_GETUSERSHELL
1086 GNULIB_GETPAGESIZE
1087 GNULIB_GETLOGIN_R
1088 GNULIB_GETLOGIN
1089 GNULIB_GETHOSTNAME
1090 GNULIB_GETGROUPS
1091 GNULIB_GETDTABLESIZE
1092 GNULIB_GETDOMAINNAME
1093 GNULIB_GETCWD
1094 GNULIB_FTRUNCATE
1095 GNULIB_FSYNC
1096 GNULIB_FCHOWNAT
1097 GNULIB_FCHDIR
1098 GNULIB_FACCESSAT
1099 GNULIB_EUIDACCESS
1100 GNULIB_ENVIRON
1101 GNULIB_DUP3
1102 GNULIB_DUP2
1103 GNULIB_CLOSE
1104 GNULIB_CHOWN
1105 REPLACE_UNSETENV
1106 REPLACE_STRTOD
1107 REPLACE_SETENV
1108 REPLACE_REALPATH
1109 REPLACE_PUTENV
1110 REPLACE_MKSTEMP
1111 REPLACE_CANONICALIZE_FILE_NAME
1112 HAVE_UNSETENV
1113 HAVE_SYS_LOADAVG_H
1114 HAVE_STRUCT_RANDOM_DATA
1115 HAVE_STRTOULL
1116 HAVE_STRTOLL
1117 HAVE_STRTOD
1118 HAVE_SETENV
1119 HAVE_RPMATCH
1120 HAVE_REALPATH
1121 HAVE_REALLOC_POSIX
1122 HAVE_RANDOM_R
1123 HAVE_MKSTEMPS
1124 HAVE_MKOSTEMPS
1125 HAVE_MKOSTEMP
1126 HAVE_MKDTEMP
1127 HAVE_MALLOC_POSIX
1128 HAVE_GETSUBOPT
1129 HAVE_DECL_GETLOADAVG
1130 HAVE_CANONICALIZE_FILE_NAME
1131 HAVE_CALLOC_POSIX
1132 HAVE_ATOLL
1133 GNULIB_UNSETENV
1134 GNULIB_STRTOULL
1135 GNULIB_STRTOLL
1136 GNULIB_STRTOD
1137 GNULIB_SETENV
1138 GNULIB_RPMATCH
1139 GNULIB_REALPATH
1140 GNULIB_REALLOC_POSIX
1141 GNULIB_RANDOM_R
1142 GNULIB_PUTENV
1143 GNULIB_MKSTEMPS
1144 GNULIB_MKSTEMP
1145 GNULIB_MKOSTEMPS
1146 GNULIB_MKOSTEMP
1147 GNULIB_MKDTEMP
1148 GNULIB_MALLOC_POSIX
1149 GNULIB_GETSUBOPT
1150 GNULIB_GETLOADAVG
1151 GNULIB_CANONICALIZE_FILE_NAME
1152 GNULIB_CALLOC_POSIX
1153 GNULIB_ATOLL
1154 LOCALE_FR
1155 REPLACE_WCWIDTH
1156 REPLACE_WCSNRTOMBS
1157 REPLACE_WCSRTOMBS
1158 REPLACE_WCRTOMB
1159 REPLACE_MBSNRTOWCS
1160 REPLACE_MBSRTOWCS
1161 REPLACE_MBRLEN
1162 REPLACE_MBRTOWC
1163 REPLACE_MBSINIT
1164 REPLACE_WCTOB
1165 REPLACE_BTOWC
1166 REPLACE_MBSTATE_T
1167 HAVE_DECL_WCWIDTH
1168 HAVE_DECL_WCTOB
1169 HAVE_WCSNRTOMBS
1170 HAVE_WCSRTOMBS
1171 HAVE_WCRTOMB
1172 HAVE_MBSNRTOWCS
1173 HAVE_MBSRTOWCS
1174 HAVE_MBRLEN
1175 HAVE_MBRTOWC
1176 HAVE_MBSINIT
1177 HAVE_BTOWC
1178 GNULIB_WCWIDTH
1179 GNULIB_WCSNRTOMBS
1180 GNULIB_WCSRTOMBS
1181 GNULIB_WCRTOMB
1182 GNULIB_MBSNRTOWCS
1183 GNULIB_MBSRTOWCS
1184 GNULIB_MBRLEN
1185 GNULIB_MBRTOWC
1186 GNULIB_MBSINIT
1187 GNULIB_WCTOB
1188 GNULIB_BTOWC
1189 GETOPT_H
1190 ALLOCA_H
1191 ALLOCA
1192 GL_COND_LIBTOOL_FALSE
1193 GL_COND_LIBTOOL_TRUE
1194 EGREP
1195 GREP
1196 CPP
1197 host_os
1198 host_vendor
1199 host_cpu
1200 host
1201 build_os
1202 build_vendor
1203 build_cpu
1204 build
1205 YFLAGS
1206 YACC
1207 RANLIB
1208 am__fastdepCC_FALSE
1209 am__fastdepCC_TRUE
1210 CCDEPMODE
1211 AMDEPBACKSLASH
1212 AMDEP_FALSE
1213 AMDEP_TRUE
1214 am__quote
1215 am__include
1216 DEPDIR
1217 OBJEXT
1218 EXEEXT
1219 ac_ct_CC
1220 CPPFLAGS
1221 LDFLAGS
1222 CFLAGS
1223 CC
1224 AM_BACKSLASH
1225 AM_DEFAULT_VERBOSITY
1226 am__untar
1227 am__tar
1228 AMTAR
1229 am__leading_dot
1230 SET_MAKE
1231 AWK
1232 mkdir_p
1233 MKDIR_P
1234 INSTALL_STRIP_PROGRAM
1235 STRIP
1236 install_sh
1237 MAKEINFO
1238 AUTOHEADER
1239 AUTOMAKE
1240 AUTOCONF
1241 ACLOCAL
1242 VERSION
1243 PACKAGE
1244 CYGPATH_W
1245 am__isrc
1246 INSTALL_DATA
1247 INSTALL_SCRIPT
1248 INSTALL_PROGRAM
1249 target_alias
1250 host_alias
1251 build_alias
1252 LIBS
1253 ECHO_T
1254 ECHO_N
1255 ECHO_C
1256 DEFS
1257 mandir
1258 localedir
1259 libdir
1260 psdir
1261 pdfdir
1262 dvidir
1263 htmldir
1264 infodir
1265 docdir
1266 oldincludedir
1267 includedir
1268 localstatedir
1269 sharedstatedir
1270 sysconfdir
1271 datadir
1272 datarootdir
1273 libexecdir
1274 sbindir
1275 bindir
1276 program_transform_name
1277 prefix
1278 exec_prefix
1279 PACKAGE_BUGREPORT
1280 PACKAGE_STRING
1281 PACKAGE_VERSION
1282 PACKAGE_TARNAME
1283 PACKAGE_NAME
1284 PATH_SEPARATOR
1285 SHELL'
1286 ac_subst_files=''
1287 ac_user_opts='
1288 enable_option_checking
1289 enable_silent_rules
1290 enable_dependency_tracking
1291 enable_largefile
1292 with_included_regex
1293 with_packager
1294 with_packager_version
1295 with_packager_bug_reports
1296 with_rmt
1297 with_compress
1298 with_gzip
1299 with_bzip2
1300 with_lzip
1301 with_lzma
1302 with_lzop
1303 with_xz
1304 with_gnu_ld
1305 enable_rpath
1306 with_libiconv_prefix
1307 enable_nls
1308 with_libintl_prefix
1309 enable_backup_scripts
1310 '
1311       ac_precious_vars='build_alias
1312 host_alias
1313 target_alias
1314 CC
1315 CFLAGS
1316 LDFLAGS
1317 LIBS
1318 CPPFLAGS
1319 YACC
1320 YFLAGS
1321 CPP
1322 DEFAULT_RMT_DIR
1323 DEFAULT_ARCHIVE_FORMAT
1324 DEFAULT_ARCHIVE
1325 DEFAULT_BLOCKING
1326 DEFAULT_QUOTING_STYLE'
1327
1328
1329 # Initialize some variables set by options.
1330 ac_init_help=
1331 ac_init_version=false
1332 ac_unrecognized_opts=
1333 ac_unrecognized_sep=
1334 # The variables have the same names as the options, with
1335 # dashes changed to underlines.
1336 cache_file=/dev/null
1337 exec_prefix=NONE
1338 no_create=
1339 no_recursion=
1340 prefix=NONE
1341 program_prefix=NONE
1342 program_suffix=NONE
1343 program_transform_name=s,x,x,
1344 silent=
1345 site=
1346 srcdir=
1347 verbose=
1348 x_includes=NONE
1349 x_libraries=NONE
1350
1351 # Installation directory options.
1352 # These are left unexpanded so users can "make install exec_prefix=/foo"
1353 # and all the variables that are supposed to be based on exec_prefix
1354 # by default will actually change.
1355 # Use braces instead of parens because sh, perl, etc. also accept them.
1356 # (The list follows the same order as the GNU Coding Standards.)
1357 bindir='${exec_prefix}/bin'
1358 sbindir='${exec_prefix}/sbin'
1359 libexecdir='${exec_prefix}/libexec'
1360 datarootdir='${prefix}/share'
1361 datadir='${datarootdir}'
1362 sysconfdir='${prefix}/etc'
1363 sharedstatedir='${prefix}/com'
1364 localstatedir='${prefix}/var'
1365 includedir='${prefix}/include'
1366 oldincludedir='/usr/include'
1367 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1368 infodir='${datarootdir}/info'
1369 htmldir='${docdir}'
1370 dvidir='${docdir}'
1371 pdfdir='${docdir}'
1372 psdir='${docdir}'
1373 libdir='${exec_prefix}/lib'
1374 localedir='${datarootdir}/locale'
1375 mandir='${datarootdir}/man'
1376
1377 ac_prev=
1378 ac_dashdash=
1379 for ac_option
1380 do
1381   # If the previous option needs an argument, assign it.
1382   if test -n "$ac_prev"; then
1383     eval $ac_prev=\$ac_option
1384     ac_prev=
1385     continue
1386   fi
1387
1388   case $ac_option in
1389   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1390   *)    ac_optarg=yes ;;
1391   esac
1392
1393   # Accept the important Cygnus configure options, so we can diagnose typos.
1394
1395   case $ac_dashdash$ac_option in
1396   --)
1397     ac_dashdash=yes ;;
1398
1399   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1400     ac_prev=bindir ;;
1401   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1402     bindir=$ac_optarg ;;
1403
1404   -build | --build | --buil | --bui | --bu)
1405     ac_prev=build_alias ;;
1406   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1407     build_alias=$ac_optarg ;;
1408
1409   -cache-file | --cache-file | --cache-fil | --cache-fi \
1410   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1411     ac_prev=cache_file ;;
1412   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1413   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1414     cache_file=$ac_optarg ;;
1415
1416   --config-cache | -C)
1417     cache_file=config.cache ;;
1418
1419   -datadir | --datadir | --datadi | --datad)
1420     ac_prev=datadir ;;
1421   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1422     datadir=$ac_optarg ;;
1423
1424   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1425   | --dataroo | --dataro | --datar)
1426     ac_prev=datarootdir ;;
1427   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1428   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1429     datarootdir=$ac_optarg ;;
1430
1431   -disable-* | --disable-*)
1432     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1433     # Reject names that are not valid shell variable names.
1434     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1435       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1436    { (exit 1); exit 1; }; }
1437     ac_useropt_orig=$ac_useropt
1438     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1439     case $ac_user_opts in
1440       *"
1441 "enable_$ac_useropt"
1442 "*) ;;
1443       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1444          ac_unrecognized_sep=', ';;
1445     esac
1446     eval enable_$ac_useropt=no ;;
1447
1448   -docdir | --docdir | --docdi | --doc | --do)
1449     ac_prev=docdir ;;
1450   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1451     docdir=$ac_optarg ;;
1452
1453   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1454     ac_prev=dvidir ;;
1455   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1456     dvidir=$ac_optarg ;;
1457
1458   -enable-* | --enable-*)
1459     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1460     # Reject names that are not valid shell variable names.
1461     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1462       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1463    { (exit 1); exit 1; }; }
1464     ac_useropt_orig=$ac_useropt
1465     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1466     case $ac_user_opts in
1467       *"
1468 "enable_$ac_useropt"
1469 "*) ;;
1470       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1471          ac_unrecognized_sep=', ';;
1472     esac
1473     eval enable_$ac_useropt=\$ac_optarg ;;
1474
1475   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1476   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1477   | --exec | --exe | --ex)
1478     ac_prev=exec_prefix ;;
1479   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1480   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1481   | --exec=* | --exe=* | --ex=*)
1482     exec_prefix=$ac_optarg ;;
1483
1484   -gas | --gas | --ga | --g)
1485     # Obsolete; use --with-gas.
1486     with_gas=yes ;;
1487
1488   -help | --help | --hel | --he | -h)
1489     ac_init_help=long ;;
1490   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1491     ac_init_help=recursive ;;
1492   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1493     ac_init_help=short ;;
1494
1495   -host | --host | --hos | --ho)
1496     ac_prev=host_alias ;;
1497   -host=* | --host=* | --hos=* | --ho=*)
1498     host_alias=$ac_optarg ;;
1499
1500   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1501     ac_prev=htmldir ;;
1502   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1503   | --ht=*)
1504     htmldir=$ac_optarg ;;
1505
1506   -includedir | --includedir | --includedi | --included | --include \
1507   | --includ | --inclu | --incl | --inc)
1508     ac_prev=includedir ;;
1509   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1510   | --includ=* | --inclu=* | --incl=* | --inc=*)
1511     includedir=$ac_optarg ;;
1512
1513   -infodir | --infodir | --infodi | --infod | --info | --inf)
1514     ac_prev=infodir ;;
1515   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1516     infodir=$ac_optarg ;;
1517
1518   -libdir | --libdir | --libdi | --libd)
1519     ac_prev=libdir ;;
1520   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1521     libdir=$ac_optarg ;;
1522
1523   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1524   | --libexe | --libex | --libe)
1525     ac_prev=libexecdir ;;
1526   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1527   | --libexe=* | --libex=* | --libe=*)
1528     libexecdir=$ac_optarg ;;
1529
1530   -localedir | --localedir | --localedi | --localed | --locale)
1531     ac_prev=localedir ;;
1532   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1533     localedir=$ac_optarg ;;
1534
1535   -localstatedir | --localstatedir | --localstatedi | --localstated \
1536   | --localstate | --localstat | --localsta | --localst | --locals)
1537     ac_prev=localstatedir ;;
1538   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1539   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1540     localstatedir=$ac_optarg ;;
1541
1542   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1543     ac_prev=mandir ;;
1544   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1545     mandir=$ac_optarg ;;
1546
1547   -nfp | --nfp | --nf)
1548     # Obsolete; use --without-fp.
1549     with_fp=no ;;
1550
1551   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1552   | --no-cr | --no-c | -n)
1553     no_create=yes ;;
1554
1555   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1556   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1557     no_recursion=yes ;;
1558
1559   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1560   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1561   | --oldin | --oldi | --old | --ol | --o)
1562     ac_prev=oldincludedir ;;
1563   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1564   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1565   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1566     oldincludedir=$ac_optarg ;;
1567
1568   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1569     ac_prev=prefix ;;
1570   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1571     prefix=$ac_optarg ;;
1572
1573   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1574   | --program-pre | --program-pr | --program-p)
1575     ac_prev=program_prefix ;;
1576   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1577   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1578     program_prefix=$ac_optarg ;;
1579
1580   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1581   | --program-suf | --program-su | --program-s)
1582     ac_prev=program_suffix ;;
1583   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1584   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1585     program_suffix=$ac_optarg ;;
1586
1587   -program-transform-name | --program-transform-name \
1588   | --program-transform-nam | --program-transform-na \
1589   | --program-transform-n | --program-transform- \
1590   | --program-transform | --program-transfor \
1591   | --program-transfo | --program-transf \
1592   | --program-trans | --program-tran \
1593   | --progr-tra | --program-tr | --program-t)
1594     ac_prev=program_transform_name ;;
1595   -program-transform-name=* | --program-transform-name=* \
1596   | --program-transform-nam=* | --program-transform-na=* \
1597   | --program-transform-n=* | --program-transform-=* \
1598   | --program-transform=* | --program-transfor=* \
1599   | --program-transfo=* | --program-transf=* \
1600   | --program-trans=* | --program-tran=* \
1601   | --progr-tra=* | --program-tr=* | --program-t=*)
1602     program_transform_name=$ac_optarg ;;
1603
1604   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1605     ac_prev=pdfdir ;;
1606   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1607     pdfdir=$ac_optarg ;;
1608
1609   -psdir | --psdir | --psdi | --psd | --ps)
1610     ac_prev=psdir ;;
1611   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1612     psdir=$ac_optarg ;;
1613
1614   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1615   | -silent | --silent | --silen | --sile | --sil)
1616     silent=yes ;;
1617
1618   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1619     ac_prev=sbindir ;;
1620   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1621   | --sbi=* | --sb=*)
1622     sbindir=$ac_optarg ;;
1623
1624   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1625   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1626   | --sharedst | --shareds | --shared | --share | --shar \
1627   | --sha | --sh)
1628     ac_prev=sharedstatedir ;;
1629   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1630   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1631   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1632   | --sha=* | --sh=*)
1633     sharedstatedir=$ac_optarg ;;
1634
1635   -site | --site | --sit)
1636     ac_prev=site ;;
1637   -site=* | --site=* | --sit=*)
1638     site=$ac_optarg ;;
1639
1640   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1641     ac_prev=srcdir ;;
1642   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1643     srcdir=$ac_optarg ;;
1644
1645   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1646   | --syscon | --sysco | --sysc | --sys | --sy)
1647     ac_prev=sysconfdir ;;
1648   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1649   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1650     sysconfdir=$ac_optarg ;;
1651
1652   -target | --target | --targe | --targ | --tar | --ta | --t)
1653     ac_prev=target_alias ;;
1654   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1655     target_alias=$ac_optarg ;;
1656
1657   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1658     verbose=yes ;;
1659
1660   -version | --version | --versio | --versi | --vers | -V)
1661     ac_init_version=: ;;
1662
1663   -with-* | --with-*)
1664     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1665     # Reject names that are not valid shell variable names.
1666     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1667       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1668    { (exit 1); exit 1; }; }
1669     ac_useropt_orig=$ac_useropt
1670     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1671     case $ac_user_opts in
1672       *"
1673 "with_$ac_useropt"
1674 "*) ;;
1675       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1676          ac_unrecognized_sep=', ';;
1677     esac
1678     eval with_$ac_useropt=\$ac_optarg ;;
1679
1680   -without-* | --without-*)
1681     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1682     # Reject names that are not valid shell variable names.
1683     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1684       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1685    { (exit 1); exit 1; }; }
1686     ac_useropt_orig=$ac_useropt
1687     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1688     case $ac_user_opts in
1689       *"
1690 "with_$ac_useropt"
1691 "*) ;;
1692       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1693          ac_unrecognized_sep=', ';;
1694     esac
1695     eval with_$ac_useropt=no ;;
1696
1697   --x)
1698     # Obsolete; use --with-x.
1699     with_x=yes ;;
1700
1701   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1702   | --x-incl | --x-inc | --x-in | --x-i)
1703     ac_prev=x_includes ;;
1704   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1705   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1706     x_includes=$ac_optarg ;;
1707
1708   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1709   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1710     ac_prev=x_libraries ;;
1711   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1712   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1713     x_libraries=$ac_optarg ;;
1714
1715   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1716 Try \`$0 --help' for more information." >&2
1717    { (exit 1); exit 1; }; }
1718     ;;
1719
1720   *=*)
1721     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1722     # Reject names that are not valid shell variable names.
1723     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1724       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1725    { (exit 1); exit 1; }; }
1726     eval $ac_envvar=\$ac_optarg
1727     export $ac_envvar ;;
1728
1729   *)
1730     # FIXME: should be removed in autoconf 3.0.
1731     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1732     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1733       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1734     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1735     ;;
1736
1737   esac
1738 done
1739
1740 if test -n "$ac_prev"; then
1741   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1742   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1743    { (exit 1); exit 1; }; }
1744 fi
1745
1746 if test -n "$ac_unrecognized_opts"; then
1747   case $enable_option_checking in
1748     no) ;;
1749     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1750    { (exit 1); exit 1; }; } ;;
1751     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1752   esac
1753 fi
1754
1755 # Check all directory arguments for consistency.
1756 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1757                 datadir sysconfdir sharedstatedir localstatedir includedir \
1758                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1759                 libdir localedir mandir
1760 do
1761   eval ac_val=\$$ac_var
1762   # Remove trailing slashes.
1763   case $ac_val in
1764     */ )
1765       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1766       eval $ac_var=\$ac_val;;
1767   esac
1768   # Be sure to have absolute directory names.
1769   case $ac_val in
1770     [\\/$]* | ?:[\\/]* )  continue;;
1771     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1772   esac
1773   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1774    { (exit 1); exit 1; }; }
1775 done
1776
1777 # There might be people who depend on the old broken behavior: `$host'
1778 # used to hold the argument of --host etc.
1779 # FIXME: To remove some day.
1780 build=$build_alias
1781 host=$host_alias
1782 target=$target_alias
1783
1784 # FIXME: To remove some day.
1785 if test "x$host_alias" != x; then
1786   if test "x$build_alias" = x; then
1787     cross_compiling=maybe
1788     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1789     If a cross compiler is detected then cross compile mode will be used." >&2
1790   elif test "x$build_alias" != "x$host_alias"; then
1791     cross_compiling=yes
1792   fi
1793 fi
1794
1795 ac_tool_prefix=
1796 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1797
1798 test "$silent" = yes && exec 6>/dev/null
1799
1800
1801 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1802 ac_ls_di=`ls -di .` &&
1803 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1804   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1805    { (exit 1); exit 1; }; }
1806 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1807   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1808    { (exit 1); exit 1; }; }
1809
1810
1811 # Find the source files, if location was not specified.
1812 if test -z "$srcdir"; then
1813   ac_srcdir_defaulted=yes
1814   # Try the directory containing this script, then the parent directory.
1815   ac_confdir=`$as_dirname -- "$as_myself" ||
1816 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1817          X"$as_myself" : 'X\(//\)[^/]' \| \
1818          X"$as_myself" : 'X\(//\)$' \| \
1819          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1820 $as_echo X"$as_myself" |
1821     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1822             s//\1/
1823             q
1824           }
1825           /^X\(\/\/\)[^/].*/{
1826             s//\1/
1827             q
1828           }
1829           /^X\(\/\/\)$/{
1830             s//\1/
1831             q
1832           }
1833           /^X\(\/\).*/{
1834             s//\1/
1835             q
1836           }
1837           s/.*/./; q'`
1838   srcdir=$ac_confdir
1839   if test ! -r "$srcdir/$ac_unique_file"; then
1840     srcdir=..
1841   fi
1842 else
1843   ac_srcdir_defaulted=no
1844 fi
1845 if test ! -r "$srcdir/$ac_unique_file"; then
1846   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1847   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1848    { (exit 1); exit 1; }; }
1849 fi
1850 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1851 ac_abs_confdir=`(
1852         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1853    { (exit 1); exit 1; }; }
1854         pwd)`
1855 # When building in place, set srcdir=.
1856 if test "$ac_abs_confdir" = "$ac_pwd"; then
1857   srcdir=.
1858 fi
1859 # Remove unnecessary trailing slashes from srcdir.
1860 # Double slashes in file names in object file debugging info
1861 # mess up M-x gdb in Emacs.
1862 case $srcdir in
1863 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1864 esac
1865 for ac_var in $ac_precious_vars; do
1866   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1867   eval ac_env_${ac_var}_value=\$${ac_var}
1868   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1869   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1870 done
1871
1872 #
1873 # Report the --help message.
1874 #
1875 if test "$ac_init_help" = "long"; then
1876   # Omit some internal or obsolete options to make the list less imposing.
1877   # This message is too long to be a string in the A/UX 3.1 sh.
1878   cat <<_ACEOF
1879 \`configure' configures GNU tar 1.23 to adapt to many kinds of systems.
1880
1881 Usage: $0 [OPTION]... [VAR=VALUE]...
1882
1883 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1884 VAR=VALUE.  See below for descriptions of some of the useful variables.
1885
1886 Defaults for the options are specified in brackets.
1887
1888 Configuration:
1889   -h, --help              display this help and exit
1890       --help=short        display options specific to this package
1891       --help=recursive    display the short help of all the included packages
1892   -V, --version           display version information and exit
1893   -q, --quiet, --silent   do not print \`checking...' messages
1894       --cache-file=FILE   cache test results in FILE [disabled]
1895   -C, --config-cache      alias for \`--cache-file=config.cache'
1896   -n, --no-create         do not create output files
1897       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1898
1899 Installation directories:
1900   --prefix=PREFIX         install architecture-independent files in PREFIX
1901                           [$ac_default_prefix]
1902   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1903                           [PREFIX]
1904
1905 By default, \`make install' will install all the files in
1906 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1907 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1908 for instance \`--prefix=\$HOME'.
1909
1910 For better control, use the options below.
1911
1912 Fine tuning of the installation directories:
1913   --bindir=DIR            user executables [EPREFIX/bin]
1914   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1915   --libexecdir=DIR        program executables [EPREFIX/libexec]
1916   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1917   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1918   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1919   --libdir=DIR            object code libraries [EPREFIX/lib]
1920   --includedir=DIR        C header files [PREFIX/include]
1921   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1922   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1923   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1924   --infodir=DIR           info documentation [DATAROOTDIR/info]
1925   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1926   --mandir=DIR            man documentation [DATAROOTDIR/man]
1927   --docdir=DIR            documentation root [DATAROOTDIR/doc/tar]
1928   --htmldir=DIR           html documentation [DOCDIR]
1929   --dvidir=DIR            dvi documentation [DOCDIR]
1930   --pdfdir=DIR            pdf documentation [DOCDIR]
1931   --psdir=DIR             ps documentation [DOCDIR]
1932 _ACEOF
1933
1934   cat <<\_ACEOF
1935
1936 Program names:
1937   --program-prefix=PREFIX            prepend PREFIX to installed program names
1938   --program-suffix=SUFFIX            append SUFFIX to installed program names
1939   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1940
1941 System types:
1942   --build=BUILD     configure for building on BUILD [guessed]
1943   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1944 _ACEOF
1945 fi
1946
1947 if test -n "$ac_init_help"; then
1948   case $ac_init_help in
1949      short | recursive ) echo "Configuration of GNU tar 1.23:";;
1950    esac
1951   cat <<\_ACEOF
1952
1953 Optional Features:
1954   --disable-option-checking  ignore unrecognized --enable/--with options
1955   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1956   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1957   --enable-silent-rules          less verbose build output (undo: `make V=1')
1958   --disable-silent-rules         verbose build output (undo: `make V=0')
1959   --disable-dependency-tracking  speeds up one-time build
1960   --enable-dependency-tracking   do not reject slow dependency extractors
1961   --disable-largefile     omit support for large files
1962   --disable-rpath         do not hardcode runtime library paths
1963   --disable-nls           do not use Native Language Support
1964   --enable-backup-scripts Create and install backup and restore scripts
1965
1966 Optional Packages:
1967   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1968   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1969   --without-included-regex
1970                           don't compile regex; this is the default on systems
1971                           with recent-enough versions of the GNU C Library
1972                           (use with caution on other systems).
1973   --with-packager         String identifying the packager of this software
1974   --with-packager-version Packager-specific version information
1975   --with-packager-bug-reports
1976                           Packager info for bug reports (URL/e-mail/...)
1977   --with-rmt=FILE         Use FILE as the default `rmt' program. Do not build
1978                           included copy of `rmt'.
1979   --with-compress=PROG    use PROG as compress compressor program
1980   --with-gzip=PROG        use PROG as gzip compressor program
1981   --with-bzip2=PROG       use PROG as bzip2 compressor program
1982   --with-lzip=PROG        use PROG as lzip compressor program
1983   --with-lzma=PROG        use PROG as lzma compressor program
1984   --with-lzop=PROG        use PROG as lzop compressor program
1985   --with-xz=PROG          use PROG as xz compressor program
1986   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1987   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1988   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1989   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
1990   --without-libintl-prefix     don't search for libintl in includedir and libdir
1991
1992 Some influential environment variables:
1993   CC          C compiler command
1994   CFLAGS      C compiler flags
1995   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1996               nonstandard directory <lib dir>
1997   LIBS        libraries to pass to the linker, e.g. -l<library>
1998   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1999               you have headers in a nonstandard directory <include dir>
2000   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2001               the first program found out of: `bison -y', `byacc', `yacc'.
2002   YFLAGS      The list of arguments that will be passed by default to $YACC.
2003               This script will default YFLAGS to the empty string to avoid a
2004               default value of `-d' given by some make applications.
2005   CPP         C preprocessor
2006   DEFAULT_RMT_DIR
2007               Define full file name of the directory where to install `rmt'.
2008               (default: $(libexecdir))
2009   DEFAULT_ARCHIVE_FORMAT
2010               Set the default archive format. Allowed values are: V7, OLDGNU,
2011               USTAR, POSIX, GNU. Default is GNU
2012   DEFAULT_ARCHIVE
2013               Set the name of the default archive (default: -)
2014   DEFAULT_BLOCKING
2015               Define default blocking factor (default: 20)
2016   DEFAULT_QUOTING_STYLE
2017               Set the default quoting style. Allowed values are: literal,
2018               shell, shell-always, c, escape, locale, clocale . Default is
2019               "escape".
2020
2021 Use these variables to override the choices made by `configure' or to help
2022 it to find libraries and programs with nonstandard names/locations.
2023
2024 Report bugs to <bug-tar@gnu.org>.
2025 _ACEOF
2026 ac_status=$?
2027 fi
2028
2029 if test "$ac_init_help" = "recursive"; then
2030   # If there are subdirs, report their specific --help.
2031   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2032     test -d "$ac_dir" ||
2033       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2034       continue
2035     ac_builddir=.
2036
2037 case "$ac_dir" in
2038 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2039 *)
2040   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2041   # A ".." for each directory in $ac_dir_suffix.
2042   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2043   case $ac_top_builddir_sub in
2044   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2045   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2046   esac ;;
2047 esac
2048 ac_abs_top_builddir=$ac_pwd
2049 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2050 # for backward compatibility:
2051 ac_top_builddir=$ac_top_build_prefix
2052
2053 case $srcdir in
2054   .)  # We are building in place.
2055     ac_srcdir=.
2056     ac_top_srcdir=$ac_top_builddir_sub
2057     ac_abs_top_srcdir=$ac_pwd ;;
2058   [\\/]* | ?:[\\/]* )  # Absolute name.
2059     ac_srcdir=$srcdir$ac_dir_suffix;
2060     ac_top_srcdir=$srcdir
2061     ac_abs_top_srcdir=$srcdir ;;
2062   *) # Relative name.
2063     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2064     ac_top_srcdir=$ac_top_build_prefix$srcdir
2065     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2066 esac
2067 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2068
2069     cd "$ac_dir" || { ac_status=$?; continue; }
2070     # Check for guested configure.
2071     if test -f "$ac_srcdir/configure.gnu"; then
2072       echo &&
2073       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2074     elif test -f "$ac_srcdir/configure"; then
2075       echo &&
2076       $SHELL "$ac_srcdir/configure" --help=recursive
2077     else
2078       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2079     fi || ac_status=$?
2080     cd "$ac_pwd" || { ac_status=$?; break; }
2081   done
2082 fi
2083
2084 test -n "$ac_init_help" && exit $ac_status
2085 if $ac_init_version; then
2086   cat <<\_ACEOF
2087 GNU tar configure 1.23
2088 generated by GNU Autoconf 2.63
2089
2090 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2091 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2092 This configure script is free software; the Free Software Foundation
2093 gives unlimited permission to copy, distribute and modify it.
2094 _ACEOF
2095   exit
2096 fi
2097 cat >config.log <<_ACEOF
2098 This file contains any messages produced by compilers while
2099 running configure, to aid debugging if configure makes a mistake.
2100
2101 It was created by GNU tar $as_me 1.23, which was
2102 generated by GNU Autoconf 2.63.  Invocation command line was
2103
2104   $ $0 $@
2105
2106 _ACEOF
2107 exec 5>>config.log
2108 {
2109 cat <<_ASUNAME
2110 ## --------- ##
2111 ## Platform. ##
2112 ## --------- ##
2113
2114 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2115 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2116 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2117 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2118 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2119
2120 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2121 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2122
2123 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2124 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2125 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2126 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2127 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2128 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2129 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2130
2131 _ASUNAME
2132
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2135 do
2136   IFS=$as_save_IFS
2137   test -z "$as_dir" && as_dir=.
2138   $as_echo "PATH: $as_dir"
2139 done
2140 IFS=$as_save_IFS
2141
2142 } >&5
2143
2144 cat >&5 <<_ACEOF
2145
2146
2147 ## ----------- ##
2148 ## Core tests. ##
2149 ## ----------- ##
2150
2151 _ACEOF
2152
2153
2154 # Keep a trace of the command line.
2155 # Strip out --no-create and --no-recursion so they do not pile up.
2156 # Strip out --silent because we don't want to record it for future runs.
2157 # Also quote any args containing shell meta-characters.
2158 # Make two passes to allow for proper duplicate-argument suppression.
2159 ac_configure_args=
2160 ac_configure_args0=
2161 ac_configure_args1=
2162 ac_must_keep_next=false
2163 for ac_pass in 1 2
2164 do
2165   for ac_arg
2166   do
2167     case $ac_arg in
2168     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2169     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2170     | -silent | --silent | --silen | --sile | --sil)
2171       continue ;;
2172     *\'*)
2173       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2174     esac
2175     case $ac_pass in
2176     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2177     2)
2178       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2179       if test $ac_must_keep_next = true; then
2180         ac_must_keep_next=false # Got value, back to normal.
2181       else
2182         case $ac_arg in
2183           *=* | --config-cache | -C | -disable-* | --disable-* \
2184           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2185           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2186           | -with-* | --with-* | -without-* | --without-* | --x)
2187             case "$ac_configure_args0 " in
2188               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2189             esac
2190             ;;
2191           -* ) ac_must_keep_next=true ;;
2192         esac
2193       fi
2194       ac_configure_args="$ac_configure_args '$ac_arg'"
2195       ;;
2196     esac
2197   done
2198 done
2199 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2200 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2201
2202 # When interrupted or exit'd, cleanup temporary files, and complete
2203 # config.log.  We remove comments because anyway the quotes in there
2204 # would cause problems or look ugly.
2205 # WARNING: Use '\'' to represent an apostrophe within the trap.
2206 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2207 trap 'exit_status=$?
2208   # Save into config.log some information that might help in debugging.
2209   {
2210     echo
2211
2212     cat <<\_ASBOX
2213 ## ---------------- ##
2214 ## Cache variables. ##
2215 ## ---------------- ##
2216 _ASBOX
2217     echo
2218     # The following way of writing the cache mishandles newlines in values,
2219 (
2220   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2221     eval ac_val=\$$ac_var
2222     case $ac_val in #(
2223     *${as_nl}*)
2224       case $ac_var in #(
2225       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2226 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2227       esac
2228       case $ac_var in #(
2229       _ | IFS | as_nl) ;; #(
2230       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2231       *) $as_unset $ac_var ;;
2232       esac ;;
2233     esac
2234   done
2235   (set) 2>&1 |
2236     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2237     *${as_nl}ac_space=\ *)
2238       sed -n \
2239         "s/'\''/'\''\\\\'\'''\''/g;
2240           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2241       ;; #(
2242     *)
2243       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2244       ;;
2245     esac |
2246     sort
2247 )
2248     echo
2249
2250     cat <<\_ASBOX
2251 ## ----------------- ##
2252 ## Output variables. ##
2253 ## ----------------- ##
2254 _ASBOX
2255     echo
2256     for ac_var in $ac_subst_vars
2257     do
2258       eval ac_val=\$$ac_var
2259       case $ac_val in
2260       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2261       esac
2262       $as_echo "$ac_var='\''$ac_val'\''"
2263     done | sort
2264     echo
2265
2266     if test -n "$ac_subst_files"; then
2267       cat <<\_ASBOX
2268 ## ------------------- ##
2269 ## File substitutions. ##
2270 ## ------------------- ##
2271 _ASBOX
2272       echo
2273       for ac_var in $ac_subst_files
2274       do
2275         eval ac_val=\$$ac_var
2276         case $ac_val in
2277         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2278         esac
2279         $as_echo "$ac_var='\''$ac_val'\''"
2280       done | sort
2281       echo
2282     fi
2283
2284     if test -s confdefs.h; then
2285       cat <<\_ASBOX
2286 ## ----------- ##
2287 ## confdefs.h. ##
2288 ## ----------- ##
2289 _ASBOX
2290       echo
2291       cat confdefs.h
2292       echo
2293     fi
2294     test "$ac_signal" != 0 &&
2295       $as_echo "$as_me: caught signal $ac_signal"
2296     $as_echo "$as_me: exit $exit_status"
2297   } >&5
2298   rm -f core *.core core.conftest.* &&
2299     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2300     exit $exit_status
2301 ' 0
2302 for ac_signal in 1 2 13 15; do
2303   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2304 done
2305 ac_signal=0
2306
2307 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2308 rm -f -r conftest* confdefs.h
2309
2310 # Predefined preprocessor variables.
2311
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_NAME "$PACKAGE_NAME"
2314 _ACEOF
2315
2316
2317 cat >>confdefs.h <<_ACEOF
2318 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2319 _ACEOF
2320
2321
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2324 _ACEOF
2325
2326
2327 cat >>confdefs.h <<_ACEOF
2328 #define PACKAGE_STRING "$PACKAGE_STRING"
2329 _ACEOF
2330
2331
2332 cat >>confdefs.h <<_ACEOF
2333 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2334 _ACEOF
2335
2336
2337 # Let the site file select an alternate cache file if it wants to.
2338 # Prefer an explicitly selected file to automatically selected ones.
2339 ac_site_file1=NONE
2340 ac_site_file2=NONE
2341 if test -n "$CONFIG_SITE"; then
2342   ac_site_file1=$CONFIG_SITE
2343 elif test "x$prefix" != xNONE; then
2344   ac_site_file1=$prefix/share/config.site
2345   ac_site_file2=$prefix/etc/config.site
2346 else
2347   ac_site_file1=$ac_default_prefix/share/config.site
2348   ac_site_file2=$ac_default_prefix/etc/config.site
2349 fi
2350 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2351 do
2352   test "x$ac_site_file" = xNONE && continue
2353   if test -r "$ac_site_file"; then
2354     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2355 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2356     sed 's/^/| /' "$ac_site_file" >&5
2357     . "$ac_site_file"
2358   fi
2359 done
2360
2361 if test -r "$cache_file"; then
2362   # Some versions of bash will fail to source /dev/null (special
2363   # files actually), so we avoid doing that.
2364   if test -f "$cache_file"; then
2365     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2366 $as_echo "$as_me: loading cache $cache_file" >&6;}
2367     case $cache_file in
2368       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2369       *)                      . "./$cache_file";;
2370     esac
2371   fi
2372 else
2373   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2374 $as_echo "$as_me: creating cache $cache_file" >&6;}
2375   >$cache_file
2376 fi
2377
2378 ac_header_list="$ac_header_list fcntl.h"
2379 ac_header_list="$ac_header_list linux/fd.h"
2380 ac_header_list="$ac_header_list memory.h"
2381 ac_header_list="$ac_header_list net/errno.h"
2382 ac_header_list="$ac_header_list sgtty.h"
2383 ac_header_list="$ac_header_list string.h"
2384 ac_header_list="$ac_header_list stropts.h"
2385 ac_header_list="$ac_header_list sys/param.h"
2386 ac_header_list="$ac_header_list sys/device.h"
2387 ac_header_list="$ac_header_list sys/filio.h"
2388 ac_header_list="$ac_header_list sys/gentape.h"
2389 ac_header_list="$ac_header_list sys/inet.h"
2390 ac_header_list="$ac_header_list sys/io/trioctl.h"
2391 ac_header_list="$ac_header_list sys/mtio.h"
2392 ac_header_list="$ac_header_list sys/time.h"
2393 ac_header_list="$ac_header_list sys/tprintf.h"
2394 ac_header_list="$ac_header_list sys/tape.h"
2395 ac_header_list="$ac_header_list unistd.h"
2396 ac_header_list="$ac_header_list locale.h"
2397 ac_func_list="$ac_func_list flockfile"
2398 ac_func_list="$ac_func_list funlockfile"
2399 ac_header_list="$ac_header_list features.h"
2400 ac_header_list="$ac_header_list linewrap.h"
2401 ac_func_list="$ac_func_list pathconf"
2402 ac_func_list="$ac_func_list btowc"
2403 ac_func_list="$ac_func_list canonicalize_file_name"
2404 ac_func_list="$ac_func_list realpath"
2405 ac_func_list="$ac_func_list chown"
2406 ac_func_list="$ac_func_list fchown"
2407 ac_header_list="$ac_header_list dirent.h"
2408 ac_func_list="$ac_func_list fdopendir"
2409 ac_func_list="$ac_func_list dup2"
2410 ac_header_list="$ac_header_list errno.h"
2411 ac_func_list="$ac_func_list fchdir"
2412 ac_func_list="$ac_func_list fcntl"
2413 ac_header_list="$ac_header_list float.h"
2414 ac_func_list="$ac_func_list isblank"
2415 ac_func_list="$ac_func_list iswctype"
2416 ac_func_list="$ac_func_list mbsrtowcs"
2417 ac_func_list="$ac_func_list mempcpy"
2418 ac_func_list="$ac_func_list wmemchr"
2419 ac_func_list="$ac_func_list wmemcpy"
2420 ac_func_list="$ac_func_list wmempcpy"
2421 ac_header_list="$ac_header_list wctype.h"
2422 gl_fnmatch_required=GNU
2423 ac_header_list="$ac_header_list stdio_ext.h"
2424 ac_func_list="$ac_func_list __fpending"
2425 ac_func_list="$ac_func_list ftruncate"
2426 ac_func_list="$ac_func_list getdelim"
2427 ac_func_list="$ac_func_list getdtablesize"
2428 gl_getopt_required=GNU
2429 ac_header_list="$ac_header_list getopt.h"
2430 ac_func_list="$ac_func_list gettimeofday"
2431 ac_func_list="$ac_func_list nanotime"
2432 ac_header_list="$ac_header_list stdint.h"
2433 ac_header_list="$ac_header_list wchar.h"
2434 ac_header_list="$ac_header_list inttypes.h"
2435 ac_header_list="$ac_header_list langinfo.h"
2436 ac_func_list="$ac_func_list lchmod"
2437 ac_func_list="$ac_func_list lstat"
2438 ac_func_list="$ac_func_list mbsinit"
2439 ac_func_list="$ac_func_list mbrtowc"
2440 ac_header_list="$ac_header_list sys/mman.h"
2441 ac_func_list="$ac_func_list mprotect"
2442 ac_func_list="$ac_func_list alarm"
2443 ac_func_list="$ac_func_list nl_langinfo"
2444 ac_func_list="$ac_func_list readlink"
2445 ac_func_list="$ac_func_list wcscoll"
2446 ac_func_list="$ac_func_list setenv"
2447 ac_func_list="$ac_func_list sleep"
2448 ac_header_list="$ac_header_list stdarg.h"
2449 ac_header_list="$ac_header_list stddef.h"
2450 ac_header_list="$ac_header_list stdio.h"
2451 ac_header_list="$ac_header_list stdlib.h"
2452 ac_header_list="$ac_header_list sys/socket.h"
2453 ac_header_list="$ac_header_list strings.h"
2454 ac_func_list="$ac_func_list strndup"
2455 ac_header_list="$ac_header_list sys/stat.h"
2456 ac_header_list="$ac_header_list sysexits.h"
2457 ac_header_list="$ac_header_list time.h"
2458 ac_func_list="$ac_func_list pipe"
2459 ac_header_list="$ac_header_list priv.h"
2460 ac_header_list="$ac_header_list utime.h"
2461 ac_func_list="$ac_func_list futimes"
2462 ac_func_list="$ac_func_list futimesat"
2463 ac_func_list="$ac_func_list futimens"
2464 ac_func_list="$ac_func_list utimensat"
2465 ac_func_list="$ac_func_list lutimes"
2466 ac_func_list="$ac_func_list vasnprintf"
2467 ac_func_list="$ac_func_list wcrtomb"
2468 ac_func_list="$ac_func_list iswcntrl"
2469 ac_func_list="$ac_func_list wcwidth"
2470 ac_header_list="$ac_header_list netdb.h"
2471 ac_header_list="$ac_header_list sys/wait.h"
2472 ac_header_list="$ac_header_list pwd.h"
2473 ac_header_list="$ac_header_list grp.h"
2474 ac_func_list="$ac_func_list mkfifo"
2475 ac_func_list="$ac_func_list setlocale"
2476 gt_needs="$gt_needs need-formatstring-macros"
2477 # Check that the precious variables saved in the cache have kept the same
2478 # value.
2479 ac_cache_corrupted=false
2480 for ac_var in $ac_precious_vars; do
2481   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2482   eval ac_new_set=\$ac_env_${ac_var}_set
2483   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2484   eval ac_new_val=\$ac_env_${ac_var}_value
2485   case $ac_old_set,$ac_new_set in
2486     set,)
2487       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2488 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2489       ac_cache_corrupted=: ;;
2490     ,set)
2491       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2492 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2493       ac_cache_corrupted=: ;;
2494     ,);;
2495     *)
2496       if test "x$ac_old_val" != "x$ac_new_val"; then
2497         # differences in whitespace do not lead to failure.
2498         ac_old_val_w=`echo x $ac_old_val`
2499         ac_new_val_w=`echo x $ac_new_val`
2500         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2501           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2502 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2503           ac_cache_corrupted=:
2504         else
2505           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2506 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2507           eval $ac_var=\$ac_old_val
2508         fi
2509         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2510 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2511         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2512 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2513       fi;;
2514   esac
2515   # Pass precious variables to config.status.
2516   if test "$ac_new_set" = set; then
2517     case $ac_new_val in
2518     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2519     *) ac_arg=$ac_var=$ac_new_val ;;
2520     esac
2521     case " $ac_configure_args " in
2522       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2523       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2524     esac
2525   fi
2526 done
2527 if $ac_cache_corrupted; then
2528   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2529 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2530   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2531 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2532   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2533 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2534    { (exit 1); exit 1; }; }
2535 fi
2536
2537
2538
2539
2540
2541
2542
2543
2544
2545
2546
2547
2548
2549
2550
2551
2552
2553
2554
2555
2556
2557
2558
2559
2560
2561 ac_ext=c
2562 ac_cpp='$CPP $CPPFLAGS'
2563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2566
2567
2568
2569 ac_aux_dir=
2570 for ac_dir in build-aux "$srcdir"/build-aux; do
2571   if test -f "$ac_dir/install-sh"; then
2572     ac_aux_dir=$ac_dir
2573     ac_install_sh="$ac_aux_dir/install-sh -c"
2574     break
2575   elif test -f "$ac_dir/install.sh"; then
2576     ac_aux_dir=$ac_dir
2577     ac_install_sh="$ac_aux_dir/install.sh -c"
2578     break
2579   elif test -f "$ac_dir/shtool"; then
2580     ac_aux_dir=$ac_dir
2581     ac_install_sh="$ac_aux_dir/shtool install -c"
2582     break
2583   fi
2584 done
2585 if test -z "$ac_aux_dir"; then
2586   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2587 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2588    { (exit 1); exit 1; }; }
2589 fi
2590
2591 # These three variables are undocumented and unsupported,
2592 # and are intended to be withdrawn in a future Autoconf release.
2593 # They can cause serious problems if a builder's source tree is in a directory
2594 # whose full name contains unusual characters.
2595 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2596 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2597 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2598
2599
2600 ac_config_headers="$ac_config_headers config.h"
2601
2602
2603 am__api_version='1.11'
2604
2605 # Find a good install program.  We prefer a C program (faster),
2606 # so one script is as good as another.  But avoid the broken or
2607 # incompatible versions:
2608 # SysV /etc/install, /usr/sbin/install
2609 # SunOS /usr/etc/install
2610 # IRIX /sbin/install
2611 # AIX /bin/install
2612 # AmigaOS /C/install, which installs bootblocks on floppy discs
2613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2616 # OS/2's system install, which has a completely different semantic
2617 # ./install, which can be erroneously created by make from ./install.sh.
2618 # Reject install programs that cannot install multiple files.
2619 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2620 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2621 if test -z "$INSTALL"; then
2622 if test "${ac_cv_path_install+set}" = set; then
2623   $as_echo_n "(cached) " >&6
2624 else
2625   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2626 for as_dir in $PATH
2627 do
2628   IFS=$as_save_IFS
2629   test -z "$as_dir" && as_dir=.
2630   # Account for people who put trailing slashes in PATH elements.
2631 case $as_dir/ in
2632   ./ | .// | /cC/* | \
2633   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2634   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2635   /usr/ucb/* ) ;;
2636   *)
2637     # OSF1 and SCO ODT 3.0 have their own names for install.
2638     # Don't use installbsd from OSF since it installs stuff as root
2639     # by default.
2640     for ac_prog in ginstall scoinst install; do
2641       for ac_exec_ext in '' $ac_executable_extensions; do
2642         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2643           if test $ac_prog = install &&
2644             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2645             # AIX install.  It has an incompatible calling convention.
2646             :
2647           elif test $ac_prog = install &&
2648             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2649             # program-specific install script used by HP pwplus--don't use.
2650             :
2651           else
2652             rm -rf conftest.one conftest.two conftest.dir
2653             echo one > conftest.one
2654             echo two > conftest.two
2655             mkdir conftest.dir
2656             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2657               test -s conftest.one && test -s conftest.two &&
2658               test -s conftest.dir/conftest.one &&
2659               test -s conftest.dir/conftest.two
2660             then
2661               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2662               break 3
2663             fi
2664           fi
2665         fi
2666       done
2667     done
2668     ;;
2669 esac
2670
2671 done
2672 IFS=$as_save_IFS
2673
2674 rm -rf conftest.one conftest.two conftest.dir
2675
2676 fi
2677   if test "${ac_cv_path_install+set}" = set; then
2678     INSTALL=$ac_cv_path_install
2679   else
2680     # As a last resort, use the slow shell script.  Don't cache a
2681     # value for INSTALL within a source directory, because that will
2682     # break other packages using the cache if that directory is
2683     # removed, or if the value is a relative name.
2684     INSTALL=$ac_install_sh
2685   fi
2686 fi
2687 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2688 $as_echo "$INSTALL" >&6; }
2689
2690 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2691 # It thinks the first close brace ends the variable substitution.
2692 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2693
2694 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2695
2696 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2697
2698 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2699 $as_echo_n "checking whether build environment is sane... " >&6; }
2700 # Just in case
2701 sleep 1
2702 echo timestamp > conftest.file
2703 # Reject unsafe characters in $srcdir or the absolute working directory
2704 # name.  Accept space and tab only in the latter.
2705 am_lf='
2706 '
2707 case `pwd` in
2708   *[\\\"\#\$\&\'\`$am_lf]*)
2709     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2710 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2711    { (exit 1); exit 1; }; };;
2712 esac
2713 case $srcdir in
2714   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2715     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2716 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2717    { (exit 1); exit 1; }; };;
2718 esac
2719
2720 # Do `set' in a subshell so we don't clobber the current shell's
2721 # arguments.  Must try -L first in case configure is actually a
2722 # symlink; some systems play weird games with the mod time of symlinks
2723 # (eg FreeBSD returns the mod time of the symlink's containing
2724 # directory).
2725 if (
2726    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2727    if test "$*" = "X"; then
2728       # -L didn't work.
2729       set X `ls -t "$srcdir/configure" conftest.file`
2730    fi
2731    rm -f conftest.file
2732    if test "$*" != "X $srcdir/configure conftest.file" \
2733       && test "$*" != "X conftest.file $srcdir/configure"; then
2734
2735       # If neither matched, then we have a broken ls.  This can happen
2736       # if, for instance, CONFIG_SHELL is bash and it inherits a
2737       # broken ls alias from the environment.  This has actually
2738       # happened.  Such a system could not be considered "sane".
2739       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2740 alias in your environment" >&5
2741 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2742 alias in your environment" >&2;}
2743    { (exit 1); exit 1; }; }
2744    fi
2745
2746    test "$2" = conftest.file
2747    )
2748 then
2749    # Ok.
2750    :
2751 else
2752    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2753 Check your system clock" >&5
2754 $as_echo "$as_me: error: newly created file is older than distributed files!
2755 Check your system clock" >&2;}
2756    { (exit 1); exit 1; }; }
2757 fi
2758 { $as_echo "$as_me:$LINENO: result: yes" >&5
2759 $as_echo "yes" >&6; }
2760 test "$program_prefix" != NONE &&
2761   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2762 # Use a double $ so make ignores it.
2763 test "$program_suffix" != NONE &&
2764   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2765 # Double any \ or $.
2766 # By default was `s,x,x', remove it if useless.
2767 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2768 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2769
2770 # expand $ac_aux_dir to an absolute path
2771 am_aux_dir=`cd $ac_aux_dir && pwd`
2772
2773 if test x"${MISSING+set}" != xset; then
2774   case $am_aux_dir in
2775   *\ * | *\     *)
2776     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2777   *)
2778     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2779   esac
2780 fi
2781 # Use eval to expand $SHELL
2782 if eval "$MISSING --run true"; then
2783   am_missing_run="$MISSING --run "
2784 else
2785   am_missing_run=
2786   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2787 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2788 fi
2789
2790 if test x"${install_sh}" != xset; then
2791   case $am_aux_dir in
2792   *\ * | *\     *)
2793     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2794   *)
2795     install_sh="\${SHELL} $am_aux_dir/install-sh"
2796   esac
2797 fi
2798
2799 # Installed binaries are usually stripped using `strip' when the user
2800 # run `make install-strip'.  However `strip' might not be the right
2801 # tool to use in cross-compilation environments, therefore Automake
2802 # will honor the `STRIP' environment variable to overrule this program.
2803 if test "$cross_compiling" != no; then
2804   if test -n "$ac_tool_prefix"; then
2805   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2806 set dummy ${ac_tool_prefix}strip; ac_word=$2
2807 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2808 $as_echo_n "checking for $ac_word... " >&6; }
2809 if test "${ac_cv_prog_STRIP+set}" = set; then
2810   $as_echo_n "(cached) " >&6
2811 else
2812   if test -n "$STRIP"; then
2813   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2814 else
2815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2816 for as_dir in $PATH
2817 do
2818   IFS=$as_save_IFS
2819   test -z "$as_dir" && as_dir=.
2820   for ac_exec_ext in '' $ac_executable_extensions; do
2821   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2822     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2823     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2824     break 2
2825   fi
2826 done
2827 done
2828 IFS=$as_save_IFS
2829
2830 fi
2831 fi
2832 STRIP=$ac_cv_prog_STRIP
2833 if test -n "$STRIP"; then
2834   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2835 $as_echo "$STRIP" >&6; }
2836 else
2837   { $as_echo "$as_me:$LINENO: result: no" >&5
2838 $as_echo "no" >&6; }
2839 fi
2840
2841
2842 fi
2843 if test -z "$ac_cv_prog_STRIP"; then
2844   ac_ct_STRIP=$STRIP
2845   # Extract the first word of "strip", so it can be a program name with args.
2846 set dummy strip; ac_word=$2
2847 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2848 $as_echo_n "checking for $ac_word... " >&6; }
2849 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2850   $as_echo_n "(cached) " >&6
2851 else
2852   if test -n "$ac_ct_STRIP"; then
2853   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2854 else
2855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2856 for as_dir in $PATH
2857 do
2858   IFS=$as_save_IFS
2859   test -z "$as_dir" && as_dir=.
2860   for ac_exec_ext in '' $ac_executable_extensions; do
2861   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2862     ac_cv_prog_ac_ct_STRIP="strip"
2863     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2864     break 2
2865   fi
2866 done
2867 done
2868 IFS=$as_save_IFS
2869
2870 fi
2871 fi
2872 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2873 if test -n "$ac_ct_STRIP"; then
2874   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2875 $as_echo "$ac_ct_STRIP" >&6; }
2876 else
2877   { $as_echo "$as_me:$LINENO: result: no" >&5
2878 $as_echo "no" >&6; }
2879 fi
2880
2881   if test "x$ac_ct_STRIP" = x; then
2882     STRIP=":"
2883   else
2884     case $cross_compiling:$ac_tool_warned in
2885 yes:)
2886 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2887 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2888 ac_tool_warned=yes ;;
2889 esac
2890     STRIP=$ac_ct_STRIP
2891   fi
2892 else
2893   STRIP="$ac_cv_prog_STRIP"
2894 fi
2895
2896 fi
2897 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2898
2899 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2900 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2901 if test -z "$MKDIR_P"; then
2902   if test "${ac_cv_path_mkdir+set}" = set; then
2903   $as_echo_n "(cached) " >&6
2904 else
2905   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2907 do
2908   IFS=$as_save_IFS
2909   test -z "$as_dir" && as_dir=.
2910   for ac_prog in mkdir gmkdir; do
2911          for ac_exec_ext in '' $ac_executable_extensions; do
2912            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2913            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2914              'mkdir (GNU coreutils) '* | \
2915              'mkdir (coreutils) '* | \
2916              'mkdir (fileutils) '4.1*)
2917                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2918                break 3;;
2919            esac
2920          done
2921        done
2922 done
2923 IFS=$as_save_IFS
2924
2925 fi
2926
2927   if test "${ac_cv_path_mkdir+set}" = set; then
2928     MKDIR_P="$ac_cv_path_mkdir -p"
2929   else
2930     # As a last resort, use the slow shell script.  Don't cache a
2931     # value for MKDIR_P within a source directory, because that will
2932     # break other packages using the cache if that directory is
2933     # removed, or if the value is a relative name.
2934     test -d ./--version && rmdir ./--version
2935     MKDIR_P="$ac_install_sh -d"
2936   fi
2937 fi
2938 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2939 $as_echo "$MKDIR_P" >&6; }
2940
2941
2942 mkdir_p="$MKDIR_P"
2943 case $mkdir_p in
2944   [\\/$]* | ?:[\\/]*) ;;
2945   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2946 esac
2947
2948 for ac_prog in gawk mawk nawk awk
2949 do
2950   # Extract the first word of "$ac_prog", so it can be a program name with args.
2951 set dummy $ac_prog; ac_word=$2
2952 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2953 $as_echo_n "checking for $ac_word... " >&6; }
2954 if test "${ac_cv_prog_AWK+set}" = set; then
2955   $as_echo_n "(cached) " >&6
2956 else
2957   if test -n "$AWK"; then
2958   ac_cv_prog_AWK="$AWK" # Let the user override the test.
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2962 do
2963   IFS=$as_save_IFS
2964   test -z "$as_dir" && as_dir=.
2965   for ac_exec_ext in '' $ac_executable_extensions; do
2966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2967     ac_cv_prog_AWK="$ac_prog"
2968     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2969     break 2
2970   fi
2971 done
2972 done
2973 IFS=$as_save_IFS
2974
2975 fi
2976 fi
2977 AWK=$ac_cv_prog_AWK
2978 if test -n "$AWK"; then
2979   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2980 $as_echo "$AWK" >&6; }
2981 else
2982   { $as_echo "$as_me:$LINENO: result: no" >&5
2983 $as_echo "no" >&6; }
2984 fi
2985
2986
2987   test -n "$AWK" && break
2988 done
2989
2990 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2991 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2992 set x ${MAKE-make}
2993 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2994 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2995   $as_echo_n "(cached) " >&6
2996 else
2997   cat >conftest.make <<\_ACEOF
2998 SHELL = /bin/sh
2999 all:
3000         @echo '@@@%%%=$(MAKE)=@@@%%%'
3001 _ACEOF
3002 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3003 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3004   *@@@%%%=?*=@@@%%%*)
3005     eval ac_cv_prog_make_${ac_make}_set=yes;;
3006   *)
3007     eval ac_cv_prog_make_${ac_make}_set=no;;
3008 esac
3009 rm -f conftest.make
3010 fi
3011 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3012   { $as_echo "$as_me:$LINENO: result: yes" >&5
3013 $as_echo "yes" >&6; }
3014   SET_MAKE=
3015 else
3016   { $as_echo "$as_me:$LINENO: result: no" >&5
3017 $as_echo "no" >&6; }
3018   SET_MAKE="MAKE=${MAKE-make}"
3019 fi
3020
3021 rm -rf .tst 2>/dev/null
3022 mkdir .tst 2>/dev/null
3023 if test -d .tst; then
3024   am__leading_dot=.
3025 else
3026   am__leading_dot=_
3027 fi
3028 rmdir .tst 2>/dev/null
3029
3030 # Check whether --enable-silent-rules was given.
3031 if test "${enable_silent_rules+set}" = set; then
3032   enableval=$enable_silent_rules;
3033 fi
3034
3035 case $enable_silent_rules in
3036 yes) AM_DEFAULT_VERBOSITY=0;;
3037 no)  AM_DEFAULT_VERBOSITY=1;;
3038 *)   AM_DEFAULT_VERBOSITY=1;;
3039 esac
3040 AM_BACKSLASH='\'
3041
3042 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3043   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3044   # is not polluted with repeated "-I."
3045   am__isrc=' -I$(srcdir)'
3046   # test to see if srcdir already configured
3047   if test -f $srcdir/config.status; then
3048     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3049 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3050    { (exit 1); exit 1; }; }
3051   fi
3052 fi
3053
3054 # test whether we have cygpath
3055 if test -z "$CYGPATH_W"; then
3056   if (cygpath --version) >/dev/null 2>/dev/null; then
3057     CYGPATH_W='cygpath -w'
3058   else
3059     CYGPATH_W=echo
3060   fi
3061 fi
3062
3063
3064 # Define the identity of the package.
3065  PACKAGE='tar'
3066  VERSION='1.23'
3067
3068
3069 cat >>confdefs.h <<_ACEOF
3070 #define PACKAGE "$PACKAGE"
3071 _ACEOF
3072
3073
3074 cat >>confdefs.h <<_ACEOF
3075 #define VERSION "$VERSION"
3076 _ACEOF
3077
3078 # Some tools Automake needs.
3079
3080 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3081
3082
3083 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3084
3085
3086 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3087
3088
3089 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3090
3091
3092 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3093
3094 # We need awk for the "check" target.  The system "awk" is bad on
3095 # some platforms.
3096 # Always define AMTAR for backward compatibility.
3097
3098 AMTAR=${AMTAR-"${am_missing_run}tar"}
3099
3100
3101 { $as_echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
3102 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3103 # Loop over all known methods to create a tar archive until one works.
3104 _am_tools='gnutar plaintar pax cpio none'
3105 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3106 # Do not fold the above two line into one, because Tru64 sh and
3107 # Solaris sh will not grok spaces in the rhs of `-'.
3108 for _am_tool in $_am_tools
3109 do
3110   case $_am_tool in
3111   gnutar)
3112     for _am_tar in tar gnutar gtar;
3113     do
3114       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3115    ($_am_tar --version) >&5 2>&5
3116    ac_status=$?
3117    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3118    (exit $ac_status); } && break
3119     done
3120     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3121     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3122     am__untar="$_am_tar -xf -"
3123     ;;
3124   plaintar)
3125     # Must skip GNU tar: if it does not support --format= it doesn't create
3126     # ustar tarball either.
3127     (tar --version) >/dev/null 2>&1 && continue
3128     am__tar='tar chf - "$$tardir"'
3129     am__tar_='tar chf - "$tardir"'
3130     am__untar='tar xf -'
3131     ;;
3132   pax)
3133     am__tar='pax -L -x ustar -w "$$tardir"'
3134     am__tar_='pax -L -x ustar -w "$tardir"'
3135     am__untar='pax -r'
3136     ;;
3137   cpio)
3138     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3139     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3140     am__untar='cpio -i -H ustar -d'
3141     ;;
3142   none)
3143     am__tar=false
3144     am__tar_=false
3145     am__untar=false
3146     ;;
3147   esac
3148
3149   # If the value was cached, stop now.  We just wanted to have am__tar
3150   # and am__untar set.
3151   test -n "${am_cv_prog_tar_ustar}" && break
3152
3153   # tar/untar a dummy directory, and stop if the command works
3154   rm -rf conftest.dir
3155   mkdir conftest.dir
3156   echo GrepMe > conftest.dir/file
3157   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3158    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3159    ac_status=$?
3160    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161    (exit $ac_status); }
3162   rm -rf conftest.dir
3163   if test -s conftest.tar; then
3164     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3165    ($am__untar <conftest.tar) >&5 2>&5
3166    ac_status=$?
3167    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168    (exit $ac_status); }
3169     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3170   fi
3171 done
3172 rm -rf conftest.dir
3173
3174 if test "${am_cv_prog_tar_ustar+set}" = set; then
3175   $as_echo_n "(cached) " >&6
3176 else
3177   am_cv_prog_tar_ustar=$_am_tool
3178 fi
3179
3180 { $as_echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
3181 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3182
3183
3184
3185
3186
3187
3188 # Enable silent rules by default:
3189 # Check whether --enable-silent-rules was given.
3190 if test "${enable_silent_rules+set}" = set; then
3191   enableval=$enable_silent_rules;
3192 fi
3193
3194 case $enable_silent_rules in
3195 yes) AM_DEFAULT_VERBOSITY=0;;
3196 no)  AM_DEFAULT_VERBOSITY=1;;
3197 *)   AM_DEFAULT_VERBOSITY=0;;
3198 esac
3199 AM_BACKSLASH='\'
3200
3201
3202 ac_ext=c
3203 ac_cpp='$CPP $CPPFLAGS'
3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 if test -n "$ac_tool_prefix"; then
3208   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3209 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3210 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3211 $as_echo_n "checking for $ac_word... " >&6; }
3212 if test "${ac_cv_prog_CC+set}" = set; then
3213   $as_echo_n "(cached) " >&6
3214 else
3215   if test -n "$CC"; then
3216   ac_cv_prog_CC="$CC" # Let the user override the test.
3217 else
3218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3219 for as_dir in $PATH
3220 do
3221   IFS=$as_save_IFS
3222   test -z "$as_dir" && as_dir=.
3223   for ac_exec_ext in '' $ac_executable_extensions; do
3224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3225     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3226     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3227     break 2
3228   fi
3229 done
3230 done
3231 IFS=$as_save_IFS
3232
3233 fi
3234 fi
3235 CC=$ac_cv_prog_CC
3236 if test -n "$CC"; then
3237   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3238 $as_echo "$CC" >&6; }
3239 else
3240   { $as_echo "$as_me:$LINENO: result: no" >&5
3241 $as_echo "no" >&6; }
3242 fi
3243
3244
3245 fi
3246 if test -z "$ac_cv_prog_CC"; then
3247   ac_ct_CC=$CC
3248   # Extract the first word of "gcc", so it can be a program name with args.
3249 set dummy gcc; ac_word=$2
3250 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3251 $as_echo_n "checking for $ac_word... " >&6; }
3252 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3253   $as_echo_n "(cached) " >&6
3254 else
3255   if test -n "$ac_ct_CC"; then
3256   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3257 else
3258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3259 for as_dir in $PATH
3260 do
3261   IFS=$as_save_IFS
3262   test -z "$as_dir" && as_dir=.
3263   for ac_exec_ext in '' $ac_executable_extensions; do
3264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3265     ac_cv_prog_ac_ct_CC="gcc"
3266     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3267     break 2
3268   fi
3269 done
3270 done
3271 IFS=$as_save_IFS
3272
3273 fi
3274 fi
3275 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3276 if test -n "$ac_ct_CC"; then
3277   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3278 $as_echo "$ac_ct_CC" >&6; }
3279 else
3280   { $as_echo "$as_me:$LINENO: result: no" >&5
3281 $as_echo "no" >&6; }
3282 fi
3283
3284   if test "x$ac_ct_CC" = x; then
3285     CC=""
3286   else
3287     case $cross_compiling:$ac_tool_warned in
3288 yes:)
3289 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3290 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3291 ac_tool_warned=yes ;;
3292 esac
3293     CC=$ac_ct_CC
3294   fi
3295 else
3296   CC="$ac_cv_prog_CC"
3297 fi
3298
3299 if test -z "$CC"; then
3300           if test -n "$ac_tool_prefix"; then
3301     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3302 set dummy ${ac_tool_prefix}cc; ac_word=$2
3303 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3304 $as_echo_n "checking for $ac_word... " >&6; }
3305 if test "${ac_cv_prog_CC+set}" = set; then
3306   $as_echo_n "(cached) " >&6
3307 else
3308   if test -n "$CC"; then
3309   ac_cv_prog_CC="$CC" # Let the user override the test.
3310 else
3311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312 for as_dir in $PATH
3313 do
3314   IFS=$as_save_IFS
3315   test -z "$as_dir" && as_dir=.
3316   for ac_exec_ext in '' $ac_executable_extensions; do
3317   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3318     ac_cv_prog_CC="${ac_tool_prefix}cc"
3319     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320     break 2
3321   fi
3322 done
3323 done
3324 IFS=$as_save_IFS
3325
3326 fi
3327 fi
3328 CC=$ac_cv_prog_CC
3329 if test -n "$CC"; then
3330   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3331 $as_echo "$CC" >&6; }
3332 else
3333   { $as_echo "$as_me:$LINENO: result: no" >&5
3334 $as_echo "no" >&6; }
3335 fi
3336
3337
3338   fi
3339 fi
3340 if test -z "$CC"; then
3341   # Extract the first word of "cc", so it can be a program name with args.
3342 set dummy cc; ac_word=$2
3343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3344 $as_echo_n "checking for $ac_word... " >&6; }
3345 if test "${ac_cv_prog_CC+set}" = set; then
3346   $as_echo_n "(cached) " >&6
3347 else
3348   if test -n "$CC"; then
3349   ac_cv_prog_CC="$CC" # Let the user override the test.
3350 else
3351   ac_prog_rejected=no
3352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3353 for as_dir in $PATH
3354 do
3355   IFS=$as_save_IFS
3356   test -z "$as_dir" && as_dir=.
3357   for ac_exec_ext in '' $ac_executable_extensions; do
3358   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3359     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3360        ac_prog_rejected=yes
3361        continue
3362      fi
3363     ac_cv_prog_CC="cc"
3364     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3365     break 2
3366   fi
3367 done
3368 done
3369 IFS=$as_save_IFS
3370
3371 if test $ac_prog_rejected = yes; then
3372   # We found a bogon in the path, so make sure we never use it.
3373   set dummy $ac_cv_prog_CC
3374   shift
3375   if test $# != 0; then
3376     # We chose a different compiler from the bogus one.
3377     # However, it has the same basename, so the bogon will be chosen
3378     # first if we set CC to just the basename; use the full file name.
3379     shift
3380     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3381   fi
3382 fi
3383 fi
3384 fi
3385 CC=$ac_cv_prog_CC
3386 if test -n "$CC"; then
3387   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3388 $as_echo "$CC" >&6; }
3389 else
3390   { $as_echo "$as_me:$LINENO: result: no" >&5
3391 $as_echo "no" >&6; }
3392 fi
3393
3394
3395 fi
3396 if test -z "$CC"; then
3397   if test -n "$ac_tool_prefix"; then
3398   for ac_prog in cl.exe
3399   do
3400     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3401 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3402 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3403 $as_echo_n "checking for $ac_word... " >&6; }
3404 if test "${ac_cv_prog_CC+set}" = set; then
3405   $as_echo_n "(cached) " >&6
3406 else
3407   if test -n "$CC"; then
3408   ac_cv_prog_CC="$CC" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3412 do
3413   IFS=$as_save_IFS
3414   test -z "$as_dir" && as_dir=.
3415   for ac_exec_ext in '' $ac_executable_extensions; do
3416   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3417     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3418     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419     break 2
3420   fi
3421 done
3422 done
3423 IFS=$as_save_IFS
3424
3425 fi
3426 fi
3427 CC=$ac_cv_prog_CC
3428 if test -n "$CC"; then
3429   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3430 $as_echo "$CC" >&6; }
3431 else
3432   { $as_echo "$as_me:$LINENO: result: no" >&5
3433 $as_echo "no" >&6; }
3434 fi
3435
3436
3437     test -n "$CC" && break
3438   done
3439 fi
3440 if test -z "$CC"; then
3441   ac_ct_CC=$CC
3442   for ac_prog in cl.exe
3443 do
3444   # Extract the first word of "$ac_prog", so it can be a program name with args.
3445 set dummy $ac_prog; ac_word=$2
3446 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3447 $as_echo_n "checking for $ac_word... " >&6; }
3448 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3449   $as_echo_n "(cached) " >&6
3450 else
3451   if test -n "$ac_ct_CC"; then
3452   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3453 else
3454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3455 for as_dir in $PATH
3456 do
3457   IFS=$as_save_IFS
3458   test -z "$as_dir" && as_dir=.
3459   for ac_exec_ext in '' $ac_executable_extensions; do
3460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3461     ac_cv_prog_ac_ct_CC="$ac_prog"
3462     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3463     break 2
3464   fi
3465 done
3466 done
3467 IFS=$as_save_IFS
3468
3469 fi
3470 fi
3471 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3472 if test -n "$ac_ct_CC"; then
3473   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3474 $as_echo "$ac_ct_CC" >&6; }
3475 else
3476   { $as_echo "$as_me:$LINENO: result: no" >&5
3477 $as_echo "no" >&6; }
3478 fi
3479
3480
3481   test -n "$ac_ct_CC" && break
3482 done
3483
3484   if test "x$ac_ct_CC" = x; then
3485     CC=""
3486   else
3487     case $cross_compiling:$ac_tool_warned in
3488 yes:)
3489 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3491 ac_tool_warned=yes ;;
3492 esac
3493     CC=$ac_ct_CC
3494   fi
3495 fi
3496
3497 fi
3498
3499
3500 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3501 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3502 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3503 See \`config.log' for more details." >&5
3504 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3505 See \`config.log' for more details." >&2;}
3506    { (exit 1); exit 1; }; }; }
3507
3508 # Provide some information about the compiler.
3509 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3510 set X $ac_compile
3511 ac_compiler=$2
3512 { (ac_try="$ac_compiler --version >&5"
3513 case "(($ac_try" in
3514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515   *) ac_try_echo=$ac_try;;
3516 esac
3517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3518 $as_echo "$ac_try_echo") >&5
3519   (eval "$ac_compiler --version >&5") 2>&5
3520   ac_status=$?
3521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3522   (exit $ac_status); }
3523 { (ac_try="$ac_compiler -v >&5"
3524 case "(($ac_try" in
3525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3526   *) ac_try_echo=$ac_try;;
3527 esac
3528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3529 $as_echo "$ac_try_echo") >&5
3530   (eval "$ac_compiler -v >&5") 2>&5
3531   ac_status=$?
3532   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3533   (exit $ac_status); }
3534 { (ac_try="$ac_compiler -V >&5"
3535 case "(($ac_try" in
3536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537   *) ac_try_echo=$ac_try;;
3538 esac
3539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3540 $as_echo "$ac_try_echo") >&5
3541   (eval "$ac_compiler -V >&5") 2>&5
3542   ac_status=$?
3543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3544   (exit $ac_status); }
3545
3546 cat >conftest.$ac_ext <<_ACEOF
3547 /* confdefs.h.  */
3548 _ACEOF
3549 cat confdefs.h >>conftest.$ac_ext
3550 cat >>conftest.$ac_ext <<_ACEOF
3551 /* end confdefs.h.  */
3552
3553 int
3554 main ()
3555 {
3556
3557   ;
3558   return 0;
3559 }
3560 _ACEOF
3561 ac_clean_files_save=$ac_clean_files
3562 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3563 # Try to create an executable without -o first, disregard a.out.
3564 # It will help us diagnose broken compilers, and finding out an intuition
3565 # of exeext.
3566 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3567 $as_echo_n "checking for C compiler default output file name... " >&6; }
3568 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3569
3570 # The possible output files:
3571 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3572
3573 ac_rmfiles=
3574 for ac_file in $ac_files
3575 do
3576   case $ac_file in
3577     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3578     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3579   esac
3580 done
3581 rm -f $ac_rmfiles
3582
3583 if { (ac_try="$ac_link_default"
3584 case "(($ac_try" in
3585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3586   *) ac_try_echo=$ac_try;;
3587 esac
3588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3589 $as_echo "$ac_try_echo") >&5
3590   (eval "$ac_link_default") 2>&5
3591   ac_status=$?
3592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3593   (exit $ac_status); }; then
3594   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3595 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3596 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3597 # so that the user can short-circuit this test for compilers unknown to
3598 # Autoconf.
3599 for ac_file in $ac_files ''
3600 do
3601   test -f "$ac_file" || continue
3602   case $ac_file in
3603     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3604         ;;
3605     [ab].out )
3606         # We found the default executable, but exeext='' is most
3607         # certainly right.
3608         break;;
3609     *.* )
3610         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3611         then :; else
3612            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3613         fi
3614         # We set ac_cv_exeext here because the later test for it is not
3615         # safe: cross compilers may not add the suffix if given an `-o'
3616         # argument, so we may need to know it at that point already.
3617         # Even if this section looks crufty: it has the advantage of
3618         # actually working.
3619         break;;
3620     * )
3621         break;;
3622   esac
3623 done
3624 test "$ac_cv_exeext" = no && ac_cv_exeext=
3625
3626 else
3627   ac_file=''
3628 fi
3629
3630 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3631 $as_echo "$ac_file" >&6; }
3632 if test -z "$ac_file"; then
3633   $as_echo "$as_me: failed program was:" >&5
3634 sed 's/^/| /' conftest.$ac_ext >&5
3635
3636 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3639 See \`config.log' for more details." >&5
3640 $as_echo "$as_me: error: C compiler cannot create executables
3641 See \`config.log' for more details." >&2;}
3642    { (exit 77); exit 77; }; }; }
3643 fi
3644
3645 ac_exeext=$ac_cv_exeext
3646
3647 # Check that the compiler produces executables we can run.  If not, either
3648 # the compiler is broken, or we cross compile.
3649 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3650 $as_echo_n "checking whether the C compiler works... " >&6; }
3651 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3652 # If not cross compiling, check that we can run a simple program.
3653 if test "$cross_compiling" != yes; then
3654   if { ac_try='./$ac_file'
3655   { (case "(($ac_try" in
3656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657   *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3660 $as_echo "$ac_try_echo") >&5
3661   (eval "$ac_try") 2>&5
3662   ac_status=$?
3663   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3664   (exit $ac_status); }; }; then
3665     cross_compiling=no
3666   else
3667     if test "$cross_compiling" = maybe; then
3668         cross_compiling=yes
3669     else
3670         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3671 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3672 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3673 If you meant to cross compile, use \`--host'.
3674 See \`config.log' for more details." >&5
3675 $as_echo "$as_me: error: cannot run C compiled programs.
3676 If you meant to cross compile, use \`--host'.
3677 See \`config.log' for more details." >&2;}
3678    { (exit 1); exit 1; }; }; }
3679     fi
3680   fi
3681 fi
3682 { $as_echo "$as_me:$LINENO: result: yes" >&5
3683 $as_echo "yes" >&6; }
3684
3685 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3686 ac_clean_files=$ac_clean_files_save
3687 # Check that the compiler produces executables we can run.  If not, either
3688 # the compiler is broken, or we cross compile.
3689 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3690 $as_echo_n "checking whether we are cross compiling... " >&6; }
3691 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3692 $as_echo "$cross_compiling" >&6; }
3693
3694 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3695 $as_echo_n "checking for suffix of executables... " >&6; }
3696 if { (ac_try="$ac_link"
3697 case "(($ac_try" in
3698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699   *) ac_try_echo=$ac_try;;
3700 esac
3701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3702 $as_echo "$ac_try_echo") >&5
3703   (eval "$ac_link") 2>&5
3704   ac_status=$?
3705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706   (exit $ac_status); }; then
3707   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3708 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3709 # work properly (i.e., refer to `conftest.exe'), while it won't with
3710 # `rm'.
3711 for ac_file in conftest.exe conftest conftest.*; do
3712   test -f "$ac_file" || continue
3713   case $ac_file in
3714     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3715     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3716           break;;
3717     * ) break;;
3718   esac
3719 done
3720 else
3721   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3722 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3723 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3724 See \`config.log' for more details." >&5
3725 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3726 See \`config.log' for more details." >&2;}
3727    { (exit 1); exit 1; }; }; }
3728 fi
3729
3730 rm -f conftest$ac_cv_exeext
3731 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3732 $as_echo "$ac_cv_exeext" >&6; }
3733
3734 rm -f conftest.$ac_ext
3735 EXEEXT=$ac_cv_exeext
3736 ac_exeext=$EXEEXT
3737 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3738 $as_echo_n "checking for suffix of object files... " >&6; }
3739 if test "${ac_cv_objext+set}" = set; then
3740   $as_echo_n "(cached) " >&6
3741 else
3742   cat >conftest.$ac_ext <<_ACEOF
3743 /* confdefs.h.  */
3744 _ACEOF
3745 cat confdefs.h >>conftest.$ac_ext
3746 cat >>conftest.$ac_ext <<_ACEOF
3747 /* end confdefs.h.  */
3748
3749 int
3750 main ()
3751 {
3752
3753   ;
3754   return 0;
3755 }
3756 _ACEOF
3757 rm -f conftest.o conftest.obj
3758 if { (ac_try="$ac_compile"
3759 case "(($ac_try" in
3760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3761   *) ac_try_echo=$ac_try;;
3762 esac
3763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3764 $as_echo "$ac_try_echo") >&5
3765   (eval "$ac_compile") 2>&5
3766   ac_status=$?
3767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3768   (exit $ac_status); }; then
3769   for ac_file in conftest.o conftest.obj conftest.*; do
3770   test -f "$ac_file" || continue;
3771   case $ac_file in
3772     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3773     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3774        break;;
3775   esac
3776 done
3777 else
3778   $as_echo "$as_me: failed program was:" >&5
3779 sed 's/^/| /' conftest.$ac_ext >&5
3780
3781 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3782 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3784 See \`config.log' for more details." >&5
3785 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3786 See \`config.log' for more details." >&2;}
3787    { (exit 1); exit 1; }; }; }
3788 fi
3789
3790 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3791 fi
3792 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3793 $as_echo "$ac_cv_objext" >&6; }
3794 OBJEXT=$ac_cv_objext
3795 ac_objext=$OBJEXT
3796 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3797 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3798 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3799   $as_echo_n "(cached) " >&6
3800 else
3801   cat >conftest.$ac_ext <<_ACEOF
3802 /* confdefs.h.  */
3803 _ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h.  */
3807
3808 int
3809 main ()
3810 {
3811 #ifndef __GNUC__
3812        choke me
3813 #endif
3814
3815   ;
3816   return 0;
3817 }
3818 _ACEOF
3819 rm -f conftest.$ac_objext
3820 if { (ac_try="$ac_compile"
3821 case "(($ac_try" in
3822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823   *) ac_try_echo=$ac_try;;
3824 esac
3825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3826 $as_echo "$ac_try_echo") >&5
3827   (eval "$ac_compile") 2>conftest.er1
3828   ac_status=$?
3829   grep -v '^ *+' conftest.er1 >conftest.err
3830   rm -f conftest.er1
3831   cat conftest.err >&5
3832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833   (exit $ac_status); } && {
3834          test -z "$ac_c_werror_flag" ||
3835          test ! -s conftest.err
3836        } && test -s conftest.$ac_objext; then
3837   ac_compiler_gnu=yes
3838 else
3839   $as_echo "$as_me: failed program was:" >&5
3840 sed 's/^/| /' conftest.$ac_ext >&5
3841
3842         ac_compiler_gnu=no
3843 fi
3844
3845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3846 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3847
3848 fi
3849 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3850 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3851 if test $ac_compiler_gnu = yes; then
3852   GCC=yes
3853 else
3854   GCC=
3855 fi
3856 ac_test_CFLAGS=${CFLAGS+set}
3857 ac_save_CFLAGS=$CFLAGS
3858 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3859 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3860 if test "${ac_cv_prog_cc_g+set}" = set; then
3861   $as_echo_n "(cached) " >&6
3862 else
3863   ac_save_c_werror_flag=$ac_c_werror_flag
3864    ac_c_werror_flag=yes
3865    ac_cv_prog_cc_g=no
3866    CFLAGS="-g"
3867    cat >conftest.$ac_ext <<_ACEOF
3868 /* confdefs.h.  */
3869 _ACEOF
3870 cat confdefs.h >>conftest.$ac_ext
3871 cat >>conftest.$ac_ext <<_ACEOF
3872 /* end confdefs.h.  */
3873
3874 int
3875 main ()
3876 {
3877
3878   ;
3879   return 0;
3880 }
3881 _ACEOF
3882 rm -f conftest.$ac_objext
3883 if { (ac_try="$ac_compile"
3884 case "(($ac_try" in
3885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3886   *) ac_try_echo=$ac_try;;
3887 esac
3888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3889 $as_echo "$ac_try_echo") >&5
3890   (eval "$ac_compile") 2>conftest.er1
3891   ac_status=$?
3892   grep -v '^ *+' conftest.er1 >conftest.err
3893   rm -f conftest.er1
3894   cat conftest.err >&5
3895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); } && {
3897          test -z "$ac_c_werror_flag" ||
3898          test ! -s conftest.err
3899        } && test -s conftest.$ac_objext; then
3900   ac_cv_prog_cc_g=yes
3901 else
3902   $as_echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905         CFLAGS=""
3906       cat >conftest.$ac_ext <<_ACEOF
3907 /* confdefs.h.  */
3908 _ACEOF
3909 cat confdefs.h >>conftest.$ac_ext
3910 cat >>conftest.$ac_ext <<_ACEOF
3911 /* end confdefs.h.  */
3912
3913 int
3914 main ()
3915 {
3916
3917   ;
3918   return 0;
3919 }
3920 _ACEOF
3921 rm -f conftest.$ac_objext
3922 if { (ac_try="$ac_compile"
3923 case "(($ac_try" in
3924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3925   *) ac_try_echo=$ac_try;;
3926 esac
3927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3928 $as_echo "$ac_try_echo") >&5
3929   (eval "$ac_compile") 2>conftest.er1
3930   ac_status=$?
3931   grep -v '^ *+' conftest.er1 >conftest.err
3932   rm -f conftest.er1
3933   cat conftest.err >&5
3934   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3935   (exit $ac_status); } && {
3936          test -z "$ac_c_werror_flag" ||
3937          test ! -s conftest.err
3938        } && test -s conftest.$ac_objext; then
3939   :
3940 else
3941   $as_echo "$as_me: failed program was:" >&5
3942 sed 's/^/| /' conftest.$ac_ext >&5
3943
3944         ac_c_werror_flag=$ac_save_c_werror_flag
3945          CFLAGS="-g"
3946          cat >conftest.$ac_ext <<_ACEOF
3947 /* confdefs.h.  */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h.  */
3952
3953 int
3954 main ()
3955 {
3956
3957   ;
3958   return 0;
3959 }
3960 _ACEOF
3961 rm -f conftest.$ac_objext
3962 if { (ac_try="$ac_compile"
3963 case "(($ac_try" in
3964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3965   *) ac_try_echo=$ac_try;;
3966 esac
3967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3968 $as_echo "$ac_try_echo") >&5
3969   (eval "$ac_compile") 2>conftest.er1
3970   ac_status=$?
3971   grep -v '^ *+' conftest.er1 >conftest.err
3972   rm -f conftest.er1
3973   cat conftest.err >&5
3974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975   (exit $ac_status); } && {
3976          test -z "$ac_c_werror_flag" ||
3977          test ! -s conftest.err
3978        } && test -s conftest.$ac_objext; then
3979   ac_cv_prog_cc_g=yes
3980 else
3981   $as_echo "$as_me: failed program was:" >&5
3982 sed 's/^/| /' conftest.$ac_ext >&5
3983
3984
3985 fi
3986
3987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3988 fi
3989
3990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3991 fi
3992
3993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3994    ac_c_werror_flag=$ac_save_c_werror_flag
3995 fi
3996 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3997 $as_echo "$ac_cv_prog_cc_g" >&6; }
3998 if test "$ac_test_CFLAGS" = set; then
3999   CFLAGS=$ac_save_CFLAGS
4000 elif test $ac_cv_prog_cc_g = yes; then
4001   if test "$GCC" = yes; then
4002     CFLAGS="-g -O2"
4003   else
4004     CFLAGS="-g"
4005   fi
4006 else
4007   if test "$GCC" = yes; then
4008     CFLAGS="-O2"
4009   else
4010     CFLAGS=
4011   fi
4012 fi
4013 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4014 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4015 if test "${ac_cv_prog_cc_c89+set}" = set; then
4016   $as_echo_n "(cached) " >&6
4017 else
4018   ac_cv_prog_cc_c89=no
4019 ac_save_CC=$CC
4020 cat >conftest.$ac_ext <<_ACEOF
4021 /* confdefs.h.  */
4022 _ACEOF
4023 cat confdefs.h >>conftest.$ac_ext
4024 cat >>conftest.$ac_ext <<_ACEOF
4025 /* end confdefs.h.  */
4026 #include <stdarg.h>
4027 #include <stdio.h>
4028 #include <sys/types.h>
4029 #include <sys/stat.h>
4030 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4031 struct buf { int x; };
4032 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4033 static char *e (p, i)
4034      char **p;
4035      int i;
4036 {
4037   return p[i];
4038 }
4039 static char *f (char * (*g) (char **, int), char **p, ...)
4040 {
4041   char *s;
4042   va_list v;
4043   va_start (v,p);
4044   s = g (p, va_arg (v,int));
4045   va_end (v);
4046   return s;
4047 }
4048
4049 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4050    function prototypes and stuff, but not '\xHH' hex character constants.
4051    These don't provoke an error unfortunately, instead are silently treated
4052    as 'x'.  The following induces an error, until -std is added to get
4053    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4054    array size at least.  It's necessary to write '\x00'==0 to get something
4055    that's true only with -std.  */
4056 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4057
4058 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4059    inside strings and character constants.  */
4060 #define FOO(x) 'x'
4061 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4062
4063 int test (int i, double x);
4064 struct s1 {int (*f) (int a);};
4065 struct s2 {int (*f) (double a);};
4066 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4067 int argc;
4068 char **argv;
4069 int
4070 main ()
4071 {
4072 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4073   ;
4074   return 0;
4075 }
4076 _ACEOF
4077 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4078         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4079 do
4080   CC="$ac_save_CC $ac_arg"
4081   rm -f conftest.$ac_objext
4082 if { (ac_try="$ac_compile"
4083 case "(($ac_try" in
4084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085   *) ac_try_echo=$ac_try;;
4086 esac
4087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4088 $as_echo "$ac_try_echo") >&5
4089   (eval "$ac_compile") 2>conftest.er1
4090   ac_status=$?
4091   grep -v '^ *+' conftest.er1 >conftest.err
4092   rm -f conftest.er1
4093   cat conftest.err >&5
4094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095   (exit $ac_status); } && {
4096          test -z "$ac_c_werror_flag" ||
4097          test ! -s conftest.err
4098        } && test -s conftest.$ac_objext; then
4099   ac_cv_prog_cc_c89=$ac_arg
4100 else
4101   $as_echo "$as_me: failed program was:" >&5
4102 sed 's/^/| /' conftest.$ac_ext >&5
4103
4104
4105 fi
4106
4107 rm -f core conftest.err conftest.$ac_objext
4108   test "x$ac_cv_prog_cc_c89" != "xno" && break
4109 done
4110 rm -f conftest.$ac_ext
4111 CC=$ac_save_CC
4112
4113 fi
4114 # AC_CACHE_VAL
4115 case "x$ac_cv_prog_cc_c89" in
4116   x)
4117     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4118 $as_echo "none needed" >&6; } ;;
4119   xno)
4120     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4121 $as_echo "unsupported" >&6; } ;;
4122   *)
4123     CC="$CC $ac_cv_prog_cc_c89"
4124     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4125 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4126 esac
4127
4128
4129 ac_ext=c
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134 DEPDIR="${am__leading_dot}deps"
4135
4136 ac_config_commands="$ac_config_commands depfiles"
4137
4138
4139 am_make=${MAKE-make}
4140 cat > confinc << 'END'
4141 am__doit:
4142         @echo this is the am__doit target
4143 .PHONY: am__doit
4144 END
4145 # If we don't find an include directive, just comment out the code.
4146 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4147 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4148 am__include="#"
4149 am__quote=
4150 _am_result=none
4151 # First try GNU make style include.
4152 echo "include confinc" > confmf
4153 # Ignore all kinds of additional output from `make'.
4154 case `$am_make -s -f confmf 2> /dev/null` in #(
4155 *the\ am__doit\ target*)
4156   am__include=include
4157   am__quote=
4158   _am_result=GNU
4159   ;;
4160 esac
4161 # Now try BSD make style include.
4162 if test "$am__include" = "#"; then
4163    echo '.include "confinc"' > confmf
4164    case `$am_make -s -f confmf 2> /dev/null` in #(
4165    *the\ am__doit\ target*)
4166      am__include=.include
4167      am__quote="\""
4168      _am_result=BSD
4169      ;;
4170    esac
4171 fi
4172
4173
4174 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4175 $as_echo "$_am_result" >&6; }
4176 rm -f confinc confmf
4177
4178 # Check whether --enable-dependency-tracking was given.
4179 if test "${enable_dependency_tracking+set}" = set; then
4180   enableval=$enable_dependency_tracking;
4181 fi
4182
4183 if test "x$enable_dependency_tracking" != xno; then
4184   am_depcomp="$ac_aux_dir/depcomp"
4185   AMDEPBACKSLASH='\'
4186 fi
4187  if test "x$enable_dependency_tracking" != xno; then
4188   AMDEP_TRUE=
4189   AMDEP_FALSE='#'
4190 else
4191   AMDEP_TRUE='#'
4192   AMDEP_FALSE=
4193 fi
4194
4195
4196
4197 depcc="$CC"   am_compiler_list=
4198
4199 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4200 $as_echo_n "checking dependency style of $depcc... " >&6; }
4201 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4202   $as_echo_n "(cached) " >&6
4203 else
4204   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4205   # We make a subdir and do the tests there.  Otherwise we can end up
4206   # making bogus files that we don't know about and never remove.  For
4207   # instance it was reported that on HP-UX the gcc test will end up
4208   # making a dummy file named `D' -- because `-MD' means `put the output
4209   # in D'.
4210   mkdir conftest.dir
4211   # Copy depcomp to subdir because otherwise we won't find it if we're
4212   # using a relative directory.
4213   cp "$am_depcomp" conftest.dir
4214   cd conftest.dir
4215   # We will build objects and dependencies in a subdirectory because
4216   # it helps to detect inapplicable dependency modes.  For instance
4217   # both Tru64's cc and ICC support -MD to output dependencies as a
4218   # side effect of compilation, but ICC will put the dependencies in
4219   # the current directory while Tru64 will put them in the object
4220   # directory.
4221   mkdir sub
4222
4223   am_cv_CC_dependencies_compiler_type=none
4224   if test "$am_compiler_list" = ""; then
4225      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4226   fi
4227   am__universal=false
4228   case " $depcc " in #(
4229      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4230      esac
4231
4232   for depmode in $am_compiler_list; do
4233     # Setup a source with many dependencies, because some compilers
4234     # like to wrap large dependency lists on column 80 (with \), and
4235     # we should not choose a depcomp mode which is confused by this.
4236     #
4237     # We need to recreate these files for each test, as the compiler may
4238     # overwrite some of them when testing with obscure command lines.
4239     # This happens at least with the AIX C compiler.
4240     : > sub/conftest.c
4241     for i in 1 2 3 4 5 6; do
4242       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4243       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4244       # Solaris 8's {/usr,}/bin/sh.
4245       touch sub/conftst$i.h
4246     done
4247     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4248
4249     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4250     # mode.  It turns out that the SunPro C++ compiler does not properly
4251     # handle `-M -o', and we need to detect this.  Also, some Intel
4252     # versions had trouble with output in subdirs
4253     am__obj=sub/conftest.${OBJEXT-o}
4254     am__minus_obj="-o $am__obj"
4255     case $depmode in
4256     gcc)
4257       # This depmode causes a compiler race in universal mode.
4258       test "$am__universal" = false || continue
4259       ;;
4260     nosideeffect)
4261       # after this tag, mechanisms are not by side-effect, so they'll
4262       # only be used when explicitly requested
4263       if test "x$enable_dependency_tracking" = xyes; then
4264         continue
4265       else
4266         break
4267       fi
4268       ;;
4269     msvisualcpp | msvcmsys)
4270       # This compiler won't grok `-c -o', but also, the minuso test has
4271       # not run yet.  These depmodes are late enough in the game, and
4272       # so weak that their functioning should not be impacted.
4273       am__obj=conftest.${OBJEXT-o}
4274       am__minus_obj=
4275       ;;
4276     none) break ;;
4277     esac
4278     if depmode=$depmode \
4279        source=sub/conftest.c object=$am__obj \
4280        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4281        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4282          >/dev/null 2>conftest.err &&
4283        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4284        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4285        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4286        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4287       # icc doesn't choke on unknown options, it will just issue warnings
4288       # or remarks (even with -Werror).  So we grep stderr for any message
4289       # that says an option was ignored or not supported.
4290       # When given -MP, icc 7.0 and 7.1 complain thusly:
4291       #   icc: Command line warning: ignoring option '-M'; no argument required
4292       # The diagnosis changed in icc 8.0:
4293       #   icc: Command line remark: option '-MP' not supported
4294       if (grep 'ignoring option' conftest.err ||
4295           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4296         am_cv_CC_dependencies_compiler_type=$depmode
4297         break
4298       fi
4299     fi
4300   done
4301
4302   cd ..
4303   rm -rf conftest.dir
4304 else
4305   am_cv_CC_dependencies_compiler_type=none
4306 fi
4307
4308 fi
4309 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4310 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4311 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4312
4313  if
4314   test "x$enable_dependency_tracking" != xno \
4315   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4316   am__fastdepCC_TRUE=
4317   am__fastdepCC_FALSE='#'
4318 else
4319   am__fastdepCC_TRUE='#'
4320   am__fastdepCC_FALSE=
4321 fi
4322
4323
4324
4325 if test -n "$ac_tool_prefix"; then
4326   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4327 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4328 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if test "${ac_cv_prog_RANLIB+set}" = set; then
4331   $as_echo_n "(cached) " >&6
4332 else
4333   if test -n "$RANLIB"; then
4334   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4335 else
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4337 for as_dir in $PATH
4338 do
4339   IFS=$as_save_IFS
4340   test -z "$as_dir" && as_dir=.
4341   for ac_exec_ext in '' $ac_executable_extensions; do
4342   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4343     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4344     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4345     break 2
4346   fi
4347 done
4348 done
4349 IFS=$as_save_IFS
4350
4351 fi
4352 fi
4353 RANLIB=$ac_cv_prog_RANLIB
4354 if test -n "$RANLIB"; then
4355   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4356 $as_echo "$RANLIB" >&6; }
4357 else
4358   { $as_echo "$as_me:$LINENO: result: no" >&5
4359 $as_echo "no" >&6; }
4360 fi
4361
4362
4363 fi
4364 if test -z "$ac_cv_prog_RANLIB"; then
4365   ac_ct_RANLIB=$RANLIB
4366   # Extract the first word of "ranlib", so it can be a program name with args.
4367 set dummy ranlib; ac_word=$2
4368 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4369 $as_echo_n "checking for $ac_word... " >&6; }
4370 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4371   $as_echo_n "(cached) " >&6
4372 else
4373   if test -n "$ac_ct_RANLIB"; then
4374   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4378 do
4379   IFS=$as_save_IFS
4380   test -z "$as_dir" && as_dir=.
4381   for ac_exec_ext in '' $ac_executable_extensions; do
4382   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4383     ac_cv_prog_ac_ct_RANLIB="ranlib"
4384     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4385     break 2
4386   fi
4387 done
4388 done
4389 IFS=$as_save_IFS
4390
4391 fi
4392 fi
4393 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4394 if test -n "$ac_ct_RANLIB"; then
4395   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4396 $as_echo "$ac_ct_RANLIB" >&6; }
4397 else
4398   { $as_echo "$as_me:$LINENO: result: no" >&5
4399 $as_echo "no" >&6; }
4400 fi
4401
4402   if test "x$ac_ct_RANLIB" = x; then
4403     RANLIB=":"
4404   else
4405     case $cross_compiling:$ac_tool_warned in
4406 yes:)
4407 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4408 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4409 ac_tool_warned=yes ;;
4410 esac
4411     RANLIB=$ac_ct_RANLIB
4412   fi
4413 else
4414   RANLIB="$ac_cv_prog_RANLIB"
4415 fi
4416
4417 for ac_prog in 'bison -y' byacc
4418 do
4419   # Extract the first word of "$ac_prog", so it can be a program name with args.
4420 set dummy $ac_prog; ac_word=$2
4421 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4422 $as_echo_n "checking for $ac_word... " >&6; }
4423 if test "${ac_cv_prog_YACC+set}" = set; then
4424   $as_echo_n "(cached) " >&6
4425 else
4426   if test -n "$YACC"; then
4427   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4428 else
4429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4430 for as_dir in $PATH
4431 do
4432   IFS=$as_save_IFS
4433   test -z "$as_dir" && as_dir=.
4434   for ac_exec_ext in '' $ac_executable_extensions; do
4435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4436     ac_cv_prog_YACC="$ac_prog"
4437     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4438     break 2
4439   fi
4440 done
4441 done
4442 IFS=$as_save_IFS
4443
4444 fi
4445 fi
4446 YACC=$ac_cv_prog_YACC
4447 if test -n "$YACC"; then
4448   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
4449 $as_echo "$YACC" >&6; }
4450 else
4451   { $as_echo "$as_me:$LINENO: result: no" >&5
4452 $as_echo "no" >&6; }
4453 fi
4454
4455
4456   test -n "$YACC" && break
4457 done
4458 test -n "$YACC" || YACC="yacc"
4459
4460 if test "x$CC" != xcc; then
4461   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4462 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4463 else
4464   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4465 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4466 fi
4467 set dummy $CC; ac_cc=`$as_echo "$2" |
4468                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4469 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4470   $as_echo_n "(cached) " >&6
4471 else
4472   cat >conftest.$ac_ext <<_ACEOF
4473 /* confdefs.h.  */
4474 _ACEOF
4475 cat confdefs.h >>conftest.$ac_ext
4476 cat >>conftest.$ac_ext <<_ACEOF
4477 /* end confdefs.h.  */
4478
4479 int
4480 main ()
4481 {
4482
4483   ;
4484   return 0;
4485 }
4486 _ACEOF
4487 # Make sure it works both with $CC and with simple cc.
4488 # We do the test twice because some compilers refuse to overwrite an
4489 # existing .o file with -o, though they will create one.
4490 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4491 rm -f conftest2.*
4492 if { (case "(($ac_try" in
4493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4494   *) ac_try_echo=$ac_try;;
4495 esac
4496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4497 $as_echo "$ac_try_echo") >&5
4498   (eval "$ac_try") 2>&5
4499   ac_status=$?
4500   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4501   (exit $ac_status); } &&
4502    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4504   *) ac_try_echo=$ac_try;;
4505 esac
4506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4507 $as_echo "$ac_try_echo") >&5
4508   (eval "$ac_try") 2>&5
4509   ac_status=$?
4510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); };
4512 then
4513   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4514   if test "x$CC" != xcc; then
4515     # Test first that cc exists at all.
4516     if { ac_try='cc -c conftest.$ac_ext >&5'
4517   { (case "(($ac_try" in
4518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4519   *) ac_try_echo=$ac_try;;
4520 esac
4521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4522 $as_echo "$ac_try_echo") >&5
4523   (eval "$ac_try") 2>&5
4524   ac_status=$?
4525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526   (exit $ac_status); }; }; then
4527       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4528       rm -f conftest2.*
4529       if { (case "(($ac_try" in
4530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4531   *) ac_try_echo=$ac_try;;
4532 esac
4533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4534 $as_echo "$ac_try_echo") >&5
4535   (eval "$ac_try") 2>&5
4536   ac_status=$?
4537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4538   (exit $ac_status); } &&
4539          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4541   *) ac_try_echo=$ac_try;;
4542 esac
4543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4544 $as_echo "$ac_try_echo") >&5
4545   (eval "$ac_try") 2>&5
4546   ac_status=$?
4547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548   (exit $ac_status); };
4549       then
4550         # cc works too.
4551         :
4552       else
4553         # cc exists but doesn't like -o.
4554         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4555       fi
4556     fi
4557   fi
4558 else
4559   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4560 fi
4561 rm -f core conftest*
4562
4563 fi
4564 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4565   { $as_echo "$as_me:$LINENO: result: yes" >&5
4566 $as_echo "yes" >&6; }
4567 else
4568   { $as_echo "$as_me:$LINENO: result: no" >&5
4569 $as_echo "no" >&6; }
4570
4571 cat >>confdefs.h <<\_ACEOF
4572 #define NO_MINUS_C_MINUS_O 1
4573 _ACEOF
4574
4575 fi
4576
4577 # FIXME: we rely on the cache variable name because
4578 # there is no other way.
4579 set dummy $CC
4580 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4581 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4582 if test "$am_t" != yes; then
4583    # Losing compiler, so override with the script.
4584    # FIXME: It is wrong to rewrite CC.
4585    # But if we don't then we get into trouble of one sort or another.
4586    # A longer-term fix would be to have automake use am__CC in this case,
4587    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4588    CC="$am_aux_dir/compile $CC"
4589 fi
4590
4591
4592 # Make sure we can run config.sub.
4593 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4594   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4595 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4596    { (exit 1); exit 1; }; }
4597
4598 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4599 $as_echo_n "checking build system type... " >&6; }
4600 if test "${ac_cv_build+set}" = set; then
4601   $as_echo_n "(cached) " >&6
4602 else
4603   ac_build_alias=$build_alias
4604 test "x$ac_build_alias" = x &&
4605   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4606 test "x$ac_build_alias" = x &&
4607   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4608 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4609    { (exit 1); exit 1; }; }
4610 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4611   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4612 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4613    { (exit 1); exit 1; }; }
4614
4615 fi
4616 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4617 $as_echo "$ac_cv_build" >&6; }
4618 case $ac_cv_build in
4619 *-*-*) ;;
4620 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4621 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4622    { (exit 1); exit 1; }; };;
4623 esac
4624 build=$ac_cv_build
4625 ac_save_IFS=$IFS; IFS='-'
4626 set x $ac_cv_build
4627 shift
4628 build_cpu=$1
4629 build_vendor=$2
4630 shift; shift
4631 # Remember, the first character of IFS is used to create $*,
4632 # except with old shells:
4633 build_os=$*
4634 IFS=$ac_save_IFS
4635 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4636
4637
4638 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4639 $as_echo_n "checking host system type... " >&6; }
4640 if test "${ac_cv_host+set}" = set; then
4641   $as_echo_n "(cached) " >&6
4642 else
4643   if test "x$host_alias" = x; then
4644   ac_cv_host=$ac_cv_build
4645 else
4646   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4647     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4648 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4649    { (exit 1); exit 1; }; }
4650 fi
4651
4652 fi
4653 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4654 $as_echo "$ac_cv_host" >&6; }
4655 case $ac_cv_host in
4656 *-*-*) ;;
4657 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4658 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4659    { (exit 1); exit 1; }; };;
4660 esac
4661 host=$ac_cv_host
4662 ac_save_IFS=$IFS; IFS='-'
4663 set x $ac_cv_host
4664 shift
4665 host_cpu=$1
4666 host_vendor=$2
4667 shift; shift
4668 # Remember, the first character of IFS is used to create $*,
4669 # except with old shells:
4670 host_os=$*
4671 IFS=$ac_save_IFS
4672 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4673
4674
4675
4676 ac_ext=c
4677 ac_cpp='$CPP $CPPFLAGS'
4678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4681 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4682 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4683 # On Suns, sometimes $CPP names a directory.
4684 if test -n "$CPP" && test -d "$CPP"; then
4685   CPP=
4686 fi
4687 if test -z "$CPP"; then
4688   if test "${ac_cv_prog_CPP+set}" = set; then
4689   $as_echo_n "(cached) " >&6
4690 else
4691       # Double quotes because CPP needs to be expanded
4692     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4693     do
4694       ac_preproc_ok=false
4695 for ac_c_preproc_warn_flag in '' yes
4696 do
4697   # Use a header file that comes with gcc, so configuring glibc
4698   # with a fresh cross-compiler works.
4699   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4700   # <limits.h> exists even on freestanding compilers.
4701   # On the NeXT, cc -E runs the code through the compiler's parser,
4702   # not just through cpp. "Syntax error" is here to catch this case.
4703   cat >conftest.$ac_ext <<_ACEOF
4704 /* confdefs.h.  */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h.  */
4709 #ifdef __STDC__
4710 # include <limits.h>
4711 #else
4712 # include <assert.h>
4713 #endif
4714                      Syntax error
4715 _ACEOF
4716 if { (ac_try="$ac_cpp conftest.$ac_ext"
4717 case "(($ac_try" in
4718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4719   *) ac_try_echo=$ac_try;;
4720 esac
4721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4722 $as_echo "$ac_try_echo") >&5
4723   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4724   ac_status=$?
4725   grep -v '^ *+' conftest.er1 >conftest.err
4726   rm -f conftest.er1
4727   cat conftest.err >&5
4728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); } >/dev/null && {
4730          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4731          test ! -s conftest.err
4732        }; then
4733   :
4734 else
4735   $as_echo "$as_me: failed program was:" >&5
4736 sed 's/^/| /' conftest.$ac_ext >&5
4737
4738   # Broken: fails on valid input.
4739 continue
4740 fi
4741
4742 rm -f conftest.err conftest.$ac_ext
4743
4744   # OK, works on sane cases.  Now check whether nonexistent headers
4745   # can be detected and how.
4746   cat >conftest.$ac_ext <<_ACEOF
4747 /* confdefs.h.  */
4748 _ACEOF
4749 cat confdefs.h >>conftest.$ac_ext
4750 cat >>conftest.$ac_ext <<_ACEOF
4751 /* end confdefs.h.  */
4752 #include <ac_nonexistent.h>
4753 _ACEOF
4754 if { (ac_try="$ac_cpp conftest.$ac_ext"
4755 case "(($ac_try" in
4756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757   *) ac_try_echo=$ac_try;;
4758 esac
4759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4760 $as_echo "$ac_try_echo") >&5
4761   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4762   ac_status=$?
4763   grep -v '^ *+' conftest.er1 >conftest.err
4764   rm -f conftest.er1
4765   cat conftest.err >&5
4766   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); } >/dev/null && {
4768          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4769          test ! -s conftest.err
4770        }; then
4771   # Broken: success on invalid input.
4772 continue
4773 else
4774   $as_echo "$as_me: failed program was:" >&5
4775 sed 's/^/| /' conftest.$ac_ext >&5
4776
4777   # Passes both tests.
4778 ac_preproc_ok=:
4779 break
4780 fi
4781
4782 rm -f conftest.err conftest.$ac_ext
4783
4784 done
4785 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4786 rm -f conftest.err conftest.$ac_ext
4787 if $ac_preproc_ok; then
4788   break
4789 fi
4790
4791     done
4792     ac_cv_prog_CPP=$CPP
4793
4794 fi
4795   CPP=$ac_cv_prog_CPP
4796 else
4797   ac_cv_prog_CPP=$CPP
4798 fi
4799 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4800 $as_echo "$CPP" >&6; }
4801 ac_preproc_ok=false
4802 for ac_c_preproc_warn_flag in '' yes
4803 do
4804   # Use a header file that comes with gcc, so configuring glibc
4805   # with a fresh cross-compiler works.
4806   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4807   # <limits.h> exists even on freestanding compilers.
4808   # On the NeXT, cc -E runs the code through the compiler's parser,
4809   # not just through cpp. "Syntax error" is here to catch this case.
4810   cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h.  */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h.  */
4816 #ifdef __STDC__
4817 # include <limits.h>
4818 #else
4819 # include <assert.h>
4820 #endif
4821                      Syntax error
4822 _ACEOF
4823 if { (ac_try="$ac_cpp conftest.$ac_ext"
4824 case "(($ac_try" in
4825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4826   *) ac_try_echo=$ac_try;;
4827 esac
4828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4829 $as_echo "$ac_try_echo") >&5
4830   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4831   ac_status=$?
4832   grep -v '^ *+' conftest.er1 >conftest.err
4833   rm -f conftest.er1
4834   cat conftest.err >&5
4835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836   (exit $ac_status); } >/dev/null && {
4837          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4838          test ! -s conftest.err
4839        }; then
4840   :
4841 else
4842   $as_echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4844
4845   # Broken: fails on valid input.
4846 continue
4847 fi
4848
4849 rm -f conftest.err conftest.$ac_ext
4850
4851   # OK, works on sane cases.  Now check whether nonexistent headers
4852   # can be detected and how.
4853   cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h.  */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h.  */
4859 #include <ac_nonexistent.h>
4860 _ACEOF
4861 if { (ac_try="$ac_cpp conftest.$ac_ext"
4862 case "(($ac_try" in
4863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864   *) ac_try_echo=$ac_try;;
4865 esac
4866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4867 $as_echo "$ac_try_echo") >&5
4868   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4869   ac_status=$?
4870   grep -v '^ *+' conftest.er1 >conftest.err
4871   rm -f conftest.er1
4872   cat conftest.err >&5
4873   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4874   (exit $ac_status); } >/dev/null && {
4875          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4876          test ! -s conftest.err
4877        }; then
4878   # Broken: success on invalid input.
4879 continue
4880 else
4881   $as_echo "$as_me: failed program was:" >&5
4882 sed 's/^/| /' conftest.$ac_ext >&5
4883
4884   # Passes both tests.
4885 ac_preproc_ok=:
4886 break
4887 fi
4888
4889 rm -f conftest.err conftest.$ac_ext
4890
4891 done
4892 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4893 rm -f conftest.err conftest.$ac_ext
4894 if $ac_preproc_ok; then
4895   :
4896 else
4897   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4899 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4900 See \`config.log' for more details." >&5
4901 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4902 See \`config.log' for more details." >&2;}
4903    { (exit 1); exit 1; }; }; }
4904 fi
4905
4906 ac_ext=c
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911
4912
4913 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4914 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4915 if test "${ac_cv_path_GREP+set}" = set; then
4916   $as_echo_n "(cached) " >&6
4917 else
4918   if test -z "$GREP"; then
4919   ac_path_GREP_found=false
4920   # Loop through the user's path and test for each of PROGNAME-LIST
4921   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4922 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4923 do
4924   IFS=$as_save_IFS
4925   test -z "$as_dir" && as_dir=.
4926   for ac_prog in grep ggrep; do
4927     for ac_exec_ext in '' $ac_executable_extensions; do
4928       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4929       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4930 # Check for GNU ac_path_GREP and select it if it is found.
4931   # Check for GNU $ac_path_GREP
4932 case `"$ac_path_GREP" --version 2>&1` in
4933 *GNU*)
4934   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4935 *)
4936   ac_count=0
4937   $as_echo_n 0123456789 >"conftest.in"
4938   while :
4939   do
4940     cat "conftest.in" "conftest.in" >"conftest.tmp"
4941     mv "conftest.tmp" "conftest.in"
4942     cp "conftest.in" "conftest.nl"
4943     $as_echo 'GREP' >> "conftest.nl"
4944     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4945     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4946     ac_count=`expr $ac_count + 1`
4947     if test $ac_count -gt ${ac_path_GREP_max-0}; then
4948       # Best one so far, save it but keep looking for a better one
4949       ac_cv_path_GREP="$ac_path_GREP"
4950       ac_path_GREP_max=$ac_count
4951     fi
4952     # 10*(2^10) chars as input seems more than enough
4953     test $ac_count -gt 10 && break
4954   done
4955   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4956 esac
4957
4958       $ac_path_GREP_found && break 3
4959     done
4960   done
4961 done
4962 IFS=$as_save_IFS
4963   if test -z "$ac_cv_path_GREP"; then
4964     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4965 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4966    { (exit 1); exit 1; }; }
4967   fi
4968 else
4969   ac_cv_path_GREP=$GREP
4970 fi
4971
4972 fi
4973 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4974 $as_echo "$ac_cv_path_GREP" >&6; }
4975  GREP="$ac_cv_path_GREP"
4976
4977
4978 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4979 $as_echo_n "checking for egrep... " >&6; }
4980 if test "${ac_cv_path_EGREP+set}" = set; then
4981   $as_echo_n "(cached) " >&6
4982 else
4983   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4984    then ac_cv_path_EGREP="$GREP -E"
4985    else
4986      if test -z "$EGREP"; then
4987   ac_path_EGREP_found=false
4988   # Loop through the user's path and test for each of PROGNAME-LIST
4989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4991 do
4992   IFS=$as_save_IFS
4993   test -z "$as_dir" && as_dir=.
4994   for ac_prog in egrep; do
4995     for ac_exec_ext in '' $ac_executable_extensions; do
4996       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4997       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4998 # Check for GNU ac_path_EGREP and select it if it is found.
4999   # Check for GNU $ac_path_EGREP
5000 case `"$ac_path_EGREP" --version 2>&1` in
5001 *GNU*)
5002   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5003 *)
5004   ac_count=0
5005   $as_echo_n 0123456789 >"conftest.in"
5006   while :
5007   do
5008     cat "conftest.in" "conftest.in" >"conftest.tmp"
5009     mv "conftest.tmp" "conftest.in"
5010     cp "conftest.in" "conftest.nl"
5011     $as_echo 'EGREP' >> "conftest.nl"
5012     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5013     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5014     ac_count=`expr $ac_count + 1`
5015     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5016       # Best one so far, save it but keep looking for a better one
5017       ac_cv_path_EGREP="$ac_path_EGREP"
5018       ac_path_EGREP_max=$ac_count
5019     fi
5020     # 10*(2^10) chars as input seems more than enough
5021     test $ac_count -gt 10 && break
5022   done
5023   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5024 esac
5025
5026       $ac_path_EGREP_found && break 3
5027     done
5028   done
5029 done
5030 IFS=$as_save_IFS
5031   if test -z "$ac_cv_path_EGREP"; then
5032     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5033 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5034    { (exit 1); exit 1; }; }
5035   fi
5036 else
5037   ac_cv_path_EGREP=$EGREP
5038 fi
5039
5040    fi
5041 fi
5042 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5043 $as_echo "$ac_cv_path_EGREP" >&6; }
5044  EGREP="$ac_cv_path_EGREP"
5045
5046
5047 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5048 $as_echo_n "checking for ANSI C header files... " >&6; }
5049 if test "${ac_cv_header_stdc+set}" = set; then
5050   $as_echo_n "(cached) " >&6
5051 else
5052   cat >conftest.$ac_ext <<_ACEOF
5053 /* confdefs.h.  */
5054 _ACEOF
5055 cat confdefs.h >>conftest.$ac_ext
5056 cat >>conftest.$ac_ext <<_ACEOF
5057 /* end confdefs.h.  */
5058 #include <stdlib.h>
5059 #include <stdarg.h>
5060 #include <string.h>
5061 #include <float.h>
5062
5063 int
5064 main ()
5065 {
5066
5067   ;
5068   return 0;
5069 }
5070 _ACEOF
5071 rm -f conftest.$ac_objext
5072 if { (ac_try="$ac_compile"
5073 case "(($ac_try" in
5074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075   *) ac_try_echo=$ac_try;;
5076 esac
5077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5078 $as_echo "$ac_try_echo") >&5
5079   (eval "$ac_compile") 2>conftest.er1
5080   ac_status=$?
5081   grep -v '^ *+' conftest.er1 >conftest.err
5082   rm -f conftest.er1
5083   cat conftest.err >&5
5084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085   (exit $ac_status); } && {
5086          test -z "$ac_c_werror_flag" ||
5087          test ! -s conftest.err
5088        } && test -s conftest.$ac_objext; then
5089   ac_cv_header_stdc=yes
5090 else
5091   $as_echo "$as_me: failed program was:" >&5
5092 sed 's/^/| /' conftest.$ac_ext >&5
5093
5094         ac_cv_header_stdc=no
5095 fi
5096
5097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5098
5099 if test $ac_cv_header_stdc = yes; then
5100   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5101   cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h.  */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h.  */
5107 #include <string.h>
5108
5109 _ACEOF
5110 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5111   $EGREP "memchr" >/dev/null 2>&1; then
5112   :
5113 else
5114   ac_cv_header_stdc=no
5115 fi
5116 rm -f conftest*
5117
5118 fi
5119
5120 if test $ac_cv_header_stdc = yes; then
5121   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5122   cat >conftest.$ac_ext <<_ACEOF
5123 /* confdefs.h.  */
5124 _ACEOF
5125 cat confdefs.h >>conftest.$ac_ext
5126 cat >>conftest.$ac_ext <<_ACEOF
5127 /* end confdefs.h.  */
5128 #include <stdlib.h>
5129
5130 _ACEOF
5131 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5132   $EGREP "free" >/dev/null 2>&1; then
5133   :
5134 else
5135   ac_cv_header_stdc=no
5136 fi
5137 rm -f conftest*
5138
5139 fi
5140
5141 if test $ac_cv_header_stdc = yes; then
5142   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5143   if test "$cross_compiling" = yes; then
5144   :
5145 else
5146   cat >conftest.$ac_ext <<_ACEOF
5147 /* confdefs.h.  */
5148 _ACEOF
5149 cat confdefs.h >>conftest.$ac_ext
5150 cat >>conftest.$ac_ext <<_ACEOF
5151 /* end confdefs.h.  */
5152 #include <ctype.h>
5153 #include <stdlib.h>
5154 #if ((' ' & 0x0FF) == 0x020)
5155 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5156 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5157 #else
5158 # define ISLOWER(c) \
5159                    (('a' <= (c) && (c) <= 'i') \
5160                      || ('j' <= (c) && (c) <= 'r') \
5161                      || ('s' <= (c) && (c) <= 'z'))
5162 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5163 #endif
5164
5165 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5166 int
5167 main ()
5168 {
5169   int i;
5170   for (i = 0; i < 256; i++)
5171     if (XOR (islower (i), ISLOWER (i))
5172         || toupper (i) != TOUPPER (i))
5173       return 2;
5174   return 0;
5175 }
5176 _ACEOF
5177 rm -f conftest$ac_exeext
5178 if { (ac_try="$ac_link"
5179 case "(($ac_try" in
5180   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5181   *) ac_try_echo=$ac_try;;
5182 esac
5183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5184 $as_echo "$ac_try_echo") >&5
5185   (eval "$ac_link") 2>&5
5186   ac_status=$?
5187   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5189   { (case "(($ac_try" in
5190   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5191   *) ac_try_echo=$ac_try;;
5192 esac
5193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5194 $as_echo "$ac_try_echo") >&5
5195   (eval "$ac_try") 2>&5
5196   ac_status=$?
5197   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198   (exit $ac_status); }; }; then
5199   :
5200 else
5201   $as_echo "$as_me: program exited with status $ac_status" >&5
5202 $as_echo "$as_me: failed program was:" >&5
5203 sed 's/^/| /' conftest.$ac_ext >&5
5204
5205 ( exit $ac_status )
5206 ac_cv_header_stdc=no
5207 fi
5208 rm -rf conftest.dSYM
5209 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5210 fi
5211
5212
5213 fi
5214 fi
5215 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5216 $as_echo "$ac_cv_header_stdc" >&6; }
5217 if test $ac_cv_header_stdc = yes; then
5218
5219 cat >>confdefs.h <<\_ACEOF
5220 #define STDC_HEADERS 1
5221 _ACEOF
5222
5223 fi
5224
5225 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5226
5227
5228
5229
5230
5231
5232
5233
5234
5235 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5236                   inttypes.h stdint.h unistd.h
5237 do
5238 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5239 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5240 $as_echo_n "checking for $ac_header... " >&6; }
5241 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5242   $as_echo_n "(cached) " >&6
5243 else
5244   cat >conftest.$ac_ext <<_ACEOF
5245 /* confdefs.h.  */
5246 _ACEOF
5247 cat confdefs.h >>conftest.$ac_ext
5248 cat >>conftest.$ac_ext <<_ACEOF
5249 /* end confdefs.h.  */
5250 $ac_includes_default
5251
5252 #include <$ac_header>
5253 _ACEOF
5254 rm -f conftest.$ac_objext
5255 if { (ac_try="$ac_compile"
5256 case "(($ac_try" in
5257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5258   *) ac_try_echo=$ac_try;;
5259 esac
5260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5261 $as_echo "$ac_try_echo") >&5
5262   (eval "$ac_compile") 2>conftest.er1
5263   ac_status=$?
5264   grep -v '^ *+' conftest.er1 >conftest.err
5265   rm -f conftest.er1
5266   cat conftest.err >&5
5267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268   (exit $ac_status); } && {
5269          test -z "$ac_c_werror_flag" ||
5270          test ! -s conftest.err
5271        } && test -s conftest.$ac_objext; then
5272   eval "$as_ac_Header=yes"
5273 else
5274   $as_echo "$as_me: failed program was:" >&5
5275 sed 's/^/| /' conftest.$ac_ext >&5
5276
5277         eval "$as_ac_Header=no"
5278 fi
5279
5280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5281 fi
5282 ac_res=`eval 'as_val=${'$as_ac_Header'}
5283                  $as_echo "$as_val"'`
5284                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5285 $as_echo "$ac_res" >&6; }
5286 as_val=`eval 'as_val=${'$as_ac_Header'}
5287                  $as_echo "$as_val"'`
5288    if test "x$as_val" = x""yes; then
5289   cat >>confdefs.h <<_ACEOF
5290 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5291 _ACEOF
5292
5293 fi
5294
5295 done
5296
5297
5298
5299
5300
5301   if test "${ac_cv_header_minix_config_h+set}" = set; then
5302   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5303 $as_echo_n "checking for minix/config.h... " >&6; }
5304 if test "${ac_cv_header_minix_config_h+set}" = set; then
5305   $as_echo_n "(cached) " >&6
5306 fi
5307 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5308 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5309 else
5310   # Is the header compilable?
5311 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5312 $as_echo_n "checking minix/config.h usability... " >&6; }
5313 cat >conftest.$ac_ext <<_ACEOF
5314 /* confdefs.h.  */
5315 _ACEOF
5316 cat confdefs.h >>conftest.$ac_ext
5317 cat >>conftest.$ac_ext <<_ACEOF
5318 /* end confdefs.h.  */
5319 $ac_includes_default
5320 #include <minix/config.h>
5321 _ACEOF
5322 rm -f conftest.$ac_objext
5323 if { (ac_try="$ac_compile"
5324 case "(($ac_try" in
5325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5326   *) ac_try_echo=$ac_try;;
5327 esac
5328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5329 $as_echo "$ac_try_echo") >&5
5330   (eval "$ac_compile") 2>conftest.er1
5331   ac_status=$?
5332   grep -v '^ *+' conftest.er1 >conftest.err
5333   rm -f conftest.er1
5334   cat conftest.err >&5
5335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336   (exit $ac_status); } && {
5337          test -z "$ac_c_werror_flag" ||
5338          test ! -s conftest.err
5339        } && test -s conftest.$ac_objext; then
5340   ac_header_compiler=yes
5341 else
5342   $as_echo "$as_me: failed program was:" >&5
5343 sed 's/^/| /' conftest.$ac_ext >&5
5344
5345         ac_header_compiler=no
5346 fi
5347
5348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5349 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5350 $as_echo "$ac_header_compiler" >&6; }
5351
5352 # Is the header present?
5353 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5354 $as_echo_n "checking minix/config.h presence... " >&6; }
5355 cat >conftest.$ac_ext <<_ACEOF
5356 /* confdefs.h.  */
5357 _ACEOF
5358 cat confdefs.h >>conftest.$ac_ext
5359 cat >>conftest.$ac_ext <<_ACEOF
5360 /* end confdefs.h.  */
5361 #include <minix/config.h>
5362 _ACEOF
5363 if { (ac_try="$ac_cpp conftest.$ac_ext"
5364 case "(($ac_try" in
5365   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5366   *) ac_try_echo=$ac_try;;
5367 esac
5368 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5369 $as_echo "$ac_try_echo") >&5
5370   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5371   ac_status=$?
5372   grep -v '^ *+' conftest.er1 >conftest.err
5373   rm -f conftest.er1
5374   cat conftest.err >&5
5375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376   (exit $ac_status); } >/dev/null && {
5377          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5378          test ! -s conftest.err
5379        }; then
5380   ac_header_preproc=yes
5381 else
5382   $as_echo "$as_me: failed program was:" >&5
5383 sed 's/^/| /' conftest.$ac_ext >&5
5384
5385   ac_header_preproc=no
5386 fi
5387
5388 rm -f conftest.err conftest.$ac_ext
5389 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5390 $as_echo "$ac_header_preproc" >&6; }
5391
5392 # So?  What about this header?
5393 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5394   yes:no: )
5395     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5396 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5397     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5398 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5399     ac_header_preproc=yes
5400     ;;
5401   no:yes:* )
5402     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5403 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5404     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5405 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5406     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5407 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5408     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5409 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5410     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5411 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5412     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5413 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5414     ( cat <<\_ASBOX
5415 ## ------------------------------ ##
5416 ## Report this to bug-tar@gnu.org ##
5417 ## ------------------------------ ##
5418 _ASBOX
5419      ) | sed "s/^/$as_me: WARNING:     /" >&2
5420     ;;
5421 esac
5422 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5423 $as_echo_n "checking for minix/config.h... " >&6; }
5424 if test "${ac_cv_header_minix_config_h+set}" = set; then
5425   $as_echo_n "(cached) " >&6
5426 else
5427   ac_cv_header_minix_config_h=$ac_header_preproc
5428 fi
5429 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5430 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5431
5432 fi
5433 if test "x$ac_cv_header_minix_config_h" = x""yes; then
5434   MINIX=yes
5435 else
5436   MINIX=
5437 fi
5438
5439
5440   if test "$MINIX" = yes; then
5441
5442 cat >>confdefs.h <<\_ACEOF
5443 #define _POSIX_SOURCE 1
5444 _ACEOF
5445
5446
5447 cat >>confdefs.h <<\_ACEOF
5448 #define _POSIX_1_SOURCE 2
5449 _ACEOF
5450
5451
5452 cat >>confdefs.h <<\_ACEOF
5453 #define _MINIX 1
5454 _ACEOF
5455
5456   fi
5457
5458         case "$host_os" in
5459     hpux*)
5460
5461 cat >>confdefs.h <<\_ACEOF
5462 #define _XOPEN_SOURCE 500
5463 _ACEOF
5464
5465       ;;
5466   esac
5467
5468
5469
5470   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5471 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5472 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5473   $as_echo_n "(cached) " >&6
5474 else
5475   cat >conftest.$ac_ext <<_ACEOF
5476 /* confdefs.h.  */
5477 _ACEOF
5478 cat confdefs.h >>conftest.$ac_ext
5479 cat >>conftest.$ac_ext <<_ACEOF
5480 /* end confdefs.h.  */
5481
5482 #         define __EXTENSIONS__ 1
5483           $ac_includes_default
5484 int
5485 main ()
5486 {
5487
5488   ;
5489   return 0;
5490 }
5491 _ACEOF
5492 rm -f conftest.$ac_objext
5493 if { (ac_try="$ac_compile"
5494 case "(($ac_try" in
5495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496   *) ac_try_echo=$ac_try;;
5497 esac
5498 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5499 $as_echo "$ac_try_echo") >&5
5500   (eval "$ac_compile") 2>conftest.er1
5501   ac_status=$?
5502   grep -v '^ *+' conftest.er1 >conftest.err
5503   rm -f conftest.er1
5504   cat conftest.err >&5
5505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5506   (exit $ac_status); } && {
5507          test -z "$ac_c_werror_flag" ||
5508          test ! -s conftest.err
5509        } && test -s conftest.$ac_objext; then
5510   ac_cv_safe_to_define___extensions__=yes
5511 else
5512   $as_echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5514
5515         ac_cv_safe_to_define___extensions__=no
5516 fi
5517
5518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5519 fi
5520 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5521 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5522   test $ac_cv_safe_to_define___extensions__ = yes &&
5523     cat >>confdefs.h <<\_ACEOF
5524 #define __EXTENSIONS__ 1
5525 _ACEOF
5526
5527   cat >>confdefs.h <<\_ACEOF
5528 #define _ALL_SOURCE 1
5529 _ACEOF
5530
5531   cat >>confdefs.h <<\_ACEOF
5532 #define _GNU_SOURCE 1
5533 _ACEOF
5534
5535   cat >>confdefs.h <<\_ACEOF
5536 #define _POSIX_PTHREAD_SEMANTICS 1
5537 _ACEOF
5538
5539   cat >>confdefs.h <<\_ACEOF
5540 #define _TANDEM_SOURCE 1
5541 _ACEOF
5542
5543
5544
5545
5546
5547
5548
5549
5550
5551 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5552 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5553 if test "${ac_cv_sys_largefile_source+set}" = set; then
5554   $as_echo_n "(cached) " >&6
5555 else
5556   while :; do
5557   cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h.  */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h.  */
5563 #include <sys/types.h> /* for off_t */
5564      #include <stdio.h>
5565 int
5566 main ()
5567 {
5568 int (*fp) (FILE *, off_t, int) = fseeko;
5569      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5570   ;
5571   return 0;
5572 }
5573 _ACEOF
5574 rm -f conftest.$ac_objext conftest$ac_exeext
5575 if { (ac_try="$ac_link"
5576 case "(($ac_try" in
5577   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5578   *) ac_try_echo=$ac_try;;
5579 esac
5580 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5581 $as_echo "$ac_try_echo") >&5
5582   (eval "$ac_link") 2>conftest.er1
5583   ac_status=$?
5584   grep -v '^ *+' conftest.er1 >conftest.err
5585   rm -f conftest.er1
5586   cat conftest.err >&5
5587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588   (exit $ac_status); } && {
5589          test -z "$ac_c_werror_flag" ||
5590          test ! -s conftest.err
5591        } && test -s conftest$ac_exeext && {
5592          test "$cross_compiling" = yes ||
5593          $as_test_x conftest$ac_exeext
5594        }; then
5595   ac_cv_sys_largefile_source=no; break
5596 else
5597   $as_echo "$as_me: failed program was:" >&5
5598 sed 's/^/| /' conftest.$ac_ext >&5
5599
5600
5601 fi
5602
5603 rm -rf conftest.dSYM
5604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5605       conftest$ac_exeext conftest.$ac_ext
5606   cat >conftest.$ac_ext <<_ACEOF
5607 /* confdefs.h.  */
5608 _ACEOF
5609 cat confdefs.h >>conftest.$ac_ext
5610 cat >>conftest.$ac_ext <<_ACEOF
5611 /* end confdefs.h.  */
5612 #define _LARGEFILE_SOURCE 1
5613 #include <sys/types.h> /* for off_t */
5614      #include <stdio.h>
5615 int
5616 main ()
5617 {
5618 int (*fp) (FILE *, off_t, int) = fseeko;
5619      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5620   ;
5621   return 0;
5622 }
5623 _ACEOF
5624 rm -f conftest.$ac_objext conftest$ac_exeext
5625 if { (ac_try="$ac_link"
5626 case "(($ac_try" in
5627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5628   *) ac_try_echo=$ac_try;;
5629 esac
5630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5631 $as_echo "$ac_try_echo") >&5
5632   (eval "$ac_link") 2>conftest.er1
5633   ac_status=$?
5634   grep -v '^ *+' conftest.er1 >conftest.err
5635   rm -f conftest.er1
5636   cat conftest.err >&5
5637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5638   (exit $ac_status); } && {
5639          test -z "$ac_c_werror_flag" ||
5640          test ! -s conftest.err
5641        } && test -s conftest$ac_exeext && {
5642          test "$cross_compiling" = yes ||
5643          $as_test_x conftest$ac_exeext
5644        }; then
5645   ac_cv_sys_largefile_source=1; break
5646 else
5647   $as_echo "$as_me: failed program was:" >&5
5648 sed 's/^/| /' conftest.$ac_ext >&5
5649
5650
5651 fi
5652
5653 rm -rf conftest.dSYM
5654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5655       conftest$ac_exeext conftest.$ac_ext
5656   ac_cv_sys_largefile_source=unknown
5657   break
5658 done
5659 fi
5660 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5661 $as_echo "$ac_cv_sys_largefile_source" >&6; }
5662 case $ac_cv_sys_largefile_source in #(
5663   no | unknown) ;;
5664   *)
5665 cat >>confdefs.h <<_ACEOF
5666 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5667 _ACEOF
5668 ;;
5669 esac
5670 rm -rf conftest*
5671
5672 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5673 # in glibc 2.1.3, but that breaks too many other things.
5674 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5675 if test $ac_cv_sys_largefile_source != unknown; then
5676
5677 cat >>confdefs.h <<\_ACEOF
5678 #define HAVE_FSEEKO 1
5679 _ACEOF
5680
5681 fi
5682
5683    case $ac_cv_prog_cc_stdc in
5684   no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
5685   *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5686 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5687 if test "${ac_cv_prog_cc_c99+set}" = set; then
5688   $as_echo_n "(cached) " >&6
5689 else
5690   ac_cv_prog_cc_c99=no
5691 ac_save_CC=$CC
5692 cat >conftest.$ac_ext <<_ACEOF
5693 /* confdefs.h.  */
5694 _ACEOF
5695 cat confdefs.h >>conftest.$ac_ext
5696 cat >>conftest.$ac_ext <<_ACEOF
5697 /* end confdefs.h.  */
5698 #include <stdarg.h>
5699 #include <stdbool.h>
5700 #include <stdlib.h>
5701 #include <wchar.h>
5702 #include <stdio.h>
5703
5704 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5705 #define debug(...) fprintf (stderr, __VA_ARGS__)
5706 #define showlist(...) puts (#__VA_ARGS__)
5707 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5708 static void
5709 test_varargs_macros (void)
5710 {
5711   int x = 1234;
5712   int y = 5678;
5713   debug ("Flag");
5714   debug ("X = %d\n", x);
5715   showlist (The first, second, and third items.);
5716   report (x>y, "x is %d but y is %d", x, y);
5717 }
5718
5719 // Check long long types.
5720 #define BIG64 18446744073709551615ull
5721 #define BIG32 4294967295ul
5722 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5723 #if !BIG_OK
5724   your preprocessor is broken;
5725 #endif
5726 #if BIG_OK
5727 #else
5728   your preprocessor is broken;
5729 #endif
5730 static long long int bignum = -9223372036854775807LL;
5731 static unsigned long long int ubignum = BIG64;
5732
5733 struct incomplete_array
5734 {
5735   int datasize;
5736   double data[];
5737 };
5738
5739 struct named_init {
5740   int number;
5741   const wchar_t *name;
5742   double average;
5743 };
5744
5745 typedef const char *ccp;
5746
5747 static inline int
5748 test_restrict (ccp restrict text)
5749 {
5750   // See if C++-style comments work.
5751   // Iterate through items via the restricted pointer.
5752   // Also check for declarations in for loops.
5753   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5754     continue;
5755   return 0;
5756 }
5757
5758 // Check varargs and va_copy.
5759 static void
5760 test_varargs (const char *format, ...)
5761 {
5762   va_list args;
5763   va_start (args, format);
5764   va_list args_copy;
5765   va_copy (args_copy, args);
5766
5767   const char *str;
5768   int number;
5769   float fnumber;
5770
5771   while (*format)
5772     {
5773       switch (*format++)
5774         {
5775         case 's': // string
5776           str = va_arg (args_copy, const char *);
5777           break;
5778         case 'd': // int
5779           number = va_arg (args_copy, int);
5780           break;
5781         case 'f': // float
5782           fnumber = va_arg (args_copy, double);
5783           break;
5784         default:
5785           break;
5786         }
5787     }
5788   va_end (args_copy);
5789   va_end (args);
5790 }
5791
5792 int
5793 main ()
5794 {
5795
5796   // Check bool.
5797   _Bool success = false;
5798
5799   // Check restrict.
5800   if (test_restrict ("String literal") == 0)
5801     success = true;
5802   char *restrict newvar = "Another string";
5803
5804   // Check varargs.
5805   test_varargs ("s, d' f .", "string", 65, 34.234);
5806   test_varargs_macros ();
5807
5808   // Check flexible array members.
5809   struct incomplete_array *ia =
5810     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5811   ia->datasize = 10;
5812   for (int i = 0; i < ia->datasize; ++i)
5813     ia->data[i] = i * 1.234;
5814
5815   // Check named initializers.
5816   struct named_init ni = {
5817     .number = 34,
5818     .name = L"Test wide string",
5819     .average = 543.34343,
5820   };
5821
5822   ni.number = 58;
5823
5824   int dynamic_array[ni.number];
5825   dynamic_array[ni.number - 1] = 543;
5826
5827   // work around unused variable warnings
5828   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5829           || dynamic_array[ni.number - 1] != 543);
5830
5831   ;
5832   return 0;
5833 }
5834 _ACEOF
5835 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5836 do
5837   CC="$ac_save_CC $ac_arg"
5838   rm -f conftest.$ac_objext
5839 if { (ac_try="$ac_compile"
5840 case "(($ac_try" in
5841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842   *) ac_try_echo=$ac_try;;
5843 esac
5844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5845 $as_echo "$ac_try_echo") >&5
5846   (eval "$ac_compile") 2>conftest.er1
5847   ac_status=$?
5848   grep -v '^ *+' conftest.er1 >conftest.err
5849   rm -f conftest.er1
5850   cat conftest.err >&5
5851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852   (exit $ac_status); } && {
5853          test -z "$ac_c_werror_flag" ||
5854          test ! -s conftest.err
5855        } && test -s conftest.$ac_objext; then
5856   ac_cv_prog_cc_c99=$ac_arg
5857 else
5858   $as_echo "$as_me: failed program was:" >&5
5859 sed 's/^/| /' conftest.$ac_ext >&5
5860
5861
5862 fi
5863
5864 rm -f core conftest.err conftest.$ac_objext
5865   test "x$ac_cv_prog_cc_c99" != "xno" && break
5866 done
5867 rm -f conftest.$ac_ext
5868 CC=$ac_save_CC
5869
5870 fi
5871 # AC_CACHE_VAL
5872 case "x$ac_cv_prog_cc_c99" in
5873   x)
5874     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5875 $as_echo "none needed" >&6; } ;;
5876   xno)
5877     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5878 $as_echo "unsupported" >&6; } ;;
5879   *)
5880     CC="$CC $ac_cv_prog_cc_c99"
5881     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
5882 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5883 esac
5884 if test "x$ac_cv_prog_cc_c99" != xno; then
5885   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5886 else
5887   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
5888 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5889 if test "${ac_cv_prog_cc_c89+set}" = set; then
5890   $as_echo_n "(cached) " >&6
5891 else
5892   ac_cv_prog_cc_c89=no
5893 ac_save_CC=$CC
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h.  */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h.  */
5900 #include <stdarg.h>
5901 #include <stdio.h>
5902 #include <sys/types.h>
5903 #include <sys/stat.h>
5904 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5905 struct buf { int x; };
5906 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5907 static char *e (p, i)
5908      char **p;
5909      int i;
5910 {
5911   return p[i];
5912 }
5913 static char *f (char * (*g) (char **, int), char **p, ...)
5914 {
5915   char *s;
5916   va_list v;
5917   va_start (v,p);
5918   s = g (p, va_arg (v,int));
5919   va_end (v);
5920   return s;
5921 }
5922
5923 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5924    function prototypes and stuff, but not '\xHH' hex character constants.
5925    These don't provoke an error unfortunately, instead are silently treated
5926    as 'x'.  The following induces an error, until -std is added to get
5927    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5928    array size at least.  It's necessary to write '\x00'==0 to get something
5929    that's true only with -std.  */
5930 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5931
5932 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5933    inside strings and character constants.  */
5934 #define FOO(x) 'x'
5935 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5936
5937 int test (int i, double x);
5938 struct s1 {int (*f) (int a);};
5939 struct s2 {int (*f) (double a);};
5940 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5941 int argc;
5942 char **argv;
5943 int
5944 main ()
5945 {
5946 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5947   ;
5948   return 0;
5949 }
5950 _ACEOF
5951 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5952         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5953 do
5954   CC="$ac_save_CC $ac_arg"
5955   rm -f conftest.$ac_objext
5956 if { (ac_try="$ac_compile"
5957 case "(($ac_try" in
5958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959   *) ac_try_echo=$ac_try;;
5960 esac
5961 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5962 $as_echo "$ac_try_echo") >&5
5963   (eval "$ac_compile") 2>conftest.er1
5964   ac_status=$?
5965   grep -v '^ *+' conftest.er1 >conftest.err
5966   rm -f conftest.er1
5967   cat conftest.err >&5
5968   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5969   (exit $ac_status); } && {
5970          test -z "$ac_c_werror_flag" ||
5971          test ! -s conftest.err
5972        } && test -s conftest.$ac_objext; then
5973   ac_cv_prog_cc_c89=$ac_arg
5974 else
5975   $as_echo "$as_me: failed program was:" >&5
5976 sed 's/^/| /' conftest.$ac_ext >&5
5977
5978
5979 fi
5980
5981 rm -f core conftest.err conftest.$ac_objext
5982   test "x$ac_cv_prog_cc_c89" != "xno" && break
5983 done
5984 rm -f conftest.$ac_ext
5985 CC=$ac_save_CC
5986
5987 fi
5988 # AC_CACHE_VAL
5989 case "x$ac_cv_prog_cc_c89" in
5990   x)
5991     { $as_echo "$as_me:$LINENO: result: none needed" >&5
5992 $as_echo "none needed" >&6; } ;;
5993   xno)
5994     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
5995 $as_echo "unsupported" >&6; } ;;
5996   *)
5997     CC="$CC $ac_cv_prog_cc_c89"
5998     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
5999 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6000 esac
6001 if test "x$ac_cv_prog_cc_c89" != xno; then
6002   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6003 else
6004   ac_cv_prog_cc_stdc=no
6005 fi
6006
6007
6008 fi
6009
6010  ;;
6011 esac
6012   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
6013 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6014   if test "${ac_cv_prog_cc_stdc+set}" = set; then
6015   $as_echo_n "(cached) " >&6
6016 fi
6017
6018   case $ac_cv_prog_cc_stdc in
6019   no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6020 $as_echo "unsupported" >&6; } ;;
6021   '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
6022 $as_echo "none needed" >&6; } ;;
6023   *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6024 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6025 esac
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036 # Check whether --enable-largefile was given.
6037 if test "${enable_largefile+set}" = set; then
6038   enableval=$enable_largefile;
6039 fi
6040
6041 if test "$enable_largefile" != no; then
6042
6043   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6044 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6045 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6046   $as_echo_n "(cached) " >&6
6047 else
6048   ac_cv_sys_largefile_CC=no
6049      if test "$GCC" != yes; then
6050        ac_save_CC=$CC
6051        while :; do
6052          # IRIX 6.2 and later do not support large files by default,
6053          # so use the C compiler's -n32 option if that helps.
6054          cat >conftest.$ac_ext <<_ACEOF
6055 /* confdefs.h.  */
6056 _ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h.  */
6060 #include <sys/types.h>
6061  /* Check that off_t can represent 2**63 - 1 correctly.
6062     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6063     since some C++ compilers masquerading as C compilers
6064     incorrectly reject 9223372036854775807.  */
6065 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6066   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6067                        && LARGE_OFF_T % 2147483647 == 1)
6068                       ? 1 : -1];
6069 int
6070 main ()
6071 {
6072
6073   ;
6074   return 0;
6075 }
6076 _ACEOF
6077          rm -f conftest.$ac_objext
6078 if { (ac_try="$ac_compile"
6079 case "(($ac_try" in
6080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6081   *) ac_try_echo=$ac_try;;
6082 esac
6083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6084 $as_echo "$ac_try_echo") >&5
6085   (eval "$ac_compile") 2>conftest.er1
6086   ac_status=$?
6087   grep -v '^ *+' conftest.er1 >conftest.err
6088   rm -f conftest.er1
6089   cat conftest.err >&5
6090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091   (exit $ac_status); } && {
6092          test -z "$ac_c_werror_flag" ||
6093          test ! -s conftest.err
6094        } && test -s conftest.$ac_objext; then
6095   break
6096 else
6097   $as_echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6099
6100
6101 fi
6102
6103 rm -f core conftest.err conftest.$ac_objext
6104          CC="$CC -n32"
6105          rm -f conftest.$ac_objext
6106 if { (ac_try="$ac_compile"
6107 case "(($ac_try" in
6108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6109   *) ac_try_echo=$ac_try;;
6110 esac
6111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6112 $as_echo "$ac_try_echo") >&5
6113   (eval "$ac_compile") 2>conftest.er1
6114   ac_status=$?
6115   grep -v '^ *+' conftest.er1 >conftest.err
6116   rm -f conftest.er1
6117   cat conftest.err >&5
6118   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119   (exit $ac_status); } && {
6120          test -z "$ac_c_werror_flag" ||
6121          test ! -s conftest.err
6122        } && test -s conftest.$ac_objext; then
6123   ac_cv_sys_largefile_CC=' -n32'; break
6124 else
6125   $as_echo "$as_me: failed program was:" >&5
6126 sed 's/^/| /' conftest.$ac_ext >&5
6127
6128
6129 fi
6130
6131 rm -f core conftest.err conftest.$ac_objext
6132          break
6133        done
6134        CC=$ac_save_CC
6135        rm -f conftest.$ac_ext
6136     fi
6137 fi
6138 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6139 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6140   if test "$ac_cv_sys_largefile_CC" != no; then
6141     CC=$CC$ac_cv_sys_largefile_CC
6142   fi
6143
6144   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6145 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6146 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6147   $as_echo_n "(cached) " >&6
6148 else
6149   while :; do
6150   cat >conftest.$ac_ext <<_ACEOF
6151 /* confdefs.h.  */
6152 _ACEOF
6153 cat confdefs.h >>conftest.$ac_ext
6154 cat >>conftest.$ac_ext <<_ACEOF
6155 /* end confdefs.h.  */
6156 #include <sys/types.h>
6157  /* Check that off_t can represent 2**63 - 1 correctly.
6158     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6159     since some C++ compilers masquerading as C compilers
6160     incorrectly reject 9223372036854775807.  */
6161 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6162   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6163                        && LARGE_OFF_T % 2147483647 == 1)
6164                       ? 1 : -1];
6165 int
6166 main ()
6167 {
6168
6169   ;
6170   return 0;
6171 }
6172 _ACEOF
6173 rm -f conftest.$ac_objext
6174 if { (ac_try="$ac_compile"
6175 case "(($ac_try" in
6176   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6177   *) ac_try_echo=$ac_try;;
6178 esac
6179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6180 $as_echo "$ac_try_echo") >&5
6181   (eval "$ac_compile") 2>conftest.er1
6182   ac_status=$?
6183   grep -v '^ *+' conftest.er1 >conftest.err
6184   rm -f conftest.er1
6185   cat conftest.err >&5
6186   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6187   (exit $ac_status); } && {
6188          test -z "$ac_c_werror_flag" ||
6189          test ! -s conftest.err
6190        } && test -s conftest.$ac_objext; then
6191   ac_cv_sys_file_offset_bits=no; break
6192 else
6193   $as_echo "$as_me: failed program was:" >&5
6194 sed 's/^/| /' conftest.$ac_ext >&5
6195
6196
6197 fi
6198
6199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200   cat >conftest.$ac_ext <<_ACEOF
6201 /* confdefs.h.  */
6202 _ACEOF
6203 cat confdefs.h >>conftest.$ac_ext
6204 cat >>conftest.$ac_ext <<_ACEOF
6205 /* end confdefs.h.  */
6206 #define _FILE_OFFSET_BITS 64
6207 #include <sys/types.h>
6208  /* Check that off_t can represent 2**63 - 1 correctly.
6209     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6210     since some C++ compilers masquerading as C compilers
6211     incorrectly reject 9223372036854775807.  */
6212 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6213   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6214                        && LARGE_OFF_T % 2147483647 == 1)
6215                       ? 1 : -1];
6216 int
6217 main ()
6218 {
6219
6220   ;
6221   return 0;
6222 }
6223 _ACEOF
6224 rm -f conftest.$ac_objext
6225 if { (ac_try="$ac_compile"
6226 case "(($ac_try" in
6227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6228   *) ac_try_echo=$ac_try;;
6229 esac
6230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6231 $as_echo "$ac_try_echo") >&5
6232   (eval "$ac_compile") 2>conftest.er1
6233   ac_status=$?
6234   grep -v '^ *+' conftest.er1 >conftest.err
6235   rm -f conftest.er1
6236   cat conftest.err >&5
6237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6238   (exit $ac_status); } && {
6239          test -z "$ac_c_werror_flag" ||
6240          test ! -s conftest.err
6241        } && test -s conftest.$ac_objext; then
6242   ac_cv_sys_file_offset_bits=64; break
6243 else
6244   $as_echo "$as_me: failed program was:" >&5
6245 sed 's/^/| /' conftest.$ac_ext >&5
6246
6247
6248 fi
6249
6250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6251   ac_cv_sys_file_offset_bits=unknown
6252   break
6253 done
6254 fi
6255 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6256 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6257 case $ac_cv_sys_file_offset_bits in #(
6258   no | unknown) ;;
6259   *)
6260 cat >>confdefs.h <<_ACEOF
6261 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6262 _ACEOF
6263 ;;
6264 esac
6265 rm -rf conftest*
6266   if test $ac_cv_sys_file_offset_bits = unknown; then
6267     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6268 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6269 if test "${ac_cv_sys_large_files+set}" = set; then
6270   $as_echo_n "(cached) " >&6
6271 else
6272   while :; do
6273   cat >conftest.$ac_ext <<_ACEOF
6274 /* confdefs.h.  */
6275 _ACEOF
6276 cat confdefs.h >>conftest.$ac_ext
6277 cat >>conftest.$ac_ext <<_ACEOF
6278 /* end confdefs.h.  */
6279 #include <sys/types.h>
6280  /* Check that off_t can represent 2**63 - 1 correctly.
6281     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6282     since some C++ compilers masquerading as C compilers
6283     incorrectly reject 9223372036854775807.  */
6284 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6285   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6286                        && LARGE_OFF_T % 2147483647 == 1)
6287                       ? 1 : -1];
6288 int
6289 main ()
6290 {
6291
6292   ;
6293   return 0;
6294 }
6295 _ACEOF
6296 rm -f conftest.$ac_objext
6297 if { (ac_try="$ac_compile"
6298 case "(($ac_try" in
6299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6300   *) ac_try_echo=$ac_try;;
6301 esac
6302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6303 $as_echo "$ac_try_echo") >&5
6304   (eval "$ac_compile") 2>conftest.er1
6305   ac_status=$?
6306   grep -v '^ *+' conftest.er1 >conftest.err
6307   rm -f conftest.er1
6308   cat conftest.err >&5
6309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310   (exit $ac_status); } && {
6311          test -z "$ac_c_werror_flag" ||
6312          test ! -s conftest.err
6313        } && test -s conftest.$ac_objext; then
6314   ac_cv_sys_large_files=no; break
6315 else
6316   $as_echo "$as_me: failed program was:" >&5
6317 sed 's/^/| /' conftest.$ac_ext >&5
6318
6319
6320 fi
6321
6322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6323   cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h.  */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h.  */
6329 #define _LARGE_FILES 1
6330 #include <sys/types.h>
6331  /* Check that off_t can represent 2**63 - 1 correctly.
6332     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6333     since some C++ compilers masquerading as C compilers
6334     incorrectly reject 9223372036854775807.  */
6335 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6336   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6337                        && LARGE_OFF_T % 2147483647 == 1)
6338                       ? 1 : -1];
6339 int
6340 main ()
6341 {
6342
6343   ;
6344   return 0;
6345 }
6346 _ACEOF
6347 rm -f conftest.$ac_objext
6348 if { (ac_try="$ac_compile"
6349 case "(($ac_try" in
6350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6351   *) ac_try_echo=$ac_try;;
6352 esac
6353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6354 $as_echo "$ac_try_echo") >&5
6355   (eval "$ac_compile") 2>conftest.er1
6356   ac_status=$?
6357   grep -v '^ *+' conftest.er1 >conftest.err
6358   rm -f conftest.er1
6359   cat conftest.err >&5
6360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6361   (exit $ac_status); } && {
6362          test -z "$ac_c_werror_flag" ||
6363          test ! -s conftest.err
6364        } && test -s conftest.$ac_objext; then
6365   ac_cv_sys_large_files=1; break
6366 else
6367   $as_echo "$as_me: failed program was:" >&5
6368 sed 's/^/| /' conftest.$ac_ext >&5
6369
6370
6371 fi
6372
6373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6374   ac_cv_sys_large_files=unknown
6375   break
6376 done
6377 fi
6378 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6379 $as_echo "$ac_cv_sys_large_files" >&6; }
6380 case $ac_cv_sys_large_files in #(
6381   no | unknown) ;;
6382   *)
6383 cat >>confdefs.h <<_ACEOF
6384 #define _LARGE_FILES $ac_cv_sys_large_files
6385 _ACEOF
6386 ;;
6387 esac
6388 rm -rf conftest*
6389   fi
6390 fi
6391
6392 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
6393 $as_echo_n "checking for library containing strerror... " >&6; }
6394 if test "${ac_cv_search_strerror+set}" = set; then
6395   $as_echo_n "(cached) " >&6
6396 else
6397   ac_func_search_save_LIBS=$LIBS
6398 cat >conftest.$ac_ext <<_ACEOF
6399 /* confdefs.h.  */
6400 _ACEOF
6401 cat confdefs.h >>conftest.$ac_ext
6402 cat >>conftest.$ac_ext <<_ACEOF
6403 /* end confdefs.h.  */
6404
6405 /* Override any GCC internal prototype to avoid an error.
6406    Use char because int might match the return type of a GCC
6407    builtin and then its argument prototype would still apply.  */
6408 #ifdef __cplusplus
6409 extern "C"
6410 #endif
6411 char strerror ();
6412 int
6413 main ()
6414 {
6415 return strerror ();
6416   ;
6417   return 0;
6418 }
6419 _ACEOF
6420 for ac_lib in '' cposix; do
6421   if test -z "$ac_lib"; then
6422     ac_res="none required"
6423   else
6424     ac_res=-l$ac_lib
6425     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6426   fi
6427   rm -f conftest.$ac_objext conftest$ac_exeext
6428 if { (ac_try="$ac_link"
6429 case "(($ac_try" in
6430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431   *) ac_try_echo=$ac_try;;
6432 esac
6433 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6434 $as_echo "$ac_try_echo") >&5
6435   (eval "$ac_link") 2>conftest.er1
6436   ac_status=$?
6437   grep -v '^ *+' conftest.er1 >conftest.err
6438   rm -f conftest.er1
6439   cat conftest.err >&5
6440   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6441   (exit $ac_status); } && {
6442          test -z "$ac_c_werror_flag" ||
6443          test ! -s conftest.err
6444        } && test -s conftest$ac_exeext && {
6445          test "$cross_compiling" = yes ||
6446          $as_test_x conftest$ac_exeext
6447        }; then
6448   ac_cv_search_strerror=$ac_res
6449 else
6450   $as_echo "$as_me: failed program was:" >&5
6451 sed 's/^/| /' conftest.$ac_ext >&5
6452
6453
6454 fi
6455
6456 rm -rf conftest.dSYM
6457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6458       conftest$ac_exeext
6459   if test "${ac_cv_search_strerror+set}" = set; then
6460   break
6461 fi
6462 done
6463 if test "${ac_cv_search_strerror+set}" = set; then
6464   :
6465 else
6466   ac_cv_search_strerror=no
6467 fi
6468 rm conftest.$ac_ext
6469 LIBS=$ac_func_search_save_LIBS
6470 fi
6471 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6472 $as_echo "$ac_cv_search_strerror" >&6; }
6473 ac_res=$ac_cv_search_strerror
6474 if test "$ac_res" != no; then
6475   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6476
6477 fi
6478
6479 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6480 $as_echo_n "checking for inline... " >&6; }
6481 if test "${ac_cv_c_inline+set}" = set; then
6482   $as_echo_n "(cached) " >&6
6483 else
6484   ac_cv_c_inline=no
6485 for ac_kw in inline __inline__ __inline; do
6486   cat >conftest.$ac_ext <<_ACEOF
6487 /* confdefs.h.  */
6488 _ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h.  */
6492 #ifndef __cplusplus
6493 typedef int foo_t;
6494 static $ac_kw foo_t static_foo () {return 0; }
6495 $ac_kw foo_t foo () {return 0; }
6496 #endif
6497
6498 _ACEOF
6499 rm -f conftest.$ac_objext
6500 if { (ac_try="$ac_compile"
6501 case "(($ac_try" in
6502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503   *) ac_try_echo=$ac_try;;
6504 esac
6505 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6506 $as_echo "$ac_try_echo") >&5
6507   (eval "$ac_compile") 2>conftest.er1
6508   ac_status=$?
6509   grep -v '^ *+' conftest.er1 >conftest.err
6510   rm -f conftest.er1
6511   cat conftest.err >&5
6512   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6513   (exit $ac_status); } && {
6514          test -z "$ac_c_werror_flag" ||
6515          test ! -s conftest.err
6516        } && test -s conftest.$ac_objext; then
6517   ac_cv_c_inline=$ac_kw
6518 else
6519   $as_echo "$as_me: failed program was:" >&5
6520 sed 's/^/| /' conftest.$ac_ext >&5
6521
6522
6523 fi
6524
6525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6526   test "$ac_cv_c_inline" != no && break
6527 done
6528
6529 fi
6530 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6531 $as_echo "$ac_cv_c_inline" >&6; }
6532
6533
6534 case $ac_cv_c_inline in
6535   inline | yes) ;;
6536   *)
6537     case $ac_cv_c_inline in
6538       no) ac_val=;;
6539       *) ac_val=$ac_cv_c_inline;;
6540     esac
6541     cat >>confdefs.h <<_ACEOF
6542 #ifndef __cplusplus
6543 #define inline $ac_val
6544 #endif
6545 _ACEOF
6546     ;;
6547 esac
6548
6549
6550
6551
6552
6553
6554 for ac_header in $ac_header_list
6555 do
6556 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6557 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6558   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6559 $as_echo_n "checking for $ac_header... " >&6; }
6560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6561   $as_echo_n "(cached) " >&6
6562 fi
6563 ac_res=`eval 'as_val=${'$as_ac_Header'}
6564                  $as_echo "$as_val"'`
6565                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6566 $as_echo "$ac_res" >&6; }
6567 else
6568   # Is the header compilable?
6569 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6570 $as_echo_n "checking $ac_header usability... " >&6; }
6571 cat >conftest.$ac_ext <<_ACEOF
6572 /* confdefs.h.  */
6573 _ACEOF
6574 cat confdefs.h >>conftest.$ac_ext
6575 cat >>conftest.$ac_ext <<_ACEOF
6576 /* end confdefs.h.  */
6577 $ac_includes_default
6578 #include <$ac_header>
6579 _ACEOF
6580 rm -f conftest.$ac_objext
6581 if { (ac_try="$ac_compile"
6582 case "(($ac_try" in
6583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584   *) ac_try_echo=$ac_try;;
6585 esac
6586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6587 $as_echo "$ac_try_echo") >&5
6588   (eval "$ac_compile") 2>conftest.er1
6589   ac_status=$?
6590   grep -v '^ *+' conftest.er1 >conftest.err
6591   rm -f conftest.er1
6592   cat conftest.err >&5
6593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6594   (exit $ac_status); } && {
6595          test -z "$ac_c_werror_flag" ||
6596          test ! -s conftest.err
6597        } && test -s conftest.$ac_objext; then
6598   ac_header_compiler=yes
6599 else
6600   $as_echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6602
6603         ac_header_compiler=no
6604 fi
6605
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6607 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6608 $as_echo "$ac_header_compiler" >&6; }
6609
6610 # Is the header present?
6611 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6612 $as_echo_n "checking $ac_header presence... " >&6; }
6613 cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h.  */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h.  */
6619 #include <$ac_header>
6620 _ACEOF
6621 if { (ac_try="$ac_cpp conftest.$ac_ext"
6622 case "(($ac_try" in
6623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624   *) ac_try_echo=$ac_try;;
6625 esac
6626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6627 $as_echo "$ac_try_echo") >&5
6628   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6629   ac_status=$?
6630   grep -v '^ *+' conftest.er1 >conftest.err
6631   rm -f conftest.er1
6632   cat conftest.err >&5
6633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634   (exit $ac_status); } >/dev/null && {
6635          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6636          test ! -s conftest.err
6637        }; then
6638   ac_header_preproc=yes
6639 else
6640   $as_echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6642
6643   ac_header_preproc=no
6644 fi
6645
6646 rm -f conftest.err conftest.$ac_ext
6647 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6648 $as_echo "$ac_header_preproc" >&6; }
6649
6650 # So?  What about this header?
6651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6652   yes:no: )
6653     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6654 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6655     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6656 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6657     ac_header_preproc=yes
6658     ;;
6659   no:yes:* )
6660     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6661 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6662     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6663 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6664     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6665 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6666     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6667 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6668     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6669 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6670     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6671 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6672     ( cat <<\_ASBOX
6673 ## ------------------------------ ##
6674 ## Report this to bug-tar@gnu.org ##
6675 ## ------------------------------ ##
6676 _ASBOX
6677      ) | sed "s/^/$as_me: WARNING:     /" >&2
6678     ;;
6679 esac
6680 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6681 $as_echo_n "checking for $ac_header... " >&6; }
6682 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6683   $as_echo_n "(cached) " >&6
6684 else
6685   eval "$as_ac_Header=\$ac_header_preproc"
6686 fi
6687 ac_res=`eval 'as_val=${'$as_ac_Header'}
6688                  $as_echo "$as_val"'`
6689                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6690 $as_echo "$ac_res" >&6; }
6691
6692 fi
6693 as_val=`eval 'as_val=${'$as_ac_Header'}
6694                  $as_echo "$as_val"'`
6695    if test "x$as_val" = x""yes; then
6696   cat >>confdefs.h <<_ACEOF
6697 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6698 _ACEOF
6699
6700 fi
6701
6702 done
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751
6752
6753
6754
6755
6756
6757
6758
6759
6760
6761
6762
6763
6764
6765
6766
6767
6768
6769
6770
6771
6772
6773
6774
6775
6776
6777
6778
6779
6780
6781
6782
6783
6784
6785
6786 for ac_header in sys/buf.h
6787 do
6788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6789 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6790 $as_echo_n "checking for $ac_header... " >&6; }
6791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6792   $as_echo_n "(cached) " >&6
6793 else
6794   cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h.  */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h.  */
6800 #if HAVE_SYS_PARAM_H
6801 #include <sys/param.h>
6802 #endif
6803
6804 #include <$ac_header>
6805 _ACEOF
6806 rm -f conftest.$ac_objext
6807 if { (ac_try="$ac_compile"
6808 case "(($ac_try" in
6809   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6810   *) ac_try_echo=$ac_try;;
6811 esac
6812 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6813 $as_echo "$ac_try_echo") >&5
6814   (eval "$ac_compile") 2>conftest.er1
6815   ac_status=$?
6816   grep -v '^ *+' conftest.er1 >conftest.err
6817   rm -f conftest.er1
6818   cat conftest.err >&5
6819   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6820   (exit $ac_status); } && {
6821          test -z "$ac_c_werror_flag" ||
6822          test ! -s conftest.err
6823        } && test -s conftest.$ac_objext; then
6824   eval "$as_ac_Header=yes"
6825 else
6826   $as_echo "$as_me: failed program was:" >&5
6827 sed 's/^/| /' conftest.$ac_ext >&5
6828
6829         eval "$as_ac_Header=no"
6830 fi
6831
6832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6833 fi
6834 ac_res=`eval 'as_val=${'$as_ac_Header'}
6835                  $as_echo "$as_val"'`
6836                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6837 $as_echo "$ac_res" >&6; }
6838 as_val=`eval 'as_val=${'$as_ac_Header'}
6839                  $as_echo "$as_val"'`
6840    if test "x$as_val" = x""yes; then
6841   cat >>confdefs.h <<_ACEOF
6842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6843 _ACEOF
6844
6845 fi
6846
6847 done
6848
6849
6850 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6851 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6852 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6853   $as_echo_n "(cached) " >&6
6854 else
6855   cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h.  */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6860 /* end confdefs.h.  */
6861 #include <sys/types.h>
6862 #include <sys/wait.h>
6863 #ifndef WEXITSTATUS
6864 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6865 #endif
6866 #ifndef WIFEXITED
6867 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6868 #endif
6869
6870 int
6871 main ()
6872 {
6873   int s;
6874   wait (&s);
6875   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6876   ;
6877   return 0;
6878 }
6879 _ACEOF
6880 rm -f conftest.$ac_objext
6881 if { (ac_try="$ac_compile"
6882 case "(($ac_try" in
6883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6884   *) ac_try_echo=$ac_try;;
6885 esac
6886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6887 $as_echo "$ac_try_echo") >&5
6888   (eval "$ac_compile") 2>conftest.er1
6889   ac_status=$?
6890   grep -v '^ *+' conftest.er1 >conftest.err
6891   rm -f conftest.er1
6892   cat conftest.err >&5
6893   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6894   (exit $ac_status); } && {
6895          test -z "$ac_c_werror_flag" ||
6896          test ! -s conftest.err
6897        } && test -s conftest.$ac_objext; then
6898   ac_cv_header_sys_wait_h=yes
6899 else
6900   $as_echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6902
6903         ac_cv_header_sys_wait_h=no
6904 fi
6905
6906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6907 fi
6908 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6909 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6910 if test $ac_cv_header_sys_wait_h = yes; then
6911
6912 cat >>confdefs.h <<\_ACEOF
6913 #define HAVE_SYS_WAIT_H 1
6914 _ACEOF
6915
6916 fi
6917
6918
6919
6920
6921
6922
6923
6924 ac_header_dirent=no
6925 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
6926   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
6927 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
6928 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
6929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6930   $as_echo_n "(cached) " >&6
6931 else
6932   cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h.  */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h.  */
6938 #include <sys/types.h>
6939 #include <$ac_hdr>
6940
6941 int
6942 main ()
6943 {
6944 if ((DIR *) 0)
6945 return 0;
6946   ;
6947   return 0;
6948 }
6949 _ACEOF
6950 rm -f conftest.$ac_objext
6951 if { (ac_try="$ac_compile"
6952 case "(($ac_try" in
6953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6954   *) ac_try_echo=$ac_try;;
6955 esac
6956 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6957 $as_echo "$ac_try_echo") >&5
6958   (eval "$ac_compile") 2>conftest.er1
6959   ac_status=$?
6960   grep -v '^ *+' conftest.er1 >conftest.err
6961   rm -f conftest.er1
6962   cat conftest.err >&5
6963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6964   (exit $ac_status); } && {
6965          test -z "$ac_c_werror_flag" ||
6966          test ! -s conftest.err
6967        } && test -s conftest.$ac_objext; then
6968   eval "$as_ac_Header=yes"
6969 else
6970   $as_echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6972
6973         eval "$as_ac_Header=no"
6974 fi
6975
6976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6977 fi
6978 ac_res=`eval 'as_val=${'$as_ac_Header'}
6979                  $as_echo "$as_val"'`
6980                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6981 $as_echo "$ac_res" >&6; }
6982 as_val=`eval 'as_val=${'$as_ac_Header'}
6983                  $as_echo "$as_val"'`
6984    if test "x$as_val" = x""yes; then
6985   cat >>confdefs.h <<_ACEOF
6986 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
6987 _ACEOF
6988
6989 ac_header_dirent=$ac_hdr; break
6990 fi
6991
6992 done
6993 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
6994 if test $ac_header_dirent = dirent.h; then
6995   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
6996 $as_echo_n "checking for library containing opendir... " >&6; }
6997 if test "${ac_cv_search_opendir+set}" = set; then
6998   $as_echo_n "(cached) " >&6
6999 else
7000   ac_func_search_save_LIBS=$LIBS
7001 cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h.  */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h.  */
7007
7008 /* Override any GCC internal prototype to avoid an error.
7009    Use char because int might match the return type of a GCC
7010    builtin and then its argument prototype would still apply.  */
7011 #ifdef __cplusplus
7012 extern "C"
7013 #endif
7014 char opendir ();
7015 int
7016 main ()
7017 {
7018 return opendir ();
7019   ;
7020   return 0;
7021 }
7022 _ACEOF
7023 for ac_lib in '' dir; do
7024   if test -z "$ac_lib"; then
7025     ac_res="none required"
7026   else
7027     ac_res=-l$ac_lib
7028     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7029   fi
7030   rm -f conftest.$ac_objext conftest$ac_exeext
7031 if { (ac_try="$ac_link"
7032 case "(($ac_try" in
7033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7034   *) ac_try_echo=$ac_try;;
7035 esac
7036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7037 $as_echo "$ac_try_echo") >&5
7038   (eval "$ac_link") 2>conftest.er1
7039   ac_status=$?
7040   grep -v '^ *+' conftest.er1 >conftest.err
7041   rm -f conftest.er1
7042   cat conftest.err >&5
7043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7044   (exit $ac_status); } && {
7045          test -z "$ac_c_werror_flag" ||
7046          test ! -s conftest.err
7047        } && test -s conftest$ac_exeext && {
7048          test "$cross_compiling" = yes ||
7049          $as_test_x conftest$ac_exeext
7050        }; then
7051   ac_cv_search_opendir=$ac_res
7052 else
7053   $as_echo "$as_me: failed program was:" >&5
7054 sed 's/^/| /' conftest.$ac_ext >&5
7055
7056
7057 fi
7058
7059 rm -rf conftest.dSYM
7060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7061       conftest$ac_exeext
7062   if test "${ac_cv_search_opendir+set}" = set; then
7063   break
7064 fi
7065 done
7066 if test "${ac_cv_search_opendir+set}" = set; then
7067   :
7068 else
7069   ac_cv_search_opendir=no
7070 fi
7071 rm conftest.$ac_ext
7072 LIBS=$ac_func_search_save_LIBS
7073 fi
7074 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7075 $as_echo "$ac_cv_search_opendir" >&6; }
7076 ac_res=$ac_cv_search_opendir
7077 if test "$ac_res" != no; then
7078   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7079
7080 fi
7081
7082 else
7083   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
7084 $as_echo_n "checking for library containing opendir... " >&6; }
7085 if test "${ac_cv_search_opendir+set}" = set; then
7086   $as_echo_n "(cached) " >&6
7087 else
7088   ac_func_search_save_LIBS=$LIBS
7089 cat >conftest.$ac_ext <<_ACEOF
7090 /* confdefs.h.  */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h.  */
7095
7096 /* Override any GCC internal prototype to avoid an error.
7097    Use char because int might match the return type of a GCC
7098    builtin and then its argument prototype would still apply.  */
7099 #ifdef __cplusplus
7100 extern "C"
7101 #endif
7102 char opendir ();
7103 int
7104 main ()
7105 {
7106 return opendir ();
7107   ;
7108   return 0;
7109 }
7110 _ACEOF
7111 for ac_lib in '' x; do
7112   if test -z "$ac_lib"; then
7113     ac_res="none required"
7114   else
7115     ac_res=-l$ac_lib
7116     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7117   fi
7118   rm -f conftest.$ac_objext conftest$ac_exeext
7119 if { (ac_try="$ac_link"
7120 case "(($ac_try" in
7121   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7122   *) ac_try_echo=$ac_try;;
7123 esac
7124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7125 $as_echo "$ac_try_echo") >&5
7126   (eval "$ac_link") 2>conftest.er1
7127   ac_status=$?
7128   grep -v '^ *+' conftest.er1 >conftest.err
7129   rm -f conftest.er1
7130   cat conftest.err >&5
7131   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7132   (exit $ac_status); } && {
7133          test -z "$ac_c_werror_flag" ||
7134          test ! -s conftest.err
7135        } && test -s conftest$ac_exeext && {
7136          test "$cross_compiling" = yes ||
7137          $as_test_x conftest$ac_exeext
7138        }; then
7139   ac_cv_search_opendir=$ac_res
7140 else
7141   $as_echo "$as_me: failed program was:" >&5
7142 sed 's/^/| /' conftest.$ac_ext >&5
7143
7144
7145 fi
7146
7147 rm -rf conftest.dSYM
7148 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7149       conftest$ac_exeext
7150   if test "${ac_cv_search_opendir+set}" = set; then
7151   break
7152 fi
7153 done
7154 if test "${ac_cv_search_opendir+set}" = set; then
7155   :
7156 else
7157   ac_cv_search_opendir=no
7158 fi
7159 rm conftest.$ac_ext
7160 LIBS=$ac_func_search_save_LIBS
7161 fi
7162 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7163 $as_echo "$ac_cv_search_opendir" >&6; }
7164 ac_res=$ac_cv_search_opendir
7165 if test "$ac_res" != no; then
7166   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7167
7168 fi
7169
7170 fi
7171
7172 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
7173 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7174 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
7175   $as_echo_n "(cached) " >&6
7176 else
7177   cat >conftest.$ac_ext <<_ACEOF
7178 /* confdefs.h.  */
7179 _ACEOF
7180 cat confdefs.h >>conftest.$ac_ext
7181 cat >>conftest.$ac_ext <<_ACEOF
7182 /* end confdefs.h.  */
7183 #include <sys/types.h>
7184 int
7185 main ()
7186 {
7187 return makedev(0, 0);
7188   ;
7189   return 0;
7190 }
7191 _ACEOF
7192 rm -f conftest.$ac_objext conftest$ac_exeext
7193 if { (ac_try="$ac_link"
7194 case "(($ac_try" in
7195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7196   *) ac_try_echo=$ac_try;;
7197 esac
7198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7199 $as_echo "$ac_try_echo") >&5
7200   (eval "$ac_link") 2>conftest.er1
7201   ac_status=$?
7202   grep -v '^ *+' conftest.er1 >conftest.err
7203   rm -f conftest.er1
7204   cat conftest.err >&5
7205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); } && {
7207          test -z "$ac_c_werror_flag" ||
7208          test ! -s conftest.err
7209        } && test -s conftest$ac_exeext && {
7210          test "$cross_compiling" = yes ||
7211          $as_test_x conftest$ac_exeext
7212        }; then
7213   ac_cv_header_sys_types_h_makedev=yes
7214 else
7215   $as_echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7217
7218         ac_cv_header_sys_types_h_makedev=no
7219 fi
7220
7221 rm -rf conftest.dSYM
7222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7223       conftest$ac_exeext conftest.$ac_ext
7224
7225 fi
7226 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
7227 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7228
7229 if test $ac_cv_header_sys_types_h_makedev = no; then
7230 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7231   { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7232 $as_echo_n "checking for sys/mkdev.h... " >&6; }
7233 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7234   $as_echo_n "(cached) " >&6
7235 fi
7236 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7237 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
7238 else
7239   # Is the header compilable?
7240 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
7241 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
7242 cat >conftest.$ac_ext <<_ACEOF
7243 /* confdefs.h.  */
7244 _ACEOF
7245 cat confdefs.h >>conftest.$ac_ext
7246 cat >>conftest.$ac_ext <<_ACEOF
7247 /* end confdefs.h.  */
7248 $ac_includes_default
7249 #include <sys/mkdev.h>
7250 _ACEOF
7251 rm -f conftest.$ac_objext
7252 if { (ac_try="$ac_compile"
7253 case "(($ac_try" in
7254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7255   *) ac_try_echo=$ac_try;;
7256 esac
7257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7258 $as_echo "$ac_try_echo") >&5
7259   (eval "$ac_compile") 2>conftest.er1
7260   ac_status=$?
7261   grep -v '^ *+' conftest.er1 >conftest.err
7262   rm -f conftest.er1
7263   cat conftest.err >&5
7264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265   (exit $ac_status); } && {
7266          test -z "$ac_c_werror_flag" ||
7267          test ! -s conftest.err
7268        } && test -s conftest.$ac_objext; then
7269   ac_header_compiler=yes
7270 else
7271   $as_echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7273
7274         ac_header_compiler=no
7275 fi
7276
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7279 $as_echo "$ac_header_compiler" >&6; }
7280
7281 # Is the header present?
7282 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
7283 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
7284 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h.  */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h.  */
7290 #include <sys/mkdev.h>
7291 _ACEOF
7292 if { (ac_try="$ac_cpp conftest.$ac_ext"
7293 case "(($ac_try" in
7294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7295   *) ac_try_echo=$ac_try;;
7296 esac
7297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7298 $as_echo "$ac_try_echo") >&5
7299   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7300   ac_status=$?
7301   grep -v '^ *+' conftest.er1 >conftest.err
7302   rm -f conftest.er1
7303   cat conftest.err >&5
7304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305   (exit $ac_status); } >/dev/null && {
7306          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7307          test ! -s conftest.err
7308        }; then
7309   ac_header_preproc=yes
7310 else
7311   $as_echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7313
7314   ac_header_preproc=no
7315 fi
7316
7317 rm -f conftest.err conftest.$ac_ext
7318 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7319 $as_echo "$ac_header_preproc" >&6; }
7320
7321 # So?  What about this header?
7322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7323   yes:no: )
7324     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
7325 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7326     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
7327 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
7328     ac_header_preproc=yes
7329     ;;
7330   no:yes:* )
7331     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
7332 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
7333     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
7334 $as_echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
7335     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
7336 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
7337     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
7338 $as_echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7339     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7340 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
7341     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
7342 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
7343     ( cat <<\_ASBOX
7344 ## ------------------------------ ##
7345 ## Report this to bug-tar@gnu.org ##
7346 ## ------------------------------ ##
7347 _ASBOX
7348      ) | sed "s/^/$as_me: WARNING:     /" >&2
7349     ;;
7350 esac
7351 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7352 $as_echo_n "checking for sys/mkdev.h... " >&6; }
7353 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7354   $as_echo_n "(cached) " >&6
7355 else
7356   ac_cv_header_sys_mkdev_h=$ac_header_preproc
7357 fi
7358 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7359 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
7360
7361 fi
7362 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
7363
7364 cat >>confdefs.h <<\_ACEOF
7365 #define MAJOR_IN_MKDEV 1
7366 _ACEOF
7367
7368 fi
7369
7370
7371
7372   if test $ac_cv_header_sys_mkdev_h = no; then
7373     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7374   { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7375 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
7376 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7377   $as_echo_n "(cached) " >&6
7378 fi
7379 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7380 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
7381 else
7382   # Is the header compilable?
7383 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7384 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
7385 cat >conftest.$ac_ext <<_ACEOF
7386 /* confdefs.h.  */
7387 _ACEOF
7388 cat confdefs.h >>conftest.$ac_ext
7389 cat >>conftest.$ac_ext <<_ACEOF
7390 /* end confdefs.h.  */
7391 $ac_includes_default
7392 #include <sys/sysmacros.h>
7393 _ACEOF
7394 rm -f conftest.$ac_objext
7395 if { (ac_try="$ac_compile"
7396 case "(($ac_try" in
7397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7398   *) ac_try_echo=$ac_try;;
7399 esac
7400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7401 $as_echo "$ac_try_echo") >&5
7402   (eval "$ac_compile") 2>conftest.er1
7403   ac_status=$?
7404   grep -v '^ *+' conftest.er1 >conftest.err
7405   rm -f conftest.er1
7406   cat conftest.err >&5
7407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408   (exit $ac_status); } && {
7409          test -z "$ac_c_werror_flag" ||
7410          test ! -s conftest.err
7411        } && test -s conftest.$ac_objext; then
7412   ac_header_compiler=yes
7413 else
7414   $as_echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7416
7417         ac_header_compiler=no
7418 fi
7419
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7422 $as_echo "$ac_header_compiler" >&6; }
7423
7424 # Is the header present?
7425 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7426 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
7427 cat >conftest.$ac_ext <<_ACEOF
7428 /* confdefs.h.  */
7429 _ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h.  */
7433 #include <sys/sysmacros.h>
7434 _ACEOF
7435 if { (ac_try="$ac_cpp conftest.$ac_ext"
7436 case "(($ac_try" in
7437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7438   *) ac_try_echo=$ac_try;;
7439 esac
7440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7441 $as_echo "$ac_try_echo") >&5
7442   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7443   ac_status=$?
7444   grep -v '^ *+' conftest.er1 >conftest.err
7445   rm -f conftest.er1
7446   cat conftest.err >&5
7447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448   (exit $ac_status); } >/dev/null && {
7449          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7450          test ! -s conftest.err
7451        }; then
7452   ac_header_preproc=yes
7453 else
7454   $as_echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7456
7457   ac_header_preproc=no
7458 fi
7459
7460 rm -f conftest.err conftest.$ac_ext
7461 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7462 $as_echo "$ac_header_preproc" >&6; }
7463
7464 # So?  What about this header?
7465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7466   yes:no: )
7467     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7468 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7469     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7470 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7471     ac_header_preproc=yes
7472     ;;
7473   no:yes:* )
7474     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7475 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7476     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
7477 $as_echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
7478     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7479 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7480     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
7481 $as_echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7482     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7483 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7484     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7485 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7486     ( cat <<\_ASBOX
7487 ## ------------------------------ ##
7488 ## Report this to bug-tar@gnu.org ##
7489 ## ------------------------------ ##
7490 _ASBOX
7491      ) | sed "s/^/$as_me: WARNING:     /" >&2
7492     ;;
7493 esac
7494 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7495 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
7496 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7497   $as_echo_n "(cached) " >&6
7498 else
7499   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7500 fi
7501 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7502 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
7503
7504 fi
7505 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
7506
7507 cat >>confdefs.h <<\_ACEOF
7508 #define MAJOR_IN_SYSMACROS 1
7509 _ACEOF
7510
7511 fi
7512
7513
7514   fi
7515 fi
7516
7517 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7518 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7519 if test "${ac_cv_header_stat_broken+set}" = set; then
7520   $as_echo_n "(cached) " >&6
7521 else
7522   cat >conftest.$ac_ext <<_ACEOF
7523 /* confdefs.h.  */
7524 _ACEOF
7525 cat confdefs.h >>conftest.$ac_ext
7526 cat >>conftest.$ac_ext <<_ACEOF
7527 /* end confdefs.h.  */
7528 #include <sys/types.h>
7529 #include <sys/stat.h>
7530
7531 #if defined S_ISBLK && defined S_IFDIR
7532 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7533 #endif
7534
7535 #if defined S_ISBLK && defined S_IFCHR
7536 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7537 #endif
7538
7539 #if defined S_ISLNK && defined S_IFREG
7540 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7541 #endif
7542
7543 #if defined S_ISSOCK && defined S_IFREG
7544 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7545 #endif
7546
7547 _ACEOF
7548 rm -f conftest.$ac_objext
7549 if { (ac_try="$ac_compile"
7550 case "(($ac_try" in
7551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7552   *) ac_try_echo=$ac_try;;
7553 esac
7554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7555 $as_echo "$ac_try_echo") >&5
7556   (eval "$ac_compile") 2>conftest.er1
7557   ac_status=$?
7558   grep -v '^ *+' conftest.er1 >conftest.err
7559   rm -f conftest.er1
7560   cat conftest.err >&5
7561   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562   (exit $ac_status); } && {
7563          test -z "$ac_c_werror_flag" ||
7564          test ! -s conftest.err
7565        } && test -s conftest.$ac_objext; then
7566   ac_cv_header_stat_broken=no
7567 else
7568   $as_echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.$ac_ext >&5
7570
7571         ac_cv_header_stat_broken=yes
7572 fi
7573
7574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7575 fi
7576 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7577 $as_echo "$ac_cv_header_stat_broken" >&6; }
7578 if test $ac_cv_header_stat_broken = yes; then
7579
7580 cat >>confdefs.h <<\_ACEOF
7581 #define STAT_MACROS_BROKEN 1
7582 _ACEOF
7583
7584 fi
7585
7586 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7587 $as_echo_n "checking for ANSI C header files... " >&6; }
7588 if test "${ac_cv_header_stdc+set}" = set; then
7589   $as_echo_n "(cached) " >&6
7590 else
7591   cat >conftest.$ac_ext <<_ACEOF
7592 /* confdefs.h.  */
7593 _ACEOF
7594 cat confdefs.h >>conftest.$ac_ext
7595 cat >>conftest.$ac_ext <<_ACEOF
7596 /* end confdefs.h.  */
7597 #include <stdlib.h>
7598 #include <stdarg.h>
7599 #include <string.h>
7600 #include <float.h>
7601
7602 int
7603 main ()
7604 {
7605
7606   ;
7607   return 0;
7608 }
7609 _ACEOF
7610 rm -f conftest.$ac_objext
7611 if { (ac_try="$ac_compile"
7612 case "(($ac_try" in
7613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614   *) ac_try_echo=$ac_try;;
7615 esac
7616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7617 $as_echo "$ac_try_echo") >&5
7618   (eval "$ac_compile") 2>conftest.er1
7619   ac_status=$?
7620   grep -v '^ *+' conftest.er1 >conftest.err
7621   rm -f conftest.er1
7622   cat conftest.err >&5
7623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7624   (exit $ac_status); } && {
7625          test -z "$ac_c_werror_flag" ||
7626          test ! -s conftest.err
7627        } && test -s conftest.$ac_objext; then
7628   ac_cv_header_stdc=yes
7629 else
7630   $as_echo "$as_me: failed program was:" >&5
7631 sed 's/^/| /' conftest.$ac_ext >&5
7632
7633         ac_cv_header_stdc=no
7634 fi
7635
7636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7637
7638 if test $ac_cv_header_stdc = yes; then
7639   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7640   cat >conftest.$ac_ext <<_ACEOF
7641 /* confdefs.h.  */
7642 _ACEOF
7643 cat confdefs.h >>conftest.$ac_ext
7644 cat >>conftest.$ac_ext <<_ACEOF
7645 /* end confdefs.h.  */
7646 #include <string.h>
7647
7648 _ACEOF
7649 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7650   $EGREP "memchr" >/dev/null 2>&1; then
7651   :
7652 else
7653   ac_cv_header_stdc=no
7654 fi
7655 rm -f conftest*
7656
7657 fi
7658
7659 if test $ac_cv_header_stdc = yes; then
7660   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7661   cat >conftest.$ac_ext <<_ACEOF
7662 /* confdefs.h.  */
7663 _ACEOF
7664 cat confdefs.h >>conftest.$ac_ext
7665 cat >>conftest.$ac_ext <<_ACEOF
7666 /* end confdefs.h.  */
7667 #include <stdlib.h>
7668
7669 _ACEOF
7670 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7671   $EGREP "free" >/dev/null 2>&1; then
7672   :
7673 else
7674   ac_cv_header_stdc=no
7675 fi
7676 rm -f conftest*
7677
7678 fi
7679
7680 if test $ac_cv_header_stdc = yes; then
7681   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7682   if test "$cross_compiling" = yes; then
7683   :
7684 else
7685   cat >conftest.$ac_ext <<_ACEOF
7686 /* confdefs.h.  */
7687 _ACEOF
7688 cat confdefs.h >>conftest.$ac_ext
7689 cat >>conftest.$ac_ext <<_ACEOF
7690 /* end confdefs.h.  */
7691 #include <ctype.h>
7692 #include <stdlib.h>
7693 #if ((' ' & 0x0FF) == 0x020)
7694 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7695 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7696 #else
7697 # define ISLOWER(c) \
7698                    (('a' <= (c) && (c) <= 'i') \
7699                      || ('j' <= (c) && (c) <= 'r') \
7700                      || ('s' <= (c) && (c) <= 'z'))
7701 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7702 #endif
7703
7704 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7705 int
7706 main ()
7707 {
7708   int i;
7709   for (i = 0; i < 256; i++)
7710     if (XOR (islower (i), ISLOWER (i))
7711         || toupper (i) != TOUPPER (i))
7712       return 2;
7713   return 0;
7714 }
7715 _ACEOF
7716 rm -f conftest$ac_exeext
7717 if { (ac_try="$ac_link"
7718 case "(($ac_try" in
7719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7720   *) ac_try_echo=$ac_try;;
7721 esac
7722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7723 $as_echo "$ac_try_echo") >&5
7724   (eval "$ac_link") 2>&5
7725   ac_status=$?
7726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7727   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7728   { (case "(($ac_try" in
7729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730   *) ac_try_echo=$ac_try;;
7731 esac
7732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7733 $as_echo "$ac_try_echo") >&5
7734   (eval "$ac_try") 2>&5
7735   ac_status=$?
7736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737   (exit $ac_status); }; }; then
7738   :
7739 else
7740   $as_echo "$as_me: program exited with status $ac_status" >&5
7741 $as_echo "$as_me: failed program was:" >&5
7742 sed 's/^/| /' conftest.$ac_ext >&5
7743
7744 ( exit $ac_status )
7745 ac_cv_header_stdc=no
7746 fi
7747 rm -rf conftest.dSYM
7748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7749 fi
7750
7751
7752 fi
7753 fi
7754 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7755 $as_echo "$ac_cv_header_stdc" >&6; }
7756 if test $ac_cv_header_stdc = yes; then
7757
7758 cat >>confdefs.h <<\_ACEOF
7759 #define STDC_HEADERS 1
7760 _ACEOF
7761
7762 fi
7763
7764
7765 { $as_echo "$as_me:$LINENO: checking for st_fstype string in struct stat" >&5
7766 $as_echo_n "checking for st_fstype string in struct stat... " >&6; }
7767 if test "${diff_cv_st_fstype_string+set}" = set; then
7768   $as_echo_n "(cached) " >&6
7769 else
7770   cat >conftest.$ac_ext <<_ACEOF
7771 /* confdefs.h.  */
7772 _ACEOF
7773 cat confdefs.h >>conftest.$ac_ext
7774 cat >>conftest.$ac_ext <<_ACEOF
7775 /* end confdefs.h.  */
7776 #include <sys/types.h>
7777 #include <sys/stat.h>
7778 int
7779 main ()
7780 {
7781 struct stat s; s.st_fstype[0] = 'x';
7782   ;
7783   return 0;
7784 }
7785 _ACEOF
7786 rm -f conftest.$ac_objext
7787 if { (ac_try="$ac_compile"
7788 case "(($ac_try" in
7789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7790   *) ac_try_echo=$ac_try;;
7791 esac
7792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7793 $as_echo "$ac_try_echo") >&5
7794   (eval "$ac_compile") 2>conftest.er1
7795   ac_status=$?
7796   grep -v '^ *+' conftest.er1 >conftest.err
7797   rm -f conftest.er1
7798   cat conftest.err >&5
7799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800   (exit $ac_status); } && {
7801          test -z "$ac_c_werror_flag" ||
7802          test ! -s conftest.err
7803        } && test -s conftest.$ac_objext; then
7804   diff_cv_st_fstype_string=yes
7805 else
7806   $as_echo "$as_me: failed program was:" >&5
7807 sed 's/^/| /' conftest.$ac_ext >&5
7808
7809         diff_cv_st_fstype_string=no
7810 fi
7811
7812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7813 fi
7814
7815 { $as_echo "$as_me:$LINENO: result: $diff_cv_st_fstype_string" >&5
7816 $as_echo "$diff_cv_st_fstype_string" >&6; }
7817 if test $diff_cv_st_fstype_string = yes; then
7818
7819 cat >>confdefs.h <<\_ACEOF
7820 #define HAVE_ST_FSTYPE_STRING 1
7821 _ACEOF
7822
7823 fi
7824
7825 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7826 $as_echo_n "checking return type of signal handlers... " >&6; }
7827 if test "${ac_cv_type_signal+set}" = set; then
7828   $as_echo_n "(cached) " >&6
7829 else
7830   cat >conftest.$ac_ext <<_ACEOF
7831 /* confdefs.h.  */
7832 _ACEOF
7833 cat confdefs.h >>conftest.$ac_ext
7834 cat >>conftest.$ac_ext <<_ACEOF
7835 /* end confdefs.h.  */
7836 #include <sys/types.h>
7837 #include <signal.h>
7838
7839 int
7840 main ()
7841 {
7842 return *(signal (0, 0)) (0) == 1;
7843   ;
7844   return 0;
7845 }
7846 _ACEOF
7847 rm -f conftest.$ac_objext
7848 if { (ac_try="$ac_compile"
7849 case "(($ac_try" in
7850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851   *) ac_try_echo=$ac_try;;
7852 esac
7853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7854 $as_echo "$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   $as_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_signal=int
7866 else
7867   $as_echo "$as_me: failed program was:" >&5
7868 sed 's/^/| /' conftest.$ac_ext >&5
7869
7870         ac_cv_type_signal=void
7871 fi
7872
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874 fi
7875 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7876 $as_echo "$ac_cv_type_signal" >&6; }
7877
7878 cat >>confdefs.h <<_ACEOF
7879 #define RETSIGTYPE $ac_cv_type_signal
7880 _ACEOF
7881
7882
7883 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
7884 $as_echo_n "checking for mode_t... " >&6; }
7885 if test "${ac_cv_type_mode_t+set}" = set; then
7886   $as_echo_n "(cached) " >&6
7887 else
7888   ac_cv_type_mode_t=no
7889 cat >conftest.$ac_ext <<_ACEOF
7890 /* confdefs.h.  */
7891 _ACEOF
7892 cat confdefs.h >>conftest.$ac_ext
7893 cat >>conftest.$ac_ext <<_ACEOF
7894 /* end confdefs.h.  */
7895 $ac_includes_default
7896 int
7897 main ()
7898 {
7899 if (sizeof (mode_t))
7900        return 0;
7901   ;
7902   return 0;
7903 }
7904 _ACEOF
7905 rm -f conftest.$ac_objext
7906 if { (ac_try="$ac_compile"
7907 case "(($ac_try" in
7908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7909   *) ac_try_echo=$ac_try;;
7910 esac
7911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7912 $as_echo "$ac_try_echo") >&5
7913   (eval "$ac_compile") 2>conftest.er1
7914   ac_status=$?
7915   grep -v '^ *+' conftest.er1 >conftest.err
7916   rm -f conftest.er1
7917   cat conftest.err >&5
7918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919   (exit $ac_status); } && {
7920          test -z "$ac_c_werror_flag" ||
7921          test ! -s conftest.err
7922        } && test -s conftest.$ac_objext; then
7923   cat >conftest.$ac_ext <<_ACEOF
7924 /* confdefs.h.  */
7925 _ACEOF
7926 cat confdefs.h >>conftest.$ac_ext
7927 cat >>conftest.$ac_ext <<_ACEOF
7928 /* end confdefs.h.  */
7929 $ac_includes_default
7930 int
7931 main ()
7932 {
7933 if (sizeof ((mode_t)))
7934           return 0;
7935   ;
7936   return 0;
7937 }
7938 _ACEOF
7939 rm -f conftest.$ac_objext
7940 if { (ac_try="$ac_compile"
7941 case "(($ac_try" in
7942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943   *) ac_try_echo=$ac_try;;
7944 esac
7945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7946 $as_echo "$ac_try_echo") >&5
7947   (eval "$ac_compile") 2>conftest.er1
7948   ac_status=$?
7949   grep -v '^ *+' conftest.er1 >conftest.err
7950   rm -f conftest.er1
7951   cat conftest.err >&5
7952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953   (exit $ac_status); } && {
7954          test -z "$ac_c_werror_flag" ||
7955          test ! -s conftest.err
7956        } && test -s conftest.$ac_objext; then
7957   :
7958 else
7959   $as_echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962         ac_cv_type_mode_t=yes
7963 fi
7964
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 else
7967   $as_echo "$as_me: failed program was:" >&5
7968 sed 's/^/| /' conftest.$ac_ext >&5
7969
7970
7971 fi
7972
7973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7974 fi
7975 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7976 $as_echo "$ac_cv_type_mode_t" >&6; }
7977 if test "x$ac_cv_type_mode_t" = x""yes; then
7978   :
7979 else
7980
7981 cat >>confdefs.h <<_ACEOF
7982 #define mode_t int
7983 _ACEOF
7984
7985 fi
7986
7987 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
7988 $as_echo_n "checking for pid_t... " >&6; }
7989 if test "${ac_cv_type_pid_t+set}" = set; then
7990   $as_echo_n "(cached) " >&6
7991 else
7992   ac_cv_type_pid_t=no
7993 cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h.  */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h.  */
7999 $ac_includes_default
8000 int
8001 main ()
8002 {
8003 if (sizeof (pid_t))
8004        return 0;
8005   ;
8006   return 0;
8007 }
8008 _ACEOF
8009 rm -f conftest.$ac_objext
8010 if { (ac_try="$ac_compile"
8011 case "(($ac_try" in
8012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013   *) ac_try_echo=$ac_try;;
8014 esac
8015 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8016 $as_echo "$ac_try_echo") >&5
8017   (eval "$ac_compile") 2>conftest.er1
8018   ac_status=$?
8019   grep -v '^ *+' conftest.er1 >conftest.err
8020   rm -f conftest.er1
8021   cat conftest.err >&5
8022   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8023   (exit $ac_status); } && {
8024          test -z "$ac_c_werror_flag" ||
8025          test ! -s conftest.err
8026        } && test -s conftest.$ac_objext; then
8027   cat >conftest.$ac_ext <<_ACEOF
8028 /* confdefs.h.  */
8029 _ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h.  */
8033 $ac_includes_default
8034 int
8035 main ()
8036 {
8037 if (sizeof ((pid_t)))
8038           return 0;
8039   ;
8040   return 0;
8041 }
8042 _ACEOF
8043 rm -f conftest.$ac_objext
8044 if { (ac_try="$ac_compile"
8045 case "(($ac_try" in
8046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047   *) ac_try_echo=$ac_try;;
8048 esac
8049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8050 $as_echo "$ac_try_echo") >&5
8051   (eval "$ac_compile") 2>conftest.er1
8052   ac_status=$?
8053   grep -v '^ *+' conftest.er1 >conftest.err
8054   rm -f conftest.er1
8055   cat conftest.err >&5
8056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057   (exit $ac_status); } && {
8058          test -z "$ac_c_werror_flag" ||
8059          test ! -s conftest.err
8060        } && test -s conftest.$ac_objext; then
8061   :
8062 else
8063   $as_echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066         ac_cv_type_pid_t=yes
8067 fi
8068
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 else
8071   $as_echo "$as_me: failed program was:" >&5
8072 sed 's/^/| /' conftest.$ac_ext >&5
8073
8074
8075 fi
8076
8077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 fi
8079 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8080 $as_echo "$ac_cv_type_pid_t" >&6; }
8081 if test "x$ac_cv_type_pid_t" = x""yes; then
8082   :
8083 else
8084
8085 cat >>confdefs.h <<_ACEOF
8086 #define pid_t int
8087 _ACEOF
8088
8089 fi
8090
8091 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
8092 $as_echo_n "checking for off_t... " >&6; }
8093 if test "${ac_cv_type_off_t+set}" = set; then
8094   $as_echo_n "(cached) " >&6
8095 else
8096   ac_cv_type_off_t=no
8097 cat >conftest.$ac_ext <<_ACEOF
8098 /* confdefs.h.  */
8099 _ACEOF
8100 cat confdefs.h >>conftest.$ac_ext
8101 cat >>conftest.$ac_ext <<_ACEOF
8102 /* end confdefs.h.  */
8103 $ac_includes_default
8104 int
8105 main ()
8106 {
8107 if (sizeof (off_t))
8108        return 0;
8109   ;
8110   return 0;
8111 }
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (ac_try="$ac_compile"
8115 case "(($ac_try" in
8116   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117   *) ac_try_echo=$ac_try;;
8118 esac
8119 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8120 $as_echo "$ac_try_echo") >&5
8121   (eval "$ac_compile") 2>conftest.er1
8122   ac_status=$?
8123   grep -v '^ *+' conftest.er1 >conftest.err
8124   rm -f conftest.er1
8125   cat conftest.err >&5
8126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127   (exit $ac_status); } && {
8128          test -z "$ac_c_werror_flag" ||
8129          test ! -s conftest.err
8130        } && test -s conftest.$ac_objext; then
8131   cat >conftest.$ac_ext <<_ACEOF
8132 /* confdefs.h.  */
8133 _ACEOF
8134 cat confdefs.h >>conftest.$ac_ext
8135 cat >>conftest.$ac_ext <<_ACEOF
8136 /* end confdefs.h.  */
8137 $ac_includes_default
8138 int
8139 main ()
8140 {
8141 if (sizeof ((off_t)))
8142           return 0;
8143   ;
8144   return 0;
8145 }
8146 _ACEOF
8147 rm -f conftest.$ac_objext
8148 if { (ac_try="$ac_compile"
8149 case "(($ac_try" in
8150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8151   *) ac_try_echo=$ac_try;;
8152 esac
8153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8154 $as_echo "$ac_try_echo") >&5
8155   (eval "$ac_compile") 2>conftest.er1
8156   ac_status=$?
8157   grep -v '^ *+' conftest.er1 >conftest.err
8158   rm -f conftest.er1
8159   cat conftest.err >&5
8160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161   (exit $ac_status); } && {
8162          test -z "$ac_c_werror_flag" ||
8163          test ! -s conftest.err
8164        } && test -s conftest.$ac_objext; then
8165   :
8166 else
8167   $as_echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8169
8170         ac_cv_type_off_t=yes
8171 fi
8172
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 else
8175   $as_echo "$as_me: failed program was:" >&5
8176 sed 's/^/| /' conftest.$ac_ext >&5
8177
8178
8179 fi
8180
8181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182 fi
8183 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8184 $as_echo "$ac_cv_type_off_t" >&6; }
8185 if test "x$ac_cv_type_off_t" = x""yes; then
8186   :
8187 else
8188
8189 cat >>confdefs.h <<_ACEOF
8190 #define off_t long int
8191 _ACEOF
8192
8193 fi
8194
8195 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
8196 $as_echo_n "checking for size_t... " >&6; }
8197 if test "${ac_cv_type_size_t+set}" = set; then
8198   $as_echo_n "(cached) " >&6
8199 else
8200   ac_cv_type_size_t=no
8201 cat >conftest.$ac_ext <<_ACEOF
8202 /* confdefs.h.  */
8203 _ACEOF
8204 cat confdefs.h >>conftest.$ac_ext
8205 cat >>conftest.$ac_ext <<_ACEOF
8206 /* end confdefs.h.  */
8207 $ac_includes_default
8208 int
8209 main ()
8210 {
8211 if (sizeof (size_t))
8212        return 0;
8213   ;
8214   return 0;
8215 }
8216 _ACEOF
8217 rm -f conftest.$ac_objext
8218 if { (ac_try="$ac_compile"
8219 case "(($ac_try" in
8220   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221   *) ac_try_echo=$ac_try;;
8222 esac
8223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8224 $as_echo "$ac_try_echo") >&5
8225   (eval "$ac_compile") 2>conftest.er1
8226   ac_status=$?
8227   grep -v '^ *+' conftest.er1 >conftest.err
8228   rm -f conftest.er1
8229   cat conftest.err >&5
8230   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231   (exit $ac_status); } && {
8232          test -z "$ac_c_werror_flag" ||
8233          test ! -s conftest.err
8234        } && test -s conftest.$ac_objext; then
8235   cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h.  */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h.  */
8241 $ac_includes_default
8242 int
8243 main ()
8244 {
8245 if (sizeof ((size_t)))
8246           return 0;
8247   ;
8248   return 0;
8249 }
8250 _ACEOF
8251 rm -f conftest.$ac_objext
8252 if { (ac_try="$ac_compile"
8253 case "(($ac_try" in
8254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255   *) ac_try_echo=$ac_try;;
8256 esac
8257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8258 $as_echo "$ac_try_echo") >&5
8259   (eval "$ac_compile") 2>conftest.er1
8260   ac_status=$?
8261   grep -v '^ *+' conftest.er1 >conftest.err
8262   rm -f conftest.er1
8263   cat conftest.err >&5
8264   $as_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_objext; then
8269   :
8270 else
8271   $as_echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.$ac_ext >&5
8273
8274         ac_cv_type_size_t=yes
8275 fi
8276
8277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278 else
8279   $as_echo "$as_me: failed program was:" >&5
8280 sed 's/^/| /' conftest.$ac_ext >&5
8281
8282
8283 fi
8284
8285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8286 fi
8287 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8288 $as_echo "$ac_cv_type_size_t" >&6; }
8289 if test "x$ac_cv_type_size_t" = x""yes; then
8290   :
8291 else
8292
8293 cat >>confdefs.h <<_ACEOF
8294 #define size_t unsigned int
8295 _ACEOF
8296
8297 fi
8298
8299 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8300 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8301 if test "${ac_cv_type_uid_t+set}" = set; then
8302   $as_echo_n "(cached) " >&6
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 #include <sys/types.h>
8311
8312 _ACEOF
8313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8314   $EGREP "uid_t" >/dev/null 2>&1; then
8315   ac_cv_type_uid_t=yes
8316 else
8317   ac_cv_type_uid_t=no
8318 fi
8319 rm -f conftest*
8320
8321 fi
8322 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8323 $as_echo "$ac_cv_type_uid_t" >&6; }
8324 if test $ac_cv_type_uid_t = no; then
8325
8326 cat >>confdefs.h <<\_ACEOF
8327 #define uid_t int
8328 _ACEOF
8329
8330
8331 cat >>confdefs.h <<\_ACEOF
8332 #define gid_t int
8333 _ACEOF
8334
8335 fi
8336
8337 { $as_echo "$as_me:$LINENO: checking for major_t" >&5
8338 $as_echo_n "checking for major_t... " >&6; }
8339 if test "${ac_cv_type_major_t+set}" = set; then
8340   $as_echo_n "(cached) " >&6
8341 else
8342   ac_cv_type_major_t=no
8343 cat >conftest.$ac_ext <<_ACEOF
8344 /* confdefs.h.  */
8345 _ACEOF
8346 cat confdefs.h >>conftest.$ac_ext
8347 cat >>conftest.$ac_ext <<_ACEOF
8348 /* end confdefs.h.  */
8349 $ac_includes_default
8350 int
8351 main ()
8352 {
8353 if (sizeof (major_t))
8354        return 0;
8355   ;
8356   return 0;
8357 }
8358 _ACEOF
8359 rm -f conftest.$ac_objext
8360 if { (ac_try="$ac_compile"
8361 case "(($ac_try" in
8362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8363   *) ac_try_echo=$ac_try;;
8364 esac
8365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8366 $as_echo "$ac_try_echo") >&5
8367   (eval "$ac_compile") 2>conftest.er1
8368   ac_status=$?
8369   grep -v '^ *+' conftest.er1 >conftest.err
8370   rm -f conftest.er1
8371   cat conftest.err >&5
8372   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373   (exit $ac_status); } && {
8374          test -z "$ac_c_werror_flag" ||
8375          test ! -s conftest.err
8376        } && test -s conftest.$ac_objext; then
8377   cat >conftest.$ac_ext <<_ACEOF
8378 /* confdefs.h.  */
8379 _ACEOF
8380 cat confdefs.h >>conftest.$ac_ext
8381 cat >>conftest.$ac_ext <<_ACEOF
8382 /* end confdefs.h.  */
8383 $ac_includes_default
8384 int
8385 main ()
8386 {
8387 if (sizeof ((major_t)))
8388           return 0;
8389   ;
8390   return 0;
8391 }
8392 _ACEOF
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8395 case "(($ac_try" in
8396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397   *) ac_try_echo=$ac_try;;
8398 esac
8399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8400 $as_echo "$ac_try_echo") >&5
8401   (eval "$ac_compile") 2>conftest.er1
8402   ac_status=$?
8403   grep -v '^ *+' conftest.er1 >conftest.err
8404   rm -f conftest.er1
8405   cat conftest.err >&5
8406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407   (exit $ac_status); } && {
8408          test -z "$ac_c_werror_flag" ||
8409          test ! -s conftest.err
8410        } && test -s conftest.$ac_objext; then
8411   :
8412 else
8413   $as_echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416         ac_cv_type_major_t=yes
8417 fi
8418
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 else
8421   $as_echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8423
8424
8425 fi
8426
8427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8428 fi
8429 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
8430 $as_echo "$ac_cv_type_major_t" >&6; }
8431 if test "x$ac_cv_type_major_t" = x""yes; then
8432   :
8433 else
8434
8435 cat >>confdefs.h <<\_ACEOF
8436 #define major_t int
8437 _ACEOF
8438
8439 fi
8440
8441 { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
8442 $as_echo_n "checking for minor_t... " >&6; }
8443 if test "${ac_cv_type_minor_t+set}" = set; then
8444   $as_echo_n "(cached) " >&6
8445 else
8446   ac_cv_type_minor_t=no
8447 cat >conftest.$ac_ext <<_ACEOF
8448 /* confdefs.h.  */
8449 _ACEOF
8450 cat confdefs.h >>conftest.$ac_ext
8451 cat >>conftest.$ac_ext <<_ACEOF
8452 /* end confdefs.h.  */
8453 $ac_includes_default
8454 int
8455 main ()
8456 {
8457 if (sizeof (minor_t))
8458        return 0;
8459   ;
8460   return 0;
8461 }
8462 _ACEOF
8463 rm -f conftest.$ac_objext
8464 if { (ac_try="$ac_compile"
8465 case "(($ac_try" in
8466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467   *) ac_try_echo=$ac_try;;
8468 esac
8469 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8470 $as_echo "$ac_try_echo") >&5
8471   (eval "$ac_compile") 2>conftest.er1
8472   ac_status=$?
8473   grep -v '^ *+' conftest.er1 >conftest.err
8474   rm -f conftest.er1
8475   cat conftest.err >&5
8476   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8477   (exit $ac_status); } && {
8478          test -z "$ac_c_werror_flag" ||
8479          test ! -s conftest.err
8480        } && test -s conftest.$ac_objext; then
8481   cat >conftest.$ac_ext <<_ACEOF
8482 /* confdefs.h.  */
8483 _ACEOF
8484 cat confdefs.h >>conftest.$ac_ext
8485 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h.  */
8487 $ac_includes_default
8488 int
8489 main ()
8490 {
8491 if (sizeof ((minor_t)))
8492           return 0;
8493   ;
8494   return 0;
8495 }
8496 _ACEOF
8497 rm -f conftest.$ac_objext
8498 if { (ac_try="$ac_compile"
8499 case "(($ac_try" in
8500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8501   *) ac_try_echo=$ac_try;;
8502 esac
8503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8504 $as_echo "$ac_try_echo") >&5
8505   (eval "$ac_compile") 2>conftest.er1
8506   ac_status=$?
8507   grep -v '^ *+' conftest.er1 >conftest.err
8508   rm -f conftest.er1
8509   cat conftest.err >&5
8510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8511   (exit $ac_status); } && {
8512          test -z "$ac_c_werror_flag" ||
8513          test ! -s conftest.err
8514        } && test -s conftest.$ac_objext; then
8515   :
8516 else
8517   $as_echo "$as_me: failed program was:" >&5
8518 sed 's/^/| /' conftest.$ac_ext >&5
8519
8520         ac_cv_type_minor_t=yes
8521 fi
8522
8523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8524 else
8525   $as_echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8527
8528
8529 fi
8530
8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 fi
8533 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
8534 $as_echo "$ac_cv_type_minor_t" >&6; }
8535 if test "x$ac_cv_type_minor_t" = x""yes; then
8536   :
8537 else
8538
8539 cat >>confdefs.h <<\_ACEOF
8540 #define minor_t int
8541 _ACEOF
8542
8543 fi
8544
8545 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
8546 $as_echo_n "checking for dev_t... " >&6; }
8547 if test "${ac_cv_type_dev_t+set}" = set; then
8548   $as_echo_n "(cached) " >&6
8549 else
8550   ac_cv_type_dev_t=no
8551 cat >conftest.$ac_ext <<_ACEOF
8552 /* confdefs.h.  */
8553 _ACEOF
8554 cat confdefs.h >>conftest.$ac_ext
8555 cat >>conftest.$ac_ext <<_ACEOF
8556 /* end confdefs.h.  */
8557 $ac_includes_default
8558 int
8559 main ()
8560 {
8561 if (sizeof (dev_t))
8562        return 0;
8563   ;
8564   return 0;
8565 }
8566 _ACEOF
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8569 case "(($ac_try" in
8570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571   *) ac_try_echo=$ac_try;;
8572 esac
8573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8574 $as_echo "$ac_try_echo") >&5
8575   (eval "$ac_compile") 2>conftest.er1
8576   ac_status=$?
8577   grep -v '^ *+' conftest.er1 >conftest.err
8578   rm -f conftest.er1
8579   cat conftest.err >&5
8580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581   (exit $ac_status); } && {
8582          test -z "$ac_c_werror_flag" ||
8583          test ! -s conftest.err
8584        } && test -s conftest.$ac_objext; then
8585   cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h.  */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h.  */
8591 $ac_includes_default
8592 int
8593 main ()
8594 {
8595 if (sizeof ((dev_t)))
8596           return 0;
8597   ;
8598   return 0;
8599 }
8600 _ACEOF
8601 rm -f conftest.$ac_objext
8602 if { (ac_try="$ac_compile"
8603 case "(($ac_try" in
8604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8605   *) ac_try_echo=$ac_try;;
8606 esac
8607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8608 $as_echo "$ac_try_echo") >&5
8609   (eval "$ac_compile") 2>conftest.er1
8610   ac_status=$?
8611   grep -v '^ *+' conftest.er1 >conftest.err
8612   rm -f conftest.er1
8613   cat conftest.err >&5
8614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8615   (exit $ac_status); } && {
8616          test -z "$ac_c_werror_flag" ||
8617          test ! -s conftest.err
8618        } && test -s conftest.$ac_objext; then
8619   :
8620 else
8621   $as_echo "$as_me: failed program was:" >&5
8622 sed 's/^/| /' conftest.$ac_ext >&5
8623
8624         ac_cv_type_dev_t=yes
8625 fi
8626
8627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8628 else
8629   $as_echo "$as_me: failed program was:" >&5
8630 sed 's/^/| /' conftest.$ac_ext >&5
8631
8632
8633 fi
8634
8635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8636 fi
8637 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
8638 $as_echo "$ac_cv_type_dev_t" >&6; }
8639 if test "x$ac_cv_type_dev_t" = x""yes; then
8640   :
8641 else
8642
8643 cat >>confdefs.h <<_ACEOF
8644 #define dev_t unsigned
8645 _ACEOF
8646
8647 fi
8648
8649 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
8650 $as_echo_n "checking for ino_t... " >&6; }
8651 if test "${ac_cv_type_ino_t+set}" = set; then
8652   $as_echo_n "(cached) " >&6
8653 else
8654   ac_cv_type_ino_t=no
8655 cat >conftest.$ac_ext <<_ACEOF
8656 /* confdefs.h.  */
8657 _ACEOF
8658 cat confdefs.h >>conftest.$ac_ext
8659 cat >>conftest.$ac_ext <<_ACEOF
8660 /* end confdefs.h.  */
8661 $ac_includes_default
8662 int
8663 main ()
8664 {
8665 if (sizeof (ino_t))
8666        return 0;
8667   ;
8668   return 0;
8669 }
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (ac_try="$ac_compile"
8673 case "(($ac_try" in
8674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675   *) ac_try_echo=$ac_try;;
8676 esac
8677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8678 $as_echo "$ac_try_echo") >&5
8679   (eval "$ac_compile") 2>conftest.er1
8680   ac_status=$?
8681   grep -v '^ *+' conftest.er1 >conftest.err
8682   rm -f conftest.er1
8683   cat conftest.err >&5
8684   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685   (exit $ac_status); } && {
8686          test -z "$ac_c_werror_flag" ||
8687          test ! -s conftest.err
8688        } && test -s conftest.$ac_objext; then
8689   cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h.  */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h.  */
8695 $ac_includes_default
8696 int
8697 main ()
8698 {
8699 if (sizeof ((ino_t)))
8700           return 0;
8701   ;
8702   return 0;
8703 }
8704 _ACEOF
8705 rm -f conftest.$ac_objext
8706 if { (ac_try="$ac_compile"
8707 case "(($ac_try" in
8708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709   *) ac_try_echo=$ac_try;;
8710 esac
8711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8712 $as_echo "$ac_try_echo") >&5
8713   (eval "$ac_compile") 2>conftest.er1
8714   ac_status=$?
8715   grep -v '^ *+' conftest.er1 >conftest.err
8716   rm -f conftest.er1
8717   cat conftest.err >&5
8718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8719   (exit $ac_status); } && {
8720          test -z "$ac_c_werror_flag" ||
8721          test ! -s conftest.err
8722        } && test -s conftest.$ac_objext; then
8723   :
8724 else
8725   $as_echo "$as_me: failed program was:" >&5
8726 sed 's/^/| /' conftest.$ac_ext >&5
8727
8728         ac_cv_type_ino_t=yes
8729 fi
8730
8731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8732 else
8733   $as_echo "$as_me: failed program was:" >&5
8734 sed 's/^/| /' conftest.$ac_ext >&5
8735
8736
8737 fi
8738
8739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8740 fi
8741 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
8742 $as_echo "$ac_cv_type_ino_t" >&6; }
8743 if test "x$ac_cv_type_ino_t" = x""yes; then
8744   :
8745 else
8746
8747 cat >>confdefs.h <<_ACEOF
8748 #define ino_t unsigned
8749 _ACEOF
8750
8751 fi
8752
8753
8754
8755   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
8756 $as_echo_n "checking for ssize_t... " >&6; }
8757 if test "${gt_cv_ssize_t+set}" = set; then
8758   $as_echo_n "(cached) " >&6
8759 else
8760   cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h.  */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h.  */
8766 #include <sys/types.h>
8767 int
8768 main ()
8769 {
8770 int x = sizeof (ssize_t *) + sizeof (ssize_t);
8771         return !x;
8772   ;
8773   return 0;
8774 }
8775 _ACEOF
8776 rm -f conftest.$ac_objext
8777 if { (ac_try="$ac_compile"
8778 case "(($ac_try" in
8779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8780   *) ac_try_echo=$ac_try;;
8781 esac
8782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8783 $as_echo "$ac_try_echo") >&5
8784   (eval "$ac_compile") 2>conftest.er1
8785   ac_status=$?
8786   grep -v '^ *+' conftest.er1 >conftest.err
8787   rm -f conftest.er1
8788   cat conftest.err >&5
8789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790   (exit $ac_status); } && {
8791          test -z "$ac_c_werror_flag" ||
8792          test ! -s conftest.err
8793        } && test -s conftest.$ac_objext; then
8794   gt_cv_ssize_t=yes
8795 else
8796   $as_echo "$as_me: failed program was:" >&5
8797 sed 's/^/| /' conftest.$ac_ext >&5
8798
8799         gt_cv_ssize_t=no
8800 fi
8801
8802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8803 fi
8804 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
8805 $as_echo "$gt_cv_ssize_t" >&6; }
8806   if test $gt_cv_ssize_t = no; then
8807
8808 cat >>confdefs.h <<\_ACEOF
8809 #define ssize_t int
8810 _ACEOF
8811
8812   fi
8813
8814
8815 # gnulib modules
8816
8817
8818
8819
8820
8821
8822
8823 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8824 # for constant arguments.  Useless!
8825 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
8826 $as_echo_n "checking for working alloca.h... " >&6; }
8827 if test "${ac_cv_working_alloca_h+set}" = set; then
8828   $as_echo_n "(cached) " >&6
8829 else
8830   cat >conftest.$ac_ext <<_ACEOF
8831 /* confdefs.h.  */
8832 _ACEOF
8833 cat confdefs.h >>conftest.$ac_ext
8834 cat >>conftest.$ac_ext <<_ACEOF
8835 /* end confdefs.h.  */
8836 #include <alloca.h>
8837 int
8838 main ()
8839 {
8840 char *p = (char *) alloca (2 * sizeof (int));
8841                           if (p) return 0;
8842   ;
8843   return 0;
8844 }
8845 _ACEOF
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (ac_try="$ac_link"
8848 case "(($ac_try" in
8849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8850   *) ac_try_echo=$ac_try;;
8851 esac
8852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8853 $as_echo "$ac_try_echo") >&5
8854   (eval "$ac_link") 2>conftest.er1
8855   ac_status=$?
8856   grep -v '^ *+' conftest.er1 >conftest.err
8857   rm -f conftest.er1
8858   cat conftest.err >&5
8859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860   (exit $ac_status); } && {
8861          test -z "$ac_c_werror_flag" ||
8862          test ! -s conftest.err
8863        } && test -s conftest$ac_exeext && {
8864          test "$cross_compiling" = yes ||
8865          $as_test_x conftest$ac_exeext
8866        }; then
8867   ac_cv_working_alloca_h=yes
8868 else
8869   $as_echo "$as_me: failed program was:" >&5
8870 sed 's/^/| /' conftest.$ac_ext >&5
8871
8872         ac_cv_working_alloca_h=no
8873 fi
8874
8875 rm -rf conftest.dSYM
8876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8877       conftest$ac_exeext conftest.$ac_ext
8878 fi
8879 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
8880 $as_echo "$ac_cv_working_alloca_h" >&6; }
8881 if test $ac_cv_working_alloca_h = yes; then
8882
8883 cat >>confdefs.h <<\_ACEOF
8884 #define HAVE_ALLOCA_H 1
8885 _ACEOF
8886
8887 fi
8888
8889 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
8890 $as_echo_n "checking for alloca... " >&6; }
8891 if test "${ac_cv_func_alloca_works+set}" = set; then
8892   $as_echo_n "(cached) " >&6
8893 else
8894   cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h.  */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h.  */
8900 #ifdef __GNUC__
8901 # define alloca __builtin_alloca
8902 #else
8903 # ifdef _MSC_VER
8904 #  include <malloc.h>
8905 #  define alloca _alloca
8906 # else
8907 #  ifdef HAVE_ALLOCA_H
8908 #   include <alloca.h>
8909 #  else
8910 #   ifdef _AIX
8911  #pragma alloca
8912 #   else
8913 #    ifndef alloca /* predefined by HP cc +Olibcalls */
8914 char *alloca ();
8915 #    endif
8916 #   endif
8917 #  endif
8918 # endif
8919 #endif
8920
8921 int
8922 main ()
8923 {
8924 char *p = (char *) alloca (1);
8925                                     if (p) return 0;
8926   ;
8927   return 0;
8928 }
8929 _ACEOF
8930 rm -f conftest.$ac_objext conftest$ac_exeext
8931 if { (ac_try="$ac_link"
8932 case "(($ac_try" in
8933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934   *) ac_try_echo=$ac_try;;
8935 esac
8936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8937 $as_echo "$ac_try_echo") >&5
8938   (eval "$ac_link") 2>conftest.er1
8939   ac_status=$?
8940   grep -v '^ *+' conftest.er1 >conftest.err
8941   rm -f conftest.er1
8942   cat conftest.err >&5
8943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944   (exit $ac_status); } && {
8945          test -z "$ac_c_werror_flag" ||
8946          test ! -s conftest.err
8947        } && test -s conftest$ac_exeext && {
8948          test "$cross_compiling" = yes ||
8949          $as_test_x conftest$ac_exeext
8950        }; then
8951   ac_cv_func_alloca_works=yes
8952 else
8953   $as_echo "$as_me: failed program was:" >&5
8954 sed 's/^/| /' conftest.$ac_ext >&5
8955
8956         ac_cv_func_alloca_works=no
8957 fi
8958
8959 rm -rf conftest.dSYM
8960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8961       conftest$ac_exeext conftest.$ac_ext
8962 fi
8963 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
8964 $as_echo "$ac_cv_func_alloca_works" >&6; }
8965
8966 if test $ac_cv_func_alloca_works = yes; then
8967
8968 cat >>confdefs.h <<\_ACEOF
8969 #define HAVE_ALLOCA 1
8970 _ACEOF
8971
8972 else
8973   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8974 # that cause trouble.  Some versions do not even contain alloca or
8975 # contain a buggy version.  If you still want to use their alloca,
8976 # use ar to extract alloca.o from them instead of compiling alloca.c.
8977
8978
8979
8980
8981
8982 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8983
8984 cat >>confdefs.h <<\_ACEOF
8985 #define C_ALLOCA 1
8986 _ACEOF
8987
8988
8989 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
8990 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
8991 if test "${ac_cv_os_cray+set}" = set; then
8992   $as_echo_n "(cached) " >&6
8993 else
8994   cat >conftest.$ac_ext <<_ACEOF
8995 /* confdefs.h.  */
8996 _ACEOF
8997 cat confdefs.h >>conftest.$ac_ext
8998 cat >>conftest.$ac_ext <<_ACEOF
8999 /* end confdefs.h.  */
9000 #if defined CRAY && ! defined CRAY2
9001 webecray
9002 #else
9003 wenotbecray
9004 #endif
9005
9006 _ACEOF
9007 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9008   $EGREP "webecray" >/dev/null 2>&1; then
9009   ac_cv_os_cray=yes
9010 else
9011   ac_cv_os_cray=no
9012 fi
9013 rm -f conftest*
9014
9015 fi
9016 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9017 $as_echo "$ac_cv_os_cray" >&6; }
9018 if test $ac_cv_os_cray = yes; then
9019   for ac_func in _getb67 GETB67 getb67; do
9020     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9021 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9022 $as_echo_n "checking for $ac_func... " >&6; }
9023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9024   $as_echo_n "(cached) " >&6
9025 else
9026   cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9033    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9034 #define $ac_func innocuous_$ac_func
9035
9036 /* System header to define __stub macros and hopefully few prototypes,
9037     which can conflict with char $ac_func (); below.
9038     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9039     <limits.h> exists even on freestanding compilers.  */
9040
9041 #ifdef __STDC__
9042 # include <limits.h>
9043 #else
9044 # include <assert.h>
9045 #endif
9046
9047 #undef $ac_func
9048
9049 /* Override any GCC internal prototype to avoid an error.
9050    Use char because int might match the return type of a GCC
9051    builtin and then its argument prototype would still apply.  */
9052 #ifdef __cplusplus
9053 extern "C"
9054 #endif
9055 char $ac_func ();
9056 /* The GNU C library defines this for functions which it implements
9057     to always fail with ENOSYS.  Some functions are actually named
9058     something starting with __ and the normal name is an alias.  */
9059 #if defined __stub_$ac_func || defined __stub___$ac_func
9060 choke me
9061 #endif
9062
9063 int
9064 main ()
9065 {
9066 return $ac_func ();
9067   ;
9068   return 0;
9069 }
9070 _ACEOF
9071 rm -f conftest.$ac_objext conftest$ac_exeext
9072 if { (ac_try="$ac_link"
9073 case "(($ac_try" in
9074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9075   *) ac_try_echo=$ac_try;;
9076 esac
9077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9078 $as_echo "$ac_try_echo") >&5
9079   (eval "$ac_link") 2>conftest.er1
9080   ac_status=$?
9081   grep -v '^ *+' conftest.er1 >conftest.err
9082   rm -f conftest.er1
9083   cat conftest.err >&5
9084   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9085   (exit $ac_status); } && {
9086          test -z "$ac_c_werror_flag" ||
9087          test ! -s conftest.err
9088        } && test -s conftest$ac_exeext && {
9089          test "$cross_compiling" = yes ||
9090          $as_test_x conftest$ac_exeext
9091        }; then
9092   eval "$as_ac_var=yes"
9093 else
9094   $as_echo "$as_me: failed program was:" >&5
9095 sed 's/^/| /' conftest.$ac_ext >&5
9096
9097         eval "$as_ac_var=no"
9098 fi
9099
9100 rm -rf conftest.dSYM
9101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9102       conftest$ac_exeext conftest.$ac_ext
9103 fi
9104 ac_res=`eval 'as_val=${'$as_ac_var'}
9105                  $as_echo "$as_val"'`
9106                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9107 $as_echo "$ac_res" >&6; }
9108 as_val=`eval 'as_val=${'$as_ac_var'}
9109                  $as_echo "$as_val"'`
9110    if test "x$as_val" = x""yes; then
9111
9112 cat >>confdefs.h <<_ACEOF
9113 #define CRAY_STACKSEG_END $ac_func
9114 _ACEOF
9115
9116     break
9117 fi
9118
9119   done
9120 fi
9121
9122 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9123 $as_echo_n "checking stack direction for C alloca... " >&6; }
9124 if test "${ac_cv_c_stack_direction+set}" = set; then
9125   $as_echo_n "(cached) " >&6
9126 else
9127   if test "$cross_compiling" = yes; then
9128   ac_cv_c_stack_direction=0
9129 else
9130   cat >conftest.$ac_ext <<_ACEOF
9131 /* confdefs.h.  */
9132 _ACEOF
9133 cat confdefs.h >>conftest.$ac_ext
9134 cat >>conftest.$ac_ext <<_ACEOF
9135 /* end confdefs.h.  */
9136 $ac_includes_default
9137 int
9138 find_stack_direction ()
9139 {
9140   static char *addr = 0;
9141   auto char dummy;
9142   if (addr == 0)
9143     {
9144       addr = &dummy;
9145       return find_stack_direction ();
9146     }
9147   else
9148     return (&dummy > addr) ? 1 : -1;
9149 }
9150
9151 int
9152 main ()
9153 {
9154   return find_stack_direction () < 0;
9155 }
9156 _ACEOF
9157 rm -f conftest$ac_exeext
9158 if { (ac_try="$ac_link"
9159 case "(($ac_try" in
9160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161   *) ac_try_echo=$ac_try;;
9162 esac
9163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9164 $as_echo "$ac_try_echo") >&5
9165   (eval "$ac_link") 2>&5
9166   ac_status=$?
9167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9169   { (case "(($ac_try" in
9170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9171   *) ac_try_echo=$ac_try;;
9172 esac
9173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9174 $as_echo "$ac_try_echo") >&5
9175   (eval "$ac_try") 2>&5
9176   ac_status=$?
9177   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); }; }; then
9179   ac_cv_c_stack_direction=1
9180 else
9181   $as_echo "$as_me: program exited with status $ac_status" >&5
9182 $as_echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9184
9185 ( exit $ac_status )
9186 ac_cv_c_stack_direction=-1
9187 fi
9188 rm -rf conftest.dSYM
9189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9190 fi
9191
9192
9193 fi
9194 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9195 $as_echo "$ac_cv_c_stack_direction" >&6; }
9196
9197 cat >>confdefs.h <<_ACEOF
9198 #define STACK_DIRECTION $ac_cv_c_stack_direction
9199 _ACEOF
9200
9201
9202 fi
9203
9204 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
9205 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9206 if test "${ac_cv_c_restrict+set}" = set; then
9207   $as_echo_n "(cached) " >&6
9208 else
9209   ac_cv_c_restrict=no
9210    # The order here caters to the fact that C++ does not require restrict.
9211    for ac_kw in __restrict __restrict__ _Restrict restrict; do
9212      cat >conftest.$ac_ext <<_ACEOF
9213 /* confdefs.h.  */
9214 _ACEOF
9215 cat confdefs.h >>conftest.$ac_ext
9216 cat >>conftest.$ac_ext <<_ACEOF
9217 /* end confdefs.h.  */
9218 typedef int * int_ptr;
9219         int foo (int_ptr $ac_kw ip) {
9220         return ip[0];
9221        }
9222 int
9223 main ()
9224 {
9225 int s[1];
9226         int * $ac_kw t = s;
9227         t[0] = 0;
9228         return foo(t)
9229   ;
9230   return 0;
9231 }
9232 _ACEOF
9233 rm -f conftest.$ac_objext
9234 if { (ac_try="$ac_compile"
9235 case "(($ac_try" in
9236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9237   *) ac_try_echo=$ac_try;;
9238 esac
9239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9240 $as_echo "$ac_try_echo") >&5
9241   (eval "$ac_compile") 2>conftest.er1
9242   ac_status=$?
9243   grep -v '^ *+' conftest.er1 >conftest.err
9244   rm -f conftest.er1
9245   cat conftest.err >&5
9246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9247   (exit $ac_status); } && {
9248          test -z "$ac_c_werror_flag" ||
9249          test ! -s conftest.err
9250        } && test -s conftest.$ac_objext; then
9251   ac_cv_c_restrict=$ac_kw
9252 else
9253   $as_echo "$as_me: failed program was:" >&5
9254 sed 's/^/| /' conftest.$ac_ext >&5
9255
9256
9257 fi
9258
9259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9260      test "$ac_cv_c_restrict" != no && break
9261    done
9262
9263 fi
9264 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
9265 $as_echo "$ac_cv_c_restrict" >&6; }
9266
9267
9268  case $ac_cv_c_restrict in
9269    restrict) ;;
9270    no) cat >>confdefs.h <<\_ACEOF
9271 #define restrict /**/
9272 _ACEOF
9273  ;;
9274    *)  cat >>confdefs.h <<_ACEOF
9275 #define restrict $ac_cv_c_restrict
9276 _ACEOF
9277  ;;
9278  esac
9279
9280 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9281 $as_echo_n "checking whether getenv is declared... " >&6; }
9282 if test "${ac_cv_have_decl_getenv+set}" = set; then
9283   $as_echo_n "(cached) " >&6
9284 else
9285   cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h.  */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h.  */
9291 $ac_includes_default
9292 int
9293 main ()
9294 {
9295 #ifndef getenv
9296   (void) getenv;
9297 #endif
9298
9299   ;
9300   return 0;
9301 }
9302 _ACEOF
9303 rm -f conftest.$ac_objext
9304 if { (ac_try="$ac_compile"
9305 case "(($ac_try" in
9306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307   *) ac_try_echo=$ac_try;;
9308 esac
9309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9310 $as_echo "$ac_try_echo") >&5
9311   (eval "$ac_compile") 2>conftest.er1
9312   ac_status=$?
9313   grep -v '^ *+' conftest.er1 >conftest.err
9314   rm -f conftest.er1
9315   cat conftest.err >&5
9316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317   (exit $ac_status); } && {
9318          test -z "$ac_c_werror_flag" ||
9319          test ! -s conftest.err
9320        } && test -s conftest.$ac_objext; then
9321   ac_cv_have_decl_getenv=yes
9322 else
9323   $as_echo "$as_me: failed program was:" >&5
9324 sed 's/^/| /' conftest.$ac_ext >&5
9325
9326         ac_cv_have_decl_getenv=no
9327 fi
9328
9329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9330 fi
9331 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9332 $as_echo "$ac_cv_have_decl_getenv" >&6; }
9333 if test "x$ac_cv_have_decl_getenv" = x""yes; then
9334
9335 cat >>confdefs.h <<_ACEOF
9336 #define HAVE_DECL_GETENV 1
9337 _ACEOF
9338
9339
9340 else
9341   cat >>confdefs.h <<_ACEOF
9342 #define HAVE_DECL_GETENV 0
9343 _ACEOF
9344
9345
9346 fi
9347
9348
9349 { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
9350 $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
9351 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
9352   $as_echo_n "(cached) " >&6
9353 else
9354   cat >conftest.$ac_ext <<_ACEOF
9355 /* confdefs.h.  */
9356 _ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h.  */
9360 $ac_includes_default
9361 int
9362 main ()
9363 {
9364 #ifndef clearerr_unlocked
9365   (void) clearerr_unlocked;
9366 #endif
9367
9368   ;
9369   return 0;
9370 }
9371 _ACEOF
9372 rm -f conftest.$ac_objext
9373 if { (ac_try="$ac_compile"
9374 case "(($ac_try" in
9375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9376   *) ac_try_echo=$ac_try;;
9377 esac
9378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9379 $as_echo "$ac_try_echo") >&5
9380   (eval "$ac_compile") 2>conftest.er1
9381   ac_status=$?
9382   grep -v '^ *+' conftest.er1 >conftest.err
9383   rm -f conftest.er1
9384   cat conftest.err >&5
9385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386   (exit $ac_status); } && {
9387          test -z "$ac_c_werror_flag" ||
9388          test ! -s conftest.err
9389        } && test -s conftest.$ac_objext; then
9390   ac_cv_have_decl_clearerr_unlocked=yes
9391 else
9392   $as_echo "$as_me: failed program was:" >&5
9393 sed 's/^/| /' conftest.$ac_ext >&5
9394
9395         ac_cv_have_decl_clearerr_unlocked=no
9396 fi
9397
9398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9399 fi
9400 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
9401 $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
9402 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then
9403
9404 cat >>confdefs.h <<_ACEOF
9405 #define HAVE_DECL_CLEARERR_UNLOCKED 1
9406 _ACEOF
9407
9408
9409 else
9410   cat >>confdefs.h <<_ACEOF
9411 #define HAVE_DECL_CLEARERR_UNLOCKED 0
9412 _ACEOF
9413
9414
9415 fi
9416
9417
9418 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9419 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
9420 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9421   $as_echo_n "(cached) " >&6
9422 else
9423   cat >conftest.$ac_ext <<_ACEOF
9424 /* confdefs.h.  */
9425 _ACEOF
9426 cat confdefs.h >>conftest.$ac_ext
9427 cat >>conftest.$ac_ext <<_ACEOF
9428 /* end confdefs.h.  */
9429 $ac_includes_default
9430 int
9431 main ()
9432 {
9433 #ifndef feof_unlocked
9434   (void) feof_unlocked;
9435 #endif
9436
9437   ;
9438   return 0;
9439 }
9440 _ACEOF
9441 rm -f conftest.$ac_objext
9442 if { (ac_try="$ac_compile"
9443 case "(($ac_try" in
9444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9445   *) ac_try_echo=$ac_try;;
9446 esac
9447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9448 $as_echo "$ac_try_echo") >&5
9449   (eval "$ac_compile") 2>conftest.er1
9450   ac_status=$?
9451   grep -v '^ *+' conftest.er1 >conftest.err
9452   rm -f conftest.er1
9453   cat conftest.err >&5
9454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455   (exit $ac_status); } && {
9456          test -z "$ac_c_werror_flag" ||
9457          test ! -s conftest.err
9458        } && test -s conftest.$ac_objext; then
9459   ac_cv_have_decl_feof_unlocked=yes
9460 else
9461   $as_echo "$as_me: failed program was:" >&5
9462 sed 's/^/| /' conftest.$ac_ext >&5
9463
9464         ac_cv_have_decl_feof_unlocked=no
9465 fi
9466
9467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9468 fi
9469 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9470 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
9471 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
9472
9473 cat >>confdefs.h <<_ACEOF
9474 #define HAVE_DECL_FEOF_UNLOCKED 1
9475 _ACEOF
9476
9477
9478 else
9479   cat >>confdefs.h <<_ACEOF
9480 #define HAVE_DECL_FEOF_UNLOCKED 0
9481 _ACEOF
9482
9483
9484 fi
9485
9486
9487 { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
9488 $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
9489 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
9490   $as_echo_n "(cached) " >&6
9491 else
9492   cat >conftest.$ac_ext <<_ACEOF
9493 /* confdefs.h.  */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h.  */
9498 $ac_includes_default
9499 int
9500 main ()
9501 {
9502 #ifndef ferror_unlocked
9503   (void) ferror_unlocked;
9504 #endif
9505
9506   ;
9507   return 0;
9508 }
9509 _ACEOF
9510 rm -f conftest.$ac_objext
9511 if { (ac_try="$ac_compile"
9512 case "(($ac_try" in
9513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9514   *) ac_try_echo=$ac_try;;
9515 esac
9516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9517 $as_echo "$ac_try_echo") >&5
9518   (eval "$ac_compile") 2>conftest.er1
9519   ac_status=$?
9520   grep -v '^ *+' conftest.er1 >conftest.err
9521   rm -f conftest.er1
9522   cat conftest.err >&5
9523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9524   (exit $ac_status); } && {
9525          test -z "$ac_c_werror_flag" ||
9526          test ! -s conftest.err
9527        } && test -s conftest.$ac_objext; then
9528   ac_cv_have_decl_ferror_unlocked=yes
9529 else
9530   $as_echo "$as_me: failed program was:" >&5
9531 sed 's/^/| /' conftest.$ac_ext >&5
9532
9533         ac_cv_have_decl_ferror_unlocked=no
9534 fi
9535
9536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9537 fi
9538 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
9539 $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
9540 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then
9541
9542 cat >>confdefs.h <<_ACEOF
9543 #define HAVE_DECL_FERROR_UNLOCKED 1
9544 _ACEOF
9545
9546
9547 else
9548   cat >>confdefs.h <<_ACEOF
9549 #define HAVE_DECL_FERROR_UNLOCKED 0
9550 _ACEOF
9551
9552
9553 fi
9554
9555
9556 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
9557 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
9558 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
9559   $as_echo_n "(cached) " >&6
9560 else
9561   cat >conftest.$ac_ext <<_ACEOF
9562 /* confdefs.h.  */
9563 _ACEOF
9564 cat confdefs.h >>conftest.$ac_ext
9565 cat >>conftest.$ac_ext <<_ACEOF
9566 /* end confdefs.h.  */
9567 $ac_includes_default
9568 int
9569 main ()
9570 {
9571 #ifndef fflush_unlocked
9572   (void) fflush_unlocked;
9573 #endif
9574
9575   ;
9576   return 0;
9577 }
9578 _ACEOF
9579 rm -f conftest.$ac_objext
9580 if { (ac_try="$ac_compile"
9581 case "(($ac_try" in
9582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9583   *) ac_try_echo=$ac_try;;
9584 esac
9585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9586 $as_echo "$ac_try_echo") >&5
9587   (eval "$ac_compile") 2>conftest.er1
9588   ac_status=$?
9589   grep -v '^ *+' conftest.er1 >conftest.err
9590   rm -f conftest.er1
9591   cat conftest.err >&5
9592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9593   (exit $ac_status); } && {
9594          test -z "$ac_c_werror_flag" ||
9595          test ! -s conftest.err
9596        } && test -s conftest.$ac_objext; then
9597   ac_cv_have_decl_fflush_unlocked=yes
9598 else
9599   $as_echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9601
9602         ac_cv_have_decl_fflush_unlocked=no
9603 fi
9604
9605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9606 fi
9607 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
9608 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
9609 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
9610
9611 cat >>confdefs.h <<_ACEOF
9612 #define HAVE_DECL_FFLUSH_UNLOCKED 1
9613 _ACEOF
9614
9615
9616 else
9617   cat >>confdefs.h <<_ACEOF
9618 #define HAVE_DECL_FFLUSH_UNLOCKED 0
9619 _ACEOF
9620
9621
9622 fi
9623
9624
9625 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9626 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
9627 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9628   $as_echo_n "(cached) " >&6
9629 else
9630   cat >conftest.$ac_ext <<_ACEOF
9631 /* confdefs.h.  */
9632 _ACEOF
9633 cat confdefs.h >>conftest.$ac_ext
9634 cat >>conftest.$ac_ext <<_ACEOF
9635 /* end confdefs.h.  */
9636 $ac_includes_default
9637 int
9638 main ()
9639 {
9640 #ifndef fgets_unlocked
9641   (void) fgets_unlocked;
9642 #endif
9643
9644   ;
9645   return 0;
9646 }
9647 _ACEOF
9648 rm -f conftest.$ac_objext
9649 if { (ac_try="$ac_compile"
9650 case "(($ac_try" in
9651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9652   *) ac_try_echo=$ac_try;;
9653 esac
9654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9655 $as_echo "$ac_try_echo") >&5
9656   (eval "$ac_compile") 2>conftest.er1
9657   ac_status=$?
9658   grep -v '^ *+' conftest.er1 >conftest.err
9659   rm -f conftest.er1
9660   cat conftest.err >&5
9661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662   (exit $ac_status); } && {
9663          test -z "$ac_c_werror_flag" ||
9664          test ! -s conftest.err
9665        } && test -s conftest.$ac_objext; then
9666   ac_cv_have_decl_fgets_unlocked=yes
9667 else
9668   $as_echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671         ac_cv_have_decl_fgets_unlocked=no
9672 fi
9673
9674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9675 fi
9676 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
9677 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
9678 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
9679
9680 cat >>confdefs.h <<_ACEOF
9681 #define HAVE_DECL_FGETS_UNLOCKED 1
9682 _ACEOF
9683
9684
9685 else
9686   cat >>confdefs.h <<_ACEOF
9687 #define HAVE_DECL_FGETS_UNLOCKED 0
9688 _ACEOF
9689
9690
9691 fi
9692
9693
9694 { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
9695 $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
9696 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
9697   $as_echo_n "(cached) " >&6
9698 else
9699   cat >conftest.$ac_ext <<_ACEOF
9700 /* confdefs.h.  */
9701 _ACEOF
9702 cat confdefs.h >>conftest.$ac_ext
9703 cat >>conftest.$ac_ext <<_ACEOF
9704 /* end confdefs.h.  */
9705 $ac_includes_default
9706 int
9707 main ()
9708 {
9709 #ifndef fputc_unlocked
9710   (void) fputc_unlocked;
9711 #endif
9712
9713   ;
9714   return 0;
9715 }
9716 _ACEOF
9717 rm -f conftest.$ac_objext
9718 if { (ac_try="$ac_compile"
9719 case "(($ac_try" in
9720   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9721   *) ac_try_echo=$ac_try;;
9722 esac
9723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9724 $as_echo "$ac_try_echo") >&5
9725   (eval "$ac_compile") 2>conftest.er1
9726   ac_status=$?
9727   grep -v '^ *+' conftest.er1 >conftest.err
9728   rm -f conftest.er1
9729   cat conftest.err >&5
9730   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9731   (exit $ac_status); } && {
9732          test -z "$ac_c_werror_flag" ||
9733          test ! -s conftest.err
9734        } && test -s conftest.$ac_objext; then
9735   ac_cv_have_decl_fputc_unlocked=yes
9736 else
9737   $as_echo "$as_me: failed program was:" >&5
9738 sed 's/^/| /' conftest.$ac_ext >&5
9739
9740         ac_cv_have_decl_fputc_unlocked=no
9741 fi
9742
9743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9744 fi
9745 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
9746 $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
9747 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then
9748
9749 cat >>confdefs.h <<_ACEOF
9750 #define HAVE_DECL_FPUTC_UNLOCKED 1
9751 _ACEOF
9752
9753
9754 else
9755   cat >>confdefs.h <<_ACEOF
9756 #define HAVE_DECL_FPUTC_UNLOCKED 0
9757 _ACEOF
9758
9759
9760 fi
9761
9762
9763 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
9764 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
9765 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
9766   $as_echo_n "(cached) " >&6
9767 else
9768   cat >conftest.$ac_ext <<_ACEOF
9769 /* confdefs.h.  */
9770 _ACEOF
9771 cat confdefs.h >>conftest.$ac_ext
9772 cat >>conftest.$ac_ext <<_ACEOF
9773 /* end confdefs.h.  */
9774 $ac_includes_default
9775 int
9776 main ()
9777 {
9778 #ifndef fputs_unlocked
9779   (void) fputs_unlocked;
9780 #endif
9781
9782   ;
9783   return 0;
9784 }
9785 _ACEOF
9786 rm -f conftest.$ac_objext
9787 if { (ac_try="$ac_compile"
9788 case "(($ac_try" in
9789   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9790   *) ac_try_echo=$ac_try;;
9791 esac
9792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9793 $as_echo "$ac_try_echo") >&5
9794   (eval "$ac_compile") 2>conftest.er1
9795   ac_status=$?
9796   grep -v '^ *+' conftest.er1 >conftest.err
9797   rm -f conftest.er1
9798   cat conftest.err >&5
9799   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800   (exit $ac_status); } && {
9801          test -z "$ac_c_werror_flag" ||
9802          test ! -s conftest.err
9803        } && test -s conftest.$ac_objext; then
9804   ac_cv_have_decl_fputs_unlocked=yes
9805 else
9806   $as_echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9808
9809         ac_cv_have_decl_fputs_unlocked=no
9810 fi
9811
9812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9813 fi
9814 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
9815 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
9816 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
9817
9818 cat >>confdefs.h <<_ACEOF
9819 #define HAVE_DECL_FPUTS_UNLOCKED 1
9820 _ACEOF
9821
9822
9823 else
9824   cat >>confdefs.h <<_ACEOF
9825 #define HAVE_DECL_FPUTS_UNLOCKED 0
9826 _ACEOF
9827
9828
9829 fi
9830
9831
9832 { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
9833 $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
9834 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
9835   $as_echo_n "(cached) " >&6
9836 else
9837   cat >conftest.$ac_ext <<_ACEOF
9838 /* confdefs.h.  */
9839 _ACEOF
9840 cat confdefs.h >>conftest.$ac_ext
9841 cat >>conftest.$ac_ext <<_ACEOF
9842 /* end confdefs.h.  */
9843 $ac_includes_default
9844 int
9845 main ()
9846 {
9847 #ifndef fread_unlocked
9848   (void) fread_unlocked;
9849 #endif
9850
9851   ;
9852   return 0;
9853 }
9854 _ACEOF
9855 rm -f conftest.$ac_objext
9856 if { (ac_try="$ac_compile"
9857 case "(($ac_try" in
9858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9859   *) ac_try_echo=$ac_try;;
9860 esac
9861 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9862 $as_echo "$ac_try_echo") >&5
9863   (eval "$ac_compile") 2>conftest.er1
9864   ac_status=$?
9865   grep -v '^ *+' conftest.er1 >conftest.err
9866   rm -f conftest.er1
9867   cat conftest.err >&5
9868   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9869   (exit $ac_status); } && {
9870          test -z "$ac_c_werror_flag" ||
9871          test ! -s conftest.err
9872        } && test -s conftest.$ac_objext; then
9873   ac_cv_have_decl_fread_unlocked=yes
9874 else
9875   $as_echo "$as_me: failed program was:" >&5
9876 sed 's/^/| /' conftest.$ac_ext >&5
9877
9878         ac_cv_have_decl_fread_unlocked=no
9879 fi
9880
9881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9882 fi
9883 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
9884 $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
9885 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
9886
9887 cat >>confdefs.h <<_ACEOF
9888 #define HAVE_DECL_FREAD_UNLOCKED 1
9889 _ACEOF
9890
9891
9892 else
9893   cat >>confdefs.h <<_ACEOF
9894 #define HAVE_DECL_FREAD_UNLOCKED 0
9895 _ACEOF
9896
9897
9898 fi
9899
9900
9901 { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
9902 $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
9903 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
9904   $as_echo_n "(cached) " >&6
9905 else
9906   cat >conftest.$ac_ext <<_ACEOF
9907 /* confdefs.h.  */
9908 _ACEOF
9909 cat confdefs.h >>conftest.$ac_ext
9910 cat >>conftest.$ac_ext <<_ACEOF
9911 /* end confdefs.h.  */
9912 $ac_includes_default
9913 int
9914 main ()
9915 {
9916 #ifndef fwrite_unlocked
9917   (void) fwrite_unlocked;
9918 #endif
9919
9920   ;
9921   return 0;
9922 }
9923 _ACEOF
9924 rm -f conftest.$ac_objext
9925 if { (ac_try="$ac_compile"
9926 case "(($ac_try" in
9927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9928   *) ac_try_echo=$ac_try;;
9929 esac
9930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9931 $as_echo "$ac_try_echo") >&5
9932   (eval "$ac_compile") 2>conftest.er1
9933   ac_status=$?
9934   grep -v '^ *+' conftest.er1 >conftest.err
9935   rm -f conftest.er1
9936   cat conftest.err >&5
9937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938   (exit $ac_status); } && {
9939          test -z "$ac_c_werror_flag" ||
9940          test ! -s conftest.err
9941        } && test -s conftest.$ac_objext; then
9942   ac_cv_have_decl_fwrite_unlocked=yes
9943 else
9944   $as_echo "$as_me: failed program was:" >&5
9945 sed 's/^/| /' conftest.$ac_ext >&5
9946
9947         ac_cv_have_decl_fwrite_unlocked=no
9948 fi
9949
9950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9951 fi
9952 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
9953 $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
9954 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then
9955
9956 cat >>confdefs.h <<_ACEOF
9957 #define HAVE_DECL_FWRITE_UNLOCKED 1
9958 _ACEOF
9959
9960
9961 else
9962   cat >>confdefs.h <<_ACEOF
9963 #define HAVE_DECL_FWRITE_UNLOCKED 0
9964 _ACEOF
9965
9966
9967 fi
9968
9969
9970 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
9971 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
9972 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
9973   $as_echo_n "(cached) " >&6
9974 else
9975   cat >conftest.$ac_ext <<_ACEOF
9976 /* confdefs.h.  */
9977 _ACEOF
9978 cat confdefs.h >>conftest.$ac_ext
9979 cat >>conftest.$ac_ext <<_ACEOF
9980 /* end confdefs.h.  */
9981 $ac_includes_default
9982 int
9983 main ()
9984 {
9985 #ifndef getc_unlocked
9986   (void) getc_unlocked;
9987 #endif
9988
9989   ;
9990   return 0;
9991 }
9992 _ACEOF
9993 rm -f conftest.$ac_objext
9994 if { (ac_try="$ac_compile"
9995 case "(($ac_try" in
9996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9997   *) ac_try_echo=$ac_try;;
9998 esac
9999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10000 $as_echo "$ac_try_echo") >&5
10001   (eval "$ac_compile") 2>conftest.er1
10002   ac_status=$?
10003   grep -v '^ *+' conftest.er1 >conftest.err
10004   rm -f conftest.er1
10005   cat conftest.err >&5
10006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); } && {
10008          test -z "$ac_c_werror_flag" ||
10009          test ! -s conftest.err
10010        } && test -s conftest.$ac_objext; then
10011   ac_cv_have_decl_getc_unlocked=yes
10012 else
10013   $as_echo "$as_me: failed program was:" >&5
10014 sed 's/^/| /' conftest.$ac_ext >&5
10015
10016         ac_cv_have_decl_getc_unlocked=no
10017 fi
10018
10019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10020 fi
10021 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10022 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
10023 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
10024
10025 cat >>confdefs.h <<_ACEOF
10026 #define HAVE_DECL_GETC_UNLOCKED 1
10027 _ACEOF
10028
10029
10030 else
10031   cat >>confdefs.h <<_ACEOF
10032 #define HAVE_DECL_GETC_UNLOCKED 0
10033 _ACEOF
10034
10035
10036 fi
10037
10038
10039 { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
10040 $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
10041 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
10042   $as_echo_n "(cached) " >&6
10043 else
10044   cat >conftest.$ac_ext <<_ACEOF
10045 /* confdefs.h.  */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h.  */
10050 $ac_includes_default
10051 int
10052 main ()
10053 {
10054 #ifndef getchar_unlocked
10055   (void) getchar_unlocked;
10056 #endif
10057
10058   ;
10059   return 0;
10060 }
10061 _ACEOF
10062 rm -f conftest.$ac_objext
10063 if { (ac_try="$ac_compile"
10064 case "(($ac_try" in
10065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10066   *) ac_try_echo=$ac_try;;
10067 esac
10068 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10069 $as_echo "$ac_try_echo") >&5
10070   (eval "$ac_compile") 2>conftest.er1
10071   ac_status=$?
10072   grep -v '^ *+' conftest.er1 >conftest.err
10073   rm -f conftest.er1
10074   cat conftest.err >&5
10075   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); } && {
10077          test -z "$ac_c_werror_flag" ||
10078          test ! -s conftest.err
10079        } && test -s conftest.$ac_objext; then
10080   ac_cv_have_decl_getchar_unlocked=yes
10081 else
10082   $as_echo "$as_me: failed program was:" >&5
10083 sed 's/^/| /' conftest.$ac_ext >&5
10084
10085         ac_cv_have_decl_getchar_unlocked=no
10086 fi
10087
10088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089 fi
10090 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
10091 $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
10092 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then
10093
10094 cat >>confdefs.h <<_ACEOF
10095 #define HAVE_DECL_GETCHAR_UNLOCKED 1
10096 _ACEOF
10097
10098
10099 else
10100   cat >>confdefs.h <<_ACEOF
10101 #define HAVE_DECL_GETCHAR_UNLOCKED 0
10102 _ACEOF
10103
10104
10105 fi
10106
10107
10108 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
10109 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
10110 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
10111   $as_echo_n "(cached) " >&6
10112 else
10113   cat >conftest.$ac_ext <<_ACEOF
10114 /* confdefs.h.  */
10115 _ACEOF
10116 cat confdefs.h >>conftest.$ac_ext
10117 cat >>conftest.$ac_ext <<_ACEOF
10118 /* end confdefs.h.  */
10119 $ac_includes_default
10120 int
10121 main ()
10122 {
10123 #ifndef putc_unlocked
10124   (void) putc_unlocked;
10125 #endif
10126
10127   ;
10128   return 0;
10129 }
10130 _ACEOF
10131 rm -f conftest.$ac_objext
10132 if { (ac_try="$ac_compile"
10133 case "(($ac_try" in
10134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135   *) ac_try_echo=$ac_try;;
10136 esac
10137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10138 $as_echo "$ac_try_echo") >&5
10139   (eval "$ac_compile") 2>conftest.er1
10140   ac_status=$?
10141   grep -v '^ *+' conftest.er1 >conftest.err
10142   rm -f conftest.er1
10143   cat conftest.err >&5
10144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145   (exit $ac_status); } && {
10146          test -z "$ac_c_werror_flag" ||
10147          test ! -s conftest.err
10148        } && test -s conftest.$ac_objext; then
10149   ac_cv_have_decl_putc_unlocked=yes
10150 else
10151   $as_echo "$as_me: failed program was:" >&5
10152 sed 's/^/| /' conftest.$ac_ext >&5
10153
10154         ac_cv_have_decl_putc_unlocked=no
10155 fi
10156
10157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10158 fi
10159 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
10160 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
10161 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
10162
10163 cat >>confdefs.h <<_ACEOF
10164 #define HAVE_DECL_PUTC_UNLOCKED 1
10165 _ACEOF
10166
10167
10168 else
10169   cat >>confdefs.h <<_ACEOF
10170 #define HAVE_DECL_PUTC_UNLOCKED 0
10171 _ACEOF
10172
10173
10174 fi
10175
10176
10177 { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
10178 $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
10179 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
10180   $as_echo_n "(cached) " >&6
10181 else
10182   cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h.  */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h.  */
10188 $ac_includes_default
10189 int
10190 main ()
10191 {
10192 #ifndef putchar_unlocked
10193   (void) putchar_unlocked;
10194 #endif
10195
10196   ;
10197   return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest.$ac_objext
10201 if { (ac_try="$ac_compile"
10202 case "(($ac_try" in
10203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204   *) ac_try_echo=$ac_try;;
10205 esac
10206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10207 $as_echo "$ac_try_echo") >&5
10208   (eval "$ac_compile") 2>conftest.er1
10209   ac_status=$?
10210   grep -v '^ *+' conftest.er1 >conftest.err
10211   rm -f conftest.er1
10212   cat conftest.err >&5
10213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10214   (exit $ac_status); } && {
10215          test -z "$ac_c_werror_flag" ||
10216          test ! -s conftest.err
10217        } && test -s conftest.$ac_objext; then
10218   ac_cv_have_decl_putchar_unlocked=yes
10219 else
10220   $as_echo "$as_me: failed program was:" >&5
10221 sed 's/^/| /' conftest.$ac_ext >&5
10222
10223         ac_cv_have_decl_putchar_unlocked=no
10224 fi
10225
10226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10227 fi
10228 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
10229 $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
10230 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
10231
10232 cat >>confdefs.h <<_ACEOF
10233 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
10234 _ACEOF
10235
10236
10237 else
10238   cat >>confdefs.h <<_ACEOF
10239 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
10240 _ACEOF
10241
10242
10243 fi
10244
10245
10246
10247
10248
10249
10250 for ac_func in $ac_func_list
10251 do
10252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10253 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10254 $as_echo_n "checking for $ac_func... " >&6; }
10255 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10256   $as_echo_n "(cached) " >&6
10257 else
10258   cat >conftest.$ac_ext <<_ACEOF
10259 /* confdefs.h.  */
10260 _ACEOF
10261 cat confdefs.h >>conftest.$ac_ext
10262 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h.  */
10264 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10265    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10266 #define $ac_func innocuous_$ac_func
10267
10268 /* System header to define __stub macros and hopefully few prototypes,
10269     which can conflict with char $ac_func (); below.
10270     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10271     <limits.h> exists even on freestanding compilers.  */
10272
10273 #ifdef __STDC__
10274 # include <limits.h>
10275 #else
10276 # include <assert.h>
10277 #endif
10278
10279 #undef $ac_func
10280
10281 /* Override any GCC internal prototype to avoid an error.
10282    Use char because int might match the return type of a GCC
10283    builtin and then its argument prototype would still apply.  */
10284 #ifdef __cplusplus
10285 extern "C"
10286 #endif
10287 char $ac_func ();
10288 /* The GNU C library defines this for functions which it implements
10289     to always fail with ENOSYS.  Some functions are actually named
10290     something starting with __ and the normal name is an alias.  */
10291 #if defined __stub_$ac_func || defined __stub___$ac_func
10292 choke me
10293 #endif
10294
10295 int
10296 main ()
10297 {
10298 return $ac_func ();
10299   ;
10300   return 0;
10301 }
10302 _ACEOF
10303 rm -f conftest.$ac_objext conftest$ac_exeext
10304 if { (ac_try="$ac_link"
10305 case "(($ac_try" in
10306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10307   *) ac_try_echo=$ac_try;;
10308 esac
10309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10310 $as_echo "$ac_try_echo") >&5
10311   (eval "$ac_link") 2>conftest.er1
10312   ac_status=$?
10313   grep -v '^ *+' conftest.er1 >conftest.err
10314   rm -f conftest.er1
10315   cat conftest.err >&5
10316   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10317   (exit $ac_status); } && {
10318          test -z "$ac_c_werror_flag" ||
10319          test ! -s conftest.err
10320        } && test -s conftest$ac_exeext && {
10321          test "$cross_compiling" = yes ||
10322          $as_test_x conftest$ac_exeext
10323        }; then
10324   eval "$as_ac_var=yes"
10325 else
10326   $as_echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329         eval "$as_ac_var=no"
10330 fi
10331
10332 rm -rf conftest.dSYM
10333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10334       conftest$ac_exeext conftest.$ac_ext
10335 fi
10336 ac_res=`eval 'as_val=${'$as_ac_var'}
10337                  $as_echo "$as_val"'`
10338                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10339 $as_echo "$ac_res" >&6; }
10340 as_val=`eval 'as_val=${'$as_ac_var'}
10341                  $as_echo "$as_val"'`
10342    if test "x$as_val" = x""yes; then
10343   cat >>confdefs.h <<_ACEOF
10344 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10345 _ACEOF
10346
10347 fi
10348 done
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359   XGETTEXT_EXTRA_OPTIONS=
10360
10361 { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
10362 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
10363 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
10364   $as_echo_n "(cached) " >&6
10365 else
10366   if test "$cross_compiling" = yes; then
10367   gl_cv_struct_dirent_d_ino=no
10368 else
10369   cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h.  */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h.  */
10375 #include <sys/types.h>
10376              #include <sys/stat.h>
10377              #include <dirent.h>
10378
10379 int
10380 main ()
10381 {
10382 DIR *dp = opendir (".");
10383              struct dirent *e;
10384              struct stat st;
10385              if (! dp)
10386                return 1;
10387              e = readdir (dp);
10388              return ! (e
10389                        && stat (e->d_name, &st) == 0
10390                        && e->d_ino == st.st_ino);
10391   ;
10392   return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399   *) ac_try_echo=$ac_try;;
10400 esac
10401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10402 $as_echo "$ac_try_echo") >&5
10403   (eval "$ac_link") 2>&5
10404   ac_status=$?
10405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10406   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10407   { (case "(($ac_try" in
10408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10409   *) ac_try_echo=$ac_try;;
10410 esac
10411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10412 $as_echo "$ac_try_echo") >&5
10413   (eval "$ac_try") 2>&5
10414   ac_status=$?
10415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10416   (exit $ac_status); }; }; then
10417   gl_cv_struct_dirent_d_ino=yes
10418 else
10419   $as_echo "$as_me: program exited with status $ac_status" >&5
10420 $as_echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10422
10423 ( exit $ac_status )
10424 gl_cv_struct_dirent_d_ino=no
10425 fi
10426 rm -rf conftest.dSYM
10427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10428 fi
10429
10430
10431 fi
10432 { $as_echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
10433 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
10434    if test $gl_cv_struct_dirent_d_ino = yes; then
10435
10436 cat >>confdefs.h <<\_ACEOF
10437 #define D_INO_IN_DIRENT 1
10438 _ACEOF
10439
10440    fi
10441
10442
10443
10444     { $as_echo "$as_me:$LINENO: checking whether system is Windows or MSDOS" >&5
10445 $as_echo_n "checking whether system is Windows or MSDOS... " >&6; }
10446 if test "${ac_cv_win_or_dos+set}" = set; then
10447   $as_echo_n "(cached) " >&6
10448 else
10449
10450         cat >conftest.$ac_ext <<_ACEOF
10451 /* confdefs.h.  */
10452 _ACEOF
10453 cat confdefs.h >>conftest.$ac_ext
10454 cat >>conftest.$ac_ext <<_ACEOF
10455 /* end confdefs.h.  */
10456
10457 int
10458 main ()
10459 {
10460
10461 #if !defined _WIN32 && !defined __WIN32__ && !defined __MSDOS__ && !defined __CYGWIN__
10462 neither MSDOS nor Windows
10463 #endif
10464   ;
10465   return 0;
10466 }
10467 _ACEOF
10468 rm -f conftest.$ac_objext
10469 if { (ac_try="$ac_compile"
10470 case "(($ac_try" in
10471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10472   *) ac_try_echo=$ac_try;;
10473 esac
10474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10475 $as_echo "$ac_try_echo") >&5
10476   (eval "$ac_compile") 2>conftest.er1
10477   ac_status=$?
10478   grep -v '^ *+' conftest.er1 >conftest.err
10479   rm -f conftest.er1
10480   cat conftest.err >&5
10481   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482   (exit $ac_status); } && {
10483          test -z "$ac_c_werror_flag" ||
10484          test ! -s conftest.err
10485        } && test -s conftest.$ac_objext; then
10486   ac_cv_win_or_dos=yes
10487 else
10488   $as_echo "$as_me: failed program was:" >&5
10489 sed 's/^/| /' conftest.$ac_ext >&5
10490
10491         ac_cv_win_or_dos=no
10492 fi
10493
10494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10495
10496 fi
10497 { $as_echo "$as_me:$LINENO: result: $ac_cv_win_or_dos" >&5
10498 $as_echo "$ac_cv_win_or_dos" >&6; }
10499
10500     if test x"$ac_cv_win_or_dos" = xyes; then
10501       ac_fs_accepts_drive_letter_prefix=1
10502       ac_fs_backslash_is_file_name_separator=1
10503       { $as_echo "$as_me:$LINENO: checking whether drive letter can start relative path" >&5
10504 $as_echo_n "checking whether drive letter can start relative path... " >&6; }
10505 if test "${ac_cv_drive_letter_can_be_relative+set}" = set; then
10506   $as_echo_n "(cached) " >&6
10507 else
10508
10509           cat >conftest.$ac_ext <<_ACEOF
10510 /* confdefs.h.  */
10511 _ACEOF
10512 cat confdefs.h >>conftest.$ac_ext
10513 cat >>conftest.$ac_ext <<_ACEOF
10514 /* end confdefs.h.  */
10515
10516 int
10517 main ()
10518 {
10519
10520 #if defined __CYGWIN__
10521 drive letters are always absolute
10522 #endif
10523   ;
10524   return 0;
10525 }
10526 _ACEOF
10527 rm -f conftest.$ac_objext
10528 if { (ac_try="$ac_compile"
10529 case "(($ac_try" in
10530   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531   *) ac_try_echo=$ac_try;;
10532 esac
10533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10534 $as_echo "$ac_try_echo") >&5
10535   (eval "$ac_compile") 2>conftest.er1
10536   ac_status=$?
10537   grep -v '^ *+' conftest.er1 >conftest.err
10538   rm -f conftest.er1
10539   cat conftest.err >&5
10540   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541   (exit $ac_status); } && {
10542          test -z "$ac_c_werror_flag" ||
10543          test ! -s conftest.err
10544        } && test -s conftest.$ac_objext; then
10545   ac_cv_drive_letter_can_be_relative=yes
10546 else
10547   $as_echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550         ac_cv_drive_letter_can_be_relative=no
10551 fi
10552
10553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10554
10555 fi
10556 { $as_echo "$as_me:$LINENO: result: $ac_cv_drive_letter_can_be_relative" >&5
10557 $as_echo "$ac_cv_drive_letter_can_be_relative" >&6; }
10558       if test x"$ac_cv_drive_letter_can_be_relative" = xyes; then
10559         ac_fs_drive_letter_can_be_relative=1
10560       else
10561         ac_fs_drive_letter_can_be_relative=0
10562       fi
10563     else
10564       ac_fs_accepts_drive_letter_prefix=0
10565       ac_fs_backslash_is_file_name_separator=0
10566       ac_fs_drive_letter_can_be_relative=0
10567     fi
10568
10569
10570 cat >>confdefs.h <<_ACEOF
10571 #define FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX $ac_fs_accepts_drive_letter_prefix
10572 _ACEOF
10573
10574
10575
10576
10577
10578
10579 cat >>confdefs.h <<_ACEOF
10580 #define FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR $ac_fs_backslash_is_file_name_separator
10581 _ACEOF
10582
10583
10584
10585 cat >>confdefs.h <<_ACEOF
10586 #define FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE $ac_fs_drive_letter_can_be_relative
10587 _ACEOF
10588
10589
10590 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
10591 $as_echo_n "checking for long file names... " >&6; }
10592 if test "${ac_cv_sys_long_file_names+set}" = set; then
10593   $as_echo_n "(cached) " >&6
10594 else
10595   ac_cv_sys_long_file_names=yes
10596 # Test for long file names in all the places we know might matter:
10597 #      .                the current directory, where building will happen
10598 #      $prefix/lib      where we will be installing things
10599 #      $exec_prefix/lib likewise
10600 #      $TMPDIR          if set, where it might want to write temporary files
10601 #      /tmp             where it might want to write temporary files
10602 #      /var/tmp         likewise
10603 #      /usr/tmp         likewise
10604 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
10605   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
10606   # in the usual case where exec_prefix is '${prefix}'.
10607   case $ac_dir in #(
10608     . | /* | ?:[\\/]*) ;; #(
10609     *) continue;;
10610   esac
10611   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
10612   ac_xdir=$ac_dir/cf$$
10613   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
10614   ac_tf1=$ac_xdir/conftest9012345
10615   ac_tf2=$ac_xdir/conftest9012346
10616   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
10617     ac_cv_sys_long_file_names=no
10618   rm -f -r "$ac_xdir" 2>/dev/null
10619   test $ac_cv_sys_long_file_names = no && break
10620 done
10621 fi
10622 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10623 $as_echo "$ac_cv_sys_long_file_names" >&6; }
10624 if test $ac_cv_sys_long_file_names = yes; then
10625
10626 cat >>confdefs.h <<\_ACEOF
10627 #define HAVE_LONG_FILE_NAMES 1
10628 _ACEOF
10629
10630 fi
10631
10632
10633
10634
10635   GNULIB_BTOWC=0;
10636   GNULIB_WCTOB=0;
10637   GNULIB_MBSINIT=0;
10638   GNULIB_MBRTOWC=0;
10639   GNULIB_MBRLEN=0;
10640   GNULIB_MBSRTOWCS=0;
10641   GNULIB_MBSNRTOWCS=0;
10642   GNULIB_WCRTOMB=0;
10643   GNULIB_WCSRTOMBS=0;
10644   GNULIB_WCSNRTOMBS=0;
10645   GNULIB_WCWIDTH=0;
10646     HAVE_BTOWC=1;
10647   HAVE_MBSINIT=1;
10648   HAVE_MBRTOWC=1;
10649   HAVE_MBRLEN=1;
10650   HAVE_MBSRTOWCS=1;
10651   HAVE_MBSNRTOWCS=1;
10652   HAVE_WCRTOMB=1;
10653   HAVE_WCSRTOMBS=1;
10654   HAVE_WCSNRTOMBS=1;
10655   HAVE_DECL_WCTOB=1;
10656   HAVE_DECL_WCWIDTH=1;
10657   REPLACE_MBSTATE_T=0;
10658   REPLACE_BTOWC=0;
10659   REPLACE_WCTOB=0;
10660   REPLACE_MBSINIT=0;
10661   REPLACE_MBRTOWC=0;
10662   REPLACE_MBRLEN=0;
10663   REPLACE_MBSRTOWCS=0;
10664   REPLACE_MBSNRTOWCS=0;
10665   REPLACE_WCRTOMB=0;
10666   REPLACE_WCSRTOMBS=0;
10667   REPLACE_WCSNRTOMBS=0;
10668   REPLACE_WCWIDTH=0;
10669
10670
10671             { $as_echo "$as_me:$LINENO: checking whether <wchar.h> uses 'inline' correctly" >&5
10672 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10673 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then
10674   $as_echo_n "(cached) " >&6
10675 else
10676   gl_cv_header_wchar_h_correct_inline=yes
10677      cat >conftest.$ac_ext <<_ACEOF
10678
10679        /* confdefs.h.  */
10680 _ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h.  */
10684 #define wcstod renamed_wcstod
10685 #include <wchar.h>
10686 extern int zero (void);
10687 int main () { return zero(); }
10688
10689 _ACEOF
10690      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10691   (eval $ac_compile) 2>&5
10692   ac_status=$?
10693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694   (exit $ac_status); }; then
10695        mv conftest.$ac_objext conftest1.$ac_objext
10696        cat >conftest.$ac_ext <<_ACEOF
10697
10698          /* confdefs.h.  */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h.  */
10703 #define wcstod renamed_wcstod
10704 #include <wchar.h>
10705 int zero (void) { return 0; }
10706
10707 _ACEOF
10708        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10709   (eval $ac_compile) 2>&5
10710   ac_status=$?
10711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10712   (exit $ac_status); }; then
10713          mv conftest.$ac_objext conftest2.$ac_objext
10714          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10715            :
10716          else
10717            gl_cv_header_wchar_h_correct_inline=no
10718          fi
10719        fi
10720      fi
10721      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10722
10723 fi
10724 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_correct_inline" >&5
10725 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10726   if test $gl_cv_header_wchar_h_correct_inline = no; then
10727     { { $as_echo "$as_me:$LINENO: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10728 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10729 C99 mode. You have four options:
10730   - Add the flag -fgnu89-inline to CC and reconfigure, or
10731   - Fix your include files, using parts of
10732     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10733   - Use a gcc version older than 4.3, or
10734   - Don't use the flags -std=c99 or -std=gnu99.
10735 Configuration aborted." >&5
10736 $as_echo "$as_me: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10737 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10738 C99 mode. You have four options:
10739   - Add the flag -fgnu89-inline to CC and reconfigure, or
10740   - Fix your include files, using parts of
10741     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10742   - Use a gcc version older than 4.3, or
10743   - Don't use the flags -std=c99 or -std=gnu99.
10744 Configuration aborted." >&2;}
10745    { (exit 1); exit 1; }; }
10746   fi
10747
10748
10749
10750
10751   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
10752 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
10753 if test "${am_cv_langinfo_codeset+set}" = set; then
10754   $as_echo_n "(cached) " >&6
10755 else
10756   cat >conftest.$ac_ext <<_ACEOF
10757 /* confdefs.h.  */
10758 _ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h.  */
10762 #include <langinfo.h>
10763 int
10764 main ()
10765 {
10766 char* cs = nl_langinfo(CODESET); return !cs;
10767   ;
10768   return 0;
10769 }
10770 _ACEOF
10771 rm -f conftest.$ac_objext conftest$ac_exeext
10772 if { (ac_try="$ac_link"
10773 case "(($ac_try" in
10774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10775   *) ac_try_echo=$ac_try;;
10776 esac
10777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10778 $as_echo "$ac_try_echo") >&5
10779   (eval "$ac_link") 2>conftest.er1
10780   ac_status=$?
10781   grep -v '^ *+' conftest.er1 >conftest.err
10782   rm -f conftest.er1
10783   cat conftest.err >&5
10784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10785   (exit $ac_status); } && {
10786          test -z "$ac_c_werror_flag" ||
10787          test ! -s conftest.err
10788        } && test -s conftest$ac_exeext && {
10789          test "$cross_compiling" = yes ||
10790          $as_test_x conftest$ac_exeext
10791        }; then
10792   am_cv_langinfo_codeset=yes
10793 else
10794   $as_echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.$ac_ext >&5
10796
10797         am_cv_langinfo_codeset=no
10798 fi
10799
10800 rm -rf conftest.dSYM
10801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10802       conftest$ac_exeext conftest.$ac_ext
10803
10804 fi
10805 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
10806 $as_echo "$am_cv_langinfo_codeset" >&6; }
10807   if test $am_cv_langinfo_codeset = yes; then
10808
10809 cat >>confdefs.h <<\_ACEOF
10810 #define HAVE_LANGINFO_CODESET 1
10811 _ACEOF
10812
10813   fi
10814
10815
10816
10817
10818   { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
10819 $as_echo_n "checking for a traditional french locale... " >&6; }
10820 if test "${gt_cv_locale_fr+set}" = set; then
10821   $as_echo_n "(cached) " >&6
10822 else
10823
10824     cat >conftest.$ac_ext <<_ACEOF
10825 /* confdefs.h.  */
10826 _ACEOF
10827 cat confdefs.h >>conftest.$ac_ext
10828 cat >>conftest.$ac_ext <<_ACEOF
10829 /* end confdefs.h.  */
10830
10831 #include <locale.h>
10832 #include <time.h>
10833 #if HAVE_LANGINFO_CODESET
10834 # include <langinfo.h>
10835 #endif
10836 #include <stdlib.h>
10837 #include <string.h>
10838 struct tm t;
10839 char buf[16];
10840 int main () {
10841   /* Check whether the given locale name is recognized by the system.  */
10842   if (setlocale (LC_ALL, "") == NULL) return 1;
10843   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
10844      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
10845      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
10846      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
10847      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
10848      some unit tests fail.  */
10849 #if HAVE_LANGINFO_CODESET
10850   {
10851     const char *cs = nl_langinfo (CODESET);
10852     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
10853       return 1;
10854   }
10855 #endif
10856 #ifdef __CYGWIN__
10857   /* On Cygwin, avoid locale names without encoding suffix, because the
10858      locale_charset() function relies on the encoding suffix.  Note that
10859      LC_ALL is set on the command line.  */
10860   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
10861 #endif
10862   /* Check whether in the abbreviation of the second month, the second
10863      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
10864      one byte long. This excludes the UTF-8 encoding.  */
10865   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
10866   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
10867   /* Check whether the decimal separator is a comma.
10868      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
10869      are nl_langinfo(RADIXCHAR) are both ".".  */
10870   if (localeconv () ->decimal_point[0] != ',') return 1;
10871   return 0;
10872 }
10873
10874 _ACEOF
10875     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10876   (eval $ac_link) 2>&5
10877   ac_status=$?
10878   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879   (exit $ac_status); } && test -s conftest$ac_exeext; then
10880       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
10881       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
10882       # configure script would override the LC_ALL setting. Likewise for
10883       # LC_CTYPE, which is also set at the beginning of the configure script.
10884       # Test for the usual locale name.
10885       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10886         gt_cv_locale_fr=fr_FR
10887       else
10888         # Test for the locale name with explicit encoding suffix.
10889         if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10890           gt_cv_locale_fr=fr_FR.ISO-8859-1
10891         else
10892           # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
10893           if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10894             gt_cv_locale_fr=fr_FR.ISO8859-1
10895           else
10896             # Test for the HP-UX locale name.
10897             if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10898               gt_cv_locale_fr=fr_FR.iso88591
10899             else
10900               # Test for the Solaris 7 locale name.
10901               if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
10902                 gt_cv_locale_fr=fr
10903               else
10904                 # None found.
10905                 gt_cv_locale_fr=none
10906               fi
10907             fi
10908           fi
10909         fi
10910       fi
10911     fi
10912     rm -fr conftest*
10913
10914 fi
10915 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
10916 $as_echo "$gt_cv_locale_fr" >&6; }
10917   LOCALE_FR=$gt_cv_locale_fr
10918
10919
10920
10921
10922
10923
10924   { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
10925 $as_echo_n "checking whether // is distinct from /... " >&6; }
10926 if test "${gl_cv_double_slash_root+set}" = set; then
10927   $as_echo_n "(cached) " >&6
10928 else
10929    if test x"$cross_compiling" = xyes ; then
10930         # When cross-compiling, there is no way to tell whether // is special
10931         # short of a list of hosts.  However, the only known hosts to date
10932         # that have a distinct // are Apollo DomainOS (too old to port to),
10933         # Cygwin, and z/OS.  If anyone knows of another system for which // has
10934         # special semantics and is distinct from /, please report it to
10935         # <bug-gnulib@gnu.org>.
10936         case $host in
10937           *-cygwin | i370-ibm-openedition)
10938             gl_cv_double_slash_root=yes ;;
10939           *)
10940             # Be optimistic and assume that / and // are the same when we
10941             # don't know.
10942             gl_cv_double_slash_root='unknown, assuming no' ;;
10943         esac
10944       else
10945         set x `ls -di / // 2>/dev/null`
10946         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
10947           gl_cv_double_slash_root=no
10948         else
10949           gl_cv_double_slash_root=yes
10950         fi
10951       fi
10952 fi
10953 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
10954 $as_echo "$gl_cv_double_slash_root" >&6; }
10955   if test "$gl_cv_double_slash_root" = yes; then
10956
10957 cat >>confdefs.h <<\_ACEOF
10958 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
10959 _ACEOF
10960
10961   fi
10962
10963
10964
10965
10966
10967
10968
10969
10970
10971
10972   { $as_echo "$as_me:$LINENO: checking whether realpath works" >&5
10973 $as_echo_n "checking whether realpath works... " >&6; }
10974 if test "${gl_cv_func_realpath_works+set}" = set; then
10975   $as_echo_n "(cached) " >&6
10976 else
10977
10978     touch conftest.a
10979     if test "$cross_compiling" = yes; then
10980   gl_cv_func_realpath_works="guessing no"
10981 else
10982   cat >conftest.$ac_ext <<_ACEOF
10983
10984       /* confdefs.h.  */
10985 _ACEOF
10986 cat confdefs.h >>conftest.$ac_ext
10987 cat >>conftest.$ac_ext <<_ACEOF
10988 /* end confdefs.h.  */
10989
10990         #include <stdlib.h>
10991
10992 int
10993 main ()
10994 {
10995
10996         char *name1 = realpath ("conftest.a", NULL);
10997         char *name2 = realpath ("conftest.b/../conftest.a", NULL);
10998         char *name3 = realpath ("conftest.a/", NULL);
10999         return !(name1 && *name1 == '/' && !name2 && !name3);
11000
11001   ;
11002   return 0;
11003 }
11004
11005 _ACEOF
11006 rm -f conftest$ac_exeext
11007 if { (ac_try="$ac_link"
11008 case "(($ac_try" in
11009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11010   *) ac_try_echo=$ac_try;;
11011 esac
11012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11013 $as_echo "$ac_try_echo") >&5
11014   (eval "$ac_link") 2>&5
11015   ac_status=$?
11016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11017   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11018   { (case "(($ac_try" in
11019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020   *) ac_try_echo=$ac_try;;
11021 esac
11022 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11023 $as_echo "$ac_try_echo") >&5
11024   (eval "$ac_try") 2>&5
11025   ac_status=$?
11026   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11027   (exit $ac_status); }; }; then
11028   gl_cv_func_realpath_works=yes
11029 else
11030   $as_echo "$as_me: program exited with status $ac_status" >&5
11031 $as_echo "$as_me: failed program was:" >&5
11032 sed 's/^/| /' conftest.$ac_ext >&5
11033
11034 ( exit $ac_status )
11035 gl_cv_func_realpath_works=no
11036 fi
11037 rm -rf conftest.dSYM
11038 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11039 fi
11040
11041
11042
11043 fi
11044 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_realpath_works" >&5
11045 $as_echo "$gl_cv_func_realpath_works" >&6; }
11046   if test "$gl_cv_func_realpath_works" = yes; then
11047
11048 cat >>confdefs.h <<\_ACEOF
11049 #define FUNC_REALPATH_WORKS 1
11050 _ACEOF
11051
11052   fi
11053
11054
11055   GNULIB_ATOLL=0;
11056   GNULIB_CALLOC_POSIX=0;
11057   GNULIB_CANONICALIZE_FILE_NAME=0;
11058   GNULIB_GETLOADAVG=0;
11059   GNULIB_GETSUBOPT=0;
11060   GNULIB_MALLOC_POSIX=0;
11061   GNULIB_MKDTEMP=0;
11062   GNULIB_MKOSTEMP=0;
11063   GNULIB_MKOSTEMPS=0;
11064   GNULIB_MKSTEMP=0;
11065   GNULIB_MKSTEMPS=0;
11066   GNULIB_PUTENV=0;
11067   GNULIB_RANDOM_R=0;
11068   GNULIB_REALLOC_POSIX=0;
11069   GNULIB_REALPATH=0;
11070   GNULIB_RPMATCH=0;
11071   GNULIB_SETENV=0;
11072   GNULIB_STRTOD=0;
11073   GNULIB_STRTOLL=0;
11074   GNULIB_STRTOULL=0;
11075   GNULIB_UNSETENV=0;
11076     HAVE_ATOLL=1;
11077   HAVE_CALLOC_POSIX=1;
11078   HAVE_CANONICALIZE_FILE_NAME=1;
11079   HAVE_DECL_GETLOADAVG=1;
11080   HAVE_GETSUBOPT=1;
11081   HAVE_MALLOC_POSIX=1;
11082   HAVE_MKDTEMP=1;
11083   HAVE_MKOSTEMP=1;
11084   HAVE_MKOSTEMPS=1;
11085   HAVE_MKSTEMPS=1;
11086   HAVE_RANDOM_R=1;
11087   HAVE_REALLOC_POSIX=1;
11088   HAVE_REALPATH=1;
11089   HAVE_RPMATCH=1;
11090   HAVE_SETENV=1;
11091   HAVE_STRTOD=1;
11092   HAVE_STRTOLL=1;
11093   HAVE_STRTOULL=1;
11094   HAVE_STRUCT_RANDOM_DATA=1;
11095   HAVE_SYS_LOADAVG_H=0;
11096   HAVE_UNSETENV=1;
11097   REPLACE_CANONICALIZE_FILE_NAME=0;
11098   REPLACE_MKSTEMP=0;
11099   REPLACE_PUTENV=0;
11100   REPLACE_REALPATH=0;
11101   REPLACE_SETENV=0;
11102   REPLACE_STRTOD=0;
11103   REPLACE_UNSETENV=0;
11104
11105
11106   GNULIB_CHOWN=0;
11107   GNULIB_CLOSE=0;
11108   GNULIB_DUP2=0;
11109   GNULIB_DUP3=0;
11110   GNULIB_ENVIRON=0;
11111   GNULIB_EUIDACCESS=0;
11112   GNULIB_FACCESSAT=0;
11113   GNULIB_FCHDIR=0;
11114   GNULIB_FCHOWNAT=0;
11115   GNULIB_FSYNC=0;
11116   GNULIB_FTRUNCATE=0;
11117   GNULIB_GETCWD=0;
11118   GNULIB_GETDOMAINNAME=0;
11119   GNULIB_GETDTABLESIZE=0;
11120   GNULIB_GETGROUPS=0;
11121   GNULIB_GETHOSTNAME=0;
11122   GNULIB_GETLOGIN=0;
11123   GNULIB_GETLOGIN_R=0;
11124   GNULIB_GETPAGESIZE=0;
11125   GNULIB_GETUSERSHELL=0;
11126   GNULIB_LCHOWN=0;
11127   GNULIB_LINK=0;
11128   GNULIB_LINKAT=0;
11129   GNULIB_LSEEK=0;
11130   GNULIB_PIPE2=0;
11131   GNULIB_PREAD=0;
11132   GNULIB_READLINK=0;
11133   GNULIB_READLINKAT=0;
11134   GNULIB_RMDIR=0;
11135   GNULIB_SLEEP=0;
11136   GNULIB_SYMLINK=0;
11137   GNULIB_SYMLINKAT=0;
11138   GNULIB_UNISTD_H_GETOPT=0;
11139   GNULIB_UNISTD_H_SIGPIPE=0;
11140   GNULIB_UNLINK=0;
11141   GNULIB_UNLINKAT=0;
11142   GNULIB_USLEEP=0;
11143   GNULIB_WRITE=0;
11144     HAVE_CHOWN=1;
11145   HAVE_DUP2=1;
11146   HAVE_DUP3=1;
11147   HAVE_EUIDACCESS=1;
11148   HAVE_FACCESSAT=1;
11149   HAVE_FCHOWNAT=1;
11150   HAVE_FSYNC=1;
11151   HAVE_FTRUNCATE=1;
11152   HAVE_GETDOMAINNAME=1;
11153   HAVE_GETDTABLESIZE=1;
11154   HAVE_GETGROUPS=1;
11155   HAVE_GETHOSTNAME=1;
11156   HAVE_GETLOGIN=1;
11157   HAVE_GETPAGESIZE=1;
11158   HAVE_GETUSERSHELL=1;
11159   HAVE_LCHOWN=1;
11160   HAVE_LINK=1;
11161   HAVE_LINKAT=1;
11162   HAVE_PIPE2=1;
11163   HAVE_PREAD=1;
11164   HAVE_READLINK=1;
11165   HAVE_READLINKAT=1;
11166   HAVE_SLEEP=1;
11167   HAVE_SYMLINK=1;
11168   HAVE_SYMLINKAT=1;
11169   HAVE_DECL_ENVIRON=1;
11170   HAVE_DECL_GETLOGIN_R=1;
11171   HAVE_OS_H=0;
11172   HAVE_SYS_PARAM_H=0;
11173   HAVE_UNLINKAT=1;
11174   HAVE_USLEEP=1;
11175   REPLACE_CHOWN=0;
11176   REPLACE_CLOSE=0;
11177   REPLACE_DUP=0;
11178   REPLACE_DUP2=0;
11179   REPLACE_FCHDIR=0;
11180   REPLACE_FCHOWNAT=0;
11181   REPLACE_GETCWD=0;
11182   REPLACE_GETGROUPS=0;
11183   REPLACE_GETPAGESIZE=0;
11184   REPLACE_LCHOWN=0;
11185   REPLACE_LINK=0;
11186   REPLACE_LINKAT=0;
11187   REPLACE_LSEEK=0;
11188   REPLACE_PREAD=0;
11189   REPLACE_READLINK=0;
11190   REPLACE_RMDIR=0;
11191   REPLACE_SLEEP=0;
11192   REPLACE_SYMLINK=0;
11193   REPLACE_UNLINK=0;
11194   REPLACE_UNLINKAT=0;
11195   REPLACE_USLEEP=0;
11196   REPLACE_WRITE=0;
11197   UNISTD_H_HAVE_WINSOCK2_H=0;
11198   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
11199
11200
11201
11202 for ac_header in unistd.h
11203 do
11204 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11206   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11207 $as_echo_n "checking for $ac_header... " >&6; }
11208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11209   $as_echo_n "(cached) " >&6
11210 fi
11211 ac_res=`eval 'as_val=${'$as_ac_Header'}
11212                  $as_echo "$as_val"'`
11213                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11214 $as_echo "$ac_res" >&6; }
11215 else
11216   # Is the header compilable?
11217 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11218 $as_echo_n "checking $ac_header usability... " >&6; }
11219 cat >conftest.$ac_ext <<_ACEOF
11220 /* confdefs.h.  */
11221 _ACEOF
11222 cat confdefs.h >>conftest.$ac_ext
11223 cat >>conftest.$ac_ext <<_ACEOF
11224 /* end confdefs.h.  */
11225 $ac_includes_default
11226 #include <$ac_header>
11227 _ACEOF
11228 rm -f conftest.$ac_objext
11229 if { (ac_try="$ac_compile"
11230 case "(($ac_try" in
11231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11232   *) ac_try_echo=$ac_try;;
11233 esac
11234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11235 $as_echo "$ac_try_echo") >&5
11236   (eval "$ac_compile") 2>conftest.er1
11237   ac_status=$?
11238   grep -v '^ *+' conftest.er1 >conftest.err
11239   rm -f conftest.er1
11240   cat conftest.err >&5
11241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242   (exit $ac_status); } && {
11243          test -z "$ac_c_werror_flag" ||
11244          test ! -s conftest.err
11245        } && test -s conftest.$ac_objext; then
11246   ac_header_compiler=yes
11247 else
11248   $as_echo "$as_me: failed program was:" >&5
11249 sed 's/^/| /' conftest.$ac_ext >&5
11250
11251         ac_header_compiler=no
11252 fi
11253
11254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11255 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11256 $as_echo "$ac_header_compiler" >&6; }
11257
11258 # Is the header present?
11259 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11260 $as_echo_n "checking $ac_header presence... " >&6; }
11261 cat >conftest.$ac_ext <<_ACEOF
11262 /* confdefs.h.  */
11263 _ACEOF
11264 cat confdefs.h >>conftest.$ac_ext
11265 cat >>conftest.$ac_ext <<_ACEOF
11266 /* end confdefs.h.  */
11267 #include <$ac_header>
11268 _ACEOF
11269 if { (ac_try="$ac_cpp conftest.$ac_ext"
11270 case "(($ac_try" in
11271   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11272   *) ac_try_echo=$ac_try;;
11273 esac
11274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11275 $as_echo "$ac_try_echo") >&5
11276   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11277   ac_status=$?
11278   grep -v '^ *+' conftest.er1 >conftest.err
11279   rm -f conftest.er1
11280   cat conftest.err >&5
11281   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11282   (exit $ac_status); } >/dev/null && {
11283          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11284          test ! -s conftest.err
11285        }; then
11286   ac_header_preproc=yes
11287 else
11288   $as_echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11290
11291   ac_header_preproc=no
11292 fi
11293
11294 rm -f conftest.err conftest.$ac_ext
11295 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11296 $as_echo "$ac_header_preproc" >&6; }
11297
11298 # So?  What about this header?
11299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11300   yes:no: )
11301     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11302 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11303     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11304 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11305     ac_header_preproc=yes
11306     ;;
11307   no:yes:* )
11308     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11309 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11310     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11311 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11312     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11313 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11314     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11315 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11316     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11317 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11318     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11319 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11320     ( cat <<\_ASBOX
11321 ## ------------------------------ ##
11322 ## Report this to bug-tar@gnu.org ##
11323 ## ------------------------------ ##
11324 _ASBOX
11325      ) | sed "s/^/$as_me: WARNING:     /" >&2
11326     ;;
11327 esac
11328 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11329 $as_echo_n "checking for $ac_header... " >&6; }
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331   $as_echo_n "(cached) " >&6
11332 else
11333   eval "$as_ac_Header=\$ac_header_preproc"
11334 fi
11335 ac_res=`eval 'as_val=${'$as_ac_Header'}
11336                  $as_echo "$as_val"'`
11337                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11338 $as_echo "$ac_res" >&6; }
11339
11340 fi
11341 as_val=`eval 'as_val=${'$as_ac_Header'}
11342                  $as_echo "$as_val"'`
11343    if test "x$as_val" = x""yes; then
11344   cat >>confdefs.h <<_ACEOF
11345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11346 _ACEOF
11347
11348 fi
11349
11350 done
11351
11352 { $as_echo "$as_me:$LINENO: checking for working chown" >&5
11353 $as_echo_n "checking for working chown... " >&6; }
11354 if test "${ac_cv_func_chown_works+set}" = set; then
11355   $as_echo_n "(cached) " >&6
11356 else
11357   if test "$cross_compiling" = yes; then
11358   ac_cv_func_chown_works=no
11359 else
11360   cat >conftest.$ac_ext <<_ACEOF
11361 /* confdefs.h.  */
11362 _ACEOF
11363 cat confdefs.h >>conftest.$ac_ext
11364 cat >>conftest.$ac_ext <<_ACEOF
11365 /* end confdefs.h.  */
11366 $ac_includes_default
11367 #include <fcntl.h>
11368
11369 int
11370 main ()
11371 {
11372   char *f = "conftest.chown";
11373   struct stat before, after;
11374
11375   if (creat (f, 0600) < 0)
11376     return 1;
11377   if (stat (f, &before) < 0)
11378     return 1;
11379   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11380     return 1;
11381   if (stat (f, &after) < 0)
11382     return 1;
11383   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11384
11385   ;
11386   return 0;
11387 }
11388 _ACEOF
11389 rm -f conftest$ac_exeext
11390 if { (ac_try="$ac_link"
11391 case "(($ac_try" in
11392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393   *) ac_try_echo=$ac_try;;
11394 esac
11395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11396 $as_echo "$ac_try_echo") >&5
11397   (eval "$ac_link") 2>&5
11398   ac_status=$?
11399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11400   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11401   { (case "(($ac_try" in
11402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11403   *) ac_try_echo=$ac_try;;
11404 esac
11405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11406 $as_echo "$ac_try_echo") >&5
11407   (eval "$ac_try") 2>&5
11408   ac_status=$?
11409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410   (exit $ac_status); }; }; then
11411   ac_cv_func_chown_works=yes
11412 else
11413   $as_echo "$as_me: program exited with status $ac_status" >&5
11414 $as_echo "$as_me: failed program was:" >&5
11415 sed 's/^/| /' conftest.$ac_ext >&5
11416
11417 ( exit $ac_status )
11418 ac_cv_func_chown_works=no
11419 fi
11420 rm -rf conftest.dSYM
11421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11422 fi
11423
11424
11425 rm -f conftest.chown
11426
11427 fi
11428 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11429 $as_echo "$ac_cv_func_chown_works" >&6; }
11430 if test $ac_cv_func_chown_works = yes; then
11431
11432 cat >>confdefs.h <<\_ACEOF
11433 #define HAVE_CHOWN 1
11434 _ACEOF
11435
11436 fi
11437
11438
11439   { $as_echo "$as_me:$LINENO: checking whether chown dereferences symlinks" >&5
11440 $as_echo_n "checking whether chown dereferences symlinks... " >&6; }
11441 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
11442   $as_echo_n "(cached) " >&6
11443 else
11444
11445       if test "$cross_compiling" = yes; then
11446   gl_cv_func_chown_follows_symlink=yes
11447
11448 else
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
11456 #include <unistd.h>
11457 #include <stdlib.h>
11458 #include <errno.h>
11459
11460         int
11461         main ()
11462         {
11463           char const *dangling_symlink = "conftest.dangle";
11464
11465           unlink (dangling_symlink);
11466           if (symlink ("conftest.no-such", dangling_symlink))
11467             abort ();
11468
11469           /* Exit successfully on a conforming system,
11470              i.e., where chown must fail with ENOENT.  */
11471           exit ( ! (chown (dangling_symlink, getuid (), getgid ()) != 0
11472                     && errno == ENOENT));
11473         }
11474
11475 _ACEOF
11476 rm -f conftest$ac_exeext
11477 if { (ac_try="$ac_link"
11478 case "(($ac_try" in
11479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11480   *) ac_try_echo=$ac_try;;
11481 esac
11482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11483 $as_echo "$ac_try_echo") >&5
11484   (eval "$ac_link") 2>&5
11485   ac_status=$?
11486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11487   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11488   { (case "(($ac_try" in
11489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11490   *) ac_try_echo=$ac_try;;
11491 esac
11492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11493 $as_echo "$ac_try_echo") >&5
11494   (eval "$ac_try") 2>&5
11495   ac_status=$?
11496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497   (exit $ac_status); }; }; then
11498   gl_cv_func_chown_follows_symlink=yes
11499 else
11500   $as_echo "$as_me: program exited with status $ac_status" >&5
11501 $as_echo "$as_me: failed program was:" >&5
11502 sed 's/^/| /' conftest.$ac_ext >&5
11503
11504 ( exit $ac_status )
11505 gl_cv_func_chown_follows_symlink=no
11506 fi
11507 rm -rf conftest.dSYM
11508 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11509 fi
11510
11511
11512
11513
11514 fi
11515 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
11516 $as_echo "$gl_cv_func_chown_follows_symlink" >&6; }
11517
11518   if test $gl_cv_func_chown_follows_symlink = no; then
11519
11520 cat >>confdefs.h <<\_ACEOF
11521 #define CHOWN_MODIFIES_SYMLINK 1
11522 _ACEOF
11523
11524   fi
11525
11526
11527
11528
11529
11530
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545     if test $ac_cv_func_chown = no; then
11546     HAVE_CHOWN=0
11547
11548
11549
11550
11551
11552
11553
11554
11555   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11556
11557   else
11558         if test $gl_cv_func_chown_follows_symlink = no; then
11559       REPLACE_CHOWN=1
11560
11561
11562
11563
11564
11565
11566
11567
11568   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11569
11570     fi
11571
11572         if test $ac_cv_func_chown_works = no; then
11573
11574 cat >>confdefs.h <<\_ACEOF
11575 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
11576 _ACEOF
11577
11578       REPLACE_CHOWN=1
11579
11580
11581
11582
11583
11584
11585
11586
11587   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11588
11589     fi
11590
11591             { $as_echo "$as_me:$LINENO: checking whether chown honors trailing slash" >&5
11592 $as_echo_n "checking whether chown honors trailing slash... " >&6; }
11593 if test "${gl_cv_func_chown_slash_works+set}" = set; then
11594   $as_echo_n "(cached) " >&6
11595 else
11596   touch conftest.file && rm -f conftest.link
11597        if test "$cross_compiling" = yes; then
11598   gl_cv_func_chown_slash_works="guessing no"
11599 else
11600   cat >conftest.$ac_ext <<_ACEOF
11601 /* confdefs.h.  */
11602 _ACEOF
11603 cat confdefs.h >>conftest.$ac_ext
11604 cat >>conftest.$ac_ext <<_ACEOF
11605 /* end confdefs.h.  */
11606
11607 #include <unistd.h>
11608 #include <stdlib.h>
11609 #include <errno.h>
11610
11611 int
11612 main ()
11613 {
11614     if (symlink ("conftest.file", "conftest.link")) return 1;
11615           if (chown ("conftest.link/", getuid (), getgid ()) == 0) return 2;
11616
11617   ;
11618   return 0;
11619 }
11620 _ACEOF
11621 rm -f conftest$ac_exeext
11622 if { (ac_try="$ac_link"
11623 case "(($ac_try" in
11624   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625   *) ac_try_echo=$ac_try;;
11626 esac
11627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11628 $as_echo "$ac_try_echo") >&5
11629   (eval "$ac_link") 2>&5
11630   ac_status=$?
11631   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11632   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11633   { (case "(($ac_try" in
11634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11635   *) ac_try_echo=$ac_try;;
11636 esac
11637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11638 $as_echo "$ac_try_echo") >&5
11639   (eval "$ac_try") 2>&5
11640   ac_status=$?
11641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11642   (exit $ac_status); }; }; then
11643   gl_cv_func_chown_slash_works=yes
11644 else
11645   $as_echo "$as_me: program exited with status $ac_status" >&5
11646 $as_echo "$as_me: failed program was:" >&5
11647 sed 's/^/| /' conftest.$ac_ext >&5
11648
11649 ( exit $ac_status )
11650 gl_cv_func_chown_slash_works=no
11651 fi
11652 rm -rf conftest.dSYM
11653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11654 fi
11655
11656
11657       rm -f conftest.link conftest.file
11658 fi
11659 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_slash_works" >&5
11660 $as_echo "$gl_cv_func_chown_slash_works" >&6; }
11661     if test "$gl_cv_func_chown_slash_works" != yes; then
11662
11663 cat >>confdefs.h <<\_ACEOF
11664 #define CHOWN_TRAILING_SLASH_BUG 1
11665 _ACEOF
11666
11667       REPLACE_CHOWN=1
11668
11669
11670
11671
11672
11673
11674
11675
11676   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11677
11678     fi
11679
11680         { $as_echo "$as_me:$LINENO: checking whether chown always updates ctime" >&5
11681 $as_echo_n "checking whether chown always updates ctime... " >&6; }
11682 if test "${gl_cv_func_chown_ctime_works+set}" = set; then
11683   $as_echo_n "(cached) " >&6
11684 else
11685   if test "$cross_compiling" = yes; then
11686   gl_cv_func_chown_ctime_works="guessing no"
11687 else
11688   cat >conftest.$ac_ext <<_ACEOF
11689 /* confdefs.h.  */
11690 _ACEOF
11691 cat confdefs.h >>conftest.$ac_ext
11692 cat >>conftest.$ac_ext <<_ACEOF
11693 /* end confdefs.h.  */
11694
11695 #include <unistd.h>
11696 #include <stdlib.h>
11697 #include <errno.h>
11698 #include <fcntl.h>
11699 #include <sys/stat.h>
11700
11701 int
11702 main ()
11703 {
11704     struct stat st1, st2;
11705           if (close (creat ("conftest.file", 0600))) return 1;
11706           if (stat ("conftest.file", &st1)) return 2;
11707           sleep (1);
11708           if (chown ("conftest.file", st1.st_uid, st1.st_gid)) return 3;
11709           if (stat ("conftest.file", &st2)) return 4;
11710           if (st2.st_ctime <= st1.st_ctime) return 5;
11711
11712   ;
11713   return 0;
11714 }
11715 _ACEOF
11716 rm -f conftest$ac_exeext
11717 if { (ac_try="$ac_link"
11718 case "(($ac_try" in
11719   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11720   *) ac_try_echo=$ac_try;;
11721 esac
11722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11723 $as_echo "$ac_try_echo") >&5
11724   (eval "$ac_link") 2>&5
11725   ac_status=$?
11726   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11727   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11728   { (case "(($ac_try" in
11729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11730   *) ac_try_echo=$ac_try;;
11731 esac
11732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11733 $as_echo "$ac_try_echo") >&5
11734   (eval "$ac_try") 2>&5
11735   ac_status=$?
11736   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737   (exit $ac_status); }; }; then
11738   gl_cv_func_chown_ctime_works=yes
11739 else
11740   $as_echo "$as_me: program exited with status $ac_status" >&5
11741 $as_echo "$as_me: failed program was:" >&5
11742 sed 's/^/| /' conftest.$ac_ext >&5
11743
11744 ( exit $ac_status )
11745 gl_cv_func_chown_ctime_works=no
11746 fi
11747 rm -rf conftest.dSYM
11748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11749 fi
11750
11751
11752       rm -f conftest.file
11753 fi
11754 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_ctime_works" >&5
11755 $as_echo "$gl_cv_func_chown_ctime_works" >&6; }
11756     if test "$gl_cv_func_chown_ctime_works" != yes; then
11757
11758 cat >>confdefs.h <<\_ACEOF
11759 #define CHOWN_CHANGE_TIME_BUG 1
11760 _ACEOF
11761
11762       REPLACE_CHOWN=1
11763
11764
11765
11766
11767
11768
11769
11770
11771   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11772
11773     fi
11774
11775     if test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no; then
11776
11777
11778
11779
11780
11781
11782
11783
11784   gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
11785
11786     fi
11787   fi
11788
11789
11790      GNULIB_DIRFD=0;
11791   GNULIB_FDOPENDIR=0;
11792   GNULIB_SCANDIR=0;
11793   GNULIB_ALPHASORT=0;
11794     HAVE_DECL_DIRFD=1;
11795   HAVE_FDOPENDIR=1;
11796   HAVE_SCANDIR=1;
11797   HAVE_ALPHASORT=1;
11798   REPLACE_CLOSEDIR=0;
11799   REPLACE_FDOPENDIR=0;
11800   REPLACE_OPENDIR=0;
11801
11802
11803
11804   { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
11805 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
11806 if test "${gl_cv_have_include_next+set}" = set; then
11807   $as_echo_n "(cached) " >&6
11808 else
11809   rm -rf conftestd1a conftestd1b conftestd2
11810      mkdir conftestd1a conftestd1b conftestd2
11811                                                   cat <<EOF > conftestd1a/conftest.h
11812 #define DEFINED_IN_CONFTESTD1
11813 #include_next <conftest.h>
11814 #ifdef DEFINED_IN_CONFTESTD2
11815 int foo;
11816 #else
11817 #error "include_next doesn't work"
11818 #endif
11819 EOF
11820      cat <<EOF > conftestd1b/conftest.h
11821 #define DEFINED_IN_CONFTESTD1
11822 #include <stdio.h>
11823 #include_next <conftest.h>
11824 #ifdef DEFINED_IN_CONFTESTD2
11825 int foo;
11826 #else
11827 #error "include_next doesn't work"
11828 #endif
11829 EOF
11830      cat <<EOF > conftestd2/conftest.h
11831 #ifndef DEFINED_IN_CONFTESTD1
11832 #error "include_next test doesn't work"
11833 #endif
11834 #define DEFINED_IN_CONFTESTD2
11835 EOF
11836      gl_save_CPPFLAGS="$CPPFLAGS"
11837      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
11838      cat >conftest.$ac_ext <<_ACEOF
11839 #include <conftest.h>
11840 _ACEOF
11841 rm -f conftest.$ac_objext
11842 if { (ac_try="$ac_compile"
11843 case "(($ac_try" in
11844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11845   *) ac_try_echo=$ac_try;;
11846 esac
11847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11848 $as_echo "$ac_try_echo") >&5
11849   (eval "$ac_compile") 2>conftest.er1
11850   ac_status=$?
11851   grep -v '^ *+' conftest.er1 >conftest.err
11852   rm -f conftest.er1
11853   cat conftest.err >&5
11854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855   (exit $ac_status); } && {
11856          test -z "$ac_c_werror_flag" ||
11857          test ! -s conftest.err
11858        } && test -s conftest.$ac_objext; then
11859   gl_cv_have_include_next=yes
11860 else
11861   $as_echo "$as_me: failed program was:" >&5
11862 sed 's/^/| /' conftest.$ac_ext >&5
11863
11864         CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
11865         cat >conftest.$ac_ext <<_ACEOF
11866 #include <conftest.h>
11867 _ACEOF
11868 rm -f conftest.$ac_objext
11869 if { (ac_try="$ac_compile"
11870 case "(($ac_try" in
11871   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11872   *) ac_try_echo=$ac_try;;
11873 esac
11874 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11875 $as_echo "$ac_try_echo") >&5
11876   (eval "$ac_compile") 2>conftest.er1
11877   ac_status=$?
11878   grep -v '^ *+' conftest.er1 >conftest.err
11879   rm -f conftest.er1
11880   cat conftest.err >&5
11881   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11882   (exit $ac_status); } && {
11883          test -z "$ac_c_werror_flag" ||
11884          test ! -s conftest.err
11885        } && test -s conftest.$ac_objext; then
11886   gl_cv_have_include_next=buggy
11887 else
11888   $as_echo "$as_me: failed program was:" >&5
11889 sed 's/^/| /' conftest.$ac_ext >&5
11890
11891         gl_cv_have_include_next=no
11892 fi
11893
11894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11895
11896 fi
11897
11898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11899      CPPFLAGS="$gl_save_CPPFLAGS"
11900      rm -rf conftestd1a conftestd1b conftestd2
11901
11902 fi
11903 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
11904 $as_echo "$gl_cv_have_include_next" >&6; }
11905   PRAGMA_SYSTEM_HEADER=
11906   if test $gl_cv_have_include_next = yes; then
11907     INCLUDE_NEXT=include_next
11908     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
11909     if test -n "$GCC"; then
11910       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
11911     fi
11912   else
11913     if test $gl_cv_have_include_next = buggy; then
11914       INCLUDE_NEXT=include
11915       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
11916     else
11917       INCLUDE_NEXT=include
11918       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
11919     fi
11920   fi
11921
11922
11923
11924
11925
11926
11927
11928
11929
11930
11931
11932
11933
11934
11935
11936
11937
11938   gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
11939
11940
11941
11942
11943
11944
11945
11946
11947
11948   gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
11949
11950
11951
11952
11953
11954
11955
11956
11957
11958   gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
11959
11960
11961
11962
11963
11964
11965
11966
11967
11968
11969
11970
11971
11972   { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
11973 $as_echo_n "checking if environ is properly declared... " >&6; }
11974   if test "${gt_cv_var_environ_declaration+set}" = set; then
11975   $as_echo_n "(cached) " >&6
11976 else
11977
11978     cat >conftest.$ac_ext <<_ACEOF
11979 /* confdefs.h.  */
11980 _ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h.  */
11984 #include <unistd.h>
11985       extern struct { int foo; } environ;
11986 int
11987 main ()
11988 {
11989 environ.foo = 1;
11990   ;
11991   return 0;
11992 }
11993 _ACEOF
11994 rm -f conftest.$ac_objext
11995 if { (ac_try="$ac_compile"
11996 case "(($ac_try" in
11997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11998   *) ac_try_echo=$ac_try;;
11999 esac
12000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12001 $as_echo "$ac_try_echo") >&5
12002   (eval "$ac_compile") 2>conftest.er1
12003   ac_status=$?
12004   grep -v '^ *+' conftest.er1 >conftest.err
12005   rm -f conftest.er1
12006   cat conftest.err >&5
12007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   (exit $ac_status); } && {
12009          test -z "$ac_c_werror_flag" ||
12010          test ! -s conftest.err
12011        } && test -s conftest.$ac_objext; then
12012   gt_cv_var_environ_declaration=no
12013 else
12014   $as_echo "$as_me: failed program was:" >&5
12015 sed 's/^/| /' conftest.$ac_ext >&5
12016
12017         gt_cv_var_environ_declaration=yes
12018 fi
12019
12020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12021 fi
12022
12023   { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
12024 $as_echo "$gt_cv_var_environ_declaration" >&6; }
12025   if test $gt_cv_var_environ_declaration = yes; then
12026
12027 cat >>confdefs.h <<\_ACEOF
12028 #define HAVE_ENVIRON_DECL 1
12029 _ACEOF
12030
12031   fi
12032
12033
12034   if test $gt_cv_var_environ_declaration != yes; then
12035     HAVE_DECL_ENVIRON=0
12036   fi
12037
12038
12039
12040
12041
12042   { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
12043 $as_echo_n "checking for complete errno.h... " >&6; }
12044 if test "${gl_cv_header_errno_h_complete+set}" = set; then
12045   $as_echo_n "(cached) " >&6
12046 else
12047
12048     cat >conftest.$ac_ext <<_ACEOF
12049 /* confdefs.h.  */
12050 _ACEOF
12051 cat confdefs.h >>conftest.$ac_ext
12052 cat >>conftest.$ac_ext <<_ACEOF
12053 /* end confdefs.h.  */
12054
12055 #include <errno.h>
12056 #if !defined ENOMSG
12057 booboo
12058 #endif
12059 #if !defined EIDRM
12060 booboo
12061 #endif
12062 #if !defined ENOLINK
12063 booboo
12064 #endif
12065 #if !defined EPROTO
12066 booboo
12067 #endif
12068 #if !defined EMULTIHOP
12069 booboo
12070 #endif
12071 #if !defined EBADMSG
12072 booboo
12073 #endif
12074 #if !defined EOVERFLOW
12075 booboo
12076 #endif
12077 #if !defined ENOTSUP
12078 booboo
12079 #endif
12080 #if !defined ESTALE
12081 booboo
12082 #endif
12083 #if !defined ECANCELED
12084 booboo
12085 #endif
12086
12087 _ACEOF
12088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12089   $EGREP "booboo" >/dev/null 2>&1; then
12090   gl_cv_header_errno_h_complete=no
12091 else
12092   gl_cv_header_errno_h_complete=yes
12093 fi
12094 rm -f conftest*
12095
12096
12097 fi
12098 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
12099 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
12100   if test $gl_cv_header_errno_h_complete = yes; then
12101     ERRNO_H=''
12102   else
12103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114      if test $gl_cv_have_include_next = yes; then
12115        gl_cv_next_errno_h='<'errno.h'>'
12116      else
12117        { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
12118 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
12119 if test "${gl_cv_next_errno_h+set}" = set; then
12120   $as_echo_n "(cached) " >&6
12121 else
12122
12123           if test $ac_cv_header_errno_h = yes; then
12124             cat >conftest.$ac_ext <<_ACEOF
12125 /* confdefs.h.  */
12126 _ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h.  */
12130 #include <errno.h>
12131
12132 _ACEOF
12133                                                                                                 case "$host_os" in
12134               aix*) gl_absname_cpp="$ac_cpp -C" ;;
12135               *)    gl_absname_cpp="$ac_cpp" ;;
12136             esac
12137                                                 gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12138                sed -n '\#/errno.h#{
12139                  s#.*"\(.*/errno.h\)".*#\1#
12140                  s#^/[^/]#//&#
12141                  p
12142                  q
12143                }'`'"'
12144           else
12145             gl_cv_next_errno_h='<'errno.h'>'
12146           fi
12147
12148 fi
12149 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
12150 $as_echo "$gl_cv_next_errno_h" >&6; }
12151      fi
12152      NEXT_ERRNO_H=$gl_cv_next_errno_h
12153
12154      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12155        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12156        gl_next_as_first_directive='<'errno.h'>'
12157      else
12158        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12159        gl_next_as_first_directive=$gl_cv_next_errno_h
12160      fi
12161      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
12162
12163
12164
12165     ERRNO_H='errno.h'
12166   fi
12167
12168
12169   if test -n "$ERRNO_H"; then
12170     { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
12171 $as_echo_n "checking for EMULTIHOP value... " >&6; }
12172 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
12173   $as_echo_n "(cached) " >&6
12174 else
12175
12176       cat >conftest.$ac_ext <<_ACEOF
12177 /* confdefs.h.  */
12178 _ACEOF
12179 cat confdefs.h >>conftest.$ac_ext
12180 cat >>conftest.$ac_ext <<_ACEOF
12181 /* end confdefs.h.  */
12182
12183 #include <errno.h>
12184 #ifdef EMULTIHOP
12185 yes
12186 #endif
12187
12188 _ACEOF
12189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12190   $EGREP "yes" >/dev/null 2>&1; then
12191   gl_cv_header_errno_h_EMULTIHOP=yes
12192 else
12193   gl_cv_header_errno_h_EMULTIHOP=no
12194 fi
12195 rm -f conftest*
12196
12197       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
12198         cat >conftest.$ac_ext <<_ACEOF
12199 /* confdefs.h.  */
12200 _ACEOF
12201 cat confdefs.h >>conftest.$ac_ext
12202 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h.  */
12204
12205 #define _XOPEN_SOURCE_EXTENDED 1
12206 #include <errno.h>
12207 #ifdef EMULTIHOP
12208 yes
12209 #endif
12210
12211 _ACEOF
12212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12213   $EGREP "yes" >/dev/null 2>&1; then
12214   gl_cv_header_errno_h_EMULTIHOP=hidden
12215 fi
12216 rm -f conftest*
12217
12218         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
12219                               if test "$cross_compiling" = yes; then
12220   # Depending upon the size, compute the lo and hi bounds.
12221 cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h.  */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h.  */
12227
12228 #define _XOPEN_SOURCE_EXTENDED 1
12229 #include <errno.h>
12230 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12231 #include <stdio.h>
12232 #include <stdlib.h>
12233
12234 int
12235 main ()
12236 {
12237 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
12238 test_array [0] = 0
12239
12240   ;
12241   return 0;
12242 }
12243 _ACEOF
12244 rm -f conftest.$ac_objext
12245 if { (ac_try="$ac_compile"
12246 case "(($ac_try" in
12247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12248   *) ac_try_echo=$ac_try;;
12249 esac
12250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12251 $as_echo "$ac_try_echo") >&5
12252   (eval "$ac_compile") 2>conftest.er1
12253   ac_status=$?
12254   grep -v '^ *+' conftest.er1 >conftest.err
12255   rm -f conftest.er1
12256   cat conftest.err >&5
12257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12258   (exit $ac_status); } && {
12259          test -z "$ac_c_werror_flag" ||
12260          test ! -s conftest.err
12261        } && test -s conftest.$ac_objext; then
12262   ac_lo=0 ac_mid=0
12263   while :; do
12264     cat >conftest.$ac_ext <<_ACEOF
12265 /* confdefs.h.  */
12266 _ACEOF
12267 cat confdefs.h >>conftest.$ac_ext
12268 cat >>conftest.$ac_ext <<_ACEOF
12269 /* end confdefs.h.  */
12270
12271 #define _XOPEN_SOURCE_EXTENDED 1
12272 #include <errno.h>
12273 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12274 #include <stdio.h>
12275 #include <stdlib.h>
12276
12277 int
12278 main ()
12279 {
12280 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
12281 test_array [0] = 0
12282
12283   ;
12284   return 0;
12285 }
12286 _ACEOF
12287 rm -f conftest.$ac_objext
12288 if { (ac_try="$ac_compile"
12289 case "(($ac_try" in
12290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291   *) ac_try_echo=$ac_try;;
12292 esac
12293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12294 $as_echo "$ac_try_echo") >&5
12295   (eval "$ac_compile") 2>conftest.er1
12296   ac_status=$?
12297   grep -v '^ *+' conftest.er1 >conftest.err
12298   rm -f conftest.er1
12299   cat conftest.err >&5
12300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12301   (exit $ac_status); } && {
12302          test -z "$ac_c_werror_flag" ||
12303          test ! -s conftest.err
12304        } && test -s conftest.$ac_objext; then
12305   ac_hi=$ac_mid; break
12306 else
12307   $as_echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12309
12310         ac_lo=`expr $ac_mid + 1`
12311                         if test $ac_lo -le $ac_mid; then
12312                           ac_lo= ac_hi=
12313                           break
12314                         fi
12315                         ac_mid=`expr 2 '*' $ac_mid + 1`
12316 fi
12317
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319   done
12320 else
12321   $as_echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12323
12324         cat >conftest.$ac_ext <<_ACEOF
12325 /* confdefs.h.  */
12326 _ACEOF
12327 cat confdefs.h >>conftest.$ac_ext
12328 cat >>conftest.$ac_ext <<_ACEOF
12329 /* end confdefs.h.  */
12330
12331 #define _XOPEN_SOURCE_EXTENDED 1
12332 #include <errno.h>
12333 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12334 #include <stdio.h>
12335 #include <stdlib.h>
12336
12337 int
12338 main ()
12339 {
12340 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
12341 test_array [0] = 0
12342
12343   ;
12344   return 0;
12345 }
12346 _ACEOF
12347 rm -f conftest.$ac_objext
12348 if { (ac_try="$ac_compile"
12349 case "(($ac_try" in
12350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12351   *) ac_try_echo=$ac_try;;
12352 esac
12353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12354 $as_echo "$ac_try_echo") >&5
12355   (eval "$ac_compile") 2>conftest.er1
12356   ac_status=$?
12357   grep -v '^ *+' conftest.er1 >conftest.err
12358   rm -f conftest.er1
12359   cat conftest.err >&5
12360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12361   (exit $ac_status); } && {
12362          test -z "$ac_c_werror_flag" ||
12363          test ! -s conftest.err
12364        } && test -s conftest.$ac_objext; then
12365   ac_hi=-1 ac_mid=-1
12366   while :; do
12367     cat >conftest.$ac_ext <<_ACEOF
12368 /* confdefs.h.  */
12369 _ACEOF
12370 cat confdefs.h >>conftest.$ac_ext
12371 cat >>conftest.$ac_ext <<_ACEOF
12372 /* end confdefs.h.  */
12373
12374 #define _XOPEN_SOURCE_EXTENDED 1
12375 #include <errno.h>
12376 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12377 #include <stdio.h>
12378 #include <stdlib.h>
12379
12380 int
12381 main ()
12382 {
12383 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
12384 test_array [0] = 0
12385
12386   ;
12387   return 0;
12388 }
12389 _ACEOF
12390 rm -f conftest.$ac_objext
12391 if { (ac_try="$ac_compile"
12392 case "(($ac_try" in
12393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12394   *) ac_try_echo=$ac_try;;
12395 esac
12396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12397 $as_echo "$ac_try_echo") >&5
12398   (eval "$ac_compile") 2>conftest.er1
12399   ac_status=$?
12400   grep -v '^ *+' conftest.er1 >conftest.err
12401   rm -f conftest.er1
12402   cat conftest.err >&5
12403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12404   (exit $ac_status); } && {
12405          test -z "$ac_c_werror_flag" ||
12406          test ! -s conftest.err
12407        } && test -s conftest.$ac_objext; then
12408   ac_lo=$ac_mid; break
12409 else
12410   $as_echo "$as_me: failed program was:" >&5
12411 sed 's/^/| /' conftest.$ac_ext >&5
12412
12413         ac_hi=`expr '(' $ac_mid ')' - 1`
12414                         if test $ac_mid -le $ac_hi; then
12415                           ac_lo= ac_hi=
12416                           break
12417                         fi
12418                         ac_mid=`expr 2 '*' $ac_mid`
12419 fi
12420
12421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12422   done
12423 else
12424   $as_echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12426
12427         ac_lo= ac_hi=
12428 fi
12429
12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12431 fi
12432
12433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12434 # Binary search between lo and hi bounds.
12435 while test "x$ac_lo" != "x$ac_hi"; do
12436   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12437   cat >conftest.$ac_ext <<_ACEOF
12438 /* confdefs.h.  */
12439 _ACEOF
12440 cat confdefs.h >>conftest.$ac_ext
12441 cat >>conftest.$ac_ext <<_ACEOF
12442 /* end confdefs.h.  */
12443
12444 #define _XOPEN_SOURCE_EXTENDED 1
12445 #include <errno.h>
12446 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12447 #include <stdio.h>
12448 #include <stdlib.h>
12449
12450 int
12451 main ()
12452 {
12453 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
12454 test_array [0] = 0
12455
12456   ;
12457   return 0;
12458 }
12459 _ACEOF
12460 rm -f conftest.$ac_objext
12461 if { (ac_try="$ac_compile"
12462 case "(($ac_try" in
12463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464   *) ac_try_echo=$ac_try;;
12465 esac
12466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12467 $as_echo "$ac_try_echo") >&5
12468   (eval "$ac_compile") 2>conftest.er1
12469   ac_status=$?
12470   grep -v '^ *+' conftest.er1 >conftest.err
12471   rm -f conftest.er1
12472   cat conftest.err >&5
12473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474   (exit $ac_status); } && {
12475          test -z "$ac_c_werror_flag" ||
12476          test ! -s conftest.err
12477        } && test -s conftest.$ac_objext; then
12478   ac_hi=$ac_mid
12479 else
12480   $as_echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12482
12483         ac_lo=`expr '(' $ac_mid ')' + 1`
12484 fi
12485
12486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12487 done
12488 case $ac_lo in
12489 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
12490 '')  ;;
12491 esac
12492 else
12493   cat >conftest.$ac_ext <<_ACEOF
12494 /* confdefs.h.  */
12495 _ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h.  */
12499
12500 #define _XOPEN_SOURCE_EXTENDED 1
12501 #include <errno.h>
12502 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12503 #include <stdio.h>
12504 #include <stdlib.h>
12505
12506 static long int longval () { return EMULTIHOP; }
12507 static unsigned long int ulongval () { return EMULTIHOP; }
12508 #include <stdio.h>
12509 #include <stdlib.h>
12510 int
12511 main ()
12512 {
12513
12514   FILE *f = fopen ("conftest.val", "w");
12515   if (! f)
12516     return 1;
12517   if ((EMULTIHOP) < 0)
12518     {
12519       long int i = longval ();
12520       if (i != (EMULTIHOP))
12521         return 1;
12522       fprintf (f, "%ld", i);
12523     }
12524   else
12525     {
12526       unsigned long int i = ulongval ();
12527       if (i != (EMULTIHOP))
12528         return 1;
12529       fprintf (f, "%lu", i);
12530     }
12531   /* Do not output a trailing newline, as this causes \r\n confusion
12532      on some platforms.  */
12533   return ferror (f) || fclose (f) != 0;
12534
12535   ;
12536   return 0;
12537 }
12538 _ACEOF
12539 rm -f conftest$ac_exeext
12540 if { (ac_try="$ac_link"
12541 case "(($ac_try" in
12542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12543   *) ac_try_echo=$ac_try;;
12544 esac
12545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12546 $as_echo "$ac_try_echo") >&5
12547   (eval "$ac_link") 2>&5
12548   ac_status=$?
12549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12551   { (case "(($ac_try" in
12552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12553   *) ac_try_echo=$ac_try;;
12554 esac
12555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12556 $as_echo "$ac_try_echo") >&5
12557   (eval "$ac_try") 2>&5
12558   ac_status=$?
12559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560   (exit $ac_status); }; }; then
12561   gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
12562 else
12563   $as_echo "$as_me: program exited with status $ac_status" >&5
12564 $as_echo "$as_me: failed program was:" >&5
12565 sed 's/^/| /' conftest.$ac_ext >&5
12566
12567 fi
12568 rm -rf conftest.dSYM
12569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12570 fi
12571 rm -f conftest.val
12572         fi
12573       fi
12574
12575 fi
12576 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
12577 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
12578     case $gl_cv_header_errno_h_EMULTIHOP in
12579       yes | no)
12580         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
12581         ;;
12582       *)
12583         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
12584         ;;
12585     esac
12586
12587
12588   fi
12589
12590
12591   if test -n "$ERRNO_H"; then
12592     { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
12593 $as_echo_n "checking for ENOLINK value... " >&6; }
12594 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
12595   $as_echo_n "(cached) " >&6
12596 else
12597
12598       cat >conftest.$ac_ext <<_ACEOF
12599 /* confdefs.h.  */
12600 _ACEOF
12601 cat confdefs.h >>conftest.$ac_ext
12602 cat >>conftest.$ac_ext <<_ACEOF
12603 /* end confdefs.h.  */
12604
12605 #include <errno.h>
12606 #ifdef ENOLINK
12607 yes
12608 #endif
12609
12610 _ACEOF
12611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12612   $EGREP "yes" >/dev/null 2>&1; then
12613   gl_cv_header_errno_h_ENOLINK=yes
12614 else
12615   gl_cv_header_errno_h_ENOLINK=no
12616 fi
12617 rm -f conftest*
12618
12619       if test $gl_cv_header_errno_h_ENOLINK = no; then
12620         cat >conftest.$ac_ext <<_ACEOF
12621 /* confdefs.h.  */
12622 _ACEOF
12623 cat confdefs.h >>conftest.$ac_ext
12624 cat >>conftest.$ac_ext <<_ACEOF
12625 /* end confdefs.h.  */
12626
12627 #define _XOPEN_SOURCE_EXTENDED 1
12628 #include <errno.h>
12629 #ifdef ENOLINK
12630 yes
12631 #endif
12632
12633 _ACEOF
12634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12635   $EGREP "yes" >/dev/null 2>&1; then
12636   gl_cv_header_errno_h_ENOLINK=hidden
12637 fi
12638 rm -f conftest*
12639
12640         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
12641                               if test "$cross_compiling" = yes; then
12642   # Depending upon the size, compute the lo and hi bounds.
12643 cat >conftest.$ac_ext <<_ACEOF
12644 /* confdefs.h.  */
12645 _ACEOF
12646 cat confdefs.h >>conftest.$ac_ext
12647 cat >>conftest.$ac_ext <<_ACEOF
12648 /* end confdefs.h.  */
12649
12650 #define _XOPEN_SOURCE_EXTENDED 1
12651 #include <errno.h>
12652 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12653 #include <stdio.h>
12654 #include <stdlib.h>
12655
12656 int
12657 main ()
12658 {
12659 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
12660 test_array [0] = 0
12661
12662   ;
12663   return 0;
12664 }
12665 _ACEOF
12666 rm -f conftest.$ac_objext
12667 if { (ac_try="$ac_compile"
12668 case "(($ac_try" in
12669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670   *) ac_try_echo=$ac_try;;
12671 esac
12672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12673 $as_echo "$ac_try_echo") >&5
12674   (eval "$ac_compile") 2>conftest.er1
12675   ac_status=$?
12676   grep -v '^ *+' conftest.er1 >conftest.err
12677   rm -f conftest.er1
12678   cat conftest.err >&5
12679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680   (exit $ac_status); } && {
12681          test -z "$ac_c_werror_flag" ||
12682          test ! -s conftest.err
12683        } && test -s conftest.$ac_objext; then
12684   ac_lo=0 ac_mid=0
12685   while :; do
12686     cat >conftest.$ac_ext <<_ACEOF
12687 /* confdefs.h.  */
12688 _ACEOF
12689 cat confdefs.h >>conftest.$ac_ext
12690 cat >>conftest.$ac_ext <<_ACEOF
12691 /* end confdefs.h.  */
12692
12693 #define _XOPEN_SOURCE_EXTENDED 1
12694 #include <errno.h>
12695 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12696 #include <stdio.h>
12697 #include <stdlib.h>
12698
12699 int
12700 main ()
12701 {
12702 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
12703 test_array [0] = 0
12704
12705   ;
12706   return 0;
12707 }
12708 _ACEOF
12709 rm -f conftest.$ac_objext
12710 if { (ac_try="$ac_compile"
12711 case "(($ac_try" in
12712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713   *) ac_try_echo=$ac_try;;
12714 esac
12715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12716 $as_echo "$ac_try_echo") >&5
12717   (eval "$ac_compile") 2>conftest.er1
12718   ac_status=$?
12719   grep -v '^ *+' conftest.er1 >conftest.err
12720   rm -f conftest.er1
12721   cat conftest.err >&5
12722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723   (exit $ac_status); } && {
12724          test -z "$ac_c_werror_flag" ||
12725          test ! -s conftest.err
12726        } && test -s conftest.$ac_objext; then
12727   ac_hi=$ac_mid; break
12728 else
12729   $as_echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.$ac_ext >&5
12731
12732         ac_lo=`expr $ac_mid + 1`
12733                         if test $ac_lo -le $ac_mid; then
12734                           ac_lo= ac_hi=
12735                           break
12736                         fi
12737                         ac_mid=`expr 2 '*' $ac_mid + 1`
12738 fi
12739
12740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12741   done
12742 else
12743   $as_echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12745
12746         cat >conftest.$ac_ext <<_ACEOF
12747 /* confdefs.h.  */
12748 _ACEOF
12749 cat confdefs.h >>conftest.$ac_ext
12750 cat >>conftest.$ac_ext <<_ACEOF
12751 /* end confdefs.h.  */
12752
12753 #define _XOPEN_SOURCE_EXTENDED 1
12754 #include <errno.h>
12755 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12756 #include <stdio.h>
12757 #include <stdlib.h>
12758
12759 int
12760 main ()
12761 {
12762 static int test_array [1 - 2 * !((ENOLINK) < 0)];
12763 test_array [0] = 0
12764
12765   ;
12766   return 0;
12767 }
12768 _ACEOF
12769 rm -f conftest.$ac_objext
12770 if { (ac_try="$ac_compile"
12771 case "(($ac_try" in
12772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773   *) ac_try_echo=$ac_try;;
12774 esac
12775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12776 $as_echo "$ac_try_echo") >&5
12777   (eval "$ac_compile") 2>conftest.er1
12778   ac_status=$?
12779   grep -v '^ *+' conftest.er1 >conftest.err
12780   rm -f conftest.er1
12781   cat conftest.err >&5
12782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783   (exit $ac_status); } && {
12784          test -z "$ac_c_werror_flag" ||
12785          test ! -s conftest.err
12786        } && test -s conftest.$ac_objext; then
12787   ac_hi=-1 ac_mid=-1
12788   while :; do
12789     cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h.  */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h.  */
12795
12796 #define _XOPEN_SOURCE_EXTENDED 1
12797 #include <errno.h>
12798 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12799 #include <stdio.h>
12800 #include <stdlib.h>
12801
12802 int
12803 main ()
12804 {
12805 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
12806 test_array [0] = 0
12807
12808   ;
12809   return 0;
12810 }
12811 _ACEOF
12812 rm -f conftest.$ac_objext
12813 if { (ac_try="$ac_compile"
12814 case "(($ac_try" in
12815   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12816   *) ac_try_echo=$ac_try;;
12817 esac
12818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12819 $as_echo "$ac_try_echo") >&5
12820   (eval "$ac_compile") 2>conftest.er1
12821   ac_status=$?
12822   grep -v '^ *+' conftest.er1 >conftest.err
12823   rm -f conftest.er1
12824   cat conftest.err >&5
12825   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12826   (exit $ac_status); } && {
12827          test -z "$ac_c_werror_flag" ||
12828          test ! -s conftest.err
12829        } && test -s conftest.$ac_objext; then
12830   ac_lo=$ac_mid; break
12831 else
12832   $as_echo "$as_me: failed program was:" >&5
12833 sed 's/^/| /' conftest.$ac_ext >&5
12834
12835         ac_hi=`expr '(' $ac_mid ')' - 1`
12836                         if test $ac_mid -le $ac_hi; then
12837                           ac_lo= ac_hi=
12838                           break
12839                         fi
12840                         ac_mid=`expr 2 '*' $ac_mid`
12841 fi
12842
12843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12844   done
12845 else
12846   $as_echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.$ac_ext >&5
12848
12849         ac_lo= ac_hi=
12850 fi
12851
12852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12853 fi
12854
12855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12856 # Binary search between lo and hi bounds.
12857 while test "x$ac_lo" != "x$ac_hi"; do
12858   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12859   cat >conftest.$ac_ext <<_ACEOF
12860 /* confdefs.h.  */
12861 _ACEOF
12862 cat confdefs.h >>conftest.$ac_ext
12863 cat >>conftest.$ac_ext <<_ACEOF
12864 /* end confdefs.h.  */
12865
12866 #define _XOPEN_SOURCE_EXTENDED 1
12867 #include <errno.h>
12868 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12869 #include <stdio.h>
12870 #include <stdlib.h>
12871
12872 int
12873 main ()
12874 {
12875 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
12876 test_array [0] = 0
12877
12878   ;
12879   return 0;
12880 }
12881 _ACEOF
12882 rm -f conftest.$ac_objext
12883 if { (ac_try="$ac_compile"
12884 case "(($ac_try" in
12885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12886   *) ac_try_echo=$ac_try;;
12887 esac
12888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12889 $as_echo "$ac_try_echo") >&5
12890   (eval "$ac_compile") 2>conftest.er1
12891   ac_status=$?
12892   grep -v '^ *+' conftest.er1 >conftest.err
12893   rm -f conftest.er1
12894   cat conftest.err >&5
12895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12896   (exit $ac_status); } && {
12897          test -z "$ac_c_werror_flag" ||
12898          test ! -s conftest.err
12899        } && test -s conftest.$ac_objext; then
12900   ac_hi=$ac_mid
12901 else
12902   $as_echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12904
12905         ac_lo=`expr '(' $ac_mid ')' + 1`
12906 fi
12907
12908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12909 done
12910 case $ac_lo in
12911 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
12912 '')  ;;
12913 esac
12914 else
12915   cat >conftest.$ac_ext <<_ACEOF
12916 /* confdefs.h.  */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h.  */
12921
12922 #define _XOPEN_SOURCE_EXTENDED 1
12923 #include <errno.h>
12924 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12925 #include <stdio.h>
12926 #include <stdlib.h>
12927
12928 static long int longval () { return ENOLINK; }
12929 static unsigned long int ulongval () { return ENOLINK; }
12930 #include <stdio.h>
12931 #include <stdlib.h>
12932 int
12933 main ()
12934 {
12935
12936   FILE *f = fopen ("conftest.val", "w");
12937   if (! f)
12938     return 1;
12939   if ((ENOLINK) < 0)
12940     {
12941       long int i = longval ();
12942       if (i != (ENOLINK))
12943         return 1;
12944       fprintf (f, "%ld", i);
12945     }
12946   else
12947     {
12948       unsigned long int i = ulongval ();
12949       if (i != (ENOLINK))
12950         return 1;
12951       fprintf (f, "%lu", i);
12952     }
12953   /* Do not output a trailing newline, as this causes \r\n confusion
12954      on some platforms.  */
12955   return ferror (f) || fclose (f) != 0;
12956
12957   ;
12958   return 0;
12959 }
12960 _ACEOF
12961 rm -f conftest$ac_exeext
12962 if { (ac_try="$ac_link"
12963 case "(($ac_try" in
12964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965   *) ac_try_echo=$ac_try;;
12966 esac
12967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12968 $as_echo "$ac_try_echo") >&5
12969   (eval "$ac_link") 2>&5
12970   ac_status=$?
12971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12973   { (case "(($ac_try" in
12974   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12975   *) ac_try_echo=$ac_try;;
12976 esac
12977 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12978 $as_echo "$ac_try_echo") >&5
12979   (eval "$ac_try") 2>&5
12980   ac_status=$?
12981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982   (exit $ac_status); }; }; then
12983   gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
12984 else
12985   $as_echo "$as_me: program exited with status $ac_status" >&5
12986 $as_echo "$as_me: failed program was:" >&5
12987 sed 's/^/| /' conftest.$ac_ext >&5
12988
12989 fi
12990 rm -rf conftest.dSYM
12991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12992 fi
12993 rm -f conftest.val
12994         fi
12995       fi
12996
12997 fi
12998 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
12999 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
13000     case $gl_cv_header_errno_h_ENOLINK in
13001       yes | no)
13002         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
13003         ;;
13004       *)
13005         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
13006         ;;
13007     esac
13008
13009
13010   fi
13011
13012
13013   if test -n "$ERRNO_H"; then
13014     { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
13015 $as_echo_n "checking for EOVERFLOW value... " >&6; }
13016 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
13017   $as_echo_n "(cached) " >&6
13018 else
13019
13020       cat >conftest.$ac_ext <<_ACEOF
13021 /* confdefs.h.  */
13022 _ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h.  */
13026
13027 #include <errno.h>
13028 #ifdef EOVERFLOW
13029 yes
13030 #endif
13031
13032 _ACEOF
13033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13034   $EGREP "yes" >/dev/null 2>&1; then
13035   gl_cv_header_errno_h_EOVERFLOW=yes
13036 else
13037   gl_cv_header_errno_h_EOVERFLOW=no
13038 fi
13039 rm -f conftest*
13040
13041       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
13042         cat >conftest.$ac_ext <<_ACEOF
13043 /* confdefs.h.  */
13044 _ACEOF
13045 cat confdefs.h >>conftest.$ac_ext
13046 cat >>conftest.$ac_ext <<_ACEOF
13047 /* end confdefs.h.  */
13048
13049 #define _XOPEN_SOURCE_EXTENDED 1
13050 #include <errno.h>
13051 #ifdef EOVERFLOW
13052 yes
13053 #endif
13054
13055 _ACEOF
13056 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13057   $EGREP "yes" >/dev/null 2>&1; then
13058   gl_cv_header_errno_h_EOVERFLOW=hidden
13059 fi
13060 rm -f conftest*
13061
13062         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
13063                               if test "$cross_compiling" = yes; then
13064   # Depending upon the size, compute the lo and hi bounds.
13065 cat >conftest.$ac_ext <<_ACEOF
13066 /* confdefs.h.  */
13067 _ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h.  */
13071
13072 #define _XOPEN_SOURCE_EXTENDED 1
13073 #include <errno.h>
13074 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13075 #include <stdio.h>
13076 #include <stdlib.h>
13077
13078 int
13079 main ()
13080 {
13081 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
13082 test_array [0] = 0
13083
13084   ;
13085   return 0;
13086 }
13087 _ACEOF
13088 rm -f conftest.$ac_objext
13089 if { (ac_try="$ac_compile"
13090 case "(($ac_try" in
13091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13092   *) ac_try_echo=$ac_try;;
13093 esac
13094 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13095 $as_echo "$ac_try_echo") >&5
13096   (eval "$ac_compile") 2>conftest.er1
13097   ac_status=$?
13098   grep -v '^ *+' conftest.er1 >conftest.err
13099   rm -f conftest.er1
13100   cat conftest.err >&5
13101   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13102   (exit $ac_status); } && {
13103          test -z "$ac_c_werror_flag" ||
13104          test ! -s conftest.err
13105        } && test -s conftest.$ac_objext; then
13106   ac_lo=0 ac_mid=0
13107   while :; do
13108     cat >conftest.$ac_ext <<_ACEOF
13109 /* confdefs.h.  */
13110 _ACEOF
13111 cat confdefs.h >>conftest.$ac_ext
13112 cat >>conftest.$ac_ext <<_ACEOF
13113 /* end confdefs.h.  */
13114
13115 #define _XOPEN_SOURCE_EXTENDED 1
13116 #include <errno.h>
13117 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13118 #include <stdio.h>
13119 #include <stdlib.h>
13120
13121 int
13122 main ()
13123 {
13124 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13125 test_array [0] = 0
13126
13127   ;
13128   return 0;
13129 }
13130 _ACEOF
13131 rm -f conftest.$ac_objext
13132 if { (ac_try="$ac_compile"
13133 case "(($ac_try" in
13134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135   *) ac_try_echo=$ac_try;;
13136 esac
13137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13138 $as_echo "$ac_try_echo") >&5
13139   (eval "$ac_compile") 2>conftest.er1
13140   ac_status=$?
13141   grep -v '^ *+' conftest.er1 >conftest.err
13142   rm -f conftest.er1
13143   cat conftest.err >&5
13144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145   (exit $ac_status); } && {
13146          test -z "$ac_c_werror_flag" ||
13147          test ! -s conftest.err
13148        } && test -s conftest.$ac_objext; then
13149   ac_hi=$ac_mid; break
13150 else
13151   $as_echo "$as_me: failed program was:" >&5
13152 sed 's/^/| /' conftest.$ac_ext >&5
13153
13154         ac_lo=`expr $ac_mid + 1`
13155                         if test $ac_lo -le $ac_mid; then
13156                           ac_lo= ac_hi=
13157                           break
13158                         fi
13159                         ac_mid=`expr 2 '*' $ac_mid + 1`
13160 fi
13161
13162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13163   done
13164 else
13165   $as_echo "$as_me: failed program was:" >&5
13166 sed 's/^/| /' conftest.$ac_ext >&5
13167
13168         cat >conftest.$ac_ext <<_ACEOF
13169 /* confdefs.h.  */
13170 _ACEOF
13171 cat confdefs.h >>conftest.$ac_ext
13172 cat >>conftest.$ac_ext <<_ACEOF
13173 /* end confdefs.h.  */
13174
13175 #define _XOPEN_SOURCE_EXTENDED 1
13176 #include <errno.h>
13177 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13178 #include <stdio.h>
13179 #include <stdlib.h>
13180
13181 int
13182 main ()
13183 {
13184 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
13185 test_array [0] = 0
13186
13187   ;
13188   return 0;
13189 }
13190 _ACEOF
13191 rm -f conftest.$ac_objext
13192 if { (ac_try="$ac_compile"
13193 case "(($ac_try" in
13194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13195   *) ac_try_echo=$ac_try;;
13196 esac
13197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13198 $as_echo "$ac_try_echo") >&5
13199   (eval "$ac_compile") 2>conftest.er1
13200   ac_status=$?
13201   grep -v '^ *+' conftest.er1 >conftest.err
13202   rm -f conftest.er1
13203   cat conftest.err >&5
13204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205   (exit $ac_status); } && {
13206          test -z "$ac_c_werror_flag" ||
13207          test ! -s conftest.err
13208        } && test -s conftest.$ac_objext; then
13209   ac_hi=-1 ac_mid=-1
13210   while :; do
13211     cat >conftest.$ac_ext <<_ACEOF
13212 /* confdefs.h.  */
13213 _ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h.  */
13217
13218 #define _XOPEN_SOURCE_EXTENDED 1
13219 #include <errno.h>
13220 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13221 #include <stdio.h>
13222 #include <stdlib.h>
13223
13224 int
13225 main ()
13226 {
13227 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
13228 test_array [0] = 0
13229
13230   ;
13231   return 0;
13232 }
13233 _ACEOF
13234 rm -f conftest.$ac_objext
13235 if { (ac_try="$ac_compile"
13236 case "(($ac_try" in
13237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13238   *) ac_try_echo=$ac_try;;
13239 esac
13240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13241 $as_echo "$ac_try_echo") >&5
13242   (eval "$ac_compile") 2>conftest.er1
13243   ac_status=$?
13244   grep -v '^ *+' conftest.er1 >conftest.err
13245   rm -f conftest.er1
13246   cat conftest.err >&5
13247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248   (exit $ac_status); } && {
13249          test -z "$ac_c_werror_flag" ||
13250          test ! -s conftest.err
13251        } && test -s conftest.$ac_objext; then
13252   ac_lo=$ac_mid; break
13253 else
13254   $as_echo "$as_me: failed program was:" >&5
13255 sed 's/^/| /' conftest.$ac_ext >&5
13256
13257         ac_hi=`expr '(' $ac_mid ')' - 1`
13258                         if test $ac_mid -le $ac_hi; then
13259                           ac_lo= ac_hi=
13260                           break
13261                         fi
13262                         ac_mid=`expr 2 '*' $ac_mid`
13263 fi
13264
13265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13266   done
13267 else
13268   $as_echo "$as_me: failed program was:" >&5
13269 sed 's/^/| /' conftest.$ac_ext >&5
13270
13271         ac_lo= ac_hi=
13272 fi
13273
13274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13275 fi
13276
13277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13278 # Binary search between lo and hi bounds.
13279 while test "x$ac_lo" != "x$ac_hi"; do
13280   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13281   cat >conftest.$ac_ext <<_ACEOF
13282 /* confdefs.h.  */
13283 _ACEOF
13284 cat confdefs.h >>conftest.$ac_ext
13285 cat >>conftest.$ac_ext <<_ACEOF
13286 /* end confdefs.h.  */
13287
13288 #define _XOPEN_SOURCE_EXTENDED 1
13289 #include <errno.h>
13290 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13291 #include <stdio.h>
13292 #include <stdlib.h>
13293
13294 int
13295 main ()
13296 {
13297 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13298 test_array [0] = 0
13299
13300   ;
13301   return 0;
13302 }
13303 _ACEOF
13304 rm -f conftest.$ac_objext
13305 if { (ac_try="$ac_compile"
13306 case "(($ac_try" in
13307   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308   *) ac_try_echo=$ac_try;;
13309 esac
13310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13311 $as_echo "$ac_try_echo") >&5
13312   (eval "$ac_compile") 2>conftest.er1
13313   ac_status=$?
13314   grep -v '^ *+' conftest.er1 >conftest.err
13315   rm -f conftest.er1
13316   cat conftest.err >&5
13317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318   (exit $ac_status); } && {
13319          test -z "$ac_c_werror_flag" ||
13320          test ! -s conftest.err
13321        } && test -s conftest.$ac_objext; then
13322   ac_hi=$ac_mid
13323 else
13324   $as_echo "$as_me: failed program was:" >&5
13325 sed 's/^/| /' conftest.$ac_ext >&5
13326
13327         ac_lo=`expr '(' $ac_mid ')' + 1`
13328 fi
13329
13330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13331 done
13332 case $ac_lo in
13333 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
13334 '')  ;;
13335 esac
13336 else
13337   cat >conftest.$ac_ext <<_ACEOF
13338 /* confdefs.h.  */
13339 _ACEOF
13340 cat confdefs.h >>conftest.$ac_ext
13341 cat >>conftest.$ac_ext <<_ACEOF
13342 /* end confdefs.h.  */
13343
13344 #define _XOPEN_SOURCE_EXTENDED 1
13345 #include <errno.h>
13346 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13347 #include <stdio.h>
13348 #include <stdlib.h>
13349
13350 static long int longval () { return EOVERFLOW; }
13351 static unsigned long int ulongval () { return EOVERFLOW; }
13352 #include <stdio.h>
13353 #include <stdlib.h>
13354 int
13355 main ()
13356 {
13357
13358   FILE *f = fopen ("conftest.val", "w");
13359   if (! f)
13360     return 1;
13361   if ((EOVERFLOW) < 0)
13362     {
13363       long int i = longval ();
13364       if (i != (EOVERFLOW))
13365         return 1;
13366       fprintf (f, "%ld", i);
13367     }
13368   else
13369     {
13370       unsigned long int i = ulongval ();
13371       if (i != (EOVERFLOW))
13372         return 1;
13373       fprintf (f, "%lu", i);
13374     }
13375   /* Do not output a trailing newline, as this causes \r\n confusion
13376      on some platforms.  */
13377   return ferror (f) || fclose (f) != 0;
13378
13379   ;
13380   return 0;
13381 }
13382 _ACEOF
13383 rm -f conftest$ac_exeext
13384 if { (ac_try="$ac_link"
13385 case "(($ac_try" in
13386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13387   *) ac_try_echo=$ac_try;;
13388 esac
13389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13390 $as_echo "$ac_try_echo") >&5
13391   (eval "$ac_link") 2>&5
13392   ac_status=$?
13393   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13394   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13395   { (case "(($ac_try" in
13396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13397   *) ac_try_echo=$ac_try;;
13398 esac
13399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13400 $as_echo "$ac_try_echo") >&5
13401   (eval "$ac_try") 2>&5
13402   ac_status=$?
13403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13404   (exit $ac_status); }; }; then
13405   gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
13406 else
13407   $as_echo "$as_me: program exited with status $ac_status" >&5
13408 $as_echo "$as_me: failed program was:" >&5
13409 sed 's/^/| /' conftest.$ac_ext >&5
13410
13411 fi
13412 rm -rf conftest.dSYM
13413 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13414 fi
13415 rm -f conftest.val
13416         fi
13417       fi
13418
13419 fi
13420 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
13421 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
13422     case $gl_cv_header_errno_h_EOVERFLOW in
13423       yes | no)
13424         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
13425         ;;
13426       *)
13427         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
13428         ;;
13429     esac
13430
13431
13432   fi
13433
13434
13435 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
13436 $as_echo_n "checking whether strerror_r is declared... " >&6; }
13437 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
13438   $as_echo_n "(cached) " >&6
13439 else
13440   cat >conftest.$ac_ext <<_ACEOF
13441 /* confdefs.h.  */
13442 _ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h.  */
13446 $ac_includes_default
13447 int
13448 main ()
13449 {
13450 #ifndef strerror_r
13451   (void) strerror_r;
13452 #endif
13453
13454   ;
13455   return 0;
13456 }
13457 _ACEOF
13458 rm -f conftest.$ac_objext
13459 if { (ac_try="$ac_compile"
13460 case "(($ac_try" in
13461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13462   *) ac_try_echo=$ac_try;;
13463 esac
13464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13465 $as_echo "$ac_try_echo") >&5
13466   (eval "$ac_compile") 2>conftest.er1
13467   ac_status=$?
13468   grep -v '^ *+' conftest.er1 >conftest.err
13469   rm -f conftest.er1
13470   cat conftest.err >&5
13471   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472   (exit $ac_status); } && {
13473          test -z "$ac_c_werror_flag" ||
13474          test ! -s conftest.err
13475        } && test -s conftest.$ac_objext; then
13476   ac_cv_have_decl_strerror_r=yes
13477 else
13478   $as_echo "$as_me: failed program was:" >&5
13479 sed 's/^/| /' conftest.$ac_ext >&5
13480
13481         ac_cv_have_decl_strerror_r=no
13482 fi
13483
13484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13485 fi
13486 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
13487 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
13488 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
13489
13490 cat >>confdefs.h <<_ACEOF
13491 #define HAVE_DECL_STRERROR_R 1
13492 _ACEOF
13493
13494
13495 else
13496   cat >>confdefs.h <<_ACEOF
13497 #define HAVE_DECL_STRERROR_R 0
13498 _ACEOF
13499
13500
13501 fi
13502
13503
13504
13505 for ac_func in strerror_r
13506 do
13507 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13508 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13509 $as_echo_n "checking for $ac_func... " >&6; }
13510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13511   $as_echo_n "(cached) " >&6
13512 else
13513   cat >conftest.$ac_ext <<_ACEOF
13514 /* confdefs.h.  */
13515 _ACEOF
13516 cat confdefs.h >>conftest.$ac_ext
13517 cat >>conftest.$ac_ext <<_ACEOF
13518 /* end confdefs.h.  */
13519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13520    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13521 #define $ac_func innocuous_$ac_func
13522
13523 /* System header to define __stub macros and hopefully few prototypes,
13524     which can conflict with char $ac_func (); below.
13525     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13526     <limits.h> exists even on freestanding compilers.  */
13527
13528 #ifdef __STDC__
13529 # include <limits.h>
13530 #else
13531 # include <assert.h>
13532 #endif
13533
13534 #undef $ac_func
13535
13536 /* Override any GCC internal prototype to avoid an error.
13537    Use char because int might match the return type of a GCC
13538    builtin and then its argument prototype would still apply.  */
13539 #ifdef __cplusplus
13540 extern "C"
13541 #endif
13542 char $ac_func ();
13543 /* The GNU C library defines this for functions which it implements
13544     to always fail with ENOSYS.  Some functions are actually named
13545     something starting with __ and the normal name is an alias.  */
13546 #if defined __stub_$ac_func || defined __stub___$ac_func
13547 choke me
13548 #endif
13549
13550 int
13551 main ()
13552 {
13553 return $ac_func ();
13554   ;
13555   return 0;
13556 }
13557 _ACEOF
13558 rm -f conftest.$ac_objext conftest$ac_exeext
13559 if { (ac_try="$ac_link"
13560 case "(($ac_try" in
13561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13562   *) ac_try_echo=$ac_try;;
13563 esac
13564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13565 $as_echo "$ac_try_echo") >&5
13566   (eval "$ac_link") 2>conftest.er1
13567   ac_status=$?
13568   grep -v '^ *+' conftest.er1 >conftest.err
13569   rm -f conftest.er1
13570   cat conftest.err >&5
13571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); } && {
13573          test -z "$ac_c_werror_flag" ||
13574          test ! -s conftest.err
13575        } && test -s conftest$ac_exeext && {
13576          test "$cross_compiling" = yes ||
13577          $as_test_x conftest$ac_exeext
13578        }; then
13579   eval "$as_ac_var=yes"
13580 else
13581   $as_echo "$as_me: failed program was:" >&5
13582 sed 's/^/| /' conftest.$ac_ext >&5
13583
13584         eval "$as_ac_var=no"
13585 fi
13586
13587 rm -rf conftest.dSYM
13588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13589       conftest$ac_exeext conftest.$ac_ext
13590 fi
13591 ac_res=`eval 'as_val=${'$as_ac_var'}
13592                  $as_echo "$as_val"'`
13593                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13594 $as_echo "$ac_res" >&6; }
13595 as_val=`eval 'as_val=${'$as_ac_var'}
13596                  $as_echo "$as_val"'`
13597    if test "x$as_val" = x""yes; then
13598   cat >>confdefs.h <<_ACEOF
13599 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13600 _ACEOF
13601
13602 fi
13603 done
13604
13605 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
13606 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13607 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
13608   $as_echo_n "(cached) " >&6
13609 else
13610
13611     ac_cv_func_strerror_r_char_p=no
13612     if test $ac_cv_have_decl_strerror_r = yes; then
13613       cat >conftest.$ac_ext <<_ACEOF
13614 /* confdefs.h.  */
13615 _ACEOF
13616 cat confdefs.h >>conftest.$ac_ext
13617 cat >>conftest.$ac_ext <<_ACEOF
13618 /* end confdefs.h.  */
13619 $ac_includes_default
13620 int
13621 main ()
13622 {
13623
13624           char buf[100];
13625           char x = *strerror_r (0, buf, sizeof buf);
13626           char *p = strerror_r (0, buf, sizeof buf);
13627           return !p || x;
13628
13629   ;
13630   return 0;
13631 }
13632 _ACEOF
13633 rm -f conftest.$ac_objext
13634 if { (ac_try="$ac_compile"
13635 case "(($ac_try" in
13636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13637   *) ac_try_echo=$ac_try;;
13638 esac
13639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13640 $as_echo "$ac_try_echo") >&5
13641   (eval "$ac_compile") 2>conftest.er1
13642   ac_status=$?
13643   grep -v '^ *+' conftest.er1 >conftest.err
13644   rm -f conftest.er1
13645   cat conftest.err >&5
13646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13647   (exit $ac_status); } && {
13648          test -z "$ac_c_werror_flag" ||
13649          test ! -s conftest.err
13650        } && test -s conftest.$ac_objext; then
13651   ac_cv_func_strerror_r_char_p=yes
13652 else
13653   $as_echo "$as_me: failed program was:" >&5
13654 sed 's/^/| /' conftest.$ac_ext >&5
13655
13656
13657 fi
13658
13659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13660     else
13661       # strerror_r is not declared.  Choose between
13662       # systems that have relatively inaccessible declarations for the
13663       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
13664       # former has a strerror_r that returns char*, while the latter
13665       # has a strerror_r that returns `int'.
13666       # This test should segfault on the DEC system.
13667       if test "$cross_compiling" = yes; then
13668   :
13669 else
13670   cat >conftest.$ac_ext <<_ACEOF
13671 /* confdefs.h.  */
13672 _ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h.  */
13676 $ac_includes_default
13677         extern char *strerror_r ();
13678 int
13679 main ()
13680 {
13681 char buf[100];
13682           char x = *strerror_r (0, buf, sizeof buf);
13683           return ! isalpha (x);
13684   ;
13685   return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest$ac_exeext
13689 if { (ac_try="$ac_link"
13690 case "(($ac_try" in
13691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692   *) ac_try_echo=$ac_try;;
13693 esac
13694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13695 $as_echo "$ac_try_echo") >&5
13696   (eval "$ac_link") 2>&5
13697   ac_status=$?
13698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13700   { (case "(($ac_try" in
13701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702   *) ac_try_echo=$ac_try;;
13703 esac
13704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13705 $as_echo "$ac_try_echo") >&5
13706   (eval "$ac_try") 2>&5
13707   ac_status=$?
13708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13709   (exit $ac_status); }; }; then
13710   ac_cv_func_strerror_r_char_p=yes
13711 else
13712   $as_echo "$as_me: program exited with status $ac_status" >&5
13713 $as_echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716 fi
13717 rm -rf conftest.dSYM
13718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13719 fi
13720
13721
13722     fi
13723
13724 fi
13725 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
13726 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
13727 if test $ac_cv_func_strerror_r_char_p = yes; then
13728
13729 cat >>confdefs.h <<\_ACEOF
13730 #define STRERROR_R_CHAR_P 1
13731 _ACEOF
13732
13733 fi
13734
13735
13736      GNULIB_FCHMODAT=0;
13737   GNULIB_FSTATAT=0;
13738   GNULIB_FUTIMENS=0;
13739   GNULIB_LCHMOD=0;
13740   GNULIB_LSTAT=0;
13741   GNULIB_MKDIRAT=0;
13742   GNULIB_MKFIFO=0;
13743   GNULIB_MKFIFOAT=0;
13744   GNULIB_MKNOD=0;
13745   GNULIB_MKNODAT=0;
13746   GNULIB_STAT=0;
13747   GNULIB_UTIMENSAT=0;
13748     HAVE_FCHMODAT=1;
13749   HAVE_FSTATAT=1;
13750   HAVE_FUTIMENS=1;
13751   HAVE_LCHMOD=1;
13752   HAVE_LSTAT=1;
13753   HAVE_MKDIRAT=1;
13754   HAVE_MKFIFO=1;
13755   HAVE_MKFIFOAT=1;
13756   HAVE_MKNOD=1;
13757   HAVE_MKNODAT=1;
13758   HAVE_UTIMENSAT=1;
13759   REPLACE_FSTAT=0;
13760   REPLACE_FSTATAT=0;
13761   REPLACE_FUTIMENS=0;
13762   REPLACE_LSTAT=0;
13763   REPLACE_MKDIR=0;
13764   REPLACE_MKFIFO=0;
13765   REPLACE_MKNOD=0;
13766   REPLACE_STAT=0;
13767   REPLACE_UTIMENSAT=0;
13768
13769
13770
13771
13772   GNULIB_FCNTL=0;
13773   GNULIB_OPEN=0;
13774   GNULIB_OPENAT=0;
13775     HAVE_FCNTL=1;
13776   HAVE_OPENAT=1;
13777   REPLACE_FCNTL=0;
13778   REPLACE_OPEN=0;
13779   REPLACE_OPENAT=0;
13780
13781
13782
13783   { $as_echo "$as_me:$LINENO: checking for promoted mode_t type" >&5
13784 $as_echo_n "checking for promoted mode_t type... " >&6; }
13785 if test "${gl_cv_promoted_mode_t+set}" = set; then
13786   $as_echo_n "(cached) " >&6
13787 else
13788
13789                 cat >conftest.$ac_ext <<_ACEOF
13790 /* confdefs.h.  */
13791 _ACEOF
13792 cat confdefs.h >>conftest.$ac_ext
13793 cat >>conftest.$ac_ext <<_ACEOF
13794 /* end confdefs.h.  */
13795 #include <sys/types.h>
13796 int
13797 main ()
13798 {
13799 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
13800   ;
13801   return 0;
13802 }
13803 _ACEOF
13804 rm -f conftest.$ac_objext
13805 if { (ac_try="$ac_compile"
13806 case "(($ac_try" in
13807   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13808   *) ac_try_echo=$ac_try;;
13809 esac
13810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13811 $as_echo "$ac_try_echo") >&5
13812   (eval "$ac_compile") 2>conftest.er1
13813   ac_status=$?
13814   grep -v '^ *+' conftest.er1 >conftest.err
13815   rm -f conftest.er1
13816   cat conftest.err >&5
13817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818   (exit $ac_status); } && {
13819          test -z "$ac_c_werror_flag" ||
13820          test ! -s conftest.err
13821        } && test -s conftest.$ac_objext; then
13822   gl_cv_promoted_mode_t='int'
13823 else
13824   $as_echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13826
13827         gl_cv_promoted_mode_t='mode_t'
13828 fi
13829
13830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13831
13832 fi
13833 { $as_echo "$as_me:$LINENO: result: $gl_cv_promoted_mode_t" >&5
13834 $as_echo "$gl_cv_promoted_mode_t" >&6; }
13835
13836 cat >>confdefs.h <<_ACEOF
13837 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
13838 _ACEOF
13839
13840
13841
13842   GNULIB_DPRINTF=0;
13843   GNULIB_FCLOSE=0;
13844   GNULIB_FFLUSH=0;
13845   GNULIB_FOPEN=0;
13846   GNULIB_FPRINTF=0;
13847   GNULIB_FPRINTF_POSIX=0;
13848   GNULIB_FPURGE=0;
13849   GNULIB_FPUTC=0;
13850   GNULIB_FPUTS=0;
13851   GNULIB_FREOPEN=0;
13852   GNULIB_FSEEK=0;
13853   GNULIB_FSEEKO=0;
13854   GNULIB_FTELL=0;
13855   GNULIB_FTELLO=0;
13856   GNULIB_FWRITE=0;
13857   GNULIB_GETDELIM=0;
13858   GNULIB_GETLINE=0;
13859   GNULIB_OBSTACK_PRINTF=0;
13860   GNULIB_OBSTACK_PRINTF_POSIX=0;
13861   GNULIB_PERROR=0;
13862   GNULIB_POPEN=0;
13863   GNULIB_PRINTF=0;
13864   GNULIB_PRINTF_POSIX=0;
13865   GNULIB_PUTC=0;
13866   GNULIB_PUTCHAR=0;
13867   GNULIB_PUTS=0;
13868   GNULIB_REMOVE=0;
13869   GNULIB_RENAME=0;
13870   GNULIB_RENAMEAT=0;
13871   GNULIB_SNPRINTF=0;
13872   GNULIB_SPRINTF_POSIX=0;
13873   GNULIB_STDIO_H_SIGPIPE=0;
13874   GNULIB_VASPRINTF=0;
13875   GNULIB_VDPRINTF=0;
13876   GNULIB_VFPRINTF=0;
13877   GNULIB_VFPRINTF_POSIX=0;
13878   GNULIB_VPRINTF=0;
13879   GNULIB_VPRINTF_POSIX=0;
13880   GNULIB_VSNPRINTF=0;
13881   GNULIB_VSPRINTF_POSIX=0;
13882     HAVE_DECL_FPURGE=1;
13883   HAVE_DECL_GETDELIM=1;
13884   HAVE_DECL_GETLINE=1;
13885   HAVE_DECL_OBSTACK_PRINTF=1;
13886   HAVE_DECL_SNPRINTF=1;
13887   HAVE_DECL_VSNPRINTF=1;
13888   HAVE_DPRINTF=1;
13889   HAVE_RENAMEAT=1;
13890   HAVE_VASPRINTF=1;
13891   HAVE_VDPRINTF=1;
13892   REPLACE_DPRINTF=0;
13893   REPLACE_FCLOSE=0;
13894   REPLACE_FFLUSH=0;
13895   REPLACE_FOPEN=0;
13896   REPLACE_FPRINTF=0;
13897   REPLACE_FPURGE=0;
13898   REPLACE_FREOPEN=0;
13899   REPLACE_FSEEK=0;
13900   REPLACE_FSEEKO=0;
13901   REPLACE_FTELL=0;
13902   REPLACE_FTELLO=0;
13903   REPLACE_GETDELIM=0;
13904   REPLACE_GETLINE=0;
13905   REPLACE_OBSTACK_PRINTF=0;
13906   REPLACE_PERROR=0;
13907   REPLACE_POPEN=0;
13908   REPLACE_PRINTF=0;
13909   REPLACE_REMOVE=0;
13910   REPLACE_RENAME=0;
13911   REPLACE_RENAMEAT=0;
13912   REPLACE_SNPRINTF=0;
13913   REPLACE_SPRINTF=0;
13914   REPLACE_STDIO_WRITE_FUNCS=0;
13915   REPLACE_VASPRINTF=0;
13916   REPLACE_VDPRINTF=0;
13917   REPLACE_VFPRINTF=0;
13918   REPLACE_VPRINTF=0;
13919   REPLACE_VSNPRINTF=0;
13920   REPLACE_VSPRINTF=0;
13921
13922
13923
13924
13925
13926   { $as_echo "$as_me:$LINENO: checking for working fcntl.h" >&5
13927 $as_echo_n "checking for working fcntl.h... " >&6; }
13928 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
13929   $as_echo_n "(cached) " >&6
13930 else
13931   if test "$cross_compiling" = yes; then
13932   gl_cv_header_working_fcntl_h=cross-compiling
13933 else
13934   cat >conftest.$ac_ext <<_ACEOF
13935 /* confdefs.h.  */
13936 _ACEOF
13937 cat confdefs.h >>conftest.$ac_ext
13938 cat >>conftest.$ac_ext <<_ACEOF
13939 /* end confdefs.h.  */
13940 #include <sys/types.h>
13941            #include <sys/stat.h>
13942            #include <unistd.h>
13943            #include <fcntl.h>
13944            #ifndef O_NOATIME
13945             #define O_NOATIME 0
13946            #endif
13947            #ifndef O_NOFOLLOW
13948             #define O_NOFOLLOW 0
13949            #endif
13950            static int const constants[] =
13951             {
13952               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
13953               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
13954             };
13955
13956 int
13957 main ()
13958 {
13959
13960             int status = !constants;
13961             {
13962               static char const sym[] = "conftest.sym";
13963               if (symlink (".", sym) != 0
13964                   || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0)
13965                 status |= 32;
13966               unlink (sym);
13967             }
13968             {
13969               static char const file[] = "confdefs.h";
13970               int fd = open (file, O_RDONLY | O_NOATIME);
13971               char c;
13972               struct stat st0, st1;
13973               if (fd < 0
13974                   || fstat (fd, &st0) != 0
13975                   || sleep (1) != 0
13976                   || read (fd, &c, 1) != 1
13977                   || close (fd) != 0
13978                   || stat (file, &st1) != 0
13979                   || st0.st_atime != st1.st_atime)
13980                 status |= 64;
13981             }
13982             return status;
13983   ;
13984   return 0;
13985 }
13986 _ACEOF
13987 rm -f conftest$ac_exeext
13988 if { (ac_try="$ac_link"
13989 case "(($ac_try" in
13990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13991   *) ac_try_echo=$ac_try;;
13992 esac
13993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13994 $as_echo "$ac_try_echo") >&5
13995   (eval "$ac_link") 2>&5
13996   ac_status=$?
13997   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13999   { (case "(($ac_try" in
14000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14001   *) ac_try_echo=$ac_try;;
14002 esac
14003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14004 $as_echo "$ac_try_echo") >&5
14005   (eval "$ac_try") 2>&5
14006   ac_status=$?
14007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14008   (exit $ac_status); }; }; then
14009   gl_cv_header_working_fcntl_h=yes
14010 else
14011   $as_echo "$as_me: program exited with status $ac_status" >&5
14012 $as_echo "$as_me: failed program was:" >&5
14013 sed 's/^/| /' conftest.$ac_ext >&5
14014
14015 ( exit $ac_status )
14016 case $? in #(
14017         32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
14018         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
14019         96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
14020          *) gl_cv_header_working_fcntl_h='no';;
14021         esac
14022 fi
14023 rm -rf conftest.dSYM
14024 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14025 fi
14026
14027
14028 fi
14029 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
14030 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
14031
14032   case $gl_cv_header_working_fcntl_h in #(
14033   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
14034   *) ac_val=1;;
14035   esac
14036
14037 cat >>confdefs.h <<_ACEOF
14038 #define HAVE_WORKING_O_NOATIME $ac_val
14039 _ACEOF
14040
14041
14042   case $gl_cv_header_working_fcntl_h in #(
14043   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
14044   *) ac_val=1;;
14045   esac
14046
14047 cat >>confdefs.h <<_ACEOF
14048 #define HAVE_WORKING_O_NOFOLLOW $ac_val
14049 _ACEOF
14050
14051
14052
14053
14054
14055
14056    { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
14057 $as_echo_n "checking for mbstate_t... " >&6; }
14058 if test "${ac_cv_type_mbstate_t+set}" = set; then
14059   $as_echo_n "(cached) " >&6
14060 else
14061   cat >conftest.$ac_ext <<_ACEOF
14062 /* confdefs.h.  */
14063 _ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h.  */
14067 $ac_includes_default
14068 #           include <wchar.h>
14069 int
14070 main ()
14071 {
14072 mbstate_t x; return sizeof x;
14073   ;
14074   return 0;
14075 }
14076 _ACEOF
14077 rm -f conftest.$ac_objext
14078 if { (ac_try="$ac_compile"
14079 case "(($ac_try" in
14080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14081   *) ac_try_echo=$ac_try;;
14082 esac
14083 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14084 $as_echo "$ac_try_echo") >&5
14085   (eval "$ac_compile") 2>conftest.er1
14086   ac_status=$?
14087   grep -v '^ *+' conftest.er1 >conftest.err
14088   rm -f conftest.er1
14089   cat conftest.err >&5
14090   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091   (exit $ac_status); } && {
14092          test -z "$ac_c_werror_flag" ||
14093          test ! -s conftest.err
14094        } && test -s conftest.$ac_objext; then
14095   ac_cv_type_mbstate_t=yes
14096 else
14097   $as_echo "$as_me: failed program was:" >&5
14098 sed 's/^/| /' conftest.$ac_ext >&5
14099
14100         ac_cv_type_mbstate_t=no
14101 fi
14102
14103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14104 fi
14105 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14106 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14107    if test $ac_cv_type_mbstate_t = yes; then
14108
14109 cat >>confdefs.h <<\_ACEOF
14110 #define HAVE_MBSTATE_T 1
14111 _ACEOF
14112
14113    else
14114
14115 cat >>confdefs.h <<\_ACEOF
14116 #define mbstate_t int
14117 _ACEOF
14118
14119    fi
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140
14141
14142     { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
14143 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
14144 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
14145   $as_echo_n "(cached) " >&6
14146 else
14147   cat >conftest.$ac_ext <<_ACEOF
14148 /* confdefs.h.  */
14149 _ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h.  */
14153 #include <stdio.h>
14154 int
14155 main ()
14156 {
14157 #if defined __SL64 && defined __SCLE /* cygwin */
14158   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
14159      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
14160      it is easier to do a version check than building a runtime test.  */
14161 # include <cygwin/version.h>
14162 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
14163   choke me
14164 # endif
14165 #endif
14166   ;
14167   return 0;
14168 }
14169 _ACEOF
14170 rm -f conftest.$ac_objext conftest$ac_exeext
14171 if { (ac_try="$ac_link"
14172 case "(($ac_try" in
14173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174   *) ac_try_echo=$ac_try;;
14175 esac
14176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14177 $as_echo "$ac_try_echo") >&5
14178   (eval "$ac_link") 2>conftest.er1
14179   ac_status=$?
14180   grep -v '^ *+' conftest.er1 >conftest.err
14181   rm -f conftest.er1
14182   cat conftest.err >&5
14183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184   (exit $ac_status); } && {
14185          test -z "$ac_c_werror_flag" ||
14186          test ! -s conftest.err
14187        } && test -s conftest$ac_exeext && {
14188          test "$cross_compiling" = yes ||
14189          $as_test_x conftest$ac_exeext
14190        }; then
14191   gl_cv_var_stdin_large_offset=yes
14192 else
14193   $as_echo "$as_me: failed program was:" >&5
14194 sed 's/^/| /' conftest.$ac_ext >&5
14195
14196         gl_cv_var_stdin_large_offset=no
14197 fi
14198
14199 rm -rf conftest.dSYM
14200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14201       conftest$ac_exeext conftest.$ac_ext
14202 fi
14203 { $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
14204 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
14205
14206
14207
14208
14209    { $as_echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
14210 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
14211 if test "${gl_cv_func_getcwd_null+set}" = set; then
14212   $as_echo_n "(cached) " >&6
14213 else
14214   if test "$cross_compiling" = yes; then
14215
14216        case "$host_os" in
14217                                # Guess yes on glibc systems.
14218          *-gnu*)               gl_cv_func_getcwd_null="guessing yes";;
14219                                # Guess yes on Cygwin.
14220          cygwin*)              gl_cv_func_getcwd_null="guessing yes";;
14221                                # Guess yes on mingw.
14222          mingw*)               gl_cv_func_getcwd_null="guessing yes";;
14223                                # If we don't know, assume the worst.
14224          *)                    gl_cv_func_getcwd_null="guessing no";;
14225        esac
14226
14227 else
14228   cat >conftest.$ac_ext <<_ACEOF
14229 /* confdefs.h.  */
14230 _ACEOF
14231 cat confdefs.h >>conftest.$ac_ext
14232 cat >>conftest.$ac_ext <<_ACEOF
14233 /* end confdefs.h.  */
14234
14235 #        include <unistd.h>
14236 #        ifndef getcwd
14237          char *getcwd ();
14238 #        endif
14239
14240 int
14241 main ()
14242 {
14243
14244 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14245 /* mingw cwd does not start with '/', but getcwd does allocate.  */
14246 #else
14247            if (chdir ("/") != 0)
14248              return 1;
14249            else
14250              {
14251                char *f = getcwd (NULL, 0);
14252                return ! (f && f[0] == '/' && !f[1]);
14253              }
14254 #endif
14255
14256   ;
14257   return 0;
14258 }
14259 _ACEOF
14260 rm -f conftest$ac_exeext
14261 if { (ac_try="$ac_link"
14262 case "(($ac_try" in
14263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264   *) ac_try_echo=$ac_try;;
14265 esac
14266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14267 $as_echo "$ac_try_echo") >&5
14268   (eval "$ac_link") 2>&5
14269   ac_status=$?
14270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14272   { (case "(($ac_try" in
14273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274   *) ac_try_echo=$ac_try;;
14275 esac
14276 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14277 $as_echo "$ac_try_echo") >&5
14278   (eval "$ac_try") 2>&5
14279   ac_status=$?
14280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); }; }; then
14282   gl_cv_func_getcwd_null=yes
14283 else
14284   $as_echo "$as_me: program exited with status $ac_status" >&5
14285 $as_echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14287
14288 ( exit $ac_status )
14289 gl_cv_func_getcwd_null=no
14290 fi
14291 rm -rf conftest.dSYM
14292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14293 fi
14294
14295
14296 fi
14297 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
14298 $as_echo "$gl_cv_func_getcwd_null" >&6; }
14299
14300 { $as_echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
14301 $as_echo_n "checking whether getcwd is declared... " >&6; }
14302 if test "${ac_cv_have_decl_getcwd+set}" = set; then
14303   $as_echo_n "(cached) " >&6
14304 else
14305   cat >conftest.$ac_ext <<_ACEOF
14306 /* confdefs.h.  */
14307 _ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h.  */
14311 $ac_includes_default
14312 int
14313 main ()
14314 {
14315 #ifndef getcwd
14316   (void) getcwd;
14317 #endif
14318
14319   ;
14320   return 0;
14321 }
14322 _ACEOF
14323 rm -f conftest.$ac_objext
14324 if { (ac_try="$ac_compile"
14325 case "(($ac_try" in
14326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327   *) ac_try_echo=$ac_try;;
14328 esac
14329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14330 $as_echo "$ac_try_echo") >&5
14331   (eval "$ac_compile") 2>conftest.er1
14332   ac_status=$?
14333   grep -v '^ *+' conftest.er1 >conftest.err
14334   rm -f conftest.er1
14335   cat conftest.err >&5
14336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337   (exit $ac_status); } && {
14338          test -z "$ac_c_werror_flag" ||
14339          test ! -s conftest.err
14340        } && test -s conftest.$ac_objext; then
14341   ac_cv_have_decl_getcwd=yes
14342 else
14343   $as_echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14345
14346         ac_cv_have_decl_getcwd=no
14347 fi
14348
14349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14350 fi
14351 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
14352 $as_echo "$ac_cv_have_decl_getcwd" >&6; }
14353 if test "x$ac_cv_have_decl_getcwd" = x""yes; then
14354
14355 cat >>confdefs.h <<_ACEOF
14356 #define HAVE_DECL_GETCWD 1
14357 _ACEOF
14358
14359
14360 else
14361   cat >>confdefs.h <<_ACEOF
14362 #define HAVE_DECL_GETCWD 0
14363 _ACEOF
14364
14365
14366 fi
14367
14368
14369 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
14370 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
14371 if test "${ac_cv_header_stdbool_h+set}" = set; then
14372   $as_echo_n "(cached) " >&6
14373 else
14374   cat >conftest.$ac_ext <<_ACEOF
14375 /* confdefs.h.  */
14376 _ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h.  */
14380
14381           #include <stdbool.h>
14382           #ifndef bool
14383            "error: bool is not defined"
14384           #endif
14385           #ifndef false
14386            "error: false is not defined"
14387           #endif
14388           #if false
14389            "error: false is not 0"
14390           #endif
14391           #ifndef true
14392            "error: true is not defined"
14393           #endif
14394           #if true != 1
14395            "error: true is not 1"
14396           #endif
14397           #ifndef __bool_true_false_are_defined
14398            "error: __bool_true_false_are_defined is not defined"
14399           #endif
14400
14401           struct s { _Bool s: 1; _Bool t; } s;
14402
14403           char a[true == 1 ? 1 : -1];
14404           char b[false == 0 ? 1 : -1];
14405           char c[__bool_true_false_are_defined == 1 ? 1 : -1];
14406           char d[(bool) 0.5 == true ? 1 : -1];
14407           bool e = &s;
14408           char f[(_Bool) 0.0 == false ? 1 : -1];
14409           char g[true];
14410           char h[sizeof (_Bool)];
14411           char i[sizeof s.t];
14412           enum { j = false, k = true, l = false * true, m = true * 256 };
14413           _Bool n[m];
14414           char o[sizeof n == m * sizeof n[0] ? 1 : -1];
14415           char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
14416           #if defined __xlc__ || defined __GNUC__
14417            /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0
14418               reported by James Lemley on 2005-10-05; see
14419               http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html
14420               This test is not quite right, since xlc is allowed to
14421               reject this program, as the initializer for xlcbug is
14422               not one of the forms that C requires support for.
14423               However, doing the test right would require a run-time
14424               test, and that would make cross-compilation harder.
14425               Let us hope that IBM fixes the xlc bug, and also adds
14426               support for this kind of constant expression.  In the
14427               meantime, this test will reject xlc, which is OK, since
14428               our stdbool.h substitute should suffice.  We also test
14429               this with GCC, where it should work, to detect more
14430               quickly whether someone messes up the test in the
14431               future.  */
14432            char digs[] = "0123456789";
14433            int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1);
14434           #endif
14435           /* Catch a bug in an HP-UX C compiler.  See
14436              http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
14437              http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
14438            */
14439           _Bool q = true;
14440           _Bool *pq = &q;
14441
14442 int
14443 main ()
14444 {
14445
14446           *pq |= q;
14447           *pq |= ! q;
14448           /* Refer to every declared value, to avoid compiler optimizations.  */
14449           return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
14450                   + !m + !n + !o + !p + !q + !pq);
14451
14452   ;
14453   return 0;
14454 }
14455 _ACEOF
14456 rm -f conftest.$ac_objext
14457 if { (ac_try="$ac_compile"
14458 case "(($ac_try" in
14459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460   *) ac_try_echo=$ac_try;;
14461 esac
14462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14463 $as_echo "$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   $as_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_header_stdbool_h=yes
14475 else
14476   $as_echo "$as_me: failed program was:" >&5
14477 sed 's/^/| /' conftest.$ac_ext >&5
14478
14479         ac_cv_header_stdbool_h=no
14480 fi
14481
14482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14483 fi
14484 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
14485 $as_echo "$ac_cv_header_stdbool_h" >&6; }
14486    { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
14487 $as_echo_n "checking for _Bool... " >&6; }
14488 if test "${ac_cv_type__Bool+set}" = set; then
14489   $as_echo_n "(cached) " >&6
14490 else
14491   ac_cv_type__Bool=no
14492 cat >conftest.$ac_ext <<_ACEOF
14493 /* confdefs.h.  */
14494 _ACEOF
14495 cat confdefs.h >>conftest.$ac_ext
14496 cat >>conftest.$ac_ext <<_ACEOF
14497 /* end confdefs.h.  */
14498 $ac_includes_default
14499 int
14500 main ()
14501 {
14502 if (sizeof (_Bool))
14503        return 0;
14504   ;
14505   return 0;
14506 }
14507 _ACEOF
14508 rm -f conftest.$ac_objext
14509 if { (ac_try="$ac_compile"
14510 case "(($ac_try" in
14511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512   *) ac_try_echo=$ac_try;;
14513 esac
14514 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14515 $as_echo "$ac_try_echo") >&5
14516   (eval "$ac_compile") 2>conftest.er1
14517   ac_status=$?
14518   grep -v '^ *+' conftest.er1 >conftest.err
14519   rm -f conftest.er1
14520   cat conftest.err >&5
14521   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522   (exit $ac_status); } && {
14523          test -z "$ac_c_werror_flag" ||
14524          test ! -s conftest.err
14525        } && test -s conftest.$ac_objext; then
14526   cat >conftest.$ac_ext <<_ACEOF
14527 /* confdefs.h.  */
14528 _ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h.  */
14532 $ac_includes_default
14533 int
14534 main ()
14535 {
14536 if (sizeof ((_Bool)))
14537           return 0;
14538   ;
14539   return 0;
14540 }
14541 _ACEOF
14542 rm -f conftest.$ac_objext
14543 if { (ac_try="$ac_compile"
14544 case "(($ac_try" in
14545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14546   *) ac_try_echo=$ac_try;;
14547 esac
14548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14549 $as_echo "$ac_try_echo") >&5
14550   (eval "$ac_compile") 2>conftest.er1
14551   ac_status=$?
14552   grep -v '^ *+' conftest.er1 >conftest.err
14553   rm -f conftest.er1
14554   cat conftest.err >&5
14555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14556   (exit $ac_status); } && {
14557          test -z "$ac_c_werror_flag" ||
14558          test ! -s conftest.err
14559        } && test -s conftest.$ac_objext; then
14560   :
14561 else
14562   $as_echo "$as_me: failed program was:" >&5
14563 sed 's/^/| /' conftest.$ac_ext >&5
14564
14565         ac_cv_type__Bool=yes
14566 fi
14567
14568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14569 else
14570   $as_echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573
14574 fi
14575
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 fi
14578 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
14579 $as_echo "$ac_cv_type__Bool" >&6; }
14580 if test "x$ac_cv_type__Bool" = x""yes; then
14581
14582 cat >>confdefs.h <<_ACEOF
14583 #define HAVE__BOOL 1
14584 _ACEOF
14585
14586
14587 fi
14588
14589    if test $ac_cv_header_stdbool_h = yes; then
14590
14591 cat >>confdefs.h <<\_ACEOF
14592 #define HAVE_STDBOOL_H 1
14593 _ACEOF
14594
14595    fi
14596
14597
14598
14599   # Define two additional variables used in the Makefile substitution.
14600
14601   if test "$ac_cv_header_stdbool_h" = yes; then
14602     STDBOOL_H=''
14603   else
14604     STDBOOL_H='stdbool.h'
14605   fi
14606
14607
14608   if test "$ac_cv_type__Bool" = yes; then
14609     HAVE__BOOL=1
14610   else
14611     HAVE__BOOL=0
14612   fi
14613
14614
14615
14616
14617
14618
14619   # getdate.y works with bison only.
14620   : ${YACC='bison -y'}
14621
14622
14623   { $as_echo "$as_me:$LINENO: checking for compound literals" >&5
14624 $as_echo_n "checking for compound literals... " >&6; }
14625 if test "${gl_cv_compound_literals+set}" = set; then
14626   $as_echo_n "(cached) " >&6
14627 else
14628   cat >conftest.$ac_ext <<_ACEOF
14629 /* confdefs.h.  */
14630 _ACEOF
14631 cat confdefs.h >>conftest.$ac_ext
14632 cat >>conftest.$ac_ext <<_ACEOF
14633 /* end confdefs.h.  */
14634 struct s { int i, j; };
14635 int
14636 main ()
14637 {
14638 struct s t = (struct s) { 3, 4 };
14639         if (t.i != 0) return 0;
14640   ;
14641   return 0;
14642 }
14643 _ACEOF
14644 rm -f conftest.$ac_objext
14645 if { (ac_try="$ac_compile"
14646 case "(($ac_try" in
14647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14648   *) ac_try_echo=$ac_try;;
14649 esac
14650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14651 $as_echo "$ac_try_echo") >&5
14652   (eval "$ac_compile") 2>conftest.er1
14653   ac_status=$?
14654   grep -v '^ *+' conftest.er1 >conftest.err
14655   rm -f conftest.er1
14656   cat conftest.err >&5
14657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14658   (exit $ac_status); } && {
14659          test -z "$ac_c_werror_flag" ||
14660          test ! -s conftest.err
14661        } && test -s conftest.$ac_objext; then
14662   gl_cv_compound_literals=yes
14663 else
14664   $as_echo "$as_me: failed program was:" >&5
14665 sed 's/^/| /' conftest.$ac_ext >&5
14666
14667         gl_cv_compound_literals=no
14668 fi
14669
14670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14671 fi
14672 { $as_echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
14673 $as_echo "$gl_cv_compound_literals" >&6; }
14674   if test $gl_cv_compound_literals = yes; then
14675
14676 cat >>confdefs.h <<\_ACEOF
14677 #define HAVE_COMPOUND_LITERALS 1
14678 _ACEOF
14679
14680   fi
14681
14682 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
14683 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
14684 if test "${ac_cv_struct_tm+set}" = set; then
14685   $as_echo_n "(cached) " >&6
14686 else
14687   cat >conftest.$ac_ext <<_ACEOF
14688 /* confdefs.h.  */
14689 _ACEOF
14690 cat confdefs.h >>conftest.$ac_ext
14691 cat >>conftest.$ac_ext <<_ACEOF
14692 /* end confdefs.h.  */
14693 #include <sys/types.h>
14694 #include <time.h>
14695
14696 int
14697 main ()
14698 {
14699 struct tm tm;
14700                                      int *p = &tm.tm_sec;
14701                                      return !p;
14702   ;
14703   return 0;
14704 }
14705 _ACEOF
14706 rm -f conftest.$ac_objext
14707 if { (ac_try="$ac_compile"
14708 case "(($ac_try" in
14709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710   *) ac_try_echo=$ac_try;;
14711 esac
14712 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14713 $as_echo "$ac_try_echo") >&5
14714   (eval "$ac_compile") 2>conftest.er1
14715   ac_status=$?
14716   grep -v '^ *+' conftest.er1 >conftest.err
14717   rm -f conftest.er1
14718   cat conftest.err >&5
14719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14720   (exit $ac_status); } && {
14721          test -z "$ac_c_werror_flag" ||
14722          test ! -s conftest.err
14723        } && test -s conftest.$ac_objext; then
14724   ac_cv_struct_tm=time.h
14725 else
14726   $as_echo "$as_me: failed program was:" >&5
14727 sed 's/^/| /' conftest.$ac_ext >&5
14728
14729         ac_cv_struct_tm=sys/time.h
14730 fi
14731
14732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14733 fi
14734 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
14735 $as_echo "$ac_cv_struct_tm" >&6; }
14736 if test $ac_cv_struct_tm = sys/time.h; then
14737
14738 cat >>confdefs.h <<\_ACEOF
14739 #define TM_IN_SYS_TIME 1
14740 _ACEOF
14741
14742 fi
14743
14744
14745  { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
14746 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
14747 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
14748   $as_echo_n "(cached) " >&6
14749 else
14750   cat >conftest.$ac_ext <<_ACEOF
14751 /* confdefs.h.  */
14752 _ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h.  */
14756 #include <time.h>
14757
14758 int
14759 main ()
14760 {
14761 static struct tm ac_aggr;
14762 if (ac_aggr.tm_gmtoff)
14763 return 0;
14764   ;
14765   return 0;
14766 }
14767 _ACEOF
14768 rm -f conftest.$ac_objext
14769 if { (ac_try="$ac_compile"
14770 case "(($ac_try" in
14771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14772   *) ac_try_echo=$ac_try;;
14773 esac
14774 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14775 $as_echo "$ac_try_echo") >&5
14776   (eval "$ac_compile") 2>conftest.er1
14777   ac_status=$?
14778   grep -v '^ *+' conftest.er1 >conftest.err
14779   rm -f conftest.er1
14780   cat conftest.err >&5
14781   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14782   (exit $ac_status); } && {
14783          test -z "$ac_c_werror_flag" ||
14784          test ! -s conftest.err
14785        } && test -s conftest.$ac_objext; then
14786   ac_cv_member_struct_tm_tm_gmtoff=yes
14787 else
14788   $as_echo "$as_me: failed program was:" >&5
14789 sed 's/^/| /' conftest.$ac_ext >&5
14790
14791         cat >conftest.$ac_ext <<_ACEOF
14792 /* confdefs.h.  */
14793 _ACEOF
14794 cat confdefs.h >>conftest.$ac_ext
14795 cat >>conftest.$ac_ext <<_ACEOF
14796 /* end confdefs.h.  */
14797 #include <time.h>
14798
14799 int
14800 main ()
14801 {
14802 static struct tm ac_aggr;
14803 if (sizeof ac_aggr.tm_gmtoff)
14804 return 0;
14805   ;
14806   return 0;
14807 }
14808 _ACEOF
14809 rm -f conftest.$ac_objext
14810 if { (ac_try="$ac_compile"
14811 case "(($ac_try" in
14812   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14813   *) ac_try_echo=$ac_try;;
14814 esac
14815 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14816 $as_echo "$ac_try_echo") >&5
14817   (eval "$ac_compile") 2>conftest.er1
14818   ac_status=$?
14819   grep -v '^ *+' conftest.er1 >conftest.err
14820   rm -f conftest.er1
14821   cat conftest.err >&5
14822   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823   (exit $ac_status); } && {
14824          test -z "$ac_c_werror_flag" ||
14825          test ! -s conftest.err
14826        } && test -s conftest.$ac_objext; then
14827   ac_cv_member_struct_tm_tm_gmtoff=yes
14828 else
14829   $as_echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14831
14832         ac_cv_member_struct_tm_tm_gmtoff=no
14833 fi
14834
14835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14836 fi
14837
14838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14839 fi
14840 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
14841 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
14842 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
14843
14844 cat >>confdefs.h <<\_ACEOF
14845 #define HAVE_TM_GMTOFF 1
14846 _ACEOF
14847
14848 fi
14849
14850
14851 { $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
14852 $as_echo_n "checking whether getdelim is declared... " >&6; }
14853 if test "${ac_cv_have_decl_getdelim+set}" = set; then
14854   $as_echo_n "(cached) " >&6
14855 else
14856   cat >conftest.$ac_ext <<_ACEOF
14857 /* confdefs.h.  */
14858 _ACEOF
14859 cat confdefs.h >>conftest.$ac_ext
14860 cat >>conftest.$ac_ext <<_ACEOF
14861 /* end confdefs.h.  */
14862 $ac_includes_default
14863 int
14864 main ()
14865 {
14866 #ifndef getdelim
14867   (void) getdelim;
14868 #endif
14869
14870   ;
14871   return 0;
14872 }
14873 _ACEOF
14874 rm -f conftest.$ac_objext
14875 if { (ac_try="$ac_compile"
14876 case "(($ac_try" in
14877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14878   *) ac_try_echo=$ac_try;;
14879 esac
14880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14881 $as_echo "$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   $as_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_getdelim=yes
14893 else
14894   $as_echo "$as_me: failed program was:" >&5
14895 sed 's/^/| /' conftest.$ac_ext >&5
14896
14897         ac_cv_have_decl_getdelim=no
14898 fi
14899
14900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14901 fi
14902 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
14903 $as_echo "$ac_cv_have_decl_getdelim" >&6; }
14904 if test "x$ac_cv_have_decl_getdelim" = x""yes; then
14905
14906 cat >>confdefs.h <<_ACEOF
14907 #define HAVE_DECL_GETDELIM 1
14908 _ACEOF
14909
14910
14911 else
14912   cat >>confdefs.h <<_ACEOF
14913 #define HAVE_DECL_GETDELIM 0
14914 _ACEOF
14915
14916
14917 fi
14918
14919
14920
14921
14922
14923
14924 { $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
14925 $as_echo_n "checking whether getline is declared... " >&6; }
14926 if test "${ac_cv_have_decl_getline+set}" = set; then
14927   $as_echo_n "(cached) " >&6
14928 else
14929   cat >conftest.$ac_ext <<_ACEOF
14930 /* confdefs.h.  */
14931 _ACEOF
14932 cat confdefs.h >>conftest.$ac_ext
14933 cat >>conftest.$ac_ext <<_ACEOF
14934 /* end confdefs.h.  */
14935 $ac_includes_default
14936 int
14937 main ()
14938 {
14939 #ifndef getline
14940   (void) getline;
14941 #endif
14942
14943   ;
14944   return 0;
14945 }
14946 _ACEOF
14947 rm -f conftest.$ac_objext
14948 if { (ac_try="$ac_compile"
14949 case "(($ac_try" in
14950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14951   *) ac_try_echo=$ac_try;;
14952 esac
14953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14954 $as_echo "$ac_try_echo") >&5
14955   (eval "$ac_compile") 2>conftest.er1
14956   ac_status=$?
14957   grep -v '^ *+' conftest.er1 >conftest.err
14958   rm -f conftest.er1
14959   cat conftest.err >&5
14960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961   (exit $ac_status); } && {
14962          test -z "$ac_c_werror_flag" ||
14963          test ! -s conftest.err
14964        } && test -s conftest.$ac_objext; then
14965   ac_cv_have_decl_getline=yes
14966 else
14967   $as_echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14969
14970         ac_cv_have_decl_getline=no
14971 fi
14972
14973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14974 fi
14975 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
14976 $as_echo "$ac_cv_have_decl_getline" >&6; }
14977 if test "x$ac_cv_have_decl_getline" = x""yes; then
14978
14979 cat >>confdefs.h <<_ACEOF
14980 #define HAVE_DECL_GETLINE 1
14981 _ACEOF
14982
14983
14984 else
14985   cat >>confdefs.h <<_ACEOF
14986 #define HAVE_DECL_GETLINE 0
14987 _ACEOF
14988
14989
14990 fi
14991
14992
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010      if test $gl_cv_have_include_next = yes; then
15011        gl_cv_next_getopt_h='<'getopt.h'>'
15012      else
15013        { $as_echo "$as_me:$LINENO: checking absolute name of <getopt.h>" >&5
15014 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
15015 if test "${gl_cv_next_getopt_h+set}" = set; then
15016   $as_echo_n "(cached) " >&6
15017 else
15018
15019           if test $ac_cv_header_getopt_h = yes; then
15020             cat >conftest.$ac_ext <<_ACEOF
15021 /* confdefs.h.  */
15022 _ACEOF
15023 cat confdefs.h >>conftest.$ac_ext
15024 cat >>conftest.$ac_ext <<_ACEOF
15025 /* end confdefs.h.  */
15026 #include <getopt.h>
15027
15028 _ACEOF
15029                                                                                                 case "$host_os" in
15030               aix*) gl_absname_cpp="$ac_cpp -C" ;;
15031               *)    gl_absname_cpp="$ac_cpp" ;;
15032             esac
15033                                                 gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15034                sed -n '\#/getopt.h#{
15035                  s#.*"\(.*/getopt.h\)".*#\1#
15036                  s#^/[^/]#//&#
15037                  p
15038                  q
15039                }'`'"'
15040           else
15041             gl_cv_next_getopt_h='<'getopt.h'>'
15042           fi
15043
15044 fi
15045 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_getopt_h" >&5
15046 $as_echo "$gl_cv_next_getopt_h" >&6; }
15047      fi
15048      NEXT_GETOPT_H=$gl_cv_next_getopt_h
15049
15050      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15051        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15052        gl_next_as_first_directive='<'getopt.h'>'
15053      else
15054        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15055        gl_next_as_first_directive=$gl_cv_next_getopt_h
15056      fi
15057      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067   if test $ac_cv_header_getopt_h = yes; then
15068     HAVE_GETOPT_H=1
15069   else
15070     HAVE_GETOPT_H=0
15071   fi
15072
15073
15074   gl_replace_getopt=
15075
15076     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15077
15078 for ac_header in getopt.h
15079 do
15080 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15083 $as_echo_n "checking for $ac_header... " >&6; }
15084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15085   $as_echo_n "(cached) " >&6
15086 fi
15087 ac_res=`eval 'as_val=${'$as_ac_Header'}
15088                  $as_echo "$as_val"'`
15089                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15090 $as_echo "$ac_res" >&6; }
15091 else
15092   # Is the header compilable?
15093 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15094 $as_echo_n "checking $ac_header usability... " >&6; }
15095 cat >conftest.$ac_ext <<_ACEOF
15096 /* confdefs.h.  */
15097 _ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h.  */
15101 $ac_includes_default
15102 #include <$ac_header>
15103 _ACEOF
15104 rm -f conftest.$ac_objext
15105 if { (ac_try="$ac_compile"
15106 case "(($ac_try" in
15107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108   *) ac_try_echo=$ac_try;;
15109 esac
15110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15111 $as_echo "$ac_try_echo") >&5
15112   (eval "$ac_compile") 2>conftest.er1
15113   ac_status=$?
15114   grep -v '^ *+' conftest.er1 >conftest.err
15115   rm -f conftest.er1
15116   cat conftest.err >&5
15117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118   (exit $ac_status); } && {
15119          test -z "$ac_c_werror_flag" ||
15120          test ! -s conftest.err
15121        } && test -s conftest.$ac_objext; then
15122   ac_header_compiler=yes
15123 else
15124   $as_echo "$as_me: failed program was:" >&5
15125 sed 's/^/| /' conftest.$ac_ext >&5
15126
15127         ac_header_compiler=no
15128 fi
15129
15130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15131 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15132 $as_echo "$ac_header_compiler" >&6; }
15133
15134 # Is the header present?
15135 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15136 $as_echo_n "checking $ac_header presence... " >&6; }
15137 cat >conftest.$ac_ext <<_ACEOF
15138 /* confdefs.h.  */
15139 _ACEOF
15140 cat confdefs.h >>conftest.$ac_ext
15141 cat >>conftest.$ac_ext <<_ACEOF
15142 /* end confdefs.h.  */
15143 #include <$ac_header>
15144 _ACEOF
15145 if { (ac_try="$ac_cpp conftest.$ac_ext"
15146 case "(($ac_try" in
15147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15148   *) ac_try_echo=$ac_try;;
15149 esac
15150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15151 $as_echo "$ac_try_echo") >&5
15152   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15153   ac_status=$?
15154   grep -v '^ *+' conftest.er1 >conftest.err
15155   rm -f conftest.er1
15156   cat conftest.err >&5
15157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15158   (exit $ac_status); } >/dev/null && {
15159          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15160          test ! -s conftest.err
15161        }; then
15162   ac_header_preproc=yes
15163 else
15164   $as_echo "$as_me: failed program was:" >&5
15165 sed 's/^/| /' conftest.$ac_ext >&5
15166
15167   ac_header_preproc=no
15168 fi
15169
15170 rm -f conftest.err conftest.$ac_ext
15171 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15172 $as_echo "$ac_header_preproc" >&6; }
15173
15174 # So?  What about this header?
15175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15176   yes:no: )
15177     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15178 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15179     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15180 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15181     ac_header_preproc=yes
15182     ;;
15183   no:yes:* )
15184     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15185 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15186     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15187 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15188     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15189 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15190     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15191 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15192     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15193 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15194     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15195 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15196     ( cat <<\_ASBOX
15197 ## ------------------------------ ##
15198 ## Report this to bug-tar@gnu.org ##
15199 ## ------------------------------ ##
15200 _ASBOX
15201      ) | sed "s/^/$as_me: WARNING:     /" >&2
15202     ;;
15203 esac
15204 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15205 $as_echo_n "checking for $ac_header... " >&6; }
15206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15207   $as_echo_n "(cached) " >&6
15208 else
15209   eval "$as_ac_Header=\$ac_header_preproc"
15210 fi
15211 ac_res=`eval 'as_val=${'$as_ac_Header'}
15212                  $as_echo "$as_val"'`
15213                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15214 $as_echo "$ac_res" >&6; }
15215
15216 fi
15217 as_val=`eval 'as_val=${'$as_ac_Header'}
15218                  $as_echo "$as_val"'`
15219    if test "x$as_val" = x""yes; then
15220   cat >>confdefs.h <<_ACEOF
15221 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15222 _ACEOF
15223
15224 else
15225   gl_replace_getopt=yes
15226 fi
15227
15228 done
15229
15230   fi
15231
15232     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15233
15234 for ac_func in getopt_long_only
15235 do
15236 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15237 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15238 $as_echo_n "checking for $ac_func... " >&6; }
15239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15240   $as_echo_n "(cached) " >&6
15241 else
15242   cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h.  */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h.  */
15248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15249    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15250 #define $ac_func innocuous_$ac_func
15251
15252 /* System header to define __stub macros and hopefully few prototypes,
15253     which can conflict with char $ac_func (); below.
15254     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15255     <limits.h> exists even on freestanding compilers.  */
15256
15257 #ifdef __STDC__
15258 # include <limits.h>
15259 #else
15260 # include <assert.h>
15261 #endif
15262
15263 #undef $ac_func
15264
15265 /* Override any GCC internal prototype to avoid an error.
15266    Use char because int might match the return type of a GCC
15267    builtin and then its argument prototype would still apply.  */
15268 #ifdef __cplusplus
15269 extern "C"
15270 #endif
15271 char $ac_func ();
15272 /* The GNU C library defines this for functions which it implements
15273     to always fail with ENOSYS.  Some functions are actually named
15274     something starting with __ and the normal name is an alias.  */
15275 #if defined __stub_$ac_func || defined __stub___$ac_func
15276 choke me
15277 #endif
15278
15279 int
15280 main ()
15281 {
15282 return $ac_func ();
15283   ;
15284   return 0;
15285 }
15286 _ACEOF
15287 rm -f conftest.$ac_objext conftest$ac_exeext
15288 if { (ac_try="$ac_link"
15289 case "(($ac_try" in
15290   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15291   *) ac_try_echo=$ac_try;;
15292 esac
15293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15294 $as_echo "$ac_try_echo") >&5
15295   (eval "$ac_link") 2>conftest.er1
15296   ac_status=$?
15297   grep -v '^ *+' conftest.er1 >conftest.err
15298   rm -f conftest.er1
15299   cat conftest.err >&5
15300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301   (exit $ac_status); } && {
15302          test -z "$ac_c_werror_flag" ||
15303          test ! -s conftest.err
15304        } && test -s conftest$ac_exeext && {
15305          test "$cross_compiling" = yes ||
15306          $as_test_x conftest$ac_exeext
15307        }; then
15308   eval "$as_ac_var=yes"
15309 else
15310   $as_echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15312
15313         eval "$as_ac_var=no"
15314 fi
15315
15316 rm -rf conftest.dSYM
15317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15318       conftest$ac_exeext conftest.$ac_ext
15319 fi
15320 ac_res=`eval 'as_val=${'$as_ac_var'}
15321                  $as_echo "$as_val"'`
15322                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15323 $as_echo "$ac_res" >&6; }
15324 as_val=`eval 'as_val=${'$as_ac_var'}
15325                  $as_echo "$as_val"'`
15326    if test "x$as_val" = x""yes; then
15327   cat >>confdefs.h <<_ACEOF
15328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15329 _ACEOF
15330
15331 else
15332   gl_replace_getopt=yes
15333 fi
15334 done
15335
15336   fi
15337
15338           if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15339     { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
15340 $as_echo_n "checking whether optreset is declared... " >&6; }
15341 if test "${ac_cv_have_decl_optreset+set}" = set; then
15342   $as_echo_n "(cached) " >&6
15343 else
15344   cat >conftest.$ac_ext <<_ACEOF
15345 /* confdefs.h.  */
15346 _ACEOF
15347 cat confdefs.h >>conftest.$ac_ext
15348 cat >>conftest.$ac_ext <<_ACEOF
15349 /* end confdefs.h.  */
15350 #include <getopt.h>
15351
15352 int
15353 main ()
15354 {
15355 #ifndef optreset
15356   (void) optreset;
15357 #endif
15358
15359   ;
15360   return 0;
15361 }
15362 _ACEOF
15363 rm -f conftest.$ac_objext
15364 if { (ac_try="$ac_compile"
15365 case "(($ac_try" in
15366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15367   *) ac_try_echo=$ac_try;;
15368 esac
15369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15370 $as_echo "$ac_try_echo") >&5
15371   (eval "$ac_compile") 2>conftest.er1
15372   ac_status=$?
15373   grep -v '^ *+' conftest.er1 >conftest.err
15374   rm -f conftest.er1
15375   cat conftest.err >&5
15376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377   (exit $ac_status); } && {
15378          test -z "$ac_c_werror_flag" ||
15379          test ! -s conftest.err
15380        } && test -s conftest.$ac_objext; then
15381   ac_cv_have_decl_optreset=yes
15382 else
15383   $as_echo "$as_me: failed program was:" >&5
15384 sed 's/^/| /' conftest.$ac_ext >&5
15385
15386         ac_cv_have_decl_optreset=no
15387 fi
15388
15389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15390 fi
15391 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
15392 $as_echo "$ac_cv_have_decl_optreset" >&6; }
15393 if test "x$ac_cv_have_decl_optreset" = x""yes; then
15394
15395 cat >>confdefs.h <<_ACEOF
15396 #define HAVE_DECL_OPTRESET 1
15397 _ACEOF
15398
15399
15400 else
15401   cat >>confdefs.h <<_ACEOF
15402 #define HAVE_DECL_OPTRESET 0
15403 _ACEOF
15404
15405
15406 fi
15407
15408
15409   fi
15410
15411             if test -z "$gl_replace_getopt"; then
15412     { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
15413 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15414 if test "${gl_cv_func_getopt_posix+set}" = set; then
15415   $as_echo_n "(cached) " >&6
15416 else
15417
15418                 if test "$cross_compiling" = yes; then
15419   case "$host_os" in
15420              mingw*) gl_cv_func_getopt_posix="guessing no";;
15421              *)      gl_cv_func_getopt_posix="guessing yes";;
15422            esac
15423
15424 else
15425   cat >conftest.$ac_ext <<_ACEOF
15426 /* confdefs.h.  */
15427 _ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h.  */
15431
15432 #include <unistd.h>
15433 #include <stdlib.h>
15434 #include <string.h>
15435
15436 #if !HAVE_DECL_OPTRESET
15437 # define OPTIND_MIN 0
15438 #else
15439 # define OPTIND_MIN 1
15440 #endif
15441
15442 int
15443 main ()
15444 {
15445   {
15446     int argc = 0;
15447     char *argv[10];
15448     int c;
15449
15450     argv[argc++] = "program";
15451     argv[argc++] = "-a";
15452     argv[argc++] = "foo";
15453     argv[argc++] = "bar";
15454     argv[argc] = NULL;
15455     optind = OPTIND_MIN;
15456     opterr = 0;
15457
15458     c = getopt (argc, argv, "ab");
15459     if (!(c == 'a'))
15460       return 1;
15461     c = getopt (argc, argv, "ab");
15462     if (!(c == -1))
15463       return 2;
15464     if (!(optind == 2))
15465       return 3;
15466   }
15467   /* Some internal state exists at this point.  */
15468   {
15469     int argc = 0;
15470     char *argv[10];
15471     int c;
15472
15473     argv[argc++] = "program";
15474     argv[argc++] = "donald";
15475     argv[argc++] = "-p";
15476     argv[argc++] = "billy";
15477     argv[argc++] = "duck";
15478     argv[argc++] = "-a";
15479     argv[argc++] = "bar";
15480     argv[argc] = NULL;
15481     optind = OPTIND_MIN;
15482     opterr = 0;
15483
15484     c = getopt (argc, argv, "+abp:q:");
15485     if (!(c == -1))
15486       return 4;
15487     if (!(strcmp (argv[0], "program") == 0))
15488       return 5;
15489     if (!(strcmp (argv[1], "donald") == 0))
15490       return 6;
15491     if (!(strcmp (argv[2], "-p") == 0))
15492       return 7;
15493     if (!(strcmp (argv[3], "billy") == 0))
15494       return 8;
15495     if (!(strcmp (argv[4], "duck") == 0))
15496       return 9;
15497     if (!(strcmp (argv[5], "-a") == 0))
15498       return 10;
15499     if (!(strcmp (argv[6], "bar") == 0))
15500       return 11;
15501     if (!(optind == 1))
15502       return 12;
15503   }
15504
15505   return 0;
15506 }
15507
15508 _ACEOF
15509 rm -f conftest$ac_exeext
15510 if { (ac_try="$ac_link"
15511 case "(($ac_try" in
15512   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15513   *) ac_try_echo=$ac_try;;
15514 esac
15515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15516 $as_echo "$ac_try_echo") >&5
15517   (eval "$ac_link") 2>&5
15518   ac_status=$?
15519   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15520   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15521   { (case "(($ac_try" in
15522   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15523   *) ac_try_echo=$ac_try;;
15524 esac
15525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15526 $as_echo "$ac_try_echo") >&5
15527   (eval "$ac_try") 2>&5
15528   ac_status=$?
15529   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15530   (exit $ac_status); }; }; then
15531   gl_cv_func_getopt_posix=yes
15532 else
15533   $as_echo "$as_me: program exited with status $ac_status" >&5
15534 $as_echo "$as_me: failed program was:" >&5
15535 sed 's/^/| /' conftest.$ac_ext >&5
15536
15537 ( exit $ac_status )
15538 gl_cv_func_getopt_posix=no
15539 fi
15540 rm -rf conftest.dSYM
15541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15542 fi
15543
15544
15545
15546 fi
15547 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
15548 $as_echo "$gl_cv_func_getopt_posix" >&6; }
15549     case "$gl_cv_func_getopt_posix" in
15550       *no) gl_replace_getopt=yes ;;
15551     esac
15552   fi
15553
15554   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15555     { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
15556 $as_echo_n "checking for working GNU getopt function... " >&6; }
15557 if test "${gl_cv_func_getopt_gnu+set}" = set; then
15558   $as_echo_n "(cached) " >&6
15559 else
15560   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
15561        # optstring is necessary for programs like m4 that have POSIX-mandated
15562        # semantics for supporting options interspersed with files.
15563        # Also, since getopt_long is a GNU extension, we require optind=0.
15564        gl_had_POSIXLY_CORRECT=${POSIXLY_CORRECT:+yes}
15565        POSIXLY_CORRECT=1
15566        export POSIXLY_CORRECT
15567        if test "$cross_compiling" = yes; then
15568            case $host_os:$ac_cv_have_decl_optreset in
15569            *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
15570            *:yes)               gl_cv_func_getopt_gnu=no;;
15571            *)                   gl_cv_func_getopt_gnu=yes;;
15572          esac
15573
15574 else
15575   cat >conftest.$ac_ext <<_ACEOF
15576 /* confdefs.h.  */
15577 _ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h.  */
15581 #include <getopt.h>
15582                            #include <stddef.h>
15583                            #include <string.h>
15584
15585 int
15586 main ()
15587 {
15588
15589              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
15590                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
15591                 OSF/1 5.1, Solaris 10.  */
15592              {
15593                char *myargv[3];
15594                myargv[0] = "conftest";
15595                myargv[1] = "-+";
15596                myargv[2] = 0;
15597                opterr = 0;
15598                if (getopt (2, myargv, "+a") != '?')
15599                  return 1;
15600              }
15601              /* This code succeeds on glibc 2.8, mingw,
15602                 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
15603                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
15604              {
15605                char *argv[] = { "program", "-p", "foo", "bar", NULL };
15606
15607                optind = 1;
15608                if (getopt (4, argv, "p::") != 'p')
15609                  return 2;
15610                if (optarg != NULL)
15611                  return 3;
15612                if (getopt (4, argv, "p::") != -1)
15613                  return 4;
15614                if (optind != 2)
15615                  return 5;
15616              }
15617              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
15618              {
15619                char *argv[] = { "program", "foo", "-p", NULL };
15620                optind = 0;
15621                if (getopt (3, argv, "-p") != 1)
15622                  return 6;
15623                if (getopt (3, argv, "-p") != 'p')
15624                  return 7;
15625              }
15626              return 0;
15627
15628   ;
15629   return 0;
15630 }
15631 _ACEOF
15632 rm -f conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636   *) ac_try_echo=$ac_try;;
15637 esac
15638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15639 $as_echo "$ac_try_echo") >&5
15640   (eval "$ac_link") 2>&5
15641   ac_status=$?
15642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15644   { (case "(($ac_try" in
15645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15646   *) ac_try_echo=$ac_try;;
15647 esac
15648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15649 $as_echo "$ac_try_echo") >&5
15650   (eval "$ac_try") 2>&5
15651   ac_status=$?
15652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653   (exit $ac_status); }; }; then
15654   gl_cv_func_getopt_gnu=yes
15655 else
15656   $as_echo "$as_me: program exited with status $ac_status" >&5
15657 $as_echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15659
15660 ( exit $ac_status )
15661 gl_cv_func_getopt_gnu=no
15662 fi
15663 rm -rf conftest.dSYM
15664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15665 fi
15666
15667
15668        if test "$gl_had_POSIXLY_CORRECT" != yes; then
15669          $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; }
15670        fi
15671
15672 fi
15673 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
15674 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
15675     if test "$gl_cv_func_getopt_gnu" = "no"; then
15676       gl_replace_getopt=yes
15677     fi
15678   fi
15679
15680
15681
15682
15683
15684
15685   if test -n "$gl_replace_getopt"; then
15686
15687
15688
15689   GETOPT_H=getopt.h
15690
15691 cat >>confdefs.h <<\_ACEOF
15692 #define __GETOPT_PREFIX rpl_
15693 _ACEOF
15694
15695
15696
15697     GNULIB_UNISTD_H_GETOPT=1
15698
15699
15700
15701
15702
15703
15704
15705
15706   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726 fi
15727
15728
15729
15730
15731
15732
15733
15734
15735   GNULIB_GETTIMEOFDAY=0;
15736     HAVE_GETTIMEOFDAY=1;
15737   HAVE_STRUCT_TIMEVAL=1;
15738   HAVE_SYS_TIME_H=1;
15739   REPLACE_GETTIMEOFDAY=0;
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759
15760
15761      if test $gl_cv_have_include_next = yes; then
15762        gl_cv_next_sys_time_h='<'sys/time.h'>'
15763      else
15764        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
15765 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
15766 if test "${gl_cv_next_sys_time_h+set}" = set; then
15767   $as_echo_n "(cached) " >&6
15768 else
15769
15770           if test $ac_cv_header_sys_time_h = yes; then
15771             cat >conftest.$ac_ext <<_ACEOF
15772 /* confdefs.h.  */
15773 _ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h.  */
15777 #include <sys/time.h>
15778
15779 _ACEOF
15780                                                                                                 case "$host_os" in
15781               aix*) gl_absname_cpp="$ac_cpp -C" ;;
15782               *)    gl_absname_cpp="$ac_cpp" ;;
15783             esac
15784                                                 gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15785                sed -n '\#/sys/time.h#{
15786                  s#.*"\(.*/sys/time.h\)".*#\1#
15787                  s#^/[^/]#//&#
15788                  p
15789                  q
15790                }'`'"'
15791           else
15792             gl_cv_next_sys_time_h='<'sys/time.h'>'
15793           fi
15794
15795 fi
15796 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
15797 $as_echo "$gl_cv_next_sys_time_h" >&6; }
15798      fi
15799      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
15800
15801      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15802        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15803        gl_next_as_first_directive='<'sys/time.h'>'
15804      else
15805        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15806        gl_next_as_first_directive=$gl_cv_next_sys_time_h
15807      fi
15808      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
15809
15810
15811
15812
15813   if test $ac_cv_header_sys_time_h != yes; then
15814     HAVE_SYS_TIME_H=0
15815   fi
15816
15817   { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
15818 $as_echo_n "checking for struct timeval... " >&6; }
15819 if test "${gl_cv_sys_struct_timeval+set}" = set; then
15820   $as_echo_n "(cached) " >&6
15821 else
15822   cat >conftest.$ac_ext <<_ACEOF
15823 /* confdefs.h.  */
15824 _ACEOF
15825 cat confdefs.h >>conftest.$ac_ext
15826 cat >>conftest.$ac_ext <<_ACEOF
15827 /* end confdefs.h.  */
15828 #if HAVE_SYS_TIME_H
15829              #include <sys/time.h>
15830             #endif
15831             #include <time.h>
15832
15833 int
15834 main ()
15835 {
15836 static struct timeval x; x.tv_sec = x.tv_usec;
15837   ;
15838   return 0;
15839 }
15840 _ACEOF
15841 rm -f conftest.$ac_objext
15842 if { (ac_try="$ac_compile"
15843 case "(($ac_try" in
15844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15845   *) ac_try_echo=$ac_try;;
15846 esac
15847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15848 $as_echo "$ac_try_echo") >&5
15849   (eval "$ac_compile") 2>conftest.er1
15850   ac_status=$?
15851   grep -v '^ *+' conftest.er1 >conftest.err
15852   rm -f conftest.er1
15853   cat conftest.err >&5
15854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15855   (exit $ac_status); } && {
15856          test -z "$ac_c_werror_flag" ||
15857          test ! -s conftest.err
15858        } && test -s conftest.$ac_objext; then
15859   gl_cv_sys_struct_timeval=yes
15860 else
15861   $as_echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15863
15864         gl_cv_sys_struct_timeval=no
15865 fi
15866
15867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15868 fi
15869 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
15870 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
15871   if test $gl_cv_sys_struct_timeval != yes; then
15872     HAVE_STRUCT_TIMEVAL=0
15873   fi
15874
15875
15876
15877   for gl_func in gettimeofday; do
15878     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
15879     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
15880 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
15881 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
15882   $as_echo_n "(cached) " >&6
15883 else
15884   cat >conftest.$ac_ext <<_ACEOF
15885 /* confdefs.h.  */
15886 _ACEOF
15887 cat confdefs.h >>conftest.$ac_ext
15888 cat >>conftest.$ac_ext <<_ACEOF
15889 /* end confdefs.h.  */
15890
15891 #if HAVE_SYS_TIME_H
15892 # include <sys/time.h>
15893 #endif
15894 #include <time.h>
15895
15896 int
15897 main ()
15898 {
15899 #undef $gl_func
15900   (void) $gl_func;
15901   ;
15902   return 0;
15903 }
15904 _ACEOF
15905 rm -f conftest.$ac_objext
15906 if { (ac_try="$ac_compile"
15907 case "(($ac_try" in
15908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909   *) ac_try_echo=$ac_try;;
15910 esac
15911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15912 $as_echo "$ac_try_echo") >&5
15913   (eval "$ac_compile") 2>conftest.er1
15914   ac_status=$?
15915   grep -v '^ *+' conftest.er1 >conftest.err
15916   rm -f conftest.er1
15917   cat conftest.err >&5
15918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15919   (exit $ac_status); } && {
15920          test -z "$ac_c_werror_flag" ||
15921          test ! -s conftest.err
15922        } && test -s conftest.$ac_objext; then
15923   eval "$as_gl_Symbol=yes"
15924 else
15925   $as_echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.$ac_ext >&5
15927
15928         eval "$as_gl_Symbol=no"
15929 fi
15930
15931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15932 fi
15933 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
15934                  $as_echo "$as_val"'`
15935                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15936 $as_echo "$ac_res" >&6; }
15937      as_val=`eval 'as_val=${'$as_gl_Symbol'}
15938                  $as_echo "$as_val"'`
15939    if test "x$as_val" = x""yes; then
15940   cat >>confdefs.h <<_ACEOF
15941 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
15942 _ACEOF
15943
15944                      eval ac_cv_have_decl_$gl_func=yes
15945 fi
15946
15947       done
15948
15949
15950
15951
15952
15953
15954   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
15955 $as_echo_n "checking for long long int... " >&6; }
15956 if test "${ac_cv_type_long_long_int+set}" = set; then
15957   $as_echo_n "(cached) " >&6
15958 else
15959   cat >conftest.$ac_ext <<_ACEOF
15960
15961   /* confdefs.h.  */
15962 _ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h.  */
15966 /* For now, do not test the preprocessor; as of 2007 there are too many
15967          implementations with broken preprocessors.  Perhaps this can
15968          be revisited in 2012.  In the meantime, code should not expect
15969          #if to work with literals wider than 32 bits.  */
15970       /* Test literals.  */
15971       long long int ll = 9223372036854775807ll;
15972       long long int nll = -9223372036854775807LL;
15973       unsigned long long int ull = 18446744073709551615ULL;
15974       /* Test constant expressions.   */
15975       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
15976                      ? 1 : -1)];
15977       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
15978                      ? 1 : -1)];
15979       int i = 63;
15980 int
15981 main ()
15982 {
15983 /* Test availability of runtime routines for shift and division.  */
15984       long long int llmax = 9223372036854775807ll;
15985       unsigned long long int ullmax = 18446744073709551615ull;
15986       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
15987               | (llmax / ll) | (llmax % ll)
15988               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
15989               | (ullmax / ull) | (ullmax % ull));
15990   ;
15991   return 0;
15992 }
15993
15994 _ACEOF
15995 rm -f conftest.$ac_objext conftest$ac_exeext
15996 if { (ac_try="$ac_link"
15997 case "(($ac_try" in
15998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15999   *) ac_try_echo=$ac_try;;
16000 esac
16001 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16002 $as_echo "$ac_try_echo") >&5
16003   (eval "$ac_link") 2>conftest.er1
16004   ac_status=$?
16005   grep -v '^ *+' conftest.er1 >conftest.err
16006   rm -f conftest.er1
16007   cat conftest.err >&5
16008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16009   (exit $ac_status); } && {
16010          test -z "$ac_c_werror_flag" ||
16011          test ! -s conftest.err
16012        } && test -s conftest$ac_exeext && {
16013          test "$cross_compiling" = yes ||
16014          $as_test_x conftest$ac_exeext
16015        }; then
16016                           if test "$cross_compiling" = yes; then
16017   ac_cv_type_long_long_int=yes
16018 else
16019   cat >conftest.$ac_ext <<_ACEOF
16020 /* confdefs.h.  */
16021 _ACEOF
16022 cat confdefs.h >>conftest.$ac_ext
16023 cat >>conftest.$ac_ext <<_ACEOF
16024 /* end confdefs.h.  */
16025 #include <limits.h>
16026                #ifndef LLONG_MAX
16027                # define HALF \
16028                         (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16029                # define LLONG_MAX (HALF - 1 + HALF)
16030                #endif
16031 int
16032 main ()
16033 {
16034 long long int n = 1;
16035                int i;
16036                for (i = 0; ; i++)
16037                  {
16038                    long long int m = n << i;
16039                    if (m >> i != n)
16040                      return 1;
16041                    if (LLONG_MAX / 2 < m)
16042                      break;
16043                  }
16044                return 0;
16045   ;
16046   return 0;
16047 }
16048 _ACEOF
16049 rm -f conftest$ac_exeext
16050 if { (ac_try="$ac_link"
16051 case "(($ac_try" in
16052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16053   *) ac_try_echo=$ac_try;;
16054 esac
16055 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16056 $as_echo "$ac_try_echo") >&5
16057   (eval "$ac_link") 2>&5
16058   ac_status=$?
16059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16061   { (case "(($ac_try" in
16062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16063   *) ac_try_echo=$ac_try;;
16064 esac
16065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16066 $as_echo "$ac_try_echo") >&5
16067   (eval "$ac_try") 2>&5
16068   ac_status=$?
16069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16070   (exit $ac_status); }; }; then
16071   ac_cv_type_long_long_int=yes
16072 else
16073   $as_echo "$as_me: program exited with status $ac_status" >&5
16074 $as_echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16076
16077 ( exit $ac_status )
16078 ac_cv_type_long_long_int=no
16079 fi
16080 rm -rf conftest.dSYM
16081 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16082 fi
16083
16084
16085 else
16086   $as_echo "$as_me: failed program was:" >&5
16087 sed 's/^/| /' conftest.$ac_ext >&5
16088
16089         ac_cv_type_long_long_int=no
16090 fi
16091
16092 rm -rf conftest.dSYM
16093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16094       conftest$ac_exeext conftest.$ac_ext
16095 fi
16096 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16097 $as_echo "$ac_cv_type_long_long_int" >&6; }
16098   if test $ac_cv_type_long_long_int = yes; then
16099
16100 cat >>confdefs.h <<\_ACEOF
16101 #define HAVE_LONG_LONG_INT 1
16102 _ACEOF
16103
16104   fi
16105
16106
16107   { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
16108 $as_echo_n "checking for unsigned long long int... " >&6; }
16109 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
16110   $as_echo_n "(cached) " >&6
16111 else
16112   cat >conftest.$ac_ext <<_ACEOF
16113
16114   /* confdefs.h.  */
16115 _ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h.  */
16119 /* For now, do not test the preprocessor; as of 2007 there are too many
16120          implementations with broken preprocessors.  Perhaps this can
16121          be revisited in 2012.  In the meantime, code should not expect
16122          #if to work with literals wider than 32 bits.  */
16123       /* Test literals.  */
16124       long long int ll = 9223372036854775807ll;
16125       long long int nll = -9223372036854775807LL;
16126       unsigned long long int ull = 18446744073709551615ULL;
16127       /* Test constant expressions.   */
16128       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16129                      ? 1 : -1)];
16130       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16131                      ? 1 : -1)];
16132       int i = 63;
16133 int
16134 main ()
16135 {
16136 /* Test availability of runtime routines for shift and division.  */
16137       long long int llmax = 9223372036854775807ll;
16138       unsigned long long int ullmax = 18446744073709551615ull;
16139       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16140               | (llmax / ll) | (llmax % ll)
16141               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16142               | (ullmax / ull) | (ullmax % ull));
16143   ;
16144   return 0;
16145 }
16146
16147 _ACEOF
16148 rm -f conftest.$ac_objext conftest$ac_exeext
16149 if { (ac_try="$ac_link"
16150 case "(($ac_try" in
16151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152   *) ac_try_echo=$ac_try;;
16153 esac
16154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16155 $as_echo "$ac_try_echo") >&5
16156   (eval "$ac_link") 2>conftest.er1
16157   ac_status=$?
16158   grep -v '^ *+' conftest.er1 >conftest.err
16159   rm -f conftest.er1
16160   cat conftest.err >&5
16161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16162   (exit $ac_status); } && {
16163          test -z "$ac_c_werror_flag" ||
16164          test ! -s conftest.err
16165        } && test -s conftest$ac_exeext && {
16166          test "$cross_compiling" = yes ||
16167          $as_test_x conftest$ac_exeext
16168        }; then
16169   ac_cv_type_unsigned_long_long_int=yes
16170 else
16171   $as_echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16173
16174         ac_cv_type_unsigned_long_long_int=no
16175 fi
16176
16177 rm -rf conftest.dSYM
16178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16179       conftest$ac_exeext conftest.$ac_ext
16180 fi
16181 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
16182 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16183   if test $ac_cv_type_unsigned_long_long_int = yes; then
16184
16185 cat >>confdefs.h <<\_ACEOF
16186 #define HAVE_UNSIGNED_LONG_LONG_INT 1
16187 _ACEOF
16188
16189   fi
16190
16191
16192
16193
16194
16195
16196     gl_cv_c_multiarch=no
16197   cat >conftest.$ac_ext <<_ACEOF
16198 /* confdefs.h.  */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h.  */
16203 #ifndef __APPLE_CC__
16204          not a universal capable compiler
16205         #endif
16206         typedef int dummy;
16207
16208 _ACEOF
16209 rm -f conftest.$ac_objext
16210 if { (ac_try="$ac_compile"
16211 case "(($ac_try" in
16212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213   *) ac_try_echo=$ac_try;;
16214 esac
16215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16216 $as_echo "$ac_try_echo") >&5
16217   (eval "$ac_compile") 2>conftest.er1
16218   ac_status=$?
16219   grep -v '^ *+' conftest.er1 >conftest.err
16220   rm -f conftest.er1
16221   cat conftest.err >&5
16222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16223   (exit $ac_status); } && {
16224          test -z "$ac_c_werror_flag" ||
16225          test ! -s conftest.err
16226        } && test -s conftest.$ac_objext; then
16227
16228                arch=
16229      prev=
16230      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16231        if test -n "$prev"; then
16232          case $word in
16233            i?86 | x86_64 | ppc | ppc64)
16234              if test -z "$arch" || test "$arch" = "$word"; then
16235                arch="$word"
16236              else
16237                gl_cv_c_multiarch=yes
16238              fi
16239              ;;
16240          esac
16241          prev=
16242        else
16243          if test "x$word" = "x-arch"; then
16244            prev=arch
16245          fi
16246        fi
16247      done
16248
16249 else
16250   $as_echo "$as_me: failed program was:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16252
16253
16254 fi
16255
16256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16257   if test $gl_cv_c_multiarch = yes; then
16258
16259 cat >>confdefs.h <<\_ACEOF
16260 #define AA_APPLE_UNIVERSAL_BUILD 1
16261 _ACEOF
16262
16263     APPLE_UNIVERSAL_BUILD=1
16264   else
16265     APPLE_UNIVERSAL_BUILD=0
16266   fi
16267
16268
16269
16270
16271
16272
16273   if test $ac_cv_type_long_long_int = yes; then
16274     HAVE_LONG_LONG_INT=1
16275   else
16276     HAVE_LONG_LONG_INT=0
16277   fi
16278
16279
16280   if test $ac_cv_type_unsigned_long_long_int = yes; then
16281     HAVE_UNSIGNED_LONG_LONG_INT=1
16282   else
16283     HAVE_UNSIGNED_LONG_LONG_INT=0
16284   fi
16285
16286
16287       if test $ac_cv_header_inttypes_h = yes; then
16288     HAVE_INTTYPES_H=1
16289   else
16290     HAVE_INTTYPES_H=0
16291   fi
16292
16293
16294       if test $ac_cv_header_sys_types_h = yes; then
16295     HAVE_SYS_TYPES_H=1
16296   else
16297     HAVE_SYS_TYPES_H=0
16298   fi
16299
16300
16301
16302
16303
16304
16305
16306
16307
16308
16309
16310
16311
16312      if test $gl_cv_have_include_next = yes; then
16313        gl_cv_next_stdint_h='<'stdint.h'>'
16314      else
16315        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
16316 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16317 if test "${gl_cv_next_stdint_h+set}" = set; then
16318   $as_echo_n "(cached) " >&6
16319 else
16320
16321           if test $ac_cv_header_stdint_h = yes; then
16322             cat >conftest.$ac_ext <<_ACEOF
16323 /* confdefs.h.  */
16324 _ACEOF
16325 cat confdefs.h >>conftest.$ac_ext
16326 cat >>conftest.$ac_ext <<_ACEOF
16327 /* end confdefs.h.  */
16328 #include <stdint.h>
16329
16330 _ACEOF
16331                                                                                                 case "$host_os" in
16332               aix*) gl_absname_cpp="$ac_cpp -C" ;;
16333               *)    gl_absname_cpp="$ac_cpp" ;;
16334             esac
16335                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16336                sed -n '\#/stdint.h#{
16337                  s#.*"\(.*/stdint.h\)".*#\1#
16338                  s#^/[^/]#//&#
16339                  p
16340                  q
16341                }'`'"'
16342           else
16343             gl_cv_next_stdint_h='<'stdint.h'>'
16344           fi
16345
16346 fi
16347 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
16348 $as_echo "$gl_cv_next_stdint_h" >&6; }
16349      fi
16350      NEXT_STDINT_H=$gl_cv_next_stdint_h
16351
16352      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16353        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16354        gl_next_as_first_directive='<'stdint.h'>'
16355      else
16356        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16357        gl_next_as_first_directive=$gl_cv_next_stdint_h
16358      fi
16359      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16360
16361
16362
16363   if test $ac_cv_header_stdint_h = yes; then
16364     HAVE_STDINT_H=1
16365   else
16366     HAVE_STDINT_H=0
16367   fi
16368
16369
16370     if test $ac_cv_header_stdint_h = yes; then
16371     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
16372 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16373 if test "${gl_cv_header_working_stdint_h+set}" = set; then
16374   $as_echo_n "(cached) " >&6
16375 else
16376   gl_cv_header_working_stdint_h=no
16377        cat >conftest.$ac_ext <<_ACEOF
16378
16379          /* confdefs.h.  */
16380 _ACEOF
16381 cat confdefs.h >>conftest.$ac_ext
16382 cat >>conftest.$ac_ext <<_ACEOF
16383 /* end confdefs.h.  */
16384
16385 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16386 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16387 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16388 #include <stdint.h>
16389 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
16390 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16391 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16392 #endif
16393
16394
16395   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16396      included before <wchar.h>.  */
16397   #include <stddef.h>
16398   #include <signal.h>
16399   #if HAVE_WCHAR_H
16400   # include <stdio.h>
16401   # include <time.h>
16402   # include <wchar.h>
16403   #endif
16404
16405
16406 #ifdef INT8_MAX
16407 int8_t a1 = INT8_MAX;
16408 int8_t a1min = INT8_MIN;
16409 #endif
16410 #ifdef INT16_MAX
16411 int16_t a2 = INT16_MAX;
16412 int16_t a2min = INT16_MIN;
16413 #endif
16414 #ifdef INT32_MAX
16415 int32_t a3 = INT32_MAX;
16416 int32_t a3min = INT32_MIN;
16417 #endif
16418 #ifdef INT64_MAX
16419 int64_t a4 = INT64_MAX;
16420 int64_t a4min = INT64_MIN;
16421 #endif
16422 #ifdef UINT8_MAX
16423 uint8_t b1 = UINT8_MAX;
16424 #else
16425 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16426 #endif
16427 #ifdef UINT16_MAX
16428 uint16_t b2 = UINT16_MAX;
16429 #endif
16430 #ifdef UINT32_MAX
16431 uint32_t b3 = UINT32_MAX;
16432 #endif
16433 #ifdef UINT64_MAX
16434 uint64_t b4 = UINT64_MAX;
16435 #endif
16436 int_least8_t c1 = INT8_C (0x7f);
16437 int_least8_t c1max = INT_LEAST8_MAX;
16438 int_least8_t c1min = INT_LEAST8_MIN;
16439 int_least16_t c2 = INT16_C (0x7fff);
16440 int_least16_t c2max = INT_LEAST16_MAX;
16441 int_least16_t c2min = INT_LEAST16_MIN;
16442 int_least32_t c3 = INT32_C (0x7fffffff);
16443 int_least32_t c3max = INT_LEAST32_MAX;
16444 int_least32_t c3min = INT_LEAST32_MIN;
16445 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16446 int_least64_t c4max = INT_LEAST64_MAX;
16447 int_least64_t c4min = INT_LEAST64_MIN;
16448 uint_least8_t d1 = UINT8_C (0xff);
16449 uint_least8_t d1max = UINT_LEAST8_MAX;
16450 uint_least16_t d2 = UINT16_C (0xffff);
16451 uint_least16_t d2max = UINT_LEAST16_MAX;
16452 uint_least32_t d3 = UINT32_C (0xffffffff);
16453 uint_least32_t d3max = UINT_LEAST32_MAX;
16454 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16455 uint_least64_t d4max = UINT_LEAST64_MAX;
16456 int_fast8_t e1 = INT_FAST8_MAX;
16457 int_fast8_t e1min = INT_FAST8_MIN;
16458 int_fast16_t e2 = INT_FAST16_MAX;
16459 int_fast16_t e2min = INT_FAST16_MIN;
16460 int_fast32_t e3 = INT_FAST32_MAX;
16461 int_fast32_t e3min = INT_FAST32_MIN;
16462 int_fast64_t e4 = INT_FAST64_MAX;
16463 int_fast64_t e4min = INT_FAST64_MIN;
16464 uint_fast8_t f1 = UINT_FAST8_MAX;
16465 uint_fast16_t f2 = UINT_FAST16_MAX;
16466 uint_fast32_t f3 = UINT_FAST32_MAX;
16467 uint_fast64_t f4 = UINT_FAST64_MAX;
16468 #ifdef INTPTR_MAX
16469 intptr_t g = INTPTR_MAX;
16470 intptr_t gmin = INTPTR_MIN;
16471 #endif
16472 #ifdef UINTPTR_MAX
16473 uintptr_t h = UINTPTR_MAX;
16474 #endif
16475 intmax_t i = INTMAX_MAX;
16476 uintmax_t j = UINTMAX_MAX;
16477
16478 #include <limits.h> /* for CHAR_BIT */
16479 #define TYPE_MINIMUM(t) \
16480   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
16481 #define TYPE_MAXIMUM(t) \
16482   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
16483 struct s {
16484   int check_PTRDIFF:
16485       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16486       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16487       ? 1 : -1;
16488   /* Detect bug in FreeBSD 6.0 / ia64.  */
16489   int check_SIG_ATOMIC:
16490       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16491       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16492       ? 1 : -1;
16493   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16494   int check_WCHAR:
16495       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16496       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16497       ? 1 : -1;
16498   /* Detect bug in mingw.  */
16499   int check_WINT:
16500       WINT_MIN == TYPE_MINIMUM (wint_t)
16501       && WINT_MAX == TYPE_MAXIMUM (wint_t)
16502       ? 1 : -1;
16503
16504   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
16505   int check_UINT8_C:
16506         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16507   int check_UINT16_C:
16508         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16509
16510   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
16511 #ifdef UINT8_MAX
16512   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16513 #endif
16514 #ifdef UINT16_MAX
16515   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16516 #endif
16517 #ifdef UINT32_MAX
16518   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16519 #endif
16520 #ifdef UINT64_MAX
16521   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16522 #endif
16523   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16524   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16525   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16526   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16527   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16528   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16529   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16530   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16531   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16532   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16533   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16534 };
16535
16536 int
16537 main ()
16538 {
16539
16540   ;
16541   return 0;
16542 }
16543 _ACEOF
16544 rm -f conftest.$ac_objext
16545 if { (ac_try="$ac_compile"
16546 case "(($ac_try" in
16547   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548   *) ac_try_echo=$ac_try;;
16549 esac
16550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16551 $as_echo "$ac_try_echo") >&5
16552   (eval "$ac_compile") 2>conftest.er1
16553   ac_status=$?
16554   grep -v '^ *+' conftest.er1 >conftest.err
16555   rm -f conftest.er1
16556   cat conftest.err >&5
16557   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16558   (exit $ac_status); } && {
16559          test -z "$ac_c_werror_flag" ||
16560          test ! -s conftest.err
16561        } && test -s conftest.$ac_objext; then
16562                                                     if test "$cross_compiling" = yes; then
16563                  gl_cv_header_working_stdint_h=yes
16564
16565 else
16566   cat >conftest.$ac_ext <<_ACEOF
16567
16568             /* confdefs.h.  */
16569 _ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h.  */
16573
16574 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16575 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16576 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16577 #include <stdint.h>
16578
16579
16580   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16581      included before <wchar.h>.  */
16582   #include <stddef.h>
16583   #include <signal.h>
16584   #if HAVE_WCHAR_H
16585   # include <stdio.h>
16586   # include <time.h>
16587   # include <wchar.h>
16588   #endif
16589
16590
16591 #include <stdio.h>
16592 #include <string.h>
16593 #define MVAL(macro) MVAL1(macro)
16594 #define MVAL1(expression) #expression
16595 static const char *macro_values[] =
16596   {
16597 #ifdef INT8_MAX
16598     MVAL (INT8_MAX),
16599 #endif
16600 #ifdef INT16_MAX
16601     MVAL (INT16_MAX),
16602 #endif
16603 #ifdef INT32_MAX
16604     MVAL (INT32_MAX),
16605 #endif
16606 #ifdef INT64_MAX
16607     MVAL (INT64_MAX),
16608 #endif
16609 #ifdef UINT8_MAX
16610     MVAL (UINT8_MAX),
16611 #endif
16612 #ifdef UINT16_MAX
16613     MVAL (UINT16_MAX),
16614 #endif
16615 #ifdef UINT32_MAX
16616     MVAL (UINT32_MAX),
16617 #endif
16618 #ifdef UINT64_MAX
16619     MVAL (UINT64_MAX),
16620 #endif
16621     NULL
16622   };
16623
16624 int
16625 main ()
16626 {
16627
16628   const char **mv;
16629   for (mv = macro_values; *mv != NULL; mv++)
16630     {
16631       const char *value = *mv;
16632       /* Test whether it looks like a cast expression.  */
16633       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
16634           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
16635           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
16636           || strncmp (value, "((int)"/*)*/, 6) == 0
16637           || strncmp (value, "((signed short)"/*)*/, 15) == 0
16638           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
16639         return 1;
16640     }
16641   return 0;
16642
16643   ;
16644   return 0;
16645 }
16646 _ACEOF
16647 rm -f conftest$ac_exeext
16648 if { (ac_try="$ac_link"
16649 case "(($ac_try" in
16650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16651   *) ac_try_echo=$ac_try;;
16652 esac
16653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16654 $as_echo "$ac_try_echo") >&5
16655   (eval "$ac_link") 2>&5
16656   ac_status=$?
16657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16659   { (case "(($ac_try" in
16660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661   *) ac_try_echo=$ac_try;;
16662 esac
16663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16664 $as_echo "$ac_try_echo") >&5
16665   (eval "$ac_try") 2>&5
16666   ac_status=$?
16667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668   (exit $ac_status); }; }; then
16669   gl_cv_header_working_stdint_h=yes
16670 else
16671   $as_echo "$as_me: program exited with status $ac_status" >&5
16672 $as_echo "$as_me: failed program was:" >&5
16673 sed 's/^/| /' conftest.$ac_ext >&5
16674
16675 fi
16676 rm -rf conftest.dSYM
16677 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16678 fi
16679
16680
16681
16682 else
16683   $as_echo "$as_me: failed program was:" >&5
16684 sed 's/^/| /' conftest.$ac_ext >&5
16685
16686
16687 fi
16688
16689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16690
16691 fi
16692 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
16693 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
16694   fi
16695   if test "$gl_cv_header_working_stdint_h" = yes; then
16696     STDINT_H=
16697   else
16698
16699
16700 for ac_header in sys/inttypes.h sys/bitypes.h
16701 do
16702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16704   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16705 $as_echo_n "checking for $ac_header... " >&6; }
16706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16707   $as_echo_n "(cached) " >&6
16708 fi
16709 ac_res=`eval 'as_val=${'$as_ac_Header'}
16710                  $as_echo "$as_val"'`
16711                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16712 $as_echo "$ac_res" >&6; }
16713 else
16714   # Is the header compilable?
16715 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
16716 $as_echo_n "checking $ac_header usability... " >&6; }
16717 cat >conftest.$ac_ext <<_ACEOF
16718 /* confdefs.h.  */
16719 _ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.h.  */
16723 $ac_includes_default
16724 #include <$ac_header>
16725 _ACEOF
16726 rm -f conftest.$ac_objext
16727 if { (ac_try="$ac_compile"
16728 case "(($ac_try" in
16729   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16730   *) ac_try_echo=$ac_try;;
16731 esac
16732 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16733 $as_echo "$ac_try_echo") >&5
16734   (eval "$ac_compile") 2>conftest.er1
16735   ac_status=$?
16736   grep -v '^ *+' conftest.er1 >conftest.err
16737   rm -f conftest.er1
16738   cat conftest.err >&5
16739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16740   (exit $ac_status); } && {
16741          test -z "$ac_c_werror_flag" ||
16742          test ! -s conftest.err
16743        } && test -s conftest.$ac_objext; then
16744   ac_header_compiler=yes
16745 else
16746   $as_echo "$as_me: failed program was:" >&5
16747 sed 's/^/| /' conftest.$ac_ext >&5
16748
16749         ac_header_compiler=no
16750 fi
16751
16752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16753 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16754 $as_echo "$ac_header_compiler" >&6; }
16755
16756 # Is the header present?
16757 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
16758 $as_echo_n "checking $ac_header presence... " >&6; }
16759 cat >conftest.$ac_ext <<_ACEOF
16760 /* confdefs.h.  */
16761 _ACEOF
16762 cat confdefs.h >>conftest.$ac_ext
16763 cat >>conftest.$ac_ext <<_ACEOF
16764 /* end confdefs.h.  */
16765 #include <$ac_header>
16766 _ACEOF
16767 if { (ac_try="$ac_cpp conftest.$ac_ext"
16768 case "(($ac_try" in
16769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16770   *) ac_try_echo=$ac_try;;
16771 esac
16772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16773 $as_echo "$ac_try_echo") >&5
16774   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16775   ac_status=$?
16776   grep -v '^ *+' conftest.er1 >conftest.err
16777   rm -f conftest.er1
16778   cat conftest.err >&5
16779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16780   (exit $ac_status); } >/dev/null && {
16781          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16782          test ! -s conftest.err
16783        }; then
16784   ac_header_preproc=yes
16785 else
16786   $as_echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16788
16789   ac_header_preproc=no
16790 fi
16791
16792 rm -f conftest.err conftest.$ac_ext
16793 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16794 $as_echo "$ac_header_preproc" >&6; }
16795
16796 # So?  What about this header?
16797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16798   yes:no: )
16799     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16800 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16801     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16802 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16803     ac_header_preproc=yes
16804     ;;
16805   no:yes:* )
16806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16807 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16808     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16809 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16811 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16812     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16813 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16814     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16815 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16817 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16818     ( cat <<\_ASBOX
16819 ## ------------------------------ ##
16820 ## Report this to bug-tar@gnu.org ##
16821 ## ------------------------------ ##
16822 _ASBOX
16823      ) | sed "s/^/$as_me: WARNING:     /" >&2
16824     ;;
16825 esac
16826 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
16827 $as_echo_n "checking for $ac_header... " >&6; }
16828 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16829   $as_echo_n "(cached) " >&6
16830 else
16831   eval "$as_ac_Header=\$ac_header_preproc"
16832 fi
16833 ac_res=`eval 'as_val=${'$as_ac_Header'}
16834                  $as_echo "$as_val"'`
16835                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16836 $as_echo "$ac_res" >&6; }
16837
16838 fi
16839 as_val=`eval 'as_val=${'$as_ac_Header'}
16840                  $as_echo "$as_val"'`
16841    if test "x$as_val" = x""yes; then
16842   cat >>confdefs.h <<_ACEOF
16843 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16844 _ACEOF
16845
16846 fi
16847
16848 done
16849
16850     if test $ac_cv_header_sys_inttypes_h = yes; then
16851       HAVE_SYS_INTTYPES_H=1
16852     else
16853       HAVE_SYS_INTTYPES_H=0
16854     fi
16855
16856     if test $ac_cv_header_sys_bitypes_h = yes; then
16857       HAVE_SYS_BITYPES_H=1
16858     else
16859       HAVE_SYS_BITYPES_H=0
16860     fi
16861
16862
16863
16864
16865
16866
16867
16868
16869
16870
16871
16872   if test $APPLE_UNIVERSAL_BUILD = 0; then
16873
16874
16875
16876
16877   for gltype in ptrdiff_t size_t ; do
16878     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
16879 $as_echo_n "checking for bit size of $gltype... " >&6; }
16880 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
16881   $as_echo_n "(cached) " >&6
16882 else
16883   if test "$cross_compiling" = yes; then
16884   # Depending upon the size, compute the lo and hi bounds.
16885 cat >conftest.$ac_ext <<_ACEOF
16886 /* confdefs.h.  */
16887 _ACEOF
16888 cat confdefs.h >>conftest.$ac_ext
16889 cat >>conftest.$ac_ext <<_ACEOF
16890 /* end confdefs.h.  */
16891
16892   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16893      included before <wchar.h>.  */
16894   #include <stddef.h>
16895   #include <signal.h>
16896   #if HAVE_WCHAR_H
16897   # include <stdio.h>
16898   # include <time.h>
16899   # include <wchar.h>
16900   #endif
16901
16902 #include <limits.h>
16903 int
16904 main ()
16905 {
16906 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
16907 test_array [0] = 0
16908
16909   ;
16910   return 0;
16911 }
16912 _ACEOF
16913 rm -f conftest.$ac_objext
16914 if { (ac_try="$ac_compile"
16915 case "(($ac_try" in
16916   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16917   *) ac_try_echo=$ac_try;;
16918 esac
16919 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16920 $as_echo "$ac_try_echo") >&5
16921   (eval "$ac_compile") 2>conftest.er1
16922   ac_status=$?
16923   grep -v '^ *+' conftest.er1 >conftest.err
16924   rm -f conftest.er1
16925   cat conftest.err >&5
16926   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927   (exit $ac_status); } && {
16928          test -z "$ac_c_werror_flag" ||
16929          test ! -s conftest.err
16930        } && test -s conftest.$ac_objext; then
16931   ac_lo=0 ac_mid=0
16932   while :; do
16933     cat >conftest.$ac_ext <<_ACEOF
16934 /* confdefs.h.  */
16935 _ACEOF
16936 cat confdefs.h >>conftest.$ac_ext
16937 cat >>conftest.$ac_ext <<_ACEOF
16938 /* end confdefs.h.  */
16939
16940   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16941      included before <wchar.h>.  */
16942   #include <stddef.h>
16943   #include <signal.h>
16944   #if HAVE_WCHAR_H
16945   # include <stdio.h>
16946   # include <time.h>
16947   # include <wchar.h>
16948   #endif
16949
16950 #include <limits.h>
16951 int
16952 main ()
16953 {
16954 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
16955 test_array [0] = 0
16956
16957   ;
16958   return 0;
16959 }
16960 _ACEOF
16961 rm -f conftest.$ac_objext
16962 if { (ac_try="$ac_compile"
16963 case "(($ac_try" in
16964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16965   *) ac_try_echo=$ac_try;;
16966 esac
16967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16968 $as_echo "$ac_try_echo") >&5
16969   (eval "$ac_compile") 2>conftest.er1
16970   ac_status=$?
16971   grep -v '^ *+' conftest.er1 >conftest.err
16972   rm -f conftest.er1
16973   cat conftest.err >&5
16974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16975   (exit $ac_status); } && {
16976          test -z "$ac_c_werror_flag" ||
16977          test ! -s conftest.err
16978        } && test -s conftest.$ac_objext; then
16979   ac_hi=$ac_mid; break
16980 else
16981   $as_echo "$as_me: failed program was:" >&5
16982 sed 's/^/| /' conftest.$ac_ext >&5
16983
16984         ac_lo=`expr $ac_mid + 1`
16985                         if test $ac_lo -le $ac_mid; then
16986                           ac_lo= ac_hi=
16987                           break
16988                         fi
16989                         ac_mid=`expr 2 '*' $ac_mid + 1`
16990 fi
16991
16992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16993   done
16994 else
16995   $as_echo "$as_me: failed program was:" >&5
16996 sed 's/^/| /' conftest.$ac_ext >&5
16997
16998         cat >conftest.$ac_ext <<_ACEOF
16999 /* confdefs.h.  */
17000 _ACEOF
17001 cat confdefs.h >>conftest.$ac_ext
17002 cat >>conftest.$ac_ext <<_ACEOF
17003 /* end confdefs.h.  */
17004
17005   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17006      included before <wchar.h>.  */
17007   #include <stddef.h>
17008   #include <signal.h>
17009   #if HAVE_WCHAR_H
17010   # include <stdio.h>
17011   # include <time.h>
17012   # include <wchar.h>
17013   #endif
17014
17015 #include <limits.h>
17016 int
17017 main ()
17018 {
17019 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17020 test_array [0] = 0
17021
17022   ;
17023   return 0;
17024 }
17025 _ACEOF
17026 rm -f conftest.$ac_objext
17027 if { (ac_try="$ac_compile"
17028 case "(($ac_try" in
17029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17030   *) ac_try_echo=$ac_try;;
17031 esac
17032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17033 $as_echo "$ac_try_echo") >&5
17034   (eval "$ac_compile") 2>conftest.er1
17035   ac_status=$?
17036   grep -v '^ *+' conftest.er1 >conftest.err
17037   rm -f conftest.er1
17038   cat conftest.err >&5
17039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040   (exit $ac_status); } && {
17041          test -z "$ac_c_werror_flag" ||
17042          test ! -s conftest.err
17043        } && test -s conftest.$ac_objext; then
17044   ac_hi=-1 ac_mid=-1
17045   while :; do
17046     cat >conftest.$ac_ext <<_ACEOF
17047 /* confdefs.h.  */
17048 _ACEOF
17049 cat confdefs.h >>conftest.$ac_ext
17050 cat >>conftest.$ac_ext <<_ACEOF
17051 /* end confdefs.h.  */
17052
17053   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17054      included before <wchar.h>.  */
17055   #include <stddef.h>
17056   #include <signal.h>
17057   #if HAVE_WCHAR_H
17058   # include <stdio.h>
17059   # include <time.h>
17060   # include <wchar.h>
17061   #endif
17062
17063 #include <limits.h>
17064 int
17065 main ()
17066 {
17067 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17068 test_array [0] = 0
17069
17070   ;
17071   return 0;
17072 }
17073 _ACEOF
17074 rm -f conftest.$ac_objext
17075 if { (ac_try="$ac_compile"
17076 case "(($ac_try" in
17077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17078   *) ac_try_echo=$ac_try;;
17079 esac
17080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17081 $as_echo "$ac_try_echo") >&5
17082   (eval "$ac_compile") 2>conftest.er1
17083   ac_status=$?
17084   grep -v '^ *+' conftest.er1 >conftest.err
17085   rm -f conftest.er1
17086   cat conftest.err >&5
17087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088   (exit $ac_status); } && {
17089          test -z "$ac_c_werror_flag" ||
17090          test ! -s conftest.err
17091        } && test -s conftest.$ac_objext; then
17092   ac_lo=$ac_mid; break
17093 else
17094   $as_echo "$as_me: failed program was:" >&5
17095 sed 's/^/| /' conftest.$ac_ext >&5
17096
17097         ac_hi=`expr '(' $ac_mid ')' - 1`
17098                         if test $ac_mid -le $ac_hi; then
17099                           ac_lo= ac_hi=
17100                           break
17101                         fi
17102                         ac_mid=`expr 2 '*' $ac_mid`
17103 fi
17104
17105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17106   done
17107 else
17108   $as_echo "$as_me: failed program was:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17110
17111         ac_lo= ac_hi=
17112 fi
17113
17114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17115 fi
17116
17117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17118 # Binary search between lo and hi bounds.
17119 while test "x$ac_lo" != "x$ac_hi"; do
17120   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17121   cat >conftest.$ac_ext <<_ACEOF
17122 /* confdefs.h.  */
17123 _ACEOF
17124 cat confdefs.h >>conftest.$ac_ext
17125 cat >>conftest.$ac_ext <<_ACEOF
17126 /* end confdefs.h.  */
17127
17128   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17129      included before <wchar.h>.  */
17130   #include <stddef.h>
17131   #include <signal.h>
17132   #if HAVE_WCHAR_H
17133   # include <stdio.h>
17134   # include <time.h>
17135   # include <wchar.h>
17136   #endif
17137
17138 #include <limits.h>
17139 int
17140 main ()
17141 {
17142 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17143 test_array [0] = 0
17144
17145   ;
17146   return 0;
17147 }
17148 _ACEOF
17149 rm -f conftest.$ac_objext
17150 if { (ac_try="$ac_compile"
17151 case "(($ac_try" in
17152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153   *) ac_try_echo=$ac_try;;
17154 esac
17155 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17156 $as_echo "$ac_try_echo") >&5
17157   (eval "$ac_compile") 2>conftest.er1
17158   ac_status=$?
17159   grep -v '^ *+' conftest.er1 >conftest.err
17160   rm -f conftest.er1
17161   cat conftest.err >&5
17162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163   (exit $ac_status); } && {
17164          test -z "$ac_c_werror_flag" ||
17165          test ! -s conftest.err
17166        } && test -s conftest.$ac_objext; then
17167   ac_hi=$ac_mid
17168 else
17169   $as_echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17171
17172         ac_lo=`expr '(' $ac_mid ')' + 1`
17173 fi
17174
17175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17176 done
17177 case $ac_lo in
17178 ?*) result=$ac_lo;;
17179 '') result=unknown ;;
17180 esac
17181 else
17182   cat >conftest.$ac_ext <<_ACEOF
17183 /* confdefs.h.  */
17184 _ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h.  */
17188
17189   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17190      included before <wchar.h>.  */
17191   #include <stddef.h>
17192   #include <signal.h>
17193   #if HAVE_WCHAR_H
17194   # include <stdio.h>
17195   # include <time.h>
17196   # include <wchar.h>
17197   #endif
17198
17199 #include <limits.h>
17200 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17201 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
17202 #include <stdio.h>
17203 #include <stdlib.h>
17204 int
17205 main ()
17206 {
17207
17208   FILE *f = fopen ("conftest.val", "w");
17209   if (! f)
17210     return 1;
17211   if ((sizeof ($gltype) * CHAR_BIT) < 0)
17212     {
17213       long int i = longval ();
17214       if (i != (sizeof ($gltype) * CHAR_BIT))
17215         return 1;
17216       fprintf (f, "%ld", i);
17217     }
17218   else
17219     {
17220       unsigned long int i = ulongval ();
17221       if (i != (sizeof ($gltype) * CHAR_BIT))
17222         return 1;
17223       fprintf (f, "%lu", i);
17224     }
17225   /* Do not output a trailing newline, as this causes \r\n confusion
17226      on some platforms.  */
17227   return ferror (f) || fclose (f) != 0;
17228
17229   ;
17230   return 0;
17231 }
17232 _ACEOF
17233 rm -f conftest$ac_exeext
17234 if { (ac_try="$ac_link"
17235 case "(($ac_try" in
17236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237   *) ac_try_echo=$ac_try;;
17238 esac
17239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17240 $as_echo "$ac_try_echo") >&5
17241   (eval "$ac_link") 2>&5
17242   ac_status=$?
17243   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17244   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17245   { (case "(($ac_try" in
17246   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247   *) ac_try_echo=$ac_try;;
17248 esac
17249 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17250 $as_echo "$ac_try_echo") >&5
17251   (eval "$ac_try") 2>&5
17252   ac_status=$?
17253   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17254   (exit $ac_status); }; }; then
17255   result=`cat conftest.val`
17256 else
17257   $as_echo "$as_me: program exited with status $ac_status" >&5
17258 $as_echo "$as_me: failed program was:" >&5
17259 sed 's/^/| /' conftest.$ac_ext >&5
17260
17261 ( exit $ac_status )
17262 result=unknown
17263 fi
17264 rm -rf conftest.dSYM
17265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17266 fi
17267 rm -f conftest.val
17268        eval gl_cv_bitsizeof_${gltype}=\$result
17269
17270 fi
17271 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
17272                  $as_echo "$as_val"'`
17273                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17274 $as_echo "$ac_res" >&6; }
17275     eval result=\$gl_cv_bitsizeof_${gltype}
17276     if test $result = unknown; then
17277                                                 result=0
17278     fi
17279     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17280     cat >>confdefs.h <<_ACEOF
17281 #define BITSIZEOF_${GLTYPE} $result
17282 _ACEOF
17283
17284     eval BITSIZEOF_${GLTYPE}=\$result
17285   done
17286
17287
17288   fi
17289
17290
17291
17292
17293
17294   for gltype in sig_atomic_t wchar_t wint_t ; do
17295     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
17296 $as_echo_n "checking for bit size of $gltype... " >&6; }
17297 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
17298   $as_echo_n "(cached) " >&6
17299 else
17300   if test "$cross_compiling" = yes; then
17301   # Depending upon the size, compute the lo and hi bounds.
17302 cat >conftest.$ac_ext <<_ACEOF
17303 /* confdefs.h.  */
17304 _ACEOF
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h.  */
17308
17309   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17310      included before <wchar.h>.  */
17311   #include <stddef.h>
17312   #include <signal.h>
17313   #if HAVE_WCHAR_H
17314   # include <stdio.h>
17315   # include <time.h>
17316   # include <wchar.h>
17317   #endif
17318
17319 #include <limits.h>
17320 int
17321 main ()
17322 {
17323 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
17324 test_array [0] = 0
17325
17326   ;
17327   return 0;
17328 }
17329 _ACEOF
17330 rm -f conftest.$ac_objext
17331 if { (ac_try="$ac_compile"
17332 case "(($ac_try" in
17333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17334   *) ac_try_echo=$ac_try;;
17335 esac
17336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17337 $as_echo "$ac_try_echo") >&5
17338   (eval "$ac_compile") 2>conftest.er1
17339   ac_status=$?
17340   grep -v '^ *+' conftest.er1 >conftest.err
17341   rm -f conftest.er1
17342   cat conftest.err >&5
17343   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344   (exit $ac_status); } && {
17345          test -z "$ac_c_werror_flag" ||
17346          test ! -s conftest.err
17347        } && test -s conftest.$ac_objext; then
17348   ac_lo=0 ac_mid=0
17349   while :; do
17350     cat >conftest.$ac_ext <<_ACEOF
17351 /* confdefs.h.  */
17352 _ACEOF
17353 cat confdefs.h >>conftest.$ac_ext
17354 cat >>conftest.$ac_ext <<_ACEOF
17355 /* end confdefs.h.  */
17356
17357   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17358      included before <wchar.h>.  */
17359   #include <stddef.h>
17360   #include <signal.h>
17361   #if HAVE_WCHAR_H
17362   # include <stdio.h>
17363   # include <time.h>
17364   # include <wchar.h>
17365   #endif
17366
17367 #include <limits.h>
17368 int
17369 main ()
17370 {
17371 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17372 test_array [0] = 0
17373
17374   ;
17375   return 0;
17376 }
17377 _ACEOF
17378 rm -f conftest.$ac_objext
17379 if { (ac_try="$ac_compile"
17380 case "(($ac_try" in
17381   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17382   *) ac_try_echo=$ac_try;;
17383 esac
17384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17385 $as_echo "$ac_try_echo") >&5
17386   (eval "$ac_compile") 2>conftest.er1
17387   ac_status=$?
17388   grep -v '^ *+' conftest.er1 >conftest.err
17389   rm -f conftest.er1
17390   cat conftest.err >&5
17391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); } && {
17393          test -z "$ac_c_werror_flag" ||
17394          test ! -s conftest.err
17395        } && test -s conftest.$ac_objext; then
17396   ac_hi=$ac_mid; break
17397 else
17398   $as_echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17400
17401         ac_lo=`expr $ac_mid + 1`
17402                         if test $ac_lo -le $ac_mid; then
17403                           ac_lo= ac_hi=
17404                           break
17405                         fi
17406                         ac_mid=`expr 2 '*' $ac_mid + 1`
17407 fi
17408
17409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17410   done
17411 else
17412   $as_echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17414
17415         cat >conftest.$ac_ext <<_ACEOF
17416 /* confdefs.h.  */
17417 _ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h.  */
17421
17422   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17423      included before <wchar.h>.  */
17424   #include <stddef.h>
17425   #include <signal.h>
17426   #if HAVE_WCHAR_H
17427   # include <stdio.h>
17428   # include <time.h>
17429   # include <wchar.h>
17430   #endif
17431
17432 #include <limits.h>
17433 int
17434 main ()
17435 {
17436 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17437 test_array [0] = 0
17438
17439   ;
17440   return 0;
17441 }
17442 _ACEOF
17443 rm -f conftest.$ac_objext
17444 if { (ac_try="$ac_compile"
17445 case "(($ac_try" in
17446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447   *) ac_try_echo=$ac_try;;
17448 esac
17449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17450 $as_echo "$ac_try_echo") >&5
17451   (eval "$ac_compile") 2>conftest.er1
17452   ac_status=$?
17453   grep -v '^ *+' conftest.er1 >conftest.err
17454   rm -f conftest.er1
17455   cat conftest.err >&5
17456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17457   (exit $ac_status); } && {
17458          test -z "$ac_c_werror_flag" ||
17459          test ! -s conftest.err
17460        } && test -s conftest.$ac_objext; then
17461   ac_hi=-1 ac_mid=-1
17462   while :; do
17463     cat >conftest.$ac_ext <<_ACEOF
17464 /* confdefs.h.  */
17465 _ACEOF
17466 cat confdefs.h >>conftest.$ac_ext
17467 cat >>conftest.$ac_ext <<_ACEOF
17468 /* end confdefs.h.  */
17469
17470   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17471      included before <wchar.h>.  */
17472   #include <stddef.h>
17473   #include <signal.h>
17474   #if HAVE_WCHAR_H
17475   # include <stdio.h>
17476   # include <time.h>
17477   # include <wchar.h>
17478   #endif
17479
17480 #include <limits.h>
17481 int
17482 main ()
17483 {
17484 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17485 test_array [0] = 0
17486
17487   ;
17488   return 0;
17489 }
17490 _ACEOF
17491 rm -f conftest.$ac_objext
17492 if { (ac_try="$ac_compile"
17493 case "(($ac_try" in
17494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495   *) ac_try_echo=$ac_try;;
17496 esac
17497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17498 $as_echo "$ac_try_echo") >&5
17499   (eval "$ac_compile") 2>conftest.er1
17500   ac_status=$?
17501   grep -v '^ *+' conftest.er1 >conftest.err
17502   rm -f conftest.er1
17503   cat conftest.err >&5
17504   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505   (exit $ac_status); } && {
17506          test -z "$ac_c_werror_flag" ||
17507          test ! -s conftest.err
17508        } && test -s conftest.$ac_objext; then
17509   ac_lo=$ac_mid; break
17510 else
17511   $as_echo "$as_me: failed program was:" >&5
17512 sed 's/^/| /' conftest.$ac_ext >&5
17513
17514         ac_hi=`expr '(' $ac_mid ')' - 1`
17515                         if test $ac_mid -le $ac_hi; then
17516                           ac_lo= ac_hi=
17517                           break
17518                         fi
17519                         ac_mid=`expr 2 '*' $ac_mid`
17520 fi
17521
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523   done
17524 else
17525   $as_echo "$as_me: failed program was:" >&5
17526 sed 's/^/| /' conftest.$ac_ext >&5
17527
17528         ac_lo= ac_hi=
17529 fi
17530
17531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17532 fi
17533
17534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17535 # Binary search between lo and hi bounds.
17536 while test "x$ac_lo" != "x$ac_hi"; do
17537   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17538   cat >conftest.$ac_ext <<_ACEOF
17539 /* confdefs.h.  */
17540 _ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h.  */
17544
17545   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17546      included before <wchar.h>.  */
17547   #include <stddef.h>
17548   #include <signal.h>
17549   #if HAVE_WCHAR_H
17550   # include <stdio.h>
17551   # include <time.h>
17552   # include <wchar.h>
17553   #endif
17554
17555 #include <limits.h>
17556 int
17557 main ()
17558 {
17559 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17560 test_array [0] = 0
17561
17562   ;
17563   return 0;
17564 }
17565 _ACEOF
17566 rm -f conftest.$ac_objext
17567 if { (ac_try="$ac_compile"
17568 case "(($ac_try" in
17569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570   *) ac_try_echo=$ac_try;;
17571 esac
17572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17573 $as_echo "$ac_try_echo") >&5
17574   (eval "$ac_compile") 2>conftest.er1
17575   ac_status=$?
17576   grep -v '^ *+' conftest.er1 >conftest.err
17577   rm -f conftest.er1
17578   cat conftest.err >&5
17579   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580   (exit $ac_status); } && {
17581          test -z "$ac_c_werror_flag" ||
17582          test ! -s conftest.err
17583        } && test -s conftest.$ac_objext; then
17584   ac_hi=$ac_mid
17585 else
17586   $as_echo "$as_me: failed program was:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17588
17589         ac_lo=`expr '(' $ac_mid ')' + 1`
17590 fi
17591
17592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17593 done
17594 case $ac_lo in
17595 ?*) result=$ac_lo;;
17596 '') result=unknown ;;
17597 esac
17598 else
17599   cat >conftest.$ac_ext <<_ACEOF
17600 /* confdefs.h.  */
17601 _ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h.  */
17605
17606   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17607      included before <wchar.h>.  */
17608   #include <stddef.h>
17609   #include <signal.h>
17610   #if HAVE_WCHAR_H
17611   # include <stdio.h>
17612   # include <time.h>
17613   # include <wchar.h>
17614   #endif
17615
17616 #include <limits.h>
17617 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17618 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
17619 #include <stdio.h>
17620 #include <stdlib.h>
17621 int
17622 main ()
17623 {
17624
17625   FILE *f = fopen ("conftest.val", "w");
17626   if (! f)
17627     return 1;
17628   if ((sizeof ($gltype) * CHAR_BIT) < 0)
17629     {
17630       long int i = longval ();
17631       if (i != (sizeof ($gltype) * CHAR_BIT))
17632         return 1;
17633       fprintf (f, "%ld", i);
17634     }
17635   else
17636     {
17637       unsigned long int i = ulongval ();
17638       if (i != (sizeof ($gltype) * CHAR_BIT))
17639         return 1;
17640       fprintf (f, "%lu", i);
17641     }
17642   /* Do not output a trailing newline, as this causes \r\n confusion
17643      on some platforms.  */
17644   return ferror (f) || fclose (f) != 0;
17645
17646   ;
17647   return 0;
17648 }
17649 _ACEOF
17650 rm -f conftest$ac_exeext
17651 if { (ac_try="$ac_link"
17652 case "(($ac_try" in
17653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17654   *) ac_try_echo=$ac_try;;
17655 esac
17656 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17657 $as_echo "$ac_try_echo") >&5
17658   (eval "$ac_link") 2>&5
17659   ac_status=$?
17660   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17661   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17662   { (case "(($ac_try" in
17663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17664   *) ac_try_echo=$ac_try;;
17665 esac
17666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17667 $as_echo "$ac_try_echo") >&5
17668   (eval "$ac_try") 2>&5
17669   ac_status=$?
17670   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); }; }; then
17672   result=`cat conftest.val`
17673 else
17674   $as_echo "$as_me: program exited with status $ac_status" >&5
17675 $as_echo "$as_me: failed program was:" >&5
17676 sed 's/^/| /' conftest.$ac_ext >&5
17677
17678 ( exit $ac_status )
17679 result=unknown
17680 fi
17681 rm -rf conftest.dSYM
17682 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17683 fi
17684 rm -f conftest.val
17685        eval gl_cv_bitsizeof_${gltype}=\$result
17686
17687 fi
17688 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
17689                  $as_echo "$as_val"'`
17690                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17691 $as_echo "$ac_res" >&6; }
17692     eval result=\$gl_cv_bitsizeof_${gltype}
17693     if test $result = unknown; then
17694                                                 result=0
17695     fi
17696     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17697     cat >>confdefs.h <<_ACEOF
17698 #define BITSIZEOF_${GLTYPE} $result
17699 _ACEOF
17700
17701     eval BITSIZEOF_${GLTYPE}=\$result
17702   done
17703
17704
17705
17706
17707
17708
17709
17710   for gltype in sig_atomic_t wchar_t wint_t ; do
17711     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
17712 $as_echo_n "checking whether $gltype is signed... " >&6; }
17713 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
17714   $as_echo_n "(cached) " >&6
17715 else
17716   cat >conftest.$ac_ext <<_ACEOF
17717 /* confdefs.h.  */
17718 _ACEOF
17719 cat confdefs.h >>conftest.$ac_ext
17720 cat >>conftest.$ac_ext <<_ACEOF
17721 /* end confdefs.h.  */
17722
17723   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17724      included before <wchar.h>.  */
17725   #include <stddef.h>
17726   #include <signal.h>
17727   #if HAVE_WCHAR_H
17728   # include <stdio.h>
17729   # include <time.h>
17730   # include <wchar.h>
17731   #endif
17732
17733             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17734 int
17735 main ()
17736 {
17737
17738   ;
17739   return 0;
17740 }
17741 _ACEOF
17742 rm -f conftest.$ac_objext
17743 if { (ac_try="$ac_compile"
17744 case "(($ac_try" in
17745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17746   *) ac_try_echo=$ac_try;;
17747 esac
17748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17749 $as_echo "$ac_try_echo") >&5
17750   (eval "$ac_compile") 2>conftest.er1
17751   ac_status=$?
17752   grep -v '^ *+' conftest.er1 >conftest.err
17753   rm -f conftest.er1
17754   cat conftest.err >&5
17755   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756   (exit $ac_status); } && {
17757          test -z "$ac_c_werror_flag" ||
17758          test ! -s conftest.err
17759        } && test -s conftest.$ac_objext; then
17760   result=yes
17761 else
17762   $as_echo "$as_me: failed program was:" >&5
17763 sed 's/^/| /' conftest.$ac_ext >&5
17764
17765         result=no
17766 fi
17767
17768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17769        eval gl_cv_type_${gltype}_signed=\$result
17770
17771 fi
17772 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
17773                  $as_echo "$as_val"'`
17774                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17775 $as_echo "$ac_res" >&6; }
17776     eval result=\$gl_cv_type_${gltype}_signed
17777     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17778     if test "$result" = yes; then
17779       cat >>confdefs.h <<_ACEOF
17780 #define HAVE_SIGNED_${GLTYPE} 1
17781 _ACEOF
17782
17783       eval HAVE_SIGNED_${GLTYPE}=1
17784     else
17785       eval HAVE_SIGNED_${GLTYPE}=0
17786     fi
17787   done
17788
17789
17790   gl_cv_type_ptrdiff_t_signed=yes
17791   gl_cv_type_size_t_signed=no
17792   if test $APPLE_UNIVERSAL_BUILD = 0; then
17793
17794
17795
17796
17797   for gltype in ptrdiff_t size_t ; do
17798     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
17799 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17800 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
17801   $as_echo_n "(cached) " >&6
17802 else
17803   eval gl_cv_type_${gltype}_suffix=no
17804        eval result=\$gl_cv_type_${gltype}_signed
17805        if test "$result" = yes; then
17806          glsufu=
17807        else
17808          glsufu=u
17809        fi
17810        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17811          case $glsuf in
17812            '')  gltype1='int';;
17813            l)   gltype1='long int';;
17814            ll)  gltype1='long long int';;
17815            i64) gltype1='__int64';;
17816            u)   gltype1='unsigned int';;
17817            ul)  gltype1='unsigned long int';;
17818            ull) gltype1='unsigned long long int';;
17819            ui64)gltype1='unsigned __int64';;
17820          esac
17821          cat >conftest.$ac_ext <<_ACEOF
17822 /* confdefs.h.  */
17823 _ACEOF
17824 cat confdefs.h >>conftest.$ac_ext
17825 cat >>conftest.$ac_ext <<_ACEOF
17826 /* end confdefs.h.  */
17827
17828   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17829      included before <wchar.h>.  */
17830   #include <stddef.h>
17831   #include <signal.h>
17832   #if HAVE_WCHAR_H
17833   # include <stdio.h>
17834   # include <time.h>
17835   # include <wchar.h>
17836   #endif
17837
17838               extern $gltype foo;
17839               extern $gltype1 foo;
17840 int
17841 main ()
17842 {
17843
17844   ;
17845   return 0;
17846 }
17847 _ACEOF
17848 rm -f conftest.$ac_objext
17849 if { (ac_try="$ac_compile"
17850 case "(($ac_try" in
17851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852   *) ac_try_echo=$ac_try;;
17853 esac
17854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17855 $as_echo "$ac_try_echo") >&5
17856   (eval "$ac_compile") 2>conftest.er1
17857   ac_status=$?
17858   grep -v '^ *+' conftest.er1 >conftest.err
17859   rm -f conftest.er1
17860   cat conftest.err >&5
17861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17862   (exit $ac_status); } && {
17863          test -z "$ac_c_werror_flag" ||
17864          test ! -s conftest.err
17865        } && test -s conftest.$ac_objext; then
17866   eval gl_cv_type_${gltype}_suffix=\$glsuf
17867 else
17868   $as_echo "$as_me: failed program was:" >&5
17869 sed 's/^/| /' conftest.$ac_ext >&5
17870
17871
17872 fi
17873
17874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17875          eval result=\$gl_cv_type_${gltype}_suffix
17876          test "$result" != no && break
17877        done
17878 fi
17879 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
17880                  $as_echo "$as_val"'`
17881                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17882 $as_echo "$ac_res" >&6; }
17883     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17884     eval result=\$gl_cv_type_${gltype}_suffix
17885     test "$result" = no && result=
17886     eval ${GLTYPE}_SUFFIX=\$result
17887     cat >>confdefs.h <<_ACEOF
17888 #define ${GLTYPE}_SUFFIX $result
17889 _ACEOF
17890
17891   done
17892
17893
17894   fi
17895
17896
17897
17898
17899
17900   for gltype in sig_atomic_t wchar_t wint_t ; do
17901     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
17902 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
17903 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
17904   $as_echo_n "(cached) " >&6
17905 else
17906   eval gl_cv_type_${gltype}_suffix=no
17907        eval result=\$gl_cv_type_${gltype}_signed
17908        if test "$result" = yes; then
17909          glsufu=
17910        else
17911          glsufu=u
17912        fi
17913        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17914          case $glsuf in
17915            '')  gltype1='int';;
17916            l)   gltype1='long int';;
17917            ll)  gltype1='long long int';;
17918            i64) gltype1='__int64';;
17919            u)   gltype1='unsigned int';;
17920            ul)  gltype1='unsigned long int';;
17921            ull) gltype1='unsigned long long int';;
17922            ui64)gltype1='unsigned __int64';;
17923          esac
17924          cat >conftest.$ac_ext <<_ACEOF
17925 /* confdefs.h.  */
17926 _ACEOF
17927 cat confdefs.h >>conftest.$ac_ext
17928 cat >>conftest.$ac_ext <<_ACEOF
17929 /* end confdefs.h.  */
17930
17931   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17932      included before <wchar.h>.  */
17933   #include <stddef.h>
17934   #include <signal.h>
17935   #if HAVE_WCHAR_H
17936   # include <stdio.h>
17937   # include <time.h>
17938   # include <wchar.h>
17939   #endif
17940
17941               extern $gltype foo;
17942               extern $gltype1 foo;
17943 int
17944 main ()
17945 {
17946
17947   ;
17948   return 0;
17949 }
17950 _ACEOF
17951 rm -f conftest.$ac_objext
17952 if { (ac_try="$ac_compile"
17953 case "(($ac_try" in
17954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955   *) ac_try_echo=$ac_try;;
17956 esac
17957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17958 $as_echo "$ac_try_echo") >&5
17959   (eval "$ac_compile") 2>conftest.er1
17960   ac_status=$?
17961   grep -v '^ *+' conftest.er1 >conftest.err
17962   rm -f conftest.er1
17963   cat conftest.err >&5
17964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17965   (exit $ac_status); } && {
17966          test -z "$ac_c_werror_flag" ||
17967          test ! -s conftest.err
17968        } && test -s conftest.$ac_objext; then
17969   eval gl_cv_type_${gltype}_suffix=\$glsuf
17970 else
17971   $as_echo "$as_me: failed program was:" >&5
17972 sed 's/^/| /' conftest.$ac_ext >&5
17973
17974
17975 fi
17976
17977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17978          eval result=\$gl_cv_type_${gltype}_suffix
17979          test "$result" != no && break
17980        done
17981 fi
17982 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
17983                  $as_echo "$as_val"'`
17984                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17985 $as_echo "$ac_res" >&6; }
17986     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17987     eval result=\$gl_cv_type_${gltype}_suffix
17988     test "$result" = no && result=
17989     eval ${GLTYPE}_SUFFIX=\$result
17990     cat >>confdefs.h <<_ACEOF
17991 #define ${GLTYPE}_SUFFIX $result
17992 _ACEOF
17993
17994   done
17995
17996
17997
17998     STDINT_H=stdint.h
17999   fi
18000
18001
18002
18003
18004 for ac_header in inttypes.h
18005 do
18006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18008   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18009 $as_echo_n "checking for $ac_header... " >&6; }
18010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18011   $as_echo_n "(cached) " >&6
18012 fi
18013 ac_res=`eval 'as_val=${'$as_ac_Header'}
18014                  $as_echo "$as_val"'`
18015                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18016 $as_echo "$ac_res" >&6; }
18017 else
18018   # Is the header compilable?
18019 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18020 $as_echo_n "checking $ac_header usability... " >&6; }
18021 cat >conftest.$ac_ext <<_ACEOF
18022 /* confdefs.h.  */
18023 _ACEOF
18024 cat confdefs.h >>conftest.$ac_ext
18025 cat >>conftest.$ac_ext <<_ACEOF
18026 /* end confdefs.h.  */
18027 $ac_includes_default
18028 #include <$ac_header>
18029 _ACEOF
18030 rm -f conftest.$ac_objext
18031 if { (ac_try="$ac_compile"
18032 case "(($ac_try" in
18033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18034   *) ac_try_echo=$ac_try;;
18035 esac
18036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18037 $as_echo "$ac_try_echo") >&5
18038   (eval "$ac_compile") 2>conftest.er1
18039   ac_status=$?
18040   grep -v '^ *+' conftest.er1 >conftest.err
18041   rm -f conftest.er1
18042   cat conftest.err >&5
18043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044   (exit $ac_status); } && {
18045          test -z "$ac_c_werror_flag" ||
18046          test ! -s conftest.err
18047        } && test -s conftest.$ac_objext; then
18048   ac_header_compiler=yes
18049 else
18050   $as_echo "$as_me: failed program was:" >&5
18051 sed 's/^/| /' conftest.$ac_ext >&5
18052
18053         ac_header_compiler=no
18054 fi
18055
18056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18057 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18058 $as_echo "$ac_header_compiler" >&6; }
18059
18060 # Is the header present?
18061 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18062 $as_echo_n "checking $ac_header presence... " >&6; }
18063 cat >conftest.$ac_ext <<_ACEOF
18064 /* confdefs.h.  */
18065 _ACEOF
18066 cat confdefs.h >>conftest.$ac_ext
18067 cat >>conftest.$ac_ext <<_ACEOF
18068 /* end confdefs.h.  */
18069 #include <$ac_header>
18070 _ACEOF
18071 if { (ac_try="$ac_cpp conftest.$ac_ext"
18072 case "(($ac_try" in
18073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18074   *) ac_try_echo=$ac_try;;
18075 esac
18076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18077 $as_echo "$ac_try_echo") >&5
18078   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18079   ac_status=$?
18080   grep -v '^ *+' conftest.er1 >conftest.err
18081   rm -f conftest.er1
18082   cat conftest.err >&5
18083   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084   (exit $ac_status); } >/dev/null && {
18085          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18086          test ! -s conftest.err
18087        }; then
18088   ac_header_preproc=yes
18089 else
18090   $as_echo "$as_me: failed program was:" >&5
18091 sed 's/^/| /' conftest.$ac_ext >&5
18092
18093   ac_header_preproc=no
18094 fi
18095
18096 rm -f conftest.err conftest.$ac_ext
18097 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18098 $as_echo "$ac_header_preproc" >&6; }
18099
18100 # So?  What about this header?
18101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18102   yes:no: )
18103     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18104 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18105     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18106 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18107     ac_header_preproc=yes
18108     ;;
18109   no:yes:* )
18110     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18111 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18112     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18113 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18114     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18115 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18116     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18117 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18118     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18119 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18120     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18121 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18122     ( cat <<\_ASBOX
18123 ## ------------------------------ ##
18124 ## Report this to bug-tar@gnu.org ##
18125 ## ------------------------------ ##
18126 _ASBOX
18127      ) | sed "s/^/$as_me: WARNING:     /" >&2
18128     ;;
18129 esac
18130 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18131 $as_echo_n "checking for $ac_header... " >&6; }
18132 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18133   $as_echo_n "(cached) " >&6
18134 else
18135   eval "$as_ac_Header=\$ac_header_preproc"
18136 fi
18137 ac_res=`eval 'as_val=${'$as_ac_Header'}
18138                  $as_echo "$as_val"'`
18139                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18140 $as_echo "$ac_res" >&6; }
18141
18142 fi
18143 as_val=`eval 'as_val=${'$as_ac_Header'}
18144                  $as_echo "$as_val"'`
18145    if test "x$as_val" = x""yes; then
18146   cat >>confdefs.h <<_ACEOF
18147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18148 _ACEOF
18149
18150 fi
18151
18152 done
18153
18154   if test $ac_cv_header_inttypes_h = yes; then
18155     { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
18156 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
18157 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
18158   $as_echo_n "(cached) " >&6
18159 else
18160
18161         cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h.  */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h.  */
18167 #include <inttypes.h>
18168 #ifdef PRId32
18169 char *p = PRId32;
18170 #endif
18171
18172 int
18173 main ()
18174 {
18175
18176   ;
18177   return 0;
18178 }
18179 _ACEOF
18180 rm -f conftest.$ac_objext
18181 if { (ac_try="$ac_compile"
18182 case "(($ac_try" in
18183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18184   *) ac_try_echo=$ac_try;;
18185 esac
18186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18187 $as_echo "$ac_try_echo") >&5
18188   (eval "$ac_compile") 2>conftest.er1
18189   ac_status=$?
18190   grep -v '^ *+' conftest.er1 >conftest.err
18191   rm -f conftest.er1
18192   cat conftest.err >&5
18193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194   (exit $ac_status); } && {
18195          test -z "$ac_c_werror_flag" ||
18196          test ! -s conftest.err
18197        } && test -s conftest.$ac_objext; then
18198   gt_cv_inttypes_pri_broken=no
18199 else
18200   $as_echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18202
18203         gt_cv_inttypes_pri_broken=yes
18204 fi
18205
18206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18207
18208 fi
18209 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
18210 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
18211   fi
18212   if test "$gt_cv_inttypes_pri_broken" = yes; then
18213
18214 cat >>confdefs.h <<_ACEOF
18215 #define PRI_MACROS_BROKEN 1
18216 _ACEOF
18217
18218     PRI_MACROS_BROKEN=1
18219   else
18220     PRI_MACROS_BROKEN=0
18221   fi
18222
18223
18224
18225
18226 { $as_echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
18227 $as_echo_n "checking whether imaxabs is declared... " >&6; }
18228 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
18229   $as_echo_n "(cached) " >&6
18230 else
18231   cat >conftest.$ac_ext <<_ACEOF
18232 /* confdefs.h.  */
18233 _ACEOF
18234 cat confdefs.h >>conftest.$ac_ext
18235 cat >>conftest.$ac_ext <<_ACEOF
18236 /* end confdefs.h.  */
18237 $ac_includes_default
18238 int
18239 main ()
18240 {
18241 #ifndef imaxabs
18242   (void) imaxabs;
18243 #endif
18244
18245   ;
18246   return 0;
18247 }
18248 _ACEOF
18249 rm -f conftest.$ac_objext
18250 if { (ac_try="$ac_compile"
18251 case "(($ac_try" in
18252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253   *) ac_try_echo=$ac_try;;
18254 esac
18255 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18256 $as_echo "$ac_try_echo") >&5
18257   (eval "$ac_compile") 2>conftest.er1
18258   ac_status=$?
18259   grep -v '^ *+' conftest.er1 >conftest.err
18260   rm -f conftest.er1
18261   cat conftest.err >&5
18262   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263   (exit $ac_status); } && {
18264          test -z "$ac_c_werror_flag" ||
18265          test ! -s conftest.err
18266        } && test -s conftest.$ac_objext; then
18267   ac_cv_have_decl_imaxabs=yes
18268 else
18269   $as_echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18271
18272         ac_cv_have_decl_imaxabs=no
18273 fi
18274
18275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18276 fi
18277 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
18278 $as_echo "$ac_cv_have_decl_imaxabs" >&6; }
18279 if test "x$ac_cv_have_decl_imaxabs" = x""yes; then
18280
18281 cat >>confdefs.h <<_ACEOF
18282 #define HAVE_DECL_IMAXABS 1
18283 _ACEOF
18284
18285
18286 else
18287   cat >>confdefs.h <<_ACEOF
18288 #define HAVE_DECL_IMAXABS 0
18289 _ACEOF
18290
18291
18292 fi
18293
18294
18295 { $as_echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
18296 $as_echo_n "checking whether imaxdiv is declared... " >&6; }
18297 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
18298   $as_echo_n "(cached) " >&6
18299 else
18300   cat >conftest.$ac_ext <<_ACEOF
18301 /* confdefs.h.  */
18302 _ACEOF
18303 cat confdefs.h >>conftest.$ac_ext
18304 cat >>conftest.$ac_ext <<_ACEOF
18305 /* end confdefs.h.  */
18306 $ac_includes_default
18307 int
18308 main ()
18309 {
18310 #ifndef imaxdiv
18311   (void) imaxdiv;
18312 #endif
18313
18314   ;
18315   return 0;
18316 }
18317 _ACEOF
18318 rm -f conftest.$ac_objext
18319 if { (ac_try="$ac_compile"
18320 case "(($ac_try" in
18321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322   *) ac_try_echo=$ac_try;;
18323 esac
18324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18325 $as_echo "$ac_try_echo") >&5
18326   (eval "$ac_compile") 2>conftest.er1
18327   ac_status=$?
18328   grep -v '^ *+' conftest.er1 >conftest.err
18329   rm -f conftest.er1
18330   cat conftest.err >&5
18331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18332   (exit $ac_status); } && {
18333          test -z "$ac_c_werror_flag" ||
18334          test ! -s conftest.err
18335        } && test -s conftest.$ac_objext; then
18336   ac_cv_have_decl_imaxdiv=yes
18337 else
18338   $as_echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18340
18341         ac_cv_have_decl_imaxdiv=no
18342 fi
18343
18344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18345 fi
18346 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
18347 $as_echo "$ac_cv_have_decl_imaxdiv" >&6; }
18348 if test "x$ac_cv_have_decl_imaxdiv" = x""yes; then
18349
18350 cat >>confdefs.h <<_ACEOF
18351 #define HAVE_DECL_IMAXDIV 1
18352 _ACEOF
18353
18354
18355 else
18356   cat >>confdefs.h <<_ACEOF
18357 #define HAVE_DECL_IMAXDIV 0
18358 _ACEOF
18359
18360
18361 fi
18362
18363
18364 { $as_echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
18365 $as_echo_n "checking whether strtoimax is declared... " >&6; }
18366 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
18367   $as_echo_n "(cached) " >&6
18368 else
18369   cat >conftest.$ac_ext <<_ACEOF
18370 /* confdefs.h.  */
18371 _ACEOF
18372 cat confdefs.h >>conftest.$ac_ext
18373 cat >>conftest.$ac_ext <<_ACEOF
18374 /* end confdefs.h.  */
18375 $ac_includes_default
18376 int
18377 main ()
18378 {
18379 #ifndef strtoimax
18380   (void) strtoimax;
18381 #endif
18382
18383   ;
18384   return 0;
18385 }
18386 _ACEOF
18387 rm -f conftest.$ac_objext
18388 if { (ac_try="$ac_compile"
18389 case "(($ac_try" in
18390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391   *) ac_try_echo=$ac_try;;
18392 esac
18393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18394 $as_echo "$ac_try_echo") >&5
18395   (eval "$ac_compile") 2>conftest.er1
18396   ac_status=$?
18397   grep -v '^ *+' conftest.er1 >conftest.err
18398   rm -f conftest.er1
18399   cat conftest.err >&5
18400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401   (exit $ac_status); } && {
18402          test -z "$ac_c_werror_flag" ||
18403          test ! -s conftest.err
18404        } && test -s conftest.$ac_objext; then
18405   ac_cv_have_decl_strtoimax=yes
18406 else
18407   $as_echo "$as_me: failed program was:" >&5
18408 sed 's/^/| /' conftest.$ac_ext >&5
18409
18410         ac_cv_have_decl_strtoimax=no
18411 fi
18412
18413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18414 fi
18415 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
18416 $as_echo "$ac_cv_have_decl_strtoimax" >&6; }
18417 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then
18418
18419 cat >>confdefs.h <<_ACEOF
18420 #define HAVE_DECL_STRTOIMAX 1
18421 _ACEOF
18422
18423
18424 else
18425   cat >>confdefs.h <<_ACEOF
18426 #define HAVE_DECL_STRTOIMAX 0
18427 _ACEOF
18428
18429
18430 fi
18431
18432
18433 { $as_echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
18434 $as_echo_n "checking whether strtoumax is declared... " >&6; }
18435 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
18436   $as_echo_n "(cached) " >&6
18437 else
18438   cat >conftest.$ac_ext <<_ACEOF
18439 /* confdefs.h.  */
18440 _ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h.  */
18444 $ac_includes_default
18445 int
18446 main ()
18447 {
18448 #ifndef strtoumax
18449   (void) strtoumax;
18450 #endif
18451
18452   ;
18453   return 0;
18454 }
18455 _ACEOF
18456 rm -f conftest.$ac_objext
18457 if { (ac_try="$ac_compile"
18458 case "(($ac_try" in
18459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460   *) ac_try_echo=$ac_try;;
18461 esac
18462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18463 $as_echo "$ac_try_echo") >&5
18464   (eval "$ac_compile") 2>conftest.er1
18465   ac_status=$?
18466   grep -v '^ *+' conftest.er1 >conftest.err
18467   rm -f conftest.er1
18468   cat conftest.err >&5
18469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18470   (exit $ac_status); } && {
18471          test -z "$ac_c_werror_flag" ||
18472          test ! -s conftest.err
18473        } && test -s conftest.$ac_objext; then
18474   ac_cv_have_decl_strtoumax=yes
18475 else
18476   $as_echo "$as_me: failed program was:" >&5
18477 sed 's/^/| /' conftest.$ac_ext >&5
18478
18479         ac_cv_have_decl_strtoumax=no
18480 fi
18481
18482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18483 fi
18484 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
18485 $as_echo "$ac_cv_have_decl_strtoumax" >&6; }
18486 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then
18487
18488 cat >>confdefs.h <<_ACEOF
18489 #define HAVE_DECL_STRTOUMAX 1
18490 _ACEOF
18491
18492
18493 else
18494   cat >>confdefs.h <<_ACEOF
18495 #define HAVE_DECL_STRTOUMAX 0
18496 _ACEOF
18497
18498
18499 fi
18500
18501
18502
18503   GNULIB_IMAXABS=0;
18504   GNULIB_IMAXDIV=0;
18505   GNULIB_STRTOIMAX=0;
18506   GNULIB_STRTOUMAX=0;
18507     HAVE_DECL_IMAXABS=1;
18508   HAVE_DECL_IMAXDIV=1;
18509   HAVE_DECL_STRTOIMAX=1;
18510   HAVE_DECL_STRTOUMAX=1;
18511
18512
18513   GNULIB_NL_LANGINFO=0;
18514     HAVE_NL_LANGINFO=1;
18515   REPLACE_NL_LANGINFO=0;
18516
18517
18518
18519
18520
18521
18522     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5
18523 $as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; }
18524 if test "${ac_cv_gnu_library_2_1+set}" = set; then
18525   $as_echo_n "(cached) " >&6
18526 else
18527   cat >conftest.$ac_ext <<_ACEOF
18528 /* confdefs.h.  */
18529 _ACEOF
18530 cat confdefs.h >>conftest.$ac_ext
18531 cat >>conftest.$ac_ext <<_ACEOF
18532 /* end confdefs.h.  */
18533
18534 #include <features.h>
18535 #ifdef __GNU_LIBRARY__
18536  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
18537   Lucky GNU user
18538  #endif
18539 #endif
18540
18541 _ACEOF
18542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18543   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
18544   ac_cv_gnu_library_2_1=yes
18545 else
18546   ac_cv_gnu_library_2_1=no
18547 fi
18548 rm -f conftest*
18549
18550
18551
18552 fi
18553 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
18554 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
18555
18556     GLIBC21="$ac_cv_gnu_library_2_1"
18557
18558
18559
18560
18561 { $as_echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5
18562 $as_echo_n "checking whether lstat dereferences a symlink specified with a trailing slash... " >&6; }
18563 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
18564   $as_echo_n "(cached) " >&6
18565 else
18566   rm -f conftest.sym conftest.file
18567 echo >conftest.file
18568 if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
18569   if test "$cross_compiling" = yes; then
18570   ac_cv_func_lstat_dereferences_slashed_symlink=no
18571 else
18572   cat >conftest.$ac_ext <<_ACEOF
18573 /* confdefs.h.  */
18574 _ACEOF
18575 cat confdefs.h >>conftest.$ac_ext
18576 cat >>conftest.$ac_ext <<_ACEOF
18577 /* end confdefs.h.  */
18578 $ac_includes_default
18579 int
18580 main ()
18581 {
18582 struct stat sbuf;
18583      /* Linux will dereference the symlink and fail.
18584         That is better in the sense that it means we will not
18585         have to compile and use the lstat wrapper.  */
18586      return lstat ("conftest.sym/", &sbuf) == 0;
18587   ;
18588   return 0;
18589 }
18590 _ACEOF
18591 rm -f conftest$ac_exeext
18592 if { (ac_try="$ac_link"
18593 case "(($ac_try" in
18594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595   *) ac_try_echo=$ac_try;;
18596 esac
18597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18598 $as_echo "$ac_try_echo") >&5
18599   (eval "$ac_link") 2>&5
18600   ac_status=$?
18601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18603   { (case "(($ac_try" in
18604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18605   *) ac_try_echo=$ac_try;;
18606 esac
18607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18608 $as_echo "$ac_try_echo") >&5
18609   (eval "$ac_try") 2>&5
18610   ac_status=$?
18611   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612   (exit $ac_status); }; }; then
18613   ac_cv_func_lstat_dereferences_slashed_symlink=yes
18614 else
18615   $as_echo "$as_me: program exited with status $ac_status" >&5
18616 $as_echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18618
18619 ( exit $ac_status )
18620 ac_cv_func_lstat_dereferences_slashed_symlink=no
18621 fi
18622 rm -rf conftest.dSYM
18623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18624 fi
18625
18626
18627 else
18628   # If the `ln -s' command failed, then we probably don't even
18629   # have an lstat function.
18630   ac_cv_func_lstat_dereferences_slashed_symlink=no
18631 fi
18632 rm -f conftest.sym conftest.file
18633
18634 fi
18635 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
18636 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
18637
18638 test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
18639
18640 cat >>confdefs.h <<_ACEOF
18641 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
18642 _ACEOF
18643
18644
18645 if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
18646
18647
18648
18649
18650
18651
18652
18653
18654   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
18655
18656 fi
18657
18658
18659   { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
18660 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
18661 if test "${gl_cv_func_malloc_posix+set}" = set; then
18662   $as_echo_n "(cached) " >&6
18663 else
18664
18665                         cat >conftest.$ac_ext <<_ACEOF
18666 /* confdefs.h.  */
18667 _ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h.  */
18671
18672 int
18673 main ()
18674 {
18675 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
18676          choke me
18677          #endif
18678
18679   ;
18680   return 0;
18681 }
18682 _ACEOF
18683 rm -f conftest.$ac_objext
18684 if { (ac_try="$ac_compile"
18685 case "(($ac_try" in
18686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687   *) ac_try_echo=$ac_try;;
18688 esac
18689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18690 $as_echo "$ac_try_echo") >&5
18691   (eval "$ac_compile") 2>conftest.er1
18692   ac_status=$?
18693   grep -v '^ *+' conftest.er1 >conftest.err
18694   rm -f conftest.er1
18695   cat conftest.err >&5
18696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697   (exit $ac_status); } && {
18698          test -z "$ac_c_werror_flag" ||
18699          test ! -s conftest.err
18700        } && test -s conftest.$ac_objext; then
18701   gl_cv_func_malloc_posix=yes
18702 else
18703   $as_echo "$as_me: failed program was:" >&5
18704 sed 's/^/| /' conftest.$ac_ext >&5
18705
18706         gl_cv_func_malloc_posix=no
18707 fi
18708
18709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18710
18711 fi
18712 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
18713 $as_echo "$gl_cv_func_malloc_posix" >&6; }
18714
18715
18716
18717 for ac_header in stdlib.h
18718 do
18719 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18720 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18721   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18722 $as_echo_n "checking for $ac_header... " >&6; }
18723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18724   $as_echo_n "(cached) " >&6
18725 fi
18726 ac_res=`eval 'as_val=${'$as_ac_Header'}
18727                  $as_echo "$as_val"'`
18728                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18729 $as_echo "$ac_res" >&6; }
18730 else
18731   # Is the header compilable?
18732 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18733 $as_echo_n "checking $ac_header usability... " >&6; }
18734 cat >conftest.$ac_ext <<_ACEOF
18735 /* confdefs.h.  */
18736 _ACEOF
18737 cat confdefs.h >>conftest.$ac_ext
18738 cat >>conftest.$ac_ext <<_ACEOF
18739 /* end confdefs.h.  */
18740 $ac_includes_default
18741 #include <$ac_header>
18742 _ACEOF
18743 rm -f conftest.$ac_objext
18744 if { (ac_try="$ac_compile"
18745 case "(($ac_try" in
18746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747   *) ac_try_echo=$ac_try;;
18748 esac
18749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18750 $as_echo "$ac_try_echo") >&5
18751   (eval "$ac_compile") 2>conftest.er1
18752   ac_status=$?
18753   grep -v '^ *+' conftest.er1 >conftest.err
18754   rm -f conftest.er1
18755   cat conftest.err >&5
18756   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757   (exit $ac_status); } && {
18758          test -z "$ac_c_werror_flag" ||
18759          test ! -s conftest.err
18760        } && test -s conftest.$ac_objext; then
18761   ac_header_compiler=yes
18762 else
18763   $as_echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18765
18766         ac_header_compiler=no
18767 fi
18768
18769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18770 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18771 $as_echo "$ac_header_compiler" >&6; }
18772
18773 # Is the header present?
18774 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18775 $as_echo_n "checking $ac_header presence... " >&6; }
18776 cat >conftest.$ac_ext <<_ACEOF
18777 /* confdefs.h.  */
18778 _ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h.  */
18782 #include <$ac_header>
18783 _ACEOF
18784 if { (ac_try="$ac_cpp conftest.$ac_ext"
18785 case "(($ac_try" in
18786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787   *) ac_try_echo=$ac_try;;
18788 esac
18789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18790 $as_echo "$ac_try_echo") >&5
18791   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18792   ac_status=$?
18793   grep -v '^ *+' conftest.er1 >conftest.err
18794   rm -f conftest.er1
18795   cat conftest.err >&5
18796   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797   (exit $ac_status); } >/dev/null && {
18798          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18799          test ! -s conftest.err
18800        }; then
18801   ac_header_preproc=yes
18802 else
18803   $as_echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18805
18806   ac_header_preproc=no
18807 fi
18808
18809 rm -f conftest.err conftest.$ac_ext
18810 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18811 $as_echo "$ac_header_preproc" >&6; }
18812
18813 # So?  What about this header?
18814 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18815   yes:no: )
18816     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18817 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18818     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18819 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18820     ac_header_preproc=yes
18821     ;;
18822   no:yes:* )
18823     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18824 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18825     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18826 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18827     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18828 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18829     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18830 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18831     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18832 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18833     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18834 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18835     ( cat <<\_ASBOX
18836 ## ------------------------------ ##
18837 ## Report this to bug-tar@gnu.org ##
18838 ## ------------------------------ ##
18839 _ASBOX
18840      ) | sed "s/^/$as_me: WARNING:     /" >&2
18841     ;;
18842 esac
18843 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18844 $as_echo_n "checking for $ac_header... " >&6; }
18845 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18846   $as_echo_n "(cached) " >&6
18847 else
18848   eval "$as_ac_Header=\$ac_header_preproc"
18849 fi
18850 ac_res=`eval 'as_val=${'$as_ac_Header'}
18851                  $as_echo "$as_val"'`
18852                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18853 $as_echo "$ac_res" >&6; }
18854
18855 fi
18856 as_val=`eval 'as_val=${'$as_ac_Header'}
18857                  $as_echo "$as_val"'`
18858    if test "x$as_val" = x""yes; then
18859   cat >>confdefs.h <<_ACEOF
18860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18861 _ACEOF
18862
18863 fi
18864
18865 done
18866
18867 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
18868 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
18869 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
18870   $as_echo_n "(cached) " >&6
18871 else
18872   if test "$cross_compiling" = yes; then
18873   ac_cv_func_malloc_0_nonnull=no
18874 else
18875   cat >conftest.$ac_ext <<_ACEOF
18876 /* confdefs.h.  */
18877 _ACEOF
18878 cat confdefs.h >>conftest.$ac_ext
18879 cat >>conftest.$ac_ext <<_ACEOF
18880 /* end confdefs.h.  */
18881 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
18882 # include <stdlib.h>
18883 #else
18884 char *malloc ();
18885 #endif
18886
18887 int
18888 main ()
18889 {
18890 return ! malloc (0);
18891   ;
18892   return 0;
18893 }
18894 _ACEOF
18895 rm -f conftest$ac_exeext
18896 if { (ac_try="$ac_link"
18897 case "(($ac_try" in
18898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899   *) ac_try_echo=$ac_try;;
18900 esac
18901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18902 $as_echo "$ac_try_echo") >&5
18903   (eval "$ac_link") 2>&5
18904   ac_status=$?
18905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18907   { (case "(($ac_try" in
18908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18909   *) ac_try_echo=$ac_try;;
18910 esac
18911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18912 $as_echo "$ac_try_echo") >&5
18913   (eval "$ac_try") 2>&5
18914   ac_status=$?
18915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18916   (exit $ac_status); }; }; then
18917   ac_cv_func_malloc_0_nonnull=yes
18918 else
18919   $as_echo "$as_me: program exited with status $ac_status" >&5
18920 $as_echo "$as_me: failed program was:" >&5
18921 sed 's/^/| /' conftest.$ac_ext >&5
18922
18923 ( exit $ac_status )
18924 ac_cv_func_malloc_0_nonnull=no
18925 fi
18926 rm -rf conftest.dSYM
18927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18928 fi
18929
18930
18931 fi
18932 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
18933 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
18934 if test $ac_cv_func_malloc_0_nonnull = yes; then
18935   gl_cv_func_malloc_0_nonnull=1
18936 else
18937   gl_cv_func_malloc_0_nonnull=0
18938 fi
18939
18940
18941
18942 cat >>confdefs.h <<_ACEOF
18943 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
18944 _ACEOF
18945
18946
18947
18948
18949
18950
18951
18952
18953
18954   { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
18955 $as_echo_n "checking for a traditional japanese locale... " >&6; }
18956 if test "${gt_cv_locale_ja+set}" = set; then
18957   $as_echo_n "(cached) " >&6
18958 else
18959
18960     cat >conftest.$ac_ext <<_ACEOF
18961 /* confdefs.h.  */
18962 _ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h.  */
18966
18967 #include <locale.h>
18968 #include <time.h>
18969 #if HAVE_LANGINFO_CODESET
18970 # include <langinfo.h>
18971 #endif
18972 #include <stdlib.h>
18973 #include <string.h>
18974 struct tm t;
18975 char buf[16];
18976 int main ()
18977 {
18978   const char *p;
18979   /* Check whether the given locale name is recognized by the system.  */
18980   if (setlocale (LC_ALL, "") == NULL) return 1;
18981   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
18982      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
18983      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
18984      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
18985      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
18986      some unit tests fail.  */
18987 #if HAVE_LANGINFO_CODESET
18988   {
18989     const char *cs = nl_langinfo (CODESET);
18990     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
18991       return 1;
18992   }
18993 #endif
18994 #ifdef __CYGWIN__
18995   /* On Cygwin, avoid locale names without encoding suffix, because the
18996      locale_charset() function relies on the encoding suffix.  Note that
18997      LC_ALL is set on the command line.  */
18998   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
18999 #endif
19000   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
19001      on Cygwin 1.5.x.  */
19002   if (MB_CUR_MAX == 1)
19003     return 1;
19004   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
19005      This excludes the UTF-8 encoding.  */
19006   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
19007   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
19008   for (p = buf; *p != '\0'; p++)
19009     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
19010       return 1;
19011   return 0;
19012 }
19013
19014 _ACEOF
19015     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19016   (eval $ac_link) 2>&5
19017   ac_status=$?
19018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19019   (exit $ac_status); } && test -s conftest$ac_exeext; then
19020       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
19021       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
19022       # configure script would override the LC_ALL setting. Likewise for
19023       # LC_CTYPE, which is also set at the beginning of the configure script.
19024       # Test for the AIX locale name.
19025       if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19026         gt_cv_locale_ja=ja_JP
19027       else
19028         # Test for the locale name with explicit encoding suffix.
19029         if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19030           gt_cv_locale_ja=ja_JP.EUC-JP
19031         else
19032           # Test for the HP-UX, OSF/1, NetBSD locale name.
19033           if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19034             gt_cv_locale_ja=ja_JP.eucJP
19035           else
19036             # Test for the IRIX, FreeBSD locale name.
19037             if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19038               gt_cv_locale_ja=ja_JP.EUC
19039             else
19040               # Test for the Solaris 7 locale name.
19041               if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19042                 gt_cv_locale_ja=ja
19043               else
19044                 # Special test for NetBSD 1.6.
19045                 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
19046                   gt_cv_locale_ja=ja_JP.eucJP
19047                 else
19048                   # None found.
19049                   gt_cv_locale_ja=none
19050                 fi
19051               fi
19052             fi
19053           fi
19054         fi
19055       fi
19056     fi
19057     rm -fr conftest*
19058
19059 fi
19060 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
19061 $as_echo "$gt_cv_locale_ja" >&6; }
19062   LOCALE_JA=$gt_cv_locale_ja
19063
19064
19065
19066
19067
19068   { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
19069 $as_echo_n "checking for a transitional chinese locale... " >&6; }
19070 if test "${gt_cv_locale_zh_CN+set}" = set; then
19071   $as_echo_n "(cached) " >&6
19072 else
19073
19074     cat >conftest.$ac_ext <<_ACEOF
19075 /* confdefs.h.  */
19076 _ACEOF
19077 cat confdefs.h >>conftest.$ac_ext
19078 cat >>conftest.$ac_ext <<_ACEOF
19079 /* end confdefs.h.  */
19080
19081 #include <locale.h>
19082 #include <stdlib.h>
19083 #include <time.h>
19084 #if HAVE_LANGINFO_CODESET
19085 # include <langinfo.h>
19086 #endif
19087 #include <stdlib.h>
19088 #include <string.h>
19089 struct tm t;
19090 char buf[16];
19091 int main ()
19092 {
19093   const char *p;
19094   /* Check whether the given locale name is recognized by the system.  */
19095   if (setlocale (LC_ALL, "") == NULL) return 1;
19096   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
19097      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
19098      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
19099      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
19100      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
19101      some unit tests fail.  */
19102 #if HAVE_LANGINFO_CODESET
19103   {
19104     const char *cs = nl_langinfo (CODESET);
19105     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
19106       return 1;
19107   }
19108 #endif
19109 #ifdef __CYGWIN__
19110   /* On Cygwin, avoid locale names without encoding suffix, because the
19111      locale_charset() function relies on the encoding suffix.  Note that
19112      LC_ALL is set on the command line.  */
19113   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
19114 #endif
19115   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
19116      This excludes the UTF-8 encoding.  */
19117   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
19118   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
19119   for (p = buf; *p != '\0'; p++)
19120     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
19121       return 1;
19122   /* Check whether a typical GB18030 multibyte sequence is recognized as a
19123      single wide character.  This excludes the GB2312 and GBK encodings.  */
19124   if (mblen ("\203\062\332\066", 5) != 4)
19125     return 1;
19126   return 0;
19127 }
19128
19129 _ACEOF
19130     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19131   (eval $ac_link) 2>&5
19132   ac_status=$?
19133   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134   (exit $ac_status); } && test -s conftest$ac_exeext; then
19135       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
19136       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
19137       # configure script would override the LC_ALL setting. Likewise for
19138       # LC_CTYPE, which is also set at the beginning of the configure script.
19139       # Test for the locale name without encoding suffix.
19140       if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19141         gt_cv_locale_zh_CN=zh_CN
19142       else
19143         # Test for the locale name with explicit encoding suffix.
19144         if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19145           gt_cv_locale_zh_CN=zh_CN.GB18030
19146         else
19147           # None found.
19148           gt_cv_locale_zh_CN=none
19149         fi
19150       fi
19151     else
19152       # If there was a link error, due to mblen(), the system is so old that
19153       # it certainly doesn't have a chinese locale.
19154       gt_cv_locale_zh_CN=none
19155     fi
19156     rm -fr conftest*
19157
19158 fi
19159 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
19160 $as_echo "$gt_cv_locale_zh_CN" >&6; }
19161   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
19162
19163
19164
19165
19166   { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
19167 $as_echo_n "checking for a french Unicode locale... " >&6; }
19168 if test "${gt_cv_locale_fr_utf8+set}" = set; then
19169   $as_echo_n "(cached) " >&6
19170 else
19171
19172     cat >conftest.$ac_ext <<_ACEOF
19173 /* confdefs.h.  */
19174 _ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h.  */
19178
19179 #include <locale.h>
19180 #include <time.h>
19181 #if HAVE_LANGINFO_CODESET
19182 # include <langinfo.h>
19183 #endif
19184 #include <stdlib.h>
19185 #include <string.h>
19186 struct tm t;
19187 char buf[16];
19188 int main () {
19189   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
19190      imitates locale dependent behaviour by looking at the environment
19191      variables, and all locales use the UTF-8 encoding.  */
19192 #if !(defined __BEOS__ || defined __HAIKU__)
19193   /* Check whether the given locale name is recognized by the system.  */
19194   if (setlocale (LC_ALL, "") == NULL) return 1;
19195   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
19196      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
19197      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
19198      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
19199      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
19200      some unit tests fail.  */
19201 # if HAVE_LANGINFO_CODESET
19202   {
19203     const char *cs = nl_langinfo (CODESET);
19204     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
19205       return 1;
19206   }
19207 # endif
19208 # ifdef __CYGWIN__
19209   /* On Cygwin, avoid locale names without encoding suffix, because the
19210      locale_charset() function relies on the encoding suffix.  Note that
19211      LC_ALL is set on the command line.  */
19212   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
19213 # endif
19214   /* Check whether in the abbreviation of the second month, the second
19215      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
19216      two bytes long, with UTF-8 encoding.  */
19217   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
19218   if (strftime (buf, sizeof (buf), "%b", &t) < 4
19219       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
19220     return 1;
19221 #endif
19222   /* Check whether the decimal separator is a comma.
19223      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
19224      are nl_langinfo(RADIXCHAR) are both ".".  */
19225   if (localeconv () ->decimal_point[0] != ',') return 1;
19226   return 0;
19227 }
19228
19229 _ACEOF
19230     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19231   (eval $ac_link) 2>&5
19232   ac_status=$?
19233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234   (exit $ac_status); } && test -s conftest$ac_exeext; then
19235       # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
19236       # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
19237       # configure script would override the LC_ALL setting. Likewise for
19238       # LC_CTYPE, which is also set at the beginning of the configure script.
19239       # Test for the usual locale name.
19240       if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19241         gt_cv_locale_fr_utf8=fr_FR
19242       else
19243         # Test for the locale name with explicit encoding suffix.
19244         if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19245           gt_cv_locale_fr_utf8=fr_FR.UTF-8
19246         else
19247           # Test for the Solaris 7 locale name.
19248           if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
19249             gt_cv_locale_fr_utf8=fr.UTF-8
19250           else
19251             # None found.
19252             gt_cv_locale_fr_utf8=none
19253           fi
19254         fi
19255       fi
19256     fi
19257     rm -fr conftest*
19258
19259 fi
19260 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
19261 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
19262   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
19263
19264
19265
19266   GNULIB_MEMCHR=0;
19267   GNULIB_MEMMEM=0;
19268   GNULIB_MEMPCPY=0;
19269   GNULIB_MEMRCHR=0;
19270   GNULIB_RAWMEMCHR=0;
19271   GNULIB_STPCPY=0;
19272   GNULIB_STPNCPY=0;
19273   GNULIB_STRCHRNUL=0;
19274   GNULIB_STRDUP=0;
19275   GNULIB_STRNDUP=0;
19276   GNULIB_STRNLEN=0;
19277   GNULIB_STRPBRK=0;
19278   GNULIB_STRSEP=0;
19279   GNULIB_STRSTR=0;
19280   GNULIB_STRCASESTR=0;
19281   GNULIB_STRTOK_R=0;
19282   GNULIB_MBSLEN=0;
19283   GNULIB_MBSNLEN=0;
19284   GNULIB_MBSCHR=0;
19285   GNULIB_MBSRCHR=0;
19286   GNULIB_MBSSTR=0;
19287   GNULIB_MBSCASECMP=0;
19288   GNULIB_MBSNCASECMP=0;
19289   GNULIB_MBSPCASECMP=0;
19290   GNULIB_MBSCASESTR=0;
19291   GNULIB_MBSCSPN=0;
19292   GNULIB_MBSPBRK=0;
19293   GNULIB_MBSSPN=0;
19294   GNULIB_MBSSEP=0;
19295   GNULIB_MBSTOK_R=0;
19296   GNULIB_STRERROR=0;
19297   GNULIB_STRSIGNAL=0;
19298   GNULIB_STRVERSCMP=0;
19299   HAVE_MBSLEN=0;
19300     HAVE_DECL_MEMMEM=1;
19301   HAVE_MEMPCPY=1;
19302   HAVE_DECL_MEMRCHR=1;
19303   HAVE_RAWMEMCHR=1;
19304   HAVE_STPCPY=1;
19305   HAVE_STPNCPY=1;
19306   HAVE_STRCHRNUL=1;
19307   HAVE_DECL_STRDUP=1;
19308   HAVE_DECL_STRNDUP=1;
19309   HAVE_DECL_STRNLEN=1;
19310   HAVE_STRPBRK=1;
19311   HAVE_STRSEP=1;
19312   HAVE_STRCASESTR=1;
19313   HAVE_DECL_STRTOK_R=1;
19314   HAVE_DECL_STRERROR=1;
19315   HAVE_DECL_STRSIGNAL=1;
19316   HAVE_STRVERSCMP=1;
19317   REPLACE_MEMCHR=0;
19318   REPLACE_MEMMEM=0;
19319   REPLACE_STRDUP=0;
19320   REPLACE_STRSTR=0;
19321   REPLACE_STRCASESTR=0;
19322   REPLACE_STRERROR=0;
19323   REPLACE_STRNDUP=0;
19324   REPLACE_STRSIGNAL=0;
19325   REPLACE_STRTOK_R=0;
19326   UNDEFINE_STRTOK_R=0;
19327
19328
19329   { $as_echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5
19330 $as_echo_n "checking whether mbrtowc and mbstate_t are properly declared... " >&6; }
19331 if test "${ac_cv_func_mbrtowc+set}" = set; then
19332   $as_echo_n "(cached) " >&6
19333 else
19334   cat >conftest.$ac_ext <<_ACEOF
19335 /* confdefs.h.  */
19336 _ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h.  */
19340 #include <wchar.h>
19341 int
19342 main ()
19343 {
19344 wchar_t wc;
19345               char const s[] = "";
19346               size_t n = 1;
19347               mbstate_t state;
19348               return ! (sizeof state && (mbrtowc) (&wc, s, n, &state));
19349   ;
19350   return 0;
19351 }
19352 _ACEOF
19353 rm -f conftest.$ac_objext conftest$ac_exeext
19354 if { (ac_try="$ac_link"
19355 case "(($ac_try" in
19356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357   *) ac_try_echo=$ac_try;;
19358 esac
19359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19360 $as_echo "$ac_try_echo") >&5
19361   (eval "$ac_link") 2>conftest.er1
19362   ac_status=$?
19363   grep -v '^ *+' conftest.er1 >conftest.err
19364   rm -f conftest.er1
19365   cat conftest.err >&5
19366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367   (exit $ac_status); } && {
19368          test -z "$ac_c_werror_flag" ||
19369          test ! -s conftest.err
19370        } && test -s conftest$ac_exeext && {
19371          test "$cross_compiling" = yes ||
19372          $as_test_x conftest$ac_exeext
19373        }; then
19374   ac_cv_func_mbrtowc=yes
19375 else
19376   $as_echo "$as_me: failed program was:" >&5
19377 sed 's/^/| /' conftest.$ac_ext >&5
19378
19379         ac_cv_func_mbrtowc=no
19380 fi
19381
19382 rm -rf conftest.dSYM
19383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19384       conftest$ac_exeext conftest.$ac_ext
19385 fi
19386 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5
19387 $as_echo "$ac_cv_func_mbrtowc" >&6; }
19388   if test $ac_cv_func_mbrtowc = yes; then
19389
19390 cat >>confdefs.h <<\_ACEOF
19391 #define HAVE_MBRTOWC 1
19392 _ACEOF
19393
19394   fi
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406
19407   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
19408   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
19409   # irrelevant for anonymous mappings.
19410   { $as_echo "$as_me:$LINENO: checking for mmap" >&5
19411 $as_echo_n "checking for mmap... " >&6; }
19412 if test "${ac_cv_func_mmap+set}" = set; then
19413   $as_echo_n "(cached) " >&6
19414 else
19415   cat >conftest.$ac_ext <<_ACEOF
19416 /* confdefs.h.  */
19417 _ACEOF
19418 cat confdefs.h >>conftest.$ac_ext
19419 cat >>conftest.$ac_ext <<_ACEOF
19420 /* end confdefs.h.  */
19421 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
19422    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19423 #define mmap innocuous_mmap
19424
19425 /* System header to define __stub macros and hopefully few prototypes,
19426     which can conflict with char mmap (); below.
19427     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19428     <limits.h> exists even on freestanding compilers.  */
19429
19430 #ifdef __STDC__
19431 # include <limits.h>
19432 #else
19433 # include <assert.h>
19434 #endif
19435
19436 #undef mmap
19437
19438 /* Override any GCC internal prototype to avoid an error.
19439    Use char because int might match the return type of a GCC
19440    builtin and then its argument prototype would still apply.  */
19441 #ifdef __cplusplus
19442 extern "C"
19443 #endif
19444 char mmap ();
19445 /* The GNU C library defines this for functions which it implements
19446     to always fail with ENOSYS.  Some functions are actually named
19447     something starting with __ and the normal name is an alias.  */
19448 #if defined __stub_mmap || defined __stub___mmap
19449 choke me
19450 #endif
19451
19452 int
19453 main ()
19454 {
19455 return mmap ();
19456   ;
19457   return 0;
19458 }
19459 _ACEOF
19460 rm -f conftest.$ac_objext conftest$ac_exeext
19461 if { (ac_try="$ac_link"
19462 case "(($ac_try" in
19463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19464   *) ac_try_echo=$ac_try;;
19465 esac
19466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19467 $as_echo "$ac_try_echo") >&5
19468   (eval "$ac_link") 2>conftest.er1
19469   ac_status=$?
19470   grep -v '^ *+' conftest.er1 >conftest.err
19471   rm -f conftest.er1
19472   cat conftest.err >&5
19473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19474   (exit $ac_status); } && {
19475          test -z "$ac_c_werror_flag" ||
19476          test ! -s conftest.err
19477        } && test -s conftest$ac_exeext && {
19478          test "$cross_compiling" = yes ||
19479          $as_test_x conftest$ac_exeext
19480        }; then
19481   ac_cv_func_mmap=yes
19482 else
19483   $as_echo "$as_me: failed program was:" >&5
19484 sed 's/^/| /' conftest.$ac_ext >&5
19485
19486         ac_cv_func_mmap=no
19487 fi
19488
19489 rm -rf conftest.dSYM
19490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19491       conftest$ac_exeext conftest.$ac_ext
19492 fi
19493 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
19494 $as_echo "$ac_cv_func_mmap" >&6; }
19495 if test "x$ac_cv_func_mmap" = x""yes; then
19496   gl_have_mmap=yes
19497 else
19498   gl_have_mmap=no
19499 fi
19500
19501
19502   # Try to allow MAP_ANONYMOUS.
19503   gl_have_mmap_anonymous=no
19504   if test $gl_have_mmap = yes; then
19505     { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
19506 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
19507     cat >conftest.$ac_ext <<_ACEOF
19508 /* confdefs.h.  */
19509 _ACEOF
19510 cat confdefs.h >>conftest.$ac_ext
19511 cat >>conftest.$ac_ext <<_ACEOF
19512 /* end confdefs.h.  */
19513
19514 #include <sys/mman.h>
19515 #ifdef MAP_ANONYMOUS
19516     I cant identify this map.
19517 #endif
19518
19519 _ACEOF
19520 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19521   $EGREP "I cant identify this map." >/dev/null 2>&1; then
19522   gl_have_mmap_anonymous=yes
19523 fi
19524 rm -f conftest*
19525
19526     if test $gl_have_mmap_anonymous != yes; then
19527       cat >conftest.$ac_ext <<_ACEOF
19528 /* confdefs.h.  */
19529 _ACEOF
19530 cat confdefs.h >>conftest.$ac_ext
19531 cat >>conftest.$ac_ext <<_ACEOF
19532 /* end confdefs.h.  */
19533
19534 #include <sys/mman.h>
19535 #ifdef MAP_ANON
19536     I cant identify this map.
19537 #endif
19538
19539 _ACEOF
19540 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19541   $EGREP "I cant identify this map." >/dev/null 2>&1; then
19542
19543 cat >>confdefs.h <<\_ACEOF
19544 #define MAP_ANONYMOUS MAP_ANON
19545 _ACEOF
19546
19547          gl_have_mmap_anonymous=yes
19548 fi
19549 rm -f conftest*
19550
19551     fi
19552     { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
19553 $as_echo "$gl_have_mmap_anonymous" >&6; }
19554     if test $gl_have_mmap_anonymous = yes; then
19555
19556 cat >>confdefs.h <<\_ACEOF
19557 #define HAVE_MAP_ANONYMOUS 1
19558 _ACEOF
19559
19560     fi
19561   fi
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586 for ac_func in memchr
19587 do
19588 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19589 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19590 $as_echo_n "checking for $ac_func... " >&6; }
19591 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19592   $as_echo_n "(cached) " >&6
19593 else
19594   cat >conftest.$ac_ext <<_ACEOF
19595 /* confdefs.h.  */
19596 _ACEOF
19597 cat confdefs.h >>conftest.$ac_ext
19598 cat >>conftest.$ac_ext <<_ACEOF
19599 /* end confdefs.h.  */
19600 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19601    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19602 #define $ac_func innocuous_$ac_func
19603
19604 /* System header to define __stub macros and hopefully few prototypes,
19605     which can conflict with char $ac_func (); below.
19606     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19607     <limits.h> exists even on freestanding compilers.  */
19608
19609 #ifdef __STDC__
19610 # include <limits.h>
19611 #else
19612 # include <assert.h>
19613 #endif
19614
19615 #undef $ac_func
19616
19617 /* Override any GCC internal prototype to avoid an error.
19618    Use char because int might match the return type of a GCC
19619    builtin and then its argument prototype would still apply.  */
19620 #ifdef __cplusplus
19621 extern "C"
19622 #endif
19623 char $ac_func ();
19624 /* The GNU C library defines this for functions which it implements
19625     to always fail with ENOSYS.  Some functions are actually named
19626     something starting with __ and the normal name is an alias.  */
19627 #if defined __stub_$ac_func || defined __stub___$ac_func
19628 choke me
19629 #endif
19630
19631 int
19632 main ()
19633 {
19634 return $ac_func ();
19635   ;
19636   return 0;
19637 }
19638 _ACEOF
19639 rm -f conftest.$ac_objext conftest$ac_exeext
19640 if { (ac_try="$ac_link"
19641 case "(($ac_try" in
19642   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19643   *) ac_try_echo=$ac_try;;
19644 esac
19645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19646 $as_echo "$ac_try_echo") >&5
19647   (eval "$ac_link") 2>conftest.er1
19648   ac_status=$?
19649   grep -v '^ *+' conftest.er1 >conftest.err
19650   rm -f conftest.er1
19651   cat conftest.err >&5
19652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653   (exit $ac_status); } && {
19654          test -z "$ac_c_werror_flag" ||
19655          test ! -s conftest.err
19656        } && test -s conftest$ac_exeext && {
19657          test "$cross_compiling" = yes ||
19658          $as_test_x conftest$ac_exeext
19659        }; then
19660   eval "$as_ac_var=yes"
19661 else
19662   $as_echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19664
19665         eval "$as_ac_var=no"
19666 fi
19667
19668 rm -rf conftest.dSYM
19669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19670       conftest$ac_exeext conftest.$ac_ext
19671 fi
19672 ac_res=`eval 'as_val=${'$as_ac_var'}
19673                  $as_echo "$as_val"'`
19674                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19675 $as_echo "$ac_res" >&6; }
19676 as_val=`eval 'as_val=${'$as_ac_var'}
19677                  $as_echo "$as_val"'`
19678    if test "x$as_val" = x""yes; then
19679   cat >>confdefs.h <<_ACEOF
19680 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19681 _ACEOF
19682
19683 else
19684
19685     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19686
19687 fi
19688 done
19689
19690
19691   if test $ac_cv_func_memchr = no; then
19692
19693
19694 for ac_header in bp-sym.h
19695 do
19696 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19697 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19698   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19699 $as_echo_n "checking for $ac_header... " >&6; }
19700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19701   $as_echo_n "(cached) " >&6
19702 fi
19703 ac_res=`eval 'as_val=${'$as_ac_Header'}
19704                  $as_echo "$as_val"'`
19705                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19706 $as_echo "$ac_res" >&6; }
19707 else
19708   # Is the header compilable?
19709 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19710 $as_echo_n "checking $ac_header usability... " >&6; }
19711 cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h.  */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h.  */
19717 $ac_includes_default
19718 #include <$ac_header>
19719 _ACEOF
19720 rm -f conftest.$ac_objext
19721 if { (ac_try="$ac_compile"
19722 case "(($ac_try" in
19723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19724   *) ac_try_echo=$ac_try;;
19725 esac
19726 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19727 $as_echo "$ac_try_echo") >&5
19728   (eval "$ac_compile") 2>conftest.er1
19729   ac_status=$?
19730   grep -v '^ *+' conftest.er1 >conftest.err
19731   rm -f conftest.er1
19732   cat conftest.err >&5
19733   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734   (exit $ac_status); } && {
19735          test -z "$ac_c_werror_flag" ||
19736          test ! -s conftest.err
19737        } && test -s conftest.$ac_objext; then
19738   ac_header_compiler=yes
19739 else
19740   $as_echo "$as_me: failed program was:" >&5
19741 sed 's/^/| /' conftest.$ac_ext >&5
19742
19743         ac_header_compiler=no
19744 fi
19745
19746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19747 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19748 $as_echo "$ac_header_compiler" >&6; }
19749
19750 # Is the header present?
19751 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19752 $as_echo_n "checking $ac_header presence... " >&6; }
19753 cat >conftest.$ac_ext <<_ACEOF
19754 /* confdefs.h.  */
19755 _ACEOF
19756 cat confdefs.h >>conftest.$ac_ext
19757 cat >>conftest.$ac_ext <<_ACEOF
19758 /* end confdefs.h.  */
19759 #include <$ac_header>
19760 _ACEOF
19761 if { (ac_try="$ac_cpp conftest.$ac_ext"
19762 case "(($ac_try" in
19763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19764   *) ac_try_echo=$ac_try;;
19765 esac
19766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19767 $as_echo "$ac_try_echo") >&5
19768   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19769   ac_status=$?
19770   grep -v '^ *+' conftest.er1 >conftest.err
19771   rm -f conftest.er1
19772   cat conftest.err >&5
19773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774   (exit $ac_status); } >/dev/null && {
19775          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19776          test ! -s conftest.err
19777        }; then
19778   ac_header_preproc=yes
19779 else
19780   $as_echo "$as_me: failed program was:" >&5
19781 sed 's/^/| /' conftest.$ac_ext >&5
19782
19783   ac_header_preproc=no
19784 fi
19785
19786 rm -f conftest.err conftest.$ac_ext
19787 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19788 $as_echo "$ac_header_preproc" >&6; }
19789
19790 # So?  What about this header?
19791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19792   yes:no: )
19793     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19794 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19795     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19796 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19797     ac_header_preproc=yes
19798     ;;
19799   no:yes:* )
19800     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19801 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19802     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19803 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19804     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19805 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19806     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19807 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19808     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19809 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19810     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19811 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19812     ( cat <<\_ASBOX
19813 ## ------------------------------ ##
19814 ## Report this to bug-tar@gnu.org ##
19815 ## ------------------------------ ##
19816 _ASBOX
19817      ) | sed "s/^/$as_me: WARNING:     /" >&2
19818     ;;
19819 esac
19820 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19821 $as_echo_n "checking for $ac_header... " >&6; }
19822 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19823   $as_echo_n "(cached) " >&6
19824 else
19825   eval "$as_ac_Header=\$ac_header_preproc"
19826 fi
19827 ac_res=`eval 'as_val=${'$as_ac_Header'}
19828                  $as_echo "$as_val"'`
19829                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19830 $as_echo "$ac_res" >&6; }
19831
19832 fi
19833 as_val=`eval 'as_val=${'$as_ac_Header'}
19834                  $as_echo "$as_val"'`
19835    if test "x$as_val" = x""yes; then
19836   cat >>confdefs.h <<_ACEOF
19837 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19838 _ACEOF
19839
19840 fi
19841
19842 done
19843
19844
19845     REPLACE_MEMCHR=1
19846   fi
19847
19848   if test $ac_cv_func_memchr = yes; then
19849     # Detect platform-specific bugs in some versions of glibc:
19850     # memchr should not dereference anything with length 0
19851     #   http://bugzilla.redhat.com/499689
19852     # memchr should not dereference overestimated length after a match
19853     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
19854     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
19855     # Assume that memchr works on platforms that lack mprotect.
19856     { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
19857 $as_echo_n "checking whether memchr works... " >&6; }
19858 if test "${gl_cv_func_memchr_works+set}" = set; then
19859   $as_echo_n "(cached) " >&6
19860 else
19861   if test "$cross_compiling" = yes; then
19862          gl_cv_func_memchr_works="guessing no"
19863 else
19864   cat >conftest.$ac_ext <<_ACEOF
19865 /* confdefs.h.  */
19866 _ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h.  */
19870
19871 #include <string.h>
19872 #if HAVE_SYS_MMAN_H
19873 # include <fcntl.h>
19874 # include <unistd.h>
19875 # include <sys/types.h>
19876 # include <sys/mman.h>
19877 # ifndef MAP_FILE
19878 #  define MAP_FILE 0
19879 # endif
19880 #endif
19881
19882 int
19883 main ()
19884 {
19885
19886   char *fence = NULL;
19887 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
19888 # if HAVE_MAP_ANONYMOUS
19889   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
19890   const int fd = -1;
19891 # else /* !HAVE_MAP_ANONYMOUS */
19892   const int flags = MAP_FILE | MAP_PRIVATE;
19893   int fd = open ("/dev/zero", O_RDONLY, 0666);
19894   if (fd >= 0)
19895 # endif
19896     {
19897       int pagesize = getpagesize ();
19898       char *two_pages =
19899         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
19900                        flags, fd, 0);
19901       if (two_pages != (char *)(-1)
19902           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
19903         fence = two_pages + pagesize;
19904     }
19905 #endif
19906   if (fence)
19907     {
19908       if (memchr (fence, 0, 0))
19909         return 1;
19910       strcpy (fence - 9, "12345678");
19911       if (memchr (fence - 9, 0, 79) != fence - 1)
19912         return 2;
19913     }
19914   return 0;
19915
19916   ;
19917   return 0;
19918 }
19919 _ACEOF
19920 rm -f conftest$ac_exeext
19921 if { (ac_try="$ac_link"
19922 case "(($ac_try" in
19923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19924   *) ac_try_echo=$ac_try;;
19925 esac
19926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19927 $as_echo "$ac_try_echo") >&5
19928   (eval "$ac_link") 2>&5
19929   ac_status=$?
19930   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19932   { (case "(($ac_try" in
19933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19934   *) ac_try_echo=$ac_try;;
19935 esac
19936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19937 $as_echo "$ac_try_echo") >&5
19938   (eval "$ac_try") 2>&5
19939   ac_status=$?
19940   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19941   (exit $ac_status); }; }; then
19942   gl_cv_func_memchr_works=yes
19943 else
19944   $as_echo "$as_me: program exited with status $ac_status" >&5
19945 $as_echo "$as_me: failed program was:" >&5
19946 sed 's/^/| /' conftest.$ac_ext >&5
19947
19948 ( exit $ac_status )
19949 gl_cv_func_memchr_works=no
19950 fi
19951 rm -rf conftest.dSYM
19952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19953 fi
19954
19955
19956 fi
19957 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
19958 $as_echo "$gl_cv_func_memchr_works" >&6; }
19959     if test "$gl_cv_func_memchr_works" != yes; then
19960
19961
19962 for ac_header in bp-sym.h
19963 do
19964 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19966   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19967 $as_echo_n "checking for $ac_header... " >&6; }
19968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19969   $as_echo_n "(cached) " >&6
19970 fi
19971 ac_res=`eval 'as_val=${'$as_ac_Header'}
19972                  $as_echo "$as_val"'`
19973                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19974 $as_echo "$ac_res" >&6; }
19975 else
19976   # Is the header compilable?
19977 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19978 $as_echo_n "checking $ac_header usability... " >&6; }
19979 cat >conftest.$ac_ext <<_ACEOF
19980 /* confdefs.h.  */
19981 _ACEOF
19982 cat confdefs.h >>conftest.$ac_ext
19983 cat >>conftest.$ac_ext <<_ACEOF
19984 /* end confdefs.h.  */
19985 $ac_includes_default
19986 #include <$ac_header>
19987 _ACEOF
19988 rm -f conftest.$ac_objext
19989 if { (ac_try="$ac_compile"
19990 case "(($ac_try" in
19991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19992   *) ac_try_echo=$ac_try;;
19993 esac
19994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19995 $as_echo "$ac_try_echo") >&5
19996   (eval "$ac_compile") 2>conftest.er1
19997   ac_status=$?
19998   grep -v '^ *+' conftest.er1 >conftest.err
19999   rm -f conftest.er1
20000   cat conftest.err >&5
20001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20002   (exit $ac_status); } && {
20003          test -z "$ac_c_werror_flag" ||
20004          test ! -s conftest.err
20005        } && test -s conftest.$ac_objext; then
20006   ac_header_compiler=yes
20007 else
20008   $as_echo "$as_me: failed program was:" >&5
20009 sed 's/^/| /' conftest.$ac_ext >&5
20010
20011         ac_header_compiler=no
20012 fi
20013
20014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20015 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20016 $as_echo "$ac_header_compiler" >&6; }
20017
20018 # Is the header present?
20019 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20020 $as_echo_n "checking $ac_header presence... " >&6; }
20021 cat >conftest.$ac_ext <<_ACEOF
20022 /* confdefs.h.  */
20023 _ACEOF
20024 cat confdefs.h >>conftest.$ac_ext
20025 cat >>conftest.$ac_ext <<_ACEOF
20026 /* end confdefs.h.  */
20027 #include <$ac_header>
20028 _ACEOF
20029 if { (ac_try="$ac_cpp conftest.$ac_ext"
20030 case "(($ac_try" in
20031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20032   *) ac_try_echo=$ac_try;;
20033 esac
20034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20035 $as_echo "$ac_try_echo") >&5
20036   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20037   ac_status=$?
20038   grep -v '^ *+' conftest.er1 >conftest.err
20039   rm -f conftest.er1
20040   cat conftest.err >&5
20041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042   (exit $ac_status); } >/dev/null && {
20043          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20044          test ! -s conftest.err
20045        }; then
20046   ac_header_preproc=yes
20047 else
20048   $as_echo "$as_me: failed program was:" >&5
20049 sed 's/^/| /' conftest.$ac_ext >&5
20050
20051   ac_header_preproc=no
20052 fi
20053
20054 rm -f conftest.err conftest.$ac_ext
20055 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20056 $as_echo "$ac_header_preproc" >&6; }
20057
20058 # So?  What about this header?
20059 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20060   yes:no: )
20061     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20062 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20063     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20064 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20065     ac_header_preproc=yes
20066     ;;
20067   no:yes:* )
20068     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20069 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20071 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20072     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20073 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20074     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20075 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20076     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20077 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20078     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20079 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20080     ( cat <<\_ASBOX
20081 ## ------------------------------ ##
20082 ## Report this to bug-tar@gnu.org ##
20083 ## ------------------------------ ##
20084 _ASBOX
20085      ) | sed "s/^/$as_me: WARNING:     /" >&2
20086     ;;
20087 esac
20088 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20089 $as_echo_n "checking for $ac_header... " >&6; }
20090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20091   $as_echo_n "(cached) " >&6
20092 else
20093   eval "$as_ac_Header=\$ac_header_preproc"
20094 fi
20095 ac_res=`eval 'as_val=${'$as_ac_Header'}
20096                  $as_echo "$as_val"'`
20097                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20098 $as_echo "$ac_res" >&6; }
20099
20100 fi
20101 as_val=`eval 'as_val=${'$as_ac_Header'}
20102                  $as_echo "$as_val"'`
20103    if test "x$as_val" = x""yes; then
20104   cat >>confdefs.h <<_ACEOF
20105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20106 _ACEOF
20107
20108 fi
20109
20110 done
20111
20112
20113       REPLACE_MEMCHR=1
20114
20115
20116
20117
20118
20119
20120
20121
20122   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
20123
20124     fi
20125   fi
20126
20127 { $as_echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
20128 $as_echo_n "checking whether memrchr is declared... " >&6; }
20129 if test "${ac_cv_have_decl_memrchr+set}" = set; then
20130   $as_echo_n "(cached) " >&6
20131 else
20132   cat >conftest.$ac_ext <<_ACEOF
20133 /* confdefs.h.  */
20134 _ACEOF
20135 cat confdefs.h >>conftest.$ac_ext
20136 cat >>conftest.$ac_ext <<_ACEOF
20137 /* end confdefs.h.  */
20138 $ac_includes_default
20139 int
20140 main ()
20141 {
20142 #ifndef memrchr
20143   (void) memrchr;
20144 #endif
20145
20146   ;
20147   return 0;
20148 }
20149 _ACEOF
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154   *) ac_try_echo=$ac_try;;
20155 esac
20156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20157 $as_echo "$ac_try_echo") >&5
20158   (eval "$ac_compile") 2>conftest.er1
20159   ac_status=$?
20160   grep -v '^ *+' conftest.er1 >conftest.err
20161   rm -f conftest.er1
20162   cat conftest.err >&5
20163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); } && {
20165          test -z "$ac_c_werror_flag" ||
20166          test ! -s conftest.err
20167        } && test -s conftest.$ac_objext; then
20168   ac_cv_have_decl_memrchr=yes
20169 else
20170   $as_echo "$as_me: failed program was:" >&5
20171 sed 's/^/| /' conftest.$ac_ext >&5
20172
20173         ac_cv_have_decl_memrchr=no
20174 fi
20175
20176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20177 fi
20178 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
20179 $as_echo "$ac_cv_have_decl_memrchr" >&6; }
20180 if test "x$ac_cv_have_decl_memrchr" = x""yes; then
20181
20182 cat >>confdefs.h <<_ACEOF
20183 #define HAVE_DECL_MEMRCHR 1
20184 _ACEOF
20185
20186
20187 else
20188   cat >>confdefs.h <<_ACEOF
20189 #define HAVE_DECL_MEMRCHR 0
20190 _ACEOF
20191
20192
20193 fi
20194
20195
20196
20197   GNULIB_MKTIME=0;
20198   GNULIB_NANOSLEEP=0;
20199   GNULIB_STRPTIME=0;
20200   GNULIB_TIMEGM=0;
20201         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
20202   REPLACE_MKTIME=GNULIB_PORTCHECK;
20203   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
20204   REPLACE_STRPTIME=GNULIB_PORTCHECK;
20205   REPLACE_TIMEGM=GNULIB_PORTCHECK;
20206
20207
20208
20209
20210
20211
20212
20213
20214     { $as_echo "$as_me:$LINENO: checking whether unlink honors trailing slashes" >&5
20215 $as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
20216 if test "${gl_cv_func_unlink_works+set}" = set; then
20217   $as_echo_n "(cached) " >&6
20218 else
20219   touch conftest.file
20220      # Assume that if we have lstat, we can also check symlinks.
20221      if test $ac_cv_func_lstat = yes; then
20222        ln -s conftest.file conftest.lnk
20223      fi
20224      if test "$cross_compiling" = yes; then
20225   gl_cv_func_unlink_works="guessing no"
20226 else
20227   cat >conftest.$ac_ext <<_ACEOF
20228 /* confdefs.h.  */
20229 _ACEOF
20230 cat confdefs.h >>conftest.$ac_ext
20231 cat >>conftest.$ac_ext <<_ACEOF
20232 /* end confdefs.h.  */
20233 #include <unistd.h>
20234            #include <errno.h>
20235
20236 int
20237 main ()
20238 {
20239 if (!unlink ("conftest.file/") || errno != ENOTDIR) return 1;
20240 #if HAVE_LSTAT
20241       if (!unlink ("conftest.lnk/") || errno != ENOTDIR) return 2;
20242 #endif
20243
20244   ;
20245   return 0;
20246 }
20247 _ACEOF
20248 rm -f conftest$ac_exeext
20249 if { (ac_try="$ac_link"
20250 case "(($ac_try" in
20251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252   *) ac_try_echo=$ac_try;;
20253 esac
20254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20255 $as_echo "$ac_try_echo") >&5
20256   (eval "$ac_link") 2>&5
20257   ac_status=$?
20258   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20259   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20260   { (case "(($ac_try" in
20261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262   *) ac_try_echo=$ac_try;;
20263 esac
20264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20265 $as_echo "$ac_try_echo") >&5
20266   (eval "$ac_try") 2>&5
20267   ac_status=$?
20268   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269   (exit $ac_status); }; }; then
20270   gl_cv_func_unlink_works=yes
20271 else
20272   $as_echo "$as_me: program exited with status $ac_status" >&5
20273 $as_echo "$as_me: failed program was:" >&5
20274 sed 's/^/| /' conftest.$ac_ext >&5
20275
20276 ( exit $ac_status )
20277 gl_cv_func_unlink_works=no
20278 fi
20279 rm -rf conftest.dSYM
20280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20281 fi
20282
20283
20284      rm -f conftest.file conftest.lnk
20285 fi
20286 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_works" >&5
20287 $as_echo "$gl_cv_func_unlink_works" >&6; }
20288   if test x"$gl_cv_func_unlink_works" != xyes; then
20289     REPLACE_UNLINK=1
20290
20291
20292
20293
20294
20295
20296
20297
20298   gl_LIBOBJS="$gl_LIBOBJS unlink.$ac_objext"
20299
20300   fi
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313
20314
20315
20316   if test $ac_cv_func_setenv = no; then
20317     HAVE_SETENV=0
20318   else
20319     { $as_echo "$as_me:$LINENO: checking whether setenv validates arguments" >&5
20320 $as_echo_n "checking whether setenv validates arguments... " >&6; }
20321 if test "${gl_cv_func_setenv_works+set}" = set; then
20322   $as_echo_n "(cached) " >&6
20323 else
20324   if test "$cross_compiling" = yes; then
20325   gl_cv_func_setenv_works="guessing no"
20326 else
20327   cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h.  */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h.  */
20333
20334        #include <stdlib.h>
20335        #include <errno.h>
20336
20337 int
20338 main ()
20339 {
20340
20341        if (setenv ("", "", 0) != -1) return 1;
20342        if (errno != EINVAL) return 2;
20343        if (setenv ("a", "=", 1) != 0) return 3;
20344        if (strcmp (getenv ("a"), "=") != 0) return 4;
20345
20346   ;
20347   return 0;
20348 }
20349 _ACEOF
20350 rm -f conftest$ac_exeext
20351 if { (ac_try="$ac_link"
20352 case "(($ac_try" in
20353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354   *) ac_try_echo=$ac_try;;
20355 esac
20356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20357 $as_echo "$ac_try_echo") >&5
20358   (eval "$ac_link") 2>&5
20359   ac_status=$?
20360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20362   { (case "(($ac_try" in
20363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20364   *) ac_try_echo=$ac_try;;
20365 esac
20366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20367 $as_echo "$ac_try_echo") >&5
20368   (eval "$ac_try") 2>&5
20369   ac_status=$?
20370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20371   (exit $ac_status); }; }; then
20372   gl_cv_func_setenv_works=yes
20373 else
20374   $as_echo "$as_me: program exited with status $ac_status" >&5
20375 $as_echo "$as_me: failed program was:" >&5
20376 sed 's/^/| /' conftest.$ac_ext >&5
20377
20378 ( exit $ac_status )
20379 gl_cv_func_setenv_works=no
20380 fi
20381 rm -rf conftest.dSYM
20382 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20383 fi
20384
20385
20386 fi
20387 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_setenv_works" >&5
20388 $as_echo "$gl_cv_func_setenv_works" >&6; }
20389     if test "$gl_cv_func_setenv_works" != yes; then
20390       REPLACE_SETENV=1
20391
20392
20393
20394
20395
20396
20397
20398
20399   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
20400
20401     fi
20402   fi
20403
20404
20405
20406
20407
20408
20409
20410
20411
20412
20413 for ac_header in search.h
20414 do
20415 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20417   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20418 $as_echo_n "checking for $ac_header... " >&6; }
20419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20420   $as_echo_n "(cached) " >&6
20421 fi
20422 ac_res=`eval 'as_val=${'$as_ac_Header'}
20423                  $as_echo "$as_val"'`
20424                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20425 $as_echo "$ac_res" >&6; }
20426 else
20427   # Is the header compilable?
20428 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20429 $as_echo_n "checking $ac_header usability... " >&6; }
20430 cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h.  */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h.  */
20436 $ac_includes_default
20437 #include <$ac_header>
20438 _ACEOF
20439 rm -f conftest.$ac_objext
20440 if { (ac_try="$ac_compile"
20441 case "(($ac_try" in
20442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20443   *) ac_try_echo=$ac_try;;
20444 esac
20445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20446 $as_echo "$ac_try_echo") >&5
20447   (eval "$ac_compile") 2>conftest.er1
20448   ac_status=$?
20449   grep -v '^ *+' conftest.er1 >conftest.err
20450   rm -f conftest.er1
20451   cat conftest.err >&5
20452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20453   (exit $ac_status); } && {
20454          test -z "$ac_c_werror_flag" ||
20455          test ! -s conftest.err
20456        } && test -s conftest.$ac_objext; then
20457   ac_header_compiler=yes
20458 else
20459   $as_echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20461
20462         ac_header_compiler=no
20463 fi
20464
20465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20466 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20467 $as_echo "$ac_header_compiler" >&6; }
20468
20469 # Is the header present?
20470 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20471 $as_echo_n "checking $ac_header presence... " >&6; }
20472 cat >conftest.$ac_ext <<_ACEOF
20473 /* confdefs.h.  */
20474 _ACEOF
20475 cat confdefs.h >>conftest.$ac_ext
20476 cat >>conftest.$ac_ext <<_ACEOF
20477 /* end confdefs.h.  */
20478 #include <$ac_header>
20479 _ACEOF
20480 if { (ac_try="$ac_cpp conftest.$ac_ext"
20481 case "(($ac_try" in
20482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483   *) ac_try_echo=$ac_try;;
20484 esac
20485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20486 $as_echo "$ac_try_echo") >&5
20487   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20488   ac_status=$?
20489   grep -v '^ *+' conftest.er1 >conftest.err
20490   rm -f conftest.er1
20491   cat conftest.err >&5
20492   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20493   (exit $ac_status); } >/dev/null && {
20494          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20495          test ! -s conftest.err
20496        }; then
20497   ac_header_preproc=yes
20498 else
20499   $as_echo "$as_me: failed program was:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20501
20502   ac_header_preproc=no
20503 fi
20504
20505 rm -f conftest.err conftest.$ac_ext
20506 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20507 $as_echo "$ac_header_preproc" >&6; }
20508
20509 # So?  What about this header?
20510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20511   yes:no: )
20512     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20513 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20514     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20515 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20516     ac_header_preproc=yes
20517     ;;
20518   no:yes:* )
20519     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20520 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20521     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20522 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20523     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20524 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20525     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20526 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20527     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20528 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20529     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20530 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20531     ( cat <<\_ASBOX
20532 ## ------------------------------ ##
20533 ## Report this to bug-tar@gnu.org ##
20534 ## ------------------------------ ##
20535 _ASBOX
20536      ) | sed "s/^/$as_me: WARNING:     /" >&2
20537     ;;
20538 esac
20539 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20540 $as_echo_n "checking for $ac_header... " >&6; }
20541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20542   $as_echo_n "(cached) " >&6
20543 else
20544   eval "$as_ac_Header=\$ac_header_preproc"
20545 fi
20546 ac_res=`eval 'as_val=${'$as_ac_Header'}
20547                  $as_echo "$as_val"'`
20548                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20549 $as_echo "$ac_res" >&6; }
20550
20551 fi
20552 as_val=`eval 'as_val=${'$as_ac_Header'}
20553                  $as_echo "$as_val"'`
20554    if test "x$as_val" = x""yes; then
20555   cat >>confdefs.h <<_ACEOF
20556 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20557 _ACEOF
20558
20559 fi
20560
20561 done
20562
20563
20564 for ac_func in tsearch
20565 do
20566 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20567 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20568 $as_echo_n "checking for $ac_func... " >&6; }
20569 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20570   $as_echo_n "(cached) " >&6
20571 else
20572   cat >conftest.$ac_ext <<_ACEOF
20573 /* confdefs.h.  */
20574 _ACEOF
20575 cat confdefs.h >>conftest.$ac_ext
20576 cat >>conftest.$ac_ext <<_ACEOF
20577 /* end confdefs.h.  */
20578 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20579    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20580 #define $ac_func innocuous_$ac_func
20581
20582 /* System header to define __stub macros and hopefully few prototypes,
20583     which can conflict with char $ac_func (); below.
20584     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20585     <limits.h> exists even on freestanding compilers.  */
20586
20587 #ifdef __STDC__
20588 # include <limits.h>
20589 #else
20590 # include <assert.h>
20591 #endif
20592
20593 #undef $ac_func
20594
20595 /* Override any GCC internal prototype to avoid an error.
20596    Use char because int might match the return type of a GCC
20597    builtin and then its argument prototype would still apply.  */
20598 #ifdef __cplusplus
20599 extern "C"
20600 #endif
20601 char $ac_func ();
20602 /* The GNU C library defines this for functions which it implements
20603     to always fail with ENOSYS.  Some functions are actually named
20604     something starting with __ and the normal name is an alias.  */
20605 #if defined __stub_$ac_func || defined __stub___$ac_func
20606 choke me
20607 #endif
20608
20609 int
20610 main ()
20611 {
20612 return $ac_func ();
20613   ;
20614   return 0;
20615 }
20616 _ACEOF
20617 rm -f conftest.$ac_objext conftest$ac_exeext
20618 if { (ac_try="$ac_link"
20619 case "(($ac_try" in
20620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20621   *) ac_try_echo=$ac_try;;
20622 esac
20623 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20624 $as_echo "$ac_try_echo") >&5
20625   (eval "$ac_link") 2>conftest.er1
20626   ac_status=$?
20627   grep -v '^ *+' conftest.er1 >conftest.err
20628   rm -f conftest.er1
20629   cat conftest.err >&5
20630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20631   (exit $ac_status); } && {
20632          test -z "$ac_c_werror_flag" ||
20633          test ! -s conftest.err
20634        } && test -s conftest$ac_exeext && {
20635          test "$cross_compiling" = yes ||
20636          $as_test_x conftest$ac_exeext
20637        }; then
20638   eval "$as_ac_var=yes"
20639 else
20640   $as_echo "$as_me: failed program was:" >&5
20641 sed 's/^/| /' conftest.$ac_ext >&5
20642
20643         eval "$as_ac_var=no"
20644 fi
20645
20646 rm -rf conftest.dSYM
20647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20648       conftest$ac_exeext conftest.$ac_ext
20649 fi
20650 ac_res=`eval 'as_val=${'$as_ac_var'}
20651                  $as_echo "$as_val"'`
20652                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20653 $as_echo "$ac_res" >&6; }
20654 as_val=`eval 'as_val=${'$as_ac_var'}
20655                  $as_echo "$as_val"'`
20656    if test "x$as_val" = x""yes; then
20657   cat >>confdefs.h <<_ACEOF
20658 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20659 _ACEOF
20660
20661 fi
20662 done
20663
20664
20665
20666
20667
20668 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
20669 $as_echo_n "checking whether snprintf is declared... " >&6; }
20670 if test "${ac_cv_have_decl_snprintf+set}" = set; then
20671   $as_echo_n "(cached) " >&6
20672 else
20673   cat >conftest.$ac_ext <<_ACEOF
20674 /* confdefs.h.  */
20675 _ACEOF
20676 cat confdefs.h >>conftest.$ac_ext
20677 cat >>conftest.$ac_ext <<_ACEOF
20678 /* end confdefs.h.  */
20679 $ac_includes_default
20680 int
20681 main ()
20682 {
20683 #ifndef snprintf
20684   (void) snprintf;
20685 #endif
20686
20687   ;
20688   return 0;
20689 }
20690 _ACEOF
20691 rm -f conftest.$ac_objext
20692 if { (ac_try="$ac_compile"
20693 case "(($ac_try" in
20694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20695   *) ac_try_echo=$ac_try;;
20696 esac
20697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20698 $as_echo "$ac_try_echo") >&5
20699   (eval "$ac_compile") 2>conftest.er1
20700   ac_status=$?
20701   grep -v '^ *+' conftest.er1 >conftest.err
20702   rm -f conftest.er1
20703   cat conftest.err >&5
20704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20705   (exit $ac_status); } && {
20706          test -z "$ac_c_werror_flag" ||
20707          test ! -s conftest.err
20708        } && test -s conftest.$ac_objext; then
20709   ac_cv_have_decl_snprintf=yes
20710 else
20711   $as_echo "$as_me: failed program was:" >&5
20712 sed 's/^/| /' conftest.$ac_ext >&5
20713
20714         ac_cv_have_decl_snprintf=no
20715 fi
20716
20717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20718 fi
20719 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
20720 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
20721 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
20722
20723 cat >>confdefs.h <<_ACEOF
20724 #define HAVE_DECL_SNPRINTF 1
20725 _ACEOF
20726
20727
20728 else
20729   cat >>confdefs.h <<_ACEOF
20730 #define HAVE_DECL_SNPRINTF 0
20731 _ACEOF
20732
20733
20734 fi
20735
20736
20737
20738
20739
20740     REPLACE_NULL=0;
20741   HAVE_WCHAR_T=1;
20742   STDDEF_H='';
20743
20744
20745   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
20746 $as_echo_n "checking for wchar_t... " >&6; }
20747 if test "${gt_cv_c_wchar_t+set}" = set; then
20748   $as_echo_n "(cached) " >&6
20749 else
20750   cat >conftest.$ac_ext <<_ACEOF
20751 /* confdefs.h.  */
20752 _ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h.  */
20756 #include <stddef.h>
20757        wchar_t foo = (wchar_t)'\0';
20758 int
20759 main ()
20760 {
20761
20762   ;
20763   return 0;
20764 }
20765 _ACEOF
20766 rm -f conftest.$ac_objext
20767 if { (ac_try="$ac_compile"
20768 case "(($ac_try" in
20769   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20770   *) ac_try_echo=$ac_try;;
20771 esac
20772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20773 $as_echo "$ac_try_echo") >&5
20774   (eval "$ac_compile") 2>conftest.er1
20775   ac_status=$?
20776   grep -v '^ *+' conftest.er1 >conftest.err
20777   rm -f conftest.er1
20778   cat conftest.err >&5
20779   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780   (exit $ac_status); } && {
20781          test -z "$ac_c_werror_flag" ||
20782          test ! -s conftest.err
20783        } && test -s conftest.$ac_objext; then
20784   gt_cv_c_wchar_t=yes
20785 else
20786   $as_echo "$as_me: failed program was:" >&5
20787 sed 's/^/| /' conftest.$ac_ext >&5
20788
20789         gt_cv_c_wchar_t=no
20790 fi
20791
20792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20793 fi
20794 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
20795 $as_echo "$gt_cv_c_wchar_t" >&6; }
20796   if test $gt_cv_c_wchar_t = yes; then
20797
20798 cat >>confdefs.h <<\_ACEOF
20799 #define HAVE_WCHAR_T 1
20800 _ACEOF
20801
20802   fi
20803
20804
20805
20806
20807
20808
20809
20810
20811     HAVE_STRCASECMP=1;
20812   HAVE_DECL_STRNCASECMP=1;
20813
20814 { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
20815 $as_echo_n "checking whether strdup is declared... " >&6; }
20816 if test "${ac_cv_have_decl_strdup+set}" = set; then
20817   $as_echo_n "(cached) " >&6
20818 else
20819   cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h.  */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h.  */
20825 $ac_includes_default
20826 int
20827 main ()
20828 {
20829 #ifndef strdup
20830   (void) strdup;
20831 #endif
20832
20833   ;
20834   return 0;
20835 }
20836 _ACEOF
20837 rm -f conftest.$ac_objext
20838 if { (ac_try="$ac_compile"
20839 case "(($ac_try" in
20840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20841   *) ac_try_echo=$ac_try;;
20842 esac
20843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20844 $as_echo "$ac_try_echo") >&5
20845   (eval "$ac_compile") 2>conftest.er1
20846   ac_status=$?
20847   grep -v '^ *+' conftest.er1 >conftest.err
20848   rm -f conftest.er1
20849   cat conftest.err >&5
20850   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20851   (exit $ac_status); } && {
20852          test -z "$ac_c_werror_flag" ||
20853          test ! -s conftest.err
20854        } && test -s conftest.$ac_objext; then
20855   ac_cv_have_decl_strdup=yes
20856 else
20857   $as_echo "$as_me: failed program was:" >&5
20858 sed 's/^/| /' conftest.$ac_ext >&5
20859
20860         ac_cv_have_decl_strdup=no
20861 fi
20862
20863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20864 fi
20865 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
20866 $as_echo "$ac_cv_have_decl_strdup" >&6; }
20867 if test "x$ac_cv_have_decl_strdup" = x""yes; then
20868
20869 cat >>confdefs.h <<_ACEOF
20870 #define HAVE_DECL_STRDUP 1
20871 _ACEOF
20872
20873
20874 else
20875   cat >>confdefs.h <<_ACEOF
20876 #define HAVE_DECL_STRDUP 0
20877 _ACEOF
20878
20879
20880 fi
20881
20882
20883
20884
20885
20886
20887
20888   if test -z "$ERRNO_H"; then
20889     { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
20890 $as_echo_n "checking for working strerror function... " >&6; }
20891 if test "${gl_cv_func_working_strerror+set}" = set; then
20892   $as_echo_n "(cached) " >&6
20893 else
20894   if test "$cross_compiling" = yes; then
20895            cat >conftest.$ac_ext <<_ACEOF
20896 /* confdefs.h.  */
20897 _ACEOF
20898 cat confdefs.h >>conftest.$ac_ext
20899 cat >>conftest.$ac_ext <<_ACEOF
20900 /* end confdefs.h.  */
20901 #include <string.h>
20902
20903 int
20904 main ()
20905 {
20906 return !*strerror (-2);
20907   ;
20908   return 0;
20909 }
20910 _ACEOF
20911 rm -f conftest.$ac_objext
20912 if { (ac_try="$ac_compile"
20913 case "(($ac_try" in
20914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915   *) ac_try_echo=$ac_try;;
20916 esac
20917 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20918 $as_echo "$ac_try_echo") >&5
20919   (eval "$ac_compile") 2>conftest.er1
20920   ac_status=$?
20921   grep -v '^ *+' conftest.er1 >conftest.err
20922   rm -f conftest.er1
20923   cat conftest.err >&5
20924   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20925   (exit $ac_status); } && {
20926          test -z "$ac_c_werror_flag" ||
20927          test ! -s conftest.err
20928        } && test -s conftest.$ac_objext; then
20929   gl_cv_func_working_strerror=yes
20930 else
20931   $as_echo "$as_me: failed program was:" >&5
20932 sed 's/^/| /' conftest.$ac_ext >&5
20933
20934         gl_cv_func_working_strerror=no
20935 fi
20936
20937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20938
20939 else
20940   cat >conftest.$ac_ext <<_ACEOF
20941 /* confdefs.h.  */
20942 _ACEOF
20943 cat confdefs.h >>conftest.$ac_ext
20944 cat >>conftest.$ac_ext <<_ACEOF
20945 /* end confdefs.h.  */
20946 #include <string.h>
20947
20948 int
20949 main ()
20950 {
20951 return !*strerror (-2);
20952   ;
20953   return 0;
20954 }
20955 _ACEOF
20956 rm -f conftest$ac_exeext
20957 if { (ac_try="$ac_link"
20958 case "(($ac_try" in
20959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20960   *) ac_try_echo=$ac_try;;
20961 esac
20962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20963 $as_echo "$ac_try_echo") >&5
20964   (eval "$ac_link") 2>&5
20965   ac_status=$?
20966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20968   { (case "(($ac_try" in
20969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20970   *) ac_try_echo=$ac_try;;
20971 esac
20972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20973 $as_echo "$ac_try_echo") >&5
20974   (eval "$ac_try") 2>&5
20975   ac_status=$?
20976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20977   (exit $ac_status); }; }; then
20978   gl_cv_func_working_strerror=yes
20979 else
20980   $as_echo "$as_me: program exited with status $ac_status" >&5
20981 $as_echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.$ac_ext >&5
20983
20984 ( exit $ac_status )
20985 gl_cv_func_working_strerror=no
20986 fi
20987 rm -rf conftest.dSYM
20988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20989 fi
20990
20991
20992
20993 fi
20994 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
20995 $as_echo "$gl_cv_func_working_strerror" >&6; }
20996     if test $gl_cv_func_working_strerror = no; then
20997                   REPLACE_STRERROR=1
20998     fi
20999   else
21000             REPLACE_STRERROR=1
21001   fi
21002   if test $REPLACE_STRERROR = 1; then
21003
21004   { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
21005 $as_echo_n "checking whether strerror is declared... " >&6; }
21006 if test "${ac_cv_have_decl_strerror+set}" = set; then
21007   $as_echo_n "(cached) " >&6
21008 else
21009   cat >conftest.$ac_ext <<_ACEOF
21010 /* confdefs.h.  */
21011 _ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h.  */
21015 $ac_includes_default
21016 int
21017 main ()
21018 {
21019 #ifndef strerror
21020   (void) strerror;
21021 #endif
21022
21023   ;
21024   return 0;
21025 }
21026 _ACEOF
21027 rm -f conftest.$ac_objext
21028 if { (ac_try="$ac_compile"
21029 case "(($ac_try" in
21030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031   *) ac_try_echo=$ac_try;;
21032 esac
21033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21034 $as_echo "$ac_try_echo") >&5
21035   (eval "$ac_compile") 2>conftest.er1
21036   ac_status=$?
21037   grep -v '^ *+' conftest.er1 >conftest.err
21038   rm -f conftest.er1
21039   cat conftest.err >&5
21040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21041   (exit $ac_status); } && {
21042          test -z "$ac_c_werror_flag" ||
21043          test ! -s conftest.err
21044        } && test -s conftest.$ac_objext; then
21045   ac_cv_have_decl_strerror=yes
21046 else
21047   $as_echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050         ac_cv_have_decl_strerror=no
21051 fi
21052
21053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21054 fi
21055 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
21056 $as_echo "$ac_cv_have_decl_strerror" >&6; }
21057 if test "x$ac_cv_have_decl_strerror" = x""yes; then
21058
21059 cat >>confdefs.h <<_ACEOF
21060 #define HAVE_DECL_STRERROR 1
21061 _ACEOF
21062
21063
21064 else
21065   cat >>confdefs.h <<_ACEOF
21066 #define HAVE_DECL_STRERROR 0
21067 _ACEOF
21068
21069
21070 fi
21071
21072
21073
21074
21075
21076
21077
21078
21079   if test $ac_cv_header_sys_socket_h != yes; then
21080
21081 for ac_header in winsock2.h
21082 do
21083 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21085   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21086 $as_echo_n "checking for $ac_header... " >&6; }
21087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21088   $as_echo_n "(cached) " >&6
21089 fi
21090 ac_res=`eval 'as_val=${'$as_ac_Header'}
21091                  $as_echo "$as_val"'`
21092                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21093 $as_echo "$ac_res" >&6; }
21094 else
21095   # Is the header compilable?
21096 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21097 $as_echo_n "checking $ac_header usability... " >&6; }
21098 cat >conftest.$ac_ext <<_ACEOF
21099 /* confdefs.h.  */
21100 _ACEOF
21101 cat confdefs.h >>conftest.$ac_ext
21102 cat >>conftest.$ac_ext <<_ACEOF
21103 /* end confdefs.h.  */
21104 $ac_includes_default
21105 #include <$ac_header>
21106 _ACEOF
21107 rm -f conftest.$ac_objext
21108 if { (ac_try="$ac_compile"
21109 case "(($ac_try" in
21110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21111   *) ac_try_echo=$ac_try;;
21112 esac
21113 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21114 $as_echo "$ac_try_echo") >&5
21115   (eval "$ac_compile") 2>conftest.er1
21116   ac_status=$?
21117   grep -v '^ *+' conftest.er1 >conftest.err
21118   rm -f conftest.er1
21119   cat conftest.err >&5
21120   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21121   (exit $ac_status); } && {
21122          test -z "$ac_c_werror_flag" ||
21123          test ! -s conftest.err
21124        } && test -s conftest.$ac_objext; then
21125   ac_header_compiler=yes
21126 else
21127   $as_echo "$as_me: failed program was:" >&5
21128 sed 's/^/| /' conftest.$ac_ext >&5
21129
21130         ac_header_compiler=no
21131 fi
21132
21133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21134 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21135 $as_echo "$ac_header_compiler" >&6; }
21136
21137 # Is the header present?
21138 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21139 $as_echo_n "checking $ac_header presence... " >&6; }
21140 cat >conftest.$ac_ext <<_ACEOF
21141 /* confdefs.h.  */
21142 _ACEOF
21143 cat confdefs.h >>conftest.$ac_ext
21144 cat >>conftest.$ac_ext <<_ACEOF
21145 /* end confdefs.h.  */
21146 #include <$ac_header>
21147 _ACEOF
21148 if { (ac_try="$ac_cpp conftest.$ac_ext"
21149 case "(($ac_try" in
21150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151   *) ac_try_echo=$ac_try;;
21152 esac
21153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21154 $as_echo "$ac_try_echo") >&5
21155   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21156   ac_status=$?
21157   grep -v '^ *+' conftest.er1 >conftest.err
21158   rm -f conftest.er1
21159   cat conftest.err >&5
21160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21161   (exit $ac_status); } >/dev/null && {
21162          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21163          test ! -s conftest.err
21164        }; then
21165   ac_header_preproc=yes
21166 else
21167   $as_echo "$as_me: failed program was:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21169
21170   ac_header_preproc=no
21171 fi
21172
21173 rm -f conftest.err conftest.$ac_ext
21174 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21175 $as_echo "$ac_header_preproc" >&6; }
21176
21177 # So?  What about this header?
21178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21179   yes:no: )
21180     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21181 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21182     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21183 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21184     ac_header_preproc=yes
21185     ;;
21186   no:yes:* )
21187     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21188 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21189     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21190 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21191     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21192 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21193     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21194 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21195     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21196 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21197     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21198 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21199     ( cat <<\_ASBOX
21200 ## ------------------------------ ##
21201 ## Report this to bug-tar@gnu.org ##
21202 ## ------------------------------ ##
21203 _ASBOX
21204      ) | sed "s/^/$as_me: WARNING:     /" >&2
21205     ;;
21206 esac
21207 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21208 $as_echo_n "checking for $ac_header... " >&6; }
21209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21210   $as_echo_n "(cached) " >&6
21211 else
21212   eval "$as_ac_Header=\$ac_header_preproc"
21213 fi
21214 ac_res=`eval 'as_val=${'$as_ac_Header'}
21215                  $as_echo "$as_val"'`
21216                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21217 $as_echo "$ac_res" >&6; }
21218
21219 fi
21220 as_val=`eval 'as_val=${'$as_ac_Header'}
21221                  $as_echo "$as_val"'`
21222    if test "x$as_val" = x""yes; then
21223   cat >>confdefs.h <<_ACEOF
21224 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21225 _ACEOF
21226
21227 fi
21228
21229 done
21230
21231   fi
21232
21233   fi
21234
21235
21236
21237
21238
21239
21240
21241
21242
21243
21244
21245
21246
21247
21248
21249      if test $gl_cv_have_include_next = yes; then
21250        gl_cv_next_string_h='<'string.h'>'
21251      else
21252        { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
21253 $as_echo_n "checking absolute name of <string.h>... " >&6; }
21254 if test "${gl_cv_next_string_h+set}" = set; then
21255   $as_echo_n "(cached) " >&6
21256 else
21257
21258           if test $ac_cv_header_string_h = yes; then
21259             cat >conftest.$ac_ext <<_ACEOF
21260 /* confdefs.h.  */
21261 _ACEOF
21262 cat confdefs.h >>conftest.$ac_ext
21263 cat >>conftest.$ac_ext <<_ACEOF
21264 /* end confdefs.h.  */
21265 #include <string.h>
21266
21267 _ACEOF
21268                                                                                                 case "$host_os" in
21269               aix*) gl_absname_cpp="$ac_cpp -C" ;;
21270               *)    gl_absname_cpp="$ac_cpp" ;;
21271             esac
21272                                                 gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21273                sed -n '\#/string.h#{
21274                  s#.*"\(.*/string.h\)".*#\1#
21275                  s#^/[^/]#//&#
21276                  p
21277                  q
21278                }'`'"'
21279           else
21280             gl_cv_next_string_h='<'string.h'>'
21281           fi
21282
21283 fi
21284 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
21285 $as_echo "$gl_cv_next_string_h" >&6; }
21286      fi
21287      NEXT_STRING_H=$gl_cv_next_string_h
21288
21289      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21290        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21291        gl_next_as_first_directive='<'string.h'>'
21292      else
21293        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21294        gl_next_as_first_directive=$gl_cv_next_string_h
21295      fi
21296      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
21297
21298
21299
21300
21301
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311
21312
21313
21314
21315
21316
21317
21318   for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup     strndup strnlen strpbrk strsep strcasestr strtok_r strsignal strverscmp; do
21319     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21320     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
21321 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21322 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
21323   $as_echo_n "(cached) " >&6
21324 else
21325   cat >conftest.$ac_ext <<_ACEOF
21326 /* confdefs.h.  */
21327 _ACEOF
21328 cat confdefs.h >>conftest.$ac_ext
21329 cat >>conftest.$ac_ext <<_ACEOF
21330 /* end confdefs.h.  */
21331 #include <string.h>
21332
21333 int
21334 main ()
21335 {
21336 #undef $gl_func
21337   (void) $gl_func;
21338   ;
21339   return 0;
21340 }
21341 _ACEOF
21342 rm -f conftest.$ac_objext
21343 if { (ac_try="$ac_compile"
21344 case "(($ac_try" in
21345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21346   *) ac_try_echo=$ac_try;;
21347 esac
21348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21349 $as_echo "$ac_try_echo") >&5
21350   (eval "$ac_compile") 2>conftest.er1
21351   ac_status=$?
21352   grep -v '^ *+' conftest.er1 >conftest.err
21353   rm -f conftest.er1
21354   cat conftest.err >&5
21355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21356   (exit $ac_status); } && {
21357          test -z "$ac_c_werror_flag" ||
21358          test ! -s conftest.err
21359        } && test -s conftest.$ac_objext; then
21360   eval "$as_gl_Symbol=yes"
21361 else
21362   $as_echo "$as_me: failed program was:" >&5
21363 sed 's/^/| /' conftest.$ac_ext >&5
21364
21365         eval "$as_gl_Symbol=no"
21366 fi
21367
21368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21369 fi
21370 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
21371                  $as_echo "$as_val"'`
21372                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21373 $as_echo "$ac_res" >&6; }
21374      as_val=`eval 'as_val=${'$as_gl_Symbol'}
21375                  $as_echo "$as_val"'`
21376    if test "x$as_val" = x""yes; then
21377   cat >>confdefs.h <<_ACEOF
21378 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21379 _ACEOF
21380
21381                      eval ac_cv_have_decl_$gl_func=yes
21382 fi
21383
21384       done
21385
21386
21387
21388
21389
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402      if test $gl_cv_have_include_next = yes; then
21403        gl_cv_next_strings_h='<'strings.h'>'
21404      else
21405        { $as_echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
21406 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
21407 if test "${gl_cv_next_strings_h+set}" = set; then
21408   $as_echo_n "(cached) " >&6
21409 else
21410
21411           if test $ac_cv_header_strings_h = yes; then
21412             cat >conftest.$ac_ext <<_ACEOF
21413 /* confdefs.h.  */
21414 _ACEOF
21415 cat confdefs.h >>conftest.$ac_ext
21416 cat >>conftest.$ac_ext <<_ACEOF
21417 /* end confdefs.h.  */
21418 #include <strings.h>
21419
21420 _ACEOF
21421                                                                                                 case "$host_os" in
21422               aix*) gl_absname_cpp="$ac_cpp -C" ;;
21423               *)    gl_absname_cpp="$ac_cpp" ;;
21424             esac
21425                                                 gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21426                sed -n '\#/strings.h#{
21427                  s#.*"\(.*/strings.h\)".*#\1#
21428                  s#^/[^/]#//&#
21429                  p
21430                  q
21431                }'`'"'
21432           else
21433             gl_cv_next_strings_h='<'strings.h'>'
21434           fi
21435
21436 fi
21437 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
21438 $as_echo "$gl_cv_next_strings_h" >&6; }
21439      fi
21440      NEXT_STRINGS_H=$gl_cv_next_strings_h
21441
21442      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21443        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21444        gl_next_as_first_directive='<'strings.h'>'
21445      else
21446        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21447        gl_next_as_first_directive=$gl_cv_next_strings_h
21448      fi
21449      NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
21450
21451
21452
21453
21454
21455
21456
21457   for gl_func in strcasecmp strncasecmp; do
21458     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
21459     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
21460 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
21461 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
21462   $as_echo_n "(cached) " >&6
21463 else
21464   cat >conftest.$ac_ext <<_ACEOF
21465 /* confdefs.h.  */
21466 _ACEOF
21467 cat confdefs.h >>conftest.$ac_ext
21468 cat >>conftest.$ac_ext <<_ACEOF
21469 /* end confdefs.h.  */
21470 #include <strings.h>
21471
21472 int
21473 main ()
21474 {
21475 #undef $gl_func
21476   (void) $gl_func;
21477   ;
21478   return 0;
21479 }
21480 _ACEOF
21481 rm -f conftest.$ac_objext
21482 if { (ac_try="$ac_compile"
21483 case "(($ac_try" in
21484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485   *) ac_try_echo=$ac_try;;
21486 esac
21487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21488 $as_echo "$ac_try_echo") >&5
21489   (eval "$ac_compile") 2>conftest.er1
21490   ac_status=$?
21491   grep -v '^ *+' conftest.er1 >conftest.err
21492   rm -f conftest.er1
21493   cat conftest.err >&5
21494   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21495   (exit $ac_status); } && {
21496          test -z "$ac_c_werror_flag" ||
21497          test ! -s conftest.err
21498        } && test -s conftest.$ac_objext; then
21499   eval "$as_gl_Symbol=yes"
21500 else
21501   $as_echo "$as_me: failed program was:" >&5
21502 sed 's/^/| /' conftest.$ac_ext >&5
21503
21504         eval "$as_gl_Symbol=no"
21505 fi
21506
21507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21508 fi
21509 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
21510                  $as_echo "$as_val"'`
21511                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21512 $as_echo "$ac_res" >&6; }
21513      as_val=`eval 'as_val=${'$as_gl_Symbol'}
21514                  $as_echo "$as_val"'`
21515    if test "x$as_val" = x""yes; then
21516   cat >>confdefs.h <<_ACEOF
21517 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
21518 _ACEOF
21519
21520                      eval ac_cv_have_decl_$gl_func=yes
21521 fi
21522
21523       done
21524
21525
21526 { $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5
21527 $as_echo_n "checking whether strndup is declared... " >&6; }
21528 if test "${ac_cv_have_decl_strndup+set}" = set; then
21529   $as_echo_n "(cached) " >&6
21530 else
21531   cat >conftest.$ac_ext <<_ACEOF
21532 /* confdefs.h.  */
21533 _ACEOF
21534 cat confdefs.h >>conftest.$ac_ext
21535 cat >>conftest.$ac_ext <<_ACEOF
21536 /* end confdefs.h.  */
21537 $ac_includes_default
21538 int
21539 main ()
21540 {
21541 #ifndef strndup
21542   (void) strndup;
21543 #endif
21544
21545   ;
21546   return 0;
21547 }
21548 _ACEOF
21549 rm -f conftest.$ac_objext
21550 if { (ac_try="$ac_compile"
21551 case "(($ac_try" in
21552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21553   *) ac_try_echo=$ac_try;;
21554 esac
21555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21556 $as_echo "$ac_try_echo") >&5
21557   (eval "$ac_compile") 2>conftest.er1
21558   ac_status=$?
21559   grep -v '^ *+' conftest.er1 >conftest.err
21560   rm -f conftest.er1
21561   cat conftest.err >&5
21562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21563   (exit $ac_status); } && {
21564          test -z "$ac_c_werror_flag" ||
21565          test ! -s conftest.err
21566        } && test -s conftest.$ac_objext; then
21567   ac_cv_have_decl_strndup=yes
21568 else
21569   $as_echo "$as_me: failed program was:" >&5
21570 sed 's/^/| /' conftest.$ac_ext >&5
21571
21572         ac_cv_have_decl_strndup=no
21573 fi
21574
21575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21576 fi
21577 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
21578 $as_echo "$ac_cv_have_decl_strndup" >&6; }
21579 if test "x$ac_cv_have_decl_strndup" = x""yes; then
21580
21581 cat >>confdefs.h <<_ACEOF
21582 #define HAVE_DECL_STRNDUP 1
21583 _ACEOF
21584
21585
21586 else
21587   cat >>confdefs.h <<_ACEOF
21588 #define HAVE_DECL_STRNDUP 0
21589 _ACEOF
21590
21591
21592 fi
21593
21594
21595
21596
21597 { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
21598 $as_echo_n "checking whether strnlen is declared... " >&6; }
21599 if test "${ac_cv_have_decl_strnlen+set}" = set; then
21600   $as_echo_n "(cached) " >&6
21601 else
21602   cat >conftest.$ac_ext <<_ACEOF
21603 /* confdefs.h.  */
21604 _ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h.  */
21608 $ac_includes_default
21609 int
21610 main ()
21611 {
21612 #ifndef strnlen
21613   (void) strnlen;
21614 #endif
21615
21616   ;
21617   return 0;
21618 }
21619 _ACEOF
21620 rm -f conftest.$ac_objext
21621 if { (ac_try="$ac_compile"
21622 case "(($ac_try" in
21623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624   *) ac_try_echo=$ac_try;;
21625 esac
21626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21627 $as_echo "$ac_try_echo") >&5
21628   (eval "$ac_compile") 2>conftest.er1
21629   ac_status=$?
21630   grep -v '^ *+' conftest.er1 >conftest.err
21631   rm -f conftest.er1
21632   cat conftest.err >&5
21633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21634   (exit $ac_status); } && {
21635          test -z "$ac_c_werror_flag" ||
21636          test ! -s conftest.err
21637        } && test -s conftest.$ac_objext; then
21638   ac_cv_have_decl_strnlen=yes
21639 else
21640   $as_echo "$as_me: failed program was:" >&5
21641 sed 's/^/| /' conftest.$ac_ext >&5
21642
21643         ac_cv_have_decl_strnlen=no
21644 fi
21645
21646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21647 fi
21648 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
21649 $as_echo "$ac_cv_have_decl_strnlen" >&6; }
21650 if test "x$ac_cv_have_decl_strnlen" = x""yes; then
21651
21652 cat >>confdefs.h <<_ACEOF
21653 #define HAVE_DECL_STRNLEN 1
21654 _ACEOF
21655
21656
21657 else
21658   cat >>confdefs.h <<_ACEOF
21659 #define HAVE_DECL_STRNLEN 0
21660 _ACEOF
21661
21662
21663 fi
21664
21665
21666
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679   { $as_echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
21680 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
21681 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
21682   $as_echo_n "(cached) " >&6
21683 else
21684   cat >conftest.$ac_ext <<_ACEOF
21685 /* confdefs.h.  */
21686 _ACEOF
21687 cat confdefs.h >>conftest.$ac_ext
21688 cat >>conftest.$ac_ext <<_ACEOF
21689 /* end confdefs.h.  */
21690 #include <time.h>
21691
21692 int
21693 main ()
21694 {
21695 static struct timespec x; x.tv_sec = x.tv_nsec;
21696   ;
21697   return 0;
21698 }
21699 _ACEOF
21700 rm -f conftest.$ac_objext
21701 if { (ac_try="$ac_compile"
21702 case "(($ac_try" in
21703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21704   *) ac_try_echo=$ac_try;;
21705 esac
21706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21707 $as_echo "$ac_try_echo") >&5
21708   (eval "$ac_compile") 2>conftest.er1
21709   ac_status=$?
21710   grep -v '^ *+' conftest.er1 >conftest.err
21711   rm -f conftest.er1
21712   cat conftest.err >&5
21713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21714   (exit $ac_status); } && {
21715          test -z "$ac_c_werror_flag" ||
21716          test ! -s conftest.err
21717        } && test -s conftest.$ac_objext; then
21718   gl_cv_sys_struct_timespec_in_time_h=yes
21719 else
21720   $as_echo "$as_me: failed program was:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21722
21723         gl_cv_sys_struct_timespec_in_time_h=no
21724 fi
21725
21726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21727 fi
21728 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
21729 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
21730
21731   TIME_H_DEFINES_STRUCT_TIMESPEC=0
21732   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
21733   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
21734     TIME_H_DEFINES_STRUCT_TIMESPEC=1
21735   else
21736     { $as_echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
21737 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
21738 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
21739   $as_echo_n "(cached) " >&6
21740 else
21741   cat >conftest.$ac_ext <<_ACEOF
21742 /* confdefs.h.  */
21743 _ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h.  */
21747 #include <sys/time.h>
21748
21749 int
21750 main ()
21751 {
21752 static struct timespec x; x.tv_sec = x.tv_nsec;
21753   ;
21754   return 0;
21755 }
21756 _ACEOF
21757 rm -f conftest.$ac_objext
21758 if { (ac_try="$ac_compile"
21759 case "(($ac_try" in
21760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21761   *) ac_try_echo=$ac_try;;
21762 esac
21763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21764 $as_echo "$ac_try_echo") >&5
21765   (eval "$ac_compile") 2>conftest.er1
21766   ac_status=$?
21767   grep -v '^ *+' conftest.er1 >conftest.err
21768   rm -f conftest.er1
21769   cat conftest.err >&5
21770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21771   (exit $ac_status); } && {
21772          test -z "$ac_c_werror_flag" ||
21773          test ! -s conftest.err
21774        } && test -s conftest.$ac_objext; then
21775   gl_cv_sys_struct_timespec_in_sys_time_h=yes
21776 else
21777   $as_echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21779
21780         gl_cv_sys_struct_timespec_in_sys_time_h=no
21781 fi
21782
21783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21784 fi
21785 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
21786 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
21787     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
21788       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
21789     fi
21790   fi
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800
21801
21802
21803
21804
21805
21806
21807
21808      if test $gl_cv_have_include_next = yes; then
21809        gl_cv_next_time_h='<'time.h'>'
21810      else
21811        { $as_echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
21812 $as_echo_n "checking absolute name of <time.h>... " >&6; }
21813 if test "${gl_cv_next_time_h+set}" = set; then
21814   $as_echo_n "(cached) " >&6
21815 else
21816
21817           if test $ac_cv_header_time_h = yes; then
21818             cat >conftest.$ac_ext <<_ACEOF
21819 /* confdefs.h.  */
21820 _ACEOF
21821 cat confdefs.h >>conftest.$ac_ext
21822 cat >>conftest.$ac_ext <<_ACEOF
21823 /* end confdefs.h.  */
21824 #include <time.h>
21825
21826 _ACEOF
21827                                                                                                 case "$host_os" in
21828               aix*) gl_absname_cpp="$ac_cpp -C" ;;
21829               *)    gl_absname_cpp="$ac_cpp" ;;
21830             esac
21831                                                 gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21832                sed -n '\#/time.h#{
21833                  s#.*"\(.*/time.h\)".*#\1#
21834                  s#^/[^/]#//&#
21835                  p
21836                  q
21837                }'`'"'
21838           else
21839             gl_cv_next_time_h='<'time.h'>'
21840           fi
21841
21842 fi
21843 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
21844 $as_echo "$gl_cv_next_time_h" >&6; }
21845      fi
21846      NEXT_TIME_H=$gl_cv_next_time_h
21847
21848      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21849        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21850        gl_next_as_first_directive='<'time.h'>'
21851      else
21852        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21853        gl_next_as_first_directive=$gl_cv_next_time_h
21854      fi
21855      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
21856
21857
21858
21859
21860
21861
21862
21863
21864
21865
21866   { $as_echo "$as_me:$LINENO: checking whether the utimes function works" >&5
21867 $as_echo_n "checking whether the utimes function works... " >&6; }
21868 if test "${gl_cv_func_working_utimes+set}" = set; then
21869   $as_echo_n "(cached) " >&6
21870 else
21871
21872   if test "$cross_compiling" = yes; then
21873   gl_cv_func_working_utimes=no
21874 else
21875   cat >conftest.$ac_ext <<_ACEOF
21876 /* confdefs.h.  */
21877 _ACEOF
21878 cat confdefs.h >>conftest.$ac_ext
21879 cat >>conftest.$ac_ext <<_ACEOF
21880 /* end confdefs.h.  */
21881
21882 #include <sys/types.h>
21883 #include <sys/stat.h>
21884 #include <fcntl.h>
21885 #include <sys/time.h>
21886 #include <time.h>
21887 #include <unistd.h>
21888 #include <stdlib.h>
21889 #include <stdio.h>
21890 #include <utime.h>
21891
21892 int
21893 main ()
21894 {
21895   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
21896   struct stat sbuf;
21897   char const *file = "conftest.utimes";
21898   FILE *f;
21899   time_t now;
21900   int fd;
21901
21902   int ok = ((f = fopen (file, "w"))
21903             && fclose (f) == 0
21904             && utimes (file, timeval) == 0
21905             && lstat (file, &sbuf) == 0
21906             && sbuf.st_atime == timeval[0].tv_sec
21907             && sbuf.st_mtime == timeval[1].tv_sec);
21908   unlink (file);
21909   if (!ok)
21910     exit (1);
21911
21912   ok =
21913     ((f = fopen (file, "w"))
21914      && fclose (f) == 0
21915      && time (&now) != (time_t)-1
21916      && utimes (file, NULL) == 0
21917      && lstat (file, &sbuf) == 0
21918      && now - sbuf.st_atime <= 2
21919      && now - sbuf.st_mtime <= 2);
21920   unlink (file);
21921   if (!ok)
21922     exit (1);
21923
21924   ok = (0 <= (fd = open (file, O_WRONLY|O_CREAT, 0444))
21925               && close (fd) == 0
21926               && utimes (file, NULL) == 0);
21927   unlink (file);
21928
21929   exit (!ok);
21930 }
21931
21932 _ACEOF
21933 rm -f conftest$ac_exeext
21934 if { (ac_try="$ac_link"
21935 case "(($ac_try" in
21936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21937   *) ac_try_echo=$ac_try;;
21938 esac
21939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21940 $as_echo "$ac_try_echo") >&5
21941   (eval "$ac_link") 2>&5
21942   ac_status=$?
21943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21944   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21945   { (case "(($ac_try" in
21946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947   *) ac_try_echo=$ac_try;;
21948 esac
21949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21950 $as_echo "$ac_try_echo") >&5
21951   (eval "$ac_try") 2>&5
21952   ac_status=$?
21953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21954   (exit $ac_status); }; }; then
21955   gl_cv_func_working_utimes=yes
21956 else
21957   $as_echo "$as_me: program exited with status $ac_status" >&5
21958 $as_echo "$as_me: failed program was:" >&5
21959 sed 's/^/| /' conftest.$ac_ext >&5
21960
21961 ( exit $ac_status )
21962 gl_cv_func_working_utimes=no
21963 fi
21964 rm -rf conftest.dSYM
21965 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21966 fi
21967
21968
21969 fi
21970 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
21971 $as_echo "$gl_cv_func_working_utimes" >&6; }
21972
21973   if test $gl_cv_func_working_utimes = yes; then
21974
21975 cat >>confdefs.h <<\_ACEOF
21976 #define HAVE_WORKING_UTIMES 1
21977 _ACEOF
21978
21979   fi
21980
21981
21982
21983
21984
21985
21986
21987
21988
21989
21990
21991
21992   { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
21993 $as_echo_n "checking for struct utimbuf... " >&6; }
21994 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
21995   $as_echo_n "(cached) " >&6
21996 else
21997   cat >conftest.$ac_ext <<_ACEOF
21998 /* confdefs.h.  */
21999 _ACEOF
22000 cat confdefs.h >>conftest.$ac_ext
22001 cat >>conftest.$ac_ext <<_ACEOF
22002 /* end confdefs.h.  */
22003 #if HAVE_SYS_TIME_H
22004              #include <sys/time.h>
22005             #endif
22006             #include <time.h>
22007             #ifdef HAVE_UTIME_H
22008              #include <utime.h>
22009             #endif
22010
22011 int
22012 main ()
22013 {
22014 static struct utimbuf x; x.actime = x.modtime;
22015   ;
22016   return 0;
22017 }
22018 _ACEOF
22019 rm -f conftest.$ac_objext
22020 if { (ac_try="$ac_compile"
22021 case "(($ac_try" in
22022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22023   *) ac_try_echo=$ac_try;;
22024 esac
22025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22026 $as_echo "$ac_try_echo") >&5
22027   (eval "$ac_compile") 2>conftest.er1
22028   ac_status=$?
22029   grep -v '^ *+' conftest.er1 >conftest.err
22030   rm -f conftest.er1
22031   cat conftest.err >&5
22032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22033   (exit $ac_status); } && {
22034          test -z "$ac_c_werror_flag" ||
22035          test ! -s conftest.err
22036        } && test -s conftest.$ac_objext; then
22037   gl_cv_sys_struct_utimbuf=yes
22038 else
22039   $as_echo "$as_me: failed program was:" >&5
22040 sed 's/^/| /' conftest.$ac_ext >&5
22041
22042         gl_cv_sys_struct_utimbuf=no
22043 fi
22044
22045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22046 fi
22047 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
22048 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
22049
22050   if test $gl_cv_sys_struct_utimbuf = yes; then
22051
22052 cat >>confdefs.h <<\_ACEOF
22053 #define HAVE_STRUCT_UTIMBUF 1
22054 _ACEOF
22055
22056   fi
22057
22058
22059
22060
22061
22062
22063
22064
22065
22066
22067
22068
22069
22070
22071   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
22072 $as_echo_n "checking for wint_t... " >&6; }
22073 if test "${gt_cv_c_wint_t+set}" = set; then
22074   $as_echo_n "(cached) " >&6
22075 else
22076   cat >conftest.$ac_ext <<_ACEOF
22077 /* confdefs.h.  */
22078 _ACEOF
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h.  */
22082
22083 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
22084    <wchar.h>.
22085    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
22086    before <wchar.h>.  */
22087 #include <stddef.h>
22088 #include <stdio.h>
22089 #include <time.h>
22090 #include <wchar.h>
22091        wint_t foo = (wchar_t)'\0';
22092 int
22093 main ()
22094 {
22095
22096   ;
22097   return 0;
22098 }
22099 _ACEOF
22100 rm -f conftest.$ac_objext
22101 if { (ac_try="$ac_compile"
22102 case "(($ac_try" in
22103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22104   *) ac_try_echo=$ac_try;;
22105 esac
22106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22107 $as_echo "$ac_try_echo") >&5
22108   (eval "$ac_compile") 2>conftest.er1
22109   ac_status=$?
22110   grep -v '^ *+' conftest.er1 >conftest.err
22111   rm -f conftest.er1
22112   cat conftest.err >&5
22113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22114   (exit $ac_status); } && {
22115          test -z "$ac_c_werror_flag" ||
22116          test ! -s conftest.err
22117        } && test -s conftest.$ac_objext; then
22118   gt_cv_c_wint_t=yes
22119 else
22120   $as_echo "$as_me: failed program was:" >&5
22121 sed 's/^/| /' conftest.$ac_ext >&5
22122
22123         gt_cv_c_wint_t=no
22124 fi
22125
22126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22127 fi
22128 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
22129 $as_echo "$gt_cv_c_wint_t" >&6; }
22130   if test $gt_cv_c_wint_t = yes; then
22131
22132 cat >>confdefs.h <<\_ACEOF
22133 #define HAVE_WINT_T 1
22134 _ACEOF
22135
22136   fi
22137
22138
22139   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
22140 $as_echo_n "checking for inttypes.h... " >&6; }
22141 if test "${gl_cv_header_inttypes_h+set}" = set; then
22142   $as_echo_n "(cached) " >&6
22143 else
22144   cat >conftest.$ac_ext <<_ACEOF
22145 /* confdefs.h.  */
22146 _ACEOF
22147 cat confdefs.h >>conftest.$ac_ext
22148 cat >>conftest.$ac_ext <<_ACEOF
22149 /* end confdefs.h.  */
22150 #include <sys/types.h>
22151 #include <inttypes.h>
22152 int
22153 main ()
22154 {
22155 uintmax_t i = (uintmax_t) -1; return !i;
22156   ;
22157   return 0;
22158 }
22159 _ACEOF
22160 rm -f conftest.$ac_objext
22161 if { (ac_try="$ac_compile"
22162 case "(($ac_try" in
22163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22164   *) ac_try_echo=$ac_try;;
22165 esac
22166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22167 $as_echo "$ac_try_echo") >&5
22168   (eval "$ac_compile") 2>conftest.er1
22169   ac_status=$?
22170   grep -v '^ *+' conftest.er1 >conftest.err
22171   rm -f conftest.er1
22172   cat conftest.err >&5
22173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22174   (exit $ac_status); } && {
22175          test -z "$ac_c_werror_flag" ||
22176          test ! -s conftest.err
22177        } && test -s conftest.$ac_objext; then
22178   gl_cv_header_inttypes_h=yes
22179 else
22180   $as_echo "$as_me: failed program was:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22182
22183         gl_cv_header_inttypes_h=no
22184 fi
22185
22186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22187 fi
22188 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
22189 $as_echo "$gl_cv_header_inttypes_h" >&6; }
22190   if test $gl_cv_header_inttypes_h = yes; then
22191
22192 cat >>confdefs.h <<_ACEOF
22193 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
22194 _ACEOF
22195
22196   fi
22197
22198
22199   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
22200 $as_echo_n "checking for stdint.h... " >&6; }
22201 if test "${gl_cv_header_stdint_h+set}" = set; then
22202   $as_echo_n "(cached) " >&6
22203 else
22204   cat >conftest.$ac_ext <<_ACEOF
22205 /* confdefs.h.  */
22206 _ACEOF
22207 cat confdefs.h >>conftest.$ac_ext
22208 cat >>conftest.$ac_ext <<_ACEOF
22209 /* end confdefs.h.  */
22210 #include <sys/types.h>
22211 #include <stdint.h>
22212 int
22213 main ()
22214 {
22215 uintmax_t i = (uintmax_t) -1; return !i;
22216   ;
22217   return 0;
22218 }
22219 _ACEOF
22220 rm -f conftest.$ac_objext
22221 if { (ac_try="$ac_compile"
22222 case "(($ac_try" in
22223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224   *) ac_try_echo=$ac_try;;
22225 esac
22226 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22227 $as_echo "$ac_try_echo") >&5
22228   (eval "$ac_compile") 2>conftest.er1
22229   ac_status=$?
22230   grep -v '^ *+' conftest.er1 >conftest.err
22231   rm -f conftest.er1
22232   cat conftest.err >&5
22233   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234   (exit $ac_status); } && {
22235          test -z "$ac_c_werror_flag" ||
22236          test ! -s conftest.err
22237        } && test -s conftest.$ac_objext; then
22238   gl_cv_header_stdint_h=yes
22239 else
22240   $as_echo "$as_me: failed program was:" >&5
22241 sed 's/^/| /' conftest.$ac_ext >&5
22242
22243         gl_cv_header_stdint_h=no
22244 fi
22245
22246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22247 fi
22248 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
22249 $as_echo "$gl_cv_header_stdint_h" >&6; }
22250   if test $gl_cv_header_stdint_h = yes; then
22251
22252 cat >>confdefs.h <<_ACEOF
22253 #define HAVE_STDINT_H_WITH_UINTMAX 1
22254 _ACEOF
22255
22256   fi
22257
22258
22259
22260
22261   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
22262 $as_echo_n "checking for intmax_t... " >&6; }
22263 if test "${gt_cv_c_intmax_t+set}" = set; then
22264   $as_echo_n "(cached) " >&6
22265 else
22266   cat >conftest.$ac_ext <<_ACEOF
22267 /* confdefs.h.  */
22268 _ACEOF
22269 cat confdefs.h >>conftest.$ac_ext
22270 cat >>conftest.$ac_ext <<_ACEOF
22271 /* end confdefs.h.  */
22272
22273 #include <stddef.h>
22274 #include <stdlib.h>
22275 #if HAVE_STDINT_H_WITH_UINTMAX
22276 #include <stdint.h>
22277 #endif
22278 #if HAVE_INTTYPES_H_WITH_UINTMAX
22279 #include <inttypes.h>
22280 #endif
22281
22282 int
22283 main ()
22284 {
22285 intmax_t x = -1; return !x;
22286   ;
22287   return 0;
22288 }
22289 _ACEOF
22290 rm -f conftest.$ac_objext
22291 if { (ac_try="$ac_compile"
22292 case "(($ac_try" in
22293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22294   *) ac_try_echo=$ac_try;;
22295 esac
22296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22297 $as_echo "$ac_try_echo") >&5
22298   (eval "$ac_compile") 2>conftest.er1
22299   ac_status=$?
22300   grep -v '^ *+' conftest.er1 >conftest.err
22301   rm -f conftest.er1
22302   cat conftest.err >&5
22303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22304   (exit $ac_status); } && {
22305          test -z "$ac_c_werror_flag" ||
22306          test ! -s conftest.err
22307        } && test -s conftest.$ac_objext; then
22308   gt_cv_c_intmax_t=yes
22309 else
22310   $as_echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22312
22313         gt_cv_c_intmax_t=no
22314 fi
22315
22316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22317 fi
22318 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
22319 $as_echo "$gt_cv_c_intmax_t" >&6; }
22320   if test $gt_cv_c_intmax_t = yes; then
22321
22322 cat >>confdefs.h <<\_ACEOF
22323 #define HAVE_INTMAX_T 1
22324 _ACEOF
22325
22326   else
22327
22328     test $ac_cv_type_long_long_int = yes \
22329       && ac_type='long long' \
22330       || ac_type='long'
22331
22332 cat >>confdefs.h <<_ACEOF
22333 #define intmax_t $ac_type
22334 _ACEOF
22335
22336   fi
22337
22338
22339
22340
22341
22342
22343
22344
22345
22346
22347
22348
22349 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
22350 do
22351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22352 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22353 $as_echo_n "checking for $ac_func... " >&6; }
22354 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22355   $as_echo_n "(cached) " >&6
22356 else
22357   cat >conftest.$ac_ext <<_ACEOF
22358 /* confdefs.h.  */
22359 _ACEOF
22360 cat confdefs.h >>conftest.$ac_ext
22361 cat >>conftest.$ac_ext <<_ACEOF
22362 /* end confdefs.h.  */
22363 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22364    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22365 #define $ac_func innocuous_$ac_func
22366
22367 /* System header to define __stub macros and hopefully few prototypes,
22368     which can conflict with char $ac_func (); below.
22369     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22370     <limits.h> exists even on freestanding compilers.  */
22371
22372 #ifdef __STDC__
22373 # include <limits.h>
22374 #else
22375 # include <assert.h>
22376 #endif
22377
22378 #undef $ac_func
22379
22380 /* Override any GCC internal prototype to avoid an error.
22381    Use char because int might match the return type of a GCC
22382    builtin and then its argument prototype would still apply.  */
22383 #ifdef __cplusplus
22384 extern "C"
22385 #endif
22386 char $ac_func ();
22387 /* The GNU C library defines this for functions which it implements
22388     to always fail with ENOSYS.  Some functions are actually named
22389     something starting with __ and the normal name is an alias.  */
22390 #if defined __stub_$ac_func || defined __stub___$ac_func
22391 choke me
22392 #endif
22393
22394 int
22395 main ()
22396 {
22397 return $ac_func ();
22398   ;
22399   return 0;
22400 }
22401 _ACEOF
22402 rm -f conftest.$ac_objext conftest$ac_exeext
22403 if { (ac_try="$ac_link"
22404 case "(($ac_try" in
22405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22406   *) ac_try_echo=$ac_try;;
22407 esac
22408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22409 $as_echo "$ac_try_echo") >&5
22410   (eval "$ac_link") 2>conftest.er1
22411   ac_status=$?
22412   grep -v '^ *+' conftest.er1 >conftest.err
22413   rm -f conftest.er1
22414   cat conftest.err >&5
22415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22416   (exit $ac_status); } && {
22417          test -z "$ac_c_werror_flag" ||
22418          test ! -s conftest.err
22419        } && test -s conftest$ac_exeext && {
22420          test "$cross_compiling" = yes ||
22421          $as_test_x conftest$ac_exeext
22422        }; then
22423   eval "$as_ac_var=yes"
22424 else
22425   $as_echo "$as_me: failed program was:" >&5
22426 sed 's/^/| /' conftest.$ac_ext >&5
22427
22428         eval "$as_ac_var=no"
22429 fi
22430
22431 rm -rf conftest.dSYM
22432 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22433       conftest$ac_exeext conftest.$ac_ext
22434 fi
22435 ac_res=`eval 'as_val=${'$as_ac_var'}
22436                  $as_echo "$as_val"'`
22437                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22438 $as_echo "$ac_res" >&6; }
22439 as_val=`eval 'as_val=${'$as_ac_var'}
22440                  $as_echo "$as_val"'`
22441    if test "x$as_val" = x""yes; then
22442   cat >>confdefs.h <<_ACEOF
22443 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22444 _ACEOF
22445
22446 fi
22447 done
22448
22449       { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
22450 $as_echo_n "checking whether _snprintf is declared... " >&6; }
22451 if test "${ac_cv_have_decl__snprintf+set}" = set; then
22452   $as_echo_n "(cached) " >&6
22453 else
22454   cat >conftest.$ac_ext <<_ACEOF
22455 /* confdefs.h.  */
22456 _ACEOF
22457 cat confdefs.h >>conftest.$ac_ext
22458 cat >>conftest.$ac_ext <<_ACEOF
22459 /* end confdefs.h.  */
22460 #include <stdio.h>
22461
22462 int
22463 main ()
22464 {
22465 #ifndef _snprintf
22466   (void) _snprintf;
22467 #endif
22468
22469   ;
22470   return 0;
22471 }
22472 _ACEOF
22473 rm -f conftest.$ac_objext
22474 if { (ac_try="$ac_compile"
22475 case "(($ac_try" in
22476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22477   *) ac_try_echo=$ac_try;;
22478 esac
22479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22480 $as_echo "$ac_try_echo") >&5
22481   (eval "$ac_compile") 2>conftest.er1
22482   ac_status=$?
22483   grep -v '^ *+' conftest.er1 >conftest.err
22484   rm -f conftest.er1
22485   cat conftest.err >&5
22486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487   (exit $ac_status); } && {
22488          test -z "$ac_c_werror_flag" ||
22489          test ! -s conftest.err
22490        } && test -s conftest.$ac_objext; then
22491   ac_cv_have_decl__snprintf=yes
22492 else
22493   $as_echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22495
22496         ac_cv_have_decl__snprintf=no
22497 fi
22498
22499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22500 fi
22501 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
22502 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
22503 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
22504
22505 cat >>confdefs.h <<_ACEOF
22506 #define HAVE_DECL__SNPRINTF 1
22507 _ACEOF
22508
22509
22510 else
22511   cat >>confdefs.h <<_ACEOF
22512 #define HAVE_DECL__SNPRINTF 0
22513 _ACEOF
22514
22515
22516 fi
22517
22518
22519
22520 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
22521 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
22522 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
22523   $as_echo_n "(cached) " >&6
22524 else
22525   cat >conftest.$ac_ext <<_ACEOF
22526 /* confdefs.h.  */
22527 _ACEOF
22528 cat confdefs.h >>conftest.$ac_ext
22529 cat >>conftest.$ac_ext <<_ACEOF
22530 /* end confdefs.h.  */
22531 $ac_includes_default
22532 int
22533 main ()
22534 {
22535 #ifndef vsnprintf
22536   (void) vsnprintf;
22537 #endif
22538
22539   ;
22540   return 0;
22541 }
22542 _ACEOF
22543 rm -f conftest.$ac_objext
22544 if { (ac_try="$ac_compile"
22545 case "(($ac_try" in
22546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547   *) ac_try_echo=$ac_try;;
22548 esac
22549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22550 $as_echo "$ac_try_echo") >&5
22551   (eval "$ac_compile") 2>conftest.er1
22552   ac_status=$?
22553   grep -v '^ *+' conftest.er1 >conftest.err
22554   rm -f conftest.er1
22555   cat conftest.err >&5
22556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22557   (exit $ac_status); } && {
22558          test -z "$ac_c_werror_flag" ||
22559          test ! -s conftest.err
22560        } && test -s conftest.$ac_objext; then
22561   ac_cv_have_decl_vsnprintf=yes
22562 else
22563   $as_echo "$as_me: failed program was:" >&5
22564 sed 's/^/| /' conftest.$ac_ext >&5
22565
22566         ac_cv_have_decl_vsnprintf=no
22567 fi
22568
22569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22570 fi
22571 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
22572 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
22573 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
22574
22575 cat >>confdefs.h <<_ACEOF
22576 #define HAVE_DECL_VSNPRINTF 1
22577 _ACEOF
22578
22579
22580 else
22581   cat >>confdefs.h <<_ACEOF
22582 #define HAVE_DECL_VSNPRINTF 0
22583 _ACEOF
22584
22585
22586 fi
22587
22588
22589
22590
22591
22592
22593
22594
22595
22596    if false; then
22597   GL_COND_LIBTOOL_TRUE=
22598   GL_COND_LIBTOOL_FALSE='#'
22599 else
22600   GL_COND_LIBTOOL_TRUE='#'
22601   GL_COND_LIBTOOL_FALSE=
22602 fi
22603
22604   gl_cond_libtool=false
22605   gl_libdeps=
22606   gl_ltlibdeps=
22607
22608
22609
22610
22611
22612
22613
22614
22615
22616   gl_source_base='gnu'
22617
22618
22619
22620
22621
22622   if test $ac_cv_func_alloca_works = no; then
22623     :
22624   fi
22625
22626   # Define an additional variable used in the Makefile substitution.
22627   if test $ac_cv_working_alloca_h = yes; then
22628     { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
22629 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
22630 if test "${gl_cv_rpl_alloca+set}" = set; then
22631   $as_echo_n "(cached) " >&6
22632 else
22633
22634       cat >conftest.$ac_ext <<_ACEOF
22635 /* confdefs.h.  */
22636 _ACEOF
22637 cat confdefs.h >>conftest.$ac_ext
22638 cat >>conftest.$ac_ext <<_ACEOF
22639 /* end confdefs.h.  */
22640
22641 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
22642         Need own alloca
22643 #endif
22644
22645 _ACEOF
22646 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22647   $EGREP "Need own alloca" >/dev/null 2>&1; then
22648   gl_cv_rpl_alloca=yes
22649 else
22650   gl_cv_rpl_alloca=no
22651 fi
22652 rm -f conftest*
22653
22654
22655 fi
22656 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
22657 $as_echo "$gl_cv_rpl_alloca" >&6; }
22658     if test $gl_cv_rpl_alloca = yes; then
22659
22660 cat >>confdefs.h <<\_ACEOF
22661 #define HAVE_ALLOCA 1
22662 _ACEOF
22663
22664       ALLOCA_H=alloca.h
22665     else
22666                   ALLOCA_H=
22667     fi
22668   else
22669     ALLOCA_H=alloca.h
22670   fi
22671
22672
22673
22674
22675
22676
22677
22678
22679
22680
22681
22682   gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
22683
22684
22685
22686
22687
22688
22689
22690
22691   GETOPT_H=getopt.h
22692
22693 cat >>confdefs.h <<\_ACEOF
22694 #define __GETOPT_PREFIX rpl_
22695 _ACEOF
22696
22697
22698
22699     GNULIB_UNISTD_H_GETOPT=1
22700
22701
22702
22703
22704
22705
22706
22707
22708   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22709
22710
22711
22712
22713
22714
22715
22716
22717
22718   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22719
22720
22721
22722
22723
22724
22725
22726
22727
22728   { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
22729 $as_echo_n "checking whether program_invocation_name is declared... " >&6; }
22730 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
22731   $as_echo_n "(cached) " >&6
22732 else
22733   cat >conftest.$ac_ext <<_ACEOF
22734 /* confdefs.h.  */
22735 _ACEOF
22736 cat confdefs.h >>conftest.$ac_ext
22737 cat >>conftest.$ac_ext <<_ACEOF
22738 /* end confdefs.h.  */
22739 #include <errno.h>
22740
22741 int
22742 main ()
22743 {
22744 #ifndef program_invocation_name
22745   (void) program_invocation_name;
22746 #endif
22747
22748   ;
22749   return 0;
22750 }
22751 _ACEOF
22752 rm -f conftest.$ac_objext
22753 if { (ac_try="$ac_compile"
22754 case "(($ac_try" in
22755   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22756   *) ac_try_echo=$ac_try;;
22757 esac
22758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22759 $as_echo "$ac_try_echo") >&5
22760   (eval "$ac_compile") 2>conftest.er1
22761   ac_status=$?
22762   grep -v '^ *+' conftest.er1 >conftest.err
22763   rm -f conftest.er1
22764   cat conftest.err >&5
22765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766   (exit $ac_status); } && {
22767          test -z "$ac_c_werror_flag" ||
22768          test ! -s conftest.err
22769        } && test -s conftest.$ac_objext; then
22770   ac_cv_have_decl_program_invocation_name=yes
22771 else
22772   $as_echo "$as_me: failed program was:" >&5
22773 sed 's/^/| /' conftest.$ac_ext >&5
22774
22775         ac_cv_have_decl_program_invocation_name=no
22776 fi
22777
22778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22779 fi
22780 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
22781 $as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
22782 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
22783
22784 cat >>confdefs.h <<\_ACEOF
22785 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
22786 _ACEOF
22787
22788 else
22789
22790 cat >>confdefs.h <<\_ACEOF
22791 #define GNULIB_PROGRAM_INVOCATION_NAME 1
22792 _ACEOF
22793
22794 fi
22795
22796   { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
22797 $as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
22798 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
22799   $as_echo_n "(cached) " >&6
22800 else
22801   cat >conftest.$ac_ext <<_ACEOF
22802 /* confdefs.h.  */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h.  */
22807 #include <errno.h>
22808
22809 int
22810 main ()
22811 {
22812 #ifndef program_invocation_short_name
22813   (void) program_invocation_short_name;
22814 #endif
22815
22816   ;
22817   return 0;
22818 }
22819 _ACEOF
22820 rm -f conftest.$ac_objext
22821 if { (ac_try="$ac_compile"
22822 case "(($ac_try" in
22823   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22824   *) ac_try_echo=$ac_try;;
22825 esac
22826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22827 $as_echo "$ac_try_echo") >&5
22828   (eval "$ac_compile") 2>conftest.er1
22829   ac_status=$?
22830   grep -v '^ *+' conftest.er1 >conftest.err
22831   rm -f conftest.er1
22832   cat conftest.err >&5
22833   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22834   (exit $ac_status); } && {
22835          test -z "$ac_c_werror_flag" ||
22836          test ! -s conftest.err
22837        } && test -s conftest.$ac_objext; then
22838   ac_cv_have_decl_program_invocation_short_name=yes
22839 else
22840   $as_echo "$as_me: failed program was:" >&5
22841 sed 's/^/| /' conftest.$ac_ext >&5
22842
22843         ac_cv_have_decl_program_invocation_short_name=no
22844 fi
22845
22846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22847 fi
22848 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
22849 $as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
22850 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
22851
22852 cat >>confdefs.h <<\_ACEOF
22853 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
22854 _ACEOF
22855
22856 else
22857
22858 cat >>confdefs.h <<\_ACEOF
22859 #define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
22860 _ACEOF
22861
22862 fi
22863
22864
22865   # Check if program_invocation_name and program_invocation_short_name
22866   # are defined elsewhere. It is improbable that only one of them will
22867   # be defined and other not, I prefer to stay on the safe side and to
22868   # test each one separately.
22869   { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
22870 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
22871   cat >conftest.$ac_ext <<_ACEOF
22872 /* confdefs.h.  */
22873 _ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h.  */
22877 #include <argp.h>
22878 int
22879 main ()
22880 {
22881  program_invocation_name = "test";
22882   ;
22883   return 0;
22884 }
22885 _ACEOF
22886 rm -f conftest.$ac_objext conftest$ac_exeext
22887 if { (ac_try="$ac_link"
22888 case "(($ac_try" in
22889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22890   *) ac_try_echo=$ac_try;;
22891 esac
22892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22893 $as_echo "$ac_try_echo") >&5
22894   (eval "$ac_link") 2>conftest.er1
22895   ac_status=$?
22896   grep -v '^ *+' conftest.er1 >conftest.err
22897   rm -f conftest.er1
22898   cat conftest.err >&5
22899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22900   (exit $ac_status); } && {
22901          test -z "$ac_c_werror_flag" ||
22902          test ! -s conftest.err
22903        } && test -s conftest$ac_exeext && {
22904          test "$cross_compiling" = yes ||
22905          $as_test_x conftest$ac_exeext
22906        }; then
22907
22908 cat >>confdefs.h <<\_ACEOF
22909 #define HAVE_PROGRAM_INVOCATION_NAME 1
22910 _ACEOF
22911
22912                  { $as_echo "$as_me:$LINENO: result: yes" >&5
22913 $as_echo "yes" >&6; }
22914 else
22915   $as_echo "$as_me: failed program was:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22917
22918          { $as_echo "$as_me:$LINENO: result: no" >&5
22919 $as_echo "no" >&6; }
22920 fi
22921
22922 rm -rf conftest.dSYM
22923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22924       conftest$ac_exeext conftest.$ac_ext
22925
22926   { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
22927 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
22928   cat >conftest.$ac_ext <<_ACEOF
22929 /* confdefs.h.  */
22930 _ACEOF
22931 cat confdefs.h >>conftest.$ac_ext
22932 cat >>conftest.$ac_ext <<_ACEOF
22933 /* end confdefs.h.  */
22934 #include <argp.h>
22935 int
22936 main ()
22937 {
22938  program_invocation_short_name = "test";
22939   ;
22940   return 0;
22941 }
22942 _ACEOF
22943 rm -f conftest.$ac_objext conftest$ac_exeext
22944 if { (ac_try="$ac_link"
22945 case "(($ac_try" in
22946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947   *) ac_try_echo=$ac_try;;
22948 esac
22949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22950 $as_echo "$ac_try_echo") >&5
22951   (eval "$ac_link") 2>conftest.er1
22952   ac_status=$?
22953   grep -v '^ *+' conftest.er1 >conftest.err
22954   rm -f conftest.er1
22955   cat conftest.err >&5
22956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957   (exit $ac_status); } && {
22958          test -z "$ac_c_werror_flag" ||
22959          test ! -s conftest.err
22960        } && test -s conftest$ac_exeext && {
22961          test "$cross_compiling" = yes ||
22962          $as_test_x conftest$ac_exeext
22963        }; then
22964
22965 cat >>confdefs.h <<\_ACEOF
22966 #define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
22967 _ACEOF
22968
22969                  { $as_echo "$as_me:$LINENO: result: yes" >&5
22970 $as_echo "yes" >&6; }
22971 else
22972   $as_echo "$as_me: failed program was:" >&5
22973 sed 's/^/| /' conftest.$ac_ext >&5
22974
22975          { $as_echo "$as_me:$LINENO: result: no" >&5
22976 $as_echo "no" >&6; }
22977 fi
22978
22979 rm -rf conftest.dSYM
22980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22981       conftest$ac_exeext conftest.$ac_ext
22982
22983
22984
22985
22986
22987
22988
22989
22990
22991
22992
22993
22994
22995
22996
22997
22998
22999
23000
23001
23002
23003
23004
23005
23006
23007
23008
23009
23010
23011
23012
23013
23014
23015
23016
23017
23018
23019
23020
23021
23022
23023
23024
23025
23026
23027
23028
23029
23030
23031
23032
23033
23034
23035
23036
23037
23038
23039
23040
23041
23042
23043
23044
23045
23046
23047
23048
23049
23050
23051
23052
23053
23054   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
23055
23056
23057
23058   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
23059
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069   gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
23070
23071
23072
23073
23074
23075
23076
23077
23078
23079
23080
23081
23082
23083
23084
23085
23086
23087
23088
23089
23090
23091
23092
23093
23094   if test $ac_cv_func_btowc = no; then
23095     HAVE_BTOWC=0
23096   else
23097
23098
23099
23100          { $as_echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
23101 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
23102 if test "${gl_cv_func_btowc_eof+set}" = set; then
23103   $as_echo_n "(cached) " >&6
23104 else
23105
23106                         case "$host_os" in
23107                  # Guess no on IRIX.
23108           irix*) gl_cv_func_btowc_eof="guessing no" ;;
23109                  # Guess yes otherwise.
23110           *)     gl_cv_func_btowc_eof="guessing yes" ;;
23111         esac
23112         if test $LOCALE_FR != none; then
23113           if test "$cross_compiling" = yes; then
23114   :
23115 else
23116   cat >conftest.$ac_ext <<_ACEOF
23117 /* confdefs.h.  */
23118 _ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h.  */
23122
23123 #include <locale.h>
23124 #include <stdio.h>
23125 #include <string.h>
23126 #include <wchar.h>
23127 int main ()
23128 {
23129   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
23130     {
23131       if (btowc (EOF) != WEOF)
23132         return 1;
23133     }
23134   return 0;
23135 }
23136 _ACEOF
23137 rm -f conftest$ac_exeext
23138 if { (ac_try="$ac_link"
23139 case "(($ac_try" in
23140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23141   *) ac_try_echo=$ac_try;;
23142 esac
23143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23144 $as_echo "$ac_try_echo") >&5
23145   (eval "$ac_link") 2>&5
23146   ac_status=$?
23147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23149   { (case "(($ac_try" in
23150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23151   *) ac_try_echo=$ac_try;;
23152 esac
23153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23154 $as_echo "$ac_try_echo") >&5
23155   (eval "$ac_try") 2>&5
23156   ac_status=$?
23157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23158   (exit $ac_status); }; }; then
23159   gl_cv_func_btowc_eof=yes
23160 else
23161   $as_echo "$as_me: program exited with status $ac_status" >&5
23162 $as_echo "$as_me: failed program was:" >&5
23163 sed 's/^/| /' conftest.$ac_ext >&5
23164
23165 ( exit $ac_status )
23166 gl_cv_func_btowc_eof=no
23167 fi
23168 rm -rf conftest.dSYM
23169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23170 fi
23171
23172
23173         fi
23174
23175 fi
23176 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
23177 $as_echo "$gl_cv_func_btowc_eof" >&6; }
23178     case "$gl_cv_func_btowc_eof" in
23179       *yes) ;;
23180       *) REPLACE_BTOWC=1 ;;
23181     esac
23182   fi
23183   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
23184
23185     :
23186
23187
23188
23189
23190
23191
23192
23193
23194
23195   gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
23196
23197
23198   :
23199
23200   fi
23201
23202
23203
23204   GNULIB_BTOWC=1
23205
23206
23207 cat >>confdefs.h <<\_ACEOF
23208 #define GNULIB_BTOWC 1
23209 _ACEOF
23210
23211
23212
23213
23214
23215
23216
23217
23218
23219
23220
23221
23222   gl_LIBOBJS="$gl_LIBOBJS canonicalize.$ac_objext"
23223
23224
23225
23226
23227
23228
23229
23230
23231
23232
23233
23234   if test $ac_cv_func_canonicalize_file_name = no; then
23235     HAVE_CANONICALIZE_FILE_NAME=0
23236   elif test "$gl_cv_func_realpath_works" != yes; then
23237     REPLACE_CANONICALIZE_FILE_NAME=1
23238   fi
23239
23240
23241
23242 cat >>confdefs.h <<\_ACEOF
23243 #define GNULIB_CANONICALIZE 1
23244 _ACEOF
23245
23246
23247
23248
23249   GNULIB_CANONICALIZE_FILE_NAME=1
23250
23251
23252 cat >>confdefs.h <<\_ACEOF
23253 #define GNULIB_CANONICALIZE_FILE_NAME 1
23254 _ACEOF
23255
23256
23257
23258
23259   { $as_echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
23260 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
23261 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
23262   $as_echo_n "(cached) " >&6
23263 else
23264   cat >conftest.$ac_ext <<_ACEOF
23265 /* confdefs.h.  */
23266 _ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h.  */
23270 #include <unistd.h>
23271 #include <limits.h>
23272 #if defined PATH_MAX || defined MAXPATHLEN
23273 have_arbitrary_file_name_length_limit
23274 #endif
23275 _ACEOF
23276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23277   $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
23278   gl_cv_have_arbitrary_file_name_length_limit=yes
23279 else
23280   gl_cv_have_arbitrary_file_name_length_limit=no
23281 fi
23282 rm -f conftest*
23283
23284 fi
23285 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
23286 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
23287
23288   if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
23289
23290
23291
23292
23293
23294
23295
23296
23297   gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
23298
23299
23300
23301   :
23302
23303   fi
23304
23305
23306
23307
23308   GNULIB_CHOWN=1
23309
23310
23311 cat >>confdefs.h <<\_ACEOF
23312 #define GNULIB_CHOWN 1
23313 _ACEOF
23314
23315
23316
23317
23318
23319
23320   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
23321   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
23322
23323   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
23324   # programs in the package would end up linked with that potentially-shared
23325   # library, inducing unnecessary run-time overhead.
23326   LIB_CLOCK_GETTIME=
23327
23328   gl_saved_libs=$LIBS
23329     { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
23330 $as_echo_n "checking for library containing clock_gettime... " >&6; }
23331 if test "${ac_cv_search_clock_gettime+set}" = set; then
23332   $as_echo_n "(cached) " >&6
23333 else
23334   ac_func_search_save_LIBS=$LIBS
23335 cat >conftest.$ac_ext <<_ACEOF
23336 /* confdefs.h.  */
23337 _ACEOF
23338 cat confdefs.h >>conftest.$ac_ext
23339 cat >>conftest.$ac_ext <<_ACEOF
23340 /* end confdefs.h.  */
23341
23342 /* Override any GCC internal prototype to avoid an error.
23343    Use char because int might match the return type of a GCC
23344    builtin and then its argument prototype would still apply.  */
23345 #ifdef __cplusplus
23346 extern "C"
23347 #endif
23348 char clock_gettime ();
23349 int
23350 main ()
23351 {
23352 return clock_gettime ();
23353   ;
23354   return 0;
23355 }
23356 _ACEOF
23357 for ac_lib in '' rt posix4; do
23358   if test -z "$ac_lib"; then
23359     ac_res="none required"
23360   else
23361     ac_res=-l$ac_lib
23362     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
23363   fi
23364   rm -f conftest.$ac_objext conftest$ac_exeext
23365 if { (ac_try="$ac_link"
23366 case "(($ac_try" in
23367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23368   *) ac_try_echo=$ac_try;;
23369 esac
23370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23371 $as_echo "$ac_try_echo") >&5
23372   (eval "$ac_link") 2>conftest.er1
23373   ac_status=$?
23374   grep -v '^ *+' conftest.er1 >conftest.err
23375   rm -f conftest.er1
23376   cat conftest.err >&5
23377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23378   (exit $ac_status); } && {
23379          test -z "$ac_c_werror_flag" ||
23380          test ! -s conftest.err
23381        } && test -s conftest$ac_exeext && {
23382          test "$cross_compiling" = yes ||
23383          $as_test_x conftest$ac_exeext
23384        }; then
23385   ac_cv_search_clock_gettime=$ac_res
23386 else
23387   $as_echo "$as_me: failed program was:" >&5
23388 sed 's/^/| /' conftest.$ac_ext >&5
23389
23390
23391 fi
23392
23393 rm -rf conftest.dSYM
23394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23395       conftest$ac_exeext
23396   if test "${ac_cv_search_clock_gettime+set}" = set; then
23397   break
23398 fi
23399 done
23400 if test "${ac_cv_search_clock_gettime+set}" = set; then
23401   :
23402 else
23403   ac_cv_search_clock_gettime=no
23404 fi
23405 rm conftest.$ac_ext
23406 LIBS=$ac_func_search_save_LIBS
23407 fi
23408 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
23409 $as_echo "$ac_cv_search_clock_gettime" >&6; }
23410 ac_res=$ac_cv_search_clock_gettime
23411 if test "$ac_res" != no; then
23412   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
23413   test "$ac_cv_search_clock_gettime" = "none required" ||
23414                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
23415 fi
23416
23417
23418
23419 for ac_func in clock_gettime clock_settime
23420 do
23421 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23422 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23423 $as_echo_n "checking for $ac_func... " >&6; }
23424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23425   $as_echo_n "(cached) " >&6
23426 else
23427   cat >conftest.$ac_ext <<_ACEOF
23428 /* confdefs.h.  */
23429 _ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h.  */
23433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23434    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23435 #define $ac_func innocuous_$ac_func
23436
23437 /* System header to define __stub macros and hopefully few prototypes,
23438     which can conflict with char $ac_func (); below.
23439     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23440     <limits.h> exists even on freestanding compilers.  */
23441
23442 #ifdef __STDC__
23443 # include <limits.h>
23444 #else
23445 # include <assert.h>
23446 #endif
23447
23448 #undef $ac_func
23449
23450 /* Override any GCC internal prototype to avoid an error.
23451    Use char because int might match the return type of a GCC
23452    builtin and then its argument prototype would still apply.  */
23453 #ifdef __cplusplus
23454 extern "C"
23455 #endif
23456 char $ac_func ();
23457 /* The GNU C library defines this for functions which it implements
23458     to always fail with ENOSYS.  Some functions are actually named
23459     something starting with __ and the normal name is an alias.  */
23460 #if defined __stub_$ac_func || defined __stub___$ac_func
23461 choke me
23462 #endif
23463
23464 int
23465 main ()
23466 {
23467 return $ac_func ();
23468   ;
23469   return 0;
23470 }
23471 _ACEOF
23472 rm -f conftest.$ac_objext 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 ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23479 $as_echo "$ac_try_echo") >&5
23480   (eval "$ac_link") 2>conftest.er1
23481   ac_status=$?
23482   grep -v '^ *+' conftest.er1 >conftest.err
23483   rm -f conftest.er1
23484   cat conftest.err >&5
23485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23486   (exit $ac_status); } && {
23487          test -z "$ac_c_werror_flag" ||
23488          test ! -s conftest.err
23489        } && test -s conftest$ac_exeext && {
23490          test "$cross_compiling" = yes ||
23491          $as_test_x conftest$ac_exeext
23492        }; then
23493   eval "$as_ac_var=yes"
23494 else
23495   $as_echo "$as_me: failed program was:" >&5
23496 sed 's/^/| /' conftest.$ac_ext >&5
23497
23498         eval "$as_ac_var=no"
23499 fi
23500
23501 rm -rf conftest.dSYM
23502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23503       conftest$ac_exeext conftest.$ac_ext
23504 fi
23505 ac_res=`eval 'as_val=${'$as_ac_var'}
23506                  $as_echo "$as_val"'`
23507                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23508 $as_echo "$ac_res" >&6; }
23509 as_val=`eval 'as_val=${'$as_ac_var'}
23510                  $as_echo "$as_val"'`
23511    if test "x$as_val" = x""yes; then
23512   cat >>confdefs.h <<_ACEOF
23513 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23514 _ACEOF
23515
23516 fi
23517 done
23518
23519   LIBS=$gl_saved_libs
23520
23521
23522
23523
23524
23525
23526   GNULIB_CLOSE=1
23527
23528
23529 cat >>confdefs.h <<\_ACEOF
23530 #define GNULIB_CLOSE 1
23531 _ACEOF
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543
23544   gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
23545
23546
23547     :
23548
23549
23550
23551 cat >>confdefs.h <<\_ACEOF
23552 #define GNULIB_CLOSE_STREAM 1
23553 _ACEOF
23554
23555
23556
23557
23558
23559
23560
23561
23562
23563
23564
23565   gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
23566
23567
23568     :
23569
23570   { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
23571 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
23572 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
23573   $as_echo_n "(cached) " >&6
23574 else
23575   if test "$cross_compiling" = yes; then
23576   gl_cv_struct_dirent_d_ino=no
23577 else
23578   cat >conftest.$ac_ext <<_ACEOF
23579 /* confdefs.h.  */
23580 _ACEOF
23581 cat confdefs.h >>conftest.$ac_ext
23582 cat >>conftest.$ac_ext <<_ACEOF
23583 /* end confdefs.h.  */
23584 #include <sys/types.h>
23585              #include <sys/stat.h>
23586              #include <dirent.h>
23587
23588 int
23589 main ()
23590 {
23591 DIR *dp = opendir (".");
23592              struct dirent *e;
23593              struct stat st;
23594              if (! dp)
23595                return 1;
23596              e = readdir (dp);
23597              return ! (e
23598                        && stat (e->d_name, &st) == 0
23599                        && e->d_ino == st.st_ino);
23600   ;
23601   return 0;
23602 }
23603 _ACEOF
23604 rm -f conftest$ac_exeext
23605 if { (ac_try="$ac_link"
23606 case "(($ac_try" in
23607   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23608   *) ac_try_echo=$ac_try;;
23609 esac
23610 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23611 $as_echo "$ac_try_echo") >&5
23612   (eval "$ac_link") 2>&5
23613   ac_status=$?
23614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23615   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23616   { (case "(($ac_try" in
23617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23618   *) ac_try_echo=$ac_try;;
23619 esac
23620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23621 $as_echo "$ac_try_echo") >&5
23622   (eval "$ac_try") 2>&5
23623   ac_status=$?
23624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23625   (exit $ac_status); }; }; then
23626   gl_cv_struct_dirent_d_ino=yes
23627 else
23628   $as_echo "$as_me: program exited with status $ac_status" >&5
23629 $as_echo "$as_me: failed program was:" >&5
23630 sed 's/^/| /' conftest.$ac_ext >&5
23631
23632 ( exit $ac_status )
23633 gl_cv_struct_dirent_d_ino=no
23634 fi
23635 rm -rf conftest.dSYM
23636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23637 fi
23638
23639
23640 fi
23641 { $as_echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
23642 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
23643    if test $gl_cv_struct_dirent_d_ino = yes; then
23644
23645 cat >>confdefs.h <<\_ACEOF
23646 #define D_INO_IN_DIRENT 1
23647 _ACEOF
23648
23649    fi
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663
23664
23665
23666      if test $gl_cv_have_include_next = yes; then
23667        gl_cv_next_dirent_h='<'dirent.h'>'
23668      else
23669        { $as_echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
23670 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
23671 if test "${gl_cv_next_dirent_h+set}" = set; then
23672   $as_echo_n "(cached) " >&6
23673 else
23674
23675           if test $ac_cv_header_dirent_h = yes; then
23676             cat >conftest.$ac_ext <<_ACEOF
23677 /* confdefs.h.  */
23678 _ACEOF
23679 cat confdefs.h >>conftest.$ac_ext
23680 cat >>conftest.$ac_ext <<_ACEOF
23681 /* end confdefs.h.  */
23682 #include <dirent.h>
23683
23684 _ACEOF
23685                                                                                                 case "$host_os" in
23686               aix*) gl_absname_cpp="$ac_cpp -C" ;;
23687               *)    gl_absname_cpp="$ac_cpp" ;;
23688             esac
23689                                                 gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23690                sed -n '\#/dirent.h#{
23691                  s#.*"\(.*/dirent.h\)".*#\1#
23692                  s#^/[^/]#//&#
23693                  p
23694                  q
23695                }'`'"'
23696           else
23697             gl_cv_next_dirent_h='<'dirent.h'>'
23698           fi
23699
23700 fi
23701 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_dirent_h" >&5
23702 $as_echo "$gl_cv_next_dirent_h" >&6; }
23703      fi
23704      NEXT_DIRENT_H=$gl_cv_next_dirent_h
23705
23706      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23707        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23708        gl_next_as_first_directive='<'dirent.h'>'
23709      else
23710        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23711        gl_next_as_first_directive=$gl_cv_next_dirent_h
23712      fi
23713      NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
23714
23715
23716
23717
23718
23719
23720
23721
23722
23723   for gl_func in alphasort dirfd fdopendir scandir; do
23724     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23725     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
23726 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23727 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
23728   $as_echo_n "(cached) " >&6
23729 else
23730   cat >conftest.$ac_ext <<_ACEOF
23731 /* confdefs.h.  */
23732 _ACEOF
23733 cat confdefs.h >>conftest.$ac_ext
23734 cat >>conftest.$ac_ext <<_ACEOF
23735 /* end confdefs.h.  */
23736 #include <dirent.h>
23737
23738 int
23739 main ()
23740 {
23741 #undef $gl_func
23742   (void) $gl_func;
23743   ;
23744   return 0;
23745 }
23746 _ACEOF
23747 rm -f conftest.$ac_objext
23748 if { (ac_try="$ac_compile"
23749 case "(($ac_try" in
23750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751   *) ac_try_echo=$ac_try;;
23752 esac
23753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23754 $as_echo "$ac_try_echo") >&5
23755   (eval "$ac_compile") 2>conftest.er1
23756   ac_status=$?
23757   grep -v '^ *+' conftest.er1 >conftest.err
23758   rm -f conftest.er1
23759   cat conftest.err >&5
23760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23761   (exit $ac_status); } && {
23762          test -z "$ac_c_werror_flag" ||
23763          test ! -s conftest.err
23764        } && test -s conftest.$ac_objext; then
23765   eval "$as_gl_Symbol=yes"
23766 else
23767   $as_echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23769
23770         eval "$as_gl_Symbol=no"
23771 fi
23772
23773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23774 fi
23775 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
23776                  $as_echo "$as_val"'`
23777                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23778 $as_echo "$ac_res" >&6; }
23779      as_val=`eval 'as_val=${'$as_gl_Symbol'}
23780                  $as_echo "$as_val"'`
23781    if test "x$as_val" = x""yes; then
23782   cat >>confdefs.h <<_ACEOF
23783 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23784 _ACEOF
23785
23786                      eval ac_cv_have_decl_$gl_func=yes
23787 fi
23788
23789       done
23790
23791
23792
23793
23794
23795
23796
23797
23798
23799
23800
23801
23802
23803
23804
23805
23806
23807   gl_LIBOBJS="$gl_LIBOBJS opendir-safer.$ac_objext"
23808
23809
23810
23811
23812 cat >>confdefs.h <<\_ACEOF
23813 #define GNULIB_DIRENT_SAFER 1
23814 _ACEOF
23815
23816
23817
23818
23819
23820     :
23821
23822
23823
23824
23825
23826
23827
23828
23829 for ac_func in dirfd
23830 do
23831 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23832 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23833 $as_echo_n "checking for $ac_func... " >&6; }
23834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23835   $as_echo_n "(cached) " >&6
23836 else
23837   cat >conftest.$ac_ext <<_ACEOF
23838 /* confdefs.h.  */
23839 _ACEOF
23840 cat confdefs.h >>conftest.$ac_ext
23841 cat >>conftest.$ac_ext <<_ACEOF
23842 /* end confdefs.h.  */
23843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23844    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
23845 #define $ac_func innocuous_$ac_func
23846
23847 /* System header to define __stub macros and hopefully few prototypes,
23848     which can conflict with char $ac_func (); below.
23849     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23850     <limits.h> exists even on freestanding compilers.  */
23851
23852 #ifdef __STDC__
23853 # include <limits.h>
23854 #else
23855 # include <assert.h>
23856 #endif
23857
23858 #undef $ac_func
23859
23860 /* Override any GCC internal prototype to avoid an error.
23861    Use char because int might match the return type of a GCC
23862    builtin and then its argument prototype would still apply.  */
23863 #ifdef __cplusplus
23864 extern "C"
23865 #endif
23866 char $ac_func ();
23867 /* The GNU C library defines this for functions which it implements
23868     to always fail with ENOSYS.  Some functions are actually named
23869     something starting with __ and the normal name is an alias.  */
23870 #if defined __stub_$ac_func || defined __stub___$ac_func
23871 choke me
23872 #endif
23873
23874 int
23875 main ()
23876 {
23877 return $ac_func ();
23878   ;
23879   return 0;
23880 }
23881 _ACEOF
23882 rm -f conftest.$ac_objext conftest$ac_exeext
23883 if { (ac_try="$ac_link"
23884 case "(($ac_try" in
23885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23886   *) ac_try_echo=$ac_try;;
23887 esac
23888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23889 $as_echo "$ac_try_echo") >&5
23890   (eval "$ac_link") 2>conftest.er1
23891   ac_status=$?
23892   grep -v '^ *+' conftest.er1 >conftest.err
23893   rm -f conftest.er1
23894   cat conftest.err >&5
23895   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23896   (exit $ac_status); } && {
23897          test -z "$ac_c_werror_flag" ||
23898          test ! -s conftest.err
23899        } && test -s conftest$ac_exeext && {
23900          test "$cross_compiling" = yes ||
23901          $as_test_x conftest$ac_exeext
23902        }; then
23903   eval "$as_ac_var=yes"
23904 else
23905   $as_echo "$as_me: failed program was:" >&5
23906 sed 's/^/| /' conftest.$ac_ext >&5
23907
23908         eval "$as_ac_var=no"
23909 fi
23910
23911 rm -rf conftest.dSYM
23912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23913       conftest$ac_exeext conftest.$ac_ext
23914 fi
23915 ac_res=`eval 'as_val=${'$as_ac_var'}
23916                  $as_echo "$as_val"'`
23917                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23918 $as_echo "$ac_res" >&6; }
23919 as_val=`eval 'as_val=${'$as_ac_var'}
23920                  $as_echo "$as_val"'`
23921    if test "x$as_val" = x""yes; then
23922   cat >>confdefs.h <<_ACEOF
23923 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23924 _ACEOF
23925
23926 fi
23927 done
23928
23929   { $as_echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
23930 $as_echo_n "checking whether dirfd is declared... " >&6; }
23931 if test "${ac_cv_have_decl_dirfd+set}" = set; then
23932   $as_echo_n "(cached) " >&6
23933 else
23934   cat >conftest.$ac_ext <<_ACEOF
23935 /* confdefs.h.  */
23936 _ACEOF
23937 cat confdefs.h >>conftest.$ac_ext
23938 cat >>conftest.$ac_ext <<_ACEOF
23939 /* end confdefs.h.  */
23940 #include <sys/types.h>
23941      #include <dirent.h>
23942
23943 int
23944 main ()
23945 {
23946 #ifndef dirfd
23947   (void) dirfd;
23948 #endif
23949
23950   ;
23951   return 0;
23952 }
23953 _ACEOF
23954 rm -f conftest.$ac_objext
23955 if { (ac_try="$ac_compile"
23956 case "(($ac_try" in
23957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23958   *) ac_try_echo=$ac_try;;
23959 esac
23960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23961 $as_echo "$ac_try_echo") >&5
23962   (eval "$ac_compile") 2>conftest.er1
23963   ac_status=$?
23964   grep -v '^ *+' conftest.er1 >conftest.err
23965   rm -f conftest.er1
23966   cat conftest.err >&5
23967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23968   (exit $ac_status); } && {
23969          test -z "$ac_c_werror_flag" ||
23970          test ! -s conftest.err
23971        } && test -s conftest.$ac_objext; then
23972   ac_cv_have_decl_dirfd=yes
23973 else
23974   $as_echo "$as_me: failed program was:" >&5
23975 sed 's/^/| /' conftest.$ac_ext >&5
23976
23977         ac_cv_have_decl_dirfd=no
23978 fi
23979
23980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23981 fi
23982 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
23983 $as_echo "$ac_cv_have_decl_dirfd" >&6; }
23984 if test "x$ac_cv_have_decl_dirfd" = x""yes; then
23985
23986 cat >>confdefs.h <<_ACEOF
23987 #define HAVE_DECL_DIRFD 1
23988 _ACEOF
23989
23990
23991 else
23992   cat >>confdefs.h <<_ACEOF
23993 #define HAVE_DECL_DIRFD 0
23994 _ACEOF
23995
23996
23997 fi
23998
23999
24000   if test $ac_cv_have_decl_dirfd = no; then
24001     HAVE_DECL_DIRFD=0
24002   fi
24003
24004   { $as_echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
24005 $as_echo_n "checking whether dirfd is a macro... " >&6; }
24006 if test "${gl_cv_func_dirfd_macro+set}" = set; then
24007   $as_echo_n "(cached) " >&6
24008 else
24009   cat >conftest.$ac_ext <<_ACEOF
24010 /* confdefs.h.  */
24011 _ACEOF
24012 cat confdefs.h >>conftest.$ac_ext
24013 cat >>conftest.$ac_ext <<_ACEOF
24014 /* end confdefs.h.  */
24015
24016 #include <sys/types.h>
24017 #include <dirent.h>
24018 #ifdef dirfd
24019  dirent_header_defines_dirfd
24020 #endif
24021 _ACEOF
24022 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24023   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
24024   gl_cv_func_dirfd_macro=yes
24025 else
24026   gl_cv_func_dirfd_macro=no
24027 fi
24028 rm -f conftest*
24029
24030 fi
24031 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
24032 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
24033
24034   # Use the replacement only if we have no function, macro,
24035   # or declaration with that name.
24036   if test $ac_cv_func_dirfd,$ac_cv_have_decl_dirfd,$gl_cv_func_dirfd_macro \
24037       = no,no,no; then
24038
24039
24040
24041
24042
24043
24044
24045
24046
24047 for ac_func in dirfd
24048 do
24049 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24050 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24051 $as_echo_n "checking for $ac_func... " >&6; }
24052 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24053   $as_echo_n "(cached) " >&6
24054 else
24055   cat >conftest.$ac_ext <<_ACEOF
24056 /* confdefs.h.  */
24057 _ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h.  */
24061 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24062    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24063 #define $ac_func innocuous_$ac_func
24064
24065 /* System header to define __stub macros and hopefully few prototypes,
24066     which can conflict with char $ac_func (); below.
24067     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24068     <limits.h> exists even on freestanding compilers.  */
24069
24070 #ifdef __STDC__
24071 # include <limits.h>
24072 #else
24073 # include <assert.h>
24074 #endif
24075
24076 #undef $ac_func
24077
24078 /* Override any GCC internal prototype to avoid an error.
24079    Use char because int might match the return type of a GCC
24080    builtin and then its argument prototype would still apply.  */
24081 #ifdef __cplusplus
24082 extern "C"
24083 #endif
24084 char $ac_func ();
24085 /* The GNU C library defines this for functions which it implements
24086     to always fail with ENOSYS.  Some functions are actually named
24087     something starting with __ and the normal name is an alias.  */
24088 #if defined __stub_$ac_func || defined __stub___$ac_func
24089 choke me
24090 #endif
24091
24092 int
24093 main ()
24094 {
24095 return $ac_func ();
24096   ;
24097   return 0;
24098 }
24099 _ACEOF
24100 rm -f conftest.$ac_objext conftest$ac_exeext
24101 if { (ac_try="$ac_link"
24102 case "(($ac_try" in
24103   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104   *) ac_try_echo=$ac_try;;
24105 esac
24106 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24107 $as_echo "$ac_try_echo") >&5
24108   (eval "$ac_link") 2>conftest.er1
24109   ac_status=$?
24110   grep -v '^ *+' conftest.er1 >conftest.err
24111   rm -f conftest.er1
24112   cat conftest.err >&5
24113   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24114   (exit $ac_status); } && {
24115          test -z "$ac_c_werror_flag" ||
24116          test ! -s conftest.err
24117        } && test -s conftest$ac_exeext && {
24118          test "$cross_compiling" = yes ||
24119          $as_test_x conftest$ac_exeext
24120        }; then
24121   eval "$as_ac_var=yes"
24122 else
24123   $as_echo "$as_me: failed program was:" >&5
24124 sed 's/^/| /' conftest.$ac_ext >&5
24125
24126         eval "$as_ac_var=no"
24127 fi
24128
24129 rm -rf conftest.dSYM
24130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24131       conftest$ac_exeext conftest.$ac_ext
24132 fi
24133 ac_res=`eval 'as_val=${'$as_ac_var'}
24134                  $as_echo "$as_val"'`
24135                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24136 $as_echo "$ac_res" >&6; }
24137 as_val=`eval 'as_val=${'$as_ac_var'}
24138                  $as_echo "$as_val"'`
24139    if test "x$as_val" = x""yes; then
24140   cat >>confdefs.h <<_ACEOF
24141 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24142 _ACEOF
24143
24144 else
24145
24146     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
24147
24148 fi
24149 done
24150
24151
24152     { $as_echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
24153 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
24154 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
24155   $as_echo_n "(cached) " >&6
24156 else
24157
24158         dirfd_save_CFLAGS=$CFLAGS
24159         for ac_expr in d_fd dd_fd; do
24160
24161           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
24162           cat >conftest.$ac_ext <<_ACEOF
24163 /* confdefs.h.  */
24164 _ACEOF
24165 cat confdefs.h >>conftest.$ac_ext
24166 cat >>conftest.$ac_ext <<_ACEOF
24167 /* end confdefs.h.  */
24168
24169              #include <sys/types.h>
24170              #include <dirent.h>
24171 int
24172 main ()
24173 {
24174 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
24175   ;
24176   return 0;
24177 }
24178 _ACEOF
24179 rm -f conftest.$ac_objext
24180 if { (ac_try="$ac_compile"
24181 case "(($ac_try" in
24182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24183   *) ac_try_echo=$ac_try;;
24184 esac
24185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24186 $as_echo "$ac_try_echo") >&5
24187   (eval "$ac_compile") 2>conftest.er1
24188   ac_status=$?
24189   grep -v '^ *+' conftest.er1 >conftest.err
24190   rm -f conftest.er1
24191   cat conftest.err >&5
24192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24193   (exit $ac_status); } && {
24194          test -z "$ac_c_werror_flag" ||
24195          test ! -s conftest.err
24196        } && test -s conftest.$ac_objext; then
24197   dir_fd_found=yes
24198
24199 else
24200   $as_echo "$as_me: failed program was:" >&5
24201 sed 's/^/| /' conftest.$ac_ext >&5
24202
24203
24204 fi
24205
24206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24207           CFLAGS=$dirfd_save_CFLAGS
24208           test "$dir_fd_found" = yes && break
24209         done
24210         test "$dir_fd_found" = yes || ac_expr=no_such_member
24211
24212         gl_cv_sys_dir_fd_member_name=$ac_expr
24213
24214
24215 fi
24216 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
24217 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
24218     if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
24219
24220 cat >>confdefs.h <<_ACEOF
24221 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
24222 _ACEOF
24223
24224     fi
24225
24226
24227   fi
24228
24229
24230
24231   GNULIB_DIRFD=1
24232
24233
24234 cat >>confdefs.h <<\_ACEOF
24235 #define GNULIB_DIRFD 1
24236 _ACEOF
24237
24238
24239
24240
24241
24242
24243
24244
24245
24246
24247
24248
24249
24250   gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
24251
24252
24253
24254
24255
24256
24257
24258
24259
24260   gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
24261
24262
24263
24264
24265 cat >>confdefs.h <<\_ACEOF
24266 #define GNULIB_DIRNAME 1
24267 _ACEOF
24268
24269
24270
24271
24272
24273
24274
24275
24276
24277
24278
24279   gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
24280
24281
24282
24283
24284
24285
24286
24287
24288
24289   gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299   gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
24300
24301
24302
24303
24304
24305
24306
24307
24308   { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
24309 $as_echo_n "checking whether // is distinct from /... " >&6; }
24310 if test "${gl_cv_double_slash_root+set}" = set; then
24311   $as_echo_n "(cached) " >&6
24312 else
24313    if test x"$cross_compiling" = xyes ; then
24314         # When cross-compiling, there is no way to tell whether // is special
24315         # short of a list of hosts.  However, the only known hosts to date
24316         # that have a distinct // are Apollo DomainOS (too old to port to),
24317         # Cygwin, and z/OS.  If anyone knows of another system for which // has
24318         # special semantics and is distinct from /, please report it to
24319         # <bug-gnulib@gnu.org>.
24320         case $host in
24321           *-cygwin | i370-ibm-openedition)
24322             gl_cv_double_slash_root=yes ;;
24323           *)
24324             # Be optimistic and assume that / and // are the same when we
24325             # don't know.
24326             gl_cv_double_slash_root='unknown, assuming no' ;;
24327         esac
24328       else
24329         set x `ls -di / // 2>/dev/null`
24330         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
24331           gl_cv_double_slash_root=no
24332         else
24333           gl_cv_double_slash_root=yes
24334         fi
24335       fi
24336 fi
24337 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
24338 $as_echo "$gl_cv_double_slash_root" >&6; }
24339   if test "$gl_cv_double_slash_root" = yes; then
24340
24341 cat >>confdefs.h <<\_ACEOF
24342 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
24343 _ACEOF
24344
24345   fi
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356   if test $ac_cv_func_dup2 = no; then
24357     HAVE_DUP2=0
24358
24359
24360
24361
24362
24363
24364
24365
24366   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
24367
24368   else
24369     { $as_echo "$as_me:$LINENO: checking whether dup2 works" >&5
24370 $as_echo_n "checking whether dup2 works... " >&6; }
24371 if test "${gl_cv_func_dup2_works+set}" = set; then
24372   $as_echo_n "(cached) " >&6
24373 else
24374   if test "$cross_compiling" = yes; then
24375   case "$host_os" in
24376            mingw*) # on this platform, dup2 always returns 0 for success
24377              gl_cv_func_dup2_works=no;;
24378            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
24379              gl_cv_func_dup2_works=no;;
24380            linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
24381                    # closed fd may yield -EBADF instead of -1 / errno=EBADF.
24382              gl_cv_func_dup2_works=no;;
24383            freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
24384              gl_cv_func_dup2_works=no;;
24385            *) gl_cv_func_dup2_works=yes;;
24386          esac
24387 else
24388   cat >conftest.$ac_ext <<_ACEOF
24389
24390          /* confdefs.h.  */
24391 _ACEOF
24392 cat confdefs.h >>conftest.$ac_ext
24393 cat >>conftest.$ac_ext <<_ACEOF
24394 /* end confdefs.h.  */
24395 #include <unistd.h>
24396 #include <errno.h>
24397 int
24398 main ()
24399 {
24400 if (dup2 (1, 1) == 0)
24401               return 1;
24402             close (0);
24403             if (dup2 (0, 0) != -1)
24404               return 2;
24405             /* Many gnulib modules require POSIX conformance of EBADF.  */
24406             if (dup2 (1, 1000000) == -1 && errno != EBADF)
24407               return 3;
24408             return 0;
24409
24410   ;
24411   return 0;
24412 }
24413
24414 _ACEOF
24415 rm -f conftest$ac_exeext
24416 if { (ac_try="$ac_link"
24417 case "(($ac_try" in
24418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24419   *) ac_try_echo=$ac_try;;
24420 esac
24421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24422 $as_echo "$ac_try_echo") >&5
24423   (eval "$ac_link") 2>&5
24424   ac_status=$?
24425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24427   { (case "(($ac_try" in
24428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24429   *) ac_try_echo=$ac_try;;
24430 esac
24431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24432 $as_echo "$ac_try_echo") >&5
24433   (eval "$ac_try") 2>&5
24434   ac_status=$?
24435   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24436   (exit $ac_status); }; }; then
24437   gl_cv_func_dup2_works=yes
24438 else
24439   $as_echo "$as_me: program exited with status $ac_status" >&5
24440 $as_echo "$as_me: failed program was:" >&5
24441 sed 's/^/| /' conftest.$ac_ext >&5
24442
24443 ( exit $ac_status )
24444 gl_cv_func_dup2_works=no
24445 fi
24446 rm -rf conftest.dSYM
24447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24448 fi
24449
24450
24451
24452 fi
24453 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_dup2_works" >&5
24454 $as_echo "$gl_cv_func_dup2_works" >&6; }
24455     if test "$gl_cv_func_dup2_works" = no; then
24456
24457
24458   if test $ac_cv_func_dup2 = yes; then
24459     REPLACE_DUP2=1
24460   fi
24461
24462
24463
24464
24465
24466
24467
24468
24469   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
24470
24471
24472     fi
24473   fi
24474
24475
24476
24477   GNULIB_DUP2=1
24478
24479
24480 cat >>confdefs.h <<\_ACEOF
24481 #define GNULIB_DUP2 1
24482 _ACEOF
24483
24484
24485
24486
24487
24488
24489   GNULIB_ENVIRON=1
24490
24491
24492 cat >>confdefs.h <<\_ACEOF
24493 #define GNULIB_ENVIRON 1
24494 _ACEOF
24495
24496
24497
24498
24499
24500
24501
24502
24503
24504
24505
24506
24507
24508
24509
24510
24511
24512 { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
24513 $as_echo_n "checking for error_at_line... " >&6; }
24514 if test "${ac_cv_lib_error_at_line+set}" = set; then
24515   $as_echo_n "(cached) " >&6
24516 else
24517   cat >conftest.$ac_ext <<_ACEOF
24518 /* confdefs.h.  */
24519 _ACEOF
24520 cat confdefs.h >>conftest.$ac_ext
24521 cat >>conftest.$ac_ext <<_ACEOF
24522 /* end confdefs.h.  */
24523 #include <error.h>
24524 int
24525 main ()
24526 {
24527 error_at_line (0, 0, "", 0, "an error occurred");
24528   ;
24529   return 0;
24530 }
24531 _ACEOF
24532 rm -f conftest.$ac_objext conftest$ac_exeext
24533 if { (ac_try="$ac_link"
24534 case "(($ac_try" in
24535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24536   *) ac_try_echo=$ac_try;;
24537 esac
24538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24539 $as_echo "$ac_try_echo") >&5
24540   (eval "$ac_link") 2>conftest.er1
24541   ac_status=$?
24542   grep -v '^ *+' conftest.er1 >conftest.err
24543   rm -f conftest.er1
24544   cat conftest.err >&5
24545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546   (exit $ac_status); } && {
24547          test -z "$ac_c_werror_flag" ||
24548          test ! -s conftest.err
24549        } && test -s conftest$ac_exeext && {
24550          test "$cross_compiling" = yes ||
24551          $as_test_x conftest$ac_exeext
24552        }; then
24553   ac_cv_lib_error_at_line=yes
24554 else
24555   $as_echo "$as_me: failed program was:" >&5
24556 sed 's/^/| /' conftest.$ac_ext >&5
24557
24558         ac_cv_lib_error_at_line=no
24559 fi
24560
24561 rm -rf conftest.dSYM
24562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24563       conftest$ac_exeext conftest.$ac_ext
24564 fi
24565 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
24566 $as_echo "$ac_cv_lib_error_at_line" >&6; }
24567 if test $ac_cv_lib_error_at_line = no; then
24568
24569
24570
24571
24572
24573
24574
24575
24576   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
24577
24578 fi
24579
24580
24581
24582
24583   :
24584
24585
24586
24587
24588   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
24589
24590
24591
24592   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603   gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
24604
24605
24606
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616   if test $ac_cv_func_fchdir = no; then
24617     REPLACE_FCHDIR=1
24618
24619
24620
24621
24622
24623
24624
24625
24626   gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
24627
24628     :
24629
24630 cat >>confdefs.h <<\_ACEOF
24631 #define REPLACE_FCHDIR 1
24632 _ACEOF
24633
24634                 REPLACE_OPENDIR=1
24635     REPLACE_CLOSEDIR=1
24636     REPLACE_DUP=1
24637
24638
24639   REPLACE_OPEN=1
24640
24641
24642
24643
24644
24645
24646
24647
24648   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
24649
24650
24651
24652
24653   :
24654
24655
24656
24657
24658   REPLACE_CLOSE=1
24659
24660
24661
24662
24663
24664
24665
24666
24667   gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
24668
24669
24670
24671   REPLACE_FCLOSE=1
24672
24673
24674
24675
24676
24677
24678
24679
24680   gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
24681
24682
24683
24684
24685
24686   if test $ac_cv_func_dup2 = yes; then
24687     REPLACE_DUP2=1
24688   fi
24689
24690
24691
24692
24693
24694
24695
24696
24697   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
24698
24699
24700
24701
24702
24703
24704
24705
24706
24707
24708   if test $ac_cv_func_fcntl = no; then
24709     HAVE_FCNTL=0
24710   else
24711     REPLACE_FCNTL=1
24712   fi
24713
24714
24715
24716
24717
24718
24719
24720
24721   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
24722
24723
24724
24725     :
24726
24727     { $as_echo "$as_me:$LINENO: checking whether open can visit directories" >&5
24728 $as_echo_n "checking whether open can visit directories... " >&6; }
24729 if test "${gl_cv_func_open_directory_works+set}" = set; then
24730   $as_echo_n "(cached) " >&6
24731 else
24732   if test "$cross_compiling" = yes; then
24733   gl_cv_func_open_directory_works="guessing no"
24734 else
24735   cat >conftest.$ac_ext <<_ACEOF
24736 /* confdefs.h.  */
24737 _ACEOF
24738 cat confdefs.h >>conftest.$ac_ext
24739 cat >>conftest.$ac_ext <<_ACEOF
24740 /* end confdefs.h.  */
24741 #include <fcntl.h>
24742
24743 int
24744 main ()
24745 {
24746 return open(".", O_RDONLY) < 0;
24747   ;
24748   return 0;
24749 }
24750 _ACEOF
24751 rm -f conftest$ac_exeext
24752 if { (ac_try="$ac_link"
24753 case "(($ac_try" in
24754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24755   *) ac_try_echo=$ac_try;;
24756 esac
24757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24758 $as_echo "$ac_try_echo") >&5
24759   (eval "$ac_link") 2>&5
24760   ac_status=$?
24761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24762   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24763   { (case "(($ac_try" in
24764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24765   *) ac_try_echo=$ac_try;;
24766 esac
24767 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24768 $as_echo "$ac_try_echo") >&5
24769   (eval "$ac_try") 2>&5
24770   ac_status=$?
24771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24772   (exit $ac_status); }; }; then
24773   gl_cv_func_open_directory_works=yes
24774 else
24775   $as_echo "$as_me: program exited with status $ac_status" >&5
24776 $as_echo "$as_me: failed program was:" >&5
24777 sed 's/^/| /' conftest.$ac_ext >&5
24778
24779 ( exit $ac_status )
24780 gl_cv_func_open_directory_works=no
24781 fi
24782 rm -rf conftest.dSYM
24783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24784 fi
24785
24786
24787 fi
24788 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_open_directory_works" >&5
24789 $as_echo "$gl_cv_func_open_directory_works" >&6; }
24790     if test "$gl_cv_func_open_directory_works" != yes; then
24791
24792 cat >>confdefs.h <<\_ACEOF
24793 #define REPLACE_OPEN_DIRECTORY 1
24794 _ACEOF
24795
24796       REPLACE_FSTAT=1
24797     fi
24798   fi
24799
24800
24801
24802   GNULIB_FCHDIR=1
24803
24804
24805 cat >>confdefs.h <<\_ACEOF
24806 #define GNULIB_FCHDIR 1
24807 _ACEOF
24808
24809
24810
24811
24812
24813
24814
24815   GNULIB_FCLOSE=1
24816
24817
24818 cat >>confdefs.h <<\_ACEOF
24819 #define GNULIB_FCLOSE 1
24820 _ACEOF
24821
24822
24823
24824
24825
24826
24827
24828
24829
24830
24831
24832
24833
24834   if test $ac_cv_func_fcntl = no; then
24835
24836
24837
24838
24839
24840
24841
24842
24843   if test $ac_cv_func_fcntl = no; then
24844     HAVE_FCNTL=0
24845   else
24846     REPLACE_FCNTL=1
24847   fi
24848
24849
24850
24851
24852
24853
24854
24855
24856   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
24857
24858
24859   else
24860         { $as_echo "$as_me:$LINENO: checking whether fcntl handles F_DUPFD correctly" >&5
24861 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
24862 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then
24863   $as_echo_n "(cached) " >&6
24864 else
24865   if test "$cross_compiling" = yes; then
24866   # Guess that it works on glibc systems
24867           case $host_os in #((
24868             *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
24869             *)      gl_cv_func_fcntl_f_dupfd_works="guessing no";;
24870           esac
24871 else
24872   cat >conftest.$ac_ext <<_ACEOF
24873 /* confdefs.h.  */
24874 _ACEOF
24875 cat confdefs.h >>conftest.$ac_ext
24876 cat >>conftest.$ac_ext <<_ACEOF
24877 /* end confdefs.h.  */
24878
24879 #include <fcntl.h>
24880
24881 int
24882 main ()
24883 {
24884 return fcntl (0, F_DUPFD, -1) != -1;
24885
24886   ;
24887   return 0;
24888 }
24889 _ACEOF
24890 rm -f conftest$ac_exeext
24891 if { (ac_try="$ac_link"
24892 case "(($ac_try" in
24893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24894   *) ac_try_echo=$ac_try;;
24895 esac
24896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24897 $as_echo "$ac_try_echo") >&5
24898   (eval "$ac_link") 2>&5
24899   ac_status=$?
24900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24901   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24902   { (case "(($ac_try" in
24903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24904   *) ac_try_echo=$ac_try;;
24905 esac
24906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24907 $as_echo "$ac_try_echo") >&5
24908   (eval "$ac_try") 2>&5
24909   ac_status=$?
24910   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24911   (exit $ac_status); }; }; then
24912   gl_cv_func_fcntl_f_dupfd_works=yes
24913 else
24914   $as_echo "$as_me: program exited with status $ac_status" >&5
24915 $as_echo "$as_me: failed program was:" >&5
24916 sed 's/^/| /' conftest.$ac_ext >&5
24917
24918 ( exit $ac_status )
24919 gl_cv_func_fcntl_f_dupfd_works=no
24920 fi
24921 rm -rf conftest.dSYM
24922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24923 fi
24924
24925
24926 fi
24927 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
24928 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
24929     case $gl_cv_func_fcntl_f_dupfd_works in
24930       *yes) ;;
24931       *)
24932
24933
24934
24935
24936
24937
24938
24939   if test $ac_cv_func_fcntl = no; then
24940     HAVE_FCNTL=0
24941   else
24942     REPLACE_FCNTL=1
24943   fi
24944
24945
24946
24947
24948
24949
24950
24951
24952   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
24953
24954
24955
24956 cat >>confdefs.h <<\_ACEOF
24957 #define FCNTL_DUPFD_BUGGY 1
24958 _ACEOF
24959  ;;
24960     esac
24961
24962         { $as_echo "$as_me:$LINENO: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
24963 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
24964 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then
24965   $as_echo_n "(cached) " >&6
24966 else
24967   cat >conftest.$ac_ext <<_ACEOF
24968 /* confdefs.h.  */
24969 _ACEOF
24970 cat confdefs.h >>conftest.$ac_ext
24971 cat >>conftest.$ac_ext <<_ACEOF
24972 /* end confdefs.h.  */
24973
24974 #include <fcntl.h>
24975 #ifndef F_DUPFD_CLOEXEC
24976 choke me
24977 #endif
24978
24979 int
24980 main ()
24981 {
24982
24983   ;
24984   return 0;
24985 }
24986 _ACEOF
24987 rm -f conftest.$ac_objext
24988 if { (ac_try="$ac_compile"
24989 case "(($ac_try" in
24990   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24991   *) ac_try_echo=$ac_try;;
24992 esac
24993 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24994 $as_echo "$ac_try_echo") >&5
24995   (eval "$ac_compile") 2>conftest.er1
24996   ac_status=$?
24997   grep -v '^ *+' conftest.er1 >conftest.err
24998   rm -f conftest.er1
24999   cat conftest.err >&5
25000   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001   (exit $ac_status); } && {
25002          test -z "$ac_c_werror_flag" ||
25003          test ! -s conftest.err
25004        } && test -s conftest.$ac_objext; then
25005   cat >conftest.$ac_ext <<_ACEOF
25006 /* confdefs.h.  */
25007 _ACEOF
25008 cat confdefs.h >>conftest.$ac_ext
25009 cat >>conftest.$ac_ext <<_ACEOF
25010 /* end confdefs.h.  */
25011
25012 #ifdef __linux__
25013 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
25014    it to support the semantics on older kernels that failed with EINVAL.  */
25015 choke me
25016 #endif
25017
25018 int
25019 main ()
25020 {
25021
25022   ;
25023   return 0;
25024 }
25025 _ACEOF
25026 rm -f conftest.$ac_objext
25027 if { (ac_try="$ac_compile"
25028 case "(($ac_try" in
25029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25030   *) ac_try_echo=$ac_try;;
25031 esac
25032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25033 $as_echo "$ac_try_echo") >&5
25034   (eval "$ac_compile") 2>conftest.er1
25035   ac_status=$?
25036   grep -v '^ *+' conftest.er1 >conftest.err
25037   rm -f conftest.er1
25038   cat conftest.err >&5
25039   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25040   (exit $ac_status); } && {
25041          test -z "$ac_c_werror_flag" ||
25042          test ! -s conftest.err
25043        } && test -s conftest.$ac_objext; then
25044   gl_cv_func_fcntl_f_dupfd_cloexec=yes
25045 else
25046   $as_echo "$as_me: failed program was:" >&5
25047 sed 's/^/| /' conftest.$ac_ext >&5
25048
25049         gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
25050 fi
25051
25052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25053 else
25054   $as_echo "$as_me: failed program was:" >&5
25055 sed 's/^/| /' conftest.$ac_ext >&5
25056
25057         gl_cv_func_fcntl_f_dupfd_cloexec=no
25058 fi
25059
25060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25061 fi
25062 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
25063 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
25064     if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
25065
25066
25067
25068
25069
25070
25071
25072
25073   if test $ac_cv_func_fcntl = no; then
25074     HAVE_FCNTL=0
25075   else
25076     REPLACE_FCNTL=1
25077   fi
25078
25079
25080
25081
25082
25083
25084
25085
25086   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
25087
25088
25089           fi
25090   fi
25091
25092
25093
25094   GNULIB_FCNTL=1
25095
25096
25097 cat >>confdefs.h <<\_ACEOF
25098 #define GNULIB_FCNTL 1
25099 _ACEOF
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117      if test $gl_cv_have_include_next = yes; then
25118        gl_cv_next_fcntl_h='<'fcntl.h'>'
25119      else
25120        { $as_echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
25121 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
25122 if test "${gl_cv_next_fcntl_h+set}" = set; then
25123   $as_echo_n "(cached) " >&6
25124 else
25125
25126           if test $ac_cv_header_fcntl_h = yes; then
25127             cat >conftest.$ac_ext <<_ACEOF
25128 /* confdefs.h.  */
25129 _ACEOF
25130 cat confdefs.h >>conftest.$ac_ext
25131 cat >>conftest.$ac_ext <<_ACEOF
25132 /* end confdefs.h.  */
25133 #include <fcntl.h>
25134
25135 _ACEOF
25136                                                                                                 case "$host_os" in
25137               aix*) gl_absname_cpp="$ac_cpp -C" ;;
25138               *)    gl_absname_cpp="$ac_cpp" ;;
25139             esac
25140                                                 gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25141                sed -n '\#/fcntl.h#{
25142                  s#.*"\(.*/fcntl.h\)".*#\1#
25143                  s#^/[^/]#//&#
25144                  p
25145                  q
25146                }'`'"'
25147           else
25148             gl_cv_next_fcntl_h='<'fcntl.h'>'
25149           fi
25150
25151 fi
25152 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_fcntl_h" >&5
25153 $as_echo "$gl_cv_next_fcntl_h" >&6; }
25154      fi
25155      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
25156
25157      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25158        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25159        gl_next_as_first_directive='<'fcntl.h'>'
25160      else
25161        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25162        gl_next_as_first_directive=$gl_cv_next_fcntl_h
25163      fi
25164      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
25165
25166
25167
25168
25169
25170
25171
25172   for gl_func in fcntl openat; do
25173     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
25174     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
25175 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
25176 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
25177   $as_echo_n "(cached) " >&6
25178 else
25179   cat >conftest.$ac_ext <<_ACEOF
25180 /* confdefs.h.  */
25181 _ACEOF
25182 cat confdefs.h >>conftest.$ac_ext
25183 cat >>conftest.$ac_ext <<_ACEOF
25184 /* end confdefs.h.  */
25185 #include <fcntl.h>
25186
25187 int
25188 main ()
25189 {
25190 #undef $gl_func
25191   (void) $gl_func;
25192   ;
25193   return 0;
25194 }
25195 _ACEOF
25196 rm -f conftest.$ac_objext
25197 if { (ac_try="$ac_compile"
25198 case "(($ac_try" in
25199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25200   *) ac_try_echo=$ac_try;;
25201 esac
25202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25203 $as_echo "$ac_try_echo") >&5
25204   (eval "$ac_compile") 2>conftest.er1
25205   ac_status=$?
25206   grep -v '^ *+' conftest.er1 >conftest.err
25207   rm -f conftest.er1
25208   cat conftest.err >&5
25209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25210   (exit $ac_status); } && {
25211          test -z "$ac_c_werror_flag" ||
25212          test ! -s conftest.err
25213        } && test -s conftest.$ac_objext; then
25214   eval "$as_gl_Symbol=yes"
25215 else
25216   $as_echo "$as_me: failed program was:" >&5
25217 sed 's/^/| /' conftest.$ac_ext >&5
25218
25219         eval "$as_gl_Symbol=no"
25220 fi
25221
25222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25223 fi
25224 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
25225                  $as_echo "$as_val"'`
25226                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25227 $as_echo "$ac_res" >&6; }
25228      as_val=`eval 'as_val=${'$as_gl_Symbol'}
25229                  $as_echo "$as_val"'`
25230    if test "x$as_val" = x""yes; then
25231   cat >>confdefs.h <<_ACEOF
25232 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
25233 _ACEOF
25234
25235                      eval ac_cv_have_decl_$gl_func=yes
25236 fi
25237
25238       done
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249   if test $ac_cv_func_fdopendir = no; then
25250
25251
25252
25253
25254
25255
25256
25257
25258   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
25259
25260
25261
25262
25263
25264
25265
25266
25267
25268   gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
25269
25270
25271     :
25272
25273     HAVE_FDOPENDIR=0
25274   else
25275     { $as_echo "$as_me:$LINENO: checking whether fdopendir works" >&5
25276 $as_echo_n "checking whether fdopendir works... " >&6; }
25277 if test "${gl_cv_func_fdopendir_works+set}" = set; then
25278   $as_echo_n "(cached) " >&6
25279 else
25280   if test "$cross_compiling" = yes; then
25281   gl_cv_func_fdopendir_works="guessing no"
25282 else
25283   cat >conftest.$ac_ext <<_ACEOF
25284 /* confdefs.h.  */
25285 _ACEOF
25286 cat confdefs.h >>conftest.$ac_ext
25287 cat >>conftest.$ac_ext <<_ACEOF
25288 /* end confdefs.h.  */
25289
25290 #include <dirent.h>
25291 #include <fcntl.h>
25292
25293 int
25294 main ()
25295 {
25296 int fd = open ("conftest.c", O_RDONLY);
25297      if (fd < 0) return 2;
25298      return !!fdopendir (fd);
25299   ;
25300   return 0;
25301 }
25302 _ACEOF
25303 rm -f conftest$ac_exeext
25304 if { (ac_try="$ac_link"
25305 case "(($ac_try" in
25306   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25307   *) ac_try_echo=$ac_try;;
25308 esac
25309 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25310 $as_echo "$ac_try_echo") >&5
25311   (eval "$ac_link") 2>&5
25312   ac_status=$?
25313   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25314   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25315   { (case "(($ac_try" in
25316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25317   *) ac_try_echo=$ac_try;;
25318 esac
25319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25320 $as_echo "$ac_try_echo") >&5
25321   (eval "$ac_try") 2>&5
25322   ac_status=$?
25323   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25324   (exit $ac_status); }; }; then
25325   gl_cv_func_fdopendir_works=yes
25326 else
25327   $as_echo "$as_me: program exited with status $ac_status" >&5
25328 $as_echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25330
25331 ( exit $ac_status )
25332 gl_cv_func_fdopendir_works=no
25333 fi
25334 rm -rf conftest.dSYM
25335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25336 fi
25337
25338
25339 fi
25340 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fdopendir_works" >&5
25341 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
25342     if test "$gl_cv_func_fdopendir_works" != yes; then
25343       REPLACE_FDOPENDIR=1
25344
25345     :
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355   gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
25356
25357     fi
25358   fi
25359
25360
25361
25362   GNULIB_FDOPENDIR=1
25363
25364
25365 cat >>confdefs.h <<\_ACEOF
25366 #define GNULIB_FDOPENDIR 1
25367 _ACEOF
25368
25369
25370
25371
25372   { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
25373 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
25374 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
25375   $as_echo_n "(cached) " >&6
25376 else
25377   cat >conftest.$ac_ext <<_ACEOF
25378 /* confdefs.h.  */
25379 _ACEOF
25380 cat confdefs.h >>conftest.$ac_ext
25381 cat >>conftest.$ac_ext <<_ACEOF
25382 /* end confdefs.h.  */
25383 $ac_includes_default
25384 int
25385 main ()
25386 {
25387 static struct stat ac_aggr;
25388 if (ac_aggr.st_blocks)
25389 return 0;
25390   ;
25391   return 0;
25392 }
25393 _ACEOF
25394 rm -f conftest.$ac_objext
25395 if { (ac_try="$ac_compile"
25396 case "(($ac_try" in
25397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25398   *) ac_try_echo=$ac_try;;
25399 esac
25400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25401 $as_echo "$ac_try_echo") >&5
25402   (eval "$ac_compile") 2>conftest.er1
25403   ac_status=$?
25404   grep -v '^ *+' conftest.er1 >conftest.err
25405   rm -f conftest.er1
25406   cat conftest.err >&5
25407   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25408   (exit $ac_status); } && {
25409          test -z "$ac_c_werror_flag" ||
25410          test ! -s conftest.err
25411        } && test -s conftest.$ac_objext; then
25412   ac_cv_member_struct_stat_st_blocks=yes
25413 else
25414   $as_echo "$as_me: failed program was:" >&5
25415 sed 's/^/| /' conftest.$ac_ext >&5
25416
25417         cat >conftest.$ac_ext <<_ACEOF
25418 /* confdefs.h.  */
25419 _ACEOF
25420 cat confdefs.h >>conftest.$ac_ext
25421 cat >>conftest.$ac_ext <<_ACEOF
25422 /* end confdefs.h.  */
25423 $ac_includes_default
25424 int
25425 main ()
25426 {
25427 static struct stat ac_aggr;
25428 if (sizeof ac_aggr.st_blocks)
25429 return 0;
25430   ;
25431   return 0;
25432 }
25433 _ACEOF
25434 rm -f conftest.$ac_objext
25435 if { (ac_try="$ac_compile"
25436 case "(($ac_try" in
25437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25438   *) ac_try_echo=$ac_try;;
25439 esac
25440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25441 $as_echo "$ac_try_echo") >&5
25442   (eval "$ac_compile") 2>conftest.er1
25443   ac_status=$?
25444   grep -v '^ *+' conftest.er1 >conftest.err
25445   rm -f conftest.er1
25446   cat conftest.err >&5
25447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25448   (exit $ac_status); } && {
25449          test -z "$ac_c_werror_flag" ||
25450          test ! -s conftest.err
25451        } && test -s conftest.$ac_objext; then
25452   ac_cv_member_struct_stat_st_blocks=yes
25453 else
25454   $as_echo "$as_me: failed program was:" >&5
25455 sed 's/^/| /' conftest.$ac_ext >&5
25456
25457         ac_cv_member_struct_stat_st_blocks=no
25458 fi
25459
25460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25461 fi
25462
25463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25464 fi
25465 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
25466 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
25467 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
25468
25469 cat >>confdefs.h <<_ACEOF
25470 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
25471 _ACEOF
25472
25473
25474 cat >>confdefs.h <<\_ACEOF
25475 #define HAVE_ST_BLOCKS 1
25476 _ACEOF
25477
25478 else
25479
25480
25481
25482
25483
25484
25485
25486
25487   gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
25488
25489 fi
25490
25491
25492     if test $ac_cv_member_struct_stat_st_blocks = no; then
25493
25494
25495
25496
25497
25498
25499
25500   :
25501
25502   fi
25503
25504
25505
25506
25507   FLOAT_H=
25508   case "$host_os" in
25509     beos* | openbsd*)
25510       FLOAT_H=float.h
25511
25512
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522      if test $gl_cv_have_include_next = yes; then
25523        gl_cv_next_float_h='<'float.h'>'
25524      else
25525        { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
25526 $as_echo_n "checking absolute name of <float.h>... " >&6; }
25527 if test "${gl_cv_next_float_h+set}" = set; then
25528   $as_echo_n "(cached) " >&6
25529 else
25530
25531           if test $ac_cv_header_float_h = yes; then
25532             cat >conftest.$ac_ext <<_ACEOF
25533 /* confdefs.h.  */
25534 _ACEOF
25535 cat confdefs.h >>conftest.$ac_ext
25536 cat >>conftest.$ac_ext <<_ACEOF
25537 /* end confdefs.h.  */
25538 #include <float.h>
25539
25540 _ACEOF
25541                                                                                                 case "$host_os" in
25542               aix*) gl_absname_cpp="$ac_cpp -C" ;;
25543               *)    gl_absname_cpp="$ac_cpp" ;;
25544             esac
25545                                                 gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25546                sed -n '\#/float.h#{
25547                  s#.*"\(.*/float.h\)".*#\1#
25548                  s#^/[^/]#//&#
25549                  p
25550                  q
25551                }'`'"'
25552           else
25553             gl_cv_next_float_h='<'float.h'>'
25554           fi
25555
25556 fi
25557 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
25558 $as_echo "$gl_cv_next_float_h" >&6; }
25559      fi
25560      NEXT_FLOAT_H=$gl_cv_next_float_h
25561
25562      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
25563        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
25564        gl_next_as_first_directive='<'float.h'>'
25565      else
25566        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
25567        gl_next_as_first_directive=$gl_cv_next_float_h
25568      fi
25569      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
25570
25571
25572
25573       ;;
25574   esac
25575
25576
25577
25578
25579
25580
25581
25582   FNMATCH_H=
25583   gl_fnmatch_required_lowercase=`echo $gl_fnmatch_required | tr 'A-Z' 'a-z'`
25584   gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
25585   { $as_echo "$as_me:$LINENO: checking for working $gl_fnmatch_required fnmatch" >&5
25586 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
25587 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then
25588   $as_echo_n "(cached) " >&6
25589 else
25590                            if test $gl_fnmatch_required = GNU; then
25591        gl_fnmatch_gnu_start=
25592        gl_fnmatch_gnu_end=
25593      else
25594        gl_fnmatch_gnu_start='#if 0'
25595        gl_fnmatch_gnu_end='#endif'
25596      fi
25597      if test "$cross_compiling" = yes; then
25598   eval "$gl_fnmatch_cache_var=\"guessing no\""
25599 else
25600   cat >conftest.$ac_ext <<_ACEOF
25601 /* confdefs.h.  */
25602 _ACEOF
25603 cat confdefs.h >>conftest.$ac_ext
25604 cat >>conftest.$ac_ext <<_ACEOF
25605 /* end confdefs.h.  */
25606 #include <fnmatch.h>
25607             static int
25608             y (char const *pattern, char const *string, int flags)
25609             {
25610               return fnmatch (pattern, string, flags) == 0;
25611             }
25612             static int
25613             n (char const *pattern, char const *string, int flags)
25614             {
25615               return fnmatch (pattern, string, flags) == FNM_NOMATCH;
25616             }
25617
25618 int
25619 main ()
25620 {
25621 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
25622             char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
25623             static char const A_1[] = { 'A' - 1, 0 };
25624             static char const A01[] = { 'A' + 1, 0 };
25625             static char const a_1[] = { 'a' - 1, 0 };
25626             static char const a01[] = { 'a' + 1, 0 };
25627             static char const bs_1[] = { '\\\\' - 1, 0 };
25628             static char const bs01[] = { '\\\\' + 1, 0 };
25629             return
25630              !(n ("a*", "", 0)
25631                && y ("a*", "abc", 0)
25632                && n ("d*/*1", "d/s/1", FNM_PATHNAME)
25633                && y ("a\\\\bc", "abc", 0)
25634                && n ("a\\\\bc", "abc", FNM_NOESCAPE)
25635                && y ("*x", ".x", 0)
25636                && n ("*x", ".x", FNM_PERIOD)
25637                && y (Apat, "\\\\", 0) && y (Apat, "A", 0)
25638                && y (apat, "\\\\", 0) && y (apat, "a", 0)
25639                && n (Apat, A_1, 0) == ('A' < '\\\\')
25640                && n (apat, a_1, 0) == ('a' < '\\\\')
25641                && y (Apat, A01, 0) == ('A' < '\\\\')
25642                && y (apat, a01, 0) == ('a' < '\\\\')
25643                && y (Apat, bs_1, 0) == ('A' < '\\\\')
25644                && y (apat, bs_1, 0) == ('a' < '\\\\')
25645                && n (Apat, bs01, 0) == ('A' < '\\\\')
25646                && n (apat, bs01, 0) == ('a' < '\\\\')
25647                $gl_fnmatch_gnu_start
25648                && y ("xxXX", "xXxX", FNM_CASEFOLD)
25649                && y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH)
25650                && n ("d*/*1", "d/s/1", FNM_FILE_NAME)
25651                && y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR)
25652                && y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR)
25653                && y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR)
25654                $gl_fnmatch_gnu_end
25655               );
25656
25657   ;
25658   return 0;
25659 }
25660 _ACEOF
25661 rm -f conftest$ac_exeext
25662 if { (ac_try="$ac_link"
25663 case "(($ac_try" in
25664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25665   *) ac_try_echo=$ac_try;;
25666 esac
25667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25668 $as_echo "$ac_try_echo") >&5
25669   (eval "$ac_link") 2>&5
25670   ac_status=$?
25671   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25672   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25673   { (case "(($ac_try" in
25674   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25675   *) ac_try_echo=$ac_try;;
25676 esac
25677 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25678 $as_echo "$ac_try_echo") >&5
25679   (eval "$ac_try") 2>&5
25680   ac_status=$?
25681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25682   (exit $ac_status); }; }; then
25683   eval "$gl_fnmatch_cache_var=yes"
25684 else
25685   $as_echo "$as_me: program exited with status $ac_status" >&5
25686 $as_echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25688
25689 ( exit $ac_status )
25690 eval "$gl_fnmatch_cache_var=no"
25691 fi
25692 rm -rf conftest.dSYM
25693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25694 fi
25695
25696
25697
25698 fi
25699 ac_res=`eval 'as_val=${'$gl_fnmatch_cache_var'}
25700                  $as_echo "$as_val"'`
25701                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25702 $as_echo "$ac_res" >&6; }
25703   eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
25704   if test "$gl_fnmatch_result" = yes; then
25705             rm -f "$gl_source_base/fnmatch.h"
25706   else
25707     FNMATCH_H=fnmatch.h
25708
25709
25710
25711
25712
25713
25714
25715
25716   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
25717
25718
25719 cat >>confdefs.h <<_ACEOF
25720 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
25721 _ACEOF
25722
25723
25724     { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
25725 $as_echo_n "checking whether isblank is declared... " >&6; }
25726 if test "${ac_cv_have_decl_isblank+set}" = set; then
25727   $as_echo_n "(cached) " >&6
25728 else
25729   cat >conftest.$ac_ext <<_ACEOF
25730 /* confdefs.h.  */
25731 _ACEOF
25732 cat confdefs.h >>conftest.$ac_ext
25733 cat >>conftest.$ac_ext <<_ACEOF
25734 /* end confdefs.h.  */
25735 #include <ctype.h>
25736
25737 int
25738 main ()
25739 {
25740 #ifndef isblank
25741   (void) isblank;
25742 #endif
25743
25744   ;
25745   return 0;
25746 }
25747 _ACEOF
25748 rm -f conftest.$ac_objext
25749 if { (ac_try="$ac_compile"
25750 case "(($ac_try" in
25751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25752   *) ac_try_echo=$ac_try;;
25753 esac
25754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25755 $as_echo "$ac_try_echo") >&5
25756   (eval "$ac_compile") 2>conftest.er1
25757   ac_status=$?
25758   grep -v '^ *+' conftest.er1 >conftest.err
25759   rm -f conftest.er1
25760   cat conftest.err >&5
25761   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762   (exit $ac_status); } && {
25763          test -z "$ac_c_werror_flag" ||
25764          test ! -s conftest.err
25765        } && test -s conftest.$ac_objext; then
25766   ac_cv_have_decl_isblank=yes
25767 else
25768   $as_echo "$as_me: failed program was:" >&5
25769 sed 's/^/| /' conftest.$ac_ext >&5
25770
25771         ac_cv_have_decl_isblank=no
25772 fi
25773
25774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25775 fi
25776 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
25777 $as_echo "$ac_cv_have_decl_isblank" >&6; }
25778 if test "x$ac_cv_have_decl_isblank" = x""yes; then
25779
25780 cat >>confdefs.h <<_ACEOF
25781 #define HAVE_DECL_ISBLANK 1
25782 _ACEOF
25783
25784
25785 else
25786   cat >>confdefs.h <<_ACEOF
25787 #define HAVE_DECL_ISBLANK 0
25788 _ACEOF
25789
25790
25791 fi
25792
25793
25794
25795
25796
25797
25798
25799
25800
25801
25802
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812
25813
25814
25815
25816
25817
25818
25819
25820   fi
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833
25834
25835
25836
25837
25838
25839
25840
25841   fp_headers='
25842 #     include <stdio.h>
25843 #     if HAVE_STDIO_EXT_H
25844 #      include <stdio_ext.h>
25845 #     endif
25846 '
25847   { $as_echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
25848 $as_echo_n "checking whether __fpending is declared... " >&6; }
25849 if test "${ac_cv_have_decl___fpending+set}" = set; then
25850   $as_echo_n "(cached) " >&6
25851 else
25852   cat >conftest.$ac_ext <<_ACEOF
25853 /* confdefs.h.  */
25854 _ACEOF
25855 cat confdefs.h >>conftest.$ac_ext
25856 cat >>conftest.$ac_ext <<_ACEOF
25857 /* end confdefs.h.  */
25858 $fp_headers
25859
25860 int
25861 main ()
25862 {
25863 #ifndef __fpending
25864   (void) __fpending;
25865 #endif
25866
25867   ;
25868   return 0;
25869 }
25870 _ACEOF
25871 rm -f conftest.$ac_objext
25872 if { (ac_try="$ac_compile"
25873 case "(($ac_try" in
25874   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25875   *) ac_try_echo=$ac_try;;
25876 esac
25877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25878 $as_echo "$ac_try_echo") >&5
25879   (eval "$ac_compile") 2>conftest.er1
25880   ac_status=$?
25881   grep -v '^ *+' conftest.er1 >conftest.err
25882   rm -f conftest.er1
25883   cat conftest.err >&5
25884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25885   (exit $ac_status); } && {
25886          test -z "$ac_c_werror_flag" ||
25887          test ! -s conftest.err
25888        } && test -s conftest.$ac_objext; then
25889   ac_cv_have_decl___fpending=yes
25890 else
25891   $as_echo "$as_me: failed program was:" >&5
25892 sed 's/^/| /' conftest.$ac_ext >&5
25893
25894         ac_cv_have_decl___fpending=no
25895 fi
25896
25897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25898 fi
25899 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
25900 $as_echo "$ac_cv_have_decl___fpending" >&6; }
25901 if test "x$ac_cv_have_decl___fpending" = x""yes; then
25902
25903 cat >>confdefs.h <<_ACEOF
25904 #define HAVE_DECL___FPENDING 1
25905 _ACEOF
25906
25907
25908 else
25909   cat >>confdefs.h <<_ACEOF
25910 #define HAVE_DECL___FPENDING 0
25911 _ACEOF
25912
25913
25914 fi
25915
25916
25917   if test $ac_cv_func___fpending = no; then
25918     { $as_echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
25919 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
25920 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
25921   $as_echo_n "(cached) " >&6
25922 else
25923
25924         for ac_expr in                                                    \
25925                                                                           \
25926             '# glibc2'                                                    \
25927             'fp->_IO_write_ptr - fp->_IO_write_base'                      \
25928                                                                           \
25929             '# traditional Unix'                                          \
25930             'fp->_ptr - fp->_base'                                        \
25931                                                                           \
25932             '# BSD'                                                       \
25933             'fp->_p - fp->_bf._base'                                      \
25934                                                                           \
25935             '# SCO, Unixware'                                             \
25936             '(fp->__ptr ? fp->__ptr - fp->__base : 0)'                    \
25937                                                                           \
25938             '# QNX'                                                       \
25939             '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
25940                                                                           \
25941             '# old glibc?'                                                \
25942             'fp->__bufp - fp->__buffer'                                   \
25943                                                                           \
25944             '# old glibc iostream?'                                       \
25945             'fp->_pptr - fp->_pbase'                                      \
25946                                                                           \
25947             '# emx+gcc'                                                   \
25948             'fp->_ptr - fp->_buffer'                                      \
25949                                                                           \
25950             '# VMS'                                                       \
25951             '(*fp)->_ptr - (*fp)->_base'                                  \
25952                                                                           \
25953             '# e.g., DGUX R4.11; the info is not available'               \
25954             1                                                             \
25955             ; do
25956
25957           # Skip each embedded comment.
25958           case "$ac_expr" in '#'*) continue;; esac
25959
25960           cat >conftest.$ac_ext <<_ACEOF
25961 /* confdefs.h.  */
25962 _ACEOF
25963 cat confdefs.h >>conftest.$ac_ext
25964 cat >>conftest.$ac_ext <<_ACEOF
25965 /* end confdefs.h.  */
25966 #include <stdio.h>
25967 int
25968 main ()
25969 {
25970 FILE *fp = stdin; (void) ($ac_expr);
25971   ;
25972   return 0;
25973 }
25974 _ACEOF
25975 rm -f conftest.$ac_objext
25976 if { (ac_try="$ac_compile"
25977 case "(($ac_try" in
25978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25979   *) ac_try_echo=$ac_try;;
25980 esac
25981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25982 $as_echo "$ac_try_echo") >&5
25983   (eval "$ac_compile") 2>conftest.er1
25984   ac_status=$?
25985   grep -v '^ *+' conftest.er1 >conftest.err
25986   rm -f conftest.er1
25987   cat conftest.err >&5
25988   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25989   (exit $ac_status); } && {
25990          test -z "$ac_c_werror_flag" ||
25991          test ! -s conftest.err
25992        } && test -s conftest.$ac_objext; then
25993   fp_done=yes
25994
25995 else
25996   $as_echo "$as_me: failed program was:" >&5
25997 sed 's/^/| /' conftest.$ac_ext >&5
25998
25999
26000 fi
26001
26002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26003           test "$fp_done" = yes && break
26004         done
26005
26006         ac_cv_sys_pending_output_n_bytes=$ac_expr
26007
26008
26009 fi
26010 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
26011 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
26012
26013 cat >>confdefs.h <<_ACEOF
26014 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
26015 _ACEOF
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025   gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
26026
26027   fi
26028
26029
26030
26031
26032
26033
26034
26035
26036   { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
26037 $as_echo_n "checking for fseeko... " >&6; }
26038 if test "${gl_cv_func_fseeko+set}" = set; then
26039   $as_echo_n "(cached) " >&6
26040 else
26041
26042       cat >conftest.$ac_ext <<_ACEOF
26043 /* confdefs.h.  */
26044 _ACEOF
26045 cat confdefs.h >>conftest.$ac_ext
26046 cat >>conftest.$ac_ext <<_ACEOF
26047 /* end confdefs.h.  */
26048 #include <stdio.h>
26049
26050 int
26051 main ()
26052 {
26053 fseeko (stdin, 0, 0);
26054   ;
26055   return 0;
26056 }
26057 _ACEOF
26058 rm -f conftest.$ac_objext conftest$ac_exeext
26059 if { (ac_try="$ac_link"
26060 case "(($ac_try" in
26061   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26062   *) ac_try_echo=$ac_try;;
26063 esac
26064 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26065 $as_echo "$ac_try_echo") >&5
26066   (eval "$ac_link") 2>conftest.er1
26067   ac_status=$?
26068   grep -v '^ *+' conftest.er1 >conftest.err
26069   rm -f conftest.er1
26070   cat conftest.err >&5
26071   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26072   (exit $ac_status); } && {
26073          test -z "$ac_c_werror_flag" ||
26074          test ! -s conftest.err
26075        } && test -s conftest$ac_exeext && {
26076          test "$cross_compiling" = yes ||
26077          $as_test_x conftest$ac_exeext
26078        }; then
26079   gl_cv_func_fseeko=yes
26080 else
26081   $as_echo "$as_me: failed program was:" >&5
26082 sed 's/^/| /' conftest.$ac_ext >&5
26083
26084         gl_cv_func_fseeko=no
26085 fi
26086
26087 rm -rf conftest.dSYM
26088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26089       conftest$ac_exeext conftest.$ac_ext
26090
26091 fi
26092 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
26093 $as_echo "$gl_cv_func_fseeko" >&6; }
26094   if test $gl_cv_func_fseeko = no \
26095       || test $gl_cv_var_stdin_large_offset = no; then
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
26106
26107
26108   REPLACE_FSEEKO=1
26109
26110
26111   fi
26112
26113
26114
26115   GNULIB_FSEEKO=1
26116
26117
26118 cat >>confdefs.h <<\_ACEOF
26119 #define GNULIB_FSEEKO 1
26120 _ACEOF
26121
26122
26123
26124
26125
26126
26127
26128
26129
26130
26131
26132
26133   if test $ac_cv_func_ftruncate = no; then
26134     HAVE_FTRUNCATE=0
26135
26136
26137
26138
26139
26140
26141
26142
26143   gl_LIBOBJS="$gl_LIBOBJS ftruncate.$ac_objext"
26144
26145
26146
26147 for ac_func in chsize
26148 do
26149 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26150 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26151 $as_echo_n "checking for $ac_func... " >&6; }
26152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26153   $as_echo_n "(cached) " >&6
26154 else
26155   cat >conftest.$ac_ext <<_ACEOF
26156 /* confdefs.h.  */
26157 _ACEOF
26158 cat confdefs.h >>conftest.$ac_ext
26159 cat >>conftest.$ac_ext <<_ACEOF
26160 /* end confdefs.h.  */
26161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26162    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26163 #define $ac_func innocuous_$ac_func
26164
26165 /* System header to define __stub macros and hopefully few prototypes,
26166     which can conflict with char $ac_func (); below.
26167     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26168     <limits.h> exists even on freestanding compilers.  */
26169
26170 #ifdef __STDC__
26171 # include <limits.h>
26172 #else
26173 # include <assert.h>
26174 #endif
26175
26176 #undef $ac_func
26177
26178 /* Override any GCC internal prototype to avoid an error.
26179    Use char because int might match the return type of a GCC
26180    builtin and then its argument prototype would still apply.  */
26181 #ifdef __cplusplus
26182 extern "C"
26183 #endif
26184 char $ac_func ();
26185 /* The GNU C library defines this for functions which it implements
26186     to always fail with ENOSYS.  Some functions are actually named
26187     something starting with __ and the normal name is an alias.  */
26188 #if defined __stub_$ac_func || defined __stub___$ac_func
26189 choke me
26190 #endif
26191
26192 int
26193 main ()
26194 {
26195 return $ac_func ();
26196   ;
26197   return 0;
26198 }
26199 _ACEOF
26200 rm -f conftest.$ac_objext conftest$ac_exeext
26201 if { (ac_try="$ac_link"
26202 case "(($ac_try" in
26203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26204   *) ac_try_echo=$ac_try;;
26205 esac
26206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26207 $as_echo "$ac_try_echo") >&5
26208   (eval "$ac_link") 2>conftest.er1
26209   ac_status=$?
26210   grep -v '^ *+' conftest.er1 >conftest.err
26211   rm -f conftest.er1
26212   cat conftest.err >&5
26213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26214   (exit $ac_status); } && {
26215          test -z "$ac_c_werror_flag" ||
26216          test ! -s conftest.err
26217        } && test -s conftest$ac_exeext && {
26218          test "$cross_compiling" = yes ||
26219          $as_test_x conftest$ac_exeext
26220        }; then
26221   eval "$as_ac_var=yes"
26222 else
26223   $as_echo "$as_me: failed program was:" >&5
26224 sed 's/^/| /' conftest.$ac_ext >&5
26225
26226         eval "$as_ac_var=no"
26227 fi
26228
26229 rm -rf conftest.dSYM
26230 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26231       conftest$ac_exeext conftest.$ac_ext
26232 fi
26233 ac_res=`eval 'as_val=${'$as_ac_var'}
26234                  $as_echo "$as_val"'`
26235                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26236 $as_echo "$ac_res" >&6; }
26237 as_val=`eval 'as_val=${'$as_ac_var'}
26238                  $as_echo "$as_val"'`
26239    if test "x$as_val" = x""yes; then
26240   cat >>confdefs.h <<_ACEOF
26241 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26242 _ACEOF
26243
26244 fi
26245 done
26246
26247
26248     case "$host_os" in
26249       mingw*)
26250         # Yes, we know mingw lacks ftruncate.
26251         ;;
26252       *)
26253         # If someone lacks ftruncate, make configure fail, and request
26254         # a bug report to inform us about it.
26255         if test x"$SKIP_FTRUNCATE_CHECK" != xyes; then
26256           { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
26257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26258 { { $as_echo "$as_me:$LINENO: error: Your system lacks the ftruncate function.
26259               Please report this, along with the output of \"uname -a\", to the
26260               bug-coreutils@gnu.org mailing list.  To continue past this point,
26261               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
26262               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
26263 See \`config.log' for more details." >&5
26264 $as_echo "$as_me: error: Your system lacks the ftruncate function.
26265               Please report this, along with the output of \"uname -a\", to the
26266               bug-coreutils@gnu.org mailing list.  To continue past this point,
26267               rerun configure with SKIP_FTRUNCATE_CHECK=yes.
26268               E.g., ./configure SKIP_FTRUNCATE_CHECK=yes
26269 See \`config.log' for more details." >&2;}
26270    { (exit 1); exit 1; }; }; }
26271         fi
26272     esac
26273   fi
26274
26275
26276
26277   GNULIB_FTRUNCATE=1
26278
26279
26280 cat >>confdefs.h <<\_ACEOF
26281 #define GNULIB_FTRUNCATE 1
26282 _ACEOF
26283
26284
26285
26286
26287
26288
26289
26290   gl_abort_bug=no
26291   case $gl_cv_func_getcwd_null,$host_os in
26292   *,mingw*)
26293     gl_cv_func_getcwd_path_max=yes;;
26294   yes,*)
26295
26296
26297
26298
26299
26300
26301   { $as_echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
26302 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
26303 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
26304   $as_echo_n "(cached) " >&6
26305 else
26306   # Arrange for deletion of the temporary directory this test creates.
26307      ac_clean_files="$ac_clean_files confdir3"
26308      if test "$cross_compiling" = yes; then
26309   gl_cv_func_getcwd_path_max=no
26310 else
26311   cat >conftest.$ac_ext <<_ACEOF
26312 /* confdefs.h.  */
26313 _ACEOF
26314 cat confdefs.h >>conftest.$ac_ext
26315 cat >>conftest.$ac_ext <<_ACEOF
26316 /* end confdefs.h.  */
26317
26318 #include <errno.h>
26319 #include <stdlib.h>
26320 #include <unistd.h>
26321 #include <string.h>
26322 #include <limits.h>
26323 #include <sys/stat.h>
26324 #include <sys/types.h>
26325 #include <fcntl.h>
26326
26327 #ifndef AT_FDCWD
26328 # define AT_FDCWD 0
26329 #endif
26330 #ifdef ENAMETOOLONG
26331 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
26332 #else
26333 # define is_ENAMETOOLONG(x) 0
26334 #endif
26335
26336 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
26337 #undef mkdir
26338
26339 #ifndef S_IRWXU
26340 # define S_IRWXU 0700
26341 #endif
26342
26343 /* The length of this name must be 8.  */
26344 #define DIR_NAME "confdir3"
26345 #define DIR_NAME_LEN 8
26346 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
26347
26348 /* The length of "../".  */
26349 #define DOTDOTSLASH_LEN 3
26350
26351 /* Leftover bytes in the buffer, to work around library or OS bugs.  */
26352 #define BUF_SLOP 20
26353
26354 int
26355 main ()
26356 {
26357 #ifndef PATH_MAX
26358   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
26359      at least not on a local file system.  And if we were to start worrying
26360      about remote file systems, we'd have to enable the wrapper function
26361      all of the time, just to be safe.  That's not worth the cost.  */
26362   exit (0);
26363 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
26364         - DIR_NAME_SIZE - BUF_SLOP) \
26365        <= PATH_MAX)
26366   /* FIXME: Assuming there's a system for which this is true,
26367      this should be done in a compile test.  */
26368   exit (0);
26369 #else
26370   char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
26371            + DIR_NAME_SIZE + BUF_SLOP];
26372   char *cwd = getcwd (buf, PATH_MAX);
26373   size_t initial_cwd_len;
26374   size_t cwd_len;
26375   int fail = 0;
26376   size_t n_chdirs = 0;
26377
26378   if (cwd == NULL)
26379     exit (1);
26380
26381   cwd_len = initial_cwd_len = strlen (cwd);
26382
26383   while (1)
26384     {
26385       size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
26386       char *c = NULL;
26387
26388       cwd_len += DIR_NAME_SIZE;
26389       /* If mkdir or chdir fails, it could be that this system cannot create
26390          any file with an absolute name longer than PATH_MAX, such as cygwin.
26391          If so, leave fail as 0, because the current working directory can't
26392          be too long for getcwd if it can't even be created.  For other
26393          errors, be pessimistic and consider that as a failure, too.  */
26394       if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
26395         {
26396           if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
26397             fail = 2;
26398           break;
26399         }
26400
26401       if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
26402         {
26403           c = getcwd (buf, PATH_MAX);
26404           if (!c && errno == ENOENT)
26405             {
26406               fail = 1;
26407               break;
26408             }
26409           if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
26410             {
26411               fail = 2;
26412               break;
26413             }
26414         }
26415
26416       if (dotdot_max <= cwd_len - initial_cwd_len)
26417         {
26418           if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
26419             break;
26420           c = getcwd (buf, cwd_len + 1);
26421           if (!c)
26422             {
26423               if (! (errno == ERANGE || errno == ENOENT
26424                      || is_ENAMETOOLONG (errno)))
26425                 {
26426                   fail = 2;
26427                   break;
26428                 }
26429               if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
26430                 {
26431                   fail = 1;
26432                   break;
26433                 }
26434             }
26435         }
26436
26437       if (c && strlen (c) != cwd_len)
26438         {
26439           fail = 2;
26440           break;
26441         }
26442       ++n_chdirs;
26443     }
26444
26445   /* Leaving behind such a deep directory is not polite.
26446      So clean up here, right away, even though the driving
26447      shell script would also clean up.  */
26448   {
26449     size_t i;
26450
26451     /* Try rmdir first, in case the chdir failed.  */
26452     rmdir (DIR_NAME);
26453     for (i = 0; i <= n_chdirs; i++)
26454       {
26455         if (chdir ("..") < 0)
26456           break;
26457         if (rmdir (DIR_NAME) != 0)
26458           break;
26459       }
26460   }
26461
26462   exit (fail);
26463 #endif
26464 }
26465
26466 _ACEOF
26467 rm -f conftest$ac_exeext
26468 if { (ac_try="$ac_link"
26469 case "(($ac_try" in
26470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26471   *) ac_try_echo=$ac_try;;
26472 esac
26473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26474 $as_echo "$ac_try_echo") >&5
26475   (eval "$ac_link") 2>&5
26476   ac_status=$?
26477   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26478   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26479   { (case "(($ac_try" in
26480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26481   *) ac_try_echo=$ac_try;;
26482 esac
26483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26484 $as_echo "$ac_try_echo") >&5
26485   (eval "$ac_try") 2>&5
26486   ac_status=$?
26487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26488   (exit $ac_status); }; }; then
26489   gl_cv_func_getcwd_path_max=yes
26490 else
26491   $as_echo "$as_me: program exited with status $ac_status" >&5
26492 $as_echo "$as_me: failed program was:" >&5
26493 sed 's/^/| /' conftest.$ac_ext >&5
26494
26495 ( exit $ac_status )
26496 case $? in
26497      1) gl_cv_func_getcwd_path_max='no, but it is partly working';;
26498      *) gl_cv_func_getcwd_path_max=no;;
26499      esac
26500 fi
26501 rm -rf conftest.dSYM
26502 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26503 fi
26504
26505
26506
26507 fi
26508 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
26509 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
26510   case $gl_cv_func_getcwd_path_max in
26511   no,*)
26512
26513 cat >>confdefs.h <<\_ACEOF
26514 #define HAVE_PARTLY_WORKING_GETCWD 1
26515 _ACEOF
26516 ;;
26517   esac
26518
26519
26520
26521
26522
26523
26524
26525 for ac_func in getpagesize
26526 do
26527 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26528 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26529 $as_echo_n "checking for $ac_func... " >&6; }
26530 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26531   $as_echo_n "(cached) " >&6
26532 else
26533   cat >conftest.$ac_ext <<_ACEOF
26534 /* confdefs.h.  */
26535 _ACEOF
26536 cat confdefs.h >>conftest.$ac_ext
26537 cat >>conftest.$ac_ext <<_ACEOF
26538 /* end confdefs.h.  */
26539 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26540    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26541 #define $ac_func innocuous_$ac_func
26542
26543 /* System header to define __stub macros and hopefully few prototypes,
26544     which can conflict with char $ac_func (); below.
26545     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26546     <limits.h> exists even on freestanding compilers.  */
26547
26548 #ifdef __STDC__
26549 # include <limits.h>
26550 #else
26551 # include <assert.h>
26552 #endif
26553
26554 #undef $ac_func
26555
26556 /* Override any GCC internal prototype to avoid an error.
26557    Use char because int might match the return type of a GCC
26558    builtin and then its argument prototype would still apply.  */
26559 #ifdef __cplusplus
26560 extern "C"
26561 #endif
26562 char $ac_func ();
26563 /* The GNU C library defines this for functions which it implements
26564     to always fail with ENOSYS.  Some functions are actually named
26565     something starting with __ and the normal name is an alias.  */
26566 #if defined __stub_$ac_func || defined __stub___$ac_func
26567 choke me
26568 #endif
26569
26570 int
26571 main ()
26572 {
26573 return $ac_func ();
26574   ;
26575   return 0;
26576 }
26577 _ACEOF
26578 rm -f conftest.$ac_objext conftest$ac_exeext
26579 if { (ac_try="$ac_link"
26580 case "(($ac_try" in
26581   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26582   *) ac_try_echo=$ac_try;;
26583 esac
26584 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26585 $as_echo "$ac_try_echo") >&5
26586   (eval "$ac_link") 2>conftest.er1
26587   ac_status=$?
26588   grep -v '^ *+' conftest.er1 >conftest.err
26589   rm -f conftest.er1
26590   cat conftest.err >&5
26591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26592   (exit $ac_status); } && {
26593          test -z "$ac_c_werror_flag" ||
26594          test ! -s conftest.err
26595        } && test -s conftest$ac_exeext && {
26596          test "$cross_compiling" = yes ||
26597          $as_test_x conftest$ac_exeext
26598        }; then
26599   eval "$as_ac_var=yes"
26600 else
26601   $as_echo "$as_me: failed program was:" >&5
26602 sed 's/^/| /' conftest.$ac_ext >&5
26603
26604         eval "$as_ac_var=no"
26605 fi
26606
26607 rm -rf conftest.dSYM
26608 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26609       conftest$ac_exeext conftest.$ac_ext
26610 fi
26611 ac_res=`eval 'as_val=${'$as_ac_var'}
26612                  $as_echo "$as_val"'`
26613                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26614 $as_echo "$ac_res" >&6; }
26615 as_val=`eval 'as_val=${'$as_ac_var'}
26616                  $as_echo "$as_val"'`
26617    if test "x$as_val" = x""yes; then
26618   cat >>confdefs.h <<_ACEOF
26619 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26620 _ACEOF
26621
26622 fi
26623 done
26624
26625   { $as_echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
26626 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
26627 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
26628   $as_echo_n "(cached) " >&6
26629 else
26630   # Remove any remnants of a previous test.
26631      rm -rf confdir-14B---
26632      # Arrange for deletion of the temporary directory this test creates.
26633      ac_clean_files="$ac_clean_files confdir-14B---"
26634      if test "$cross_compiling" = yes; then
26635   gl_cv_func_getcwd_abort_bug=yes
26636 else
26637   cat >conftest.$ac_ext <<_ACEOF
26638 /* confdefs.h.  */
26639 _ACEOF
26640 cat confdefs.h >>conftest.$ac_ext
26641 cat >>conftest.$ac_ext <<_ACEOF
26642 /* end confdefs.h.  */
26643
26644 #include <stdlib.h>
26645 #include <unistd.h>
26646 #include <limits.h>
26647 #include <string.h>
26648 #include <sys/stat.h>
26649
26650 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
26651 #undef mkdir
26652
26653 #ifndef S_IRWXU
26654 # define S_IRWXU 0700
26655 #endif
26656
26657 /* FIXME: skip the run-test altogether on systems without getpagesize.  */
26658 #if ! HAVE_GETPAGESIZE
26659 # define getpagesize() 0
26660 #endif
26661
26662 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
26663    the 16kB pagesize on ia64 linux.  Those conditions make the code below
26664    trigger a bug in glibc's getcwd implementation before 2.4.90-10.  */
26665 #define TARGET_LEN (5 * 1024)
26666
26667 int
26668 main ()
26669 {
26670   char const *dir_name = "confdir-14B---";
26671   char *cwd;
26672   size_t initial_cwd_len;
26673   int fail = 0;
26674   size_t desired_depth;
26675   size_t d;
26676
26677   /* The bug is triggered when PATH_MAX < getpagesize (), so skip
26678      this relative expensive and invasive test if that's not true.  */
26679   if (getpagesize () <= PATH_MAX)
26680     return 0;
26681
26682   cwd = getcwd (NULL, 0);
26683   if (cwd == NULL)
26684     return 0;
26685
26686   initial_cwd_len = strlen (cwd);
26687   free (cwd);
26688   desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
26689                    / (1 + strlen (dir_name)));
26690   for (d = 0; d < desired_depth; d++)
26691     {
26692       if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
26693         {
26694           fail = 3; /* Unable to construct deep hierarchy.  */
26695           break;
26696         }
26697     }
26698
26699   /* If libc has the bug in question, this invocation of getcwd
26700      results in a failed assertion.  */
26701   cwd = getcwd (NULL, 0);
26702   if (cwd == NULL)
26703     fail = 4; /* getcwd failed.  This is ok, and expected.  */
26704   free (cwd);
26705
26706   /* Call rmdir first, in case the above chdir failed.  */
26707   rmdir (dir_name);
26708   while (0 < d--)
26709     {
26710       if (chdir ("..") < 0)
26711         break;
26712       rmdir (dir_name);
26713     }
26714
26715   return 0;
26716 }
26717
26718 _ACEOF
26719 rm -f conftest$ac_exeext
26720 if { (ac_try="$ac_link"
26721 case "(($ac_try" in
26722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26723   *) ac_try_echo=$ac_try;;
26724 esac
26725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26726 $as_echo "$ac_try_echo") >&5
26727   (eval "$ac_link") 2>&5
26728   ac_status=$?
26729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26730   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26731   { (case "(($ac_try" in
26732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26733   *) ac_try_echo=$ac_try;;
26734 esac
26735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26736 $as_echo "$ac_try_echo") >&5
26737   (eval "$ac_try") 2>&5
26738   ac_status=$?
26739   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26740   (exit $ac_status); }; }; then
26741   gl_cv_func_getcwd_abort_bug=no
26742 else
26743   $as_echo "$as_me: program exited with status $ac_status" >&5
26744 $as_echo "$as_me: failed program was:" >&5
26745 sed 's/^/| /' conftest.$ac_ext >&5
26746
26747 ( exit $ac_status )
26748 gl_cv_func_getcwd_abort_bug=yes
26749 fi
26750 rm -rf conftest.dSYM
26751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26752 fi
26753
26754
26755
26756 fi
26757 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
26758 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
26759   if test $gl_cv_func_getcwd_abort_bug = yes; then
26760   gl_abort_bug=yes
26761 fi
26762
26763 ;;
26764   esac
26765
26766   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
26767   *yes,yes,no) ;;
26768   *)
26769     REPLACE_GETCWD=1
26770
26771
26772
26773
26774
26775
26776
26777
26778   gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
26779
26780
26781
26782
26783   :
26784 ;;
26785   esac
26786
26787
26788
26789   GNULIB_GETCWD=1
26790
26791
26792 cat >>confdefs.h <<\_ACEOF
26793 #define GNULIB_GETCWD 1
26794 _ACEOF
26795
26796
26797
26798
26799
26800
26801
26802
26803
26804   { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
26805 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
26806 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
26807   $as_echo_n "(cached) " >&6
26808 else
26809   cat >conftest.$ac_ext <<_ACEOF
26810 /* confdefs.h.  */
26811 _ACEOF
26812 cat confdefs.h >>conftest.$ac_ext
26813 cat >>conftest.$ac_ext <<_ACEOF
26814 /* end confdefs.h.  */
26815 #include <sys/types.h>
26816 #include <$ac_cv_struct_tm>
26817
26818
26819 int
26820 main ()
26821 {
26822 static struct tm ac_aggr;
26823 if (ac_aggr.tm_zone)
26824 return 0;
26825   ;
26826   return 0;
26827 }
26828 _ACEOF
26829 rm -f conftest.$ac_objext
26830 if { (ac_try="$ac_compile"
26831 case "(($ac_try" in
26832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26833   *) ac_try_echo=$ac_try;;
26834 esac
26835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26836 $as_echo "$ac_try_echo") >&5
26837   (eval "$ac_compile") 2>conftest.er1
26838   ac_status=$?
26839   grep -v '^ *+' conftest.er1 >conftest.err
26840   rm -f conftest.er1
26841   cat conftest.err >&5
26842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843   (exit $ac_status); } && {
26844          test -z "$ac_c_werror_flag" ||
26845          test ! -s conftest.err
26846        } && test -s conftest.$ac_objext; then
26847   ac_cv_member_struct_tm_tm_zone=yes
26848 else
26849   $as_echo "$as_me: failed program was:" >&5
26850 sed 's/^/| /' conftest.$ac_ext >&5
26851
26852         cat >conftest.$ac_ext <<_ACEOF
26853 /* confdefs.h.  */
26854 _ACEOF
26855 cat confdefs.h >>conftest.$ac_ext
26856 cat >>conftest.$ac_ext <<_ACEOF
26857 /* end confdefs.h.  */
26858 #include <sys/types.h>
26859 #include <$ac_cv_struct_tm>
26860
26861
26862 int
26863 main ()
26864 {
26865 static struct tm ac_aggr;
26866 if (sizeof ac_aggr.tm_zone)
26867 return 0;
26868   ;
26869   return 0;
26870 }
26871 _ACEOF
26872 rm -f conftest.$ac_objext
26873 if { (ac_try="$ac_compile"
26874 case "(($ac_try" in
26875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26876   *) ac_try_echo=$ac_try;;
26877 esac
26878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26879 $as_echo "$ac_try_echo") >&5
26880   (eval "$ac_compile") 2>conftest.er1
26881   ac_status=$?
26882   grep -v '^ *+' conftest.er1 >conftest.err
26883   rm -f conftest.er1
26884   cat conftest.err >&5
26885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26886   (exit $ac_status); } && {
26887          test -z "$ac_c_werror_flag" ||
26888          test ! -s conftest.err
26889        } && test -s conftest.$ac_objext; then
26890   ac_cv_member_struct_tm_tm_zone=yes
26891 else
26892   $as_echo "$as_me: failed program was:" >&5
26893 sed 's/^/| /' conftest.$ac_ext >&5
26894
26895         ac_cv_member_struct_tm_tm_zone=no
26896 fi
26897
26898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26899 fi
26900
26901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26902 fi
26903 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
26904 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
26905 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
26906
26907 cat >>confdefs.h <<_ACEOF
26908 #define HAVE_STRUCT_TM_TM_ZONE 1
26909 _ACEOF
26910
26911
26912 fi
26913
26914 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
26915
26916 cat >>confdefs.h <<\_ACEOF
26917 #define HAVE_TM_ZONE 1
26918 _ACEOF
26919
26920 else
26921   { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
26922 $as_echo_n "checking whether tzname is declared... " >&6; }
26923 if test "${ac_cv_have_decl_tzname+set}" = set; then
26924   $as_echo_n "(cached) " >&6
26925 else
26926   cat >conftest.$ac_ext <<_ACEOF
26927 /* confdefs.h.  */
26928 _ACEOF
26929 cat confdefs.h >>conftest.$ac_ext
26930 cat >>conftest.$ac_ext <<_ACEOF
26931 /* end confdefs.h.  */
26932 #include <time.h>
26933
26934 int
26935 main ()
26936 {
26937 #ifndef tzname
26938   (void) tzname;
26939 #endif
26940
26941   ;
26942   return 0;
26943 }
26944 _ACEOF
26945 rm -f conftest.$ac_objext
26946 if { (ac_try="$ac_compile"
26947 case "(($ac_try" in
26948   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26949   *) ac_try_echo=$ac_try;;
26950 esac
26951 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26952 $as_echo "$ac_try_echo") >&5
26953   (eval "$ac_compile") 2>conftest.er1
26954   ac_status=$?
26955   grep -v '^ *+' conftest.er1 >conftest.err
26956   rm -f conftest.er1
26957   cat conftest.err >&5
26958   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26959   (exit $ac_status); } && {
26960          test -z "$ac_c_werror_flag" ||
26961          test ! -s conftest.err
26962        } && test -s conftest.$ac_objext; then
26963   ac_cv_have_decl_tzname=yes
26964 else
26965   $as_echo "$as_me: failed program was:" >&5
26966 sed 's/^/| /' conftest.$ac_ext >&5
26967
26968         ac_cv_have_decl_tzname=no
26969 fi
26970
26971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26972 fi
26973 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
26974 $as_echo "$ac_cv_have_decl_tzname" >&6; }
26975 if test "x$ac_cv_have_decl_tzname" = x""yes; then
26976
26977 cat >>confdefs.h <<_ACEOF
26978 #define HAVE_DECL_TZNAME 1
26979 _ACEOF
26980
26981
26982 else
26983   cat >>confdefs.h <<_ACEOF
26984 #define HAVE_DECL_TZNAME 0
26985 _ACEOF
26986
26987
26988 fi
26989
26990
26991   { $as_echo "$as_me:$LINENO: checking for tzname" >&5
26992 $as_echo_n "checking for tzname... " >&6; }
26993 if test "${ac_cv_var_tzname+set}" = set; then
26994   $as_echo_n "(cached) " >&6
26995 else
26996   cat >conftest.$ac_ext <<_ACEOF
26997 /* confdefs.h.  */
26998 _ACEOF
26999 cat confdefs.h >>conftest.$ac_ext
27000 cat >>conftest.$ac_ext <<_ACEOF
27001 /* end confdefs.h.  */
27002 #include <time.h>
27003 #if !HAVE_DECL_TZNAME
27004 extern char *tzname[];
27005 #endif
27006
27007 int
27008 main ()
27009 {
27010 return tzname[0][0];
27011   ;
27012   return 0;
27013 }
27014 _ACEOF
27015 rm -f conftest.$ac_objext conftest$ac_exeext
27016 if { (ac_try="$ac_link"
27017 case "(($ac_try" in
27018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27019   *) ac_try_echo=$ac_try;;
27020 esac
27021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27022 $as_echo "$ac_try_echo") >&5
27023   (eval "$ac_link") 2>conftest.er1
27024   ac_status=$?
27025   grep -v '^ *+' conftest.er1 >conftest.err
27026   rm -f conftest.er1
27027   cat conftest.err >&5
27028   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27029   (exit $ac_status); } && {
27030          test -z "$ac_c_werror_flag" ||
27031          test ! -s conftest.err
27032        } && test -s conftest$ac_exeext && {
27033          test "$cross_compiling" = yes ||
27034          $as_test_x conftest$ac_exeext
27035        }; then
27036   ac_cv_var_tzname=yes
27037 else
27038   $as_echo "$as_me: failed program was:" >&5
27039 sed 's/^/| /' conftest.$ac_ext >&5
27040
27041         ac_cv_var_tzname=no
27042 fi
27043
27044 rm -rf conftest.dSYM
27045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27046       conftest$ac_exeext conftest.$ac_ext
27047 fi
27048 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
27049 $as_echo "$ac_cv_var_tzname" >&6; }
27050   if test $ac_cv_var_tzname = yes; then
27051
27052 cat >>confdefs.h <<\_ACEOF
27053 #define HAVE_TZNAME 1
27054 _ACEOF
27055
27056   fi
27057 fi
27058
27059
27060
27061   cat >conftest.$ac_ext <<_ACEOF
27062 /* confdefs.h.  */
27063 _ACEOF
27064 cat confdefs.h >>conftest.$ac_ext
27065 cat >>conftest.$ac_ext <<_ACEOF
27066 /* end confdefs.h.  */
27067
27068 #include <time.h> /* for time_t */
27069 #include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */
27070 #define TYPE_MINIMUM(t) \
27071   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
27072 #define TYPE_MAXIMUM(t) \
27073   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
27074 typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1];
27075 typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1];
27076
27077 _ACEOF
27078 rm -f conftest.$ac_objext
27079 if { (ac_try="$ac_compile"
27080 case "(($ac_try" in
27081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27082   *) ac_try_echo=$ac_try;;
27083 esac
27084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27085 $as_echo "$ac_try_echo") >&5
27086   (eval "$ac_compile") 2>conftest.er1
27087   ac_status=$?
27088   grep -v '^ *+' conftest.er1 >conftest.err
27089   rm -f conftest.er1
27090   cat conftest.err >&5
27091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27092   (exit $ac_status); } && {
27093          test -z "$ac_c_werror_flag" ||
27094          test ! -s conftest.err
27095        } && test -s conftest.$ac_objext; then
27096
27097 cat >>confdefs.h <<\_ACEOF
27098 #define TIME_T_FITS_IN_LONG_INT 1
27099 _ACEOF
27100
27101
27102 else
27103   $as_echo "$as_me: failed program was:" >&5
27104 sed 's/^/| /' conftest.$ac_ext >&5
27105
27106
27107 fi
27108
27109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
27127   if test $ac_cv_func_getdelim = yes; then
27128         { $as_echo "$as_me:$LINENO: checking for working getdelim function" >&5
27129 $as_echo_n "checking for working getdelim function... " >&6; }
27130 if test "${gl_cv_func_working_getdelim+set}" = set; then
27131   $as_echo_n "(cached) " >&6
27132 else
27133   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
27134     if test "$cross_compiling" = yes; then
27135         cat >conftest.$ac_ext <<_ACEOF
27136 /* confdefs.h.  */
27137 _ACEOF
27138 cat confdefs.h >>conftest.$ac_ext
27139 cat >>conftest.$ac_ext <<_ACEOF
27140 /* end confdefs.h.  */
27141
27142 #include <features.h>
27143 #ifdef __GNU_LIBRARY__
27144  #if (__GLIBC__ >= 2)
27145   Lucky GNU user
27146  #endif
27147 #endif
27148
27149 _ACEOF
27150 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27151   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
27152   gl_cv_func_working_getdelim=yes
27153 else
27154   gl_cv_func_working_getdelim=no
27155 fi
27156 rm -f conftest*
27157
27158
27159 else
27160   cat >conftest.$ac_ext <<_ACEOF
27161 /* confdefs.h.  */
27162 _ACEOF
27163 cat confdefs.h >>conftest.$ac_ext
27164 cat >>conftest.$ac_ext <<_ACEOF
27165 /* end confdefs.h.  */
27166
27167 #    include <stdio.h>
27168 #    include <stdlib.h>
27169 #    include <string.h>
27170     int main ()
27171     {
27172       FILE *in = fopen ("./conftest.data", "r");
27173       if (!in)
27174         return 1;
27175       {
27176         /* Test result for a NULL buffer and a zero size.
27177            Based on a test program from Karl Heuer.  */
27178         char *line = NULL;
27179         size_t siz = 0;
27180         int len = getdelim (&line, &siz, '\n', in);
27181         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
27182           return 1;
27183       }
27184       {
27185         /* Test result for a NULL buffer and a non-zero size.
27186            This crashes on FreeBSD 8.0.  */
27187         char *line = NULL;
27188         size_t siz = (size_t)(~0) / 4;
27189         if (getdelim (&line, &siz, '\n', in) == -1)
27190           return 1;
27191       }
27192       return 0;
27193     }
27194
27195 _ACEOF
27196 rm -f conftest$ac_exeext
27197 if { (ac_try="$ac_link"
27198 case "(($ac_try" in
27199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27200   *) ac_try_echo=$ac_try;;
27201 esac
27202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27203 $as_echo "$ac_try_echo") >&5
27204   (eval "$ac_link") 2>&5
27205   ac_status=$?
27206   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27207   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27208   { (case "(($ac_try" in
27209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27210   *) ac_try_echo=$ac_try;;
27211 esac
27212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27213 $as_echo "$ac_try_echo") >&5
27214   (eval "$ac_try") 2>&5
27215   ac_status=$?
27216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27217   (exit $ac_status); }; }; then
27218   gl_cv_func_working_getdelim=yes
27219 else
27220   $as_echo "$as_me: program exited with status $ac_status" >&5
27221 $as_echo "$as_me: failed program was:" >&5
27222 sed 's/^/| /' conftest.$ac_ext >&5
27223
27224 ( exit $ac_status )
27225 gl_cv_func_working_getdelim=no
27226 fi
27227 rm -rf conftest.dSYM
27228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27229 fi
27230
27231
27232 fi
27233 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_getdelim" >&5
27234 $as_echo "$gl_cv_func_working_getdelim" >&6; }
27235   else
27236     gl_cv_func_working_getdelim=no
27237   fi
27238
27239   if test $ac_cv_have_decl_getdelim = no; then
27240     HAVE_DECL_GETDELIM=0
27241   fi
27242
27243   if test $gl_cv_func_working_getdelim = no; then
27244     if test $ac_cv_func_getdelim = yes; then
27245       REPLACE_GETDELIM=1
27246     fi
27247
27248
27249
27250
27251
27252
27253
27254
27255   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
27256
27257
27258
27259
27260 for ac_func in flockfile funlockfile
27261 do
27262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27263 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27264 $as_echo_n "checking for $ac_func... " >&6; }
27265 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27266   $as_echo_n "(cached) " >&6
27267 else
27268   cat >conftest.$ac_ext <<_ACEOF
27269 /* confdefs.h.  */
27270 _ACEOF
27271 cat confdefs.h >>conftest.$ac_ext
27272 cat >>conftest.$ac_ext <<_ACEOF
27273 /* end confdefs.h.  */
27274 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27275    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27276 #define $ac_func innocuous_$ac_func
27277
27278 /* System header to define __stub macros and hopefully few prototypes,
27279     which can conflict with char $ac_func (); below.
27280     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27281     <limits.h> exists even on freestanding compilers.  */
27282
27283 #ifdef __STDC__
27284 # include <limits.h>
27285 #else
27286 # include <assert.h>
27287 #endif
27288
27289 #undef $ac_func
27290
27291 /* Override any GCC internal prototype to avoid an error.
27292    Use char because int might match the return type of a GCC
27293    builtin and then its argument prototype would still apply.  */
27294 #ifdef __cplusplus
27295 extern "C"
27296 #endif
27297 char $ac_func ();
27298 /* The GNU C library defines this for functions which it implements
27299     to always fail with ENOSYS.  Some functions are actually named
27300     something starting with __ and the normal name is an alias.  */
27301 #if defined __stub_$ac_func || defined __stub___$ac_func
27302 choke me
27303 #endif
27304
27305 int
27306 main ()
27307 {
27308 return $ac_func ();
27309   ;
27310   return 0;
27311 }
27312 _ACEOF
27313 rm -f conftest.$ac_objext conftest$ac_exeext
27314 if { (ac_try="$ac_link"
27315 case "(($ac_try" in
27316   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27317   *) ac_try_echo=$ac_try;;
27318 esac
27319 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27320 $as_echo "$ac_try_echo") >&5
27321   (eval "$ac_link") 2>conftest.er1
27322   ac_status=$?
27323   grep -v '^ *+' conftest.er1 >conftest.err
27324   rm -f conftest.er1
27325   cat conftest.err >&5
27326   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27327   (exit $ac_status); } && {
27328          test -z "$ac_c_werror_flag" ||
27329          test ! -s conftest.err
27330        } && test -s conftest$ac_exeext && {
27331          test "$cross_compiling" = yes ||
27332          $as_test_x conftest$ac_exeext
27333        }; then
27334   eval "$as_ac_var=yes"
27335 else
27336   $as_echo "$as_me: failed program was:" >&5
27337 sed 's/^/| /' conftest.$ac_ext >&5
27338
27339         eval "$as_ac_var=no"
27340 fi
27341
27342 rm -rf conftest.dSYM
27343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27344       conftest$ac_exeext conftest.$ac_ext
27345 fi
27346 ac_res=`eval 'as_val=${'$as_ac_var'}
27347                  $as_echo "$as_val"'`
27348                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27349 $as_echo "$ac_res" >&6; }
27350 as_val=`eval 'as_val=${'$as_ac_var'}
27351                  $as_echo "$as_val"'`
27352    if test "x$as_val" = x""yes; then
27353   cat >>confdefs.h <<_ACEOF
27354 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27355 _ACEOF
27356
27357 fi
27358 done
27359
27360   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
27361 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
27362 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
27363   $as_echo_n "(cached) " >&6
27364 else
27365   cat >conftest.$ac_ext <<_ACEOF
27366 /* confdefs.h.  */
27367 _ACEOF
27368 cat confdefs.h >>conftest.$ac_ext
27369 cat >>conftest.$ac_ext <<_ACEOF
27370 /* end confdefs.h.  */
27371 $ac_includes_default
27372 int
27373 main ()
27374 {
27375 #ifndef getc_unlocked
27376   (void) getc_unlocked;
27377 #endif
27378
27379   ;
27380   return 0;
27381 }
27382 _ACEOF
27383 rm -f conftest.$ac_objext
27384 if { (ac_try="$ac_compile"
27385 case "(($ac_try" in
27386   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27387   *) ac_try_echo=$ac_try;;
27388 esac
27389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27390 $as_echo "$ac_try_echo") >&5
27391   (eval "$ac_compile") 2>conftest.er1
27392   ac_status=$?
27393   grep -v '^ *+' conftest.er1 >conftest.err
27394   rm -f conftest.er1
27395   cat conftest.err >&5
27396   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27397   (exit $ac_status); } && {
27398          test -z "$ac_c_werror_flag" ||
27399          test ! -s conftest.err
27400        } && test -s conftest.$ac_objext; then
27401   ac_cv_have_decl_getc_unlocked=yes
27402 else
27403   $as_echo "$as_me: failed program was:" >&5
27404 sed 's/^/| /' conftest.$ac_ext >&5
27405
27406         ac_cv_have_decl_getc_unlocked=no
27407 fi
27408
27409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27410 fi
27411 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
27412 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
27413 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
27414
27415 cat >>confdefs.h <<_ACEOF
27416 #define HAVE_DECL_GETC_UNLOCKED 1
27417 _ACEOF
27418
27419
27420 else
27421   cat >>confdefs.h <<_ACEOF
27422 #define HAVE_DECL_GETC_UNLOCKED 0
27423 _ACEOF
27424
27425
27426 fi
27427
27428
27429
27430   fi
27431
27432
27433
27434   GNULIB_GETDELIM=1
27435
27436
27437 cat >>confdefs.h <<\_ACEOF
27438 #define GNULIB_GETDELIM 1
27439 _ACEOF
27440
27441
27442
27443
27444
27445
27446
27447
27448
27449
27450
27451   if test $ac_cv_func_getdtablesize != yes; then
27452     HAVE_GETDTABLESIZE=0
27453
27454
27455
27456
27457
27458
27459
27460
27461   gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
27462
27463   fi
27464
27465
27466
27467   GNULIB_GETDTABLESIZE=1
27468
27469
27470 cat >>confdefs.h <<\_ACEOF
27471 #define GNULIB_GETDTABLESIZE 1
27472 _ACEOF
27473
27474
27475
27476
27477
27478
27479
27480
27481
27482
27483
27484
27485
27486   gl_getline_needs_run_time_check=no
27487   { $as_echo "$as_me:$LINENO: checking for getline" >&5
27488 $as_echo_n "checking for getline... " >&6; }
27489 if test "${ac_cv_func_getline+set}" = set; then
27490   $as_echo_n "(cached) " >&6
27491 else
27492   cat >conftest.$ac_ext <<_ACEOF
27493 /* confdefs.h.  */
27494 _ACEOF
27495 cat confdefs.h >>conftest.$ac_ext
27496 cat >>conftest.$ac_ext <<_ACEOF
27497 /* end confdefs.h.  */
27498 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
27499    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27500 #define getline innocuous_getline
27501
27502 /* System header to define __stub macros and hopefully few prototypes,
27503     which can conflict with char getline (); below.
27504     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27505     <limits.h> exists even on freestanding compilers.  */
27506
27507 #ifdef __STDC__
27508 # include <limits.h>
27509 #else
27510 # include <assert.h>
27511 #endif
27512
27513 #undef getline
27514
27515 /* Override any GCC internal prototype to avoid an error.
27516    Use char because int might match the return type of a GCC
27517    builtin and then its argument prototype would still apply.  */
27518 #ifdef __cplusplus
27519 extern "C"
27520 #endif
27521 char getline ();
27522 /* The GNU C library defines this for functions which it implements
27523     to always fail with ENOSYS.  Some functions are actually named
27524     something starting with __ and the normal name is an alias.  */
27525 #if defined __stub_getline || defined __stub___getline
27526 choke me
27527 #endif
27528
27529 int
27530 main ()
27531 {
27532 return getline ();
27533   ;
27534   return 0;
27535 }
27536 _ACEOF
27537 rm -f conftest.$ac_objext conftest$ac_exeext
27538 if { (ac_try="$ac_link"
27539 case "(($ac_try" in
27540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27541   *) ac_try_echo=$ac_try;;
27542 esac
27543 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27544 $as_echo "$ac_try_echo") >&5
27545   (eval "$ac_link") 2>conftest.er1
27546   ac_status=$?
27547   grep -v '^ *+' conftest.er1 >conftest.err
27548   rm -f conftest.er1
27549   cat conftest.err >&5
27550   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27551   (exit $ac_status); } && {
27552          test -z "$ac_c_werror_flag" ||
27553          test ! -s conftest.err
27554        } && test -s conftest$ac_exeext && {
27555          test "$cross_compiling" = yes ||
27556          $as_test_x conftest$ac_exeext
27557        }; then
27558   ac_cv_func_getline=yes
27559 else
27560   $as_echo "$as_me: failed program was:" >&5
27561 sed 's/^/| /' conftest.$ac_ext >&5
27562
27563         ac_cv_func_getline=no
27564 fi
27565
27566 rm -rf conftest.dSYM
27567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27568       conftest$ac_exeext conftest.$ac_ext
27569 fi
27570 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
27571 $as_echo "$ac_cv_func_getline" >&6; }
27572 if test "x$ac_cv_func_getline" = x""yes; then
27573                    gl_getline_needs_run_time_check=yes
27574 else
27575   am_cv_func_working_getline=no
27576 fi
27577
27578   if test $gl_getline_needs_run_time_check = yes; then
27579     { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
27580 $as_echo_n "checking for working getline function... " >&6; }
27581 if test "${am_cv_func_working_getline+set}" = set; then
27582   $as_echo_n "(cached) " >&6
27583 else
27584   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
27585     if test "$cross_compiling" = yes; then
27586         cat >conftest.$ac_ext <<_ACEOF
27587 /* confdefs.h.  */
27588 _ACEOF
27589 cat confdefs.h >>conftest.$ac_ext
27590 cat >>conftest.$ac_ext <<_ACEOF
27591 /* end confdefs.h.  */
27592
27593 #include <features.h>
27594 #ifdef __GNU_LIBRARY__
27595  #if (__GLIBC__ >= 2)
27596   Lucky GNU user
27597  #endif
27598 #endif
27599
27600 _ACEOF
27601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27602   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
27603   am_cv_func_working_getline=yes
27604 else
27605   am_cv_func_working_getline=no
27606 fi
27607 rm -f conftest*
27608
27609
27610 else
27611   cat >conftest.$ac_ext <<_ACEOF
27612 /* confdefs.h.  */
27613 _ACEOF
27614 cat confdefs.h >>conftest.$ac_ext
27615 cat >>conftest.$ac_ext <<_ACEOF
27616 /* end confdefs.h.  */
27617
27618 #    include <stdio.h>
27619 #    include <stdlib.h>
27620 #    include <string.h>
27621     int main ()
27622     {
27623       FILE *in = fopen ("./conftest.data", "r");
27624       if (!in)
27625         return 1;
27626       {
27627         /* Test result for a NULL buffer and a zero size.
27628            Based on a test program from Karl Heuer.  */
27629         char *line = NULL;
27630         size_t siz = 0;
27631         int len = getline (&line, &siz, in);
27632         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
27633           return 1;
27634       }
27635       {
27636         /* Test result for a NULL buffer and a non-zero size.
27637            This crashes on FreeBSD 8.0.  */
27638         char *line = NULL;
27639         size_t siz = (size_t)(~0) / 4;
27640         if (getline (&line, &siz, in) == -1)
27641           return 1;
27642       }
27643       return 0;
27644     }
27645
27646 _ACEOF
27647 rm -f conftest$ac_exeext
27648 if { (ac_try="$ac_link"
27649 case "(($ac_try" in
27650   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27651   *) ac_try_echo=$ac_try;;
27652 esac
27653 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27654 $as_echo "$ac_try_echo") >&5
27655   (eval "$ac_link") 2>&5
27656   ac_status=$?
27657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27658   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27659   { (case "(($ac_try" in
27660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27661   *) ac_try_echo=$ac_try;;
27662 esac
27663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27664 $as_echo "$ac_try_echo") >&5
27665   (eval "$ac_try") 2>&5
27666   ac_status=$?
27667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27668   (exit $ac_status); }; }; then
27669   am_cv_func_working_getline=yes
27670 else
27671   $as_echo "$as_me: program exited with status $ac_status" >&5
27672 $as_echo "$as_me: failed program was:" >&5
27673 sed 's/^/| /' conftest.$ac_ext >&5
27674
27675 ( exit $ac_status )
27676 am_cv_func_working_getline=no
27677 fi
27678 rm -rf conftest.dSYM
27679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27680 fi
27681
27682
27683 fi
27684 { $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
27685 $as_echo "$am_cv_func_working_getline" >&6; }
27686   fi
27687
27688   if test $ac_cv_have_decl_getline = no; then
27689     HAVE_DECL_GETLINE=0
27690   fi
27691
27692   if test $am_cv_func_working_getline = no; then
27693                 REPLACE_GETLINE=1
27694
27695
27696
27697
27698
27699
27700
27701
27702   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
27703
27704
27705
27706
27707
27708
27709
27710
27711
27712
27713
27714
27715
27716
27717
27718
27719
27720
27721
27722   if test $ac_cv_func_getdelim = yes; then
27723         { $as_echo "$as_me:$LINENO: checking for working getdelim function" >&5
27724 $as_echo_n "checking for working getdelim function... " >&6; }
27725 if test "${gl_cv_func_working_getdelim+set}" = set; then
27726   $as_echo_n "(cached) " >&6
27727 else
27728   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
27729     if test "$cross_compiling" = yes; then
27730         cat >conftest.$ac_ext <<_ACEOF
27731 /* confdefs.h.  */
27732 _ACEOF
27733 cat confdefs.h >>conftest.$ac_ext
27734 cat >>conftest.$ac_ext <<_ACEOF
27735 /* end confdefs.h.  */
27736
27737 #include <features.h>
27738 #ifdef __GNU_LIBRARY__
27739  #if (__GLIBC__ >= 2)
27740   Lucky GNU user
27741  #endif
27742 #endif
27743
27744 _ACEOF
27745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27746   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
27747   gl_cv_func_working_getdelim=yes
27748 else
27749   gl_cv_func_working_getdelim=no
27750 fi
27751 rm -f conftest*
27752
27753
27754 else
27755   cat >conftest.$ac_ext <<_ACEOF
27756 /* confdefs.h.  */
27757 _ACEOF
27758 cat confdefs.h >>conftest.$ac_ext
27759 cat >>conftest.$ac_ext <<_ACEOF
27760 /* end confdefs.h.  */
27761
27762 #    include <stdio.h>
27763 #    include <stdlib.h>
27764 #    include <string.h>
27765     int main ()
27766     {
27767       FILE *in = fopen ("./conftest.data", "r");
27768       if (!in)
27769         return 1;
27770       {
27771         /* Test result for a NULL buffer and a zero size.
27772            Based on a test program from Karl Heuer.  */
27773         char *line = NULL;
27774         size_t siz = 0;
27775         int len = getdelim (&line, &siz, '\n', in);
27776         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
27777           return 1;
27778       }
27779       {
27780         /* Test result for a NULL buffer and a non-zero size.
27781            This crashes on FreeBSD 8.0.  */
27782         char *line = NULL;
27783         size_t siz = (size_t)(~0) / 4;
27784         if (getdelim (&line, &siz, '\n', in) == -1)
27785           return 1;
27786       }
27787       return 0;
27788     }
27789
27790 _ACEOF
27791 rm -f conftest$ac_exeext
27792 if { (ac_try="$ac_link"
27793 case "(($ac_try" in
27794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27795   *) ac_try_echo=$ac_try;;
27796 esac
27797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27798 $as_echo "$ac_try_echo") >&5
27799   (eval "$ac_link") 2>&5
27800   ac_status=$?
27801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27803   { (case "(($ac_try" in
27804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27805   *) ac_try_echo=$ac_try;;
27806 esac
27807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27808 $as_echo "$ac_try_echo") >&5
27809   (eval "$ac_try") 2>&5
27810   ac_status=$?
27811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27812   (exit $ac_status); }; }; then
27813   gl_cv_func_working_getdelim=yes
27814 else
27815   $as_echo "$as_me: program exited with status $ac_status" >&5
27816 $as_echo "$as_me: failed program was:" >&5
27817 sed 's/^/| /' conftest.$ac_ext >&5
27818
27819 ( exit $ac_status )
27820 gl_cv_func_working_getdelim=no
27821 fi
27822 rm -rf conftest.dSYM
27823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27824 fi
27825
27826
27827 fi
27828 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_getdelim" >&5
27829 $as_echo "$gl_cv_func_working_getdelim" >&6; }
27830   else
27831     gl_cv_func_working_getdelim=no
27832   fi
27833
27834   if test $ac_cv_have_decl_getdelim = no; then
27835     HAVE_DECL_GETDELIM=0
27836   fi
27837
27838   if test $gl_cv_func_working_getdelim = no; then
27839     if test $ac_cv_func_getdelim = yes; then
27840       REPLACE_GETDELIM=1
27841     fi
27842
27843
27844
27845
27846
27847
27848
27849
27850   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
27851
27852
27853
27854
27855 for ac_func in flockfile funlockfile
27856 do
27857 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
27858 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
27859 $as_echo_n "checking for $ac_func... " >&6; }
27860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
27861   $as_echo_n "(cached) " >&6
27862 else
27863   cat >conftest.$ac_ext <<_ACEOF
27864 /* confdefs.h.  */
27865 _ACEOF
27866 cat confdefs.h >>conftest.$ac_ext
27867 cat >>conftest.$ac_ext <<_ACEOF
27868 /* end confdefs.h.  */
27869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27870    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
27871 #define $ac_func innocuous_$ac_func
27872
27873 /* System header to define __stub macros and hopefully few prototypes,
27874     which can conflict with char $ac_func (); below.
27875     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27876     <limits.h> exists even on freestanding compilers.  */
27877
27878 #ifdef __STDC__
27879 # include <limits.h>
27880 #else
27881 # include <assert.h>
27882 #endif
27883
27884 #undef $ac_func
27885
27886 /* Override any GCC internal prototype to avoid an error.
27887    Use char because int might match the return type of a GCC
27888    builtin and then its argument prototype would still apply.  */
27889 #ifdef __cplusplus
27890 extern "C"
27891 #endif
27892 char $ac_func ();
27893 /* The GNU C library defines this for functions which it implements
27894     to always fail with ENOSYS.  Some functions are actually named
27895     something starting with __ and the normal name is an alias.  */
27896 #if defined __stub_$ac_func || defined __stub___$ac_func
27897 choke me
27898 #endif
27899
27900 int
27901 main ()
27902 {
27903 return $ac_func ();
27904   ;
27905   return 0;
27906 }
27907 _ACEOF
27908 rm -f conftest.$ac_objext conftest$ac_exeext
27909 if { (ac_try="$ac_link"
27910 case "(($ac_try" in
27911   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27912   *) ac_try_echo=$ac_try;;
27913 esac
27914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27915 $as_echo "$ac_try_echo") >&5
27916   (eval "$ac_link") 2>conftest.er1
27917   ac_status=$?
27918   grep -v '^ *+' conftest.er1 >conftest.err
27919   rm -f conftest.er1
27920   cat conftest.err >&5
27921   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27922   (exit $ac_status); } && {
27923          test -z "$ac_c_werror_flag" ||
27924          test ! -s conftest.err
27925        } && test -s conftest$ac_exeext && {
27926          test "$cross_compiling" = yes ||
27927          $as_test_x conftest$ac_exeext
27928        }; then
27929   eval "$as_ac_var=yes"
27930 else
27931   $as_echo "$as_me: failed program was:" >&5
27932 sed 's/^/| /' conftest.$ac_ext >&5
27933
27934         eval "$as_ac_var=no"
27935 fi
27936
27937 rm -rf conftest.dSYM
27938 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
27939       conftest$ac_exeext conftest.$ac_ext
27940 fi
27941 ac_res=`eval 'as_val=${'$as_ac_var'}
27942                  $as_echo "$as_val"'`
27943                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27944 $as_echo "$ac_res" >&6; }
27945 as_val=`eval 'as_val=${'$as_ac_var'}
27946                  $as_echo "$as_val"'`
27947    if test "x$as_val" = x""yes; then
27948   cat >>confdefs.h <<_ACEOF
27949 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
27950 _ACEOF
27951
27952 fi
27953 done
27954
27955   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
27956 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
27957 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
27958   $as_echo_n "(cached) " >&6
27959 else
27960   cat >conftest.$ac_ext <<_ACEOF
27961 /* confdefs.h.  */
27962 _ACEOF
27963 cat confdefs.h >>conftest.$ac_ext
27964 cat >>conftest.$ac_ext <<_ACEOF
27965 /* end confdefs.h.  */
27966 $ac_includes_default
27967 int
27968 main ()
27969 {
27970 #ifndef getc_unlocked
27971   (void) getc_unlocked;
27972 #endif
27973
27974   ;
27975   return 0;
27976 }
27977 _ACEOF
27978 rm -f conftest.$ac_objext
27979 if { (ac_try="$ac_compile"
27980 case "(($ac_try" in
27981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27982   *) ac_try_echo=$ac_try;;
27983 esac
27984 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27985 $as_echo "$ac_try_echo") >&5
27986   (eval "$ac_compile") 2>conftest.er1
27987   ac_status=$?
27988   grep -v '^ *+' conftest.er1 >conftest.err
27989   rm -f conftest.er1
27990   cat conftest.err >&5
27991   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27992   (exit $ac_status); } && {
27993          test -z "$ac_c_werror_flag" ||
27994          test ! -s conftest.err
27995        } && test -s conftest.$ac_objext; then
27996   ac_cv_have_decl_getc_unlocked=yes
27997 else
27998   $as_echo "$as_me: failed program was:" >&5
27999 sed 's/^/| /' conftest.$ac_ext >&5
28000
28001         ac_cv_have_decl_getc_unlocked=no
28002 fi
28003
28004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28005 fi
28006 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
28007 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
28008 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
28009
28010 cat >>confdefs.h <<_ACEOF
28011 #define HAVE_DECL_GETC_UNLOCKED 1
28012 _ACEOF
28013
28014
28015 else
28016   cat >>confdefs.h <<_ACEOF
28017 #define HAVE_DECL_GETC_UNLOCKED 0
28018 _ACEOF
28019
28020
28021 fi
28022
28023
28024
28025   fi
28026
28027
28028   fi
28029
28030
28031
28032   GNULIB_GETLINE=1
28033
28034
28035 cat >>confdefs.h <<\_ACEOF
28036 #define GNULIB_GETLINE 1
28037 _ACEOF
28038
28039
28040
28041
28042
28043
28044
28045
28046
28047
28048 cat >>confdefs.h <<\_ACEOF
28049 #define GNULIB_GETOPT_GNU 1
28050 _ACEOF
28051
28052
28053
28054
28055
28056
28057
28058   if test -n "$gl_replace_getopt"; then
28059
28060
28061
28062   GETOPT_H=getopt.h
28063
28064 cat >>confdefs.h <<\_ACEOF
28065 #define __GETOPT_PREFIX rpl_
28066 _ACEOF
28067
28068
28069
28070     GNULIB_UNISTD_H_GETOPT=1
28071
28072
28073
28074
28075
28076
28077
28078
28079   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
28080
28081
28082
28083
28084
28085
28086
28087
28088
28089   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
28090
28091
28092
28093
28094
28095
28096
28097
28098
28099 fi
28100
28101
28102
28103
28104
28105
28106
28107 for ac_func in getpagesize
28108 do
28109 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28110 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28111 $as_echo_n "checking for $ac_func... " >&6; }
28112 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28113   $as_echo_n "(cached) " >&6
28114 else
28115   cat >conftest.$ac_ext <<_ACEOF
28116 /* confdefs.h.  */
28117 _ACEOF
28118 cat confdefs.h >>conftest.$ac_ext
28119 cat >>conftest.$ac_ext <<_ACEOF
28120 /* end confdefs.h.  */
28121 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28122    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28123 #define $ac_func innocuous_$ac_func
28124
28125 /* System header to define __stub macros and hopefully few prototypes,
28126     which can conflict with char $ac_func (); below.
28127     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28128     <limits.h> exists even on freestanding compilers.  */
28129
28130 #ifdef __STDC__
28131 # include <limits.h>
28132 #else
28133 # include <assert.h>
28134 #endif
28135
28136 #undef $ac_func
28137
28138 /* Override any GCC internal prototype to avoid an error.
28139    Use char because int might match the return type of a GCC
28140    builtin and then its argument prototype would still apply.  */
28141 #ifdef __cplusplus
28142 extern "C"
28143 #endif
28144 char $ac_func ();
28145 /* The GNU C library defines this for functions which it implements
28146     to always fail with ENOSYS.  Some functions are actually named
28147     something starting with __ and the normal name is an alias.  */
28148 #if defined __stub_$ac_func || defined __stub___$ac_func
28149 choke me
28150 #endif
28151
28152 int
28153 main ()
28154 {
28155 return $ac_func ();
28156   ;
28157   return 0;
28158 }
28159 _ACEOF
28160 rm -f conftest.$ac_objext conftest$ac_exeext
28161 if { (ac_try="$ac_link"
28162 case "(($ac_try" in
28163   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28164   *) ac_try_echo=$ac_try;;
28165 esac
28166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28167 $as_echo "$ac_try_echo") >&5
28168   (eval "$ac_link") 2>conftest.er1
28169   ac_status=$?
28170   grep -v '^ *+' conftest.er1 >conftest.err
28171   rm -f conftest.er1
28172   cat conftest.err >&5
28173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28174   (exit $ac_status); } && {
28175          test -z "$ac_c_werror_flag" ||
28176          test ! -s conftest.err
28177        } && test -s conftest$ac_exeext && {
28178          test "$cross_compiling" = yes ||
28179          $as_test_x conftest$ac_exeext
28180        }; then
28181   eval "$as_ac_var=yes"
28182 else
28183   $as_echo "$as_me: failed program was:" >&5
28184 sed 's/^/| /' conftest.$ac_ext >&5
28185
28186         eval "$as_ac_var=no"
28187 fi
28188
28189 rm -rf conftest.dSYM
28190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28191       conftest$ac_exeext conftest.$ac_ext
28192 fi
28193 ac_res=`eval 'as_val=${'$as_ac_var'}
28194                  $as_echo "$as_val"'`
28195                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28196 $as_echo "$ac_res" >&6; }
28197 as_val=`eval 'as_val=${'$as_ac_var'}
28198                  $as_echo "$as_val"'`
28199    if test "x$as_val" = x""yes; then
28200   cat >>confdefs.h <<_ACEOF
28201 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28202 _ACEOF
28203
28204 fi
28205 done
28206
28207   if test $ac_cv_func_getpagesize = no; then
28208     HAVE_GETPAGESIZE=0
28209
28210 for ac_header in OS.h
28211 do
28212 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28214   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28215 $as_echo_n "checking for $ac_header... " >&6; }
28216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28217   $as_echo_n "(cached) " >&6
28218 fi
28219 ac_res=`eval 'as_val=${'$as_ac_Header'}
28220                  $as_echo "$as_val"'`
28221                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28222 $as_echo "$ac_res" >&6; }
28223 else
28224   # Is the header compilable?
28225 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28226 $as_echo_n "checking $ac_header usability... " >&6; }
28227 cat >conftest.$ac_ext <<_ACEOF
28228 /* confdefs.h.  */
28229 _ACEOF
28230 cat confdefs.h >>conftest.$ac_ext
28231 cat >>conftest.$ac_ext <<_ACEOF
28232 /* end confdefs.h.  */
28233 $ac_includes_default
28234 #include <$ac_header>
28235 _ACEOF
28236 rm -f conftest.$ac_objext
28237 if { (ac_try="$ac_compile"
28238 case "(($ac_try" in
28239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28240   *) ac_try_echo=$ac_try;;
28241 esac
28242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28243 $as_echo "$ac_try_echo") >&5
28244   (eval "$ac_compile") 2>conftest.er1
28245   ac_status=$?
28246   grep -v '^ *+' conftest.er1 >conftest.err
28247   rm -f conftest.er1
28248   cat conftest.err >&5
28249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28250   (exit $ac_status); } && {
28251          test -z "$ac_c_werror_flag" ||
28252          test ! -s conftest.err
28253        } && test -s conftest.$ac_objext; then
28254   ac_header_compiler=yes
28255 else
28256   $as_echo "$as_me: failed program was:" >&5
28257 sed 's/^/| /' conftest.$ac_ext >&5
28258
28259         ac_header_compiler=no
28260 fi
28261
28262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28263 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28264 $as_echo "$ac_header_compiler" >&6; }
28265
28266 # Is the header present?
28267 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28268 $as_echo_n "checking $ac_header presence... " >&6; }
28269 cat >conftest.$ac_ext <<_ACEOF
28270 /* confdefs.h.  */
28271 _ACEOF
28272 cat confdefs.h >>conftest.$ac_ext
28273 cat >>conftest.$ac_ext <<_ACEOF
28274 /* end confdefs.h.  */
28275 #include <$ac_header>
28276 _ACEOF
28277 if { (ac_try="$ac_cpp conftest.$ac_ext"
28278 case "(($ac_try" in
28279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28280   *) ac_try_echo=$ac_try;;
28281 esac
28282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28283 $as_echo "$ac_try_echo") >&5
28284   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28285   ac_status=$?
28286   grep -v '^ *+' conftest.er1 >conftest.err
28287   rm -f conftest.er1
28288   cat conftest.err >&5
28289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28290   (exit $ac_status); } >/dev/null && {
28291          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28292          test ! -s conftest.err
28293        }; then
28294   ac_header_preproc=yes
28295 else
28296   $as_echo "$as_me: failed program was:" >&5
28297 sed 's/^/| /' conftest.$ac_ext >&5
28298
28299   ac_header_preproc=no
28300 fi
28301
28302 rm -f conftest.err conftest.$ac_ext
28303 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28304 $as_echo "$ac_header_preproc" >&6; }
28305
28306 # So?  What about this header?
28307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28308   yes:no: )
28309     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28310 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28311     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28312 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28313     ac_header_preproc=yes
28314     ;;
28315   no:yes:* )
28316     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28317 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28318     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28319 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28320     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28321 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28322     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28323 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28324     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28325 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28326     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28327 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28328     ( cat <<\_ASBOX
28329 ## ------------------------------ ##
28330 ## Report this to bug-tar@gnu.org ##
28331 ## ------------------------------ ##
28332 _ASBOX
28333      ) | sed "s/^/$as_me: WARNING:     /" >&2
28334     ;;
28335 esac
28336 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28337 $as_echo_n "checking for $ac_header... " >&6; }
28338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28339   $as_echo_n "(cached) " >&6
28340 else
28341   eval "$as_ac_Header=\$ac_header_preproc"
28342 fi
28343 ac_res=`eval 'as_val=${'$as_ac_Header'}
28344                  $as_echo "$as_val"'`
28345                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28346 $as_echo "$ac_res" >&6; }
28347
28348 fi
28349 as_val=`eval 'as_val=${'$as_ac_Header'}
28350                  $as_echo "$as_val"'`
28351    if test "x$as_val" = x""yes; then
28352   cat >>confdefs.h <<_ACEOF
28353 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28354 _ACEOF
28355
28356 fi
28357
28358 done
28359
28360     if test $ac_cv_header_OS_h = yes; then
28361       HAVE_OS_H=1
28362     fi
28363
28364 for ac_header in sys/param.h
28365 do
28366 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28367 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28368   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28369 $as_echo_n "checking for $ac_header... " >&6; }
28370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28371   $as_echo_n "(cached) " >&6
28372 fi
28373 ac_res=`eval 'as_val=${'$as_ac_Header'}
28374                  $as_echo "$as_val"'`
28375                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28376 $as_echo "$ac_res" >&6; }
28377 else
28378   # Is the header compilable?
28379 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28380 $as_echo_n "checking $ac_header usability... " >&6; }
28381 cat >conftest.$ac_ext <<_ACEOF
28382 /* confdefs.h.  */
28383 _ACEOF
28384 cat confdefs.h >>conftest.$ac_ext
28385 cat >>conftest.$ac_ext <<_ACEOF
28386 /* end confdefs.h.  */
28387 $ac_includes_default
28388 #include <$ac_header>
28389 _ACEOF
28390 rm -f conftest.$ac_objext
28391 if { (ac_try="$ac_compile"
28392 case "(($ac_try" in
28393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28394   *) ac_try_echo=$ac_try;;
28395 esac
28396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28397 $as_echo "$ac_try_echo") >&5
28398   (eval "$ac_compile") 2>conftest.er1
28399   ac_status=$?
28400   grep -v '^ *+' conftest.er1 >conftest.err
28401   rm -f conftest.er1
28402   cat conftest.err >&5
28403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28404   (exit $ac_status); } && {
28405          test -z "$ac_c_werror_flag" ||
28406          test ! -s conftest.err
28407        } && test -s conftest.$ac_objext; then
28408   ac_header_compiler=yes
28409 else
28410   $as_echo "$as_me: failed program was:" >&5
28411 sed 's/^/| /' conftest.$ac_ext >&5
28412
28413         ac_header_compiler=no
28414 fi
28415
28416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28417 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28418 $as_echo "$ac_header_compiler" >&6; }
28419
28420 # Is the header present?
28421 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28422 $as_echo_n "checking $ac_header presence... " >&6; }
28423 cat >conftest.$ac_ext <<_ACEOF
28424 /* confdefs.h.  */
28425 _ACEOF
28426 cat confdefs.h >>conftest.$ac_ext
28427 cat >>conftest.$ac_ext <<_ACEOF
28428 /* end confdefs.h.  */
28429 #include <$ac_header>
28430 _ACEOF
28431 if { (ac_try="$ac_cpp conftest.$ac_ext"
28432 case "(($ac_try" in
28433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28434   *) ac_try_echo=$ac_try;;
28435 esac
28436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28437 $as_echo "$ac_try_echo") >&5
28438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28439   ac_status=$?
28440   grep -v '^ *+' conftest.er1 >conftest.err
28441   rm -f conftest.er1
28442   cat conftest.err >&5
28443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28444   (exit $ac_status); } >/dev/null && {
28445          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28446          test ! -s conftest.err
28447        }; then
28448   ac_header_preproc=yes
28449 else
28450   $as_echo "$as_me: failed program was:" >&5
28451 sed 's/^/| /' conftest.$ac_ext >&5
28452
28453   ac_header_preproc=no
28454 fi
28455
28456 rm -f conftest.err conftest.$ac_ext
28457 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28458 $as_echo "$ac_header_preproc" >&6; }
28459
28460 # So?  What about this header?
28461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28462   yes:no: )
28463     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28464 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28465     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28466 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28467     ac_header_preproc=yes
28468     ;;
28469   no:yes:* )
28470     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28471 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28472     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28473 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28474     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28475 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28476     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28477 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28478     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28479 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28480     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28481 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28482     ( cat <<\_ASBOX
28483 ## ------------------------------ ##
28484 ## Report this to bug-tar@gnu.org ##
28485 ## ------------------------------ ##
28486 _ASBOX
28487      ) | sed "s/^/$as_me: WARNING:     /" >&2
28488     ;;
28489 esac
28490 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28491 $as_echo_n "checking for $ac_header... " >&6; }
28492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28493   $as_echo_n "(cached) " >&6
28494 else
28495   eval "$as_ac_Header=\$ac_header_preproc"
28496 fi
28497 ac_res=`eval 'as_val=${'$as_ac_Header'}
28498                  $as_echo "$as_val"'`
28499                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28500 $as_echo "$ac_res" >&6; }
28501
28502 fi
28503 as_val=`eval 'as_val=${'$as_ac_Header'}
28504                  $as_echo "$as_val"'`
28505    if test "x$as_val" = x""yes; then
28506   cat >>confdefs.h <<_ACEOF
28507 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28508 _ACEOF
28509
28510 fi
28511
28512 done
28513
28514     if test $ac_cv_header_sys_param_h = yes; then
28515       HAVE_SYS_PARAM_H=1
28516     fi
28517   fi
28518   case "$host_os" in
28519     mingw*)
28520       REPLACE_GETPAGESIZE=1
28521
28522
28523
28524
28525
28526
28527
28528
28529   gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
28530
28531       ;;
28532   esac
28533
28534
28535
28536   GNULIB_GETPAGESIZE=1
28537
28538
28539 cat >>confdefs.h <<\_ACEOF
28540 #define GNULIB_GETPAGESIZE 1
28541 _ACEOF
28542
28543
28544
28545
28546
28547
28548
28549
28550
28551
28552
28553
28554
28555
28556
28557   gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
28558
28559
28560
28561
28562
28563
28564
28565
28566
28567
28568
28569
28570
28571
28572
28573
28574
28575
28576
28577
28578
28579
28580
28581
28582   gl_gettimeofday_timezone=void
28583   if test $ac_cv_func_gettimeofday != yes; then
28584     HAVE_GETTIMEOFDAY=0
28585
28586
28587
28588
28589
28590
28591
28592
28593   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
28594
28595
28596
28597 for ac_header in sys/timeb.h
28598 do
28599 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28601   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28602 $as_echo_n "checking for $ac_header... " >&6; }
28603 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28604   $as_echo_n "(cached) " >&6
28605 fi
28606 ac_res=`eval 'as_val=${'$as_ac_Header'}
28607                  $as_echo "$as_val"'`
28608                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28609 $as_echo "$ac_res" >&6; }
28610 else
28611   # Is the header compilable?
28612 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28613 $as_echo_n "checking $ac_header usability... " >&6; }
28614 cat >conftest.$ac_ext <<_ACEOF
28615 /* confdefs.h.  */
28616 _ACEOF
28617 cat confdefs.h >>conftest.$ac_ext
28618 cat >>conftest.$ac_ext <<_ACEOF
28619 /* end confdefs.h.  */
28620 $ac_includes_default
28621 #include <$ac_header>
28622 _ACEOF
28623 rm -f conftest.$ac_objext
28624 if { (ac_try="$ac_compile"
28625 case "(($ac_try" in
28626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28627   *) ac_try_echo=$ac_try;;
28628 esac
28629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28630 $as_echo "$ac_try_echo") >&5
28631   (eval "$ac_compile") 2>conftest.er1
28632   ac_status=$?
28633   grep -v '^ *+' conftest.er1 >conftest.err
28634   rm -f conftest.er1
28635   cat conftest.err >&5
28636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28637   (exit $ac_status); } && {
28638          test -z "$ac_c_werror_flag" ||
28639          test ! -s conftest.err
28640        } && test -s conftest.$ac_objext; then
28641   ac_header_compiler=yes
28642 else
28643   $as_echo "$as_me: failed program was:" >&5
28644 sed 's/^/| /' conftest.$ac_ext >&5
28645
28646         ac_header_compiler=no
28647 fi
28648
28649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28650 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28651 $as_echo "$ac_header_compiler" >&6; }
28652
28653 # Is the header present?
28654 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
28655 $as_echo_n "checking $ac_header presence... " >&6; }
28656 cat >conftest.$ac_ext <<_ACEOF
28657 /* confdefs.h.  */
28658 _ACEOF
28659 cat confdefs.h >>conftest.$ac_ext
28660 cat >>conftest.$ac_ext <<_ACEOF
28661 /* end confdefs.h.  */
28662 #include <$ac_header>
28663 _ACEOF
28664 if { (ac_try="$ac_cpp conftest.$ac_ext"
28665 case "(($ac_try" in
28666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28667   *) ac_try_echo=$ac_try;;
28668 esac
28669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28670 $as_echo "$ac_try_echo") >&5
28671   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
28672   ac_status=$?
28673   grep -v '^ *+' conftest.er1 >conftest.err
28674   rm -f conftest.er1
28675   cat conftest.err >&5
28676   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28677   (exit $ac_status); } >/dev/null && {
28678          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
28679          test ! -s conftest.err
28680        }; then
28681   ac_header_preproc=yes
28682 else
28683   $as_echo "$as_me: failed program was:" >&5
28684 sed 's/^/| /' conftest.$ac_ext >&5
28685
28686   ac_header_preproc=no
28687 fi
28688
28689 rm -f conftest.err conftest.$ac_ext
28690 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28691 $as_echo "$ac_header_preproc" >&6; }
28692
28693 # So?  What about this header?
28694 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
28695   yes:no: )
28696     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28697 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28698     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28699 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28700     ac_header_preproc=yes
28701     ;;
28702   no:yes:* )
28703     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28704 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28705     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
28706 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
28707     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28708 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28709     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
28710 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
28711     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28712 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28713     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28714 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28715     ( cat <<\_ASBOX
28716 ## ------------------------------ ##
28717 ## Report this to bug-tar@gnu.org ##
28718 ## ------------------------------ ##
28719 _ASBOX
28720      ) | sed "s/^/$as_me: WARNING:     /" >&2
28721     ;;
28722 esac
28723 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28724 $as_echo_n "checking for $ac_header... " >&6; }
28725 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28726   $as_echo_n "(cached) " >&6
28727 else
28728   eval "$as_ac_Header=\$ac_header_preproc"
28729 fi
28730 ac_res=`eval 'as_val=${'$as_ac_Header'}
28731                  $as_echo "$as_val"'`
28732                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28733 $as_echo "$ac_res" >&6; }
28734
28735 fi
28736 as_val=`eval 'as_val=${'$as_ac_Header'}
28737                  $as_echo "$as_val"'`
28738    if test "x$as_val" = x""yes; then
28739   cat >>confdefs.h <<_ACEOF
28740 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28741 _ACEOF
28742
28743 fi
28744
28745 done
28746
28747
28748 for ac_func in _ftime
28749 do
28750 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28751 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28752 $as_echo_n "checking for $ac_func... " >&6; }
28753 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28754   $as_echo_n "(cached) " >&6
28755 else
28756   cat >conftest.$ac_ext <<_ACEOF
28757 /* confdefs.h.  */
28758 _ACEOF
28759 cat confdefs.h >>conftest.$ac_ext
28760 cat >>conftest.$ac_ext <<_ACEOF
28761 /* end confdefs.h.  */
28762 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28763    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28764 #define $ac_func innocuous_$ac_func
28765
28766 /* System header to define __stub macros and hopefully few prototypes,
28767     which can conflict with char $ac_func (); below.
28768     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28769     <limits.h> exists even on freestanding compilers.  */
28770
28771 #ifdef __STDC__
28772 # include <limits.h>
28773 #else
28774 # include <assert.h>
28775 #endif
28776
28777 #undef $ac_func
28778
28779 /* Override any GCC internal prototype to avoid an error.
28780    Use char because int might match the return type of a GCC
28781    builtin and then its argument prototype would still apply.  */
28782 #ifdef __cplusplus
28783 extern "C"
28784 #endif
28785 char $ac_func ();
28786 /* The GNU C library defines this for functions which it implements
28787     to always fail with ENOSYS.  Some functions are actually named
28788     something starting with __ and the normal name is an alias.  */
28789 #if defined __stub_$ac_func || defined __stub___$ac_func
28790 choke me
28791 #endif
28792
28793 int
28794 main ()
28795 {
28796 return $ac_func ();
28797   ;
28798   return 0;
28799 }
28800 _ACEOF
28801 rm -f conftest.$ac_objext conftest$ac_exeext
28802 if { (ac_try="$ac_link"
28803 case "(($ac_try" in
28804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28805   *) ac_try_echo=$ac_try;;
28806 esac
28807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28808 $as_echo "$ac_try_echo") >&5
28809   (eval "$ac_link") 2>conftest.er1
28810   ac_status=$?
28811   grep -v '^ *+' conftest.er1 >conftest.err
28812   rm -f conftest.er1
28813   cat conftest.err >&5
28814   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28815   (exit $ac_status); } && {
28816          test -z "$ac_c_werror_flag" ||
28817          test ! -s conftest.err
28818        } && test -s conftest$ac_exeext && {
28819          test "$cross_compiling" = yes ||
28820          $as_test_x conftest$ac_exeext
28821        }; then
28822   eval "$as_ac_var=yes"
28823 else
28824   $as_echo "$as_me: failed program was:" >&5
28825 sed 's/^/| /' conftest.$ac_ext >&5
28826
28827         eval "$as_ac_var=no"
28828 fi
28829
28830 rm -rf conftest.dSYM
28831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28832       conftest$ac_exeext conftest.$ac_ext
28833 fi
28834 ac_res=`eval 'as_val=${'$as_ac_var'}
28835                  $as_echo "$as_val"'`
28836                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28837 $as_echo "$ac_res" >&6; }
28838 as_val=`eval 'as_val=${'$as_ac_var'}
28839                  $as_echo "$as_val"'`
28840    if test "x$as_val" = x""yes; then
28841   cat >>confdefs.h <<_ACEOF
28842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
28843 _ACEOF
28844
28845 fi
28846 done
28847
28848
28849   else
28850
28851
28852
28853  { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
28854 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
28855 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
28856   $as_echo_n "(cached) " >&6
28857 else
28858   if test "$cross_compiling" = yes; then
28859        gl_cv_func_gettimeofday_clobber=yes
28860 else
28861   cat >conftest.$ac_ext <<_ACEOF
28862 /* confdefs.h.  */
28863 _ACEOF
28864 cat confdefs.h >>conftest.$ac_ext
28865 cat >>conftest.$ac_ext <<_ACEOF
28866 /* end confdefs.h.  */
28867 #include <string.h>
28868           #include <sys/time.h>
28869           #include <time.h>
28870           #include <stdlib.h>
28871
28872 int
28873 main ()
28874 {
28875
28876           time_t t = 0;
28877           struct tm *lt;
28878           struct tm saved_lt;
28879           struct timeval tv;
28880           lt = localtime (&t);
28881           saved_lt = *lt;
28882           gettimeofday (&tv, NULL);
28883           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
28884
28885   ;
28886   return 0;
28887 }
28888 _ACEOF
28889 rm -f conftest$ac_exeext
28890 if { (ac_try="$ac_link"
28891 case "(($ac_try" in
28892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28893   *) ac_try_echo=$ac_try;;
28894 esac
28895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28896 $as_echo "$ac_try_echo") >&5
28897   (eval "$ac_link") 2>&5
28898   ac_status=$?
28899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28900   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28901   { (case "(($ac_try" in
28902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28903   *) ac_try_echo=$ac_try;;
28904 esac
28905 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28906 $as_echo "$ac_try_echo") >&5
28907   (eval "$ac_try") 2>&5
28908   ac_status=$?
28909   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28910   (exit $ac_status); }; }; then
28911   gl_cv_func_gettimeofday_clobber=no
28912 else
28913   $as_echo "$as_me: program exited with status $ac_status" >&5
28914 $as_echo "$as_me: failed program was:" >&5
28915 sed 's/^/| /' conftest.$ac_ext >&5
28916
28917 ( exit $ac_status )
28918 gl_cv_func_gettimeofday_clobber=yes
28919 fi
28920 rm -rf conftest.dSYM
28921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28922 fi
28923
28924
28925 fi
28926 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
28927 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
28928
28929  if test $gl_cv_func_gettimeofday_clobber = yes; then
28930    REPLACE_GETTIMEOFDAY=1
28931
28932
28933
28934
28935
28936
28937
28938
28939
28940   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
28941
28942
28943
28944 for ac_header in sys/timeb.h
28945 do
28946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28948   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
28949 $as_echo_n "checking for $ac_header... " >&6; }
28950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
28951   $as_echo_n "(cached) " >&6
28952 fi
28953 ac_res=`eval 'as_val=${'$as_ac_Header'}
28954                  $as_echo "$as_val"'`
28955                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28956 $as_echo "$ac_res" >&6; }
28957 else
28958   # Is the header compilable?
28959 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
28960 $as_echo_n "checking $ac_header usability... " >&6; }
28961 cat >conftest.$ac_ext <<_ACEOF
28962 /* confdefs.h.  */
28963 _ACEOF
28964 cat confdefs.h >>conftest.$ac_ext
28965 cat >>conftest.$ac_ext <<_ACEOF
28966 /* end confdefs.h.  */
28967 $ac_includes_default
28968 #include <$ac_header>
28969 _ACEOF
28970 rm -f conftest.$ac_objext
28971 if { (ac_try="$ac_compile"
28972 case "(($ac_try" in
28973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28974   *) ac_try_echo=$ac_try;;
28975 esac
28976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28977 $as_echo "$ac_try_echo") >&5
28978   (eval "$ac_compile") 2>conftest.er1
28979   ac_status=$?
28980   grep -v '^ *+' conftest.er1 >conftest.err
28981   rm -f conftest.er1
28982   cat conftest.err >&5
28983   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28984   (exit $ac_status); } && {
28985          test -z "$ac_c_werror_flag" ||
28986          test ! -s conftest.err
28987        } && test -s conftest.$ac_objext; then
28988   ac_header_compiler=yes
28989 else
28990   $as_echo "$as_me: failed program was:" >&5
28991 sed 's/^/| /' conftest.$ac_ext >&5
28992
28993         ac_header_compiler=no
28994 fi
28995
28996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28997 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28998 $as_echo "$ac_header_compiler" >&6; }
28999
29000 # Is the header present?
29001 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29002 $as_echo_n "checking $ac_header presence... " >&6; }
29003 cat >conftest.$ac_ext <<_ACEOF
29004 /* confdefs.h.  */
29005 _ACEOF
29006 cat confdefs.h >>conftest.$ac_ext
29007 cat >>conftest.$ac_ext <<_ACEOF
29008 /* end confdefs.h.  */
29009 #include <$ac_header>
29010 _ACEOF
29011 if { (ac_try="$ac_cpp conftest.$ac_ext"
29012 case "(($ac_try" in
29013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29014   *) ac_try_echo=$ac_try;;
29015 esac
29016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29017 $as_echo "$ac_try_echo") >&5
29018   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29019   ac_status=$?
29020   grep -v '^ *+' conftest.er1 >conftest.err
29021   rm -f conftest.er1
29022   cat conftest.err >&5
29023   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29024   (exit $ac_status); } >/dev/null && {
29025          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29026          test ! -s conftest.err
29027        }; then
29028   ac_header_preproc=yes
29029 else
29030   $as_echo "$as_me: failed program was:" >&5
29031 sed 's/^/| /' conftest.$ac_ext >&5
29032
29033   ac_header_preproc=no
29034 fi
29035
29036 rm -f conftest.err conftest.$ac_ext
29037 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29038 $as_echo "$ac_header_preproc" >&6; }
29039
29040 # So?  What about this header?
29041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29042   yes:no: )
29043     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29044 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29045     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29046 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29047     ac_header_preproc=yes
29048     ;;
29049   no:yes:* )
29050     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29051 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29052     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29053 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29054     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29055 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29056     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29057 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29058     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29059 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29060     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29061 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29062     ( cat <<\_ASBOX
29063 ## ------------------------------ ##
29064 ## Report this to bug-tar@gnu.org ##
29065 ## ------------------------------ ##
29066 _ASBOX
29067      ) | sed "s/^/$as_me: WARNING:     /" >&2
29068     ;;
29069 esac
29070 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29071 $as_echo_n "checking for $ac_header... " >&6; }
29072 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29073   $as_echo_n "(cached) " >&6
29074 else
29075   eval "$as_ac_Header=\$ac_header_preproc"
29076 fi
29077 ac_res=`eval 'as_val=${'$as_ac_Header'}
29078                  $as_echo "$as_val"'`
29079                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29080 $as_echo "$ac_res" >&6; }
29081
29082 fi
29083 as_val=`eval 'as_val=${'$as_ac_Header'}
29084                  $as_echo "$as_val"'`
29085    if test "x$as_val" = x""yes; then
29086   cat >>confdefs.h <<_ACEOF
29087 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29088 _ACEOF
29089
29090 fi
29091
29092 done
29093
29094
29095 for ac_func in _ftime
29096 do
29097 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29098 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29099 $as_echo_n "checking for $ac_func... " >&6; }
29100 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29101   $as_echo_n "(cached) " >&6
29102 else
29103   cat >conftest.$ac_ext <<_ACEOF
29104 /* confdefs.h.  */
29105 _ACEOF
29106 cat confdefs.h >>conftest.$ac_ext
29107 cat >>conftest.$ac_ext <<_ACEOF
29108 /* end confdefs.h.  */
29109 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29110    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29111 #define $ac_func innocuous_$ac_func
29112
29113 /* System header to define __stub macros and hopefully few prototypes,
29114     which can conflict with char $ac_func (); below.
29115     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29116     <limits.h> exists even on freestanding compilers.  */
29117
29118 #ifdef __STDC__
29119 # include <limits.h>
29120 #else
29121 # include <assert.h>
29122 #endif
29123
29124 #undef $ac_func
29125
29126 /* Override any GCC internal prototype to avoid an error.
29127    Use char because int might match the return type of a GCC
29128    builtin and then its argument prototype would still apply.  */
29129 #ifdef __cplusplus
29130 extern "C"
29131 #endif
29132 char $ac_func ();
29133 /* The GNU C library defines this for functions which it implements
29134     to always fail with ENOSYS.  Some functions are actually named
29135     something starting with __ and the normal name is an alias.  */
29136 #if defined __stub_$ac_func || defined __stub___$ac_func
29137 choke me
29138 #endif
29139
29140 int
29141 main ()
29142 {
29143 return $ac_func ();
29144   ;
29145   return 0;
29146 }
29147 _ACEOF
29148 rm -f conftest.$ac_objext conftest$ac_exeext
29149 if { (ac_try="$ac_link"
29150 case "(($ac_try" in
29151   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29152   *) ac_try_echo=$ac_try;;
29153 esac
29154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29155 $as_echo "$ac_try_echo") >&5
29156   (eval "$ac_link") 2>conftest.er1
29157   ac_status=$?
29158   grep -v '^ *+' conftest.er1 >conftest.err
29159   rm -f conftest.er1
29160   cat conftest.err >&5
29161   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29162   (exit $ac_status); } && {
29163          test -z "$ac_c_werror_flag" ||
29164          test ! -s conftest.err
29165        } && test -s conftest$ac_exeext && {
29166          test "$cross_compiling" = yes ||
29167          $as_test_x conftest$ac_exeext
29168        }; then
29169   eval "$as_ac_var=yes"
29170 else
29171   $as_echo "$as_me: failed program was:" >&5
29172 sed 's/^/| /' conftest.$ac_ext >&5
29173
29174         eval "$as_ac_var=no"
29175 fi
29176
29177 rm -rf conftest.dSYM
29178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29179       conftest$ac_exeext conftest.$ac_ext
29180 fi
29181 ac_res=`eval 'as_val=${'$as_ac_var'}
29182                  $as_echo "$as_val"'`
29183                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29184 $as_echo "$ac_res" >&6; }
29185 as_val=`eval 'as_val=${'$as_ac_var'}
29186                  $as_echo "$as_val"'`
29187    if test "x$as_val" = x""yes; then
29188   cat >>confdefs.h <<_ACEOF
29189 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29190 _ACEOF
29191
29192 fi
29193 done
29194
29195
29196
29197 cat >>confdefs.h <<\_ACEOF
29198 #define gmtime rpl_gmtime
29199 _ACEOF
29200
29201
29202 cat >>confdefs.h <<\_ACEOF
29203 #define localtime rpl_localtime
29204 _ACEOF
29205
29206
29207
29208 cat >>confdefs.h <<\_ACEOF
29209 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
29210 _ACEOF
29211
29212  fi
29213
29214     { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
29215 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
29216 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
29217   $as_echo_n "(cached) " >&6
29218 else
29219   cat >conftest.$ac_ext <<_ACEOF
29220 /* confdefs.h.  */
29221 _ACEOF
29222 cat confdefs.h >>conftest.$ac_ext
29223 cat >>conftest.$ac_ext <<_ACEOF
29224 /* end confdefs.h.  */
29225 #include <sys/time.h>
29226               struct timeval c;
29227               int gettimeofday (struct timeval *restrict, void *restrict);
29228
29229 int
29230 main ()
29231 {
29232 /* glibc uses struct timezone * rather than the POSIX void *
29233                  if _GNU_SOURCE is defined.  However, since the only portable
29234                  use of gettimeofday uses NULL as the second parameter, and
29235                  since the glibc definition is actually more typesafe, it is
29236                  not worth wrapping this to get a compliant signature.  */
29237               int (*f) (struct timeval *restrict, void *restrict)
29238                 = gettimeofday;
29239               int x = f (&c, 0);
29240               return !(x | c.tv_sec | c.tv_usec);
29241
29242   ;
29243   return 0;
29244 }
29245 _ACEOF
29246 rm -f conftest.$ac_objext
29247 if { (ac_try="$ac_compile"
29248 case "(($ac_try" in
29249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29250   *) ac_try_echo=$ac_try;;
29251 esac
29252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29253 $as_echo "$ac_try_echo") >&5
29254   (eval "$ac_compile") 2>conftest.er1
29255   ac_status=$?
29256   grep -v '^ *+' conftest.er1 >conftest.err
29257   rm -f conftest.er1
29258   cat conftest.err >&5
29259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29260   (exit $ac_status); } && {
29261          test -z "$ac_c_werror_flag" ||
29262          test ! -s conftest.err
29263        } && test -s conftest.$ac_objext; then
29264   gl_cv_func_gettimeofday_posix_signature=yes
29265 else
29266   $as_echo "$as_me: failed program was:" >&5
29267 sed 's/^/| /' conftest.$ac_ext >&5
29268
29269         cat >conftest.$ac_ext <<_ACEOF
29270 /* confdefs.h.  */
29271 _ACEOF
29272 cat confdefs.h >>conftest.$ac_ext
29273 cat >>conftest.$ac_ext <<_ACEOF
29274 /* end confdefs.h.  */
29275 #include <sys/time.h>
29276 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
29277
29278 int
29279 main ()
29280 {
29281
29282   ;
29283   return 0;
29284 }
29285 _ACEOF
29286 rm -f conftest.$ac_objext
29287 if { (ac_try="$ac_compile"
29288 case "(($ac_try" in
29289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29290   *) ac_try_echo=$ac_try;;
29291 esac
29292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29293 $as_echo "$ac_try_echo") >&5
29294   (eval "$ac_compile") 2>conftest.er1
29295   ac_status=$?
29296   grep -v '^ *+' conftest.er1 >conftest.err
29297   rm -f conftest.er1
29298   cat conftest.err >&5
29299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29300   (exit $ac_status); } && {
29301          test -z "$ac_c_werror_flag" ||
29302          test ! -s conftest.err
29303        } && test -s conftest.$ac_objext; then
29304   gl_cv_func_gettimeofday_posix_signature=almost
29305 else
29306   $as_echo "$as_me: failed program was:" >&5
29307 sed 's/^/| /' conftest.$ac_ext >&5
29308
29309         gl_cv_func_gettimeofday_posix_signature=no
29310 fi
29311
29312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29313 fi
29314
29315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29316 fi
29317 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
29318 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
29319     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
29320       gl_gettimeofday_timezone='struct timezone'
29321     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
29322       REPLACE_GETTIMEOFDAY=1
29323
29324
29325
29326
29327
29328
29329
29330
29331   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
29332
29333
29334
29335 for ac_header in sys/timeb.h
29336 do
29337 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29338 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29339   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29340 $as_echo_n "checking for $ac_header... " >&6; }
29341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29342   $as_echo_n "(cached) " >&6
29343 fi
29344 ac_res=`eval 'as_val=${'$as_ac_Header'}
29345                  $as_echo "$as_val"'`
29346                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29347 $as_echo "$ac_res" >&6; }
29348 else
29349   # Is the header compilable?
29350 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
29351 $as_echo_n "checking $ac_header usability... " >&6; }
29352 cat >conftest.$ac_ext <<_ACEOF
29353 /* confdefs.h.  */
29354 _ACEOF
29355 cat confdefs.h >>conftest.$ac_ext
29356 cat >>conftest.$ac_ext <<_ACEOF
29357 /* end confdefs.h.  */
29358 $ac_includes_default
29359 #include <$ac_header>
29360 _ACEOF
29361 rm -f conftest.$ac_objext
29362 if { (ac_try="$ac_compile"
29363 case "(($ac_try" in
29364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29365   *) ac_try_echo=$ac_try;;
29366 esac
29367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29368 $as_echo "$ac_try_echo") >&5
29369   (eval "$ac_compile") 2>conftest.er1
29370   ac_status=$?
29371   grep -v '^ *+' conftest.er1 >conftest.err
29372   rm -f conftest.er1
29373   cat conftest.err >&5
29374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29375   (exit $ac_status); } && {
29376          test -z "$ac_c_werror_flag" ||
29377          test ! -s conftest.err
29378        } && test -s conftest.$ac_objext; then
29379   ac_header_compiler=yes
29380 else
29381   $as_echo "$as_me: failed program was:" >&5
29382 sed 's/^/| /' conftest.$ac_ext >&5
29383
29384         ac_header_compiler=no
29385 fi
29386
29387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29388 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29389 $as_echo "$ac_header_compiler" >&6; }
29390
29391 # Is the header present?
29392 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
29393 $as_echo_n "checking $ac_header presence... " >&6; }
29394 cat >conftest.$ac_ext <<_ACEOF
29395 /* confdefs.h.  */
29396 _ACEOF
29397 cat confdefs.h >>conftest.$ac_ext
29398 cat >>conftest.$ac_ext <<_ACEOF
29399 /* end confdefs.h.  */
29400 #include <$ac_header>
29401 _ACEOF
29402 if { (ac_try="$ac_cpp conftest.$ac_ext"
29403 case "(($ac_try" in
29404   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29405   *) ac_try_echo=$ac_try;;
29406 esac
29407 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29408 $as_echo "$ac_try_echo") >&5
29409   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
29410   ac_status=$?
29411   grep -v '^ *+' conftest.er1 >conftest.err
29412   rm -f conftest.er1
29413   cat conftest.err >&5
29414   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29415   (exit $ac_status); } >/dev/null && {
29416          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
29417          test ! -s conftest.err
29418        }; then
29419   ac_header_preproc=yes
29420 else
29421   $as_echo "$as_me: failed program was:" >&5
29422 sed 's/^/| /' conftest.$ac_ext >&5
29423
29424   ac_header_preproc=no
29425 fi
29426
29427 rm -f conftest.err conftest.$ac_ext
29428 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29429 $as_echo "$ac_header_preproc" >&6; }
29430
29431 # So?  What about this header?
29432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29433   yes:no: )
29434     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
29435 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
29436     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
29437 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
29438     ac_header_preproc=yes
29439     ;;
29440   no:yes:* )
29441     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
29442 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
29443     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
29444 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
29445     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
29446 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
29447     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
29448 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
29449     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
29450 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
29451     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
29452 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
29453     ( cat <<\_ASBOX
29454 ## ------------------------------ ##
29455 ## Report this to bug-tar@gnu.org ##
29456 ## ------------------------------ ##
29457 _ASBOX
29458      ) | sed "s/^/$as_me: WARNING:     /" >&2
29459     ;;
29460 esac
29461 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
29462 $as_echo_n "checking for $ac_header... " >&6; }
29463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
29464   $as_echo_n "(cached) " >&6
29465 else
29466   eval "$as_ac_Header=\$ac_header_preproc"
29467 fi
29468 ac_res=`eval 'as_val=${'$as_ac_Header'}
29469                  $as_echo "$as_val"'`
29470                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29471 $as_echo "$ac_res" >&6; }
29472
29473 fi
29474 as_val=`eval 'as_val=${'$as_ac_Header'}
29475                  $as_echo "$as_val"'`
29476    if test "x$as_val" = x""yes; then
29477   cat >>confdefs.h <<_ACEOF
29478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29479 _ACEOF
29480
29481 fi
29482
29483 done
29484
29485
29486 for ac_func in _ftime
29487 do
29488 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29489 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29490 $as_echo_n "checking for $ac_func... " >&6; }
29491 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29492   $as_echo_n "(cached) " >&6
29493 else
29494   cat >conftest.$ac_ext <<_ACEOF
29495 /* confdefs.h.  */
29496 _ACEOF
29497 cat confdefs.h >>conftest.$ac_ext
29498 cat >>conftest.$ac_ext <<_ACEOF
29499 /* end confdefs.h.  */
29500 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29501    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29502 #define $ac_func innocuous_$ac_func
29503
29504 /* System header to define __stub macros and hopefully few prototypes,
29505     which can conflict with char $ac_func (); below.
29506     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29507     <limits.h> exists even on freestanding compilers.  */
29508
29509 #ifdef __STDC__
29510 # include <limits.h>
29511 #else
29512 # include <assert.h>
29513 #endif
29514
29515 #undef $ac_func
29516
29517 /* Override any GCC internal prototype to avoid an error.
29518    Use char because int might match the return type of a GCC
29519    builtin and then its argument prototype would still apply.  */
29520 #ifdef __cplusplus
29521 extern "C"
29522 #endif
29523 char $ac_func ();
29524 /* The GNU C library defines this for functions which it implements
29525     to always fail with ENOSYS.  Some functions are actually named
29526     something starting with __ and the normal name is an alias.  */
29527 #if defined __stub_$ac_func || defined __stub___$ac_func
29528 choke me
29529 #endif
29530
29531 int
29532 main ()
29533 {
29534 return $ac_func ();
29535   ;
29536   return 0;
29537 }
29538 _ACEOF
29539 rm -f conftest.$ac_objext conftest$ac_exeext
29540 if { (ac_try="$ac_link"
29541 case "(($ac_try" in
29542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29543   *) ac_try_echo=$ac_try;;
29544 esac
29545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29546 $as_echo "$ac_try_echo") >&5
29547   (eval "$ac_link") 2>conftest.er1
29548   ac_status=$?
29549   grep -v '^ *+' conftest.er1 >conftest.err
29550   rm -f conftest.er1
29551   cat conftest.err >&5
29552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29553   (exit $ac_status); } && {
29554          test -z "$ac_c_werror_flag" ||
29555          test ! -s conftest.err
29556        } && test -s conftest$ac_exeext && {
29557          test "$cross_compiling" = yes ||
29558          $as_test_x conftest$ac_exeext
29559        }; then
29560   eval "$as_ac_var=yes"
29561 else
29562   $as_echo "$as_me: failed program was:" >&5
29563 sed 's/^/| /' conftest.$ac_ext >&5
29564
29565         eval "$as_ac_var=no"
29566 fi
29567
29568 rm -rf conftest.dSYM
29569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29570       conftest$ac_exeext conftest.$ac_ext
29571 fi
29572 ac_res=`eval 'as_val=${'$as_ac_var'}
29573                  $as_echo "$as_val"'`
29574                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29575 $as_echo "$ac_res" >&6; }
29576 as_val=`eval 'as_val=${'$as_ac_var'}
29577                  $as_echo "$as_val"'`
29578    if test "x$as_val" = x""yes; then
29579   cat >>confdefs.h <<_ACEOF
29580 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29581 _ACEOF
29582
29583 fi
29584 done
29585
29586
29587     fi
29588   fi
29589
29590 cat >>confdefs.h <<_ACEOF
29591 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
29592 _ACEOF
29593
29594
29595
29596
29597   GNULIB_GETTIMEOFDAY=1
29598
29599
29600 cat >>confdefs.h <<\_ACEOF
29601 #define GNULIB_GETTIMEOFDAY 1
29602 _ACEOF
29603
29604
29605
29606
29607
29608
29609
29610
29611
29612
29613
29614
29615   gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
29616
29617
29618
29619
29620
29621
29622
29623
29624
29625
29626
29627
29628
29629   gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
29630
29631
29632     :
29633
29634
29635
29636   { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
29637 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
29638 if test "${gl_cv_c_inline_effective+set}" = set; then
29639   $as_echo_n "(cached) " >&6
29640 else
29641   if test $ac_cv_c_inline = no; then
29642        gl_cv_c_inline_effective=no
29643      else
29644                                           cat >conftest.$ac_ext <<_ACEOF
29645 /* confdefs.h.  */
29646 _ACEOF
29647 cat confdefs.h >>conftest.$ac_ext
29648 cat >>conftest.$ac_ext <<_ACEOF
29649 /* end confdefs.h.  */
29650
29651 int
29652 main ()
29653 {
29654 #ifdef __NO_INLINE__
29655                #error "inline is not effective"
29656              #endif
29657   ;
29658   return 0;
29659 }
29660 _ACEOF
29661 rm -f conftest.$ac_objext
29662 if { (ac_try="$ac_compile"
29663 case "(($ac_try" in
29664   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29665   *) ac_try_echo=$ac_try;;
29666 esac
29667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29668 $as_echo "$ac_try_echo") >&5
29669   (eval "$ac_compile") 2>conftest.er1
29670   ac_status=$?
29671   grep -v '^ *+' conftest.er1 >conftest.err
29672   rm -f conftest.er1
29673   cat conftest.err >&5
29674   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29675   (exit $ac_status); } && {
29676          test -z "$ac_c_werror_flag" ||
29677          test ! -s conftest.err
29678        } && test -s conftest.$ac_objext; then
29679   gl_cv_c_inline_effective=yes
29680 else
29681   $as_echo "$as_me: failed program was:" >&5
29682 sed 's/^/| /' conftest.$ac_ext >&5
29683
29684         gl_cv_c_inline_effective=no
29685 fi
29686
29687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29688      fi
29689
29690 fi
29691 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
29692 $as_echo "$gl_cv_c_inline_effective" >&6; }
29693   if test $gl_cv_c_inline_effective = yes; then
29694
29695 cat >>confdefs.h <<\_ACEOF
29696 #define HAVE_INLINE 1
29697 _ACEOF
29698
29699   fi
29700
29701
29702
29703
29704
29705
29706
29707
29708
29709
29710   gl_LIBOBJS="$gl_LIBOBJS imaxtostr.$ac_objext"
29711
29712
29713
29714
29715
29716
29717
29718
29719
29720   gl_LIBOBJS="$gl_LIBOBJS offtostr.$ac_objext"
29721
29722
29723
29724
29725
29726
29727
29728
29729
29730   gl_LIBOBJS="$gl_LIBOBJS umaxtostr.$ac_objext"
29731
29732
29733
29734
29735
29736
29737
29738
29739
29740   gl_LIBOBJS="$gl_LIBOBJS uinttostr.$ac_objext"
29741
29742
29743
29744
29745   :
29746
29747   :
29748   :
29749   :
29750   :
29751
29752
29753
29754
29755
29756
29757
29758
29759
29760
29761
29762
29763
29764
29765
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
29778               { $as_echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
29779 $as_echo_n "checking whether inttypes.h conforms to C99... " >&6; }
29780 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
29781   $as_echo_n "(cached) " >&6
29782 else
29783   gl_cv_header_working_inttypes_h=no
29784      if test "$gl_cv_header_working_stdint_h" = yes \
29785         && test $ac_cv_header_inttypes_h = yes \
29786         && test "$ac_cv_have_decl_imaxabs" = yes \
29787         && test "$ac_cv_have_decl_imaxdiv" = yes \
29788         && test "$ac_cv_have_decl_strtoimax" = yes \
29789         && test "$ac_cv_have_decl_strtoumax" = yes; then
29790        cat >conftest.$ac_ext <<_ACEOF
29791
29792          /* confdefs.h.  */
29793 _ACEOF
29794 cat confdefs.h >>conftest.$ac_ext
29795 cat >>conftest.$ac_ext <<_ACEOF
29796 /* end confdefs.h.  */
29797
29798 #include <stddef.h>
29799 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
29800 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
29801 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
29802 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
29803 #include <inttypes.h>
29804
29805 /* No need to duplicate the tests of stdint.m4; they are subsumed by
29806    $gl_cv_header_working_stdint_h = yes.  */
29807
29808 /* Tests for macros supposed to be defined in inttypes.h.  */
29809
29810 const char *k = /* implicit string concatenation */
29811 #ifdef INT8_MAX
29812   PRId8 PRIi8
29813 #endif
29814 #ifdef UINT8_MAX
29815   PRIo8 PRIu8 PRIx8 PRIX8
29816 #endif
29817 #ifdef INT16_MAX
29818   PRId16 PRIi16
29819 #endif
29820 #ifdef UINT16_MAX
29821   PRIo16 PRIu16 PRIx16 PRIX16
29822 #endif
29823 #ifdef INT32_MAX
29824   PRId32 PRIi32
29825 #endif
29826 #ifdef UINT32_MAX
29827   PRIo32 PRIu32 PRIx32 PRIX32
29828 #endif
29829 #ifdef INT64_MAX
29830   PRId64 PRIi64
29831 #endif
29832 #ifdef UINT64_MAX
29833   PRIo64 PRIu64 PRIx64 PRIX64
29834 #endif
29835   PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
29836   PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
29837   PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
29838   PRIdLEAST64 PRIiLEAST64
29839   PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
29840   PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
29841   PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
29842   PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
29843   PRIdFAST64 PRIiFAST64
29844   PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
29845   PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
29846 #ifdef INTPTR_MAX
29847   PRIdPTR PRIiPTR
29848 #endif
29849 #ifdef UINTPTR_MAX
29850   PRIoPTR PRIuPTR PRIxPTR PRIXPTR
29851 #endif
29852   ;
29853 const char *l = /* implicit string concatenation */
29854 #ifdef INT8_MAX
29855   SCNd8 SCNi8
29856 #endif
29857 #ifdef UINT8_MAX
29858   SCNo8 SCNu8 SCNx8
29859 #endif
29860 #ifdef INT16_MAX
29861   SCNd16 SCNi16
29862 #endif
29863 #ifdef UINT16_MAX
29864   SCNo16 SCNu16 SCNx16
29865 #endif
29866 #ifdef INT32_MAX
29867   SCNd32 SCNi32
29868 #endif
29869 #ifdef UINT32_MAX
29870   SCNo32 SCNu32 SCNx32
29871 #endif
29872 #ifdef INT64_MAX
29873   SCNd64 SCNi64
29874 #endif
29875 #ifdef UINT64_MAX
29876   SCNo64 SCNu64 SCNx64
29877 #endif
29878   SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
29879   SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
29880   SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
29881   SCNdLEAST64 SCNiLEAST64
29882   SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
29883   SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
29884   SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
29885   SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
29886   SCNdFAST64 SCNiFAST64
29887   SCNoFAST64 SCNuFAST64 SCNxFAST64
29888   SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
29889 #ifdef INTPTR_MAX
29890   SCNdPTR SCNiPTR
29891 #endif
29892 #ifdef UINTPTR_MAX
29893   SCNoPTR SCNuPTR SCNxPTR
29894 #endif
29895   ;
29896
29897 int
29898 main ()
29899 {
29900
29901   ;
29902   return 0;
29903 }
29904 _ACEOF
29905 rm -f conftest.$ac_objext
29906 if { (ac_try="$ac_compile"
29907 case "(($ac_try" in
29908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29909   *) ac_try_echo=$ac_try;;
29910 esac
29911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29912 $as_echo "$ac_try_echo") >&5
29913   (eval "$ac_compile") 2>conftest.er1
29914   ac_status=$?
29915   grep -v '^ *+' conftest.er1 >conftest.err
29916   rm -f conftest.er1
29917   cat conftest.err >&5
29918   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29919   (exit $ac_status); } && {
29920          test -z "$ac_c_werror_flag" ||
29921          test ! -s conftest.err
29922        } && test -s conftest.$ac_objext; then
29923   gl_cv_header_working_inttypes_h=yes
29924 else
29925   $as_echo "$as_me: failed program was:" >&5
29926 sed 's/^/| /' conftest.$ac_ext >&5
29927
29928
29929 fi
29930
29931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29932      fi
29933 fi
29934 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
29935 $as_echo "$gl_cv_header_working_inttypes_h" >&6; }
29936
29937
29938
29939
29940
29941
29942
29943
29944
29945
29946
29947
29948
29949      if test $gl_cv_have_include_next = yes; then
29950        gl_cv_next_inttypes_h='<'inttypes.h'>'
29951      else
29952        { $as_echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
29953 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
29954 if test "${gl_cv_next_inttypes_h+set}" = set; then
29955   $as_echo_n "(cached) " >&6
29956 else
29957
29958           if test $ac_cv_header_inttypes_h = yes; then
29959             cat >conftest.$ac_ext <<_ACEOF
29960 /* confdefs.h.  */
29961 _ACEOF
29962 cat confdefs.h >>conftest.$ac_ext
29963 cat >>conftest.$ac_ext <<_ACEOF
29964 /* end confdefs.h.  */
29965 #include <inttypes.h>
29966
29967 _ACEOF
29968                                                                                                 case "$host_os" in
29969               aix*) gl_absname_cpp="$ac_cpp -C" ;;
29970               *)    gl_absname_cpp="$ac_cpp" ;;
29971             esac
29972                                                 gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29973                sed -n '\#/inttypes.h#{
29974                  s#.*"\(.*/inttypes.h\)".*#\1#
29975                  s#^/[^/]#//&#
29976                  p
29977                  q
29978                }'`'"'
29979           else
29980             gl_cv_next_inttypes_h='<'inttypes.h'>'
29981           fi
29982
29983 fi
29984 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_inttypes_h" >&5
29985 $as_echo "$gl_cv_next_inttypes_h" >&6; }
29986      fi
29987      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
29988
29989      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29990        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29991        gl_next_as_first_directive='<'inttypes.h'>'
29992      else
29993        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29994        gl_next_as_first_directive=$gl_cv_next_inttypes_h
29995      fi
29996      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
29997
29998
29999
30000
30001
30002
30003
30004 cat >>confdefs.h <<\_ACEOF
30005 #define GL_TRIGGER_STDC_LIMIT_MACROS 1
30006 _ACEOF
30007
30008
30009
30010
30011   PRIPTR_PREFIX=
30012   if test -n "$STDINT_H"; then
30013         PRIPTR_PREFIX='"l"'
30014   else
30015         for glpfx in '' l ll I64; do
30016       case $glpfx in
30017         '')  gltype1='int';;
30018         l)   gltype1='long int';;
30019         ll)  gltype1='long long int';;
30020         I64) gltype1='__int64';;
30021       esac
30022       cat >conftest.$ac_ext <<_ACEOF
30023 /* confdefs.h.  */
30024 _ACEOF
30025 cat confdefs.h >>conftest.$ac_ext
30026 cat >>conftest.$ac_ext <<_ACEOF
30027 /* end confdefs.h.  */
30028 #include <stdint.h>
30029            extern intptr_t foo;
30030            extern $gltype1 foo;
30031 int
30032 main ()
30033 {
30034
30035   ;
30036   return 0;
30037 }
30038 _ACEOF
30039 rm -f conftest.$ac_objext
30040 if { (ac_try="$ac_compile"
30041 case "(($ac_try" in
30042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30043   *) ac_try_echo=$ac_try;;
30044 esac
30045 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30046 $as_echo "$ac_try_echo") >&5
30047   (eval "$ac_compile") 2>conftest.er1
30048   ac_status=$?
30049   grep -v '^ *+' conftest.er1 >conftest.err
30050   rm -f conftest.er1
30051   cat conftest.err >&5
30052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30053   (exit $ac_status); } && {
30054          test -z "$ac_c_werror_flag" ||
30055          test ! -s conftest.err
30056        } && test -s conftest.$ac_objext; then
30057   PRIPTR_PREFIX='"'$glpfx'"'
30058 else
30059   $as_echo "$as_me: failed program was:" >&5
30060 sed 's/^/| /' conftest.$ac_ext >&5
30061
30062
30063 fi
30064
30065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30066       test -n "$PRIPTR_PREFIX" && break
30067     done
30068   fi
30069
30070
30071   if test "$ac_cv_have_decl_imaxabs" = yes; then
30072     HAVE_DECL_IMAXABS=1
30073   else
30074     HAVE_DECL_IMAXABS=0
30075   fi
30076
30077   if test "$ac_cv_have_decl_imaxdiv" = yes; then
30078     HAVE_DECL_IMAXDIV=1
30079   else
30080     HAVE_DECL_IMAXDIV=0
30081   fi
30082
30083   if test "$ac_cv_have_decl_strtoimax" = yes; then
30084     HAVE_DECL_STRTOIMAX=1
30085   else
30086     HAVE_DECL_STRTOIMAX=0
30087   fi
30088
30089   if test "$ac_cv_have_decl_strtoumax" = yes; then
30090     HAVE_DECL_STRTOUMAX=1
30091   else
30092     HAVE_DECL_STRTOUMAX=0
30093   fi
30094
30095
30096   { $as_echo "$as_me:$LINENO: checking whether INT32_MAX < INTMAX_MAX" >&5
30097 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
30098 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then
30099   $as_echo_n "(cached) " >&6
30100 else
30101   cat >conftest.$ac_ext <<_ACEOF
30102 /* confdefs.h.  */
30103 _ACEOF
30104 cat confdefs.h >>conftest.$ac_ext
30105 cat >>conftest.$ac_ext <<_ACEOF
30106 /* end confdefs.h.  */
30107 /* Work also in C++ mode.  */
30108             #define __STDC_LIMIT_MACROS 1
30109
30110             /* Work if build is not clean.  */
30111             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
30112
30113             #include <limits.h>
30114             #if HAVE_STDINT_H
30115              #include <stdint.h>
30116             #endif
30117
30118             #if defined INT32_MAX && defined INTMAX_MAX
30119              #define CONDITION (INT32_MAX < INTMAX_MAX)
30120             #elif HAVE_LONG_LONG_INT
30121              #define CONDITION (sizeof (int) < sizeof (long long int))
30122             #else
30123              #define CONDITION 0
30124             #endif
30125             int test[CONDITION ? 1 : -1];
30126 int
30127 main ()
30128 {
30129
30130   ;
30131   return 0;
30132 }
30133 _ACEOF
30134 rm -f conftest.$ac_objext
30135 if { (ac_try="$ac_compile"
30136 case "(($ac_try" in
30137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30138   *) ac_try_echo=$ac_try;;
30139 esac
30140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30141 $as_echo "$ac_try_echo") >&5
30142   (eval "$ac_compile") 2>conftest.er1
30143   ac_status=$?
30144   grep -v '^ *+' conftest.er1 >conftest.err
30145   rm -f conftest.er1
30146   cat conftest.err >&5
30147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30148   (exit $ac_status); } && {
30149          test -z "$ac_c_werror_flag" ||
30150          test ! -s conftest.err
30151        } && test -s conftest.$ac_objext; then
30152   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
30153 else
30154   $as_echo "$as_me: failed program was:" >&5
30155 sed 's/^/| /' conftest.$ac_ext >&5
30156
30157         gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
30158 fi
30159
30160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30161 fi
30162 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
30163 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
30164   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
30165     INT32_MAX_LT_INTMAX_MAX=1;
30166   else
30167     INT32_MAX_LT_INTMAX_MAX=0;
30168   fi
30169
30170
30171   if test $APPLE_UNIVERSAL_BUILD = 0; then
30172
30173   { $as_echo "$as_me:$LINENO: checking whether INT64_MAX == LONG_MAX" >&5
30174 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
30175 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then
30176   $as_echo_n "(cached) " >&6
30177 else
30178   cat >conftest.$ac_ext <<_ACEOF
30179 /* confdefs.h.  */
30180 _ACEOF
30181 cat confdefs.h >>conftest.$ac_ext
30182 cat >>conftest.$ac_ext <<_ACEOF
30183 /* end confdefs.h.  */
30184 /* Work also in C++ mode.  */
30185             #define __STDC_LIMIT_MACROS 1
30186
30187             /* Work if build is not clean.  */
30188             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
30189
30190             #include <limits.h>
30191             #if HAVE_STDINT_H
30192              #include <stdint.h>
30193             #endif
30194
30195             #if defined INT64_MAX
30196              #define CONDITION (INT64_MAX == LONG_MAX)
30197             #elif HAVE_LONG_LONG_INT
30198              #define CONDITION (sizeof (long long int) == sizeof (long int))
30199             #else
30200              #define CONDITION 0
30201             #endif
30202             int test[CONDITION ? 1 : -1];
30203 int
30204 main ()
30205 {
30206
30207   ;
30208   return 0;
30209 }
30210 _ACEOF
30211 rm -f conftest.$ac_objext
30212 if { (ac_try="$ac_compile"
30213 case "(($ac_try" in
30214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30215   *) ac_try_echo=$ac_try;;
30216 esac
30217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30218 $as_echo "$ac_try_echo") >&5
30219   (eval "$ac_compile") 2>conftest.er1
30220   ac_status=$?
30221   grep -v '^ *+' conftest.er1 >conftest.err
30222   rm -f conftest.er1
30223   cat conftest.err >&5
30224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30225   (exit $ac_status); } && {
30226          test -z "$ac_c_werror_flag" ||
30227          test ! -s conftest.err
30228        } && test -s conftest.$ac_objext; then
30229   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
30230 else
30231   $as_echo "$as_me: failed program was:" >&5
30232 sed 's/^/| /' conftest.$ac_ext >&5
30233
30234         gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
30235 fi
30236
30237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30238 fi
30239 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
30240 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
30241   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
30242     INT64_MAX_EQ_LONG_MAX=1;
30243   else
30244     INT64_MAX_EQ_LONG_MAX=0;
30245   fi
30246
30247
30248   else
30249     INT64_MAX_EQ_LONG_MAX=-1
30250   fi
30251
30252   { $as_echo "$as_me:$LINENO: checking whether UINT32_MAX < UINTMAX_MAX" >&5
30253 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
30254 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then
30255   $as_echo_n "(cached) " >&6
30256 else
30257   cat >conftest.$ac_ext <<_ACEOF
30258 /* confdefs.h.  */
30259 _ACEOF
30260 cat confdefs.h >>conftest.$ac_ext
30261 cat >>conftest.$ac_ext <<_ACEOF
30262 /* end confdefs.h.  */
30263 /* Work also in C++ mode.  */
30264             #define __STDC_LIMIT_MACROS 1
30265
30266             /* Work if build is not clean.  */
30267             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
30268
30269             #include <limits.h>
30270             #if HAVE_STDINT_H
30271              #include <stdint.h>
30272             #endif
30273
30274             #if defined UINT32_MAX && defined UINTMAX_MAX
30275              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
30276             #elif HAVE_LONG_LONG_INT
30277              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
30278             #else
30279              #define CONDITION 0
30280             #endif
30281             int test[CONDITION ? 1 : -1];
30282 int
30283 main ()
30284 {
30285
30286   ;
30287   return 0;
30288 }
30289 _ACEOF
30290 rm -f conftest.$ac_objext
30291 if { (ac_try="$ac_compile"
30292 case "(($ac_try" in
30293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30294   *) ac_try_echo=$ac_try;;
30295 esac
30296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30297 $as_echo "$ac_try_echo") >&5
30298   (eval "$ac_compile") 2>conftest.er1
30299   ac_status=$?
30300   grep -v '^ *+' conftest.er1 >conftest.err
30301   rm -f conftest.er1
30302   cat conftest.err >&5
30303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304   (exit $ac_status); } && {
30305          test -z "$ac_c_werror_flag" ||
30306          test ! -s conftest.err
30307        } && test -s conftest.$ac_objext; then
30308   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
30309 else
30310   $as_echo "$as_me: failed program was:" >&5
30311 sed 's/^/| /' conftest.$ac_ext >&5
30312
30313         gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
30314 fi
30315
30316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30317 fi
30318 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
30319 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
30320   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
30321     UINT32_MAX_LT_UINTMAX_MAX=1;
30322   else
30323     UINT32_MAX_LT_UINTMAX_MAX=0;
30324   fi
30325
30326
30327   if test $APPLE_UNIVERSAL_BUILD = 0; then
30328
30329   { $as_echo "$as_me:$LINENO: checking whether UINT64_MAX == ULONG_MAX" >&5
30330 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
30331 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then
30332   $as_echo_n "(cached) " >&6
30333 else
30334   cat >conftest.$ac_ext <<_ACEOF
30335 /* confdefs.h.  */
30336 _ACEOF
30337 cat confdefs.h >>conftest.$ac_ext
30338 cat >>conftest.$ac_ext <<_ACEOF
30339 /* end confdefs.h.  */
30340 /* Work also in C++ mode.  */
30341             #define __STDC_LIMIT_MACROS 1
30342
30343             /* Work if build is not clean.  */
30344             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
30345
30346             #include <limits.h>
30347             #if HAVE_STDINT_H
30348              #include <stdint.h>
30349             #endif
30350
30351             #if defined UINT64_MAX
30352              #define CONDITION (UINT64_MAX == ULONG_MAX)
30353             #elif HAVE_LONG_LONG_INT
30354              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
30355             #else
30356              #define CONDITION 0
30357             #endif
30358             int test[CONDITION ? 1 : -1];
30359 int
30360 main ()
30361 {
30362
30363   ;
30364   return 0;
30365 }
30366 _ACEOF
30367 rm -f conftest.$ac_objext
30368 if { (ac_try="$ac_compile"
30369 case "(($ac_try" in
30370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30371   *) ac_try_echo=$ac_try;;
30372 esac
30373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30374 $as_echo "$ac_try_echo") >&5
30375   (eval "$ac_compile") 2>conftest.er1
30376   ac_status=$?
30377   grep -v '^ *+' conftest.er1 >conftest.err
30378   rm -f conftest.er1
30379   cat conftest.err >&5
30380   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30381   (exit $ac_status); } && {
30382          test -z "$ac_c_werror_flag" ||
30383          test ! -s conftest.err
30384        } && test -s conftest.$ac_objext; then
30385   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
30386 else
30387   $as_echo "$as_me: failed program was:" >&5
30388 sed 's/^/| /' conftest.$ac_ext >&5
30389
30390         gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
30391 fi
30392
30393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30394 fi
30395 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
30396 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
30397   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
30398     UINT64_MAX_EQ_ULONG_MAX=1;
30399   else
30400     UINT64_MAX_EQ_ULONG_MAX=0;
30401   fi
30402
30403
30404   else
30405     UINT64_MAX_EQ_ULONG_MAX=-1
30406   fi
30407
30408
30409
30410
30411
30412
30413   for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
30414     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30415     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
30416 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30417 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
30418   $as_echo_n "(cached) " >&6
30419 else
30420   cat >conftest.$ac_ext <<_ACEOF
30421 /* confdefs.h.  */
30422 _ACEOF
30423 cat confdefs.h >>conftest.$ac_ext
30424 cat >>conftest.$ac_ext <<_ACEOF
30425 /* end confdefs.h.  */
30426 #include <inttypes.h>
30427
30428 int
30429 main ()
30430 {
30431 #undef $gl_func
30432   (void) $gl_func;
30433   ;
30434   return 0;
30435 }
30436 _ACEOF
30437 rm -f conftest.$ac_objext
30438 if { (ac_try="$ac_compile"
30439 case "(($ac_try" in
30440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30441   *) ac_try_echo=$ac_try;;
30442 esac
30443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30444 $as_echo "$ac_try_echo") >&5
30445   (eval "$ac_compile") 2>conftest.er1
30446   ac_status=$?
30447   grep -v '^ *+' conftest.er1 >conftest.err
30448   rm -f conftest.er1
30449   cat conftest.err >&5
30450   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30451   (exit $ac_status); } && {
30452          test -z "$ac_c_werror_flag" ||
30453          test ! -s conftest.err
30454        } && test -s conftest.$ac_objext; then
30455   eval "$as_gl_Symbol=yes"
30456 else
30457   $as_echo "$as_me: failed program was:" >&5
30458 sed 's/^/| /' conftest.$ac_ext >&5
30459
30460         eval "$as_gl_Symbol=no"
30461 fi
30462
30463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30464 fi
30465 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
30466                  $as_echo "$as_val"'`
30467                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30468 $as_echo "$ac_res" >&6; }
30469      as_val=`eval 'as_val=${'$as_gl_Symbol'}
30470                  $as_echo "$as_val"'`
30471    if test "x$as_val" = x""yes; then
30472   cat >>confdefs.h <<_ACEOF
30473 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30474 _ACEOF
30475
30476                      eval ac_cv_have_decl_$gl_func=yes
30477 fi
30478
30479       done
30480
30481
30482
30483
30484
30485
30486
30487
30488
30489
30490
30491
30492
30493
30494
30495
30496
30497
30498      if test $gl_cv_have_include_next = yes; then
30499        gl_cv_next_langinfo_h='<'langinfo.h'>'
30500      else
30501        { $as_echo "$as_me:$LINENO: checking absolute name of <langinfo.h>" >&5
30502 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
30503 if test "${gl_cv_next_langinfo_h+set}" = set; then
30504   $as_echo_n "(cached) " >&6
30505 else
30506
30507           if test $ac_cv_header_langinfo_h = yes; then
30508             cat >conftest.$ac_ext <<_ACEOF
30509 /* confdefs.h.  */
30510 _ACEOF
30511 cat confdefs.h >>conftest.$ac_ext
30512 cat >>conftest.$ac_ext <<_ACEOF
30513 /* end confdefs.h.  */
30514 #include <langinfo.h>
30515
30516 _ACEOF
30517                                                                                                 case "$host_os" in
30518               aix*) gl_absname_cpp="$ac_cpp -C" ;;
30519               *)    gl_absname_cpp="$ac_cpp" ;;
30520             esac
30521                                                 gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
30522                sed -n '\#/langinfo.h#{
30523                  s#.*"\(.*/langinfo.h\)".*#\1#
30524                  s#^/[^/]#//&#
30525                  p
30526                  q
30527                }'`'"'
30528           else
30529             gl_cv_next_langinfo_h='<'langinfo.h'>'
30530           fi
30531
30532 fi
30533 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_langinfo_h" >&5
30534 $as_echo "$gl_cv_next_langinfo_h" >&6; }
30535      fi
30536      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
30537
30538      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
30539        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
30540        gl_next_as_first_directive='<'langinfo.h'>'
30541      else
30542        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
30543        gl_next_as_first_directive=$gl_cv_next_langinfo_h
30544      fi
30545      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
30546
30547
30548
30549
30550     HAVE_LANGINFO_CODESET=0
30551   HAVE_LANGINFO_ERA=0
30552
30553
30554
30555
30556
30557
30558   if test $ac_cv_header_langinfo_h = yes; then
30559     HAVE_LANGINFO_H=1
30560             { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines CODESET" >&5
30561 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
30562 if test "${gl_cv_header_langinfo_codeset+set}" = set; then
30563   $as_echo_n "(cached) " >&6
30564 else
30565   cat >conftest.$ac_ext <<_ACEOF
30566 /* confdefs.h.  */
30567 _ACEOF
30568 cat confdefs.h >>conftest.$ac_ext
30569 cat >>conftest.$ac_ext <<_ACEOF
30570 /* end confdefs.h.  */
30571 #include <langinfo.h>
30572 int a = CODESET;
30573
30574 int
30575 main ()
30576 {
30577
30578   ;
30579   return 0;
30580 }
30581 _ACEOF
30582 rm -f conftest.$ac_objext
30583 if { (ac_try="$ac_compile"
30584 case "(($ac_try" in
30585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30586   *) ac_try_echo=$ac_try;;
30587 esac
30588 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30589 $as_echo "$ac_try_echo") >&5
30590   (eval "$ac_compile") 2>conftest.er1
30591   ac_status=$?
30592   grep -v '^ *+' conftest.er1 >conftest.err
30593   rm -f conftest.er1
30594   cat conftest.err >&5
30595   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30596   (exit $ac_status); } && {
30597          test -z "$ac_c_werror_flag" ||
30598          test ! -s conftest.err
30599        } && test -s conftest.$ac_objext; then
30600   gl_cv_header_langinfo_codeset=yes
30601 else
30602   $as_echo "$as_me: failed program was:" >&5
30603 sed 's/^/| /' conftest.$ac_ext >&5
30604
30605         gl_cv_header_langinfo_codeset=no
30606 fi
30607
30608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30609
30610 fi
30611 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_codeset" >&5
30612 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
30613     if test $gl_cv_header_langinfo_codeset = yes; then
30614       HAVE_LANGINFO_CODESET=1
30615     fi
30616     { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines ERA" >&5
30617 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
30618 if test "${gl_cv_header_langinfo_era+set}" = set; then
30619   $as_echo_n "(cached) " >&6
30620 else
30621   cat >conftest.$ac_ext <<_ACEOF
30622 /* confdefs.h.  */
30623 _ACEOF
30624 cat confdefs.h >>conftest.$ac_ext
30625 cat >>conftest.$ac_ext <<_ACEOF
30626 /* end confdefs.h.  */
30627 #include <langinfo.h>
30628 int a = ERA;
30629
30630 int
30631 main ()
30632 {
30633
30634   ;
30635   return 0;
30636 }
30637 _ACEOF
30638 rm -f conftest.$ac_objext
30639 if { (ac_try="$ac_compile"
30640 case "(($ac_try" in
30641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30642   *) ac_try_echo=$ac_try;;
30643 esac
30644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30645 $as_echo "$ac_try_echo") >&5
30646   (eval "$ac_compile") 2>conftest.er1
30647   ac_status=$?
30648   grep -v '^ *+' conftest.er1 >conftest.err
30649   rm -f conftest.er1
30650   cat conftest.err >&5
30651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30652   (exit $ac_status); } && {
30653          test -z "$ac_c_werror_flag" ||
30654          test ! -s conftest.err
30655        } && test -s conftest.$ac_objext; then
30656   gl_cv_header_langinfo_era=yes
30657 else
30658   $as_echo "$as_me: failed program was:" >&5
30659 sed 's/^/| /' conftest.$ac_ext >&5
30660
30661         gl_cv_header_langinfo_era=no
30662 fi
30663
30664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30665
30666 fi
30667 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_era" >&5
30668 $as_echo "$gl_cv_header_langinfo_era" >&6; }
30669     if test $gl_cv_header_langinfo_era = yes; then
30670       HAVE_LANGINFO_ERA=1
30671     fi
30672   else
30673     HAVE_LANGINFO_H=0
30674   fi
30675
30676
30677
30678
30679
30680
30681   for gl_func in nl_langinfo; do
30682     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
30683     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
30684 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
30685 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
30686   $as_echo_n "(cached) " >&6
30687 else
30688   cat >conftest.$ac_ext <<_ACEOF
30689 /* confdefs.h.  */
30690 _ACEOF
30691 cat confdefs.h >>conftest.$ac_ext
30692 cat >>conftest.$ac_ext <<_ACEOF
30693 /* end confdefs.h.  */
30694 #include <langinfo.h>
30695
30696 int
30697 main ()
30698 {
30699 #undef $gl_func
30700   (void) $gl_func;
30701   ;
30702   return 0;
30703 }
30704 _ACEOF
30705 rm -f conftest.$ac_objext
30706 if { (ac_try="$ac_compile"
30707 case "(($ac_try" in
30708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30709   *) ac_try_echo=$ac_try;;
30710 esac
30711 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30712 $as_echo "$ac_try_echo") >&5
30713   (eval "$ac_compile") 2>conftest.er1
30714   ac_status=$?
30715   grep -v '^ *+' conftest.er1 >conftest.err
30716   rm -f conftest.er1
30717   cat conftest.err >&5
30718   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30719   (exit $ac_status); } && {
30720          test -z "$ac_c_werror_flag" ||
30721          test ! -s conftest.err
30722        } && test -s conftest.$ac_objext; then
30723   eval "$as_gl_Symbol=yes"
30724 else
30725   $as_echo "$as_me: failed program was:" >&5
30726 sed 's/^/| /' conftest.$ac_ext >&5
30727
30728         eval "$as_gl_Symbol=no"
30729 fi
30730
30731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30732 fi
30733 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
30734                  $as_echo "$as_val"'`
30735                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30736 $as_echo "$ac_res" >&6; }
30737      as_val=`eval 'as_val=${'$as_gl_Symbol'}
30738                  $as_echo "$as_val"'`
30739    if test "x$as_val" = x""yes; then
30740   cat >>confdefs.h <<_ACEOF
30741 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
30742 _ACEOF
30743
30744                      eval ac_cv_have_decl_$gl_func=yes
30745 fi
30746
30747       done
30748
30749
30750
30751
30752
30753
30754
30755
30756
30757
30758
30759
30760
30761
30762
30763
30764
30765
30766
30767
30768 for ac_func in lchown
30769 do
30770 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30771 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30772 $as_echo_n "checking for $ac_func... " >&6; }
30773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30774   $as_echo_n "(cached) " >&6
30775 else
30776   cat >conftest.$ac_ext <<_ACEOF
30777 /* confdefs.h.  */
30778 _ACEOF
30779 cat confdefs.h >>conftest.$ac_ext
30780 cat >>conftest.$ac_ext <<_ACEOF
30781 /* end confdefs.h.  */
30782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30783    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30784 #define $ac_func innocuous_$ac_func
30785
30786 /* System header to define __stub macros and hopefully few prototypes,
30787     which can conflict with char $ac_func (); below.
30788     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30789     <limits.h> exists even on freestanding compilers.  */
30790
30791 #ifdef __STDC__
30792 # include <limits.h>
30793 #else
30794 # include <assert.h>
30795 #endif
30796
30797 #undef $ac_func
30798
30799 /* Override any GCC internal prototype to avoid an error.
30800    Use char because int might match the return type of a GCC
30801    builtin and then its argument prototype would still apply.  */
30802 #ifdef __cplusplus
30803 extern "C"
30804 #endif
30805 char $ac_func ();
30806 /* The GNU C library defines this for functions which it implements
30807     to always fail with ENOSYS.  Some functions are actually named
30808     something starting with __ and the normal name is an alias.  */
30809 #if defined __stub_$ac_func || defined __stub___$ac_func
30810 choke me
30811 #endif
30812
30813 int
30814 main ()
30815 {
30816 return $ac_func ();
30817   ;
30818   return 0;
30819 }
30820 _ACEOF
30821 rm -f conftest.$ac_objext conftest$ac_exeext
30822 if { (ac_try="$ac_link"
30823 case "(($ac_try" in
30824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30825   *) ac_try_echo=$ac_try;;
30826 esac
30827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30828 $as_echo "$ac_try_echo") >&5
30829   (eval "$ac_link") 2>conftest.er1
30830   ac_status=$?
30831   grep -v '^ *+' conftest.er1 >conftest.err
30832   rm -f conftest.er1
30833   cat conftest.err >&5
30834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30835   (exit $ac_status); } && {
30836          test -z "$ac_c_werror_flag" ||
30837          test ! -s conftest.err
30838        } && test -s conftest$ac_exeext && {
30839          test "$cross_compiling" = yes ||
30840          $as_test_x conftest$ac_exeext
30841        }; then
30842   eval "$as_ac_var=yes"
30843 else
30844   $as_echo "$as_me: failed program was:" >&5
30845 sed 's/^/| /' conftest.$ac_ext >&5
30846
30847         eval "$as_ac_var=no"
30848 fi
30849
30850 rm -rf conftest.dSYM
30851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30852       conftest$ac_exeext conftest.$ac_ext
30853 fi
30854 ac_res=`eval 'as_val=${'$as_ac_var'}
30855                  $as_echo "$as_val"'`
30856                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30857 $as_echo "$ac_res" >&6; }
30858 as_val=`eval 'as_val=${'$as_ac_var'}
30859                  $as_echo "$as_val"'`
30860    if test "x$as_val" = x""yes; then
30861   cat >>confdefs.h <<_ACEOF
30862 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30863 _ACEOF
30864
30865 else
30866
30867     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
30868
30869 fi
30870 done
30871
30872
30873   if test $ac_cv_func_lchown = no; then
30874     HAVE_LCHOWN=0
30875   elif test "$gl_cv_func_chown_slash_works" != yes \
30876       || test "$gl_cv_func_chown_ctime_works" != yes; then
30877
30878
30879
30880
30881
30882
30883
30884
30885   gl_LIBOBJS="$gl_LIBOBJS lchown.$ac_objext"
30886
30887     REPLACE_LCHOWN=1
30888   fi
30889
30890
30891
30892   GNULIB_LCHOWN=1
30893
30894
30895 cat >>confdefs.h <<\_ACEOF
30896 #define GNULIB_LCHOWN 1
30897 _ACEOF
30898
30899
30900
30901
30902
30903
30904
30905
30906
30907
30908
30909
30910
30911
30912   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
30913
30914
30915
30916
30917   { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
30918 $as_echo_n "checking whether lseek detects pipes... " >&6; }
30919 if test "${gl_cv_func_lseek_pipe+set}" = set; then
30920   $as_echo_n "(cached) " >&6
30921 else
30922   if test $cross_compiling = no; then
30923        cat >conftest.$ac_ext <<_ACEOF
30924
30925 #include <sys/types.h> /* for off_t */
30926 #include <stdio.h> /* for SEEK_CUR */
30927 #include <unistd.h>
30928 int main ()
30929 {
30930   /* Exit with success only if stdin is seekable.  */
30931   return lseek (0, (off_t)0, SEEK_CUR) < 0;
30932 }
30933 _ACEOF
30934 rm -f conftest.$ac_objext conftest$ac_exeext
30935 if { (ac_try="$ac_link"
30936 case "(($ac_try" in
30937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30938   *) ac_try_echo=$ac_try;;
30939 esac
30940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30941 $as_echo "$ac_try_echo") >&5
30942   (eval "$ac_link") 2>conftest.er1
30943   ac_status=$?
30944   grep -v '^ *+' conftest.er1 >conftest.err
30945   rm -f conftest.er1
30946   cat conftest.err >&5
30947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30948   (exit $ac_status); } && {
30949          test -z "$ac_c_werror_flag" ||
30950          test ! -s conftest.err
30951        } && test -s conftest$ac_exeext && {
30952          test "$cross_compiling" = yes ||
30953          $as_test_x conftest$ac_exeext
30954        }; then
30955   if test -s conftest$ac_exeext \
30956              && ./conftest$ac_exeext < conftest.$ac_ext \
30957              && test 1 = "`echo hi \
30958                | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
30959             gl_cv_func_lseek_pipe=yes
30960           else
30961             gl_cv_func_lseek_pipe=no
30962           fi
30963 else
30964   $as_echo "$as_me: failed program was:" >&5
30965 sed 's/^/| /' conftest.$ac_ext >&5
30966
30967         gl_cv_func_lseek_pipe=no
30968 fi
30969
30970 rm -rf conftest.dSYM
30971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30972       conftest$ac_exeext conftest.$ac_ext
30973      else
30974        cat >conftest.$ac_ext <<_ACEOF
30975
30976 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
30977 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
30978   Choke me.
30979 #endif
30980 _ACEOF
30981 rm -f conftest.$ac_objext
30982 if { (ac_try="$ac_compile"
30983 case "(($ac_try" in
30984   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30985   *) ac_try_echo=$ac_try;;
30986 esac
30987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30988 $as_echo "$ac_try_echo") >&5
30989   (eval "$ac_compile") 2>conftest.er1
30990   ac_status=$?
30991   grep -v '^ *+' conftest.er1 >conftest.err
30992   rm -f conftest.er1
30993   cat conftest.err >&5
30994   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30995   (exit $ac_status); } && {
30996          test -z "$ac_c_werror_flag" ||
30997          test ! -s conftest.err
30998        } && test -s conftest.$ac_objext; then
30999   gl_cv_func_lseek_pipe=yes
31000 else
31001   $as_echo "$as_me: failed program was:" >&5
31002 sed 's/^/| /' conftest.$ac_ext >&5
31003
31004         gl_cv_func_lseek_pipe=no
31005 fi
31006
31007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31008      fi
31009 fi
31010 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
31011 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
31012   if test $gl_cv_func_lseek_pipe = no; then
31013
31014
31015
31016
31017
31018
31019
31020
31021
31022   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
31023
31024
31025   REPLACE_LSEEK=1
31026
31027 cat >>confdefs.h <<\_ACEOF
31028 #define LSEEK_PIPE_BROKEN 1
31029 _ACEOF
31030
31031
31032   fi
31033
31034
31035
31036   GNULIB_LSEEK=1
31037
31038
31039 cat >>confdefs.h <<\_ACEOF
31040 #define GNULIB_LSEEK 1
31041 _ACEOF
31042
31043
31044
31045
31046
31047
31048
31049
31050
31051
31052
31053   if test $ac_cv_func_lstat = yes; then
31054
31055     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
31056             REPLACE_LSTAT=1
31057     fi
31058     # Prerequisites of lib/lstat.c.
31059
31060   else
31061     HAVE_LSTAT=0
31062   fi
31063
31064
31065
31066   GNULIB_LSTAT=1
31067
31068
31069 cat >>confdefs.h <<\_ACEOF
31070 #define GNULIB_LSTAT 1
31071 _ACEOF
31072
31073
31074
31075
31076 for ac_header in stdlib.h
31077 do
31078 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31080   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31081 $as_echo_n "checking for $ac_header... " >&6; }
31082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31083   $as_echo_n "(cached) " >&6
31084 fi
31085 ac_res=`eval 'as_val=${'$as_ac_Header'}
31086                  $as_echo "$as_val"'`
31087                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31088 $as_echo "$ac_res" >&6; }
31089 else
31090   # Is the header compilable?
31091 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31092 $as_echo_n "checking $ac_header usability... " >&6; }
31093 cat >conftest.$ac_ext <<_ACEOF
31094 /* confdefs.h.  */
31095 _ACEOF
31096 cat confdefs.h >>conftest.$ac_ext
31097 cat >>conftest.$ac_ext <<_ACEOF
31098 /* end confdefs.h.  */
31099 $ac_includes_default
31100 #include <$ac_header>
31101 _ACEOF
31102 rm -f conftest.$ac_objext
31103 if { (ac_try="$ac_compile"
31104 case "(($ac_try" in
31105   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31106   *) ac_try_echo=$ac_try;;
31107 esac
31108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31109 $as_echo "$ac_try_echo") >&5
31110   (eval "$ac_compile") 2>conftest.er1
31111   ac_status=$?
31112   grep -v '^ *+' conftest.er1 >conftest.err
31113   rm -f conftest.er1
31114   cat conftest.err >&5
31115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31116   (exit $ac_status); } && {
31117          test -z "$ac_c_werror_flag" ||
31118          test ! -s conftest.err
31119        } && test -s conftest.$ac_objext; then
31120   ac_header_compiler=yes
31121 else
31122   $as_echo "$as_me: failed program was:" >&5
31123 sed 's/^/| /' conftest.$ac_ext >&5
31124
31125         ac_header_compiler=no
31126 fi
31127
31128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31129 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31130 $as_echo "$ac_header_compiler" >&6; }
31131
31132 # Is the header present?
31133 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31134 $as_echo_n "checking $ac_header presence... " >&6; }
31135 cat >conftest.$ac_ext <<_ACEOF
31136 /* confdefs.h.  */
31137 _ACEOF
31138 cat confdefs.h >>conftest.$ac_ext
31139 cat >>conftest.$ac_ext <<_ACEOF
31140 /* end confdefs.h.  */
31141 #include <$ac_header>
31142 _ACEOF
31143 if { (ac_try="$ac_cpp conftest.$ac_ext"
31144 case "(($ac_try" in
31145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31146   *) ac_try_echo=$ac_try;;
31147 esac
31148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31149 $as_echo "$ac_try_echo") >&5
31150   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31151   ac_status=$?
31152   grep -v '^ *+' conftest.er1 >conftest.err
31153   rm -f conftest.er1
31154   cat conftest.err >&5
31155   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31156   (exit $ac_status); } >/dev/null && {
31157          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31158          test ! -s conftest.err
31159        }; then
31160   ac_header_preproc=yes
31161 else
31162   $as_echo "$as_me: failed program was:" >&5
31163 sed 's/^/| /' conftest.$ac_ext >&5
31164
31165   ac_header_preproc=no
31166 fi
31167
31168 rm -f conftest.err conftest.$ac_ext
31169 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31170 $as_echo "$ac_header_preproc" >&6; }
31171
31172 # So?  What about this header?
31173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31174   yes:no: )
31175     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31176 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31177     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31178 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31179     ac_header_preproc=yes
31180     ;;
31181   no:yes:* )
31182     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31183 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31184     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31185 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31186     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31187 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31188     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31189 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31190     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31191 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31192     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31193 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31194     ( cat <<\_ASBOX
31195 ## ------------------------------ ##
31196 ## Report this to bug-tar@gnu.org ##
31197 ## ------------------------------ ##
31198 _ASBOX
31199      ) | sed "s/^/$as_me: WARNING:     /" >&2
31200     ;;
31201 esac
31202 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31203 $as_echo_n "checking for $ac_header... " >&6; }
31204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31205   $as_echo_n "(cached) " >&6
31206 else
31207   eval "$as_ac_Header=\$ac_header_preproc"
31208 fi
31209 ac_res=`eval 'as_val=${'$as_ac_Header'}
31210                  $as_echo "$as_val"'`
31211                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31212 $as_echo "$ac_res" >&6; }
31213
31214 fi
31215 as_val=`eval 'as_val=${'$as_ac_Header'}
31216                  $as_echo "$as_val"'`
31217    if test "x$as_val" = x""yes; then
31218   cat >>confdefs.h <<_ACEOF
31219 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31220 _ACEOF
31221
31222 fi
31223
31224 done
31225
31226 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
31227 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
31228 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
31229   $as_echo_n "(cached) " >&6
31230 else
31231   if test "$cross_compiling" = yes; then
31232   ac_cv_func_malloc_0_nonnull=no
31233 else
31234   cat >conftest.$ac_ext <<_ACEOF
31235 /* confdefs.h.  */
31236 _ACEOF
31237 cat confdefs.h >>conftest.$ac_ext
31238 cat >>conftest.$ac_ext <<_ACEOF
31239 /* end confdefs.h.  */
31240 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
31241 # include <stdlib.h>
31242 #else
31243 char *malloc ();
31244 #endif
31245
31246 int
31247 main ()
31248 {
31249 return ! malloc (0);
31250   ;
31251   return 0;
31252 }
31253 _ACEOF
31254 rm -f conftest$ac_exeext
31255 if { (ac_try="$ac_link"
31256 case "(($ac_try" in
31257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31258   *) ac_try_echo=$ac_try;;
31259 esac
31260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31261 $as_echo "$ac_try_echo") >&5
31262   (eval "$ac_link") 2>&5
31263   ac_status=$?
31264   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31265   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31266   { (case "(($ac_try" in
31267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31268   *) ac_try_echo=$ac_try;;
31269 esac
31270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31271 $as_echo "$ac_try_echo") >&5
31272   (eval "$ac_try") 2>&5
31273   ac_status=$?
31274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31275   (exit $ac_status); }; }; then
31276   ac_cv_func_malloc_0_nonnull=yes
31277 else
31278   $as_echo "$as_me: program exited with status $ac_status" >&5
31279 $as_echo "$as_me: failed program was:" >&5
31280 sed 's/^/| /' conftest.$ac_ext >&5
31281
31282 ( exit $ac_status )
31283 ac_cv_func_malloc_0_nonnull=no
31284 fi
31285 rm -rf conftest.dSYM
31286 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31287 fi
31288
31289
31290 fi
31291 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
31292 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
31293 if test $ac_cv_func_malloc_0_nonnull = yes; then
31294
31295 cat >>confdefs.h <<\_ACEOF
31296 #define HAVE_MALLOC 1
31297 _ACEOF
31298
31299 else
31300   cat >>confdefs.h <<\_ACEOF
31301 #define HAVE_MALLOC 0
31302 _ACEOF
31303
31304
31305
31306
31307
31308
31309
31310
31311
31312   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
31313
31314
31315 cat >>confdefs.h <<\_ACEOF
31316 #define malloc rpl_malloc
31317 _ACEOF
31318
31319 fi
31320
31321
31322
31323
31324 cat >>confdefs.h <<\_ACEOF
31325 #define GNULIB_MALLOC_GNU 1
31326 _ACEOF
31327
31328
31329
31330   if test $gl_cv_func_malloc_posix = yes; then
31331     HAVE_MALLOC_POSIX=1
31332
31333 cat >>confdefs.h <<\_ACEOF
31334 #define HAVE_MALLOC_POSIX 1
31335 _ACEOF
31336
31337   else
31338
31339
31340
31341
31342
31343
31344
31345
31346   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
31347
31348     HAVE_MALLOC_POSIX=0
31349   fi
31350
31351
31352
31353
31354   GNULIB_MALLOC_POSIX=1
31355
31356
31357 cat >>confdefs.h <<\_ACEOF
31358 #define GNULIB_MALLOC_POSIX 1
31359 _ACEOF
31360
31361
31362
31363
31364
31365
31366
31367
31368
31369
31370
31371
31372
31373
31374
31375
31376
31377
31378
31379
31380
31381
31382
31383
31384
31385
31386
31387
31388
31389
31390
31391   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
31392
31393
31394
31395      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
31396 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
31397 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
31398   $as_echo_n "(cached) " >&6
31399 else
31400
31401                   case "$host_os" in
31402               # Guess no on AIX and OSF/1.
31403         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
31404               # Guess yes otherwise.
31405         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
31406       esac
31407       if test $LOCALE_JA != none; then
31408         if test "$cross_compiling" = yes; then
31409   :
31410 else
31411   cat >conftest.$ac_ext <<_ACEOF
31412 /* confdefs.h.  */
31413 _ACEOF
31414 cat confdefs.h >>conftest.$ac_ext
31415 cat >>conftest.$ac_ext <<_ACEOF
31416 /* end confdefs.h.  */
31417
31418 #include <locale.h>
31419 #include <string.h>
31420 #include <wchar.h>
31421 int main ()
31422 {
31423   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
31424     {
31425       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
31426       mbstate_t state;
31427       wchar_t wc;
31428
31429       memset (&state, '\0', sizeof (mbstate_t));
31430       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
31431         if (mbsinit (&state))
31432           return 1;
31433     }
31434   return 0;
31435 }
31436 _ACEOF
31437 rm -f conftest$ac_exeext
31438 if { (ac_try="$ac_link"
31439 case "(($ac_try" in
31440   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31441   *) ac_try_echo=$ac_try;;
31442 esac
31443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31444 $as_echo "$ac_try_echo") >&5
31445   (eval "$ac_link") 2>&5
31446   ac_status=$?
31447   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31448   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31449   { (case "(($ac_try" in
31450   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31451   *) ac_try_echo=$ac_try;;
31452 esac
31453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31454 $as_echo "$ac_try_echo") >&5
31455   (eval "$ac_try") 2>&5
31456   ac_status=$?
31457   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31458   (exit $ac_status); }; }; then
31459   gl_cv_func_mbrtowc_incomplete_state=yes
31460 else
31461   $as_echo "$as_me: program exited with status $ac_status" >&5
31462 $as_echo "$as_me: failed program was:" >&5
31463 sed 's/^/| /' conftest.$ac_ext >&5
31464
31465 ( exit $ac_status )
31466 gl_cv_func_mbrtowc_incomplete_state=no
31467 fi
31468 rm -rf conftest.dSYM
31469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31470 fi
31471
31472
31473       fi
31474
31475 fi
31476 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
31477 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
31478
31479
31480
31481
31482      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
31483 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
31484 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
31485   $as_echo_n "(cached) " >&6
31486 else
31487
31488                   case "$host_os" in
31489                     # Guess no on Solaris 8.
31490         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
31491                     # Guess yes otherwise.
31492         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
31493       esac
31494       if test $LOCALE_ZH_CN != none; then
31495         if test "$cross_compiling" = yes; then
31496   :
31497 else
31498   cat >conftest.$ac_ext <<_ACEOF
31499 /* confdefs.h.  */
31500 _ACEOF
31501 cat confdefs.h >>conftest.$ac_ext
31502 cat >>conftest.$ac_ext <<_ACEOF
31503 /* end confdefs.h.  */
31504
31505 #include <locale.h>
31506 #include <stdlib.h>
31507 #include <string.h>
31508 #include <wchar.h>
31509 int main ()
31510 {
31511   /* This fails on Solaris 8:
31512      mbrtowc returns 2, and sets wc to 0x00F0.
31513      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
31514   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
31515     {
31516       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
31517       mbstate_t state;
31518       wchar_t wc;
31519
31520       memset (&state, '\0', sizeof (mbstate_t));
31521       if (mbrtowc (&wc, input + 3, 6, &state) != 4
31522           && mbtowc (&wc, input + 3, 6) == 4)
31523         return 1;
31524     }
31525   return 0;
31526 }
31527 _ACEOF
31528 rm -f conftest$ac_exeext
31529 if { (ac_try="$ac_link"
31530 case "(($ac_try" in
31531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31532   *) ac_try_echo=$ac_try;;
31533 esac
31534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31535 $as_echo "$ac_try_echo") >&5
31536   (eval "$ac_link") 2>&5
31537   ac_status=$?
31538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31539   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31540   { (case "(($ac_try" in
31541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31542   *) ac_try_echo=$ac_try;;
31543 esac
31544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31545 $as_echo "$ac_try_echo") >&5
31546   (eval "$ac_try") 2>&5
31547   ac_status=$?
31548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31549   (exit $ac_status); }; }; then
31550   gl_cv_func_mbrtowc_sanitycheck=yes
31551 else
31552   $as_echo "$as_me: program exited with status $ac_status" >&5
31553 $as_echo "$as_me: failed program was:" >&5
31554 sed 's/^/| /' conftest.$ac_ext >&5
31555
31556 ( exit $ac_status )
31557 gl_cv_func_mbrtowc_sanitycheck=no
31558 fi
31559 rm -rf conftest.dSYM
31560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31561 fi
31562
31563
31564       fi
31565
31566 fi
31567 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
31568 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
31569
31570     REPLACE_MBSTATE_T=0
31571     case "$gl_cv_func_mbrtowc_incomplete_state" in
31572       *yes) ;;
31573       *) REPLACE_MBSTATE_T=1 ;;
31574     esac
31575     case "$gl_cv_func_mbrtowc_sanitycheck" in
31576       *yes) ;;
31577       *) REPLACE_MBSTATE_T=1 ;;
31578     esac
31579   else
31580     REPLACE_MBSTATE_T=1
31581   fi
31582   if test $REPLACE_MBSTATE_T = 1; then
31583
31584     :
31585
31586   fi
31587
31588   if test $REPLACE_MBSTATE_T = 1; then
31589     REPLACE_MBRTOWC=1
31590   fi
31591
31592
31593
31594
31595
31596
31597   if test $ac_cv_func_mbrtowc = no; then
31598     HAVE_MBRTOWC=0
31599   fi
31600   if test $HAVE_MBRTOWC != 0 && test $REPLACE_MBRTOWC != 1; then
31601
31602
31603
31604      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
31605 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
31606 if test "${gl_cv_func_mbrtowc_null_arg+set}" = set; then
31607   $as_echo_n "(cached) " >&6
31608 else
31609
31610                   case "$host_os" in
31611               # Guess no on OSF/1.
31612         osf*) gl_cv_func_mbrtowc_null_arg="guessing no" ;;
31613               # Guess yes otherwise.
31614         *)    gl_cv_func_mbrtowc_null_arg="guessing yes" ;;
31615       esac
31616       if test $LOCALE_FR_UTF8 != none; then
31617         if test "$cross_compiling" = yes; then
31618   :
31619 else
31620   cat >conftest.$ac_ext <<_ACEOF
31621 /* confdefs.h.  */
31622 _ACEOF
31623 cat confdefs.h >>conftest.$ac_ext
31624 cat >>conftest.$ac_ext <<_ACEOF
31625 /* end confdefs.h.  */
31626
31627 #include <locale.h>
31628 #include <string.h>
31629 #include <wchar.h>
31630 int main ()
31631 {
31632   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
31633     {
31634       mbstate_t state;
31635       wchar_t wc;
31636       int ret;
31637
31638       memset (&state, '\0', sizeof (mbstate_t));
31639       wc = (wchar_t) 0xBADFACE;
31640       mbrtowc (&wc, NULL, 5, &state);
31641       /* Check that wc was not modified.  */
31642       if (wc != (wchar_t) 0xBADFACE)
31643         return 1;
31644     }
31645   return 0;
31646 }
31647 _ACEOF
31648 rm -f conftest$ac_exeext
31649 if { (ac_try="$ac_link"
31650 case "(($ac_try" in
31651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31652   *) ac_try_echo=$ac_try;;
31653 esac
31654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31655 $as_echo "$ac_try_echo") >&5
31656   (eval "$ac_link") 2>&5
31657   ac_status=$?
31658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31659   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31660   { (case "(($ac_try" in
31661   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31662   *) ac_try_echo=$ac_try;;
31663 esac
31664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31665 $as_echo "$ac_try_echo") >&5
31666   (eval "$ac_try") 2>&5
31667   ac_status=$?
31668   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31669   (exit $ac_status); }; }; then
31670   gl_cv_func_mbrtowc_null_arg=yes
31671 else
31672   $as_echo "$as_me: program exited with status $ac_status" >&5
31673 $as_echo "$as_me: failed program was:" >&5
31674 sed 's/^/| /' conftest.$ac_ext >&5
31675
31676 ( exit $ac_status )
31677 gl_cv_func_mbrtowc_null_arg=no
31678 fi
31679 rm -rf conftest.dSYM
31680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31681 fi
31682
31683
31684       fi
31685
31686 fi
31687 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg" >&5
31688 $as_echo "$gl_cv_func_mbrtowc_null_arg" >&6; }
31689
31690
31691
31692
31693
31694      { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
31695 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
31696 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
31697   $as_echo_n "(cached) " >&6
31698 else
31699
31700                   case "$host_os" in
31701                           # Guess no on HP-UX and Solaris.
31702         hpux* | solaris*) gl_cv_func_mbrtowc_retval="guessing no" ;;
31703                           # Guess yes otherwise.
31704         *)                gl_cv_func_mbrtowc_retval="guessing yes" ;;
31705       esac
31706       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none; then
31707         if test "$cross_compiling" = yes; then
31708   :
31709 else
31710   cat >conftest.$ac_ext <<_ACEOF
31711 /* confdefs.h.  */
31712 _ACEOF
31713 cat confdefs.h >>conftest.$ac_ext
31714 cat >>conftest.$ac_ext <<_ACEOF
31715 /* end confdefs.h.  */
31716
31717 #include <locale.h>
31718 #include <string.h>
31719 #include <wchar.h>
31720 int main ()
31721 {
31722   /* This fails on Solaris.  */
31723   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
31724     {
31725       char input[] = "B\303\274\303\237er"; /* "Büßer" */
31726       mbstate_t state;
31727       wchar_t wc;
31728
31729       memset (&state, '\0', sizeof (mbstate_t));
31730       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
31731         {
31732           input[1] = '\0';
31733           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
31734             return 1;
31735         }
31736     }
31737   /* This fails on HP-UX 11.11.  */
31738   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
31739     {
31740       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
31741       mbstate_t state;
31742       wchar_t wc;
31743
31744       memset (&state, '\0', sizeof (mbstate_t));
31745       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
31746         {
31747           input[1] = '\0';
31748           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
31749             return 1;
31750         }
31751     }
31752   return 0;
31753 }
31754 _ACEOF
31755 rm -f conftest$ac_exeext
31756 if { (ac_try="$ac_link"
31757 case "(($ac_try" in
31758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31759   *) ac_try_echo=$ac_try;;
31760 esac
31761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31762 $as_echo "$ac_try_echo") >&5
31763   (eval "$ac_link") 2>&5
31764   ac_status=$?
31765   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31766   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31767   { (case "(($ac_try" in
31768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31769   *) ac_try_echo=$ac_try;;
31770 esac
31771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31772 $as_echo "$ac_try_echo") >&5
31773   (eval "$ac_try") 2>&5
31774   ac_status=$?
31775   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31776   (exit $ac_status); }; }; then
31777   gl_cv_func_mbrtowc_retval=yes
31778 else
31779   $as_echo "$as_me: program exited with status $ac_status" >&5
31780 $as_echo "$as_me: failed program was:" >&5
31781 sed 's/^/| /' conftest.$ac_ext >&5
31782
31783 ( exit $ac_status )
31784 gl_cv_func_mbrtowc_retval=no
31785 fi
31786 rm -rf conftest.dSYM
31787 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31788 fi
31789
31790
31791       fi
31792
31793 fi
31794 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
31795 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
31796
31797
31798
31799
31800      { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
31801 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
31802 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
31803   $as_echo_n "(cached) " >&6
31804 else
31805
31806                   case "$host_os" in
31807                        # Guess no on Solaris 8 and 9.
31808         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
31809                        # Guess yes otherwise.
31810         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
31811       esac
31812       if test $LOCALE_ZH_CN != none; then
31813         if test "$cross_compiling" = yes; then
31814   :
31815 else
31816   cat >conftest.$ac_ext <<_ACEOF
31817 /* confdefs.h.  */
31818 _ACEOF
31819 cat confdefs.h >>conftest.$ac_ext
31820 cat >>conftest.$ac_ext <<_ACEOF
31821 /* end confdefs.h.  */
31822
31823 #include <locale.h>
31824 #include <string.h>
31825 #include <wchar.h>
31826 int main ()
31827 {
31828   /* This fails on Solaris 8 and 9.  */
31829   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
31830     {
31831       mbstate_t state;
31832       wchar_t wc;
31833
31834       memset (&state, '\0', sizeof (mbstate_t));
31835       if (mbrtowc (&wc, "", 1, &state) != 0)
31836         return 1;
31837     }
31838   return 0;
31839 }
31840 _ACEOF
31841 rm -f conftest$ac_exeext
31842 if { (ac_try="$ac_link"
31843 case "(($ac_try" in
31844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31845   *) ac_try_echo=$ac_try;;
31846 esac
31847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31848 $as_echo "$ac_try_echo") >&5
31849   (eval "$ac_link") 2>&5
31850   ac_status=$?
31851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31852   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31853   { (case "(($ac_try" in
31854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31855   *) ac_try_echo=$ac_try;;
31856 esac
31857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31858 $as_echo "$ac_try_echo") >&5
31859   (eval "$ac_try") 2>&5
31860   ac_status=$?
31861   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31862   (exit $ac_status); }; }; then
31863   gl_cv_func_mbrtowc_nul_retval=yes
31864 else
31865   $as_echo "$as_me: program exited with status $ac_status" >&5
31866 $as_echo "$as_me: failed program was:" >&5
31867 sed 's/^/| /' conftest.$ac_ext >&5
31868
31869 ( exit $ac_status )
31870 gl_cv_func_mbrtowc_nul_retval=no
31871 fi
31872 rm -rf conftest.dSYM
31873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31874 fi
31875
31876
31877       fi
31878
31879 fi
31880 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
31881 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
31882
31883     case "$gl_cv_func_mbrtowc_null_arg" in
31884       *yes) ;;
31885       *)
31886 cat >>confdefs.h <<\_ACEOF
31887 #define MBRTOWC_NULL_ARG_BUG 1
31888 _ACEOF
31889
31890          REPLACE_MBRTOWC=1
31891          ;;
31892     esac
31893     case "$gl_cv_func_mbrtowc_retval" in
31894       *yes) ;;
31895       *)
31896 cat >>confdefs.h <<\_ACEOF
31897 #define MBRTOWC_RETVAL_BUG 1
31898 _ACEOF
31899
31900          REPLACE_MBRTOWC=1
31901          ;;
31902     esac
31903     case "$gl_cv_func_mbrtowc_nul_retval" in
31904       *yes) ;;
31905       *)
31906 cat >>confdefs.h <<\_ACEOF
31907 #define MBRTOWC_NUL_RETVAL_BUG 1
31908 _ACEOF
31909
31910          REPLACE_MBRTOWC=1
31911          ;;
31912     esac
31913   fi
31914   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
31915
31916     :
31917
31918
31919
31920
31921
31922
31923
31924
31925
31926   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
31927
31928
31929   :
31930
31931   fi
31932
31933
31934
31935   GNULIB_MBRTOWC=1
31936
31937
31938 cat >>confdefs.h <<\_ACEOF
31939 #define GNULIB_MBRTOWC 1
31940 _ACEOF
31941
31942
31943
31944
31945
31946   GNULIB_MBSCASECMP=1
31947
31948
31949 cat >>confdefs.h <<\_ACEOF
31950 #define GNULIB_MBSCASECMP 1
31951 _ACEOF
31952
31953
31954
31955
31956
31957
31958
31959
31960
31961
31962
31963
31964
31965
31966
31967
31968
31969
31970
31971
31972
31973
31974
31975   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
31976
31977
31978
31979      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
31980 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
31981 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
31982   $as_echo_n "(cached) " >&6
31983 else
31984
31985                   case "$host_os" in
31986               # Guess no on AIX and OSF/1.
31987         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
31988               # Guess yes otherwise.
31989         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
31990       esac
31991       if test $LOCALE_JA != none; then
31992         if test "$cross_compiling" = yes; then
31993   :
31994 else
31995   cat >conftest.$ac_ext <<_ACEOF
31996 /* confdefs.h.  */
31997 _ACEOF
31998 cat confdefs.h >>conftest.$ac_ext
31999 cat >>conftest.$ac_ext <<_ACEOF
32000 /* end confdefs.h.  */
32001
32002 #include <locale.h>
32003 #include <string.h>
32004 #include <wchar.h>
32005 int main ()
32006 {
32007   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32008     {
32009       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
32010       mbstate_t state;
32011       wchar_t wc;
32012
32013       memset (&state, '\0', sizeof (mbstate_t));
32014       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
32015         if (mbsinit (&state))
32016           return 1;
32017     }
32018   return 0;
32019 }
32020 _ACEOF
32021 rm -f conftest$ac_exeext
32022 if { (ac_try="$ac_link"
32023 case "(($ac_try" in
32024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32025   *) ac_try_echo=$ac_try;;
32026 esac
32027 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32028 $as_echo "$ac_try_echo") >&5
32029   (eval "$ac_link") 2>&5
32030   ac_status=$?
32031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32032   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32033   { (case "(($ac_try" in
32034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32035   *) ac_try_echo=$ac_try;;
32036 esac
32037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32038 $as_echo "$ac_try_echo") >&5
32039   (eval "$ac_try") 2>&5
32040   ac_status=$?
32041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042   (exit $ac_status); }; }; then
32043   gl_cv_func_mbrtowc_incomplete_state=yes
32044 else
32045   $as_echo "$as_me: program exited with status $ac_status" >&5
32046 $as_echo "$as_me: failed program was:" >&5
32047 sed 's/^/| /' conftest.$ac_ext >&5
32048
32049 ( exit $ac_status )
32050 gl_cv_func_mbrtowc_incomplete_state=no
32051 fi
32052 rm -rf conftest.dSYM
32053 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32054 fi
32055
32056
32057       fi
32058
32059 fi
32060 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
32061 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
32062
32063
32064
32065
32066      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
32067 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
32068 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
32069   $as_echo_n "(cached) " >&6
32070 else
32071
32072                   case "$host_os" in
32073                     # Guess no on Solaris 8.
32074         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
32075                     # Guess yes otherwise.
32076         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
32077       esac
32078       if test $LOCALE_ZH_CN != none; then
32079         if test "$cross_compiling" = yes; then
32080   :
32081 else
32082   cat >conftest.$ac_ext <<_ACEOF
32083 /* confdefs.h.  */
32084 _ACEOF
32085 cat confdefs.h >>conftest.$ac_ext
32086 cat >>conftest.$ac_ext <<_ACEOF
32087 /* end confdefs.h.  */
32088
32089 #include <locale.h>
32090 #include <stdlib.h>
32091 #include <string.h>
32092 #include <wchar.h>
32093 int main ()
32094 {
32095   /* This fails on Solaris 8:
32096      mbrtowc returns 2, and sets wc to 0x00F0.
32097      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
32098   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32099     {
32100       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
32101       mbstate_t state;
32102       wchar_t wc;
32103
32104       memset (&state, '\0', sizeof (mbstate_t));
32105       if (mbrtowc (&wc, input + 3, 6, &state) != 4
32106           && mbtowc (&wc, input + 3, 6) == 4)
32107         return 1;
32108     }
32109   return 0;
32110 }
32111 _ACEOF
32112 rm -f conftest$ac_exeext
32113 if { (ac_try="$ac_link"
32114 case "(($ac_try" in
32115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32116   *) ac_try_echo=$ac_try;;
32117 esac
32118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32119 $as_echo "$ac_try_echo") >&5
32120   (eval "$ac_link") 2>&5
32121   ac_status=$?
32122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32123   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32124   { (case "(($ac_try" in
32125   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32126   *) ac_try_echo=$ac_try;;
32127 esac
32128 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32129 $as_echo "$ac_try_echo") >&5
32130   (eval "$ac_try") 2>&5
32131   ac_status=$?
32132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32133   (exit $ac_status); }; }; then
32134   gl_cv_func_mbrtowc_sanitycheck=yes
32135 else
32136   $as_echo "$as_me: program exited with status $ac_status" >&5
32137 $as_echo "$as_me: failed program was:" >&5
32138 sed 's/^/| /' conftest.$ac_ext >&5
32139
32140 ( exit $ac_status )
32141 gl_cv_func_mbrtowc_sanitycheck=no
32142 fi
32143 rm -rf conftest.dSYM
32144 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32145 fi
32146
32147
32148       fi
32149
32150 fi
32151 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
32152 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
32153
32154     REPLACE_MBSTATE_T=0
32155     case "$gl_cv_func_mbrtowc_incomplete_state" in
32156       *yes) ;;
32157       *) REPLACE_MBSTATE_T=1 ;;
32158     esac
32159     case "$gl_cv_func_mbrtowc_sanitycheck" in
32160       *yes) ;;
32161       *) REPLACE_MBSTATE_T=1 ;;
32162     esac
32163   else
32164     REPLACE_MBSTATE_T=1
32165   fi
32166   if test $REPLACE_MBSTATE_T = 1; then
32167
32168     :
32169
32170   fi
32171
32172   if test $REPLACE_MBSTATE_T = 1; then
32173     REPLACE_MBSINIT=1
32174   fi
32175
32176
32177
32178
32179
32180
32181   if test $ac_cv_func_mbsinit = no; then
32182     HAVE_MBSINIT=0
32183   fi
32184   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
32185
32186     :
32187
32188
32189
32190
32191
32192
32193
32194
32195
32196   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
32197
32198
32199   :
32200
32201   fi
32202
32203
32204
32205   GNULIB_MBSINIT=1
32206
32207
32208 cat >>confdefs.h <<\_ACEOF
32209 #define GNULIB_MBSINIT 1
32210 _ACEOF
32211
32212
32213
32214
32215
32216
32217
32218
32219
32220
32221
32222
32223
32224
32225
32226
32227
32228
32229
32230
32231
32232
32233
32234   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
32235
32236
32237
32238      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
32239 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
32240 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
32241   $as_echo_n "(cached) " >&6
32242 else
32243
32244                   case "$host_os" in
32245               # Guess no on AIX and OSF/1.
32246         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
32247               # Guess yes otherwise.
32248         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
32249       esac
32250       if test $LOCALE_JA != none; then
32251         if test "$cross_compiling" = yes; then
32252   :
32253 else
32254   cat >conftest.$ac_ext <<_ACEOF
32255 /* confdefs.h.  */
32256 _ACEOF
32257 cat confdefs.h >>conftest.$ac_ext
32258 cat >>conftest.$ac_ext <<_ACEOF
32259 /* end confdefs.h.  */
32260
32261 #include <locale.h>
32262 #include <string.h>
32263 #include <wchar.h>
32264 int main ()
32265 {
32266   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32267     {
32268       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
32269       mbstate_t state;
32270       wchar_t wc;
32271
32272       memset (&state, '\0', sizeof (mbstate_t));
32273       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
32274         if (mbsinit (&state))
32275           return 1;
32276     }
32277   return 0;
32278 }
32279 _ACEOF
32280 rm -f conftest$ac_exeext
32281 if { (ac_try="$ac_link"
32282 case "(($ac_try" in
32283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32284   *) ac_try_echo=$ac_try;;
32285 esac
32286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32287 $as_echo "$ac_try_echo") >&5
32288   (eval "$ac_link") 2>&5
32289   ac_status=$?
32290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32291   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32292   { (case "(($ac_try" in
32293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32294   *) ac_try_echo=$ac_try;;
32295 esac
32296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32297 $as_echo "$ac_try_echo") >&5
32298   (eval "$ac_try") 2>&5
32299   ac_status=$?
32300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32301   (exit $ac_status); }; }; then
32302   gl_cv_func_mbrtowc_incomplete_state=yes
32303 else
32304   $as_echo "$as_me: program exited with status $ac_status" >&5
32305 $as_echo "$as_me: failed program was:" >&5
32306 sed 's/^/| /' conftest.$ac_ext >&5
32307
32308 ( exit $ac_status )
32309 gl_cv_func_mbrtowc_incomplete_state=no
32310 fi
32311 rm -rf conftest.dSYM
32312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32313 fi
32314
32315
32316       fi
32317
32318 fi
32319 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
32320 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
32321
32322
32323
32324
32325      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
32326 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
32327 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
32328   $as_echo_n "(cached) " >&6
32329 else
32330
32331                   case "$host_os" in
32332                     # Guess no on Solaris 8.
32333         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
32334                     # Guess yes otherwise.
32335         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
32336       esac
32337       if test $LOCALE_ZH_CN != none; then
32338         if test "$cross_compiling" = yes; then
32339   :
32340 else
32341   cat >conftest.$ac_ext <<_ACEOF
32342 /* confdefs.h.  */
32343 _ACEOF
32344 cat confdefs.h >>conftest.$ac_ext
32345 cat >>conftest.$ac_ext <<_ACEOF
32346 /* end confdefs.h.  */
32347
32348 #include <locale.h>
32349 #include <stdlib.h>
32350 #include <string.h>
32351 #include <wchar.h>
32352 int main ()
32353 {
32354   /* This fails on Solaris 8:
32355      mbrtowc returns 2, and sets wc to 0x00F0.
32356      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
32357   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32358     {
32359       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
32360       mbstate_t state;
32361       wchar_t wc;
32362
32363       memset (&state, '\0', sizeof (mbstate_t));
32364       if (mbrtowc (&wc, input + 3, 6, &state) != 4
32365           && mbtowc (&wc, input + 3, 6) == 4)
32366         return 1;
32367     }
32368   return 0;
32369 }
32370 _ACEOF
32371 rm -f conftest$ac_exeext
32372 if { (ac_try="$ac_link"
32373 case "(($ac_try" in
32374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32375   *) ac_try_echo=$ac_try;;
32376 esac
32377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32378 $as_echo "$ac_try_echo") >&5
32379   (eval "$ac_link") 2>&5
32380   ac_status=$?
32381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32382   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32383   { (case "(($ac_try" in
32384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32385   *) ac_try_echo=$ac_try;;
32386 esac
32387 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32388 $as_echo "$ac_try_echo") >&5
32389   (eval "$ac_try") 2>&5
32390   ac_status=$?
32391   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32392   (exit $ac_status); }; }; then
32393   gl_cv_func_mbrtowc_sanitycheck=yes
32394 else
32395   $as_echo "$as_me: program exited with status $ac_status" >&5
32396 $as_echo "$as_me: failed program was:" >&5
32397 sed 's/^/| /' conftest.$ac_ext >&5
32398
32399 ( exit $ac_status )
32400 gl_cv_func_mbrtowc_sanitycheck=no
32401 fi
32402 rm -rf conftest.dSYM
32403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32404 fi
32405
32406
32407       fi
32408
32409 fi
32410 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
32411 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
32412
32413     REPLACE_MBSTATE_T=0
32414     case "$gl_cv_func_mbrtowc_incomplete_state" in
32415       *yes) ;;
32416       *) REPLACE_MBSTATE_T=1 ;;
32417     esac
32418     case "$gl_cv_func_mbrtowc_sanitycheck" in
32419       *yes) ;;
32420       *) REPLACE_MBSTATE_T=1 ;;
32421     esac
32422   else
32423     REPLACE_MBSTATE_T=1
32424   fi
32425   if test $REPLACE_MBSTATE_T = 1; then
32426
32427     :
32428
32429   fi
32430
32431   if test $REPLACE_MBSTATE_T = 1; then
32432     REPLACE_MBSRTOWCS=1
32433   fi
32434
32435
32436
32437
32438
32439
32440   if test $ac_cv_func_mbsrtowcs = no; then
32441     HAVE_MBSRTOWCS=0
32442   fi
32443   if test $HAVE_MBSRTOWCS != 0 && test $REPLACE_MBSRTOWCS != 1; then
32444
32445
32446
32447
32448
32449      { $as_echo "$as_me:$LINENO: checking whether mbsrtowcs works" >&5
32450 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
32451 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then
32452   $as_echo_n "(cached) " >&6
32453 else
32454
32455                   case "$host_os" in
32456                           # Guess no on HP-UX and Solaris.
32457         hpux* | solaris*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
32458                           # Guess yes otherwise.
32459         *)                gl_cv_func_mbsrtowcs_works="guessing yes" ;;
32460       esac
32461       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
32462         if test "$cross_compiling" = yes; then
32463   :
32464 else
32465   cat >conftest.$ac_ext <<_ACEOF
32466 /* confdefs.h.  */
32467 _ACEOF
32468 cat confdefs.h >>conftest.$ac_ext
32469 cat >>conftest.$ac_ext <<_ACEOF
32470 /* end confdefs.h.  */
32471
32472 #include <locale.h>
32473 #include <string.h>
32474 #include <wchar.h>
32475 int main ()
32476 {
32477   /* Test whether the function works when started with a conversion state
32478      in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
32479   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
32480     {
32481       const char input[] = "B\303\274\303\237er";
32482       mbstate_t state;
32483
32484       memset (&state, '\0', sizeof (mbstate_t));
32485       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
32486         if (!mbsinit (&state))
32487           {
32488             const char *src = input + 2;
32489             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
32490               return 1;
32491           }
32492     }
32493   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
32494     {
32495       const char input[] = "<\306\374\313\334\270\354>";
32496       mbstate_t state;
32497
32498       memset (&state, '\0', sizeof (mbstate_t));
32499       if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
32500         if (!mbsinit (&state))
32501           {
32502             const char *src = input + 4;
32503             if (mbsrtowcs (NULL, &src, 10, &state) != 3)
32504               return 1;
32505           }
32506     }
32507   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
32508     {
32509       const char input[] = "B\250\271\201\060\211\070er";
32510       mbstate_t state;
32511
32512       memset (&state, '\0', sizeof (mbstate_t));
32513       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
32514         if (!mbsinit (&state))
32515           {
32516             const char *src = input + 2;
32517             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
32518               return 1;
32519           }
32520     }
32521   return 0;
32522 }
32523 _ACEOF
32524 rm -f conftest$ac_exeext
32525 if { (ac_try="$ac_link"
32526 case "(($ac_try" in
32527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32528   *) ac_try_echo=$ac_try;;
32529 esac
32530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32531 $as_echo "$ac_try_echo") >&5
32532   (eval "$ac_link") 2>&5
32533   ac_status=$?
32534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32535   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32536   { (case "(($ac_try" in
32537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32538   *) ac_try_echo=$ac_try;;
32539 esac
32540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32541 $as_echo "$ac_try_echo") >&5
32542   (eval "$ac_try") 2>&5
32543   ac_status=$?
32544   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32545   (exit $ac_status); }; }; then
32546   gl_cv_func_mbsrtowcs_works=yes
32547 else
32548   $as_echo "$as_me: program exited with status $ac_status" >&5
32549 $as_echo "$as_me: failed program was:" >&5
32550 sed 's/^/| /' conftest.$ac_ext >&5
32551
32552 ( exit $ac_status )
32553 gl_cv_func_mbsrtowcs_works=no
32554 fi
32555 rm -rf conftest.dSYM
32556 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32557 fi
32558
32559
32560       fi
32561
32562 fi
32563 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbsrtowcs_works" >&5
32564 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
32565
32566     case "$gl_cv_func_mbsrtowcs_works" in
32567       *yes) ;;
32568       *) REPLACE_MBSRTOWCS=1 ;;
32569     esac
32570   fi
32571   if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
32572
32573     :
32574
32575
32576
32577
32578
32579
32580
32581
32582
32583   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
32584
32585
32586
32587
32588
32589
32590
32591
32592
32593   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
32594
32595
32596   :
32597
32598   fi
32599
32600
32601
32602   GNULIB_MBSRTOWCS=1
32603
32604
32605 cat >>confdefs.h <<\_ACEOF
32606 #define GNULIB_MBSRTOWCS 1
32607 _ACEOF
32608
32609
32610
32611
32612
32613
32614
32615   :
32616
32617
32618
32619
32620   GNULIB_MEMCHR=1
32621
32622
32623 cat >>confdefs.h <<\_ACEOF
32624 #define GNULIB_MEMCHR 1
32625 _ACEOF
32626
32627
32628
32629
32630
32631
32632
32633
32634
32635
32636
32637
32638
32639
32640
32641
32642
32643
32644 for ac_func in mempcpy
32645 do
32646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32647 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32648 $as_echo_n "checking for $ac_func... " >&6; }
32649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32650   $as_echo_n "(cached) " >&6
32651 else
32652   cat >conftest.$ac_ext <<_ACEOF
32653 /* confdefs.h.  */
32654 _ACEOF
32655 cat confdefs.h >>conftest.$ac_ext
32656 cat >>conftest.$ac_ext <<_ACEOF
32657 /* end confdefs.h.  */
32658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32660 #define $ac_func innocuous_$ac_func
32661
32662 /* System header to define __stub macros and hopefully few prototypes,
32663     which can conflict with char $ac_func (); below.
32664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32665     <limits.h> exists even on freestanding compilers.  */
32666
32667 #ifdef __STDC__
32668 # include <limits.h>
32669 #else
32670 # include <assert.h>
32671 #endif
32672
32673 #undef $ac_func
32674
32675 /* Override any GCC internal prototype to avoid an error.
32676    Use char because int might match the return type of a GCC
32677    builtin and then its argument prototype would still apply.  */
32678 #ifdef __cplusplus
32679 extern "C"
32680 #endif
32681 char $ac_func ();
32682 /* The GNU C library defines this for functions which it implements
32683     to always fail with ENOSYS.  Some functions are actually named
32684     something starting with __ and the normal name is an alias.  */
32685 #if defined __stub_$ac_func || defined __stub___$ac_func
32686 choke me
32687 #endif
32688
32689 int
32690 main ()
32691 {
32692 return $ac_func ();
32693   ;
32694   return 0;
32695 }
32696 _ACEOF
32697 rm -f conftest.$ac_objext conftest$ac_exeext
32698 if { (ac_try="$ac_link"
32699 case "(($ac_try" in
32700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32701   *) ac_try_echo=$ac_try;;
32702 esac
32703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32704 $as_echo "$ac_try_echo") >&5
32705   (eval "$ac_link") 2>conftest.er1
32706   ac_status=$?
32707   grep -v '^ *+' conftest.er1 >conftest.err
32708   rm -f conftest.er1
32709   cat conftest.err >&5
32710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32711   (exit $ac_status); } && {
32712          test -z "$ac_c_werror_flag" ||
32713          test ! -s conftest.err
32714        } && test -s conftest$ac_exeext && {
32715          test "$cross_compiling" = yes ||
32716          $as_test_x conftest$ac_exeext
32717        }; then
32718   eval "$as_ac_var=yes"
32719 else
32720   $as_echo "$as_me: failed program was:" >&5
32721 sed 's/^/| /' conftest.$ac_ext >&5
32722
32723         eval "$as_ac_var=no"
32724 fi
32725
32726 rm -rf conftest.dSYM
32727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32728       conftest$ac_exeext conftest.$ac_ext
32729 fi
32730 ac_res=`eval 'as_val=${'$as_ac_var'}
32731                  $as_echo "$as_val"'`
32732                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32733 $as_echo "$ac_res" >&6; }
32734 as_val=`eval 'as_val=${'$as_ac_var'}
32735                  $as_echo "$as_val"'`
32736    if test "x$as_val" = x""yes; then
32737   cat >>confdefs.h <<_ACEOF
32738 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32739 _ACEOF
32740
32741 else
32742
32743     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32744
32745 fi
32746 done
32747
32748
32749   if test $ac_cv_func_mempcpy = no; then
32750     HAVE_MEMPCPY=0
32751
32752   :
32753
32754   fi
32755
32756
32757
32758   GNULIB_MEMPCPY=1
32759
32760
32761 cat >>confdefs.h <<\_ACEOF
32762 #define GNULIB_MEMPCPY 1
32763 _ACEOF
32764
32765
32766
32767
32768
32769
32770
32771
32772
32773
32774
32775   if test $ac_cv_have_decl_memrchr = no; then
32776     HAVE_DECL_MEMRCHR=0
32777   fi
32778
32779
32780
32781
32782
32783
32784
32785
32786
32787
32788 for ac_func in memrchr
32789 do
32790 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32791 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
32792 $as_echo_n "checking for $ac_func... " >&6; }
32793 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
32794   $as_echo_n "(cached) " >&6
32795 else
32796   cat >conftest.$ac_ext <<_ACEOF
32797 /* confdefs.h.  */
32798 _ACEOF
32799 cat confdefs.h >>conftest.$ac_ext
32800 cat >>conftest.$ac_ext <<_ACEOF
32801 /* end confdefs.h.  */
32802 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
32803    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
32804 #define $ac_func innocuous_$ac_func
32805
32806 /* System header to define __stub macros and hopefully few prototypes,
32807     which can conflict with char $ac_func (); below.
32808     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
32809     <limits.h> exists even on freestanding compilers.  */
32810
32811 #ifdef __STDC__
32812 # include <limits.h>
32813 #else
32814 # include <assert.h>
32815 #endif
32816
32817 #undef $ac_func
32818
32819 /* Override any GCC internal prototype to avoid an error.
32820    Use char because int might match the return type of a GCC
32821    builtin and then its argument prototype would still apply.  */
32822 #ifdef __cplusplus
32823 extern "C"
32824 #endif
32825 char $ac_func ();
32826 /* The GNU C library defines this for functions which it implements
32827     to always fail with ENOSYS.  Some functions are actually named
32828     something starting with __ and the normal name is an alias.  */
32829 #if defined __stub_$ac_func || defined __stub___$ac_func
32830 choke me
32831 #endif
32832
32833 int
32834 main ()
32835 {
32836 return $ac_func ();
32837   ;
32838   return 0;
32839 }
32840 _ACEOF
32841 rm -f conftest.$ac_objext conftest$ac_exeext
32842 if { (ac_try="$ac_link"
32843 case "(($ac_try" in
32844   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32845   *) ac_try_echo=$ac_try;;
32846 esac
32847 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32848 $as_echo "$ac_try_echo") >&5
32849   (eval "$ac_link") 2>conftest.er1
32850   ac_status=$?
32851   grep -v '^ *+' conftest.er1 >conftest.err
32852   rm -f conftest.er1
32853   cat conftest.err >&5
32854   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32855   (exit $ac_status); } && {
32856          test -z "$ac_c_werror_flag" ||
32857          test ! -s conftest.err
32858        } && test -s conftest$ac_exeext && {
32859          test "$cross_compiling" = yes ||
32860          $as_test_x conftest$ac_exeext
32861        }; then
32862   eval "$as_ac_var=yes"
32863 else
32864   $as_echo "$as_me: failed program was:" >&5
32865 sed 's/^/| /' conftest.$ac_ext >&5
32866
32867         eval "$as_ac_var=no"
32868 fi
32869
32870 rm -rf conftest.dSYM
32871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
32872       conftest$ac_exeext conftest.$ac_ext
32873 fi
32874 ac_res=`eval 'as_val=${'$as_ac_var'}
32875                  $as_echo "$as_val"'`
32876                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32877 $as_echo "$ac_res" >&6; }
32878 as_val=`eval 'as_val=${'$as_ac_var'}
32879                  $as_echo "$as_val"'`
32880    if test "x$as_val" = x""yes; then
32881   cat >>confdefs.h <<_ACEOF
32882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32883 _ACEOF
32884
32885 else
32886
32887     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
32888
32889 fi
32890 done
32891
32892
32893   if test $ac_cv_func_memrchr = no; then
32894     :
32895   fi
32896
32897
32898
32899   GNULIB_MEMRCHR=1
32900
32901
32902 cat >>confdefs.h <<\_ACEOF
32903 #define GNULIB_MEMRCHR 1
32904 _ACEOF
32905
32906
32907
32908
32909
32910
32911
32912
32913
32914
32915   { $as_echo "$as_me:$LINENO: checking whether mkdir handles trailing slash" >&5
32916 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
32917 if test "${gl_cv_func_mkdir_trailing_slash_works+set}" = set; then
32918   $as_echo_n "(cached) " >&6
32919 else
32920   rm -rf conftest.dir
32921       if test "$cross_compiling" = yes; then
32922   gl_cv_func_mkdir_trailing_slash_works="guessing no"
32923 else
32924   cat >conftest.$ac_ext <<_ACEOF
32925 /* confdefs.h.  */
32926 _ACEOF
32927 cat confdefs.h >>conftest.$ac_ext
32928 cat >>conftest.$ac_ext <<_ACEOF
32929 /* end confdefs.h.  */
32930
32931 #       include <sys/types.h>
32932 #       include <sys/stat.h>
32933
32934 int
32935 main ()
32936 {
32937 return mkdir ("conftest.dir/", 0700);
32938   ;
32939   return 0;
32940 }
32941 _ACEOF
32942 rm -f conftest$ac_exeext
32943 if { (ac_try="$ac_link"
32944 case "(($ac_try" in
32945   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32946   *) ac_try_echo=$ac_try;;
32947 esac
32948 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32949 $as_echo "$ac_try_echo") >&5
32950   (eval "$ac_link") 2>&5
32951   ac_status=$?
32952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32953   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32954   { (case "(($ac_try" in
32955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32956   *) ac_try_echo=$ac_try;;
32957 esac
32958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32959 $as_echo "$ac_try_echo") >&5
32960   (eval "$ac_try") 2>&5
32961   ac_status=$?
32962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32963   (exit $ac_status); }; }; then
32964   gl_cv_func_mkdir_trailing_slash_works=yes
32965 else
32966   $as_echo "$as_me: program exited with status $ac_status" >&5
32967 $as_echo "$as_me: failed program was:" >&5
32968 sed 's/^/| /' conftest.$ac_ext >&5
32969
32970 ( exit $ac_status )
32971 gl_cv_func_mkdir_trailing_slash_works=no
32972 fi
32973 rm -rf conftest.dSYM
32974 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32975 fi
32976
32977
32978     rm -rf conftest.dir
32979
32980
32981 fi
32982 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
32983 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
32984   if test "$gl_cv_func_mkdir_trailing_slash_works" != yes; then
32985     REPLACE_MKDIR=1
32986
32987
32988
32989
32990
32991
32992
32993
32994   gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
32995
32996   fi
32997
32998   { $as_echo "$as_me:$LINENO: checking whether mkdir handles trailing dot" >&5
32999 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
33000 if test "${gl_cv_func_mkdir_trailing_dot_works+set}" = set; then
33001   $as_echo_n "(cached) " >&6
33002 else
33003   rm -rf conftest.dir
33004       if test "$cross_compiling" = yes; then
33005   gl_cv_func_mkdir_trailing_dot_works="guessing no"
33006 else
33007   cat >conftest.$ac_ext <<_ACEOF
33008 /* confdefs.h.  */
33009 _ACEOF
33010 cat confdefs.h >>conftest.$ac_ext
33011 cat >>conftest.$ac_ext <<_ACEOF
33012 /* end confdefs.h.  */
33013
33014 #       include <sys/types.h>
33015 #       include <sys/stat.h>
33016
33017 int
33018 main ()
33019 {
33020 return !mkdir ("conftest.dir/./", 0700);
33021   ;
33022   return 0;
33023 }
33024 _ACEOF
33025 rm -f conftest$ac_exeext
33026 if { (ac_try="$ac_link"
33027 case "(($ac_try" in
33028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33029   *) ac_try_echo=$ac_try;;
33030 esac
33031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33032 $as_echo "$ac_try_echo") >&5
33033   (eval "$ac_link") 2>&5
33034   ac_status=$?
33035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33036   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33037   { (case "(($ac_try" in
33038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33039   *) ac_try_echo=$ac_try;;
33040 esac
33041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33042 $as_echo "$ac_try_echo") >&5
33043   (eval "$ac_try") 2>&5
33044   ac_status=$?
33045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33046   (exit $ac_status); }; }; then
33047   gl_cv_func_mkdir_trailing_dot_works=yes
33048 else
33049   $as_echo "$as_me: program exited with status $ac_status" >&5
33050 $as_echo "$as_me: failed program was:" >&5
33051 sed 's/^/| /' conftest.$ac_ext >&5
33052
33053 ( exit $ac_status )
33054 gl_cv_func_mkdir_trailing_dot_works=no
33055 fi
33056 rm -rf conftest.dSYM
33057 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33058 fi
33059
33060
33061     rm -rf conftest.dir
33062
33063
33064 fi
33065 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
33066 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
33067   if test "$gl_cv_func_mkdir_trailing_dot_works" != yes; then
33068     REPLACE_MKDIR=1
33069
33070
33071
33072
33073
33074
33075
33076
33077   gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
33078
33079
33080 cat >>confdefs.h <<\_ACEOF
33081 #define FUNC_MKDIR_DOT_BUG 1
33082 _ACEOF
33083
33084   fi
33085
33086
33087
33088
33089
33090
33091
33092
33093
33094
33095
33096
33097 for ac_func in mkdtemp
33098 do
33099 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33100 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33101 $as_echo_n "checking for $ac_func... " >&6; }
33102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33103   $as_echo_n "(cached) " >&6
33104 else
33105   cat >conftest.$ac_ext <<_ACEOF
33106 /* confdefs.h.  */
33107 _ACEOF
33108 cat confdefs.h >>conftest.$ac_ext
33109 cat >>conftest.$ac_ext <<_ACEOF
33110 /* end confdefs.h.  */
33111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33112    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33113 #define $ac_func innocuous_$ac_func
33114
33115 /* System header to define __stub macros and hopefully few prototypes,
33116     which can conflict with char $ac_func (); below.
33117     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33118     <limits.h> exists even on freestanding compilers.  */
33119
33120 #ifdef __STDC__
33121 # include <limits.h>
33122 #else
33123 # include <assert.h>
33124 #endif
33125
33126 #undef $ac_func
33127
33128 /* Override any GCC internal prototype to avoid an error.
33129    Use char because int might match the return type of a GCC
33130    builtin and then its argument prototype would still apply.  */
33131 #ifdef __cplusplus
33132 extern "C"
33133 #endif
33134 char $ac_func ();
33135 /* The GNU C library defines this for functions which it implements
33136     to always fail with ENOSYS.  Some functions are actually named
33137     something starting with __ and the normal name is an alias.  */
33138 #if defined __stub_$ac_func || defined __stub___$ac_func
33139 choke me
33140 #endif
33141
33142 int
33143 main ()
33144 {
33145 return $ac_func ();
33146   ;
33147   return 0;
33148 }
33149 _ACEOF
33150 rm -f conftest.$ac_objext conftest$ac_exeext
33151 if { (ac_try="$ac_link"
33152 case "(($ac_try" in
33153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33154   *) ac_try_echo=$ac_try;;
33155 esac
33156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33157 $as_echo "$ac_try_echo") >&5
33158   (eval "$ac_link") 2>conftest.er1
33159   ac_status=$?
33160   grep -v '^ *+' conftest.er1 >conftest.err
33161   rm -f conftest.er1
33162   cat conftest.err >&5
33163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33164   (exit $ac_status); } && {
33165          test -z "$ac_c_werror_flag" ||
33166          test ! -s conftest.err
33167        } && test -s conftest$ac_exeext && {
33168          test "$cross_compiling" = yes ||
33169          $as_test_x conftest$ac_exeext
33170        }; then
33171   eval "$as_ac_var=yes"
33172 else
33173   $as_echo "$as_me: failed program was:" >&5
33174 sed 's/^/| /' conftest.$ac_ext >&5
33175
33176         eval "$as_ac_var=no"
33177 fi
33178
33179 rm -rf conftest.dSYM
33180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33181       conftest$ac_exeext conftest.$ac_ext
33182 fi
33183 ac_res=`eval 'as_val=${'$as_ac_var'}
33184                  $as_echo "$as_val"'`
33185                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33186 $as_echo "$ac_res" >&6; }
33187 as_val=`eval 'as_val=${'$as_ac_var'}
33188                  $as_echo "$as_val"'`
33189    if test "x$as_val" = x""yes; then
33190   cat >>confdefs.h <<_ACEOF
33191 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33192 _ACEOF
33193
33194 else
33195
33196     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33197
33198 fi
33199 done
33200
33201
33202   if test $ac_cv_func_mkdtemp = no; then
33203     HAVE_MKDTEMP=0
33204     :
33205
33206   fi
33207
33208
33209
33210   GNULIB_MKDTEMP=1
33211
33212
33213 cat >>confdefs.h <<\_ACEOF
33214 #define GNULIB_MKDTEMP 1
33215 _ACEOF
33216
33217
33218
33219
33220
33221
33222
33223
33224
33225
33226
33227
33228
33229
33230
33231
33232
33233
33234 if test $APPLE_UNIVERSAL_BUILD = 1; then
33235   # A universal build on Apple MacOS X platforms.
33236   # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
33237   # But we need a configuration result that is valid in both modes.
33238   ac_cv_func_working_mktime=no
33239 fi
33240 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
33241 $as_echo_n "checking for working mktime... " >&6; }
33242 if test "${ac_cv_func_working_mktime+set}" = set; then
33243   $as_echo_n "(cached) " >&6
33244 else
33245   if test "$cross_compiling" = yes; then
33246   ac_cv_func_working_mktime=no
33247 else
33248   cat >conftest.$ac_ext <<_ACEOF
33249 /* confdefs.h.  */
33250 _ACEOF
33251 cat confdefs.h >>conftest.$ac_ext
33252 cat >>conftest.$ac_ext <<_ACEOF
33253 /* end confdefs.h.  */
33254 /* Test program from Paul Eggert and Tony Leneis.  */
33255 #include <limits.h>
33256 #include <stdlib.h>
33257 #include <time.h>
33258
33259 #ifdef HAVE_UNISTD_H
33260 # include <unistd.h>
33261 #endif
33262
33263 #ifndef HAVE_ALARM
33264 # define alarm(X) /* empty */
33265 #endif
33266
33267 /* Work around redefinition to rpl_putenv by other config tests.  */
33268 #undef putenv
33269
33270 static time_t time_t_max;
33271 static time_t time_t_min;
33272
33273 /* Values we'll use to set the TZ environment variable.  */
33274 static char *tz_strings[] = {
33275   (char *) 0, "TZ=GMT0", "TZ=JST-9",
33276   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
33277 };
33278 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
33279
33280 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
33281    Based on a problem report from Andreas Jaeger.  */
33282 static int
33283 spring_forward_gap ()
33284 {
33285   /* glibc (up to about 1998-10-07) failed this test. */
33286   struct tm tm;
33287
33288   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
33289      instead of "TZ=America/Vancouver" in order to detect the bug even
33290      on systems that don't support the Olson extension, or don't have the
33291      full zoneinfo tables installed.  */
33292   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
33293
33294   tm.tm_year = 98;
33295   tm.tm_mon = 3;
33296   tm.tm_mday = 5;
33297   tm.tm_hour = 2;
33298   tm.tm_min = 0;
33299   tm.tm_sec = 0;
33300   tm.tm_isdst = -1;
33301   return mktime (&tm) != (time_t) -1;
33302 }
33303
33304 static int
33305 mktime_test1 (time_t now)
33306 {
33307   struct tm *lt;
33308   return ! (lt = localtime (&now)) || mktime (lt) == now;
33309 }
33310
33311 static int
33312 mktime_test (time_t now)
33313 {
33314   return (mktime_test1 (now)
33315           && mktime_test1 ((time_t) (time_t_max - now))
33316           && mktime_test1 ((time_t) (time_t_min + now)));
33317 }
33318
33319 static int
33320 irix_6_4_bug ()
33321 {
33322   /* Based on code from Ariel Faigon.  */
33323   struct tm tm;
33324   tm.tm_year = 96;
33325   tm.tm_mon = 3;
33326   tm.tm_mday = 0;
33327   tm.tm_hour = 0;
33328   tm.tm_min = 0;
33329   tm.tm_sec = 0;
33330   tm.tm_isdst = -1;
33331   mktime (&tm);
33332   return tm.tm_mon == 2 && tm.tm_mday == 31;
33333 }
33334
33335 static int
33336 bigtime_test (int j)
33337 {
33338   struct tm tm;
33339   time_t now;
33340   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
33341   now = mktime (&tm);
33342   if (now != (time_t) -1)
33343     {
33344       struct tm *lt = localtime (&now);
33345       if (! (lt
33346              && lt->tm_year == tm.tm_year
33347              && lt->tm_mon == tm.tm_mon
33348              && lt->tm_mday == tm.tm_mday
33349              && lt->tm_hour == tm.tm_hour
33350              && lt->tm_min == tm.tm_min
33351              && lt->tm_sec == tm.tm_sec
33352              && lt->tm_yday == tm.tm_yday
33353              && lt->tm_wday == tm.tm_wday
33354              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
33355                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
33356         return 0;
33357     }
33358   return 1;
33359 }
33360
33361 static int
33362 year_2050_test ()
33363 {
33364   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
33365      ignoring leap seconds.  */
33366   unsigned long int answer = 2527315200UL;
33367
33368   struct tm tm;
33369   time_t t;
33370   tm.tm_year = 2050 - 1900;
33371   tm.tm_mon = 2 - 1;
33372   tm.tm_mday = 1;
33373   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
33374   tm.tm_isdst = -1;
33375
33376   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
33377      instead of "TZ=America/Vancouver" in order to detect the bug even
33378      on systems that don't support the Olson extension, or don't have the
33379      full zoneinfo tables installed.  */
33380   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
33381
33382   t = mktime (&tm);
33383
33384   /* Check that the result is either a failure, or close enough
33385      to the correct answer that we can assume the discrepancy is
33386      due to leap seconds.  */
33387   return (t == (time_t) -1
33388           || (0 < t && answer - 120 <= t && t <= answer + 120));
33389 }
33390
33391 int
33392 main ()
33393 {
33394   time_t t, delta;
33395   int i, j;
33396
33397   /* This test makes some buggy mktime implementations loop.
33398      Give up after 60 seconds; a mktime slower than that
33399      isn't worth using anyway.  */
33400   alarm (60);
33401
33402   for (;;)
33403     {
33404       t = (time_t_max << 1) + 1;
33405       if (t <= time_t_max)
33406         break;
33407       time_t_max = t;
33408     }
33409   time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
33410
33411   delta = time_t_max / 997; /* a suitable prime number */
33412   for (i = 0; i < N_STRINGS; i++)
33413     {
33414       if (tz_strings[i])
33415         putenv (tz_strings[i]);
33416
33417       for (t = 0; t <= time_t_max - delta; t += delta)
33418         if (! mktime_test (t))
33419           return 1;
33420       if (! (mktime_test ((time_t) 1)
33421              && mktime_test ((time_t) (60 * 60))
33422              && mktime_test ((time_t) (60 * 60 * 24))))
33423         return 1;
33424
33425       for (j = 1; ; j <<= 1)
33426         if (! bigtime_test (j))
33427           return 1;
33428         else if (INT_MAX / 2 < j)
33429           break;
33430       if (! bigtime_test (INT_MAX))
33431         return 1;
33432     }
33433   return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
33434 }
33435 _ACEOF
33436 rm -f conftest$ac_exeext
33437 if { (ac_try="$ac_link"
33438 case "(($ac_try" in
33439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33440   *) ac_try_echo=$ac_try;;
33441 esac
33442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33443 $as_echo "$ac_try_echo") >&5
33444   (eval "$ac_link") 2>&5
33445   ac_status=$?
33446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33447   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33448   { (case "(($ac_try" in
33449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33450   *) ac_try_echo=$ac_try;;
33451 esac
33452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33453 $as_echo "$ac_try_echo") >&5
33454   (eval "$ac_try") 2>&5
33455   ac_status=$?
33456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33457   (exit $ac_status); }; }; then
33458   ac_cv_func_working_mktime=yes
33459 else
33460   $as_echo "$as_me: program exited with status $ac_status" >&5
33461 $as_echo "$as_me: failed program was:" >&5
33462 sed 's/^/| /' conftest.$ac_ext >&5
33463
33464 ( exit $ac_status )
33465 ac_cv_func_working_mktime=no
33466 fi
33467 rm -rf conftest.dSYM
33468 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33469 fi
33470
33471
33472 fi
33473 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
33474 $as_echo "$ac_cv_func_working_mktime" >&6; }
33475 if test $ac_cv_func_working_mktime = no; then
33476
33477
33478
33479
33480
33481
33482
33483
33484   gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
33485
33486 fi
33487
33488     if test $ac_cv_func_working_mktime = no; then
33489     REPLACE_MKTIME=1
33490
33491
33492
33493   else
33494     REPLACE_MKTIME=0
33495   fi
33496
33497
33498
33499   GNULIB_MKTIME=1
33500
33501
33502 cat >>confdefs.h <<\_ACEOF
33503 #define GNULIB_MKTIME 1
33504 _ACEOF
33505
33506
33507
33508
33509
33510
33511
33512
33513
33514
33515
33516
33517   gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
33518
33519
33520
33521
33522
33523
33524
33525
33526
33527
33528
33529
33530   if test $ac_cv_func_nl_langinfo = yes; then
33531     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1; then
33532       :
33533     else
33534       REPLACE_NL_LANGINFO=1
33535
33536 cat >>confdefs.h <<\_ACEOF
33537 #define REPLACE_NL_LANGINFO 1
33538 _ACEOF
33539
33540
33541
33542
33543
33544
33545
33546
33547
33548   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
33549
33550     fi
33551   else
33552     HAVE_NL_LANGINFO=0
33553
33554
33555
33556
33557
33558
33559
33560
33561   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
33562
33563   fi
33564
33565
33566
33567   GNULIB_NL_LANGINFO=1
33568
33569
33570 cat >>confdefs.h <<\_ACEOF
33571 #define GNULIB_NL_LANGINFO 1
33572 _ACEOF
33573
33574
33575
33576
33577
33578
33579
33580
33581
33582
33583
33584
33585
33586
33587
33588 { $as_echo "$as_me:$LINENO: checking for obstacks" >&5
33589 $as_echo_n "checking for obstacks... " >&6; }
33590 if test "${ac_cv_func_obstack+set}" = set; then
33591   $as_echo_n "(cached) " >&6
33592 else
33593   cat >conftest.$ac_ext <<_ACEOF
33594 /* confdefs.h.  */
33595 _ACEOF
33596 cat confdefs.h >>conftest.$ac_ext
33597 cat >>conftest.$ac_ext <<_ACEOF
33598 /* end confdefs.h.  */
33599 $ac_includes_default
33600                       #include "obstack.h"
33601 int
33602 main ()
33603 {
33604 struct obstack mem;
33605                        #define obstack_chunk_alloc malloc
33606                        #define obstack_chunk_free free
33607                        obstack_init (&mem);
33608                        obstack_free (&mem, 0);
33609   ;
33610   return 0;
33611 }
33612 _ACEOF
33613 rm -f conftest.$ac_objext conftest$ac_exeext
33614 if { (ac_try="$ac_link"
33615 case "(($ac_try" in
33616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33617   *) ac_try_echo=$ac_try;;
33618 esac
33619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33620 $as_echo "$ac_try_echo") >&5
33621   (eval "$ac_link") 2>conftest.er1
33622   ac_status=$?
33623   grep -v '^ *+' conftest.er1 >conftest.err
33624   rm -f conftest.er1
33625   cat conftest.err >&5
33626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33627   (exit $ac_status); } && {
33628          test -z "$ac_c_werror_flag" ||
33629          test ! -s conftest.err
33630        } && test -s conftest$ac_exeext && {
33631          test "$cross_compiling" = yes ||
33632          $as_test_x conftest$ac_exeext
33633        }; then
33634   ac_cv_func_obstack=yes
33635 else
33636   $as_echo "$as_me: failed program was:" >&5
33637 sed 's/^/| /' conftest.$ac_ext >&5
33638
33639         ac_cv_func_obstack=no
33640 fi
33641
33642 rm -rf conftest.dSYM
33643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33644       conftest$ac_exeext conftest.$ac_ext
33645 fi
33646 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
33647 $as_echo "$ac_cv_func_obstack" >&6; }
33648 if test $ac_cv_func_obstack = yes; then
33649
33650 cat >>confdefs.h <<\_ACEOF
33651 #define HAVE_OBSTACK 1
33652 _ACEOF
33653
33654 else
33655
33656
33657
33658
33659
33660
33661
33662
33663   gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
33664
33665 fi
33666
33667
33668
33669   case "$host_os" in
33670     mingw* | pw*)
33671
33672
33673   REPLACE_OPEN=1
33674
33675
33676
33677
33678
33679
33680
33681
33682   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
33683
33684
33685
33686
33687   :
33688
33689
33690       ;;
33691     *)
33692
33693
33694
33695
33696
33697
33698       { $as_echo "$as_me:$LINENO: checking whether open recognizes a trailing slash" >&5
33699 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
33700 if test "${gl_cv_func_open_slash+set}" = set; then
33701   $as_echo_n "(cached) " >&6
33702 else
33703   # Assume that if we have lstat, we can also check symlinks.
33704           if test $ac_cv_func_lstat = yes; then
33705             touch conftest.tmp
33706             ln -s conftest.tmp conftest.lnk
33707           fi
33708           if test "$cross_compiling" = yes; then
33709
33710              case "$host_os" in
33711                freebsd*)        gl_cv_func_open_slash="guessing no" ;;
33712                solaris2.[0-9]*) gl_cv_func_open_slash="guessing no" ;;
33713                hpux*)           gl_cv_func_open_slash="guessing no" ;;
33714                *)               gl_cv_func_open_slash="guessing yes" ;;
33715              esac
33716
33717 else
33718   cat >conftest.$ac_ext <<_ACEOF
33719 /* confdefs.h.  */
33720 _ACEOF
33721 cat confdefs.h >>conftest.$ac_ext
33722 cat >>conftest.$ac_ext <<_ACEOF
33723 /* end confdefs.h.  */
33724
33725 #include <fcntl.h>
33726 #if HAVE_UNISTD_H
33727 # include <unistd.h>
33728 #endif
33729 int main ()
33730 {
33731 #if HAVE_LSTAT
33732   if (open ("conftest.lnk/", O_RDONLY) != -1) return 2;
33733 #endif
33734   return open ("conftest.sl/", O_CREAT, 0600) >= 0;
33735 }
33736 _ACEOF
33737 rm -f conftest$ac_exeext
33738 if { (ac_try="$ac_link"
33739 case "(($ac_try" in
33740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33741   *) ac_try_echo=$ac_try;;
33742 esac
33743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33744 $as_echo "$ac_try_echo") >&5
33745   (eval "$ac_link") 2>&5
33746   ac_status=$?
33747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33749   { (case "(($ac_try" in
33750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33751   *) ac_try_echo=$ac_try;;
33752 esac
33753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33754 $as_echo "$ac_try_echo") >&5
33755   (eval "$ac_try") 2>&5
33756   ac_status=$?
33757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33758   (exit $ac_status); }; }; then
33759   gl_cv_func_open_slash=yes
33760 else
33761   $as_echo "$as_me: program exited with status $ac_status" >&5
33762 $as_echo "$as_me: failed program was:" >&5
33763 sed 's/^/| /' conftest.$ac_ext >&5
33764
33765 ( exit $ac_status )
33766 gl_cv_func_open_slash=no
33767 fi
33768 rm -rf conftest.dSYM
33769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33770 fi
33771
33772
33773           rm -f conftest.sl conftest.tmp conftest.lnk
33774
33775 fi
33776 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_open_slash" >&5
33777 $as_echo "$gl_cv_func_open_slash" >&6; }
33778       case "$gl_cv_func_open_slash" in
33779         *no)
33780
33781 cat >>confdefs.h <<\_ACEOF
33782 #define OPEN_TRAILING_SLASH_BUG 1
33783 _ACEOF
33784
33785
33786
33787   REPLACE_OPEN=1
33788
33789
33790
33791
33792
33793
33794
33795
33796   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
33797
33798
33799
33800
33801   :
33802
33803
33804           ;;
33805       esac
33806       ;;
33807   esac
33808
33809
33810
33811 cat >>confdefs.h <<\_ACEOF
33812 #define GNULIB_OPEN 1
33813 _ACEOF
33814
33815
33816
33817
33818   GNULIB_OPEN=1
33819
33820
33821 cat >>confdefs.h <<\_ACEOF
33822 #define GNULIB_OPEN 1
33823 _ACEOF
33824
33825
33826
33827
33828
33829   GNULIB_OPENAT=1
33830
33831
33832   GNULIB_FCHMODAT=1
33833   GNULIB_FSTATAT=1
33834   GNULIB_MKDIRAT=1
33835
33836
33837   GNULIB_FCHOWNAT=1
33838   GNULIB_UNLINKAT=1
33839
33840
33841
33842
33843
33844
33845
33846
33847
33848   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
33849
33850
33851
33852
33853
33854
33855
33856
33857
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867
33868
33869
33870
33871
33872
33873
33874
33875
33876
33877
33878
33879
33880
33881
33882
33883
33884
33885
33886
33887
33888
33889
33890
33891
33892
33893
33894
33895
33896
33897
33898 for ac_func in fchmodat fstatat mkdirat openat unlinkat
33899 do
33900 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33901 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33902 $as_echo_n "checking for $ac_func... " >&6; }
33903 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33904   $as_echo_n "(cached) " >&6
33905 else
33906   cat >conftest.$ac_ext <<_ACEOF
33907 /* confdefs.h.  */
33908 _ACEOF
33909 cat confdefs.h >>conftest.$ac_ext
33910 cat >>conftest.$ac_ext <<_ACEOF
33911 /* end confdefs.h.  */
33912 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33913    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33914 #define $ac_func innocuous_$ac_func
33915
33916 /* System header to define __stub macros and hopefully few prototypes,
33917     which can conflict with char $ac_func (); below.
33918     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33919     <limits.h> exists even on freestanding compilers.  */
33920
33921 #ifdef __STDC__
33922 # include <limits.h>
33923 #else
33924 # include <assert.h>
33925 #endif
33926
33927 #undef $ac_func
33928
33929 /* Override any GCC internal prototype to avoid an error.
33930    Use char because int might match the return type of a GCC
33931    builtin and then its argument prototype would still apply.  */
33932 #ifdef __cplusplus
33933 extern "C"
33934 #endif
33935 char $ac_func ();
33936 /* The GNU C library defines this for functions which it implements
33937     to always fail with ENOSYS.  Some functions are actually named
33938     something starting with __ and the normal name is an alias.  */
33939 #if defined __stub_$ac_func || defined __stub___$ac_func
33940 choke me
33941 #endif
33942
33943 int
33944 main ()
33945 {
33946 return $ac_func ();
33947   ;
33948   return 0;
33949 }
33950 _ACEOF
33951 rm -f conftest.$ac_objext conftest$ac_exeext
33952 if { (ac_try="$ac_link"
33953 case "(($ac_try" in
33954   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33955   *) ac_try_echo=$ac_try;;
33956 esac
33957 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33958 $as_echo "$ac_try_echo") >&5
33959   (eval "$ac_link") 2>conftest.er1
33960   ac_status=$?
33961   grep -v '^ *+' conftest.er1 >conftest.err
33962   rm -f conftest.er1
33963   cat conftest.err >&5
33964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33965   (exit $ac_status); } && {
33966          test -z "$ac_c_werror_flag" ||
33967          test ! -s conftest.err
33968        } && test -s conftest$ac_exeext && {
33969          test "$cross_compiling" = yes ||
33970          $as_test_x conftest$ac_exeext
33971        }; then
33972   eval "$as_ac_var=yes"
33973 else
33974   $as_echo "$as_me: failed program was:" >&5
33975 sed 's/^/| /' conftest.$ac_ext >&5
33976
33977         eval "$as_ac_var=no"
33978 fi
33979
33980 rm -rf conftest.dSYM
33981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33982       conftest$ac_exeext conftest.$ac_ext
33983 fi
33984 ac_res=`eval 'as_val=${'$as_ac_var'}
33985                  $as_echo "$as_val"'`
33986                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33987 $as_echo "$ac_res" >&6; }
33988 as_val=`eval 'as_val=${'$as_ac_var'}
33989                  $as_echo "$as_val"'`
33990    if test "x$as_val" = x""yes; then
33991   cat >>confdefs.h <<_ACEOF
33992 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33993 _ACEOF
33994
33995 else
33996
33997     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33998
33999 fi
34000 done
34001
34002
34003
34004
34005   case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
34006   yes+yes)
34007     # GNU/Hurd has unlinkat, but it has the same bug as unlink.
34008     if test $REPLACE_UNLINK = 1; then
34009
34010
34011
34012
34013
34014
34015
34016
34017   gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
34018
34019       REPLACE_UNLINKAT=1
34020     fi ;;
34021   yes+*)
34022     # Solaris 9 has *at functions, but uniformly mishandles trailing
34023     # slash in all of them.
34024
34025
34026
34027
34028
34029
34030
34031
34032   gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
34033
34034     REPLACE_OPENAT=1
34035
34036
34037
34038
34039
34040
34041
34042
34043   gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
34044
34045     REPLACE_FSTATAT=1
34046
34047
34048
34049
34050
34051
34052
34053
34054   gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
34055
34056     REPLACE_UNLINKAT=1
34057     ;;
34058   *)
34059     HAVE_OPENAT=0
34060     HAVE_UNLINKAT=0 # No known system with unlinkat but not openat
34061     HAVE_FSTATAT=0 # No known system with fstatat but not openat
34062
34063
34064
34065   :
34066 ;;
34067   esac
34068   if test $ac_cv_func_fchmodat != yes; then
34069     HAVE_FCHMODAT=0
34070   fi
34071   if test $ac_cv_func_mkdirat != yes; then
34072     HAVE_MKDIRAT=0
34073   fi
34074
34075
34076   { $as_echo "$as_me:$LINENO: checking for fchownat" >&5
34077 $as_echo_n "checking for fchownat... " >&6; }
34078 if test "${ac_cv_func_fchownat+set}" = set; then
34079   $as_echo_n "(cached) " >&6
34080 else
34081   cat >conftest.$ac_ext <<_ACEOF
34082 /* confdefs.h.  */
34083 _ACEOF
34084 cat confdefs.h >>conftest.$ac_ext
34085 cat >>conftest.$ac_ext <<_ACEOF
34086 /* end confdefs.h.  */
34087 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
34088    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34089 #define fchownat innocuous_fchownat
34090
34091 /* System header to define __stub macros and hopefully few prototypes,
34092     which can conflict with char fchownat (); below.
34093     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34094     <limits.h> exists even on freestanding compilers.  */
34095
34096 #ifdef __STDC__
34097 # include <limits.h>
34098 #else
34099 # include <assert.h>
34100 #endif
34101
34102 #undef fchownat
34103
34104 /* Override any GCC internal prototype to avoid an error.
34105    Use char because int might match the return type of a GCC
34106    builtin and then its argument prototype would still apply.  */
34107 #ifdef __cplusplus
34108 extern "C"
34109 #endif
34110 char fchownat ();
34111 /* The GNU C library defines this for functions which it implements
34112     to always fail with ENOSYS.  Some functions are actually named
34113     something starting with __ and the normal name is an alias.  */
34114 #if defined __stub_fchownat || defined __stub___fchownat
34115 choke me
34116 #endif
34117
34118 int
34119 main ()
34120 {
34121 return fchownat ();
34122   ;
34123   return 0;
34124 }
34125 _ACEOF
34126 rm -f conftest.$ac_objext conftest$ac_exeext
34127 if { (ac_try="$ac_link"
34128 case "(($ac_try" in
34129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34130   *) ac_try_echo=$ac_try;;
34131 esac
34132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34133 $as_echo "$ac_try_echo") >&5
34134   (eval "$ac_link") 2>conftest.er1
34135   ac_status=$?
34136   grep -v '^ *+' conftest.er1 >conftest.err
34137   rm -f conftest.er1
34138   cat conftest.err >&5
34139   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34140   (exit $ac_status); } && {
34141          test -z "$ac_c_werror_flag" ||
34142          test ! -s conftest.err
34143        } && test -s conftest$ac_exeext && {
34144          test "$cross_compiling" = yes ||
34145          $as_test_x conftest$ac_exeext
34146        }; then
34147   ac_cv_func_fchownat=yes
34148 else
34149   $as_echo "$as_me: failed program was:" >&5
34150 sed 's/^/| /' conftest.$ac_ext >&5
34151
34152         ac_cv_func_fchownat=no
34153 fi
34154
34155 rm -rf conftest.dSYM
34156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34157       conftest$ac_exeext conftest.$ac_ext
34158 fi
34159 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
34160 $as_echo "$ac_cv_func_fchownat" >&6; }
34161 if test "x$ac_cv_func_fchownat" = x""yes; then
34162
34163   { $as_echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
34164 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
34165 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
34166   $as_echo_n "(cached) " >&6
34167 else
34168
34169      gl_dangle=conftest.dangle
34170      # Remove any remnants of a previous test.
34171      rm -f $gl_dangle
34172      # Arrange for deletion of the temporary file this test creates.
34173      ac_clean_files="$ac_clean_files $gl_dangle"
34174      ln -s conftest.no-such $gl_dangle
34175      if test "$cross_compiling" = yes; then
34176   gl_cv_func_fchownat_nofollow_works=no
34177 else
34178   cat >conftest.$ac_ext <<_ACEOF
34179 /* confdefs.h.  */
34180 _ACEOF
34181 cat confdefs.h >>conftest.$ac_ext
34182 cat >>conftest.$ac_ext <<_ACEOF
34183 /* end confdefs.h.  */
34184
34185 #include <fcntl.h>
34186 #include <unistd.h>
34187 #include <stdlib.h>
34188 #include <errno.h>
34189 #include <sys/types.h>
34190 int
34191 main ()
34192 {
34193   return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
34194                     AT_SYMLINK_NOFOLLOW) != 0
34195           && errno == ENOENT);
34196 }
34197
34198 _ACEOF
34199 rm -f conftest$ac_exeext
34200 if { (ac_try="$ac_link"
34201 case "(($ac_try" in
34202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34203   *) ac_try_echo=$ac_try;;
34204 esac
34205 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34206 $as_echo "$ac_try_echo") >&5
34207   (eval "$ac_link") 2>&5
34208   ac_status=$?
34209   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34210   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34211   { (case "(($ac_try" in
34212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34213   *) ac_try_echo=$ac_try;;
34214 esac
34215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34216 $as_echo "$ac_try_echo") >&5
34217   (eval "$ac_try") 2>&5
34218   ac_status=$?
34219   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34220   (exit $ac_status); }; }; then
34221   gl_cv_func_fchownat_nofollow_works=yes
34222 else
34223   $as_echo "$as_me: program exited with status $ac_status" >&5
34224 $as_echo "$as_me: failed program was:" >&5
34225 sed 's/^/| /' conftest.$ac_ext >&5
34226
34227 ( exit $ac_status )
34228 gl_cv_func_fchownat_nofollow_works=no
34229 fi
34230 rm -rf conftest.dSYM
34231 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34232 fi
34233
34234
34235
34236 fi
34237 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
34238 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
34239   if test $gl_cv_func_fchownat_nofollow_works = no; then
34240   REPLACE_FCHOWNAT=1
34241
34242 cat >>confdefs.h <<\_ACEOF
34243 #define FCHOWNAT_NOFOLLOW_BUG 1
34244 _ACEOF
34245
34246 fi
34247
34248
34249 else
34250   HAVE_FCHOWNAT=0
34251 fi
34252
34253   if test $REPLACE_CHOWN = 1; then
34254     REPLACE_FCHOWNAT=1
34255   fi
34256   if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then
34257
34258
34259
34260
34261
34262
34263
34264
34265   gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
34266
34267   fi
34268
34269
34270
34271
34272
34273
34274
34275
34276
34277
34278
34279
34280
34281
34282
34283
34284
34285
34286
34287 for ac_func in getppriv
34288 do
34289 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34290 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34291 $as_echo_n "checking for $ac_func... " >&6; }
34292 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34293   $as_echo_n "(cached) " >&6
34294 else
34295   cat >conftest.$ac_ext <<_ACEOF
34296 /* confdefs.h.  */
34297 _ACEOF
34298 cat confdefs.h >>conftest.$ac_ext
34299 cat >>conftest.$ac_ext <<_ACEOF
34300 /* end confdefs.h.  */
34301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34302    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34303 #define $ac_func innocuous_$ac_func
34304
34305 /* System header to define __stub macros and hopefully few prototypes,
34306     which can conflict with char $ac_func (); below.
34307     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34308     <limits.h> exists even on freestanding compilers.  */
34309
34310 #ifdef __STDC__
34311 # include <limits.h>
34312 #else
34313 # include <assert.h>
34314 #endif
34315
34316 #undef $ac_func
34317
34318 /* Override any GCC internal prototype to avoid an error.
34319    Use char because int might match the return type of a GCC
34320    builtin and then its argument prototype would still apply.  */
34321 #ifdef __cplusplus
34322 extern "C"
34323 #endif
34324 char $ac_func ();
34325 /* The GNU C library defines this for functions which it implements
34326     to always fail with ENOSYS.  Some functions are actually named
34327     something starting with __ and the normal name is an alias.  */
34328 #if defined __stub_$ac_func || defined __stub___$ac_func
34329 choke me
34330 #endif
34331
34332 int
34333 main ()
34334 {
34335 return $ac_func ();
34336   ;
34337   return 0;
34338 }
34339 _ACEOF
34340 rm -f conftest.$ac_objext conftest$ac_exeext
34341 if { (ac_try="$ac_link"
34342 case "(($ac_try" in
34343   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34344   *) ac_try_echo=$ac_try;;
34345 esac
34346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34347 $as_echo "$ac_try_echo") >&5
34348   (eval "$ac_link") 2>conftest.er1
34349   ac_status=$?
34350   grep -v '^ *+' conftest.er1 >conftest.err
34351   rm -f conftest.er1
34352   cat conftest.err >&5
34353   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34354   (exit $ac_status); } && {
34355          test -z "$ac_c_werror_flag" ||
34356          test ! -s conftest.err
34357        } && test -s conftest$ac_exeext && {
34358          test "$cross_compiling" = yes ||
34359          $as_test_x conftest$ac_exeext
34360        }; then
34361   eval "$as_ac_var=yes"
34362 else
34363   $as_echo "$as_me: failed program was:" >&5
34364 sed 's/^/| /' conftest.$ac_ext >&5
34365
34366         eval "$as_ac_var=no"
34367 fi
34368
34369 rm -rf conftest.dSYM
34370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34371       conftest$ac_exeext conftest.$ac_ext
34372 fi
34373 ac_res=`eval 'as_val=${'$as_ac_var'}
34374                  $as_echo "$as_val"'`
34375                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34376 $as_echo "$ac_res" >&6; }
34377 as_val=`eval 'as_val=${'$as_ac_var'}
34378                  $as_echo "$as_val"'`
34379    if test "x$as_val" = x""yes; then
34380   cat >>confdefs.h <<_ACEOF
34381 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34382 _ACEOF
34383
34384 fi
34385 done
34386
34387
34388   { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
34389 $as_echo_n "checking whether program_invocation_name is declared... " >&6; }
34390 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
34391   $as_echo_n "(cached) " >&6
34392 else
34393   cat >conftest.$ac_ext <<_ACEOF
34394 /* confdefs.h.  */
34395 _ACEOF
34396 cat confdefs.h >>conftest.$ac_ext
34397 cat >>conftest.$ac_ext <<_ACEOF
34398 /* end confdefs.h.  */
34399 #include <errno.h>
34400
34401 int
34402 main ()
34403 {
34404 #ifndef program_invocation_name
34405   (void) program_invocation_name;
34406 #endif
34407
34408   ;
34409   return 0;
34410 }
34411 _ACEOF
34412 rm -f conftest.$ac_objext
34413 if { (ac_try="$ac_compile"
34414 case "(($ac_try" in
34415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34416   *) ac_try_echo=$ac_try;;
34417 esac
34418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34419 $as_echo "$ac_try_echo") >&5
34420   (eval "$ac_compile") 2>conftest.er1
34421   ac_status=$?
34422   grep -v '^ *+' conftest.er1 >conftest.err
34423   rm -f conftest.er1
34424   cat conftest.err >&5
34425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34426   (exit $ac_status); } && {
34427          test -z "$ac_c_werror_flag" ||
34428          test ! -s conftest.err
34429        } && test -s conftest.$ac_objext; then
34430   ac_cv_have_decl_program_invocation_name=yes
34431 else
34432   $as_echo "$as_me: failed program was:" >&5
34433 sed 's/^/| /' conftest.$ac_ext >&5
34434
34435         ac_cv_have_decl_program_invocation_name=no
34436 fi
34437
34438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34439 fi
34440 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
34441 $as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
34442 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
34443
34444 cat >>confdefs.h <<_ACEOF
34445 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
34446 _ACEOF
34447
34448
34449 else
34450   cat >>confdefs.h <<_ACEOF
34451 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
34452 _ACEOF
34453
34454
34455 fi
34456
34457
34458   { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
34459 $as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
34460 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
34461   $as_echo_n "(cached) " >&6
34462 else
34463   cat >conftest.$ac_ext <<_ACEOF
34464 /* confdefs.h.  */
34465 _ACEOF
34466 cat confdefs.h >>conftest.$ac_ext
34467 cat >>conftest.$ac_ext <<_ACEOF
34468 /* end confdefs.h.  */
34469 #include <errno.h>
34470
34471 int
34472 main ()
34473 {
34474 #ifndef program_invocation_short_name
34475   (void) program_invocation_short_name;
34476 #endif
34477
34478   ;
34479   return 0;
34480 }
34481 _ACEOF
34482 rm -f conftest.$ac_objext
34483 if { (ac_try="$ac_compile"
34484 case "(($ac_try" in
34485   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34486   *) ac_try_echo=$ac_try;;
34487 esac
34488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34489 $as_echo "$ac_try_echo") >&5
34490   (eval "$ac_compile") 2>conftest.er1
34491   ac_status=$?
34492   grep -v '^ *+' conftest.er1 >conftest.err
34493   rm -f conftest.er1
34494   cat conftest.err >&5
34495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34496   (exit $ac_status); } && {
34497          test -z "$ac_c_werror_flag" ||
34498          test ! -s conftest.err
34499        } && test -s conftest.$ac_objext; then
34500   ac_cv_have_decl_program_invocation_short_name=yes
34501 else
34502   $as_echo "$as_me: failed program was:" >&5
34503 sed 's/^/| /' conftest.$ac_ext >&5
34504
34505         ac_cv_have_decl_program_invocation_short_name=no
34506 fi
34507
34508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34509 fi
34510 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
34511 $as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
34512 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
34513
34514 cat >>confdefs.h <<_ACEOF
34515 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
34516 _ACEOF
34517
34518
34519 else
34520   cat >>confdefs.h <<_ACEOF
34521 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0
34522 _ACEOF
34523
34524
34525 fi
34526
34527
34528
34529
34530
34531
34532
34533
34534
34535
34536
34537   gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
34538
34539
34540
34541
34542
34543
34544
34545
34546
34547
34548
34549
34550   gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
34551
34552
34553
34554
34555
34556
34557
34558
34559
34560
34561
34562
34563
34564
34565
34566 for ac_func in rawmemchr
34567 do
34568 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
34569 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
34570 $as_echo_n "checking for $ac_func... " >&6; }
34571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
34572   $as_echo_n "(cached) " >&6
34573 else
34574   cat >conftest.$ac_ext <<_ACEOF
34575 /* confdefs.h.  */
34576 _ACEOF
34577 cat confdefs.h >>conftest.$ac_ext
34578 cat >>conftest.$ac_ext <<_ACEOF
34579 /* end confdefs.h.  */
34580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
34581    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
34582 #define $ac_func innocuous_$ac_func
34583
34584 /* System header to define __stub macros and hopefully few prototypes,
34585     which can conflict with char $ac_func (); below.
34586     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
34587     <limits.h> exists even on freestanding compilers.  */
34588
34589 #ifdef __STDC__
34590 # include <limits.h>
34591 #else
34592 # include <assert.h>
34593 #endif
34594
34595 #undef $ac_func
34596
34597 /* Override any GCC internal prototype to avoid an error.
34598    Use char because int might match the return type of a GCC
34599    builtin and then its argument prototype would still apply.  */
34600 #ifdef __cplusplus
34601 extern "C"
34602 #endif
34603 char $ac_func ();
34604 /* The GNU C library defines this for functions which it implements
34605     to always fail with ENOSYS.  Some functions are actually named
34606     something starting with __ and the normal name is an alias.  */
34607 #if defined __stub_$ac_func || defined __stub___$ac_func
34608 choke me
34609 #endif
34610
34611 int
34612 main ()
34613 {
34614 return $ac_func ();
34615   ;
34616   return 0;
34617 }
34618 _ACEOF
34619 rm -f conftest.$ac_objext conftest$ac_exeext
34620 if { (ac_try="$ac_link"
34621 case "(($ac_try" in
34622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34623   *) ac_try_echo=$ac_try;;
34624 esac
34625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34626 $as_echo "$ac_try_echo") >&5
34627   (eval "$ac_link") 2>conftest.er1
34628   ac_status=$?
34629   grep -v '^ *+' conftest.er1 >conftest.err
34630   rm -f conftest.er1
34631   cat conftest.err >&5
34632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34633   (exit $ac_status); } && {
34634          test -z "$ac_c_werror_flag" ||
34635          test ! -s conftest.err
34636        } && test -s conftest$ac_exeext && {
34637          test "$cross_compiling" = yes ||
34638          $as_test_x conftest$ac_exeext
34639        }; then
34640   eval "$as_ac_var=yes"
34641 else
34642   $as_echo "$as_me: failed program was:" >&5
34643 sed 's/^/| /' conftest.$ac_ext >&5
34644
34645         eval "$as_ac_var=no"
34646 fi
34647
34648 rm -rf conftest.dSYM
34649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
34650       conftest$ac_exeext conftest.$ac_ext
34651 fi
34652 ac_res=`eval 'as_val=${'$as_ac_var'}
34653                  $as_echo "$as_val"'`
34654                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34655 $as_echo "$ac_res" >&6; }
34656 as_val=`eval 'as_val=${'$as_ac_var'}
34657                  $as_echo "$as_val"'`
34658    if test "x$as_val" = x""yes; then
34659   cat >>confdefs.h <<_ACEOF
34660 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
34661 _ACEOF
34662
34663 else
34664
34665     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
34666
34667 fi
34668 done
34669
34670
34671   if test $ac_cv_func_rawmemchr = no; then
34672     HAVE_RAWMEMCHR=0
34673     :
34674   fi
34675
34676
34677
34678   GNULIB_RAWMEMCHR=1
34679
34680
34681 cat >>confdefs.h <<\_ACEOF
34682 #define GNULIB_RAWMEMCHR 1
34683 _ACEOF
34684
34685
34686
34687
34688
34689
34690
34691
34692
34693
34694
34695   if test $ac_cv_func_readlink = no; then
34696     HAVE_READLINK=0
34697
34698
34699
34700
34701
34702
34703
34704
34705   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
34706
34707
34708   :
34709
34710   else
34711     { $as_echo "$as_me:$LINENO: checking whether readlink signature is correct" >&5
34712 $as_echo_n "checking whether readlink signature is correct... " >&6; }
34713 if test "${gl_cv_decl_readlink_works+set}" = set; then
34714   $as_echo_n "(cached) " >&6
34715 else
34716   cat >conftest.$ac_ext <<_ACEOF
34717 /* confdefs.h.  */
34718 _ACEOF
34719 cat confdefs.h >>conftest.$ac_ext
34720 cat >>conftest.$ac_ext <<_ACEOF
34721 /* end confdefs.h.  */
34722 #include <unistd.h>
34723       /* Cause compilation failure if original declaration has wrong type.  */
34724       ssize_t readlink (const char *, char *, size_t);
34725 int
34726 main ()
34727 {
34728
34729   ;
34730   return 0;
34731 }
34732 _ACEOF
34733 rm -f conftest.$ac_objext
34734 if { (ac_try="$ac_compile"
34735 case "(($ac_try" in
34736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34737   *) ac_try_echo=$ac_try;;
34738 esac
34739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34740 $as_echo "$ac_try_echo") >&5
34741   (eval "$ac_compile") 2>conftest.er1
34742   ac_status=$?
34743   grep -v '^ *+' conftest.er1 >conftest.err
34744   rm -f conftest.er1
34745   cat conftest.err >&5
34746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34747   (exit $ac_status); } && {
34748          test -z "$ac_c_werror_flag" ||
34749          test ! -s conftest.err
34750        } && test -s conftest.$ac_objext; then
34751   gl_cv_decl_readlink_works=yes
34752 else
34753   $as_echo "$as_me: failed program was:" >&5
34754 sed 's/^/| /' conftest.$ac_ext >&5
34755
34756         gl_cv_decl_readlink_works=no
34757 fi
34758
34759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34760 fi
34761 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_readlink_works" >&5
34762 $as_echo "$gl_cv_decl_readlink_works" >&6; }
34763             { $as_echo "$as_me:$LINENO: checking whether readlink handles trailing slash correctly" >&5
34764 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
34765 if test "${gl_cv_func_readlink_works+set}" = set; then
34766   $as_echo_n "(cached) " >&6
34767 else
34768   # We have readlink, so assume ln -s works.
34769        ln -s conftest.no-such conftest.link
34770        ln -s conftest.link conftest.lnk2
34771        if test "$cross_compiling" = yes; then
34772   gl_cv_func_readlink_works="guessing no"
34773 else
34774   cat >conftest.$ac_ext <<_ACEOF
34775 /* confdefs.h.  */
34776 _ACEOF
34777 cat confdefs.h >>conftest.$ac_ext
34778 cat >>conftest.$ac_ext <<_ACEOF
34779 /* end confdefs.h.  */
34780 #include <unistd.h>
34781
34782 int
34783 main ()
34784 {
34785 char buf[20];
34786       return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
34787   ;
34788   return 0;
34789 }
34790 _ACEOF
34791 rm -f conftest$ac_exeext
34792 if { (ac_try="$ac_link"
34793 case "(($ac_try" in
34794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34795   *) ac_try_echo=$ac_try;;
34796 esac
34797 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34798 $as_echo "$ac_try_echo") >&5
34799   (eval "$ac_link") 2>&5
34800   ac_status=$?
34801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34802   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34803   { (case "(($ac_try" in
34804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34805   *) ac_try_echo=$ac_try;;
34806 esac
34807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34808 $as_echo "$ac_try_echo") >&5
34809   (eval "$ac_try") 2>&5
34810   ac_status=$?
34811   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34812   (exit $ac_status); }; }; then
34813   gl_cv_func_readlink_works=yes
34814 else
34815   $as_echo "$as_me: program exited with status $ac_status" >&5
34816 $as_echo "$as_me: failed program was:" >&5
34817 sed 's/^/| /' conftest.$ac_ext >&5
34818
34819 ( exit $ac_status )
34820 gl_cv_func_readlink_works=no
34821 fi
34822 rm -rf conftest.dSYM
34823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34824 fi
34825
34826
34827       rm -f conftest.link conftest.lnk2
34828 fi
34829 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_readlink_works" >&5
34830 $as_echo "$gl_cv_func_readlink_works" >&6; }
34831     if test "$gl_cv_func_readlink_works" != yes; then
34832
34833 cat >>confdefs.h <<\_ACEOF
34834 #define READLINK_TRAILING_SLASH_BUG 1
34835 _ACEOF
34836
34837       REPLACE_READLINK=1
34838
34839
34840
34841
34842
34843
34844
34845
34846   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
34847
34848     elif test "$gl_cv_decl_readlink_works" != yes; then
34849       REPLACE_READLINK=1
34850
34851
34852
34853
34854
34855
34856
34857
34858   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
34859
34860     fi
34861   fi
34862
34863
34864
34865   GNULIB_READLINK=1
34866
34867
34868 cat >>confdefs.h <<\_ACEOF
34869 #define GNULIB_READLINK 1
34870 _ACEOF
34871
34872
34873
34874
34875
34876   if test $gl_cv_func_malloc_posix = yes; then
34877     HAVE_REALLOC_POSIX=1
34878
34879 cat >>confdefs.h <<\_ACEOF
34880 #define HAVE_REALLOC_POSIX 1
34881 _ACEOF
34882
34883   else
34884
34885
34886
34887
34888
34889
34890
34891
34892   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
34893
34894     HAVE_REALLOC_POSIX=0
34895   fi
34896
34897
34898
34899
34900   GNULIB_REALLOC_POSIX=1
34901
34902
34903 cat >>confdefs.h <<\_ACEOF
34904 #define GNULIB_REALLOC_POSIX 1
34905 _ACEOF
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918 # Check whether --with-included-regex was given.
34919 if test "${with_included_regex+set}" = set; then
34920   withval=$with_included_regex;
34921 fi
34922
34923
34924   case $with_included_regex in #(
34925   yes|no) ac_use_included_regex=$with_included_regex
34926         ;;
34927   '')
34928     # If the system regex support is good enough that it passes the
34929     # following run test, then default to *not* using the included regex.c.
34930     # If cross compiling, assume the test would fail and use the included
34931     # regex.c.
34932     { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
34933 $as_echo_n "checking for working re_compile_pattern... " >&6; }
34934 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
34935   $as_echo_n "(cached) " >&6
34936 else
34937   if test "$cross_compiling" = yes; then
34938          gl_cv_func_re_compile_pattern_working=no
34939 else
34940   cat >conftest.$ac_ext <<_ACEOF
34941 /* confdefs.h.  */
34942 _ACEOF
34943 cat confdefs.h >>conftest.$ac_ext
34944 cat >>conftest.$ac_ext <<_ACEOF
34945 /* end confdefs.h.  */
34946 $ac_includes_default
34947            #if HAVE_LOCALE_H
34948             #include <locale.h>
34949            #endif
34950            #include <limits.h>
34951            #include <regex.h>
34952
34953 int
34954 main ()
34955 {
34956 static struct re_pattern_buffer regex;
34957             unsigned char folded_chars[UCHAR_MAX + 1];
34958             int i;
34959             const char *s;
34960             struct re_registers regs;
34961
34962             #if HAVE_LOCALE_H
34963               /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
34964                  This test needs valgrind to catch the bug on Debian
34965                  GNU/Linux 3.1 x86, but it might catch the bug better
34966                  on other platforms and it shouldn't hurt to try the
34967                  test here.  */
34968               if (setlocale (LC_ALL, "en_US.UTF-8"))
34969                 {
34970                   static char const pat[] = "insert into";
34971                   static char const data[] =
34972                     "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
34973                   re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
34974                                  | RE_ICASE);
34975                   memset (&regex, 0, sizeof regex);
34976                   s = re_compile_pattern (pat, sizeof pat - 1, &regex);
34977                   if (s)
34978                     return 1;
34979                   if (re_search (&regex, data, sizeof data - 1,
34980                                  0, sizeof data - 1, &regs)
34981                       != -1)
34982                     return 1;
34983                   if (! setlocale (LC_ALL, "C"))
34984                     return 1;
34985                 }
34986             #endif
34987
34988             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
34989             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
34990             memset (&regex, 0, sizeof regex);
34991             s = re_compile_pattern ("a[^x]b", 6, &regex);
34992             if (s)
34993               return 1;
34994
34995             /* This should fail, but succeeds for glibc-2.5.  */
34996             if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
34997               return 1;
34998
34999             /* This regular expression is from Spencer ere test number 75
35000                in grep-2.3.  */
35001             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
35002             memset (&regex, 0, sizeof regex);
35003             for (i = 0; i <= UCHAR_MAX; i++)
35004               folded_chars[i] = i;
35005             regex.translate = folded_chars;
35006             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
35007             /* This should fail with _Invalid character class name_ error.  */
35008             if (!s)
35009               return 1;
35010
35011             /* Ensure that [b-a] is diagnosed as invalid. */
35012             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
35013             memset (&regex, 0, sizeof regex);
35014             s = re_compile_pattern ("a[b-a]", 6, &regex);
35015             if (s == 0)
35016               return 1;
35017
35018             /* This should succeed, but does not for glibc-2.1.3.  */
35019             memset (&regex, 0, sizeof regex);
35020             s = re_compile_pattern ("{1", 2, &regex);
35021
35022             if (s)
35023               return 1;
35024
35025             /* The following example is derived from a problem report
35026                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
35027             memset (&regex, 0, sizeof regex);
35028             s = re_compile_pattern ("[an\371]*n", 7, &regex);
35029             if (s)
35030               return 1;
35031
35032             /* This should match, but does not for glibc-2.2.1.  */
35033             if (re_match (&regex, "an", 2, 0, &regs) != 2)
35034               return 1;
35035
35036             memset (&regex, 0, sizeof regex);
35037             s = re_compile_pattern ("x", 1, &regex);
35038             if (s)
35039               return 1;
35040
35041             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
35042             if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
35043               return 1;
35044
35045             /* The version of regex.c in older versions of gnulib
35046                ignored RE_ICASE.  Detect that problem too.  */
35047             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
35048             memset (&regex, 0, sizeof regex);
35049             s = re_compile_pattern ("x", 1, &regex);
35050             if (s)
35051               return 1;
35052
35053             if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
35054               return 1;
35055
35056             /* Catch a bug reported by Vin Shelton in
35057                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
35058                */
35059             re_set_syntax (RE_SYNTAX_POSIX_BASIC
35060                            & ~RE_CONTEXT_INVALID_DUP
35061                            & ~RE_NO_EMPTY_RANGES);
35062             memset (&regex, 0, sizeof regex);
35063             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
35064             if (s)
35065               return 1;
35066
35067             /* REG_STARTEND was added to glibc on 2004-01-15.
35068                Reject older versions.  */
35069             if (! REG_STARTEND)
35070               return 1;
35071
35072             /* Reject hosts whose regoff_t values are too narrow.
35073                These include glibc 2.3.5 on hosts with 64-bit ptrdiff_t
35074                and 32-bit int.  */
35075             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
35076                 || sizeof (regoff_t) < sizeof (ssize_t))
35077               return 1;
35078
35079             return 0;
35080   ;
35081   return 0;
35082 }
35083 _ACEOF
35084 rm -f conftest$ac_exeext
35085 if { (ac_try="$ac_link"
35086 case "(($ac_try" in
35087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35088   *) ac_try_echo=$ac_try;;
35089 esac
35090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35091 $as_echo "$ac_try_echo") >&5
35092   (eval "$ac_link") 2>&5
35093   ac_status=$?
35094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35095   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35096   { (case "(($ac_try" in
35097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35098   *) ac_try_echo=$ac_try;;
35099 esac
35100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35101 $as_echo "$ac_try_echo") >&5
35102   (eval "$ac_try") 2>&5
35103   ac_status=$?
35104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35105   (exit $ac_status); }; }; then
35106   gl_cv_func_re_compile_pattern_working=yes
35107 else
35108   $as_echo "$as_me: program exited with status $ac_status" >&5
35109 $as_echo "$as_me: failed program was:" >&5
35110 sed 's/^/| /' conftest.$ac_ext >&5
35111
35112 ( exit $ac_status )
35113 gl_cv_func_re_compile_pattern_working=no
35114 fi
35115 rm -rf conftest.dSYM
35116 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35117 fi
35118
35119
35120 fi
35121 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
35122 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
35123     case $gl_cv_func_re_compile_pattern_working in #(
35124     yes) ac_use_included_regex=no;; #(
35125     no) ac_use_included_regex=yes;;
35126     esac
35127     ;;
35128   *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
35129 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
35130    { (exit 1); exit 1; }; }
35131     ;;
35132   esac
35133
35134   if test $ac_use_included_regex = yes; then
35135
35136 cat >>confdefs.h <<\_ACEOF
35137 #define _REGEX_LARGE_OFFSETS 1
35138 _ACEOF
35139
35140
35141 cat >>confdefs.h <<\_ACEOF
35142 #define re_syntax_options rpl_re_syntax_options
35143 _ACEOF
35144
35145
35146 cat >>confdefs.h <<\_ACEOF
35147 #define re_set_syntax rpl_re_set_syntax
35148 _ACEOF
35149
35150
35151 cat >>confdefs.h <<\_ACEOF
35152 #define re_compile_pattern rpl_re_compile_pattern
35153 _ACEOF
35154
35155
35156 cat >>confdefs.h <<\_ACEOF
35157 #define re_compile_fastmap rpl_re_compile_fastmap
35158 _ACEOF
35159
35160
35161 cat >>confdefs.h <<\_ACEOF
35162 #define re_search rpl_re_search
35163 _ACEOF
35164
35165
35166 cat >>confdefs.h <<\_ACEOF
35167 #define re_search_2 rpl_re_search_2
35168 _ACEOF
35169
35170
35171 cat >>confdefs.h <<\_ACEOF
35172 #define re_match rpl_re_match
35173 _ACEOF
35174
35175
35176 cat >>confdefs.h <<\_ACEOF
35177 #define re_match_2 rpl_re_match_2
35178 _ACEOF
35179
35180
35181 cat >>confdefs.h <<\_ACEOF
35182 #define re_set_registers rpl_re_set_registers
35183 _ACEOF
35184
35185
35186 cat >>confdefs.h <<\_ACEOF
35187 #define re_comp rpl_re_comp
35188 _ACEOF
35189
35190
35191 cat >>confdefs.h <<\_ACEOF
35192 #define re_exec rpl_re_exec
35193 _ACEOF
35194
35195
35196 cat >>confdefs.h <<\_ACEOF
35197 #define regcomp rpl_regcomp
35198 _ACEOF
35199
35200
35201 cat >>confdefs.h <<\_ACEOF
35202 #define regexec rpl_regexec
35203 _ACEOF
35204
35205
35206 cat >>confdefs.h <<\_ACEOF
35207 #define regerror rpl_regerror
35208 _ACEOF
35209
35210
35211 cat >>confdefs.h <<\_ACEOF
35212 #define regfree rpl_regfree
35213 _ACEOF
35214
35215
35216
35217
35218
35219
35220
35221
35222
35223   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
35224
35225
35226
35227
35228
35229
35230
35231 for ac_header in libintl.h
35232 do
35233 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35235   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35236 $as_echo_n "checking for $ac_header... " >&6; }
35237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35238   $as_echo_n "(cached) " >&6
35239 fi
35240 ac_res=`eval 'as_val=${'$as_ac_Header'}
35241                  $as_echo "$as_val"'`
35242                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35243 $as_echo "$ac_res" >&6; }
35244 else
35245   # Is the header compilable?
35246 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
35247 $as_echo_n "checking $ac_header usability... " >&6; }
35248 cat >conftest.$ac_ext <<_ACEOF
35249 /* confdefs.h.  */
35250 _ACEOF
35251 cat confdefs.h >>conftest.$ac_ext
35252 cat >>conftest.$ac_ext <<_ACEOF
35253 /* end confdefs.h.  */
35254 $ac_includes_default
35255 #include <$ac_header>
35256 _ACEOF
35257 rm -f conftest.$ac_objext
35258 if { (ac_try="$ac_compile"
35259 case "(($ac_try" in
35260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35261   *) ac_try_echo=$ac_try;;
35262 esac
35263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35264 $as_echo "$ac_try_echo") >&5
35265   (eval "$ac_compile") 2>conftest.er1
35266   ac_status=$?
35267   grep -v '^ *+' conftest.er1 >conftest.err
35268   rm -f conftest.er1
35269   cat conftest.err >&5
35270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35271   (exit $ac_status); } && {
35272          test -z "$ac_c_werror_flag" ||
35273          test ! -s conftest.err
35274        } && test -s conftest.$ac_objext; then
35275   ac_header_compiler=yes
35276 else
35277   $as_echo "$as_me: failed program was:" >&5
35278 sed 's/^/| /' conftest.$ac_ext >&5
35279
35280         ac_header_compiler=no
35281 fi
35282
35283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35284 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
35285 $as_echo "$ac_header_compiler" >&6; }
35286
35287 # Is the header present?
35288 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
35289 $as_echo_n "checking $ac_header presence... " >&6; }
35290 cat >conftest.$ac_ext <<_ACEOF
35291 /* confdefs.h.  */
35292 _ACEOF
35293 cat confdefs.h >>conftest.$ac_ext
35294 cat >>conftest.$ac_ext <<_ACEOF
35295 /* end confdefs.h.  */
35296 #include <$ac_header>
35297 _ACEOF
35298 if { (ac_try="$ac_cpp conftest.$ac_ext"
35299 case "(($ac_try" in
35300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35301   *) ac_try_echo=$ac_try;;
35302 esac
35303 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35304 $as_echo "$ac_try_echo") >&5
35305   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
35306   ac_status=$?
35307   grep -v '^ *+' conftest.er1 >conftest.err
35308   rm -f conftest.er1
35309   cat conftest.err >&5
35310   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35311   (exit $ac_status); } >/dev/null && {
35312          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
35313          test ! -s conftest.err
35314        }; then
35315   ac_header_preproc=yes
35316 else
35317   $as_echo "$as_me: failed program was:" >&5
35318 sed 's/^/| /' conftest.$ac_ext >&5
35319
35320   ac_header_preproc=no
35321 fi
35322
35323 rm -f conftest.err conftest.$ac_ext
35324 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
35325 $as_echo "$ac_header_preproc" >&6; }
35326
35327 # So?  What about this header?
35328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
35329   yes:no: )
35330     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
35331 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
35332     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
35333 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
35334     ac_header_preproc=yes
35335     ;;
35336   no:yes:* )
35337     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
35338 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
35339     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
35340 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
35341     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
35342 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
35343     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
35344 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
35345     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
35346 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
35347     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
35348 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
35349     ( cat <<\_ASBOX
35350 ## ------------------------------ ##
35351 ## Report this to bug-tar@gnu.org ##
35352 ## ------------------------------ ##
35353 _ASBOX
35354      ) | sed "s/^/$as_me: WARNING:     /" >&2
35355     ;;
35356 esac
35357 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
35358 $as_echo_n "checking for $ac_header... " >&6; }
35359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
35360   $as_echo_n "(cached) " >&6
35361 else
35362   eval "$as_ac_Header=\$ac_header_preproc"
35363 fi
35364 ac_res=`eval 'as_val=${'$as_ac_Header'}
35365                  $as_echo "$as_val"'`
35366                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35367 $as_echo "$ac_res" >&6; }
35368
35369 fi
35370 as_val=`eval 'as_val=${'$as_ac_Header'}
35371                  $as_echo "$as_val"'`
35372    if test "x$as_val" = x""yes; then
35373   cat >>confdefs.h <<_ACEOF
35374 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35375 _ACEOF
35376
35377 fi
35378
35379 done
35380
35381
35382
35383
35384
35385
35386
35387
35388
35389
35390
35391   { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
35392 $as_echo_n "checking whether isblank is declared... " >&6; }
35393 if test "${ac_cv_have_decl_isblank+set}" = set; then
35394   $as_echo_n "(cached) " >&6
35395 else
35396   cat >conftest.$ac_ext <<_ACEOF
35397 /* confdefs.h.  */
35398 _ACEOF
35399 cat confdefs.h >>conftest.$ac_ext
35400 cat >>conftest.$ac_ext <<_ACEOF
35401 /* end confdefs.h.  */
35402 #include <ctype.h>
35403
35404 int
35405 main ()
35406 {
35407 #ifndef isblank
35408   (void) isblank;
35409 #endif
35410
35411   ;
35412   return 0;
35413 }
35414 _ACEOF
35415 rm -f conftest.$ac_objext
35416 if { (ac_try="$ac_compile"
35417 case "(($ac_try" in
35418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35419   *) ac_try_echo=$ac_try;;
35420 esac
35421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35422 $as_echo "$ac_try_echo") >&5
35423   (eval "$ac_compile") 2>conftest.er1
35424   ac_status=$?
35425   grep -v '^ *+' conftest.er1 >conftest.err
35426   rm -f conftest.er1
35427   cat conftest.err >&5
35428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35429   (exit $ac_status); } && {
35430          test -z "$ac_c_werror_flag" ||
35431          test ! -s conftest.err
35432        } && test -s conftest.$ac_objext; then
35433   ac_cv_have_decl_isblank=yes
35434 else
35435   $as_echo "$as_me: failed program was:" >&5
35436 sed 's/^/| /' conftest.$ac_ext >&5
35437
35438         ac_cv_have_decl_isblank=no
35439 fi
35440
35441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35442 fi
35443 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
35444 $as_echo "$ac_cv_have_decl_isblank" >&6; }
35445 if test "x$ac_cv_have_decl_isblank" = x""yes; then
35446
35447 cat >>confdefs.h <<_ACEOF
35448 #define HAVE_DECL_ISBLANK 1
35449 _ACEOF
35450
35451
35452 else
35453   cat >>confdefs.h <<_ACEOF
35454 #define HAVE_DECL_ISBLANK 0
35455 _ACEOF
35456
35457
35458 fi
35459
35460
35461
35462   fi
35463
35464
35465
35466
35467
35468
35469
35470
35471
35472
35473
35474
35475
35476 for ac_func in rmdir
35477 do
35478 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35479 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35480 $as_echo_n "checking for $ac_func... " >&6; }
35481 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35482   $as_echo_n "(cached) " >&6
35483 else
35484   cat >conftest.$ac_ext <<_ACEOF
35485 /* confdefs.h.  */
35486 _ACEOF
35487 cat confdefs.h >>conftest.$ac_ext
35488 cat >>conftest.$ac_ext <<_ACEOF
35489 /* end confdefs.h.  */
35490 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35491    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35492 #define $ac_func innocuous_$ac_func
35493
35494 /* System header to define __stub macros and hopefully few prototypes,
35495     which can conflict with char $ac_func (); below.
35496     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35497     <limits.h> exists even on freestanding compilers.  */
35498
35499 #ifdef __STDC__
35500 # include <limits.h>
35501 #else
35502 # include <assert.h>
35503 #endif
35504
35505 #undef $ac_func
35506
35507 /* Override any GCC internal prototype to avoid an error.
35508    Use char because int might match the return type of a GCC
35509    builtin and then its argument prototype would still apply.  */
35510 #ifdef __cplusplus
35511 extern "C"
35512 #endif
35513 char $ac_func ();
35514 /* The GNU C library defines this for functions which it implements
35515     to always fail with ENOSYS.  Some functions are actually named
35516     something starting with __ and the normal name is an alias.  */
35517 #if defined __stub_$ac_func || defined __stub___$ac_func
35518 choke me
35519 #endif
35520
35521 int
35522 main ()
35523 {
35524 return $ac_func ();
35525   ;
35526   return 0;
35527 }
35528 _ACEOF
35529 rm -f conftest.$ac_objext conftest$ac_exeext
35530 if { (ac_try="$ac_link"
35531 case "(($ac_try" in
35532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35533   *) ac_try_echo=$ac_try;;
35534 esac
35535 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35536 $as_echo "$ac_try_echo") >&5
35537   (eval "$ac_link") 2>conftest.er1
35538   ac_status=$?
35539   grep -v '^ *+' conftest.er1 >conftest.err
35540   rm -f conftest.er1
35541   cat conftest.err >&5
35542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35543   (exit $ac_status); } && {
35544          test -z "$ac_c_werror_flag" ||
35545          test ! -s conftest.err
35546        } && test -s conftest$ac_exeext && {
35547          test "$cross_compiling" = yes ||
35548          $as_test_x conftest$ac_exeext
35549        }; then
35550   eval "$as_ac_var=yes"
35551 else
35552   $as_echo "$as_me: failed program was:" >&5
35553 sed 's/^/| /' conftest.$ac_ext >&5
35554
35555         eval "$as_ac_var=no"
35556 fi
35557
35558 rm -rf conftest.dSYM
35559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35560       conftest$ac_exeext conftest.$ac_ext
35561 fi
35562 ac_res=`eval 'as_val=${'$as_ac_var'}
35563                  $as_echo "$as_val"'`
35564                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35565 $as_echo "$ac_res" >&6; }
35566 as_val=`eval 'as_val=${'$as_ac_var'}
35567                  $as_echo "$as_val"'`
35568    if test "x$as_val" = x""yes; then
35569   cat >>confdefs.h <<_ACEOF
35570 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35571 _ACEOF
35572
35573 else
35574
35575     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
35576
35577 fi
35578 done
35579
35580
35581   if test $ac_cv_func_rmdir = no; then
35582     REPLACE_RMDIR=1
35583     # If someone lacks rmdir, make configure fail, and request
35584     # a bug report to inform us about it.
35585     if test x"$SKIP_RMDIR_CHECK" != xyes; then
35586       { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
35587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35588 { { $as_echo "$as_me:$LINENO: error: Your system lacks the rmdir function.
35589               Please report this, along with the output of \"uname -a\", to the
35590               bug-coreutils@gnu.org mailing list.  To continue past this point,
35591               rerun configure with SKIP_RMDIR_CHECK=yes.
35592               E.g., ./configure SKIP_RMDIR_CHECK=yes
35593 See \`config.log' for more details." >&5
35594 $as_echo "$as_me: error: Your system lacks the rmdir function.
35595               Please report this, along with the output of \"uname -a\", to the
35596               bug-coreutils@gnu.org mailing list.  To continue past this point,
35597               rerun configure with SKIP_RMDIR_CHECK=yes.
35598               E.g., ./configure SKIP_RMDIR_CHECK=yes
35599 See \`config.log' for more details." >&2;}
35600    { (exit 1); exit 1; }; }; }
35601     fi
35602   else
35603         { $as_echo "$as_me:$LINENO: checking whether rmdir works" >&5
35604 $as_echo_n "checking whether rmdir works... " >&6; }
35605 if test "${gl_cv_func_rmdir_works+set}" = set; then
35606   $as_echo_n "(cached) " >&6
35607 else
35608   mkdir conftest.dir
35609        touch conftest.file
35610        if test "$cross_compiling" = yes; then
35611   gl_cv_func_rmdir_works="guessing no"
35612 else
35613   cat >conftest.$ac_ext <<_ACEOF
35614 /* confdefs.h.  */
35615 _ACEOF
35616 cat confdefs.h >>conftest.$ac_ext
35617 cat >>conftest.$ac_ext <<_ACEOF
35618 /* end confdefs.h.  */
35619 #include <stdio.h>
35620              #include <errno.h>
35621              #include <unistd.h>
35622
35623 int
35624 main ()
35625 {
35626 return !rmdir ("conftest.file/") || errno != ENOTDIR
35627        || !rmdir ("conftest.dir/./");
35628   ;
35629   return 0;
35630 }
35631 _ACEOF
35632 rm -f conftest$ac_exeext
35633 if { (ac_try="$ac_link"
35634 case "(($ac_try" in
35635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35636   *) ac_try_echo=$ac_try;;
35637 esac
35638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35639 $as_echo "$ac_try_echo") >&5
35640   (eval "$ac_link") 2>&5
35641   ac_status=$?
35642   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35643   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35644   { (case "(($ac_try" in
35645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35646   *) ac_try_echo=$ac_try;;
35647 esac
35648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35649 $as_echo "$ac_try_echo") >&5
35650   (eval "$ac_try") 2>&5
35651   ac_status=$?
35652   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35653   (exit $ac_status); }; }; then
35654   gl_cv_func_rmdir_works=yes
35655 else
35656   $as_echo "$as_me: program exited with status $ac_status" >&5
35657 $as_echo "$as_me: failed program was:" >&5
35658 sed 's/^/| /' conftest.$ac_ext >&5
35659
35660 ( exit $ac_status )
35661 gl_cv_func_rmdir_works=no
35662 fi
35663 rm -rf conftest.dSYM
35664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35665 fi
35666
35667
35668        rm -rf conftest.dir conftest.file
35669 fi
35670 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rmdir_works" >&5
35671 $as_echo "$gl_cv_func_rmdir_works" >&6; }
35672     if test x"$gl_cv_func_rmdir_works" != xyes; then
35673       REPLACE_RMDIR=1
35674
35675
35676
35677
35678
35679
35680
35681
35682   gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
35683
35684     fi
35685   fi
35686
35687
35688
35689   GNULIB_RMDIR=1
35690
35691
35692 cat >>confdefs.h <<\_ACEOF
35693 #define GNULIB_RMDIR 1
35694 _ACEOF
35695
35696
35697
35698
35699
35700
35701
35702
35703
35704
35705
35706
35707
35708
35709
35710
35711 for ac_func in rpmatch
35712 do
35713 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35714 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35715 $as_echo_n "checking for $ac_func... " >&6; }
35716 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35717   $as_echo_n "(cached) " >&6
35718 else
35719   cat >conftest.$ac_ext <<_ACEOF
35720 /* confdefs.h.  */
35721 _ACEOF
35722 cat confdefs.h >>conftest.$ac_ext
35723 cat >>conftest.$ac_ext <<_ACEOF
35724 /* end confdefs.h.  */
35725 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35726    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35727 #define $ac_func innocuous_$ac_func
35728
35729 /* System header to define __stub macros and hopefully few prototypes,
35730     which can conflict with char $ac_func (); below.
35731     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35732     <limits.h> exists even on freestanding compilers.  */
35733
35734 #ifdef __STDC__
35735 # include <limits.h>
35736 #else
35737 # include <assert.h>
35738 #endif
35739
35740 #undef $ac_func
35741
35742 /* Override any GCC internal prototype to avoid an error.
35743    Use char because int might match the return type of a GCC
35744    builtin and then its argument prototype would still apply.  */
35745 #ifdef __cplusplus
35746 extern "C"
35747 #endif
35748 char $ac_func ();
35749 /* The GNU C library defines this for functions which it implements
35750     to always fail with ENOSYS.  Some functions are actually named
35751     something starting with __ and the normal name is an alias.  */
35752 #if defined __stub_$ac_func || defined __stub___$ac_func
35753 choke me
35754 #endif
35755
35756 int
35757 main ()
35758 {
35759 return $ac_func ();
35760   ;
35761   return 0;
35762 }
35763 _ACEOF
35764 rm -f conftest.$ac_objext conftest$ac_exeext
35765 if { (ac_try="$ac_link"
35766 case "(($ac_try" in
35767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35768   *) ac_try_echo=$ac_try;;
35769 esac
35770 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35771 $as_echo "$ac_try_echo") >&5
35772   (eval "$ac_link") 2>conftest.er1
35773   ac_status=$?
35774   grep -v '^ *+' conftest.er1 >conftest.err
35775   rm -f conftest.er1
35776   cat conftest.err >&5
35777   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35778   (exit $ac_status); } && {
35779          test -z "$ac_c_werror_flag" ||
35780          test ! -s conftest.err
35781        } && test -s conftest$ac_exeext && {
35782          test "$cross_compiling" = yes ||
35783          $as_test_x conftest$ac_exeext
35784        }; then
35785   eval "$as_ac_var=yes"
35786 else
35787   $as_echo "$as_me: failed program was:" >&5
35788 sed 's/^/| /' conftest.$ac_ext >&5
35789
35790         eval "$as_ac_var=no"
35791 fi
35792
35793 rm -rf conftest.dSYM
35794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35795       conftest$ac_exeext conftest.$ac_ext
35796 fi
35797 ac_res=`eval 'as_val=${'$as_ac_var'}
35798                  $as_echo "$as_val"'`
35799                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35800 $as_echo "$ac_res" >&6; }
35801 as_val=`eval 'as_val=${'$as_ac_var'}
35802                  $as_echo "$as_val"'`
35803    if test "x$as_val" = x""yes; then
35804   cat >>confdefs.h <<_ACEOF
35805 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35806 _ACEOF
35807
35808 else
35809
35810     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
35811
35812 fi
35813 done
35814
35815
35816   if test $ac_cv_func_rpmatch = no; then
35817     HAVE_RPMATCH=0
35818
35819   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
35820 $as_echo_n "checking for nl_langinfo and YESEXPR... " >&6; }
35821 if test "${gl_cv_langinfo_yesexpr+set}" = set; then
35822   $as_echo_n "(cached) " >&6
35823 else
35824   cat >conftest.$ac_ext <<_ACEOF
35825 /* confdefs.h.  */
35826 _ACEOF
35827 cat confdefs.h >>conftest.$ac_ext
35828 cat >>conftest.$ac_ext <<_ACEOF
35829 /* end confdefs.h.  */
35830 #include <langinfo.h>
35831 int
35832 main ()
35833 {
35834 char* cs = nl_langinfo(YESEXPR); return !cs;
35835   ;
35836   return 0;
35837 }
35838 _ACEOF
35839 rm -f conftest.$ac_objext conftest$ac_exeext
35840 if { (ac_try="$ac_link"
35841 case "(($ac_try" in
35842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35843   *) ac_try_echo=$ac_try;;
35844 esac
35845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35846 $as_echo "$ac_try_echo") >&5
35847   (eval "$ac_link") 2>conftest.er1
35848   ac_status=$?
35849   grep -v '^ *+' conftest.er1 >conftest.err
35850   rm -f conftest.er1
35851   cat conftest.err >&5
35852   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35853   (exit $ac_status); } && {
35854          test -z "$ac_c_werror_flag" ||
35855          test ! -s conftest.err
35856        } && test -s conftest$ac_exeext && {
35857          test "$cross_compiling" = yes ||
35858          $as_test_x conftest$ac_exeext
35859        }; then
35860   gl_cv_langinfo_yesexpr=yes
35861 else
35862   $as_echo "$as_me: failed program was:" >&5
35863 sed 's/^/| /' conftest.$ac_ext >&5
35864
35865         gl_cv_langinfo_yesexpr=no
35866 fi
35867
35868 rm -rf conftest.dSYM
35869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35870       conftest$ac_exeext conftest.$ac_ext
35871
35872 fi
35873 { $as_echo "$as_me:$LINENO: result: $gl_cv_langinfo_yesexpr" >&5
35874 $as_echo "$gl_cv_langinfo_yesexpr" >&6; }
35875   if test $gl_cv_langinfo_yesexpr = yes; then
35876
35877 cat >>confdefs.h <<\_ACEOF
35878 #define HAVE_LANGINFO_YESEXPR 1
35879 _ACEOF
35880
35881   fi
35882
35883   fi
35884
35885
35886
35887   GNULIB_RPMATCH=1
35888
35889
35890 cat >>confdefs.h <<\_ACEOF
35891 #define GNULIB_RPMATCH 1
35892 _ACEOF
35893
35894
35895
35896
35897
35898
35899
35900
35901
35902
35903
35904
35905   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
35906
35907
35908
35909
35910
35911
35912
35913
35914
35915
35916
35917
35918
35919
35920
35921   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
35922
35923
35924
35925
35926
35927
35928
35929
35930
35931
35932
35933
35934
35935
35936
35937
35938
35939   gl_LIBOBJS="$gl_LIBOBJS same.$ac_objext"
35940
35941
35942
35943
35944
35945
35946
35947
35948
35949
35950
35951
35952
35953
35954
35955
35956
35957
35958
35959   gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
35960
35961
35962
35963
35964
35965
35966
35967
35968
35969
35970
35971
35972
35973
35974
35975
35976
35977   gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
35978
35979
35980
35981
35982   if test $HAVE_SETENV$REPLACE_SETENV != 10; then
35983
35984
35985
35986
35987
35988
35989
35990
35991   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
35992
35993   fi
35994
35995
35996
35997   GNULIB_SETENV=1
35998
35999
36000 cat >>confdefs.h <<\_ACEOF
36001 #define GNULIB_SETENV 1
36002 _ACEOF
36003
36004
36005
36006
36007
36008 for ac_header in stdint.h
36009 do
36010 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36012   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36013 $as_echo_n "checking for $ac_header... " >&6; }
36014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36015   $as_echo_n "(cached) " >&6
36016 fi
36017 ac_res=`eval 'as_val=${'$as_ac_Header'}
36018                  $as_echo "$as_val"'`
36019                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36020 $as_echo "$ac_res" >&6; }
36021 else
36022   # Is the header compilable?
36023 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
36024 $as_echo_n "checking $ac_header usability... " >&6; }
36025 cat >conftest.$ac_ext <<_ACEOF
36026 /* confdefs.h.  */
36027 _ACEOF
36028 cat confdefs.h >>conftest.$ac_ext
36029 cat >>conftest.$ac_ext <<_ACEOF
36030 /* end confdefs.h.  */
36031 $ac_includes_default
36032 #include <$ac_header>
36033 _ACEOF
36034 rm -f conftest.$ac_objext
36035 if { (ac_try="$ac_compile"
36036 case "(($ac_try" in
36037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36038   *) ac_try_echo=$ac_try;;
36039 esac
36040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36041 $as_echo "$ac_try_echo") >&5
36042   (eval "$ac_compile") 2>conftest.er1
36043   ac_status=$?
36044   grep -v '^ *+' conftest.er1 >conftest.err
36045   rm -f conftest.er1
36046   cat conftest.err >&5
36047   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36048   (exit $ac_status); } && {
36049          test -z "$ac_c_werror_flag" ||
36050          test ! -s conftest.err
36051        } && test -s conftest.$ac_objext; then
36052   ac_header_compiler=yes
36053 else
36054   $as_echo "$as_me: failed program was:" >&5
36055 sed 's/^/| /' conftest.$ac_ext >&5
36056
36057         ac_header_compiler=no
36058 fi
36059
36060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36061 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
36062 $as_echo "$ac_header_compiler" >&6; }
36063
36064 # Is the header present?
36065 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
36066 $as_echo_n "checking $ac_header presence... " >&6; }
36067 cat >conftest.$ac_ext <<_ACEOF
36068 /* confdefs.h.  */
36069 _ACEOF
36070 cat confdefs.h >>conftest.$ac_ext
36071 cat >>conftest.$ac_ext <<_ACEOF
36072 /* end confdefs.h.  */
36073 #include <$ac_header>
36074 _ACEOF
36075 if { (ac_try="$ac_cpp conftest.$ac_ext"
36076 case "(($ac_try" in
36077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36078   *) ac_try_echo=$ac_try;;
36079 esac
36080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36081 $as_echo "$ac_try_echo") >&5
36082   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
36083   ac_status=$?
36084   grep -v '^ *+' conftest.er1 >conftest.err
36085   rm -f conftest.er1
36086   cat conftest.err >&5
36087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36088   (exit $ac_status); } >/dev/null && {
36089          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
36090          test ! -s conftest.err
36091        }; then
36092   ac_header_preproc=yes
36093 else
36094   $as_echo "$as_me: failed program was:" >&5
36095 sed 's/^/| /' conftest.$ac_ext >&5
36096
36097   ac_header_preproc=no
36098 fi
36099
36100 rm -f conftest.err conftest.$ac_ext
36101 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
36102 $as_echo "$ac_header_preproc" >&6; }
36103
36104 # So?  What about this header?
36105 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
36106   yes:no: )
36107     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
36108 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
36109     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
36110 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
36111     ac_header_preproc=yes
36112     ;;
36113   no:yes:* )
36114     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
36115 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
36116     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
36117 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
36118     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
36119 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
36120     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
36121 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
36122     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
36123 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
36124     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
36125 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
36126     ( cat <<\_ASBOX
36127 ## ------------------------------ ##
36128 ## Report this to bug-tar@gnu.org ##
36129 ## ------------------------------ ##
36130 _ASBOX
36131      ) | sed "s/^/$as_me: WARNING:     /" >&2
36132     ;;
36133 esac
36134 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
36135 $as_echo_n "checking for $ac_header... " >&6; }
36136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
36137   $as_echo_n "(cached) " >&6
36138 else
36139   eval "$as_ac_Header=\$ac_header_preproc"
36140 fi
36141 ac_res=`eval 'as_val=${'$as_ac_Header'}
36142                  $as_echo "$as_val"'`
36143                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36144 $as_echo "$ac_res" >&6; }
36145
36146 fi
36147 as_val=`eval 'as_val=${'$as_ac_Header'}
36148                  $as_echo "$as_val"'`
36149    if test "x$as_val" = x""yes; then
36150   cat >>confdefs.h <<_ACEOF
36151 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36152 _ACEOF
36153
36154 fi
36155
36156 done
36157
36158     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
36159 $as_echo_n "checking for SIZE_MAX... " >&6; }
36160 if test "${gl_cv_size_max+set}" = set; then
36161   $as_echo_n "(cached) " >&6
36162 else
36163
36164     gl_cv_size_max=
36165     cat >conftest.$ac_ext <<_ACEOF
36166 /* confdefs.h.  */
36167 _ACEOF
36168 cat confdefs.h >>conftest.$ac_ext
36169 cat >>conftest.$ac_ext <<_ACEOF
36170 /* end confdefs.h.  */
36171
36172 #include <limits.h>
36173 #if HAVE_STDINT_H
36174 #include <stdint.h>
36175 #endif
36176 #ifdef SIZE_MAX
36177 Found it
36178 #endif
36179
36180 _ACEOF
36181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36182   $EGREP "Found it" >/dev/null 2>&1; then
36183   gl_cv_size_max=yes
36184 fi
36185 rm -f conftest*
36186
36187     if test -z "$gl_cv_size_max"; then
36188                         if test "$cross_compiling" = yes; then
36189   # Depending upon the size, compute the lo and hi bounds.
36190 cat >conftest.$ac_ext <<_ACEOF
36191 /* confdefs.h.  */
36192 _ACEOF
36193 cat confdefs.h >>conftest.$ac_ext
36194 cat >>conftest.$ac_ext <<_ACEOF
36195 /* end confdefs.h.  */
36196 #include <stddef.h>
36197 #include <limits.h>
36198 int
36199 main ()
36200 {
36201 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
36202 test_array [0] = 0
36203
36204   ;
36205   return 0;
36206 }
36207 _ACEOF
36208 rm -f conftest.$ac_objext
36209 if { (ac_try="$ac_compile"
36210 case "(($ac_try" in
36211   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36212   *) ac_try_echo=$ac_try;;
36213 esac
36214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36215 $as_echo "$ac_try_echo") >&5
36216   (eval "$ac_compile") 2>conftest.er1
36217   ac_status=$?
36218   grep -v '^ *+' conftest.er1 >conftest.err
36219   rm -f conftest.er1
36220   cat conftest.err >&5
36221   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36222   (exit $ac_status); } && {
36223          test -z "$ac_c_werror_flag" ||
36224          test ! -s conftest.err
36225        } && test -s conftest.$ac_objext; then
36226   ac_lo=0 ac_mid=0
36227   while :; do
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 <stddef.h>
36235 #include <limits.h>
36236 int
36237 main ()
36238 {
36239 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
36240 test_array [0] = 0
36241
36242   ;
36243   return 0;
36244 }
36245 _ACEOF
36246 rm -f conftest.$ac_objext
36247 if { (ac_try="$ac_compile"
36248 case "(($ac_try" in
36249   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36250   *) ac_try_echo=$ac_try;;
36251 esac
36252 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36253 $as_echo "$ac_try_echo") >&5
36254   (eval "$ac_compile") 2>conftest.er1
36255   ac_status=$?
36256   grep -v '^ *+' conftest.er1 >conftest.err
36257   rm -f conftest.er1
36258   cat conftest.err >&5
36259   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36260   (exit $ac_status); } && {
36261          test -z "$ac_c_werror_flag" ||
36262          test ! -s conftest.err
36263        } && test -s conftest.$ac_objext; then
36264   ac_hi=$ac_mid; break
36265 else
36266   $as_echo "$as_me: failed program was:" >&5
36267 sed 's/^/| /' conftest.$ac_ext >&5
36268
36269         ac_lo=`expr $ac_mid + 1`
36270                         if test $ac_lo -le $ac_mid; then
36271                           ac_lo= ac_hi=
36272                           break
36273                         fi
36274                         ac_mid=`expr 2 '*' $ac_mid + 1`
36275 fi
36276
36277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36278   done
36279 else
36280   $as_echo "$as_me: failed program was:" >&5
36281 sed 's/^/| /' conftest.$ac_ext >&5
36282
36283         cat >conftest.$ac_ext <<_ACEOF
36284 /* confdefs.h.  */
36285 _ACEOF
36286 cat confdefs.h >>conftest.$ac_ext
36287 cat >>conftest.$ac_ext <<_ACEOF
36288 /* end confdefs.h.  */
36289 #include <stddef.h>
36290 #include <limits.h>
36291 int
36292 main ()
36293 {
36294 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
36295 test_array [0] = 0
36296
36297   ;
36298   return 0;
36299 }
36300 _ACEOF
36301 rm -f conftest.$ac_objext
36302 if { (ac_try="$ac_compile"
36303 case "(($ac_try" in
36304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36305   *) ac_try_echo=$ac_try;;
36306 esac
36307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36308 $as_echo "$ac_try_echo") >&5
36309   (eval "$ac_compile") 2>conftest.er1
36310   ac_status=$?
36311   grep -v '^ *+' conftest.er1 >conftest.err
36312   rm -f conftest.er1
36313   cat conftest.err >&5
36314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36315   (exit $ac_status); } && {
36316          test -z "$ac_c_werror_flag" ||
36317          test ! -s conftest.err
36318        } && test -s conftest.$ac_objext; then
36319   ac_hi=-1 ac_mid=-1
36320   while :; do
36321     cat >conftest.$ac_ext <<_ACEOF
36322 /* confdefs.h.  */
36323 _ACEOF
36324 cat confdefs.h >>conftest.$ac_ext
36325 cat >>conftest.$ac_ext <<_ACEOF
36326 /* end confdefs.h.  */
36327 #include <stddef.h>
36328 #include <limits.h>
36329 int
36330 main ()
36331 {
36332 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
36333 test_array [0] = 0
36334
36335   ;
36336   return 0;
36337 }
36338 _ACEOF
36339 rm -f conftest.$ac_objext
36340 if { (ac_try="$ac_compile"
36341 case "(($ac_try" in
36342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36343   *) ac_try_echo=$ac_try;;
36344 esac
36345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36346 $as_echo "$ac_try_echo") >&5
36347   (eval "$ac_compile") 2>conftest.er1
36348   ac_status=$?
36349   grep -v '^ *+' conftest.er1 >conftest.err
36350   rm -f conftest.er1
36351   cat conftest.err >&5
36352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36353   (exit $ac_status); } && {
36354          test -z "$ac_c_werror_flag" ||
36355          test ! -s conftest.err
36356        } && test -s conftest.$ac_objext; then
36357   ac_lo=$ac_mid; break
36358 else
36359   $as_echo "$as_me: failed program was:" >&5
36360 sed 's/^/| /' conftest.$ac_ext >&5
36361
36362         ac_hi=`expr '(' $ac_mid ')' - 1`
36363                         if test $ac_mid -le $ac_hi; then
36364                           ac_lo= ac_hi=
36365                           break
36366                         fi
36367                         ac_mid=`expr 2 '*' $ac_mid`
36368 fi
36369
36370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36371   done
36372 else
36373   $as_echo "$as_me: failed program was:" >&5
36374 sed 's/^/| /' conftest.$ac_ext >&5
36375
36376         ac_lo= ac_hi=
36377 fi
36378
36379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36380 fi
36381
36382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36383 # Binary search between lo and hi bounds.
36384 while test "x$ac_lo" != "x$ac_hi"; do
36385   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36386   cat >conftest.$ac_ext <<_ACEOF
36387 /* confdefs.h.  */
36388 _ACEOF
36389 cat confdefs.h >>conftest.$ac_ext
36390 cat >>conftest.$ac_ext <<_ACEOF
36391 /* end confdefs.h.  */
36392 #include <stddef.h>
36393 #include <limits.h>
36394 int
36395 main ()
36396 {
36397 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
36398 test_array [0] = 0
36399
36400   ;
36401   return 0;
36402 }
36403 _ACEOF
36404 rm -f conftest.$ac_objext
36405 if { (ac_try="$ac_compile"
36406 case "(($ac_try" in
36407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36408   *) ac_try_echo=$ac_try;;
36409 esac
36410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36411 $as_echo "$ac_try_echo") >&5
36412   (eval "$ac_compile") 2>conftest.er1
36413   ac_status=$?
36414   grep -v '^ *+' conftest.er1 >conftest.err
36415   rm -f conftest.er1
36416   cat conftest.err >&5
36417   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36418   (exit $ac_status); } && {
36419          test -z "$ac_c_werror_flag" ||
36420          test ! -s conftest.err
36421        } && test -s conftest.$ac_objext; then
36422   ac_hi=$ac_mid
36423 else
36424   $as_echo "$as_me: failed program was:" >&5
36425 sed 's/^/| /' conftest.$ac_ext >&5
36426
36427         ac_lo=`expr '(' $ac_mid ')' + 1`
36428 fi
36429
36430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36431 done
36432 case $ac_lo in
36433 ?*) size_t_bits_minus_1=$ac_lo;;
36434 '') size_t_bits_minus_1= ;;
36435 esac
36436 else
36437   cat >conftest.$ac_ext <<_ACEOF
36438 /* confdefs.h.  */
36439 _ACEOF
36440 cat confdefs.h >>conftest.$ac_ext
36441 cat >>conftest.$ac_ext <<_ACEOF
36442 /* end confdefs.h.  */
36443 #include <stddef.h>
36444 #include <limits.h>
36445 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
36446 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
36447 #include <stdio.h>
36448 #include <stdlib.h>
36449 int
36450 main ()
36451 {
36452
36453   FILE *f = fopen ("conftest.val", "w");
36454   if (! f)
36455     return 1;
36456   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
36457     {
36458       long int i = longval ();
36459       if (i != (sizeof (size_t) * CHAR_BIT - 1))
36460         return 1;
36461       fprintf (f, "%ld", i);
36462     }
36463   else
36464     {
36465       unsigned long int i = ulongval ();
36466       if (i != (sizeof (size_t) * CHAR_BIT - 1))
36467         return 1;
36468       fprintf (f, "%lu", i);
36469     }
36470   /* Do not output a trailing newline, as this causes \r\n confusion
36471      on some platforms.  */
36472   return ferror (f) || fclose (f) != 0;
36473
36474   ;
36475   return 0;
36476 }
36477 _ACEOF
36478 rm -f conftest$ac_exeext
36479 if { (ac_try="$ac_link"
36480 case "(($ac_try" in
36481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36482   *) ac_try_echo=$ac_try;;
36483 esac
36484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36485 $as_echo "$ac_try_echo") >&5
36486   (eval "$ac_link") 2>&5
36487   ac_status=$?
36488   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36489   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36490   { (case "(($ac_try" in
36491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36492   *) ac_try_echo=$ac_try;;
36493 esac
36494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36495 $as_echo "$ac_try_echo") >&5
36496   (eval "$ac_try") 2>&5
36497   ac_status=$?
36498   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36499   (exit $ac_status); }; }; then
36500   size_t_bits_minus_1=`cat conftest.val`
36501 else
36502   $as_echo "$as_me: program exited with status $ac_status" >&5
36503 $as_echo "$as_me: failed program was:" >&5
36504 sed 's/^/| /' conftest.$ac_ext >&5
36505
36506 ( exit $ac_status )
36507 size_t_bits_minus_1=
36508 fi
36509 rm -rf conftest.dSYM
36510 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36511 fi
36512 rm -f conftest.val
36513       if test "$cross_compiling" = yes; then
36514   # Depending upon the size, compute the lo and hi bounds.
36515 cat >conftest.$ac_ext <<_ACEOF
36516 /* confdefs.h.  */
36517 _ACEOF
36518 cat confdefs.h >>conftest.$ac_ext
36519 cat >>conftest.$ac_ext <<_ACEOF
36520 /* end confdefs.h.  */
36521 #include <stddef.h>
36522 int
36523 main ()
36524 {
36525 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
36526 test_array [0] = 0
36527
36528   ;
36529   return 0;
36530 }
36531 _ACEOF
36532 rm -f conftest.$ac_objext
36533 if { (ac_try="$ac_compile"
36534 case "(($ac_try" in
36535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36536   *) ac_try_echo=$ac_try;;
36537 esac
36538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36539 $as_echo "$ac_try_echo") >&5
36540   (eval "$ac_compile") 2>conftest.er1
36541   ac_status=$?
36542   grep -v '^ *+' conftest.er1 >conftest.err
36543   rm -f conftest.er1
36544   cat conftest.err >&5
36545   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36546   (exit $ac_status); } && {
36547          test -z "$ac_c_werror_flag" ||
36548          test ! -s conftest.err
36549        } && test -s conftest.$ac_objext; then
36550   ac_lo=0 ac_mid=0
36551   while :; do
36552     cat >conftest.$ac_ext <<_ACEOF
36553 /* confdefs.h.  */
36554 _ACEOF
36555 cat confdefs.h >>conftest.$ac_ext
36556 cat >>conftest.$ac_ext <<_ACEOF
36557 /* end confdefs.h.  */
36558 #include <stddef.h>
36559 int
36560 main ()
36561 {
36562 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
36563 test_array [0] = 0
36564
36565   ;
36566   return 0;
36567 }
36568 _ACEOF
36569 rm -f conftest.$ac_objext
36570 if { (ac_try="$ac_compile"
36571 case "(($ac_try" in
36572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36573   *) ac_try_echo=$ac_try;;
36574 esac
36575 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36576 $as_echo "$ac_try_echo") >&5
36577   (eval "$ac_compile") 2>conftest.er1
36578   ac_status=$?
36579   grep -v '^ *+' conftest.er1 >conftest.err
36580   rm -f conftest.er1
36581   cat conftest.err >&5
36582   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36583   (exit $ac_status); } && {
36584          test -z "$ac_c_werror_flag" ||
36585          test ! -s conftest.err
36586        } && test -s conftest.$ac_objext; then
36587   ac_hi=$ac_mid; break
36588 else
36589   $as_echo "$as_me: failed program was:" >&5
36590 sed 's/^/| /' conftest.$ac_ext >&5
36591
36592         ac_lo=`expr $ac_mid + 1`
36593                         if test $ac_lo -le $ac_mid; then
36594                           ac_lo= ac_hi=
36595                           break
36596                         fi
36597                         ac_mid=`expr 2 '*' $ac_mid + 1`
36598 fi
36599
36600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36601   done
36602 else
36603   $as_echo "$as_me: failed program was:" >&5
36604 sed 's/^/| /' conftest.$ac_ext >&5
36605
36606         cat >conftest.$ac_ext <<_ACEOF
36607 /* confdefs.h.  */
36608 _ACEOF
36609 cat confdefs.h >>conftest.$ac_ext
36610 cat >>conftest.$ac_ext <<_ACEOF
36611 /* end confdefs.h.  */
36612 #include <stddef.h>
36613 int
36614 main ()
36615 {
36616 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
36617 test_array [0] = 0
36618
36619   ;
36620   return 0;
36621 }
36622 _ACEOF
36623 rm -f conftest.$ac_objext
36624 if { (ac_try="$ac_compile"
36625 case "(($ac_try" in
36626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36627   *) ac_try_echo=$ac_try;;
36628 esac
36629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36630 $as_echo "$ac_try_echo") >&5
36631   (eval "$ac_compile") 2>conftest.er1
36632   ac_status=$?
36633   grep -v '^ *+' conftest.er1 >conftest.err
36634   rm -f conftest.er1
36635   cat conftest.err >&5
36636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36637   (exit $ac_status); } && {
36638          test -z "$ac_c_werror_flag" ||
36639          test ! -s conftest.err
36640        } && test -s conftest.$ac_objext; then
36641   ac_hi=-1 ac_mid=-1
36642   while :; do
36643     cat >conftest.$ac_ext <<_ACEOF
36644 /* confdefs.h.  */
36645 _ACEOF
36646 cat confdefs.h >>conftest.$ac_ext
36647 cat >>conftest.$ac_ext <<_ACEOF
36648 /* end confdefs.h.  */
36649 #include <stddef.h>
36650 int
36651 main ()
36652 {
36653 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
36654 test_array [0] = 0
36655
36656   ;
36657   return 0;
36658 }
36659 _ACEOF
36660 rm -f conftest.$ac_objext
36661 if { (ac_try="$ac_compile"
36662 case "(($ac_try" in
36663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36664   *) ac_try_echo=$ac_try;;
36665 esac
36666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36667 $as_echo "$ac_try_echo") >&5
36668   (eval "$ac_compile") 2>conftest.er1
36669   ac_status=$?
36670   grep -v '^ *+' conftest.er1 >conftest.err
36671   rm -f conftest.er1
36672   cat conftest.err >&5
36673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36674   (exit $ac_status); } && {
36675          test -z "$ac_c_werror_flag" ||
36676          test ! -s conftest.err
36677        } && test -s conftest.$ac_objext; then
36678   ac_lo=$ac_mid; break
36679 else
36680   $as_echo "$as_me: failed program was:" >&5
36681 sed 's/^/| /' conftest.$ac_ext >&5
36682
36683         ac_hi=`expr '(' $ac_mid ')' - 1`
36684                         if test $ac_mid -le $ac_hi; then
36685                           ac_lo= ac_hi=
36686                           break
36687                         fi
36688                         ac_mid=`expr 2 '*' $ac_mid`
36689 fi
36690
36691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36692   done
36693 else
36694   $as_echo "$as_me: failed program was:" >&5
36695 sed 's/^/| /' conftest.$ac_ext >&5
36696
36697         ac_lo= ac_hi=
36698 fi
36699
36700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36701 fi
36702
36703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36704 # Binary search between lo and hi bounds.
36705 while test "x$ac_lo" != "x$ac_hi"; do
36706   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
36707   cat >conftest.$ac_ext <<_ACEOF
36708 /* confdefs.h.  */
36709 _ACEOF
36710 cat confdefs.h >>conftest.$ac_ext
36711 cat >>conftest.$ac_ext <<_ACEOF
36712 /* end confdefs.h.  */
36713 #include <stddef.h>
36714 int
36715 main ()
36716 {
36717 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
36718 test_array [0] = 0
36719
36720   ;
36721   return 0;
36722 }
36723 _ACEOF
36724 rm -f conftest.$ac_objext
36725 if { (ac_try="$ac_compile"
36726 case "(($ac_try" in
36727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36728   *) ac_try_echo=$ac_try;;
36729 esac
36730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36731 $as_echo "$ac_try_echo") >&5
36732   (eval "$ac_compile") 2>conftest.er1
36733   ac_status=$?
36734   grep -v '^ *+' conftest.er1 >conftest.err
36735   rm -f conftest.er1
36736   cat conftest.err >&5
36737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36738   (exit $ac_status); } && {
36739          test -z "$ac_c_werror_flag" ||
36740          test ! -s conftest.err
36741        } && test -s conftest.$ac_objext; then
36742   ac_hi=$ac_mid
36743 else
36744   $as_echo "$as_me: failed program was:" >&5
36745 sed 's/^/| /' conftest.$ac_ext >&5
36746
36747         ac_lo=`expr '(' $ac_mid ')' + 1`
36748 fi
36749
36750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36751 done
36752 case $ac_lo in
36753 ?*) fits_in_uint=$ac_lo;;
36754 '') fits_in_uint= ;;
36755 esac
36756 else
36757   cat >conftest.$ac_ext <<_ACEOF
36758 /* confdefs.h.  */
36759 _ACEOF
36760 cat confdefs.h >>conftest.$ac_ext
36761 cat >>conftest.$ac_ext <<_ACEOF
36762 /* end confdefs.h.  */
36763 #include <stddef.h>
36764 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
36765 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
36766 #include <stdio.h>
36767 #include <stdlib.h>
36768 int
36769 main ()
36770 {
36771
36772   FILE *f = fopen ("conftest.val", "w");
36773   if (! f)
36774     return 1;
36775   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
36776     {
36777       long int i = longval ();
36778       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
36779         return 1;
36780       fprintf (f, "%ld", i);
36781     }
36782   else
36783     {
36784       unsigned long int i = ulongval ();
36785       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
36786         return 1;
36787       fprintf (f, "%lu", i);
36788     }
36789   /* Do not output a trailing newline, as this causes \r\n confusion
36790      on some platforms.  */
36791   return ferror (f) || fclose (f) != 0;
36792
36793   ;
36794   return 0;
36795 }
36796 _ACEOF
36797 rm -f conftest$ac_exeext
36798 if { (ac_try="$ac_link"
36799 case "(($ac_try" in
36800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36801   *) ac_try_echo=$ac_try;;
36802 esac
36803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36804 $as_echo "$ac_try_echo") >&5
36805   (eval "$ac_link") 2>&5
36806   ac_status=$?
36807   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36808   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36809   { (case "(($ac_try" in
36810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36811   *) ac_try_echo=$ac_try;;
36812 esac
36813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36814 $as_echo "$ac_try_echo") >&5
36815   (eval "$ac_try") 2>&5
36816   ac_status=$?
36817   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36818   (exit $ac_status); }; }; then
36819   fits_in_uint=`cat conftest.val`
36820 else
36821   $as_echo "$as_me: program exited with status $ac_status" >&5
36822 $as_echo "$as_me: failed program was:" >&5
36823 sed 's/^/| /' conftest.$ac_ext >&5
36824
36825 ( exit $ac_status )
36826 fits_in_uint=
36827 fi
36828 rm -rf conftest.dSYM
36829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36830 fi
36831 rm -f conftest.val
36832       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
36833         if test $fits_in_uint = 1; then
36834                               cat >conftest.$ac_ext <<_ACEOF
36835 /* confdefs.h.  */
36836 _ACEOF
36837 cat confdefs.h >>conftest.$ac_ext
36838 cat >>conftest.$ac_ext <<_ACEOF
36839 /* end confdefs.h.  */
36840 #include <stddef.h>
36841             extern size_t foo;
36842             extern unsigned long foo;
36843
36844 int
36845 main ()
36846 {
36847
36848   ;
36849   return 0;
36850 }
36851 _ACEOF
36852 rm -f conftest.$ac_objext
36853 if { (ac_try="$ac_compile"
36854 case "(($ac_try" in
36855   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36856   *) ac_try_echo=$ac_try;;
36857 esac
36858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36859 $as_echo "$ac_try_echo") >&5
36860   (eval "$ac_compile") 2>conftest.er1
36861   ac_status=$?
36862   grep -v '^ *+' conftest.er1 >conftest.err
36863   rm -f conftest.er1
36864   cat conftest.err >&5
36865   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36866   (exit $ac_status); } && {
36867          test -z "$ac_c_werror_flag" ||
36868          test ! -s conftest.err
36869        } && test -s conftest.$ac_objext; then
36870   fits_in_uint=0
36871 else
36872   $as_echo "$as_me: failed program was:" >&5
36873 sed 's/^/| /' conftest.$ac_ext >&5
36874
36875
36876 fi
36877
36878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36879         fi
36880                                 if test $fits_in_uint = 1; then
36881           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
36882         else
36883           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
36884         fi
36885       else
36886                 gl_cv_size_max='((size_t)~(size_t)0)'
36887       fi
36888     fi
36889
36890 fi
36891 { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
36892 $as_echo "$gl_cv_size_max" >&6; }
36893   if test "$gl_cv_size_max" != yes; then
36894
36895 cat >>confdefs.h <<_ACEOF
36896 #define SIZE_MAX $gl_cv_size_max
36897 _ACEOF
36898
36899   fi
36900
36901
36902
36903
36904
36905             { $as_echo "$as_me:$LINENO: checking whether sleep is declared" >&5
36906 $as_echo_n "checking whether sleep is declared... " >&6; }
36907 if test "${ac_cv_have_decl_sleep+set}" = set; then
36908   $as_echo_n "(cached) " >&6
36909 else
36910   cat >conftest.$ac_ext <<_ACEOF
36911 /* confdefs.h.  */
36912 _ACEOF
36913 cat confdefs.h >>conftest.$ac_ext
36914 cat >>conftest.$ac_ext <<_ACEOF
36915 /* end confdefs.h.  */
36916 #include <unistd.h>
36917
36918 int
36919 main ()
36920 {
36921 #ifndef sleep
36922   (void) sleep;
36923 #endif
36924
36925   ;
36926   return 0;
36927 }
36928 _ACEOF
36929 rm -f conftest.$ac_objext
36930 if { (ac_try="$ac_compile"
36931 case "(($ac_try" in
36932   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36933   *) ac_try_echo=$ac_try;;
36934 esac
36935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36936 $as_echo "$ac_try_echo") >&5
36937   (eval "$ac_compile") 2>conftest.er1
36938   ac_status=$?
36939   grep -v '^ *+' conftest.er1 >conftest.err
36940   rm -f conftest.er1
36941   cat conftest.err >&5
36942   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36943   (exit $ac_status); } && {
36944          test -z "$ac_c_werror_flag" ||
36945          test ! -s conftest.err
36946        } && test -s conftest.$ac_objext; then
36947   ac_cv_have_decl_sleep=yes
36948 else
36949   $as_echo "$as_me: failed program was:" >&5
36950 sed 's/^/| /' conftest.$ac_ext >&5
36951
36952         ac_cv_have_decl_sleep=no
36953 fi
36954
36955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36956 fi
36957 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
36958 $as_echo "$ac_cv_have_decl_sleep" >&6; }
36959 if test "x$ac_cv_have_decl_sleep" = x""yes; then
36960
36961 cat >>confdefs.h <<_ACEOF
36962 #define HAVE_DECL_SLEEP 1
36963 _ACEOF
36964
36965
36966 else
36967   cat >>confdefs.h <<_ACEOF
36968 #define HAVE_DECL_SLEEP 0
36969 _ACEOF
36970
36971
36972 fi
36973
36974
36975
36976
36977
36978
36979
36980
36981   if test $ac_cv_have_decl_sleep != yes; then
36982     HAVE_SLEEP=0
36983
36984
36985
36986
36987
36988
36989
36990
36991   gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
36992
36993   else
36994         { $as_echo "$as_me:$LINENO: checking for working sleep" >&5
36995 $as_echo_n "checking for working sleep... " >&6; }
36996 if test "${gl_cv_func_sleep_works+set}" = set; then
36997   $as_echo_n "(cached) " >&6
36998 else
36999   if test "$cross_compiling" = yes; then
37000   gl_cv_func_sleep_works="guessing no"
37001 else
37002   cat >conftest.$ac_ext <<_ACEOF
37003 /* confdefs.h.  */
37004 _ACEOF
37005 cat confdefs.h >>conftest.$ac_ext
37006 cat >>conftest.$ac_ext <<_ACEOF
37007 /* end confdefs.h.  */
37008
37009 #include <errno.h>
37010 #include <unistd.h>
37011 #include <signal.h>
37012 static void
37013 handle_alarm (int sig)
37014 {
37015   if (sig != SIGALRM)
37016     _exit (2);
37017 }
37018
37019 int
37020 main ()
37021 {
37022
37023     /* Failure to compile this test due to missing alarm is okay,
37024        since all such platforms (mingw) also lack sleep.  */
37025     unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
37026     unsigned int remaining;
37027     signal (SIGALRM, handle_alarm);
37028     alarm (1);
37029     remaining = sleep (pentecost);
37030     return !(pentecost - 10 < remaining && remaining <= pentecost);
37031   ;
37032   return 0;
37033 }
37034 _ACEOF
37035 rm -f conftest$ac_exeext
37036 if { (ac_try="$ac_link"
37037 case "(($ac_try" in
37038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37039   *) ac_try_echo=$ac_try;;
37040 esac
37041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37042 $as_echo "$ac_try_echo") >&5
37043   (eval "$ac_link") 2>&5
37044   ac_status=$?
37045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37046   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37047   { (case "(($ac_try" in
37048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37049   *) ac_try_echo=$ac_try;;
37050 esac
37051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37052 $as_echo "$ac_try_echo") >&5
37053   (eval "$ac_try") 2>&5
37054   ac_status=$?
37055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37056   (exit $ac_status); }; }; then
37057   gl_cv_func_sleep_works=yes
37058 else
37059   $as_echo "$as_me: program exited with status $ac_status" >&5
37060 $as_echo "$as_me: failed program was:" >&5
37061 sed 's/^/| /' conftest.$ac_ext >&5
37062
37063 ( exit $ac_status )
37064 gl_cv_func_sleep_works=no
37065 fi
37066 rm -rf conftest.dSYM
37067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37068 fi
37069
37070
37071 fi
37072 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_sleep_works" >&5
37073 $as_echo "$gl_cv_func_sleep_works" >&6; }
37074     if test "$gl_cv_func_sleep_works" != yes; then
37075       REPLACE_SLEEP=1
37076
37077
37078
37079
37080
37081
37082
37083
37084   gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
37085
37086     fi
37087   fi
37088
37089
37090
37091   GNULIB_SLEEP=1
37092
37093
37094 cat >>confdefs.h <<\_ACEOF
37095 #define GNULIB_SLEEP 1
37096 _ACEOF
37097
37098
37099
37100
37101
37102   gl_cv_func_snprintf_usable=no
37103
37104 for ac_func in snprintf
37105 do
37106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37107 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37108 $as_echo_n "checking for $ac_func... " >&6; }
37109 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37110   $as_echo_n "(cached) " >&6
37111 else
37112   cat >conftest.$ac_ext <<_ACEOF
37113 /* confdefs.h.  */
37114 _ACEOF
37115 cat confdefs.h >>conftest.$ac_ext
37116 cat >>conftest.$ac_ext <<_ACEOF
37117 /* end confdefs.h.  */
37118 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37119    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37120 #define $ac_func innocuous_$ac_func
37121
37122 /* System header to define __stub macros and hopefully few prototypes,
37123     which can conflict with char $ac_func (); below.
37124     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37125     <limits.h> exists even on freestanding compilers.  */
37126
37127 #ifdef __STDC__
37128 # include <limits.h>
37129 #else
37130 # include <assert.h>
37131 #endif
37132
37133 #undef $ac_func
37134
37135 /* Override any GCC internal prototype to avoid an error.
37136    Use char because int might match the return type of a GCC
37137    builtin and then its argument prototype would still apply.  */
37138 #ifdef __cplusplus
37139 extern "C"
37140 #endif
37141 char $ac_func ();
37142 /* The GNU C library defines this for functions which it implements
37143     to always fail with ENOSYS.  Some functions are actually named
37144     something starting with __ and the normal name is an alias.  */
37145 #if defined __stub_$ac_func || defined __stub___$ac_func
37146 choke me
37147 #endif
37148
37149 int
37150 main ()
37151 {
37152 return $ac_func ();
37153   ;
37154   return 0;
37155 }
37156 _ACEOF
37157 rm -f conftest.$ac_objext conftest$ac_exeext
37158 if { (ac_try="$ac_link"
37159 case "(($ac_try" in
37160   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37161   *) ac_try_echo=$ac_try;;
37162 esac
37163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37164 $as_echo "$ac_try_echo") >&5
37165   (eval "$ac_link") 2>conftest.er1
37166   ac_status=$?
37167   grep -v '^ *+' conftest.er1 >conftest.err
37168   rm -f conftest.er1
37169   cat conftest.err >&5
37170   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37171   (exit $ac_status); } && {
37172          test -z "$ac_c_werror_flag" ||
37173          test ! -s conftest.err
37174        } && test -s conftest$ac_exeext && {
37175          test "$cross_compiling" = yes ||
37176          $as_test_x conftest$ac_exeext
37177        }; then
37178   eval "$as_ac_var=yes"
37179 else
37180   $as_echo "$as_me: failed program was:" >&5
37181 sed 's/^/| /' conftest.$ac_ext >&5
37182
37183         eval "$as_ac_var=no"
37184 fi
37185
37186 rm -rf conftest.dSYM
37187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37188       conftest$ac_exeext conftest.$ac_ext
37189 fi
37190 ac_res=`eval 'as_val=${'$as_ac_var'}
37191                  $as_echo "$as_val"'`
37192                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37193 $as_echo "$ac_res" >&6; }
37194 as_val=`eval 'as_val=${'$as_ac_var'}
37195                  $as_echo "$as_val"'`
37196    if test "x$as_val" = x""yes; then
37197   cat >>confdefs.h <<_ACEOF
37198 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37199 _ACEOF
37200
37201 fi
37202 done
37203
37204   if test $ac_cv_func_snprintf = yes; then
37205
37206
37207   { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
37208 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
37209 if test "${gl_cv_func_snprintf_size1+set}" = set; then
37210   $as_echo_n "(cached) " >&6
37211 else
37212
37213       if test "$cross_compiling" = yes; then
37214   gl_cv_func_snprintf_size1="guessing yes"
37215 else
37216   cat >conftest.$ac_ext <<_ACEOF
37217 /* confdefs.h.  */
37218 _ACEOF
37219 cat confdefs.h >>conftest.$ac_ext
37220 cat >>conftest.$ac_ext <<_ACEOF
37221 /* end confdefs.h.  */
37222
37223 #include <stdio.h>
37224 int main()
37225 {
37226   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
37227   snprintf (buf, 1, "%d", 12345);
37228   return buf[1] != 'E';
37229 }
37230 _ACEOF
37231 rm -f conftest$ac_exeext
37232 if { (ac_try="$ac_link"
37233 case "(($ac_try" in
37234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37235   *) ac_try_echo=$ac_try;;
37236 esac
37237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37238 $as_echo "$ac_try_echo") >&5
37239   (eval "$ac_link") 2>&5
37240   ac_status=$?
37241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37242   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37243   { (case "(($ac_try" in
37244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37245   *) ac_try_echo=$ac_try;;
37246 esac
37247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37248 $as_echo "$ac_try_echo") >&5
37249   (eval "$ac_try") 2>&5
37250   ac_status=$?
37251   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37252   (exit $ac_status); }; }; then
37253   gl_cv_func_snprintf_size1=yes
37254 else
37255   $as_echo "$as_me: program exited with status $ac_status" >&5
37256 $as_echo "$as_me: failed program was:" >&5
37257 sed 's/^/| /' conftest.$ac_ext >&5
37258
37259 ( exit $ac_status )
37260 gl_cv_func_snprintf_size1=no
37261 fi
37262 rm -rf conftest.dSYM
37263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37264 fi
37265
37266
37267
37268 fi
37269 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
37270 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
37271
37272     case "$gl_cv_func_snprintf_size1" in
37273       *yes)
37274         gl_cv_func_snprintf_usable=yes
37275         ;;
37276     esac
37277   fi
37278   if test $gl_cv_func_snprintf_usable = no; then
37279
37280
37281
37282
37283
37284
37285
37286
37287
37288
37289   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
37290
37291   if test $ac_cv_func_snprintf = yes; then
37292     REPLACE_SNPRINTF=1
37293   fi
37294   :
37295
37296   fi
37297
37298
37299
37300
37301   if test $ac_cv_have_decl_snprintf = no; then
37302     HAVE_DECL_SNPRINTF=0
37303   fi
37304
37305
37306
37307   GNULIB_SNPRINTF=1
37308
37309
37310 cat >>confdefs.h <<\_ACEOF
37311 #define GNULIB_SNPRINTF 1
37312 _ACEOF
37313
37314
37315
37316
37317   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
37318 $as_echo_n "checking for ssize_t... " >&6; }
37319 if test "${gt_cv_ssize_t+set}" = set; then
37320   $as_echo_n "(cached) " >&6
37321 else
37322   cat >conftest.$ac_ext <<_ACEOF
37323 /* confdefs.h.  */
37324 _ACEOF
37325 cat confdefs.h >>conftest.$ac_ext
37326 cat >>conftest.$ac_ext <<_ACEOF
37327 /* end confdefs.h.  */
37328 #include <sys/types.h>
37329 int
37330 main ()
37331 {
37332 int x = sizeof (ssize_t *) + sizeof (ssize_t);
37333         return !x;
37334   ;
37335   return 0;
37336 }
37337 _ACEOF
37338 rm -f conftest.$ac_objext
37339 if { (ac_try="$ac_compile"
37340 case "(($ac_try" in
37341   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37342   *) ac_try_echo=$ac_try;;
37343 esac
37344 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37345 $as_echo "$ac_try_echo") >&5
37346   (eval "$ac_compile") 2>conftest.er1
37347   ac_status=$?
37348   grep -v '^ *+' conftest.er1 >conftest.err
37349   rm -f conftest.er1
37350   cat conftest.err >&5
37351   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37352   (exit $ac_status); } && {
37353          test -z "$ac_c_werror_flag" ||
37354          test ! -s conftest.err
37355        } && test -s conftest.$ac_objext; then
37356   gt_cv_ssize_t=yes
37357 else
37358   $as_echo "$as_me: failed program was:" >&5
37359 sed 's/^/| /' conftest.$ac_ext >&5
37360
37361         gt_cv_ssize_t=no
37362 fi
37363
37364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37365 fi
37366 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
37367 $as_echo "$gt_cv_ssize_t" >&6; }
37368   if test $gt_cv_ssize_t = no; then
37369
37370 cat >>confdefs.h <<\_ACEOF
37371 #define ssize_t int
37372 _ACEOF
37373
37374   fi
37375
37376
37377
37378
37379
37380
37381
37382
37383
37384
37385     { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on directories" >&5
37386 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
37387 if test "${gl_cv_func_stat_dir_slash+set}" = set; then
37388   $as_echo_n "(cached) " >&6
37389 else
37390   if test "$cross_compiling" = yes; then
37391   case $host_os in
37392             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
37393             *) gl_cv_func_stat_dir_slash="guessing yes";;
37394           esac
37395 else
37396   cat >conftest.$ac_ext <<_ACEOF
37397 /* confdefs.h.  */
37398 _ACEOF
37399 cat confdefs.h >>conftest.$ac_ext
37400 cat >>conftest.$ac_ext <<_ACEOF
37401 /* end confdefs.h.  */
37402 #include <sys/stat.h>
37403
37404 int
37405 main ()
37406 {
37407 struct stat st; return stat (".", &st) != stat ("./", &st);
37408   ;
37409   return 0;
37410 }
37411 _ACEOF
37412 rm -f conftest$ac_exeext
37413 if { (ac_try="$ac_link"
37414 case "(($ac_try" in
37415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37416   *) ac_try_echo=$ac_try;;
37417 esac
37418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37419 $as_echo "$ac_try_echo") >&5
37420   (eval "$ac_link") 2>&5
37421   ac_status=$?
37422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37423   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37424   { (case "(($ac_try" in
37425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37426   *) ac_try_echo=$ac_try;;
37427 esac
37428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37429 $as_echo "$ac_try_echo") >&5
37430   (eval "$ac_try") 2>&5
37431   ac_status=$?
37432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37433   (exit $ac_status); }; }; then
37434   gl_cv_func_stat_dir_slash=yes
37435 else
37436   $as_echo "$as_me: program exited with status $ac_status" >&5
37437 $as_echo "$as_me: failed program was:" >&5
37438 sed 's/^/| /' conftest.$ac_ext >&5
37439
37440 ( exit $ac_status )
37441 gl_cv_func_stat_dir_slash=no
37442 fi
37443 rm -rf conftest.dSYM
37444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37445 fi
37446
37447
37448 fi
37449 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_dir_slash" >&5
37450 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
37451       { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on files" >&5
37452 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
37453 if test "${gl_cv_func_stat_file_slash+set}" = set; then
37454   $as_echo_n "(cached) " >&6
37455 else
37456   touch conftest.tmp
37457        # Assume that if we have lstat, we can also check symlinks.
37458        if test $ac_cv_func_lstat = yes; then
37459          ln -s conftest.tmp conftest.lnk
37460        fi
37461        if test "$cross_compiling" = yes; then
37462   gl_cv_func_stat_file_slash="guessing no"
37463 else
37464   cat >conftest.$ac_ext <<_ACEOF
37465 /* confdefs.h.  */
37466 _ACEOF
37467 cat confdefs.h >>conftest.$ac_ext
37468 cat >>conftest.$ac_ext <<_ACEOF
37469 /* end confdefs.h.  */
37470 #include <sys/stat.h>
37471
37472 int
37473 main ()
37474 {
37475 struct stat st;
37476       if (!stat ("conftest.tmp/", &st)) return 1;
37477 #if HAVE_LSTAT
37478       if (!stat ("conftest.lnk/", &st)) return 2;
37479 #endif
37480
37481   ;
37482   return 0;
37483 }
37484 _ACEOF
37485 rm -f conftest$ac_exeext
37486 if { (ac_try="$ac_link"
37487 case "(($ac_try" in
37488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37489   *) ac_try_echo=$ac_try;;
37490 esac
37491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37492 $as_echo "$ac_try_echo") >&5
37493   (eval "$ac_link") 2>&5
37494   ac_status=$?
37495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37497   { (case "(($ac_try" in
37498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37499   *) ac_try_echo=$ac_try;;
37500 esac
37501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37502 $as_echo "$ac_try_echo") >&5
37503   (eval "$ac_try") 2>&5
37504   ac_status=$?
37505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37506   (exit $ac_status); }; }; then
37507   gl_cv_func_stat_file_slash=yes
37508 else
37509   $as_echo "$as_me: program exited with status $ac_status" >&5
37510 $as_echo "$as_me: failed program was:" >&5
37511 sed 's/^/| /' conftest.$ac_ext >&5
37512
37513 ( exit $ac_status )
37514 gl_cv_func_stat_file_slash=no
37515 fi
37516 rm -rf conftest.dSYM
37517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37518 fi
37519
37520
37521        rm -f conftest.tmp conftest.lnk
37522 fi
37523 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_file_slash" >&5
37524 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
37525   case $gl_cv_func_stat_dir_slash in
37526     *no) REPLACE_STAT=1
37527
37528 cat >>confdefs.h <<\_ACEOF
37529 #define REPLACE_FUNC_STAT_DIR 1
37530 _ACEOF
37531 ;;
37532   esac
37533   case $gl_cv_func_stat_file_slash in
37534     *no) REPLACE_STAT=1
37535
37536 cat >>confdefs.h <<\_ACEOF
37537 #define REPLACE_FUNC_STAT_FILE 1
37538 _ACEOF
37539 ;;
37540   esac
37541   if test $REPLACE_STAT = 1; then
37542
37543
37544
37545
37546
37547
37548
37549
37550   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
37551
37552
37553   fi
37554
37555
37556
37557   GNULIB_STAT=1
37558
37559
37560 cat >>confdefs.h <<\_ACEOF
37561 #define GNULIB_STAT 1
37562 _ACEOF
37563
37564
37565
37566
37567
37568
37569
37570
37571
37572
37573
37574
37575
37576   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
37577 $as_echo_n "checking for struct stat.st_atim.tv_nsec... " >&6; }
37578 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
37579   $as_echo_n "(cached) " >&6
37580 else
37581   cat >conftest.$ac_ext <<_ACEOF
37582 /* confdefs.h.  */
37583 _ACEOF
37584 cat confdefs.h >>conftest.$ac_ext
37585 cat >>conftest.$ac_ext <<_ACEOF
37586 /* end confdefs.h.  */
37587 #include <sys/types.h>
37588      #include <sys/stat.h>
37589
37590 int
37591 main ()
37592 {
37593 static struct stat ac_aggr;
37594 if (ac_aggr.st_atim.tv_nsec)
37595 return 0;
37596   ;
37597   return 0;
37598 }
37599 _ACEOF
37600 rm -f conftest.$ac_objext
37601 if { (ac_try="$ac_compile"
37602 case "(($ac_try" in
37603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37604   *) ac_try_echo=$ac_try;;
37605 esac
37606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37607 $as_echo "$ac_try_echo") >&5
37608   (eval "$ac_compile") 2>conftest.er1
37609   ac_status=$?
37610   grep -v '^ *+' conftest.er1 >conftest.err
37611   rm -f conftest.er1
37612   cat conftest.err >&5
37613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37614   (exit $ac_status); } && {
37615          test -z "$ac_c_werror_flag" ||
37616          test ! -s conftest.err
37617        } && test -s conftest.$ac_objext; then
37618   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
37619 else
37620   $as_echo "$as_me: failed program was:" >&5
37621 sed 's/^/| /' conftest.$ac_ext >&5
37622
37623         cat >conftest.$ac_ext <<_ACEOF
37624 /* confdefs.h.  */
37625 _ACEOF
37626 cat confdefs.h >>conftest.$ac_ext
37627 cat >>conftest.$ac_ext <<_ACEOF
37628 /* end confdefs.h.  */
37629 #include <sys/types.h>
37630      #include <sys/stat.h>
37631
37632 int
37633 main ()
37634 {
37635 static struct stat ac_aggr;
37636 if (sizeof ac_aggr.st_atim.tv_nsec)
37637 return 0;
37638   ;
37639   return 0;
37640 }
37641 _ACEOF
37642 rm -f conftest.$ac_objext
37643 if { (ac_try="$ac_compile"
37644 case "(($ac_try" in
37645   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37646   *) ac_try_echo=$ac_try;;
37647 esac
37648 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37649 $as_echo "$ac_try_echo") >&5
37650   (eval "$ac_compile") 2>conftest.er1
37651   ac_status=$?
37652   grep -v '^ *+' conftest.er1 >conftest.err
37653   rm -f conftest.er1
37654   cat conftest.err >&5
37655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37656   (exit $ac_status); } && {
37657          test -z "$ac_c_werror_flag" ||
37658          test ! -s conftest.err
37659        } && test -s conftest.$ac_objext; then
37660   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
37661 else
37662   $as_echo "$as_me: failed program was:" >&5
37663 sed 's/^/| /' conftest.$ac_ext >&5
37664
37665         ac_cv_member_struct_stat_st_atim_tv_nsec=no
37666 fi
37667
37668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37669 fi
37670
37671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37672 fi
37673 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
37674 $as_echo "$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
37675 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then
37676
37677 cat >>confdefs.h <<_ACEOF
37678 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
37679 _ACEOF
37680
37681 { $as_echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
37682 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
37683 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
37684   $as_echo_n "(cached) " >&6
37685 else
37686   cat >conftest.$ac_ext <<_ACEOF
37687 /* confdefs.h.  */
37688 _ACEOF
37689 cat confdefs.h >>conftest.$ac_ext
37690 cat >>conftest.$ac_ext <<_ACEOF
37691 /* end confdefs.h.  */
37692
37693             #include <sys/types.h>
37694             #include <sys/stat.h>
37695             #if HAVE_SYS_TIME_H
37696             # include <sys/time.h>
37697             #endif
37698             #include <time.h>
37699             struct timespec ts;
37700             struct stat st;
37701
37702 int
37703 main ()
37704 {
37705
37706             st.st_atim = ts;
37707
37708   ;
37709   return 0;
37710 }
37711 _ACEOF
37712 rm -f conftest.$ac_objext
37713 if { (ac_try="$ac_compile"
37714 case "(($ac_try" in
37715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37716   *) ac_try_echo=$ac_try;;
37717 esac
37718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37719 $as_echo "$ac_try_echo") >&5
37720   (eval "$ac_compile") 2>conftest.er1
37721   ac_status=$?
37722   grep -v '^ *+' conftest.er1 >conftest.err
37723   rm -f conftest.er1
37724   cat conftest.err >&5
37725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37726   (exit $ac_status); } && {
37727          test -z "$ac_c_werror_flag" ||
37728          test ! -s conftest.err
37729        } && test -s conftest.$ac_objext; then
37730   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
37731 else
37732   $as_echo "$as_me: failed program was:" >&5
37733 sed 's/^/| /' conftest.$ac_ext >&5
37734
37735         ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
37736 fi
37737
37738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37739 fi
37740 { $as_echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
37741 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
37742      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
37743
37744 cat >>confdefs.h <<\_ACEOF
37745 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
37746 _ACEOF
37747
37748      fi
37749 else
37750   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
37751 $as_echo_n "checking for struct stat.st_atimespec.tv_nsec... " >&6; }
37752 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
37753   $as_echo_n "(cached) " >&6
37754 else
37755   cat >conftest.$ac_ext <<_ACEOF
37756 /* confdefs.h.  */
37757 _ACEOF
37758 cat confdefs.h >>conftest.$ac_ext
37759 cat >>conftest.$ac_ext <<_ACEOF
37760 /* end confdefs.h.  */
37761 #include <sys/types.h>
37762         #include <sys/stat.h>
37763
37764 int
37765 main ()
37766 {
37767 static struct stat ac_aggr;
37768 if (ac_aggr.st_atimespec.tv_nsec)
37769 return 0;
37770   ;
37771   return 0;
37772 }
37773 _ACEOF
37774 rm -f conftest.$ac_objext
37775 if { (ac_try="$ac_compile"
37776 case "(($ac_try" in
37777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37778   *) ac_try_echo=$ac_try;;
37779 esac
37780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37781 $as_echo "$ac_try_echo") >&5
37782   (eval "$ac_compile") 2>conftest.er1
37783   ac_status=$?
37784   grep -v '^ *+' conftest.er1 >conftest.err
37785   rm -f conftest.er1
37786   cat conftest.err >&5
37787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37788   (exit $ac_status); } && {
37789          test -z "$ac_c_werror_flag" ||
37790          test ! -s conftest.err
37791        } && test -s conftest.$ac_objext; then
37792   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
37793 else
37794   $as_echo "$as_me: failed program was:" >&5
37795 sed 's/^/| /' conftest.$ac_ext >&5
37796
37797         cat >conftest.$ac_ext <<_ACEOF
37798 /* confdefs.h.  */
37799 _ACEOF
37800 cat confdefs.h >>conftest.$ac_ext
37801 cat >>conftest.$ac_ext <<_ACEOF
37802 /* end confdefs.h.  */
37803 #include <sys/types.h>
37804         #include <sys/stat.h>
37805
37806 int
37807 main ()
37808 {
37809 static struct stat ac_aggr;
37810 if (sizeof ac_aggr.st_atimespec.tv_nsec)
37811 return 0;
37812   ;
37813   return 0;
37814 }
37815 _ACEOF
37816 rm -f conftest.$ac_objext
37817 if { (ac_try="$ac_compile"
37818 case "(($ac_try" in
37819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37820   *) ac_try_echo=$ac_try;;
37821 esac
37822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37823 $as_echo "$ac_try_echo") >&5
37824   (eval "$ac_compile") 2>conftest.er1
37825   ac_status=$?
37826   grep -v '^ *+' conftest.er1 >conftest.err
37827   rm -f conftest.er1
37828   cat conftest.err >&5
37829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37830   (exit $ac_status); } && {
37831          test -z "$ac_c_werror_flag" ||
37832          test ! -s conftest.err
37833        } && test -s conftest.$ac_objext; then
37834   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
37835 else
37836   $as_echo "$as_me: failed program was:" >&5
37837 sed 's/^/| /' conftest.$ac_ext >&5
37838
37839         ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
37840 fi
37841
37842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37843 fi
37844
37845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37846 fi
37847 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
37848 $as_echo "$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
37849 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then
37850
37851 cat >>confdefs.h <<_ACEOF
37852 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
37853 _ACEOF
37854
37855
37856 else
37857   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
37858 $as_echo_n "checking for struct stat.st_atimensec... " >&6; }
37859 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
37860   $as_echo_n "(cached) " >&6
37861 else
37862   cat >conftest.$ac_ext <<_ACEOF
37863 /* confdefs.h.  */
37864 _ACEOF
37865 cat confdefs.h >>conftest.$ac_ext
37866 cat >>conftest.$ac_ext <<_ACEOF
37867 /* end confdefs.h.  */
37868 #include <sys/types.h>
37869            #include <sys/stat.h>
37870
37871 int
37872 main ()
37873 {
37874 static struct stat ac_aggr;
37875 if (ac_aggr.st_atimensec)
37876 return 0;
37877   ;
37878   return 0;
37879 }
37880 _ACEOF
37881 rm -f conftest.$ac_objext
37882 if { (ac_try="$ac_compile"
37883 case "(($ac_try" in
37884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37885   *) ac_try_echo=$ac_try;;
37886 esac
37887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37888 $as_echo "$ac_try_echo") >&5
37889   (eval "$ac_compile") 2>conftest.er1
37890   ac_status=$?
37891   grep -v '^ *+' conftest.er1 >conftest.err
37892   rm -f conftest.er1
37893   cat conftest.err >&5
37894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37895   (exit $ac_status); } && {
37896          test -z "$ac_c_werror_flag" ||
37897          test ! -s conftest.err
37898        } && test -s conftest.$ac_objext; then
37899   ac_cv_member_struct_stat_st_atimensec=yes
37900 else
37901   $as_echo "$as_me: failed program was:" >&5
37902 sed 's/^/| /' conftest.$ac_ext >&5
37903
37904         cat >conftest.$ac_ext <<_ACEOF
37905 /* confdefs.h.  */
37906 _ACEOF
37907 cat confdefs.h >>conftest.$ac_ext
37908 cat >>conftest.$ac_ext <<_ACEOF
37909 /* end confdefs.h.  */
37910 #include <sys/types.h>
37911            #include <sys/stat.h>
37912
37913 int
37914 main ()
37915 {
37916 static struct stat ac_aggr;
37917 if (sizeof ac_aggr.st_atimensec)
37918 return 0;
37919   ;
37920   return 0;
37921 }
37922 _ACEOF
37923 rm -f conftest.$ac_objext
37924 if { (ac_try="$ac_compile"
37925 case "(($ac_try" in
37926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37927   *) ac_try_echo=$ac_try;;
37928 esac
37929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37930 $as_echo "$ac_try_echo") >&5
37931   (eval "$ac_compile") 2>conftest.er1
37932   ac_status=$?
37933   grep -v '^ *+' conftest.er1 >conftest.err
37934   rm -f conftest.er1
37935   cat conftest.err >&5
37936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37937   (exit $ac_status); } && {
37938          test -z "$ac_c_werror_flag" ||
37939          test ! -s conftest.err
37940        } && test -s conftest.$ac_objext; then
37941   ac_cv_member_struct_stat_st_atimensec=yes
37942 else
37943   $as_echo "$as_me: failed program was:" >&5
37944 sed 's/^/| /' conftest.$ac_ext >&5
37945
37946         ac_cv_member_struct_stat_st_atimensec=no
37947 fi
37948
37949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37950 fi
37951
37952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37953 fi
37954 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
37955 $as_echo "$ac_cv_member_struct_stat_st_atimensec" >&6; }
37956 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then
37957
37958 cat >>confdefs.h <<_ACEOF
37959 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
37960 _ACEOF
37961
37962
37963 else
37964   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
37965 $as_echo_n "checking for struct stat.st_atim.st__tim.tv_nsec... " >&6; }
37966 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
37967   $as_echo_n "(cached) " >&6
37968 else
37969   cat >conftest.$ac_ext <<_ACEOF
37970 /* confdefs.h.  */
37971 _ACEOF
37972 cat confdefs.h >>conftest.$ac_ext
37973 cat >>conftest.$ac_ext <<_ACEOF
37974 /* end confdefs.h.  */
37975 #include <sys/types.h>
37976               #include <sys/stat.h>
37977
37978 int
37979 main ()
37980 {
37981 static struct stat ac_aggr;
37982 if (ac_aggr.st_atim.st__tim.tv_nsec)
37983 return 0;
37984   ;
37985   return 0;
37986 }
37987 _ACEOF
37988 rm -f conftest.$ac_objext
37989 if { (ac_try="$ac_compile"
37990 case "(($ac_try" in
37991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37992   *) ac_try_echo=$ac_try;;
37993 esac
37994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37995 $as_echo "$ac_try_echo") >&5
37996   (eval "$ac_compile") 2>conftest.er1
37997   ac_status=$?
37998   grep -v '^ *+' conftest.er1 >conftest.err
37999   rm -f conftest.er1
38000   cat conftest.err >&5
38001   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38002   (exit $ac_status); } && {
38003          test -z "$ac_c_werror_flag" ||
38004          test ! -s conftest.err
38005        } && test -s conftest.$ac_objext; then
38006   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
38007 else
38008   $as_echo "$as_me: failed program was:" >&5
38009 sed 's/^/| /' conftest.$ac_ext >&5
38010
38011         cat >conftest.$ac_ext <<_ACEOF
38012 /* confdefs.h.  */
38013 _ACEOF
38014 cat confdefs.h >>conftest.$ac_ext
38015 cat >>conftest.$ac_ext <<_ACEOF
38016 /* end confdefs.h.  */
38017 #include <sys/types.h>
38018               #include <sys/stat.h>
38019
38020 int
38021 main ()
38022 {
38023 static struct stat ac_aggr;
38024 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
38025 return 0;
38026   ;
38027   return 0;
38028 }
38029 _ACEOF
38030 rm -f conftest.$ac_objext
38031 if { (ac_try="$ac_compile"
38032 case "(($ac_try" in
38033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38034   *) ac_try_echo=$ac_try;;
38035 esac
38036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38037 $as_echo "$ac_try_echo") >&5
38038   (eval "$ac_compile") 2>conftest.er1
38039   ac_status=$?
38040   grep -v '^ *+' conftest.er1 >conftest.err
38041   rm -f conftest.er1
38042   cat conftest.err >&5
38043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38044   (exit $ac_status); } && {
38045          test -z "$ac_c_werror_flag" ||
38046          test ! -s conftest.err
38047        } && test -s conftest.$ac_objext; then
38048   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
38049 else
38050   $as_echo "$as_me: failed program was:" >&5
38051 sed 's/^/| /' conftest.$ac_ext >&5
38052
38053         ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
38054 fi
38055
38056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38057 fi
38058
38059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38060 fi
38061 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
38062 $as_echo "$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
38063 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then
38064
38065 cat >>confdefs.h <<_ACEOF
38066 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
38067 _ACEOF
38068
38069
38070 fi
38071
38072 fi
38073
38074 fi
38075
38076 fi
38077
38078
38079
38080
38081
38082
38083
38084
38085
38086
38087
38088   { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
38089 $as_echo_n "checking for struct stat.st_birthtimespec.tv_nsec... " >&6; }
38090 if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
38091   $as_echo_n "(cached) " >&6
38092 else
38093   cat >conftest.$ac_ext <<_ACEOF
38094 /* confdefs.h.  */
38095 _ACEOF
38096 cat confdefs.h >>conftest.$ac_ext
38097 cat >>conftest.$ac_ext <<_ACEOF
38098 /* end confdefs.h.  */
38099 #include <sys/types.h>
38100      #include <sys/stat.h>
38101
38102 int
38103 main ()
38104 {
38105 static struct stat ac_aggr;
38106 if (ac_aggr.st_birthtimespec.tv_nsec)
38107 return 0;
38108   ;
38109   return 0;
38110 }
38111 _ACEOF
38112 rm -f conftest.$ac_objext
38113 if { (ac_try="$ac_compile"
38114 case "(($ac_try" in
38115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38116   *) ac_try_echo=$ac_try;;
38117 esac
38118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38119 $as_echo "$ac_try_echo") >&5
38120   (eval "$ac_compile") 2>conftest.er1
38121   ac_status=$?
38122   grep -v '^ *+' conftest.er1 >conftest.err
38123   rm -f conftest.er1
38124   cat conftest.err >&5
38125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38126   (exit $ac_status); } && {
38127          test -z "$ac_c_werror_flag" ||
38128          test ! -s conftest.err
38129        } && test -s conftest.$ac_objext; then
38130   ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
38131 else
38132   $as_echo "$as_me: failed program was:" >&5
38133 sed 's/^/| /' conftest.$ac_ext >&5
38134
38135         cat >conftest.$ac_ext <<_ACEOF
38136 /* confdefs.h.  */
38137 _ACEOF
38138 cat confdefs.h >>conftest.$ac_ext
38139 cat >>conftest.$ac_ext <<_ACEOF
38140 /* end confdefs.h.  */
38141 #include <sys/types.h>
38142      #include <sys/stat.h>
38143
38144 int
38145 main ()
38146 {
38147 static struct stat ac_aggr;
38148 if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
38149 return 0;
38150   ;
38151   return 0;
38152 }
38153 _ACEOF
38154 rm -f conftest.$ac_objext
38155 if { (ac_try="$ac_compile"
38156 case "(($ac_try" in
38157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38158   *) ac_try_echo=$ac_try;;
38159 esac
38160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38161 $as_echo "$ac_try_echo") >&5
38162   (eval "$ac_compile") 2>conftest.er1
38163   ac_status=$?
38164   grep -v '^ *+' conftest.er1 >conftest.err
38165   rm -f conftest.er1
38166   cat conftest.err >&5
38167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38168   (exit $ac_status); } && {
38169          test -z "$ac_c_werror_flag" ||
38170          test ! -s conftest.err
38171        } && test -s conftest.$ac_objext; then
38172   ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
38173 else
38174   $as_echo "$as_me: failed program was:" >&5
38175 sed 's/^/| /' conftest.$ac_ext >&5
38176
38177         ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
38178 fi
38179
38180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38181 fi
38182
38183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38184 fi
38185 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
38186 $as_echo "$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
38187 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then
38188
38189 cat >>confdefs.h <<_ACEOF
38190 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
38191 _ACEOF
38192
38193
38194 else
38195   { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
38196 $as_echo_n "checking for struct stat.st_birthtimensec... " >&6; }
38197 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
38198   $as_echo_n "(cached) " >&6
38199 else
38200   cat >conftest.$ac_ext <<_ACEOF
38201 /* confdefs.h.  */
38202 _ACEOF
38203 cat confdefs.h >>conftest.$ac_ext
38204 cat >>conftest.$ac_ext <<_ACEOF
38205 /* end confdefs.h.  */
38206 #include <sys/types.h>
38207         #include <sys/stat.h>
38208
38209 int
38210 main ()
38211 {
38212 static struct stat ac_aggr;
38213 if (ac_aggr.st_birthtimensec)
38214 return 0;
38215   ;
38216   return 0;
38217 }
38218 _ACEOF
38219 rm -f conftest.$ac_objext
38220 if { (ac_try="$ac_compile"
38221 case "(($ac_try" in
38222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38223   *) ac_try_echo=$ac_try;;
38224 esac
38225 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38226 $as_echo "$ac_try_echo") >&5
38227   (eval "$ac_compile") 2>conftest.er1
38228   ac_status=$?
38229   grep -v '^ *+' conftest.er1 >conftest.err
38230   rm -f conftest.er1
38231   cat conftest.err >&5
38232   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38233   (exit $ac_status); } && {
38234          test -z "$ac_c_werror_flag" ||
38235          test ! -s conftest.err
38236        } && test -s conftest.$ac_objext; then
38237   ac_cv_member_struct_stat_st_birthtimensec=yes
38238 else
38239   $as_echo "$as_me: failed program was:" >&5
38240 sed 's/^/| /' conftest.$ac_ext >&5
38241
38242         cat >conftest.$ac_ext <<_ACEOF
38243 /* confdefs.h.  */
38244 _ACEOF
38245 cat confdefs.h >>conftest.$ac_ext
38246 cat >>conftest.$ac_ext <<_ACEOF
38247 /* end confdefs.h.  */
38248 #include <sys/types.h>
38249         #include <sys/stat.h>
38250
38251 int
38252 main ()
38253 {
38254 static struct stat ac_aggr;
38255 if (sizeof ac_aggr.st_birthtimensec)
38256 return 0;
38257   ;
38258   return 0;
38259 }
38260 _ACEOF
38261 rm -f conftest.$ac_objext
38262 if { (ac_try="$ac_compile"
38263 case "(($ac_try" in
38264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38265   *) ac_try_echo=$ac_try;;
38266 esac
38267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38268 $as_echo "$ac_try_echo") >&5
38269   (eval "$ac_compile") 2>conftest.er1
38270   ac_status=$?
38271   grep -v '^ *+' conftest.er1 >conftest.err
38272   rm -f conftest.er1
38273   cat conftest.err >&5
38274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38275   (exit $ac_status); } && {
38276          test -z "$ac_c_werror_flag" ||
38277          test ! -s conftest.err
38278        } && test -s conftest.$ac_objext; then
38279   ac_cv_member_struct_stat_st_birthtimensec=yes
38280 else
38281   $as_echo "$as_me: failed program was:" >&5
38282 sed 's/^/| /' conftest.$ac_ext >&5
38283
38284         ac_cv_member_struct_stat_st_birthtimensec=no
38285 fi
38286
38287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38288 fi
38289
38290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38291 fi
38292 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
38293 $as_echo "$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
38294 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then
38295
38296 cat >>confdefs.h <<_ACEOF
38297 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
38298 _ACEOF
38299
38300
38301 else
38302   { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
38303 $as_echo_n "checking for struct stat.st_birthtim.tv_nsec... " >&6; }
38304 if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
38305   $as_echo_n "(cached) " >&6
38306 else
38307   cat >conftest.$ac_ext <<_ACEOF
38308 /* confdefs.h.  */
38309 _ACEOF
38310 cat confdefs.h >>conftest.$ac_ext
38311 cat >>conftest.$ac_ext <<_ACEOF
38312 /* end confdefs.h.  */
38313 #include <sys/types.h>
38314           #include <sys/stat.h>
38315
38316 int
38317 main ()
38318 {
38319 static struct stat ac_aggr;
38320 if (ac_aggr.st_birthtim.tv_nsec)
38321 return 0;
38322   ;
38323   return 0;
38324 }
38325 _ACEOF
38326 rm -f conftest.$ac_objext
38327 if { (ac_try="$ac_compile"
38328 case "(($ac_try" in
38329   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38330   *) ac_try_echo=$ac_try;;
38331 esac
38332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38333 $as_echo "$ac_try_echo") >&5
38334   (eval "$ac_compile") 2>conftest.er1
38335   ac_status=$?
38336   grep -v '^ *+' conftest.er1 >conftest.err
38337   rm -f conftest.er1
38338   cat conftest.err >&5
38339   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38340   (exit $ac_status); } && {
38341          test -z "$ac_c_werror_flag" ||
38342          test ! -s conftest.err
38343        } && test -s conftest.$ac_objext; then
38344   ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
38345 else
38346   $as_echo "$as_me: failed program was:" >&5
38347 sed 's/^/| /' conftest.$ac_ext >&5
38348
38349         cat >conftest.$ac_ext <<_ACEOF
38350 /* confdefs.h.  */
38351 _ACEOF
38352 cat confdefs.h >>conftest.$ac_ext
38353 cat >>conftest.$ac_ext <<_ACEOF
38354 /* end confdefs.h.  */
38355 #include <sys/types.h>
38356           #include <sys/stat.h>
38357
38358 int
38359 main ()
38360 {
38361 static struct stat ac_aggr;
38362 if (sizeof ac_aggr.st_birthtim.tv_nsec)
38363 return 0;
38364   ;
38365   return 0;
38366 }
38367 _ACEOF
38368 rm -f conftest.$ac_objext
38369 if { (ac_try="$ac_compile"
38370 case "(($ac_try" in
38371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38372   *) ac_try_echo=$ac_try;;
38373 esac
38374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38375 $as_echo "$ac_try_echo") >&5
38376   (eval "$ac_compile") 2>conftest.er1
38377   ac_status=$?
38378   grep -v '^ *+' conftest.er1 >conftest.err
38379   rm -f conftest.er1
38380   cat conftest.err >&5
38381   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38382   (exit $ac_status); } && {
38383          test -z "$ac_c_werror_flag" ||
38384          test ! -s conftest.err
38385        } && test -s conftest.$ac_objext; then
38386   ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
38387 else
38388   $as_echo "$as_me: failed program was:" >&5
38389 sed 's/^/| /' conftest.$ac_ext >&5
38390
38391         ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
38392 fi
38393
38394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38395 fi
38396
38397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38398 fi
38399 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
38400 $as_echo "$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
38401 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then
38402
38403 cat >>confdefs.h <<_ACEOF
38404 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
38405 _ACEOF
38406
38407
38408 fi
38409
38410 fi
38411
38412 fi
38413
38414
38415
38416   STDARG_H='';
38417   NEXT_STDARG_H='<stdarg.h>';
38418   { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
38419 $as_echo_n "checking for va_copy... " >&6; }
38420   if test "${gl_cv_func_va_copy+set}" = set; then
38421   $as_echo_n "(cached) " >&6
38422 else
38423
38424     cat >conftest.$ac_ext <<_ACEOF
38425 /* confdefs.h.  */
38426 _ACEOF
38427 cat confdefs.h >>conftest.$ac_ext
38428 cat >>conftest.$ac_ext <<_ACEOF
38429 /* end confdefs.h.  */
38430 #include <stdarg.h>
38431 int
38432 main ()
38433 {
38434
38435 #ifndef va_copy
38436 void (*func) (va_list, va_list) = va_copy;
38437 #endif
38438
38439   ;
38440   return 0;
38441 }
38442 _ACEOF
38443 rm -f conftest.$ac_objext
38444 if { (ac_try="$ac_compile"
38445 case "(($ac_try" in
38446   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38447   *) ac_try_echo=$ac_try;;
38448 esac
38449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38450 $as_echo "$ac_try_echo") >&5
38451   (eval "$ac_compile") 2>conftest.er1
38452   ac_status=$?
38453   grep -v '^ *+' conftest.er1 >conftest.err
38454   rm -f conftest.er1
38455   cat conftest.err >&5
38456   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38457   (exit $ac_status); } && {
38458          test -z "$ac_c_werror_flag" ||
38459          test ! -s conftest.err
38460        } && test -s conftest.$ac_objext; then
38461   gl_cv_func_va_copy=yes
38462 else
38463   $as_echo "$as_me: failed program was:" >&5
38464 sed 's/^/| /' conftest.$ac_ext >&5
38465
38466         gl_cv_func_va_copy=no
38467 fi
38468
38469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38470 fi
38471
38472   { $as_echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
38473 $as_echo "$gl_cv_func_va_copy" >&6; }
38474   if test $gl_cv_func_va_copy = no; then
38475                                     cat >conftest.$ac_ext <<_ACEOF
38476 /* confdefs.h.  */
38477 _ACEOF
38478 cat confdefs.h >>conftest.$ac_ext
38479 cat >>conftest.$ac_ext <<_ACEOF
38480 /* end confdefs.h.  */
38481 #if defined _AIX && !defined __GNUC__
38482         AIX vaccine
38483        #endif
38484
38485 _ACEOF
38486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38487   $EGREP "vaccine" >/dev/null 2>&1; then
38488   gl_aixcc=yes
38489 else
38490   gl_aixcc=no
38491 fi
38492 rm -f conftest*
38493
38494     if test $gl_aixcc = yes; then
38495             STDARG_H=stdarg.h
38496
38497
38498
38499
38500
38501
38502
38503
38504
38505
38506
38507      if test $gl_cv_have_include_next = yes; then
38508        gl_cv_next_stdarg_h='<'stdarg.h'>'
38509      else
38510        { $as_echo "$as_me:$LINENO: checking absolute name of <stdarg.h>" >&5
38511 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
38512 if test "${gl_cv_next_stdarg_h+set}" = set; then
38513   $as_echo_n "(cached) " >&6
38514 else
38515
38516           if test $ac_cv_header_stdarg_h = yes; then
38517             cat >conftest.$ac_ext <<_ACEOF
38518 /* confdefs.h.  */
38519 _ACEOF
38520 cat confdefs.h >>conftest.$ac_ext
38521 cat >>conftest.$ac_ext <<_ACEOF
38522 /* end confdefs.h.  */
38523 #include <stdarg.h>
38524
38525 _ACEOF
38526                                                                                                 case "$host_os" in
38527               aix*) gl_absname_cpp="$ac_cpp -C" ;;
38528               *)    gl_absname_cpp="$ac_cpp" ;;
38529             esac
38530                                                 gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38531                sed -n '\#/stdarg.h#{
38532                  s#.*"\(.*/stdarg.h\)".*#\1#
38533                  s#^/[^/]#//&#
38534                  p
38535                  q
38536                }'`'"'
38537           else
38538             gl_cv_next_stdarg_h='<'stdarg.h'>'
38539           fi
38540
38541 fi
38542 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdarg_h" >&5
38543 $as_echo "$gl_cv_next_stdarg_h" >&6; }
38544      fi
38545      NEXT_STDARG_H=$gl_cv_next_stdarg_h
38546
38547      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38548        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38549        gl_next_as_first_directive='<'stdarg.h'>'
38550      else
38551        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38552        gl_next_as_first_directive=$gl_cv_next_stdarg_h
38553      fi
38554      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
38555
38556
38557
38558             if test "$gl_cv_next_stdarg_h" = '""'; then
38559         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
38560         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
38561       fi
38562     else
38563
38564   saved_as_echo_n="$as_echo_n"
38565   as_echo_n=':'
38566   if test "${gl_cv_func___va_copy+set}" = set; then
38567   $as_echo_n "(cached) " >&6
38568 else
38569
38570         cat >conftest.$ac_ext <<_ACEOF
38571 /* confdefs.h.  */
38572 _ACEOF
38573 cat confdefs.h >>conftest.$ac_ext
38574 cat >>conftest.$ac_ext <<_ACEOF
38575 /* end confdefs.h.  */
38576 #include <stdarg.h>
38577 int
38578 main ()
38579 {
38580
38581 #ifndef __va_copy
38582 error, bail out
38583 #endif
38584
38585   ;
38586   return 0;
38587 }
38588 _ACEOF
38589 rm -f conftest.$ac_objext
38590 if { (ac_try="$ac_compile"
38591 case "(($ac_try" in
38592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38593   *) ac_try_echo=$ac_try;;
38594 esac
38595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38596 $as_echo "$ac_try_echo") >&5
38597   (eval "$ac_compile") 2>conftest.er1
38598   ac_status=$?
38599   grep -v '^ *+' conftest.er1 >conftest.err
38600   rm -f conftest.er1
38601   cat conftest.err >&5
38602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38603   (exit $ac_status); } && {
38604          test -z "$ac_c_werror_flag" ||
38605          test ! -s conftest.err
38606        } && test -s conftest.$ac_objext; then
38607   gl_cv_func___va_copy=yes
38608 else
38609   $as_echo "$as_me: failed program was:" >&5
38610 sed 's/^/| /' conftest.$ac_ext >&5
38611
38612         gl_cv_func___va_copy=no
38613 fi
38614
38615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38616 fi
38617
38618   as_echo_n="$saved_as_echo_n"
38619
38620       if test $gl_cv_func___va_copy = yes; then
38621
38622 cat >>confdefs.h <<\_ACEOF
38623 #define va_copy __va_copy
38624 _ACEOF
38625
38626       else
38627
38628
38629
38630 cat >>confdefs.h <<\_ACEOF
38631 #define va_copy gl_va_copy
38632 _ACEOF
38633
38634       fi
38635     fi
38636   fi
38637
38638
38639
38640
38641   # Define two additional variables used in the Makefile substitution.
38642
38643   if test "$ac_cv_header_stdbool_h" = yes; then
38644     STDBOOL_H=''
38645   else
38646     STDBOOL_H='stdbool.h'
38647   fi
38648
38649
38650   if test "$ac_cv_type__Bool" = yes; then
38651     HAVE__BOOL=1
38652   else
38653     HAVE__BOOL=0
38654   fi
38655
38656
38657
38658
38659
38660   if test $gt_cv_c_wchar_t = no; then
38661     HAVE_WCHAR_T=0
38662     STDDEF_H=stddef.h
38663   fi
38664   { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
38665 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
38666 if test "${gl_cv_decl_null_works+set}" = set; then
38667   $as_echo_n "(cached) " >&6
38668 else
38669   cat >conftest.$ac_ext <<_ACEOF
38670 /* confdefs.h.  */
38671 _ACEOF
38672 cat confdefs.h >>conftest.$ac_ext
38673 cat >>conftest.$ac_ext <<_ACEOF
38674 /* end confdefs.h.  */
38675 #include <stddef.h>
38676       int test[2 * (sizeof NULL == sizeof (void *)) -1];
38677
38678 int
38679 main ()
38680 {
38681
38682   ;
38683   return 0;
38684 }
38685 _ACEOF
38686 rm -f conftest.$ac_objext
38687 if { (ac_try="$ac_compile"
38688 case "(($ac_try" in
38689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38690   *) ac_try_echo=$ac_try;;
38691 esac
38692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38693 $as_echo "$ac_try_echo") >&5
38694   (eval "$ac_compile") 2>conftest.er1
38695   ac_status=$?
38696   grep -v '^ *+' conftest.er1 >conftest.err
38697   rm -f conftest.er1
38698   cat conftest.err >&5
38699   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38700   (exit $ac_status); } && {
38701          test -z "$ac_c_werror_flag" ||
38702          test ! -s conftest.err
38703        } && test -s conftest.$ac_objext; then
38704   gl_cv_decl_null_works=yes
38705 else
38706   $as_echo "$as_me: failed program was:" >&5
38707 sed 's/^/| /' conftest.$ac_ext >&5
38708
38709         gl_cv_decl_null_works=no
38710 fi
38711
38712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38713 fi
38714 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
38715 $as_echo "$gl_cv_decl_null_works" >&6; }
38716   if test $gl_cv_decl_null_works = no; then
38717     REPLACE_NULL=1
38718     STDDEF_H=stddef.h
38719   fi
38720   if test -n "$STDDEF_H"; then
38721
38722
38723
38724
38725
38726
38727
38728
38729
38730
38731
38732      if test $gl_cv_have_include_next = yes; then
38733        gl_cv_next_stddef_h='<'stddef.h'>'
38734      else
38735        { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
38736 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
38737 if test "${gl_cv_next_stddef_h+set}" = set; then
38738   $as_echo_n "(cached) " >&6
38739 else
38740
38741           if test $ac_cv_header_stddef_h = yes; then
38742             cat >conftest.$ac_ext <<_ACEOF
38743 /* confdefs.h.  */
38744 _ACEOF
38745 cat confdefs.h >>conftest.$ac_ext
38746 cat >>conftest.$ac_ext <<_ACEOF
38747 /* end confdefs.h.  */
38748 #include <stddef.h>
38749
38750 _ACEOF
38751                                                                                                 case "$host_os" in
38752               aix*) gl_absname_cpp="$ac_cpp -C" ;;
38753               *)    gl_absname_cpp="$ac_cpp" ;;
38754             esac
38755                                                 gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38756                sed -n '\#/stddef.h#{
38757                  s#.*"\(.*/stddef.h\)".*#\1#
38758                  s#^/[^/]#//&#
38759                  p
38760                  q
38761                }'`'"'
38762           else
38763             gl_cv_next_stddef_h='<'stddef.h'>'
38764           fi
38765
38766 fi
38767 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
38768 $as_echo "$gl_cv_next_stddef_h" >&6; }
38769      fi
38770      NEXT_STDDEF_H=$gl_cv_next_stddef_h
38771
38772      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38773        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38774        gl_next_as_first_directive='<'stddef.h'>'
38775      else
38776        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38777        gl_next_as_first_directive=$gl_cv_next_stddef_h
38778      fi
38779      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
38780
38781
38782
38783   fi
38784
38785
38786
38787
38788   if test $ac_cv_type_long_long_int = yes; then
38789     HAVE_LONG_LONG_INT=1
38790   else
38791     HAVE_LONG_LONG_INT=0
38792   fi
38793
38794
38795   if test $ac_cv_type_unsigned_long_long_int = yes; then
38796     HAVE_UNSIGNED_LONG_LONG_INT=1
38797   else
38798     HAVE_UNSIGNED_LONG_LONG_INT=0
38799   fi
38800
38801
38802       if test $ac_cv_header_inttypes_h = yes; then
38803     HAVE_INTTYPES_H=1
38804   else
38805     HAVE_INTTYPES_H=0
38806   fi
38807
38808
38809       if test $ac_cv_header_sys_types_h = yes; then
38810     HAVE_SYS_TYPES_H=1
38811   else
38812     HAVE_SYS_TYPES_H=0
38813   fi
38814
38815
38816
38817
38818
38819
38820
38821
38822
38823
38824
38825
38826
38827      if test $gl_cv_have_include_next = yes; then
38828        gl_cv_next_stdint_h='<'stdint.h'>'
38829      else
38830        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
38831 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
38832 if test "${gl_cv_next_stdint_h+set}" = set; then
38833   $as_echo_n "(cached) " >&6
38834 else
38835
38836           if test $ac_cv_header_stdint_h = yes; then
38837             cat >conftest.$ac_ext <<_ACEOF
38838 /* confdefs.h.  */
38839 _ACEOF
38840 cat confdefs.h >>conftest.$ac_ext
38841 cat >>conftest.$ac_ext <<_ACEOF
38842 /* end confdefs.h.  */
38843 #include <stdint.h>
38844
38845 _ACEOF
38846                                                                                                 case "$host_os" in
38847               aix*) gl_absname_cpp="$ac_cpp -C" ;;
38848               *)    gl_absname_cpp="$ac_cpp" ;;
38849             esac
38850                                                 gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
38851                sed -n '\#/stdint.h#{
38852                  s#.*"\(.*/stdint.h\)".*#\1#
38853                  s#^/[^/]#//&#
38854                  p
38855                  q
38856                }'`'"'
38857           else
38858             gl_cv_next_stdint_h='<'stdint.h'>'
38859           fi
38860
38861 fi
38862 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
38863 $as_echo "$gl_cv_next_stdint_h" >&6; }
38864      fi
38865      NEXT_STDINT_H=$gl_cv_next_stdint_h
38866
38867      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
38868        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
38869        gl_next_as_first_directive='<'stdint.h'>'
38870      else
38871        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
38872        gl_next_as_first_directive=$gl_cv_next_stdint_h
38873      fi
38874      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
38875
38876
38877
38878   if test $ac_cv_header_stdint_h = yes; then
38879     HAVE_STDINT_H=1
38880   else
38881     HAVE_STDINT_H=0
38882   fi
38883
38884
38885     if test $ac_cv_header_stdint_h = yes; then
38886     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
38887 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
38888 if test "${gl_cv_header_working_stdint_h+set}" = set; then
38889   $as_echo_n "(cached) " >&6
38890 else
38891   gl_cv_header_working_stdint_h=no
38892        cat >conftest.$ac_ext <<_ACEOF
38893
38894          /* confdefs.h.  */
38895 _ACEOF
38896 cat confdefs.h >>conftest.$ac_ext
38897 cat >>conftest.$ac_ext <<_ACEOF
38898 /* end confdefs.h.  */
38899
38900 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
38901 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
38902 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
38903 #include <stdint.h>
38904 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
38905 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
38906 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
38907 #endif
38908
38909
38910   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
38911      included before <wchar.h>.  */
38912   #include <stddef.h>
38913   #include <signal.h>
38914   #if HAVE_WCHAR_H
38915   # include <stdio.h>
38916   # include <time.h>
38917   # include <wchar.h>
38918   #endif
38919
38920
38921 #ifdef INT8_MAX
38922 int8_t a1 = INT8_MAX;
38923 int8_t a1min = INT8_MIN;
38924 #endif
38925 #ifdef INT16_MAX
38926 int16_t a2 = INT16_MAX;
38927 int16_t a2min = INT16_MIN;
38928 #endif
38929 #ifdef INT32_MAX
38930 int32_t a3 = INT32_MAX;
38931 int32_t a3min = INT32_MIN;
38932 #endif
38933 #ifdef INT64_MAX
38934 int64_t a4 = INT64_MAX;
38935 int64_t a4min = INT64_MIN;
38936 #endif
38937 #ifdef UINT8_MAX
38938 uint8_t b1 = UINT8_MAX;
38939 #else
38940 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
38941 #endif
38942 #ifdef UINT16_MAX
38943 uint16_t b2 = UINT16_MAX;
38944 #endif
38945 #ifdef UINT32_MAX
38946 uint32_t b3 = UINT32_MAX;
38947 #endif
38948 #ifdef UINT64_MAX
38949 uint64_t b4 = UINT64_MAX;
38950 #endif
38951 int_least8_t c1 = INT8_C (0x7f);
38952 int_least8_t c1max = INT_LEAST8_MAX;
38953 int_least8_t c1min = INT_LEAST8_MIN;
38954 int_least16_t c2 = INT16_C (0x7fff);
38955 int_least16_t c2max = INT_LEAST16_MAX;
38956 int_least16_t c2min = INT_LEAST16_MIN;
38957 int_least32_t c3 = INT32_C (0x7fffffff);
38958 int_least32_t c3max = INT_LEAST32_MAX;
38959 int_least32_t c3min = INT_LEAST32_MIN;
38960 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
38961 int_least64_t c4max = INT_LEAST64_MAX;
38962 int_least64_t c4min = INT_LEAST64_MIN;
38963 uint_least8_t d1 = UINT8_C (0xff);
38964 uint_least8_t d1max = UINT_LEAST8_MAX;
38965 uint_least16_t d2 = UINT16_C (0xffff);
38966 uint_least16_t d2max = UINT_LEAST16_MAX;
38967 uint_least32_t d3 = UINT32_C (0xffffffff);
38968 uint_least32_t d3max = UINT_LEAST32_MAX;
38969 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
38970 uint_least64_t d4max = UINT_LEAST64_MAX;
38971 int_fast8_t e1 = INT_FAST8_MAX;
38972 int_fast8_t e1min = INT_FAST8_MIN;
38973 int_fast16_t e2 = INT_FAST16_MAX;
38974 int_fast16_t e2min = INT_FAST16_MIN;
38975 int_fast32_t e3 = INT_FAST32_MAX;
38976 int_fast32_t e3min = INT_FAST32_MIN;
38977 int_fast64_t e4 = INT_FAST64_MAX;
38978 int_fast64_t e4min = INT_FAST64_MIN;
38979 uint_fast8_t f1 = UINT_FAST8_MAX;
38980 uint_fast16_t f2 = UINT_FAST16_MAX;
38981 uint_fast32_t f3 = UINT_FAST32_MAX;
38982 uint_fast64_t f4 = UINT_FAST64_MAX;
38983 #ifdef INTPTR_MAX
38984 intptr_t g = INTPTR_MAX;
38985 intptr_t gmin = INTPTR_MIN;
38986 #endif
38987 #ifdef UINTPTR_MAX
38988 uintptr_t h = UINTPTR_MAX;
38989 #endif
38990 intmax_t i = INTMAX_MAX;
38991 uintmax_t j = UINTMAX_MAX;
38992
38993 #include <limits.h> /* for CHAR_BIT */
38994 #define TYPE_MINIMUM(t) \
38995   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ (t) 0 << (sizeof (t) * CHAR_BIT - 1)))
38996 #define TYPE_MAXIMUM(t) \
38997   ((t) ((t) 0 < (t) -1 ? (t) -1 : ~ (~ (t) 0 << (sizeof (t) * CHAR_BIT - 1))))
38998 struct s {
38999   int check_PTRDIFF:
39000       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
39001       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
39002       ? 1 : -1;
39003   /* Detect bug in FreeBSD 6.0 / ia64.  */
39004   int check_SIG_ATOMIC:
39005       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
39006       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
39007       ? 1 : -1;
39008   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
39009   int check_WCHAR:
39010       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
39011       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
39012       ? 1 : -1;
39013   /* Detect bug in mingw.  */
39014   int check_WINT:
39015       WINT_MIN == TYPE_MINIMUM (wint_t)
39016       && WINT_MAX == TYPE_MAXIMUM (wint_t)
39017       ? 1 : -1;
39018
39019   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
39020   int check_UINT8_C:
39021         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
39022   int check_UINT16_C:
39023         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
39024
39025   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
39026 #ifdef UINT8_MAX
39027   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
39028 #endif
39029 #ifdef UINT16_MAX
39030   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
39031 #endif
39032 #ifdef UINT32_MAX
39033   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
39034 #endif
39035 #ifdef UINT64_MAX
39036   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
39037 #endif
39038   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
39039   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
39040   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
39041   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
39042   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
39043   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
39044   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
39045   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
39046   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
39047   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
39048   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
39049 };
39050
39051 int
39052 main ()
39053 {
39054
39055   ;
39056   return 0;
39057 }
39058 _ACEOF
39059 rm -f conftest.$ac_objext
39060 if { (ac_try="$ac_compile"
39061 case "(($ac_try" in
39062   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39063   *) ac_try_echo=$ac_try;;
39064 esac
39065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39066 $as_echo "$ac_try_echo") >&5
39067   (eval "$ac_compile") 2>conftest.er1
39068   ac_status=$?
39069   grep -v '^ *+' conftest.er1 >conftest.err
39070   rm -f conftest.er1
39071   cat conftest.err >&5
39072   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39073   (exit $ac_status); } && {
39074          test -z "$ac_c_werror_flag" ||
39075          test ! -s conftest.err
39076        } && test -s conftest.$ac_objext; then
39077                                                     if test "$cross_compiling" = yes; then
39078                  gl_cv_header_working_stdint_h=yes
39079
39080 else
39081   cat >conftest.$ac_ext <<_ACEOF
39082
39083             /* confdefs.h.  */
39084 _ACEOF
39085 cat confdefs.h >>conftest.$ac_ext
39086 cat >>conftest.$ac_ext <<_ACEOF
39087 /* end confdefs.h.  */
39088
39089 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
39090 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
39091 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
39092 #include <stdint.h>
39093
39094
39095   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39096      included before <wchar.h>.  */
39097   #include <stddef.h>
39098   #include <signal.h>
39099   #if HAVE_WCHAR_H
39100   # include <stdio.h>
39101   # include <time.h>
39102   # include <wchar.h>
39103   #endif
39104
39105
39106 #include <stdio.h>
39107 #include <string.h>
39108 #define MVAL(macro) MVAL1(macro)
39109 #define MVAL1(expression) #expression
39110 static const char *macro_values[] =
39111   {
39112 #ifdef INT8_MAX
39113     MVAL (INT8_MAX),
39114 #endif
39115 #ifdef INT16_MAX
39116     MVAL (INT16_MAX),
39117 #endif
39118 #ifdef INT32_MAX
39119     MVAL (INT32_MAX),
39120 #endif
39121 #ifdef INT64_MAX
39122     MVAL (INT64_MAX),
39123 #endif
39124 #ifdef UINT8_MAX
39125     MVAL (UINT8_MAX),
39126 #endif
39127 #ifdef UINT16_MAX
39128     MVAL (UINT16_MAX),
39129 #endif
39130 #ifdef UINT32_MAX
39131     MVAL (UINT32_MAX),
39132 #endif
39133 #ifdef UINT64_MAX
39134     MVAL (UINT64_MAX),
39135 #endif
39136     NULL
39137   };
39138
39139 int
39140 main ()
39141 {
39142
39143   const char **mv;
39144   for (mv = macro_values; *mv != NULL; mv++)
39145     {
39146       const char *value = *mv;
39147       /* Test whether it looks like a cast expression.  */
39148       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
39149           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
39150           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
39151           || strncmp (value, "((int)"/*)*/, 6) == 0
39152           || strncmp (value, "((signed short)"/*)*/, 15) == 0
39153           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
39154         return 1;
39155     }
39156   return 0;
39157
39158   ;
39159   return 0;
39160 }
39161 _ACEOF
39162 rm -f conftest$ac_exeext
39163 if { (ac_try="$ac_link"
39164 case "(($ac_try" in
39165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39166   *) ac_try_echo=$ac_try;;
39167 esac
39168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39169 $as_echo "$ac_try_echo") >&5
39170   (eval "$ac_link") 2>&5
39171   ac_status=$?
39172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39173   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39174   { (case "(($ac_try" in
39175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39176   *) ac_try_echo=$ac_try;;
39177 esac
39178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39179 $as_echo "$ac_try_echo") >&5
39180   (eval "$ac_try") 2>&5
39181   ac_status=$?
39182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39183   (exit $ac_status); }; }; then
39184   gl_cv_header_working_stdint_h=yes
39185 else
39186   $as_echo "$as_me: program exited with status $ac_status" >&5
39187 $as_echo "$as_me: failed program was:" >&5
39188 sed 's/^/| /' conftest.$ac_ext >&5
39189
39190 fi
39191 rm -rf conftest.dSYM
39192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39193 fi
39194
39195
39196
39197 else
39198   $as_echo "$as_me: failed program was:" >&5
39199 sed 's/^/| /' conftest.$ac_ext >&5
39200
39201
39202 fi
39203
39204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39205
39206 fi
39207 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
39208 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
39209   fi
39210   if test "$gl_cv_header_working_stdint_h" = yes; then
39211     STDINT_H=
39212   else
39213
39214
39215 for ac_header in sys/inttypes.h sys/bitypes.h
39216 do
39217 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39219   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39220 $as_echo_n "checking for $ac_header... " >&6; }
39221 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39222   $as_echo_n "(cached) " >&6
39223 fi
39224 ac_res=`eval 'as_val=${'$as_ac_Header'}
39225                  $as_echo "$as_val"'`
39226                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39227 $as_echo "$ac_res" >&6; }
39228 else
39229   # Is the header compilable?
39230 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
39231 $as_echo_n "checking $ac_header usability... " >&6; }
39232 cat >conftest.$ac_ext <<_ACEOF
39233 /* confdefs.h.  */
39234 _ACEOF
39235 cat confdefs.h >>conftest.$ac_ext
39236 cat >>conftest.$ac_ext <<_ACEOF
39237 /* end confdefs.h.  */
39238 $ac_includes_default
39239 #include <$ac_header>
39240 _ACEOF
39241 rm -f conftest.$ac_objext
39242 if { (ac_try="$ac_compile"
39243 case "(($ac_try" in
39244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39245   *) ac_try_echo=$ac_try;;
39246 esac
39247 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39248 $as_echo "$ac_try_echo") >&5
39249   (eval "$ac_compile") 2>conftest.er1
39250   ac_status=$?
39251   grep -v '^ *+' conftest.er1 >conftest.err
39252   rm -f conftest.er1
39253   cat conftest.err >&5
39254   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39255   (exit $ac_status); } && {
39256          test -z "$ac_c_werror_flag" ||
39257          test ! -s conftest.err
39258        } && test -s conftest.$ac_objext; then
39259   ac_header_compiler=yes
39260 else
39261   $as_echo "$as_me: failed program was:" >&5
39262 sed 's/^/| /' conftest.$ac_ext >&5
39263
39264         ac_header_compiler=no
39265 fi
39266
39267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39268 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39269 $as_echo "$ac_header_compiler" >&6; }
39270
39271 # Is the header present?
39272 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
39273 $as_echo_n "checking $ac_header presence... " >&6; }
39274 cat >conftest.$ac_ext <<_ACEOF
39275 /* confdefs.h.  */
39276 _ACEOF
39277 cat confdefs.h >>conftest.$ac_ext
39278 cat >>conftest.$ac_ext <<_ACEOF
39279 /* end confdefs.h.  */
39280 #include <$ac_header>
39281 _ACEOF
39282 if { (ac_try="$ac_cpp conftest.$ac_ext"
39283 case "(($ac_try" in
39284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39285   *) ac_try_echo=$ac_try;;
39286 esac
39287 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39288 $as_echo "$ac_try_echo") >&5
39289   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39290   ac_status=$?
39291   grep -v '^ *+' conftest.er1 >conftest.err
39292   rm -f conftest.er1
39293   cat conftest.err >&5
39294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39295   (exit $ac_status); } >/dev/null && {
39296          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39297          test ! -s conftest.err
39298        }; then
39299   ac_header_preproc=yes
39300 else
39301   $as_echo "$as_me: failed program was:" >&5
39302 sed 's/^/| /' conftest.$ac_ext >&5
39303
39304   ac_header_preproc=no
39305 fi
39306
39307 rm -f conftest.err conftest.$ac_ext
39308 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39309 $as_echo "$ac_header_preproc" >&6; }
39310
39311 # So?  What about this header?
39312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39313   yes:no: )
39314     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39315 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39316     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39317 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39318     ac_header_preproc=yes
39319     ;;
39320   no:yes:* )
39321     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39322 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39323     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39324 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39325     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39326 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39327     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39328 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39329     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39330 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39332 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39333     ( cat <<\_ASBOX
39334 ## ------------------------------ ##
39335 ## Report this to bug-tar@gnu.org ##
39336 ## ------------------------------ ##
39337 _ASBOX
39338      ) | sed "s/^/$as_me: WARNING:     /" >&2
39339     ;;
39340 esac
39341 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39342 $as_echo_n "checking for $ac_header... " >&6; }
39343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39344   $as_echo_n "(cached) " >&6
39345 else
39346   eval "$as_ac_Header=\$ac_header_preproc"
39347 fi
39348 ac_res=`eval 'as_val=${'$as_ac_Header'}
39349                  $as_echo "$as_val"'`
39350                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39351 $as_echo "$ac_res" >&6; }
39352
39353 fi
39354 as_val=`eval 'as_val=${'$as_ac_Header'}
39355                  $as_echo "$as_val"'`
39356    if test "x$as_val" = x""yes; then
39357   cat >>confdefs.h <<_ACEOF
39358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39359 _ACEOF
39360
39361 fi
39362
39363 done
39364
39365     if test $ac_cv_header_sys_inttypes_h = yes; then
39366       HAVE_SYS_INTTYPES_H=1
39367     else
39368       HAVE_SYS_INTTYPES_H=0
39369     fi
39370
39371     if test $ac_cv_header_sys_bitypes_h = yes; then
39372       HAVE_SYS_BITYPES_H=1
39373     else
39374       HAVE_SYS_BITYPES_H=0
39375     fi
39376
39377
39378
39379
39380
39381
39382
39383
39384
39385
39386
39387   if test $APPLE_UNIVERSAL_BUILD = 0; then
39388
39389
39390
39391
39392   for gltype in ptrdiff_t size_t ; do
39393     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
39394 $as_echo_n "checking for bit size of $gltype... " >&6; }
39395 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
39396   $as_echo_n "(cached) " >&6
39397 else
39398   if test "$cross_compiling" = yes; then
39399   # Depending upon the size, compute the lo and hi bounds.
39400 cat >conftest.$ac_ext <<_ACEOF
39401 /* confdefs.h.  */
39402 _ACEOF
39403 cat confdefs.h >>conftest.$ac_ext
39404 cat >>conftest.$ac_ext <<_ACEOF
39405 /* end confdefs.h.  */
39406
39407   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39408      included before <wchar.h>.  */
39409   #include <stddef.h>
39410   #include <signal.h>
39411   #if HAVE_WCHAR_H
39412   # include <stdio.h>
39413   # include <time.h>
39414   # include <wchar.h>
39415   #endif
39416
39417 #include <limits.h>
39418 int
39419 main ()
39420 {
39421 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
39422 test_array [0] = 0
39423
39424   ;
39425   return 0;
39426 }
39427 _ACEOF
39428 rm -f conftest.$ac_objext
39429 if { (ac_try="$ac_compile"
39430 case "(($ac_try" in
39431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39432   *) ac_try_echo=$ac_try;;
39433 esac
39434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39435 $as_echo "$ac_try_echo") >&5
39436   (eval "$ac_compile") 2>conftest.er1
39437   ac_status=$?
39438   grep -v '^ *+' conftest.er1 >conftest.err
39439   rm -f conftest.er1
39440   cat conftest.err >&5
39441   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39442   (exit $ac_status); } && {
39443          test -z "$ac_c_werror_flag" ||
39444          test ! -s conftest.err
39445        } && test -s conftest.$ac_objext; then
39446   ac_lo=0 ac_mid=0
39447   while :; do
39448     cat >conftest.$ac_ext <<_ACEOF
39449 /* confdefs.h.  */
39450 _ACEOF
39451 cat confdefs.h >>conftest.$ac_ext
39452 cat >>conftest.$ac_ext <<_ACEOF
39453 /* end confdefs.h.  */
39454
39455   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39456      included before <wchar.h>.  */
39457   #include <stddef.h>
39458   #include <signal.h>
39459   #if HAVE_WCHAR_H
39460   # include <stdio.h>
39461   # include <time.h>
39462   # include <wchar.h>
39463   #endif
39464
39465 #include <limits.h>
39466 int
39467 main ()
39468 {
39469 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
39470 test_array [0] = 0
39471
39472   ;
39473   return 0;
39474 }
39475 _ACEOF
39476 rm -f conftest.$ac_objext
39477 if { (ac_try="$ac_compile"
39478 case "(($ac_try" in
39479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39480   *) ac_try_echo=$ac_try;;
39481 esac
39482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39483 $as_echo "$ac_try_echo") >&5
39484   (eval "$ac_compile") 2>conftest.er1
39485   ac_status=$?
39486   grep -v '^ *+' conftest.er1 >conftest.err
39487   rm -f conftest.er1
39488   cat conftest.err >&5
39489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39490   (exit $ac_status); } && {
39491          test -z "$ac_c_werror_flag" ||
39492          test ! -s conftest.err
39493        } && test -s conftest.$ac_objext; then
39494   ac_hi=$ac_mid; break
39495 else
39496   $as_echo "$as_me: failed program was:" >&5
39497 sed 's/^/| /' conftest.$ac_ext >&5
39498
39499         ac_lo=`expr $ac_mid + 1`
39500                         if test $ac_lo -le $ac_mid; then
39501                           ac_lo= ac_hi=
39502                           break
39503                         fi
39504                         ac_mid=`expr 2 '*' $ac_mid + 1`
39505 fi
39506
39507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39508   done
39509 else
39510   $as_echo "$as_me: failed program was:" >&5
39511 sed 's/^/| /' conftest.$ac_ext >&5
39512
39513         cat >conftest.$ac_ext <<_ACEOF
39514 /* confdefs.h.  */
39515 _ACEOF
39516 cat confdefs.h >>conftest.$ac_ext
39517 cat >>conftest.$ac_ext <<_ACEOF
39518 /* end confdefs.h.  */
39519
39520   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39521      included before <wchar.h>.  */
39522   #include <stddef.h>
39523   #include <signal.h>
39524   #if HAVE_WCHAR_H
39525   # include <stdio.h>
39526   # include <time.h>
39527   # include <wchar.h>
39528   #endif
39529
39530 #include <limits.h>
39531 int
39532 main ()
39533 {
39534 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
39535 test_array [0] = 0
39536
39537   ;
39538   return 0;
39539 }
39540 _ACEOF
39541 rm -f conftest.$ac_objext
39542 if { (ac_try="$ac_compile"
39543 case "(($ac_try" in
39544   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39545   *) ac_try_echo=$ac_try;;
39546 esac
39547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39548 $as_echo "$ac_try_echo") >&5
39549   (eval "$ac_compile") 2>conftest.er1
39550   ac_status=$?
39551   grep -v '^ *+' conftest.er1 >conftest.err
39552   rm -f conftest.er1
39553   cat conftest.err >&5
39554   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39555   (exit $ac_status); } && {
39556          test -z "$ac_c_werror_flag" ||
39557          test ! -s conftest.err
39558        } && test -s conftest.$ac_objext; then
39559   ac_hi=-1 ac_mid=-1
39560   while :; do
39561     cat >conftest.$ac_ext <<_ACEOF
39562 /* confdefs.h.  */
39563 _ACEOF
39564 cat confdefs.h >>conftest.$ac_ext
39565 cat >>conftest.$ac_ext <<_ACEOF
39566 /* end confdefs.h.  */
39567
39568   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39569      included before <wchar.h>.  */
39570   #include <stddef.h>
39571   #include <signal.h>
39572   #if HAVE_WCHAR_H
39573   # include <stdio.h>
39574   # include <time.h>
39575   # include <wchar.h>
39576   #endif
39577
39578 #include <limits.h>
39579 int
39580 main ()
39581 {
39582 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
39583 test_array [0] = 0
39584
39585   ;
39586   return 0;
39587 }
39588 _ACEOF
39589 rm -f conftest.$ac_objext
39590 if { (ac_try="$ac_compile"
39591 case "(($ac_try" in
39592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39593   *) ac_try_echo=$ac_try;;
39594 esac
39595 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39596 $as_echo "$ac_try_echo") >&5
39597   (eval "$ac_compile") 2>conftest.er1
39598   ac_status=$?
39599   grep -v '^ *+' conftest.er1 >conftest.err
39600   rm -f conftest.er1
39601   cat conftest.err >&5
39602   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39603   (exit $ac_status); } && {
39604          test -z "$ac_c_werror_flag" ||
39605          test ! -s conftest.err
39606        } && test -s conftest.$ac_objext; then
39607   ac_lo=$ac_mid; break
39608 else
39609   $as_echo "$as_me: failed program was:" >&5
39610 sed 's/^/| /' conftest.$ac_ext >&5
39611
39612         ac_hi=`expr '(' $ac_mid ')' - 1`
39613                         if test $ac_mid -le $ac_hi; then
39614                           ac_lo= ac_hi=
39615                           break
39616                         fi
39617                         ac_mid=`expr 2 '*' $ac_mid`
39618 fi
39619
39620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39621   done
39622 else
39623   $as_echo "$as_me: failed program was:" >&5
39624 sed 's/^/| /' conftest.$ac_ext >&5
39625
39626         ac_lo= ac_hi=
39627 fi
39628
39629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39630 fi
39631
39632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39633 # Binary search between lo and hi bounds.
39634 while test "x$ac_lo" != "x$ac_hi"; do
39635   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
39636   cat >conftest.$ac_ext <<_ACEOF
39637 /* confdefs.h.  */
39638 _ACEOF
39639 cat confdefs.h >>conftest.$ac_ext
39640 cat >>conftest.$ac_ext <<_ACEOF
39641 /* end confdefs.h.  */
39642
39643   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39644      included before <wchar.h>.  */
39645   #include <stddef.h>
39646   #include <signal.h>
39647   #if HAVE_WCHAR_H
39648   # include <stdio.h>
39649   # include <time.h>
39650   # include <wchar.h>
39651   #endif
39652
39653 #include <limits.h>
39654 int
39655 main ()
39656 {
39657 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
39658 test_array [0] = 0
39659
39660   ;
39661   return 0;
39662 }
39663 _ACEOF
39664 rm -f conftest.$ac_objext
39665 if { (ac_try="$ac_compile"
39666 case "(($ac_try" in
39667   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39668   *) ac_try_echo=$ac_try;;
39669 esac
39670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39671 $as_echo "$ac_try_echo") >&5
39672   (eval "$ac_compile") 2>conftest.er1
39673   ac_status=$?
39674   grep -v '^ *+' conftest.er1 >conftest.err
39675   rm -f conftest.er1
39676   cat conftest.err >&5
39677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39678   (exit $ac_status); } && {
39679          test -z "$ac_c_werror_flag" ||
39680          test ! -s conftest.err
39681        } && test -s conftest.$ac_objext; then
39682   ac_hi=$ac_mid
39683 else
39684   $as_echo "$as_me: failed program was:" >&5
39685 sed 's/^/| /' conftest.$ac_ext >&5
39686
39687         ac_lo=`expr '(' $ac_mid ')' + 1`
39688 fi
39689
39690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39691 done
39692 case $ac_lo in
39693 ?*) result=$ac_lo;;
39694 '') result=unknown ;;
39695 esac
39696 else
39697   cat >conftest.$ac_ext <<_ACEOF
39698 /* confdefs.h.  */
39699 _ACEOF
39700 cat confdefs.h >>conftest.$ac_ext
39701 cat >>conftest.$ac_ext <<_ACEOF
39702 /* end confdefs.h.  */
39703
39704   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39705      included before <wchar.h>.  */
39706   #include <stddef.h>
39707   #include <signal.h>
39708   #if HAVE_WCHAR_H
39709   # include <stdio.h>
39710   # include <time.h>
39711   # include <wchar.h>
39712   #endif
39713
39714 #include <limits.h>
39715 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
39716 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
39717 #include <stdio.h>
39718 #include <stdlib.h>
39719 int
39720 main ()
39721 {
39722
39723   FILE *f = fopen ("conftest.val", "w");
39724   if (! f)
39725     return 1;
39726   if ((sizeof ($gltype) * CHAR_BIT) < 0)
39727     {
39728       long int i = longval ();
39729       if (i != (sizeof ($gltype) * CHAR_BIT))
39730         return 1;
39731       fprintf (f, "%ld", i);
39732     }
39733   else
39734     {
39735       unsigned long int i = ulongval ();
39736       if (i != (sizeof ($gltype) * CHAR_BIT))
39737         return 1;
39738       fprintf (f, "%lu", i);
39739     }
39740   /* Do not output a trailing newline, as this causes \r\n confusion
39741      on some platforms.  */
39742   return ferror (f) || fclose (f) != 0;
39743
39744   ;
39745   return 0;
39746 }
39747 _ACEOF
39748 rm -f conftest$ac_exeext
39749 if { (ac_try="$ac_link"
39750 case "(($ac_try" in
39751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39752   *) ac_try_echo=$ac_try;;
39753 esac
39754 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39755 $as_echo "$ac_try_echo") >&5
39756   (eval "$ac_link") 2>&5
39757   ac_status=$?
39758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39759   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39760   { (case "(($ac_try" in
39761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39762   *) ac_try_echo=$ac_try;;
39763 esac
39764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39765 $as_echo "$ac_try_echo") >&5
39766   (eval "$ac_try") 2>&5
39767   ac_status=$?
39768   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39769   (exit $ac_status); }; }; then
39770   result=`cat conftest.val`
39771 else
39772   $as_echo "$as_me: program exited with status $ac_status" >&5
39773 $as_echo "$as_me: failed program was:" >&5
39774 sed 's/^/| /' conftest.$ac_ext >&5
39775
39776 ( exit $ac_status )
39777 result=unknown
39778 fi
39779 rm -rf conftest.dSYM
39780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39781 fi
39782 rm -f conftest.val
39783        eval gl_cv_bitsizeof_${gltype}=\$result
39784
39785 fi
39786 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
39787                  $as_echo "$as_val"'`
39788                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39789 $as_echo "$ac_res" >&6; }
39790     eval result=\$gl_cv_bitsizeof_${gltype}
39791     if test $result = unknown; then
39792                                                 result=0
39793     fi
39794     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
39795     cat >>confdefs.h <<_ACEOF
39796 #define BITSIZEOF_${GLTYPE} $result
39797 _ACEOF
39798
39799     eval BITSIZEOF_${GLTYPE}=\$result
39800   done
39801
39802
39803   fi
39804
39805
39806
39807
39808
39809   for gltype in sig_atomic_t wchar_t wint_t ; do
39810     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
39811 $as_echo_n "checking for bit size of $gltype... " >&6; }
39812 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
39813   $as_echo_n "(cached) " >&6
39814 else
39815   if test "$cross_compiling" = yes; then
39816   # Depending upon the size, compute the lo and hi bounds.
39817 cat >conftest.$ac_ext <<_ACEOF
39818 /* confdefs.h.  */
39819 _ACEOF
39820 cat confdefs.h >>conftest.$ac_ext
39821 cat >>conftest.$ac_ext <<_ACEOF
39822 /* end confdefs.h.  */
39823
39824   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39825      included before <wchar.h>.  */
39826   #include <stddef.h>
39827   #include <signal.h>
39828   #if HAVE_WCHAR_H
39829   # include <stdio.h>
39830   # include <time.h>
39831   # include <wchar.h>
39832   #endif
39833
39834 #include <limits.h>
39835 int
39836 main ()
39837 {
39838 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
39839 test_array [0] = 0
39840
39841   ;
39842   return 0;
39843 }
39844 _ACEOF
39845 rm -f conftest.$ac_objext
39846 if { (ac_try="$ac_compile"
39847 case "(($ac_try" in
39848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39849   *) ac_try_echo=$ac_try;;
39850 esac
39851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39852 $as_echo "$ac_try_echo") >&5
39853   (eval "$ac_compile") 2>conftest.er1
39854   ac_status=$?
39855   grep -v '^ *+' conftest.er1 >conftest.err
39856   rm -f conftest.er1
39857   cat conftest.err >&5
39858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39859   (exit $ac_status); } && {
39860          test -z "$ac_c_werror_flag" ||
39861          test ! -s conftest.err
39862        } && test -s conftest.$ac_objext; then
39863   ac_lo=0 ac_mid=0
39864   while :; do
39865     cat >conftest.$ac_ext <<_ACEOF
39866 /* confdefs.h.  */
39867 _ACEOF
39868 cat confdefs.h >>conftest.$ac_ext
39869 cat >>conftest.$ac_ext <<_ACEOF
39870 /* end confdefs.h.  */
39871
39872   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39873      included before <wchar.h>.  */
39874   #include <stddef.h>
39875   #include <signal.h>
39876   #if HAVE_WCHAR_H
39877   # include <stdio.h>
39878   # include <time.h>
39879   # include <wchar.h>
39880   #endif
39881
39882 #include <limits.h>
39883 int
39884 main ()
39885 {
39886 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
39887 test_array [0] = 0
39888
39889   ;
39890   return 0;
39891 }
39892 _ACEOF
39893 rm -f conftest.$ac_objext
39894 if { (ac_try="$ac_compile"
39895 case "(($ac_try" in
39896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39897   *) ac_try_echo=$ac_try;;
39898 esac
39899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39900 $as_echo "$ac_try_echo") >&5
39901   (eval "$ac_compile") 2>conftest.er1
39902   ac_status=$?
39903   grep -v '^ *+' conftest.er1 >conftest.err
39904   rm -f conftest.er1
39905   cat conftest.err >&5
39906   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39907   (exit $ac_status); } && {
39908          test -z "$ac_c_werror_flag" ||
39909          test ! -s conftest.err
39910        } && test -s conftest.$ac_objext; then
39911   ac_hi=$ac_mid; break
39912 else
39913   $as_echo "$as_me: failed program was:" >&5
39914 sed 's/^/| /' conftest.$ac_ext >&5
39915
39916         ac_lo=`expr $ac_mid + 1`
39917                         if test $ac_lo -le $ac_mid; then
39918                           ac_lo= ac_hi=
39919                           break
39920                         fi
39921                         ac_mid=`expr 2 '*' $ac_mid + 1`
39922 fi
39923
39924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39925   done
39926 else
39927   $as_echo "$as_me: failed program was:" >&5
39928 sed 's/^/| /' conftest.$ac_ext >&5
39929
39930         cat >conftest.$ac_ext <<_ACEOF
39931 /* confdefs.h.  */
39932 _ACEOF
39933 cat confdefs.h >>conftest.$ac_ext
39934 cat >>conftest.$ac_ext <<_ACEOF
39935 /* end confdefs.h.  */
39936
39937   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39938      included before <wchar.h>.  */
39939   #include <stddef.h>
39940   #include <signal.h>
39941   #if HAVE_WCHAR_H
39942   # include <stdio.h>
39943   # include <time.h>
39944   # include <wchar.h>
39945   #endif
39946
39947 #include <limits.h>
39948 int
39949 main ()
39950 {
39951 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
39952 test_array [0] = 0
39953
39954   ;
39955   return 0;
39956 }
39957 _ACEOF
39958 rm -f conftest.$ac_objext
39959 if { (ac_try="$ac_compile"
39960 case "(($ac_try" in
39961   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39962   *) ac_try_echo=$ac_try;;
39963 esac
39964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39965 $as_echo "$ac_try_echo") >&5
39966   (eval "$ac_compile") 2>conftest.er1
39967   ac_status=$?
39968   grep -v '^ *+' conftest.er1 >conftest.err
39969   rm -f conftest.er1
39970   cat conftest.err >&5
39971   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39972   (exit $ac_status); } && {
39973          test -z "$ac_c_werror_flag" ||
39974          test ! -s conftest.err
39975        } && test -s conftest.$ac_objext; then
39976   ac_hi=-1 ac_mid=-1
39977   while :; do
39978     cat >conftest.$ac_ext <<_ACEOF
39979 /* confdefs.h.  */
39980 _ACEOF
39981 cat confdefs.h >>conftest.$ac_ext
39982 cat >>conftest.$ac_ext <<_ACEOF
39983 /* end confdefs.h.  */
39984
39985   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
39986      included before <wchar.h>.  */
39987   #include <stddef.h>
39988   #include <signal.h>
39989   #if HAVE_WCHAR_H
39990   # include <stdio.h>
39991   # include <time.h>
39992   # include <wchar.h>
39993   #endif
39994
39995 #include <limits.h>
39996 int
39997 main ()
39998 {
39999 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
40000 test_array [0] = 0
40001
40002   ;
40003   return 0;
40004 }
40005 _ACEOF
40006 rm -f conftest.$ac_objext
40007 if { (ac_try="$ac_compile"
40008 case "(($ac_try" in
40009   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40010   *) ac_try_echo=$ac_try;;
40011 esac
40012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40013 $as_echo "$ac_try_echo") >&5
40014   (eval "$ac_compile") 2>conftest.er1
40015   ac_status=$?
40016   grep -v '^ *+' conftest.er1 >conftest.err
40017   rm -f conftest.er1
40018   cat conftest.err >&5
40019   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40020   (exit $ac_status); } && {
40021          test -z "$ac_c_werror_flag" ||
40022          test ! -s conftest.err
40023        } && test -s conftest.$ac_objext; then
40024   ac_lo=$ac_mid; break
40025 else
40026   $as_echo "$as_me: failed program was:" >&5
40027 sed 's/^/| /' conftest.$ac_ext >&5
40028
40029         ac_hi=`expr '(' $ac_mid ')' - 1`
40030                         if test $ac_mid -le $ac_hi; then
40031                           ac_lo= ac_hi=
40032                           break
40033                         fi
40034                         ac_mid=`expr 2 '*' $ac_mid`
40035 fi
40036
40037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40038   done
40039 else
40040   $as_echo "$as_me: failed program was:" >&5
40041 sed 's/^/| /' conftest.$ac_ext >&5
40042
40043         ac_lo= ac_hi=
40044 fi
40045
40046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40047 fi
40048
40049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40050 # Binary search between lo and hi bounds.
40051 while test "x$ac_lo" != "x$ac_hi"; do
40052   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40053   cat >conftest.$ac_ext <<_ACEOF
40054 /* confdefs.h.  */
40055 _ACEOF
40056 cat confdefs.h >>conftest.$ac_ext
40057 cat >>conftest.$ac_ext <<_ACEOF
40058 /* end confdefs.h.  */
40059
40060   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40061      included before <wchar.h>.  */
40062   #include <stddef.h>
40063   #include <signal.h>
40064   #if HAVE_WCHAR_H
40065   # include <stdio.h>
40066   # include <time.h>
40067   # include <wchar.h>
40068   #endif
40069
40070 #include <limits.h>
40071 int
40072 main ()
40073 {
40074 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
40075 test_array [0] = 0
40076
40077   ;
40078   return 0;
40079 }
40080 _ACEOF
40081 rm -f conftest.$ac_objext
40082 if { (ac_try="$ac_compile"
40083 case "(($ac_try" in
40084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40085   *) ac_try_echo=$ac_try;;
40086 esac
40087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40088 $as_echo "$ac_try_echo") >&5
40089   (eval "$ac_compile") 2>conftest.er1
40090   ac_status=$?
40091   grep -v '^ *+' conftest.er1 >conftest.err
40092   rm -f conftest.er1
40093   cat conftest.err >&5
40094   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40095   (exit $ac_status); } && {
40096          test -z "$ac_c_werror_flag" ||
40097          test ! -s conftest.err
40098        } && test -s conftest.$ac_objext; then
40099   ac_hi=$ac_mid
40100 else
40101   $as_echo "$as_me: failed program was:" >&5
40102 sed 's/^/| /' conftest.$ac_ext >&5
40103
40104         ac_lo=`expr '(' $ac_mid ')' + 1`
40105 fi
40106
40107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40108 done
40109 case $ac_lo in
40110 ?*) result=$ac_lo;;
40111 '') result=unknown ;;
40112 esac
40113 else
40114   cat >conftest.$ac_ext <<_ACEOF
40115 /* confdefs.h.  */
40116 _ACEOF
40117 cat confdefs.h >>conftest.$ac_ext
40118 cat >>conftest.$ac_ext <<_ACEOF
40119 /* end confdefs.h.  */
40120
40121   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40122      included before <wchar.h>.  */
40123   #include <stddef.h>
40124   #include <signal.h>
40125   #if HAVE_WCHAR_H
40126   # include <stdio.h>
40127   # include <time.h>
40128   # include <wchar.h>
40129   #endif
40130
40131 #include <limits.h>
40132 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
40133 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
40134 #include <stdio.h>
40135 #include <stdlib.h>
40136 int
40137 main ()
40138 {
40139
40140   FILE *f = fopen ("conftest.val", "w");
40141   if (! f)
40142     return 1;
40143   if ((sizeof ($gltype) * CHAR_BIT) < 0)
40144     {
40145       long int i = longval ();
40146       if (i != (sizeof ($gltype) * CHAR_BIT))
40147         return 1;
40148       fprintf (f, "%ld", i);
40149     }
40150   else
40151     {
40152       unsigned long int i = ulongval ();
40153       if (i != (sizeof ($gltype) * CHAR_BIT))
40154         return 1;
40155       fprintf (f, "%lu", i);
40156     }
40157   /* Do not output a trailing newline, as this causes \r\n confusion
40158      on some platforms.  */
40159   return ferror (f) || fclose (f) != 0;
40160
40161   ;
40162   return 0;
40163 }
40164 _ACEOF
40165 rm -f conftest$ac_exeext
40166 if { (ac_try="$ac_link"
40167 case "(($ac_try" in
40168   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40169   *) ac_try_echo=$ac_try;;
40170 esac
40171 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40172 $as_echo "$ac_try_echo") >&5
40173   (eval "$ac_link") 2>&5
40174   ac_status=$?
40175   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40176   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40177   { (case "(($ac_try" in
40178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40179   *) ac_try_echo=$ac_try;;
40180 esac
40181 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40182 $as_echo "$ac_try_echo") >&5
40183   (eval "$ac_try") 2>&5
40184   ac_status=$?
40185   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40186   (exit $ac_status); }; }; then
40187   result=`cat conftest.val`
40188 else
40189   $as_echo "$as_me: program exited with status $ac_status" >&5
40190 $as_echo "$as_me: failed program was:" >&5
40191 sed 's/^/| /' conftest.$ac_ext >&5
40192
40193 ( exit $ac_status )
40194 result=unknown
40195 fi
40196 rm -rf conftest.dSYM
40197 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40198 fi
40199 rm -f conftest.val
40200        eval gl_cv_bitsizeof_${gltype}=\$result
40201
40202 fi
40203 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
40204                  $as_echo "$as_val"'`
40205                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40206 $as_echo "$ac_res" >&6; }
40207     eval result=\$gl_cv_bitsizeof_${gltype}
40208     if test $result = unknown; then
40209                                                 result=0
40210     fi
40211     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40212     cat >>confdefs.h <<_ACEOF
40213 #define BITSIZEOF_${GLTYPE} $result
40214 _ACEOF
40215
40216     eval BITSIZEOF_${GLTYPE}=\$result
40217   done
40218
40219
40220
40221
40222
40223
40224
40225   for gltype in sig_atomic_t wchar_t wint_t ; do
40226     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
40227 $as_echo_n "checking whether $gltype is signed... " >&6; }
40228 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
40229   $as_echo_n "(cached) " >&6
40230 else
40231   cat >conftest.$ac_ext <<_ACEOF
40232 /* confdefs.h.  */
40233 _ACEOF
40234 cat confdefs.h >>conftest.$ac_ext
40235 cat >>conftest.$ac_ext <<_ACEOF
40236 /* end confdefs.h.  */
40237
40238   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40239      included before <wchar.h>.  */
40240   #include <stddef.h>
40241   #include <signal.h>
40242   #if HAVE_WCHAR_H
40243   # include <stdio.h>
40244   # include <time.h>
40245   # include <wchar.h>
40246   #endif
40247
40248             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
40249 int
40250 main ()
40251 {
40252
40253   ;
40254   return 0;
40255 }
40256 _ACEOF
40257 rm -f conftest.$ac_objext
40258 if { (ac_try="$ac_compile"
40259 case "(($ac_try" in
40260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40261   *) ac_try_echo=$ac_try;;
40262 esac
40263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40264 $as_echo "$ac_try_echo") >&5
40265   (eval "$ac_compile") 2>conftest.er1
40266   ac_status=$?
40267   grep -v '^ *+' conftest.er1 >conftest.err
40268   rm -f conftest.er1
40269   cat conftest.err >&5
40270   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40271   (exit $ac_status); } && {
40272          test -z "$ac_c_werror_flag" ||
40273          test ! -s conftest.err
40274        } && test -s conftest.$ac_objext; then
40275   result=yes
40276 else
40277   $as_echo "$as_me: failed program was:" >&5
40278 sed 's/^/| /' conftest.$ac_ext >&5
40279
40280         result=no
40281 fi
40282
40283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40284        eval gl_cv_type_${gltype}_signed=\$result
40285
40286 fi
40287 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
40288                  $as_echo "$as_val"'`
40289                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40290 $as_echo "$ac_res" >&6; }
40291     eval result=\$gl_cv_type_${gltype}_signed
40292     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40293     if test "$result" = yes; then
40294       cat >>confdefs.h <<_ACEOF
40295 #define HAVE_SIGNED_${GLTYPE} 1
40296 _ACEOF
40297
40298       eval HAVE_SIGNED_${GLTYPE}=1
40299     else
40300       eval HAVE_SIGNED_${GLTYPE}=0
40301     fi
40302   done
40303
40304
40305   gl_cv_type_ptrdiff_t_signed=yes
40306   gl_cv_type_size_t_signed=no
40307   if test $APPLE_UNIVERSAL_BUILD = 0; then
40308
40309
40310
40311
40312   for gltype in ptrdiff_t size_t ; do
40313     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
40314 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
40315 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
40316   $as_echo_n "(cached) " >&6
40317 else
40318   eval gl_cv_type_${gltype}_suffix=no
40319        eval result=\$gl_cv_type_${gltype}_signed
40320        if test "$result" = yes; then
40321          glsufu=
40322        else
40323          glsufu=u
40324        fi
40325        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
40326          case $glsuf in
40327            '')  gltype1='int';;
40328            l)   gltype1='long int';;
40329            ll)  gltype1='long long int';;
40330            i64) gltype1='__int64';;
40331            u)   gltype1='unsigned int';;
40332            ul)  gltype1='unsigned long int';;
40333            ull) gltype1='unsigned long long int';;
40334            ui64)gltype1='unsigned __int64';;
40335          esac
40336          cat >conftest.$ac_ext <<_ACEOF
40337 /* confdefs.h.  */
40338 _ACEOF
40339 cat confdefs.h >>conftest.$ac_ext
40340 cat >>conftest.$ac_ext <<_ACEOF
40341 /* end confdefs.h.  */
40342
40343   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40344      included before <wchar.h>.  */
40345   #include <stddef.h>
40346   #include <signal.h>
40347   #if HAVE_WCHAR_H
40348   # include <stdio.h>
40349   # include <time.h>
40350   # include <wchar.h>
40351   #endif
40352
40353               extern $gltype foo;
40354               extern $gltype1 foo;
40355 int
40356 main ()
40357 {
40358
40359   ;
40360   return 0;
40361 }
40362 _ACEOF
40363 rm -f conftest.$ac_objext
40364 if { (ac_try="$ac_compile"
40365 case "(($ac_try" in
40366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40367   *) ac_try_echo=$ac_try;;
40368 esac
40369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40370 $as_echo "$ac_try_echo") >&5
40371   (eval "$ac_compile") 2>conftest.er1
40372   ac_status=$?
40373   grep -v '^ *+' conftest.er1 >conftest.err
40374   rm -f conftest.er1
40375   cat conftest.err >&5
40376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40377   (exit $ac_status); } && {
40378          test -z "$ac_c_werror_flag" ||
40379          test ! -s conftest.err
40380        } && test -s conftest.$ac_objext; then
40381   eval gl_cv_type_${gltype}_suffix=\$glsuf
40382 else
40383   $as_echo "$as_me: failed program was:" >&5
40384 sed 's/^/| /' conftest.$ac_ext >&5
40385
40386
40387 fi
40388
40389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40390          eval result=\$gl_cv_type_${gltype}_suffix
40391          test "$result" != no && break
40392        done
40393 fi
40394 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
40395                  $as_echo "$as_val"'`
40396                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40397 $as_echo "$ac_res" >&6; }
40398     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40399     eval result=\$gl_cv_type_${gltype}_suffix
40400     test "$result" = no && result=
40401     eval ${GLTYPE}_SUFFIX=\$result
40402     cat >>confdefs.h <<_ACEOF
40403 #define ${GLTYPE}_SUFFIX $result
40404 _ACEOF
40405
40406   done
40407
40408
40409   fi
40410
40411
40412
40413
40414
40415   for gltype in sig_atomic_t wchar_t wint_t ; do
40416     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
40417 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
40418 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
40419   $as_echo_n "(cached) " >&6
40420 else
40421   eval gl_cv_type_${gltype}_suffix=no
40422        eval result=\$gl_cv_type_${gltype}_signed
40423        if test "$result" = yes; then
40424          glsufu=
40425        else
40426          glsufu=u
40427        fi
40428        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
40429          case $glsuf in
40430            '')  gltype1='int';;
40431            l)   gltype1='long int';;
40432            ll)  gltype1='long long int';;
40433            i64) gltype1='__int64';;
40434            u)   gltype1='unsigned int';;
40435            ul)  gltype1='unsigned long int';;
40436            ull) gltype1='unsigned long long int';;
40437            ui64)gltype1='unsigned __int64';;
40438          esac
40439          cat >conftest.$ac_ext <<_ACEOF
40440 /* confdefs.h.  */
40441 _ACEOF
40442 cat confdefs.h >>conftest.$ac_ext
40443 cat >>conftest.$ac_ext <<_ACEOF
40444 /* end confdefs.h.  */
40445
40446   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
40447      included before <wchar.h>.  */
40448   #include <stddef.h>
40449   #include <signal.h>
40450   #if HAVE_WCHAR_H
40451   # include <stdio.h>
40452   # include <time.h>
40453   # include <wchar.h>
40454   #endif
40455
40456               extern $gltype foo;
40457               extern $gltype1 foo;
40458 int
40459 main ()
40460 {
40461
40462   ;
40463   return 0;
40464 }
40465 _ACEOF
40466 rm -f conftest.$ac_objext
40467 if { (ac_try="$ac_compile"
40468 case "(($ac_try" in
40469   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40470   *) ac_try_echo=$ac_try;;
40471 esac
40472 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40473 $as_echo "$ac_try_echo") >&5
40474   (eval "$ac_compile") 2>conftest.er1
40475   ac_status=$?
40476   grep -v '^ *+' conftest.er1 >conftest.err
40477   rm -f conftest.er1
40478   cat conftest.err >&5
40479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40480   (exit $ac_status); } && {
40481          test -z "$ac_c_werror_flag" ||
40482          test ! -s conftest.err
40483        } && test -s conftest.$ac_objext; then
40484   eval gl_cv_type_${gltype}_suffix=\$glsuf
40485 else
40486   $as_echo "$as_me: failed program was:" >&5
40487 sed 's/^/| /' conftest.$ac_ext >&5
40488
40489
40490 fi
40491
40492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40493          eval result=\$gl_cv_type_${gltype}_suffix
40494          test "$result" != no && break
40495        done
40496 fi
40497 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
40498                  $as_echo "$as_val"'`
40499                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40500 $as_echo "$ac_res" >&6; }
40501     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
40502     eval result=\$gl_cv_type_${gltype}_suffix
40503     test "$result" = no && result=
40504     eval ${GLTYPE}_SUFFIX=\$result
40505     cat >>confdefs.h <<_ACEOF
40506 #define ${GLTYPE}_SUFFIX $result
40507 _ACEOF
40508
40509   done
40510
40511
40512
40513     STDINT_H=stdint.h
40514   fi
40515
40516
40517
40518
40519
40520
40521
40522
40523
40524
40525
40526
40527
40528
40529
40530
40531      if test $gl_cv_have_include_next = yes; then
40532        gl_cv_next_stdio_h='<'stdio.h'>'
40533      else
40534        { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
40535 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
40536 if test "${gl_cv_next_stdio_h+set}" = set; then
40537   $as_echo_n "(cached) " >&6
40538 else
40539
40540           if test $ac_cv_header_stdio_h = yes; then
40541             cat >conftest.$ac_ext <<_ACEOF
40542 /* confdefs.h.  */
40543 _ACEOF
40544 cat confdefs.h >>conftest.$ac_ext
40545 cat >>conftest.$ac_ext <<_ACEOF
40546 /* end confdefs.h.  */
40547 #include <stdio.h>
40548
40549 _ACEOF
40550                                                                                                 case "$host_os" in
40551               aix*) gl_absname_cpp="$ac_cpp -C" ;;
40552               *)    gl_absname_cpp="$ac_cpp" ;;
40553             esac
40554                                                 gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40555                sed -n '\#/stdio.h#{
40556                  s#.*"\(.*/stdio.h\)".*#\1#
40557                  s#^/[^/]#//&#
40558                  p
40559                  q
40560                }'`'"'
40561           else
40562             gl_cv_next_stdio_h='<'stdio.h'>'
40563           fi
40564
40565 fi
40566 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
40567 $as_echo "$gl_cv_next_stdio_h" >&6; }
40568      fi
40569      NEXT_STDIO_H=$gl_cv_next_stdio_h
40570
40571      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40572        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40573        gl_next_as_first_directive='<'stdio.h'>'
40574      else
40575        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40576        gl_next_as_first_directive=$gl_cv_next_stdio_h
40577      fi
40578      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
40579
40580
40581
40582       GNULIB_FPRINTF=1
40583   GNULIB_PRINTF=1
40584   GNULIB_VFPRINTF=1
40585   GNULIB_VPRINTF=1
40586   GNULIB_FPUTC=1
40587   GNULIB_PUTC=1
40588   GNULIB_PUTCHAR=1
40589   GNULIB_FPUTS=1
40590   GNULIB_PUTS=1
40591   GNULIB_FWRITE=1
40592
40593
40594
40595
40596
40597
40598
40599
40600
40601
40602
40603
40604
40605
40606   for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf vdprintf vsnprintf; do
40607     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
40608     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
40609 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
40610 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
40611   $as_echo_n "(cached) " >&6
40612 else
40613   cat >conftest.$ac_ext <<_ACEOF
40614 /* confdefs.h.  */
40615 _ACEOF
40616 cat confdefs.h >>conftest.$ac_ext
40617 cat >>conftest.$ac_ext <<_ACEOF
40618 /* end confdefs.h.  */
40619 #include <stdio.h>
40620
40621 int
40622 main ()
40623 {
40624 #undef $gl_func
40625   (void) $gl_func;
40626   ;
40627   return 0;
40628 }
40629 _ACEOF
40630 rm -f conftest.$ac_objext
40631 if { (ac_try="$ac_compile"
40632 case "(($ac_try" in
40633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40634   *) ac_try_echo=$ac_try;;
40635 esac
40636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40637 $as_echo "$ac_try_echo") >&5
40638   (eval "$ac_compile") 2>conftest.er1
40639   ac_status=$?
40640   grep -v '^ *+' conftest.er1 >conftest.err
40641   rm -f conftest.er1
40642   cat conftest.err >&5
40643   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40644   (exit $ac_status); } && {
40645          test -z "$ac_c_werror_flag" ||
40646          test ! -s conftest.err
40647        } && test -s conftest.$ac_objext; then
40648   eval "$as_gl_Symbol=yes"
40649 else
40650   $as_echo "$as_me: failed program was:" >&5
40651 sed 's/^/| /' conftest.$ac_ext >&5
40652
40653         eval "$as_gl_Symbol=no"
40654 fi
40655
40656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40657 fi
40658 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
40659                  $as_echo "$as_val"'`
40660                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40661 $as_echo "$ac_res" >&6; }
40662      as_val=`eval 'as_val=${'$as_gl_Symbol'}
40663                  $as_echo "$as_val"'`
40664    if test "x$as_val" = x""yes; then
40665   cat >>confdefs.h <<_ACEOF
40666 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
40667 _ACEOF
40668
40669                      eval ac_cv_have_decl_$gl_func=yes
40670 fi
40671
40672       done
40673
40674
40675
40676
40677
40678
40679
40680
40681
40682
40683
40684
40685
40686
40687
40688      if test $gl_cv_have_include_next = yes; then
40689        gl_cv_next_stdlib_h='<'stdlib.h'>'
40690      else
40691        { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
40692 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
40693 if test "${gl_cv_next_stdlib_h+set}" = set; then
40694   $as_echo_n "(cached) " >&6
40695 else
40696
40697           if test $ac_cv_header_stdlib_h = yes; then
40698             cat >conftest.$ac_ext <<_ACEOF
40699 /* confdefs.h.  */
40700 _ACEOF
40701 cat confdefs.h >>conftest.$ac_ext
40702 cat >>conftest.$ac_ext <<_ACEOF
40703 /* end confdefs.h.  */
40704 #include <stdlib.h>
40705
40706 _ACEOF
40707                                                                                                 case "$host_os" in
40708               aix*) gl_absname_cpp="$ac_cpp -C" ;;
40709               *)    gl_absname_cpp="$ac_cpp" ;;
40710             esac
40711                                                 gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
40712                sed -n '\#/stdlib.h#{
40713                  s#.*"\(.*/stdlib.h\)".*#\1#
40714                  s#^/[^/]#//&#
40715                  p
40716                  q
40717                }'`'"'
40718           else
40719             gl_cv_next_stdlib_h='<'stdlib.h'>'
40720           fi
40721
40722 fi
40723 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
40724 $as_echo "$gl_cv_next_stdlib_h" >&6; }
40725      fi
40726      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
40727
40728      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
40729        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
40730        gl_next_as_first_directive='<'stdlib.h'>'
40731      else
40732        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
40733        gl_next_as_first_directive=$gl_cv_next_stdlib_h
40734      fi
40735      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
40736
40737
40738
40739
40740 for ac_header in random.h
40741 do
40742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40743 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40744 $as_echo_n "checking for $ac_header... " >&6; }
40745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40746   $as_echo_n "(cached) " >&6
40747 else
40748   cat >conftest.$ac_ext <<_ACEOF
40749 /* confdefs.h.  */
40750 _ACEOF
40751 cat confdefs.h >>conftest.$ac_ext
40752 cat >>conftest.$ac_ext <<_ACEOF
40753 /* end confdefs.h.  */
40754 $ac_includes_default
40755
40756 #include <$ac_header>
40757 _ACEOF
40758 rm -f conftest.$ac_objext
40759 if { (ac_try="$ac_compile"
40760 case "(($ac_try" in
40761   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40762   *) ac_try_echo=$ac_try;;
40763 esac
40764 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40765 $as_echo "$ac_try_echo") >&5
40766   (eval "$ac_compile") 2>conftest.er1
40767   ac_status=$?
40768   grep -v '^ *+' conftest.er1 >conftest.err
40769   rm -f conftest.er1
40770   cat conftest.err >&5
40771   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40772   (exit $ac_status); } && {
40773          test -z "$ac_c_werror_flag" ||
40774          test ! -s conftest.err
40775        } && test -s conftest.$ac_objext; then
40776   eval "$as_ac_Header=yes"
40777 else
40778   $as_echo "$as_me: failed program was:" >&5
40779 sed 's/^/| /' conftest.$ac_ext >&5
40780
40781         eval "$as_ac_Header=no"
40782 fi
40783
40784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40785 fi
40786 ac_res=`eval 'as_val=${'$as_ac_Header'}
40787                  $as_echo "$as_val"'`
40788                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40789 $as_echo "$ac_res" >&6; }
40790 as_val=`eval 'as_val=${'$as_ac_Header'}
40791                  $as_echo "$as_val"'`
40792    if test "x$as_val" = x""yes; then
40793   cat >>confdefs.h <<_ACEOF
40794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40795 _ACEOF
40796
40797 fi
40798
40799 done
40800
40801   if test $ac_cv_header_random_h = yes; then
40802     HAVE_RANDOM_H=1
40803   else
40804     HAVE_RANDOM_H=0
40805   fi
40806
40807   { $as_echo "$as_me:$LINENO: checking for struct random_data" >&5
40808 $as_echo_n "checking for struct random_data... " >&6; }
40809 if test "${ac_cv_type_struct_random_data+set}" = set; then
40810   $as_echo_n "(cached) " >&6
40811 else
40812   ac_cv_type_struct_random_data=no
40813 cat >conftest.$ac_ext <<_ACEOF
40814 /* confdefs.h.  */
40815 _ACEOF
40816 cat confdefs.h >>conftest.$ac_ext
40817 cat >>conftest.$ac_ext <<_ACEOF
40818 /* end confdefs.h.  */
40819 #include <stdlib.h>
40820       #if HAVE_RANDOM_H
40821       # include <random.h>
40822       #endif
40823
40824
40825 int
40826 main ()
40827 {
40828 if (sizeof (struct random_data))
40829        return 0;
40830   ;
40831   return 0;
40832 }
40833 _ACEOF
40834 rm -f conftest.$ac_objext
40835 if { (ac_try="$ac_compile"
40836 case "(($ac_try" in
40837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40838   *) ac_try_echo=$ac_try;;
40839 esac
40840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40841 $as_echo "$ac_try_echo") >&5
40842   (eval "$ac_compile") 2>conftest.er1
40843   ac_status=$?
40844   grep -v '^ *+' conftest.er1 >conftest.err
40845   rm -f conftest.er1
40846   cat conftest.err >&5
40847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40848   (exit $ac_status); } && {
40849          test -z "$ac_c_werror_flag" ||
40850          test ! -s conftest.err
40851        } && test -s conftest.$ac_objext; then
40852   cat >conftest.$ac_ext <<_ACEOF
40853 /* confdefs.h.  */
40854 _ACEOF
40855 cat confdefs.h >>conftest.$ac_ext
40856 cat >>conftest.$ac_ext <<_ACEOF
40857 /* end confdefs.h.  */
40858 #include <stdlib.h>
40859       #if HAVE_RANDOM_H
40860       # include <random.h>
40861       #endif
40862
40863
40864 int
40865 main ()
40866 {
40867 if (sizeof ((struct random_data)))
40868           return 0;
40869   ;
40870   return 0;
40871 }
40872 _ACEOF
40873 rm -f conftest.$ac_objext
40874 if { (ac_try="$ac_compile"
40875 case "(($ac_try" in
40876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40877   *) ac_try_echo=$ac_try;;
40878 esac
40879 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40880 $as_echo "$ac_try_echo") >&5
40881   (eval "$ac_compile") 2>conftest.er1
40882   ac_status=$?
40883   grep -v '^ *+' conftest.er1 >conftest.err
40884   rm -f conftest.er1
40885   cat conftest.err >&5
40886   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40887   (exit $ac_status); } && {
40888          test -z "$ac_c_werror_flag" ||
40889          test ! -s conftest.err
40890        } && test -s conftest.$ac_objext; then
40891   :
40892 else
40893   $as_echo "$as_me: failed program was:" >&5
40894 sed 's/^/| /' conftest.$ac_ext >&5
40895
40896         ac_cv_type_struct_random_data=yes
40897 fi
40898
40899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40900 else
40901   $as_echo "$as_me: failed program was:" >&5
40902 sed 's/^/| /' conftest.$ac_ext >&5
40903
40904
40905 fi
40906
40907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40908 fi
40909 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_struct_random_data" >&5
40910 $as_echo "$ac_cv_type_struct_random_data" >&6; }
40911 if test "x$ac_cv_type_struct_random_data" = x""yes; then
40912
40913 cat >>confdefs.h <<_ACEOF
40914 #define HAVE_STRUCT_RANDOM_DATA 1
40915 _ACEOF
40916
40917
40918 else
40919   HAVE_STRUCT_RANDOM_DATA=0
40920 fi
40921
40922
40923
40924
40925
40926
40927
40928
40929
40930
40931
40932
40933
40934
40935
40936
40937
40938
40939
40940
40941
40942
40943
40944   for gl_func in atoll canonicalize_file_name getloadavg getsubopt mkdtemp     mkostemp mkostemps mkstemp mkstemps random_r initstat_r srandom_r     setstate_r realpath rpmatch setenv strtod strtoll strtoull unsetenv; do
40945     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
40946     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
40947 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
40948 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
40949   $as_echo_n "(cached) " >&6
40950 else
40951   cat >conftest.$ac_ext <<_ACEOF
40952 /* confdefs.h.  */
40953 _ACEOF
40954 cat confdefs.h >>conftest.$ac_ext
40955 cat >>conftest.$ac_ext <<_ACEOF
40956 /* end confdefs.h.  */
40957 #include <stdlib.h>
40958 #if HAVE_SYS_LOADAVG_H
40959 # include <sys/loadavg.h>
40960 #endif
40961 #if HAVE_RANDOM_H
40962 # include <random.h>
40963 #endif
40964
40965 int
40966 main ()
40967 {
40968 #undef $gl_func
40969   (void) $gl_func;
40970   ;
40971   return 0;
40972 }
40973 _ACEOF
40974 rm -f conftest.$ac_objext
40975 if { (ac_try="$ac_compile"
40976 case "(($ac_try" in
40977   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40978   *) ac_try_echo=$ac_try;;
40979 esac
40980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40981 $as_echo "$ac_try_echo") >&5
40982   (eval "$ac_compile") 2>conftest.er1
40983   ac_status=$?
40984   grep -v '^ *+' conftest.er1 >conftest.err
40985   rm -f conftest.er1
40986   cat conftest.err >&5
40987   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40988   (exit $ac_status); } && {
40989          test -z "$ac_c_werror_flag" ||
40990          test ! -s conftest.err
40991        } && test -s conftest.$ac_objext; then
40992   eval "$as_gl_Symbol=yes"
40993 else
40994   $as_echo "$as_me: failed program was:" >&5
40995 sed 's/^/| /' conftest.$ac_ext >&5
40996
40997         eval "$as_gl_Symbol=no"
40998 fi
40999
41000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41001 fi
41002 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
41003                  $as_echo "$as_val"'`
41004                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41005 $as_echo "$ac_res" >&6; }
41006      as_val=`eval 'as_val=${'$as_gl_Symbol'}
41007                  $as_echo "$as_val"'`
41008    if test "x$as_val" = x""yes; then
41009   cat >>confdefs.h <<_ACEOF
41010 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
41011 _ACEOF
41012
41013                      eval ac_cv_have_decl_$gl_func=yes
41014 fi
41015
41016       done
41017
41018
41019
41020
41021
41022
41023
41024
41025
41026
41027
41028
41029
41030
41031
41032
41033
41034 for ac_func in stpcpy
41035 do
41036 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41037 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41038 $as_echo_n "checking for $ac_func... " >&6; }
41039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41040   $as_echo_n "(cached) " >&6
41041 else
41042   cat >conftest.$ac_ext <<_ACEOF
41043 /* confdefs.h.  */
41044 _ACEOF
41045 cat confdefs.h >>conftest.$ac_ext
41046 cat >>conftest.$ac_ext <<_ACEOF
41047 /* end confdefs.h.  */
41048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41049    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41050 #define $ac_func innocuous_$ac_func
41051
41052 /* System header to define __stub macros and hopefully few prototypes,
41053     which can conflict with char $ac_func (); below.
41054     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41055     <limits.h> exists even on freestanding compilers.  */
41056
41057 #ifdef __STDC__
41058 # include <limits.h>
41059 #else
41060 # include <assert.h>
41061 #endif
41062
41063 #undef $ac_func
41064
41065 /* Override any GCC internal prototype to avoid an error.
41066    Use char because int might match the return type of a GCC
41067    builtin and then its argument prototype would still apply.  */
41068 #ifdef __cplusplus
41069 extern "C"
41070 #endif
41071 char $ac_func ();
41072 /* The GNU C library defines this for functions which it implements
41073     to always fail with ENOSYS.  Some functions are actually named
41074     something starting with __ and the normal name is an alias.  */
41075 #if defined __stub_$ac_func || defined __stub___$ac_func
41076 choke me
41077 #endif
41078
41079 int
41080 main ()
41081 {
41082 return $ac_func ();
41083   ;
41084   return 0;
41085 }
41086 _ACEOF
41087 rm -f conftest.$ac_objext conftest$ac_exeext
41088 if { (ac_try="$ac_link"
41089 case "(($ac_try" in
41090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41091   *) ac_try_echo=$ac_try;;
41092 esac
41093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41094 $as_echo "$ac_try_echo") >&5
41095   (eval "$ac_link") 2>conftest.er1
41096   ac_status=$?
41097   grep -v '^ *+' conftest.er1 >conftest.err
41098   rm -f conftest.er1
41099   cat conftest.err >&5
41100   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41101   (exit $ac_status); } && {
41102          test -z "$ac_c_werror_flag" ||
41103          test ! -s conftest.err
41104        } && test -s conftest$ac_exeext && {
41105          test "$cross_compiling" = yes ||
41106          $as_test_x conftest$ac_exeext
41107        }; then
41108   eval "$as_ac_var=yes"
41109 else
41110   $as_echo "$as_me: failed program was:" >&5
41111 sed 's/^/| /' conftest.$ac_ext >&5
41112
41113         eval "$as_ac_var=no"
41114 fi
41115
41116 rm -rf conftest.dSYM
41117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41118       conftest$ac_exeext conftest.$ac_ext
41119 fi
41120 ac_res=`eval 'as_val=${'$as_ac_var'}
41121                  $as_echo "$as_val"'`
41122                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41123 $as_echo "$ac_res" >&6; }
41124 as_val=`eval 'as_val=${'$as_ac_var'}
41125                  $as_echo "$as_val"'`
41126    if test "x$as_val" = x""yes; then
41127   cat >>confdefs.h <<_ACEOF
41128 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41129 _ACEOF
41130
41131 else
41132
41133     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41134
41135 fi
41136 done
41137
41138
41139   if test $ac_cv_func_stpcpy = no; then
41140     HAVE_STPCPY=0
41141
41142   :
41143
41144   fi
41145
41146
41147
41148   GNULIB_STPCPY=1
41149
41150
41151 cat >>confdefs.h <<\_ACEOF
41152 #define GNULIB_STPCPY 1
41153 _ACEOF
41154
41155
41156
41157
41158
41159
41160
41161
41162
41163
41164
41165
41166
41167
41168
41169 for ac_func in strcasecmp
41170 do
41171 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41172 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41173 $as_echo_n "checking for $ac_func... " >&6; }
41174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41175   $as_echo_n "(cached) " >&6
41176 else
41177   cat >conftest.$ac_ext <<_ACEOF
41178 /* confdefs.h.  */
41179 _ACEOF
41180 cat confdefs.h >>conftest.$ac_ext
41181 cat >>conftest.$ac_ext <<_ACEOF
41182 /* end confdefs.h.  */
41183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41184    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41185 #define $ac_func innocuous_$ac_func
41186
41187 /* System header to define __stub macros and hopefully few prototypes,
41188     which can conflict with char $ac_func (); below.
41189     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41190     <limits.h> exists even on freestanding compilers.  */
41191
41192 #ifdef __STDC__
41193 # include <limits.h>
41194 #else
41195 # include <assert.h>
41196 #endif
41197
41198 #undef $ac_func
41199
41200 /* Override any GCC internal prototype to avoid an error.
41201    Use char because int might match the return type of a GCC
41202    builtin and then its argument prototype would still apply.  */
41203 #ifdef __cplusplus
41204 extern "C"
41205 #endif
41206 char $ac_func ();
41207 /* The GNU C library defines this for functions which it implements
41208     to always fail with ENOSYS.  Some functions are actually named
41209     something starting with __ and the normal name is an alias.  */
41210 #if defined __stub_$ac_func || defined __stub___$ac_func
41211 choke me
41212 #endif
41213
41214 int
41215 main ()
41216 {
41217 return $ac_func ();
41218   ;
41219   return 0;
41220 }
41221 _ACEOF
41222 rm -f conftest.$ac_objext conftest$ac_exeext
41223 if { (ac_try="$ac_link"
41224 case "(($ac_try" in
41225   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41226   *) ac_try_echo=$ac_try;;
41227 esac
41228 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41229 $as_echo "$ac_try_echo") >&5
41230   (eval "$ac_link") 2>conftest.er1
41231   ac_status=$?
41232   grep -v '^ *+' conftest.er1 >conftest.err
41233   rm -f conftest.er1
41234   cat conftest.err >&5
41235   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41236   (exit $ac_status); } && {
41237          test -z "$ac_c_werror_flag" ||
41238          test ! -s conftest.err
41239        } && test -s conftest$ac_exeext && {
41240          test "$cross_compiling" = yes ||
41241          $as_test_x conftest$ac_exeext
41242        }; then
41243   eval "$as_ac_var=yes"
41244 else
41245   $as_echo "$as_me: failed program was:" >&5
41246 sed 's/^/| /' conftest.$ac_ext >&5
41247
41248         eval "$as_ac_var=no"
41249 fi
41250
41251 rm -rf conftest.dSYM
41252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41253       conftest$ac_exeext conftest.$ac_ext
41254 fi
41255 ac_res=`eval 'as_val=${'$as_ac_var'}
41256                  $as_echo "$as_val"'`
41257                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41258 $as_echo "$ac_res" >&6; }
41259 as_val=`eval 'as_val=${'$as_ac_var'}
41260                  $as_echo "$as_val"'`
41261    if test "x$as_val" = x""yes; then
41262   cat >>confdefs.h <<_ACEOF
41263 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41264 _ACEOF
41265
41266 else
41267
41268     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41269
41270 fi
41271 done
41272
41273
41274   if test $ac_cv_func_strcasecmp = no; then
41275     HAVE_STRCASECMP=0
41276
41277   :
41278
41279   fi
41280
41281
41282
41283
41284
41285
41286
41287
41288
41289
41290
41291
41292 for ac_func in strncasecmp
41293 do
41294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41295 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41296 $as_echo_n "checking for $ac_func... " >&6; }
41297 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41298   $as_echo_n "(cached) " >&6
41299 else
41300   cat >conftest.$ac_ext <<_ACEOF
41301 /* confdefs.h.  */
41302 _ACEOF
41303 cat confdefs.h >>conftest.$ac_ext
41304 cat >>conftest.$ac_ext <<_ACEOF
41305 /* end confdefs.h.  */
41306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41307    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41308 #define $ac_func innocuous_$ac_func
41309
41310 /* System header to define __stub macros and hopefully few prototypes,
41311     which can conflict with char $ac_func (); below.
41312     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41313     <limits.h> exists even on freestanding compilers.  */
41314
41315 #ifdef __STDC__
41316 # include <limits.h>
41317 #else
41318 # include <assert.h>
41319 #endif
41320
41321 #undef $ac_func
41322
41323 /* Override any GCC internal prototype to avoid an error.
41324    Use char because int might match the return type of a GCC
41325    builtin and then its argument prototype would still apply.  */
41326 #ifdef __cplusplus
41327 extern "C"
41328 #endif
41329 char $ac_func ();
41330 /* The GNU C library defines this for functions which it implements
41331     to always fail with ENOSYS.  Some functions are actually named
41332     something starting with __ and the normal name is an alias.  */
41333 #if defined __stub_$ac_func || defined __stub___$ac_func
41334 choke me
41335 #endif
41336
41337 int
41338 main ()
41339 {
41340 return $ac_func ();
41341   ;
41342   return 0;
41343 }
41344 _ACEOF
41345 rm -f conftest.$ac_objext conftest$ac_exeext
41346 if { (ac_try="$ac_link"
41347 case "(($ac_try" in
41348   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41349   *) ac_try_echo=$ac_try;;
41350 esac
41351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41352 $as_echo "$ac_try_echo") >&5
41353   (eval "$ac_link") 2>conftest.er1
41354   ac_status=$?
41355   grep -v '^ *+' conftest.er1 >conftest.err
41356   rm -f conftest.er1
41357   cat conftest.err >&5
41358   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41359   (exit $ac_status); } && {
41360          test -z "$ac_c_werror_flag" ||
41361          test ! -s conftest.err
41362        } && test -s conftest$ac_exeext && {
41363          test "$cross_compiling" = yes ||
41364          $as_test_x conftest$ac_exeext
41365        }; then
41366   eval "$as_ac_var=yes"
41367 else
41368   $as_echo "$as_me: failed program was:" >&5
41369 sed 's/^/| /' conftest.$ac_ext >&5
41370
41371         eval "$as_ac_var=no"
41372 fi
41373
41374 rm -rf conftest.dSYM
41375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41376       conftest$ac_exeext conftest.$ac_ext
41377 fi
41378 ac_res=`eval 'as_val=${'$as_ac_var'}
41379                  $as_echo "$as_val"'`
41380                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41381 $as_echo "$ac_res" >&6; }
41382 as_val=`eval 'as_val=${'$as_ac_var'}
41383                  $as_echo "$as_val"'`
41384    if test "x$as_val" = x""yes; then
41385   cat >>confdefs.h <<_ACEOF
41386 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41387 _ACEOF
41388
41389 else
41390
41391     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41392
41393 fi
41394 done
41395
41396
41397   if test $ac_cv_func_strncasecmp = no; then
41398
41399   :
41400
41401   fi
41402   { $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
41403 $as_echo_n "checking whether strncasecmp is declared... " >&6; }
41404 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
41405   $as_echo_n "(cached) " >&6
41406 else
41407   cat >conftest.$ac_ext <<_ACEOF
41408 /* confdefs.h.  */
41409 _ACEOF
41410 cat confdefs.h >>conftest.$ac_ext
41411 cat >>conftest.$ac_ext <<_ACEOF
41412 /* end confdefs.h.  */
41413 $ac_includes_default
41414 int
41415 main ()
41416 {
41417 #ifndef strncasecmp
41418   (void) strncasecmp;
41419 #endif
41420
41421   ;
41422   return 0;
41423 }
41424 _ACEOF
41425 rm -f conftest.$ac_objext
41426 if { (ac_try="$ac_compile"
41427 case "(($ac_try" in
41428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41429   *) ac_try_echo=$ac_try;;
41430 esac
41431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41432 $as_echo "$ac_try_echo") >&5
41433   (eval "$ac_compile") 2>conftest.er1
41434   ac_status=$?
41435   grep -v '^ *+' conftest.er1 >conftest.err
41436   rm -f conftest.er1
41437   cat conftest.err >&5
41438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41439   (exit $ac_status); } && {
41440          test -z "$ac_c_werror_flag" ||
41441          test ! -s conftest.err
41442        } && test -s conftest.$ac_objext; then
41443   ac_cv_have_decl_strncasecmp=yes
41444 else
41445   $as_echo "$as_me: failed program was:" >&5
41446 sed 's/^/| /' conftest.$ac_ext >&5
41447
41448         ac_cv_have_decl_strncasecmp=no
41449 fi
41450
41451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41452 fi
41453 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
41454 $as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
41455 if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
41456
41457 cat >>confdefs.h <<_ACEOF
41458 #define HAVE_DECL_STRNCASECMP 1
41459 _ACEOF
41460
41461
41462 else
41463   cat >>confdefs.h <<_ACEOF
41464 #define HAVE_DECL_STRNCASECMP 0
41465 _ACEOF
41466
41467
41468 fi
41469
41470
41471   if test $ac_cv_have_decl_strncasecmp = no; then
41472     HAVE_DECL_STRNCASECMP=0
41473   fi
41474
41475
41476
41477
41478
41479
41480
41481
41482
41483
41484
41485
41486
41487
41488
41489 for ac_func in strchrnul
41490 do
41491 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41492 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41493 $as_echo_n "checking for $ac_func... " >&6; }
41494 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41495   $as_echo_n "(cached) " >&6
41496 else
41497   cat >conftest.$ac_ext <<_ACEOF
41498 /* confdefs.h.  */
41499 _ACEOF
41500 cat confdefs.h >>conftest.$ac_ext
41501 cat >>conftest.$ac_ext <<_ACEOF
41502 /* end confdefs.h.  */
41503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41504    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41505 #define $ac_func innocuous_$ac_func
41506
41507 /* System header to define __stub macros and hopefully few prototypes,
41508     which can conflict with char $ac_func (); below.
41509     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41510     <limits.h> exists even on freestanding compilers.  */
41511
41512 #ifdef __STDC__
41513 # include <limits.h>
41514 #else
41515 # include <assert.h>
41516 #endif
41517
41518 #undef $ac_func
41519
41520 /* Override any GCC internal prototype to avoid an error.
41521    Use char because int might match the return type of a GCC
41522    builtin and then its argument prototype would still apply.  */
41523 #ifdef __cplusplus
41524 extern "C"
41525 #endif
41526 char $ac_func ();
41527 /* The GNU C library defines this for functions which it implements
41528     to always fail with ENOSYS.  Some functions are actually named
41529     something starting with __ and the normal name is an alias.  */
41530 #if defined __stub_$ac_func || defined __stub___$ac_func
41531 choke me
41532 #endif
41533
41534 int
41535 main ()
41536 {
41537 return $ac_func ();
41538   ;
41539   return 0;
41540 }
41541 _ACEOF
41542 rm -f conftest.$ac_objext conftest$ac_exeext
41543 if { (ac_try="$ac_link"
41544 case "(($ac_try" in
41545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41546   *) ac_try_echo=$ac_try;;
41547 esac
41548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41549 $as_echo "$ac_try_echo") >&5
41550   (eval "$ac_link") 2>conftest.er1
41551   ac_status=$?
41552   grep -v '^ *+' conftest.er1 >conftest.err
41553   rm -f conftest.er1
41554   cat conftest.err >&5
41555   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41556   (exit $ac_status); } && {
41557          test -z "$ac_c_werror_flag" ||
41558          test ! -s conftest.err
41559        } && test -s conftest$ac_exeext && {
41560          test "$cross_compiling" = yes ||
41561          $as_test_x conftest$ac_exeext
41562        }; then
41563   eval "$as_ac_var=yes"
41564 else
41565   $as_echo "$as_me: failed program was:" >&5
41566 sed 's/^/| /' conftest.$ac_ext >&5
41567
41568         eval "$as_ac_var=no"
41569 fi
41570
41571 rm -rf conftest.dSYM
41572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41573       conftest$ac_exeext conftest.$ac_ext
41574 fi
41575 ac_res=`eval 'as_val=${'$as_ac_var'}
41576                  $as_echo "$as_val"'`
41577                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41578 $as_echo "$ac_res" >&6; }
41579 as_val=`eval 'as_val=${'$as_ac_var'}
41580                  $as_echo "$as_val"'`
41581    if test "x$as_val" = x""yes; then
41582   cat >>confdefs.h <<_ACEOF
41583 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41584 _ACEOF
41585
41586 else
41587
41588     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41589
41590 fi
41591 done
41592
41593
41594   if test $ac_cv_func_strchrnul = no; then
41595     HAVE_STRCHRNUL=0
41596     :
41597   fi
41598
41599
41600
41601   GNULIB_STRCHRNUL=1
41602
41603
41604 cat >>confdefs.h <<\_ACEOF
41605 #define GNULIB_STRCHRNUL 1
41606 _ACEOF
41607
41608
41609
41610
41611
41612
41613   if test $gl_cv_func_malloc_posix != yes; then
41614     REPLACE_STRDUP=1
41615
41616
41617
41618
41619
41620
41621
41622
41623   gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
41624
41625   else
41626
41627
41628
41629
41630
41631
41632
41633
41634
41635 for ac_func in strdup
41636 do
41637 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41638 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41639 $as_echo_n "checking for $ac_func... " >&6; }
41640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41641   $as_echo_n "(cached) " >&6
41642 else
41643   cat >conftest.$ac_ext <<_ACEOF
41644 /* confdefs.h.  */
41645 _ACEOF
41646 cat confdefs.h >>conftest.$ac_ext
41647 cat >>conftest.$ac_ext <<_ACEOF
41648 /* end confdefs.h.  */
41649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41650    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41651 #define $ac_func innocuous_$ac_func
41652
41653 /* System header to define __stub macros and hopefully few prototypes,
41654     which can conflict with char $ac_func (); below.
41655     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41656     <limits.h> exists even on freestanding compilers.  */
41657
41658 #ifdef __STDC__
41659 # include <limits.h>
41660 #else
41661 # include <assert.h>
41662 #endif
41663
41664 #undef $ac_func
41665
41666 /* Override any GCC internal prototype to avoid an error.
41667    Use char because int might match the return type of a GCC
41668    builtin and then its argument prototype would still apply.  */
41669 #ifdef __cplusplus
41670 extern "C"
41671 #endif
41672 char $ac_func ();
41673 /* The GNU C library defines this for functions which it implements
41674     to always fail with ENOSYS.  Some functions are actually named
41675     something starting with __ and the normal name is an alias.  */
41676 #if defined __stub_$ac_func || defined __stub___$ac_func
41677 choke me
41678 #endif
41679
41680 int
41681 main ()
41682 {
41683 return $ac_func ();
41684   ;
41685   return 0;
41686 }
41687 _ACEOF
41688 rm -f conftest.$ac_objext conftest$ac_exeext
41689 if { (ac_try="$ac_link"
41690 case "(($ac_try" in
41691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41692   *) ac_try_echo=$ac_try;;
41693 esac
41694 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41695 $as_echo "$ac_try_echo") >&5
41696   (eval "$ac_link") 2>conftest.er1
41697   ac_status=$?
41698   grep -v '^ *+' conftest.er1 >conftest.err
41699   rm -f conftest.er1
41700   cat conftest.err >&5
41701   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41702   (exit $ac_status); } && {
41703          test -z "$ac_c_werror_flag" ||
41704          test ! -s conftest.err
41705        } && test -s conftest$ac_exeext && {
41706          test "$cross_compiling" = yes ||
41707          $as_test_x conftest$ac_exeext
41708        }; then
41709   eval "$as_ac_var=yes"
41710 else
41711   $as_echo "$as_me: failed program was:" >&5
41712 sed 's/^/| /' conftest.$ac_ext >&5
41713
41714         eval "$as_ac_var=no"
41715 fi
41716
41717 rm -rf conftest.dSYM
41718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41719       conftest$ac_exeext conftest.$ac_ext
41720 fi
41721 ac_res=`eval 'as_val=${'$as_ac_var'}
41722                  $as_echo "$as_val"'`
41723                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41724 $as_echo "$ac_res" >&6; }
41725 as_val=`eval 'as_val=${'$as_ac_var'}
41726                  $as_echo "$as_val"'`
41727    if test "x$as_val" = x""yes; then
41728   cat >>confdefs.h <<_ACEOF
41729 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41730 _ACEOF
41731
41732 else
41733
41734     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
41735
41736 fi
41737 done
41738
41739
41740   fi
41741
41742
41743
41744
41745   if test $ac_cv_have_decl_strdup = no; then
41746     HAVE_DECL_STRDUP=0
41747   fi
41748   :
41749
41750
41751
41752   GNULIB_STRDUP=1
41753
41754
41755 cat >>confdefs.h <<\_ACEOF
41756 #define GNULIB_STRDUP 1
41757 _ACEOF
41758
41759
41760
41761
41762
41763   if test $REPLACE_STRERROR = 1; then
41764
41765
41766
41767
41768
41769
41770
41771
41772   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
41773
41774
41775 cat >>confdefs.h <<_ACEOF
41776 #define REPLACE_STRERROR $REPLACE_STRERROR
41777 _ACEOF
41778
41779   fi
41780
41781
41782
41783   GNULIB_STRERROR=1
41784
41785
41786 cat >>confdefs.h <<\_ACEOF
41787 #define GNULIB_STRERROR 1
41788 _ACEOF
41789
41790
41791
41792
41793
41794
41795
41796
41797
41798
41799
41800
41801
41802
41803
41804
41805
41806
41807
41808
41809
41810
41811
41812   if test $ac_cv_have_decl_strndup = no; then
41813     HAVE_DECL_STRNDUP=0
41814   fi
41815
41816   if test $ac_cv_func_strndup = yes; then
41817     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
41818     { $as_echo "$as_me:$LINENO: checking for working strndup" >&5
41819 $as_echo_n "checking for working strndup... " >&6; }
41820 if test "${gl_cv_func_strndup_works+set}" = set; then
41821   $as_echo_n "(cached) " >&6
41822 else
41823   if test "$cross_compiling" = yes; then
41824   case $host_os in
41825             aix*) gl_cv_func_strndup_works="guessing no";;
41826             *) gl_cv_func_strndup_works="guessing yes";;
41827           esac
41828 else
41829   cat >conftest.$ac_ext <<_ACEOF
41830
41831          /* confdefs.h.  */
41832 _ACEOF
41833 cat confdefs.h >>conftest.$ac_ext
41834 cat >>conftest.$ac_ext <<_ACEOF
41835 /* end confdefs.h.  */
41836 #include <string.h>
41837                            #include <stdlib.h>
41838 int
41839 main ()
41840 {
41841
41842 #ifndef HAVE_DECL_STRNDUP
41843   extern char *strndup (const char *, size_t);
41844 #endif
41845   char *s;
41846   s = strndup ("some longer string", 15);
41847   free (s);
41848   s = strndup ("shorter string", 13);
41849   return s[13] != '\0';
41850   ;
41851   return 0;
41852 }
41853 _ACEOF
41854 rm -f conftest$ac_exeext
41855 if { (ac_try="$ac_link"
41856 case "(($ac_try" in
41857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41858   *) ac_try_echo=$ac_try;;
41859 esac
41860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41861 $as_echo "$ac_try_echo") >&5
41862   (eval "$ac_link") 2>&5
41863   ac_status=$?
41864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41866   { (case "(($ac_try" in
41867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41868   *) ac_try_echo=$ac_try;;
41869 esac
41870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41871 $as_echo "$ac_try_echo") >&5
41872   (eval "$ac_try") 2>&5
41873   ac_status=$?
41874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41875   (exit $ac_status); }; }; then
41876   gl_cv_func_strndup_works=yes
41877 else
41878   $as_echo "$as_me: program exited with status $ac_status" >&5
41879 $as_echo "$as_me: failed program was:" >&5
41880 sed 's/^/| /' conftest.$ac_ext >&5
41881
41882 ( exit $ac_status )
41883 gl_cv_func_strndup_works=no
41884 fi
41885 rm -rf conftest.dSYM
41886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41887 fi
41888
41889
41890 fi
41891 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup_works" >&5
41892 $as_echo "$gl_cv_func_strndup_works" >&6; }
41893     case $gl_cv_func_strndup_works in
41894       *no)
41895         REPLACE_STRNDUP=1
41896
41897
41898
41899
41900
41901
41902
41903
41904   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
41905
41906         ;;
41907     esac
41908   else
41909
41910
41911
41912
41913
41914
41915
41916
41917   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
41918
41919   fi
41920
41921
41922
41923   GNULIB_STRNDUP=1
41924
41925
41926 cat >>confdefs.h <<\_ACEOF
41927 #define GNULIB_STRNDUP 1
41928 _ACEOF
41929
41930
41931
41932
41933
41934
41935
41936
41937
41938
41939
41940   if test $ac_cv_have_decl_strnlen = no; then
41941     HAVE_DECL_STRNLEN=0
41942   fi
41943
41944   { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
41945 $as_echo_n "checking for working strnlen... " >&6; }
41946 if test "${ac_cv_func_strnlen_working+set}" = set; then
41947   $as_echo_n "(cached) " >&6
41948 else
41949   if test "$cross_compiling" = yes; then
41950   ac_cv_func_strnlen_working=no
41951 else
41952   cat >conftest.$ac_ext <<_ACEOF
41953 /* confdefs.h.  */
41954 _ACEOF
41955 cat confdefs.h >>conftest.$ac_ext
41956 cat >>conftest.$ac_ext <<_ACEOF
41957 /* end confdefs.h.  */
41958 $ac_includes_default
41959 int
41960 main ()
41961 {
41962
41963 #define S "foobar"
41964 #define S_LEN (sizeof S - 1)
41965
41966   /* At least one implementation is buggy: that of AIX 4.3 would
41967      give strnlen (S, 1) == 3.  */
41968
41969   int i;
41970   for (i = 0; i < S_LEN + 1; ++i)
41971     {
41972       int expected = i <= S_LEN ? i : S_LEN;
41973       if (strnlen (S, i) != expected)
41974         return 1;
41975     }
41976   return 0;
41977
41978   ;
41979   return 0;
41980 }
41981 _ACEOF
41982 rm -f conftest$ac_exeext
41983 if { (ac_try="$ac_link"
41984 case "(($ac_try" in
41985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41986   *) ac_try_echo=$ac_try;;
41987 esac
41988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41989 $as_echo "$ac_try_echo") >&5
41990   (eval "$ac_link") 2>&5
41991   ac_status=$?
41992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41993   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41994   { (case "(($ac_try" in
41995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41996   *) ac_try_echo=$ac_try;;
41997 esac
41998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41999 $as_echo "$ac_try_echo") >&5
42000   (eval "$ac_try") 2>&5
42001   ac_status=$?
42002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42003   (exit $ac_status); }; }; then
42004   ac_cv_func_strnlen_working=yes
42005 else
42006   $as_echo "$as_me: program exited with status $ac_status" >&5
42007 $as_echo "$as_me: failed program was:" >&5
42008 sed 's/^/| /' conftest.$ac_ext >&5
42009
42010 ( exit $ac_status )
42011 ac_cv_func_strnlen_working=no
42012 fi
42013 rm -rf conftest.dSYM
42014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42015 fi
42016
42017
42018 fi
42019 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
42020 $as_echo "$ac_cv_func_strnlen_working" >&6; }
42021 test $ac_cv_func_strnlen_working = no &&
42022
42023
42024
42025
42026
42027
42028
42029   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
42030
42031
42032   if test $ac_cv_func_strnlen_working = no; then
42033     # This is necessary because automake-1.6.1 doesn't understand
42034     # that the above use of AC_FUNC_STRNLEN means we may have to use
42035     # lib/strnlen.c.
42036     #AC_LIBOBJ([strnlen])
42037
42038 cat >>confdefs.h <<\_ACEOF
42039 #define strnlen rpl_strnlen
42040 _ACEOF
42041
42042     :
42043   fi
42044
42045
42046
42047   GNULIB_STRNLEN=1
42048
42049
42050 cat >>confdefs.h <<\_ACEOF
42051 #define GNULIB_STRNLEN 1
42052 _ACEOF
42053
42054
42055
42056
42057
42058
42059
42060   { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
42061 $as_echo_n "checking whether <inttypes.h> defines strtoimax as a macro... " >&6; }
42062 if test "${gl_cv_func_strtoimax_macro+set}" = set; then
42063   $as_echo_n "(cached) " >&6
42064 else
42065   cat >conftest.$ac_ext <<_ACEOF
42066 /* confdefs.h.  */
42067 _ACEOF
42068 cat confdefs.h >>conftest.$ac_ext
42069 cat >>conftest.$ac_ext <<_ACEOF
42070 /* end confdefs.h.  */
42071 #include <inttypes.h>
42072 #ifdef strtoimax
42073  inttypes_h_defines_strtoimax
42074 #endif
42075 _ACEOF
42076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42077   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
42078   gl_cv_func_strtoimax_macro=yes
42079 else
42080   gl_cv_func_strtoimax_macro=no
42081 fi
42082 rm -f conftest*
42083
42084 fi
42085 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strtoimax_macro" >&5
42086 $as_echo "$gl_cv_func_strtoimax_macro" >&6; }
42087
42088   if test "$gl_cv_func_strtoimax_macro" != yes; then
42089
42090
42091
42092
42093
42094
42095
42096
42097
42098 for ac_func in strtoimax
42099 do
42100 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42101 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42102 $as_echo_n "checking for $ac_func... " >&6; }
42103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42104   $as_echo_n "(cached) " >&6
42105 else
42106   cat >conftest.$ac_ext <<_ACEOF
42107 /* confdefs.h.  */
42108 _ACEOF
42109 cat confdefs.h >>conftest.$ac_ext
42110 cat >>conftest.$ac_ext <<_ACEOF
42111 /* end confdefs.h.  */
42112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42113    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42114 #define $ac_func innocuous_$ac_func
42115
42116 /* System header to define __stub macros and hopefully few prototypes,
42117     which can conflict with char $ac_func (); below.
42118     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42119     <limits.h> exists even on freestanding compilers.  */
42120
42121 #ifdef __STDC__
42122 # include <limits.h>
42123 #else
42124 # include <assert.h>
42125 #endif
42126
42127 #undef $ac_func
42128
42129 /* Override any GCC internal prototype to avoid an error.
42130    Use char because int might match the return type of a GCC
42131    builtin and then its argument prototype would still apply.  */
42132 #ifdef __cplusplus
42133 extern "C"
42134 #endif
42135 char $ac_func ();
42136 /* The GNU C library defines this for functions which it implements
42137     to always fail with ENOSYS.  Some functions are actually named
42138     something starting with __ and the normal name is an alias.  */
42139 #if defined __stub_$ac_func || defined __stub___$ac_func
42140 choke me
42141 #endif
42142
42143 int
42144 main ()
42145 {
42146 return $ac_func ();
42147   ;
42148   return 0;
42149 }
42150 _ACEOF
42151 rm -f conftest.$ac_objext conftest$ac_exeext
42152 if { (ac_try="$ac_link"
42153 case "(($ac_try" in
42154   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42155   *) ac_try_echo=$ac_try;;
42156 esac
42157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42158 $as_echo "$ac_try_echo") >&5
42159   (eval "$ac_link") 2>conftest.er1
42160   ac_status=$?
42161   grep -v '^ *+' conftest.er1 >conftest.err
42162   rm -f conftest.er1
42163   cat conftest.err >&5
42164   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42165   (exit $ac_status); } && {
42166          test -z "$ac_c_werror_flag" ||
42167          test ! -s conftest.err
42168        } && test -s conftest$ac_exeext && {
42169          test "$cross_compiling" = yes ||
42170          $as_test_x conftest$ac_exeext
42171        }; then
42172   eval "$as_ac_var=yes"
42173 else
42174   $as_echo "$as_me: failed program was:" >&5
42175 sed 's/^/| /' conftest.$ac_ext >&5
42176
42177         eval "$as_ac_var=no"
42178 fi
42179
42180 rm -rf conftest.dSYM
42181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42182       conftest$ac_exeext conftest.$ac_ext
42183 fi
42184 ac_res=`eval 'as_val=${'$as_ac_var'}
42185                  $as_echo "$as_val"'`
42186                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42187 $as_echo "$ac_res" >&6; }
42188 as_val=`eval 'as_val=${'$as_ac_var'}
42189                  $as_echo "$as_val"'`
42190    if test "x$as_val" = x""yes; then
42191   cat >>confdefs.h <<_ACEOF
42192 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42193 _ACEOF
42194
42195 else
42196
42197     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42198
42199 fi
42200 done
42201
42202
42203     if test $ac_cv_func_strtoimax = no; then
42204
42205   { $as_echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
42206 $as_echo_n "checking whether strtoll is declared... " >&6; }
42207 if test "${ac_cv_have_decl_strtoll+set}" = set; then
42208   $as_echo_n "(cached) " >&6
42209 else
42210   cat >conftest.$ac_ext <<_ACEOF
42211 /* confdefs.h.  */
42212 _ACEOF
42213 cat confdefs.h >>conftest.$ac_ext
42214 cat >>conftest.$ac_ext <<_ACEOF
42215 /* end confdefs.h.  */
42216 $ac_includes_default
42217 int
42218 main ()
42219 {
42220 #ifndef strtoll
42221   (void) strtoll;
42222 #endif
42223
42224   ;
42225   return 0;
42226 }
42227 _ACEOF
42228 rm -f conftest.$ac_objext
42229 if { (ac_try="$ac_compile"
42230 case "(($ac_try" in
42231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42232   *) ac_try_echo=$ac_try;;
42233 esac
42234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42235 $as_echo "$ac_try_echo") >&5
42236   (eval "$ac_compile") 2>conftest.er1
42237   ac_status=$?
42238   grep -v '^ *+' conftest.er1 >conftest.err
42239   rm -f conftest.er1
42240   cat conftest.err >&5
42241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42242   (exit $ac_status); } && {
42243          test -z "$ac_c_werror_flag" ||
42244          test ! -s conftest.err
42245        } && test -s conftest.$ac_objext; then
42246   ac_cv_have_decl_strtoll=yes
42247 else
42248   $as_echo "$as_me: failed program was:" >&5
42249 sed 's/^/| /' conftest.$ac_ext >&5
42250
42251         ac_cv_have_decl_strtoll=no
42252 fi
42253
42254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42255 fi
42256 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
42257 $as_echo "$ac_cv_have_decl_strtoll" >&6; }
42258 if test "x$ac_cv_have_decl_strtoll" = x""yes; then
42259
42260 cat >>confdefs.h <<_ACEOF
42261 #define HAVE_DECL_STRTOLL 1
42262 _ACEOF
42263
42264
42265 else
42266   cat >>confdefs.h <<_ACEOF
42267 #define HAVE_DECL_STRTOLL 0
42268 _ACEOF
42269
42270
42271 fi
42272
42273
42274
42275
42276     fi
42277   fi
42278
42279
42280
42281   GNULIB_STRTOIMAX=1
42282
42283
42284
42285
42286
42287
42288
42289
42290
42291
42292
42293 for ac_func in strtol
42294 do
42295 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42296 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42297 $as_echo_n "checking for $ac_func... " >&6; }
42298 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42299   $as_echo_n "(cached) " >&6
42300 else
42301   cat >conftest.$ac_ext <<_ACEOF
42302 /* confdefs.h.  */
42303 _ACEOF
42304 cat confdefs.h >>conftest.$ac_ext
42305 cat >>conftest.$ac_ext <<_ACEOF
42306 /* end confdefs.h.  */
42307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42308    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42309 #define $ac_func innocuous_$ac_func
42310
42311 /* System header to define __stub macros and hopefully few prototypes,
42312     which can conflict with char $ac_func (); below.
42313     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42314     <limits.h> exists even on freestanding compilers.  */
42315
42316 #ifdef __STDC__
42317 # include <limits.h>
42318 #else
42319 # include <assert.h>
42320 #endif
42321
42322 #undef $ac_func
42323
42324 /* Override any GCC internal prototype to avoid an error.
42325    Use char because int might match the return type of a GCC
42326    builtin and then its argument prototype would still apply.  */
42327 #ifdef __cplusplus
42328 extern "C"
42329 #endif
42330 char $ac_func ();
42331 /* The GNU C library defines this for functions which it implements
42332     to always fail with ENOSYS.  Some functions are actually named
42333     something starting with __ and the normal name is an alias.  */
42334 #if defined __stub_$ac_func || defined __stub___$ac_func
42335 choke me
42336 #endif
42337
42338 int
42339 main ()
42340 {
42341 return $ac_func ();
42342   ;
42343   return 0;
42344 }
42345 _ACEOF
42346 rm -f conftest.$ac_objext conftest$ac_exeext
42347 if { (ac_try="$ac_link"
42348 case "(($ac_try" in
42349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42350   *) ac_try_echo=$ac_try;;
42351 esac
42352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42353 $as_echo "$ac_try_echo") >&5
42354   (eval "$ac_link") 2>conftest.er1
42355   ac_status=$?
42356   grep -v '^ *+' conftest.er1 >conftest.err
42357   rm -f conftest.er1
42358   cat conftest.err >&5
42359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42360   (exit $ac_status); } && {
42361          test -z "$ac_c_werror_flag" ||
42362          test ! -s conftest.err
42363        } && test -s conftest$ac_exeext && {
42364          test "$cross_compiling" = yes ||
42365          $as_test_x conftest$ac_exeext
42366        }; then
42367   eval "$as_ac_var=yes"
42368 else
42369   $as_echo "$as_me: failed program was:" >&5
42370 sed 's/^/| /' conftest.$ac_ext >&5
42371
42372         eval "$as_ac_var=no"
42373 fi
42374
42375 rm -rf conftest.dSYM
42376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42377       conftest$ac_exeext conftest.$ac_ext
42378 fi
42379 ac_res=`eval 'as_val=${'$as_ac_var'}
42380                  $as_echo "$as_val"'`
42381                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42382 $as_echo "$ac_res" >&6; }
42383 as_val=`eval 'as_val=${'$as_ac_var'}
42384                  $as_echo "$as_val"'`
42385    if test "x$as_val" = x""yes; then
42386   cat >>confdefs.h <<_ACEOF
42387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42388 _ACEOF
42389
42390 else
42391
42392     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42393
42394 fi
42395 done
42396
42397
42398
42399
42400
42401
42402   if test "$ac_cv_type_long_long_int" = yes; then
42403
42404
42405
42406
42407
42408
42409
42410
42411
42412 for ac_func in strtoll
42413 do
42414 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42415 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42416 $as_echo_n "checking for $ac_func... " >&6; }
42417 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42418   $as_echo_n "(cached) " >&6
42419 else
42420   cat >conftest.$ac_ext <<_ACEOF
42421 /* confdefs.h.  */
42422 _ACEOF
42423 cat confdefs.h >>conftest.$ac_ext
42424 cat >>conftest.$ac_ext <<_ACEOF
42425 /* end confdefs.h.  */
42426 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42427    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42428 #define $ac_func innocuous_$ac_func
42429
42430 /* System header to define __stub macros and hopefully few prototypes,
42431     which can conflict with char $ac_func (); below.
42432     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42433     <limits.h> exists even on freestanding compilers.  */
42434
42435 #ifdef __STDC__
42436 # include <limits.h>
42437 #else
42438 # include <assert.h>
42439 #endif
42440
42441 #undef $ac_func
42442
42443 /* Override any GCC internal prototype to avoid an error.
42444    Use char because int might match the return type of a GCC
42445    builtin and then its argument prototype would still apply.  */
42446 #ifdef __cplusplus
42447 extern "C"
42448 #endif
42449 char $ac_func ();
42450 /* The GNU C library defines this for functions which it implements
42451     to always fail with ENOSYS.  Some functions are actually named
42452     something starting with __ and the normal name is an alias.  */
42453 #if defined __stub_$ac_func || defined __stub___$ac_func
42454 choke me
42455 #endif
42456
42457 int
42458 main ()
42459 {
42460 return $ac_func ();
42461   ;
42462   return 0;
42463 }
42464 _ACEOF
42465 rm -f conftest.$ac_objext conftest$ac_exeext
42466 if { (ac_try="$ac_link"
42467 case "(($ac_try" in
42468   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42469   *) ac_try_echo=$ac_try;;
42470 esac
42471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42472 $as_echo "$ac_try_echo") >&5
42473   (eval "$ac_link") 2>conftest.er1
42474   ac_status=$?
42475   grep -v '^ *+' conftest.er1 >conftest.err
42476   rm -f conftest.er1
42477   cat conftest.err >&5
42478   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42479   (exit $ac_status); } && {
42480          test -z "$ac_c_werror_flag" ||
42481          test ! -s conftest.err
42482        } && test -s conftest$ac_exeext && {
42483          test "$cross_compiling" = yes ||
42484          $as_test_x conftest$ac_exeext
42485        }; then
42486   eval "$as_ac_var=yes"
42487 else
42488   $as_echo "$as_me: failed program was:" >&5
42489 sed 's/^/| /' conftest.$ac_ext >&5
42490
42491         eval "$as_ac_var=no"
42492 fi
42493
42494 rm -rf conftest.dSYM
42495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42496       conftest$ac_exeext conftest.$ac_ext
42497 fi
42498 ac_res=`eval 'as_val=${'$as_ac_var'}
42499                  $as_echo "$as_val"'`
42500                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42501 $as_echo "$ac_res" >&6; }
42502 as_val=`eval 'as_val=${'$as_ac_var'}
42503                  $as_echo "$as_val"'`
42504    if test "x$as_val" = x""yes; then
42505   cat >>confdefs.h <<_ACEOF
42506 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42507 _ACEOF
42508
42509 else
42510
42511     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42512
42513 fi
42514 done
42515
42516
42517     if test $ac_cv_func_strtoll = no; then
42518       HAVE_STRTOLL=0
42519
42520   :
42521
42522     fi
42523   fi
42524
42525
42526
42527   GNULIB_STRTOLL=1
42528
42529
42530 cat >>confdefs.h <<\_ACEOF
42531 #define GNULIB_STRTOLL 1
42532 _ACEOF
42533
42534
42535
42536
42537
42538
42539
42540
42541
42542
42543
42544
42545
42546 for ac_func in strtoul
42547 do
42548 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42549 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42550 $as_echo_n "checking for $ac_func... " >&6; }
42551 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42552   $as_echo_n "(cached) " >&6
42553 else
42554   cat >conftest.$ac_ext <<_ACEOF
42555 /* confdefs.h.  */
42556 _ACEOF
42557 cat confdefs.h >>conftest.$ac_ext
42558 cat >>conftest.$ac_ext <<_ACEOF
42559 /* end confdefs.h.  */
42560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42561    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42562 #define $ac_func innocuous_$ac_func
42563
42564 /* System header to define __stub macros and hopefully few prototypes,
42565     which can conflict with char $ac_func (); below.
42566     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42567     <limits.h> exists even on freestanding compilers.  */
42568
42569 #ifdef __STDC__
42570 # include <limits.h>
42571 #else
42572 # include <assert.h>
42573 #endif
42574
42575 #undef $ac_func
42576
42577 /* Override any GCC internal prototype to avoid an error.
42578    Use char because int might match the return type of a GCC
42579    builtin and then its argument prototype would still apply.  */
42580 #ifdef __cplusplus
42581 extern "C"
42582 #endif
42583 char $ac_func ();
42584 /* The GNU C library defines this for functions which it implements
42585     to always fail with ENOSYS.  Some functions are actually named
42586     something starting with __ and the normal name is an alias.  */
42587 #if defined __stub_$ac_func || defined __stub___$ac_func
42588 choke me
42589 #endif
42590
42591 int
42592 main ()
42593 {
42594 return $ac_func ();
42595   ;
42596   return 0;
42597 }
42598 _ACEOF
42599 rm -f conftest.$ac_objext conftest$ac_exeext
42600 if { (ac_try="$ac_link"
42601 case "(($ac_try" in
42602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42603   *) ac_try_echo=$ac_try;;
42604 esac
42605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42606 $as_echo "$ac_try_echo") >&5
42607   (eval "$ac_link") 2>conftest.er1
42608   ac_status=$?
42609   grep -v '^ *+' conftest.er1 >conftest.err
42610   rm -f conftest.er1
42611   cat conftest.err >&5
42612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42613   (exit $ac_status); } && {
42614          test -z "$ac_c_werror_flag" ||
42615          test ! -s conftest.err
42616        } && test -s conftest$ac_exeext && {
42617          test "$cross_compiling" = yes ||
42618          $as_test_x conftest$ac_exeext
42619        }; then
42620   eval "$as_ac_var=yes"
42621 else
42622   $as_echo "$as_me: failed program was:" >&5
42623 sed 's/^/| /' conftest.$ac_ext >&5
42624
42625         eval "$as_ac_var=no"
42626 fi
42627
42628 rm -rf conftest.dSYM
42629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42630       conftest$ac_exeext conftest.$ac_ext
42631 fi
42632 ac_res=`eval 'as_val=${'$as_ac_var'}
42633                  $as_echo "$as_val"'`
42634                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42635 $as_echo "$ac_res" >&6; }
42636 as_val=`eval 'as_val=${'$as_ac_var'}
42637                  $as_echo "$as_val"'`
42638    if test "x$as_val" = x""yes; then
42639   cat >>confdefs.h <<_ACEOF
42640 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42641 _ACEOF
42642
42643 else
42644
42645     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42646
42647 fi
42648 done
42649
42650
42651
42652
42653
42654
42655   if test "$ac_cv_type_unsigned_long_long_int" = yes; then
42656
42657
42658
42659
42660
42661
42662
42663
42664
42665 for ac_func in strtoull
42666 do
42667 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42668 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42669 $as_echo_n "checking for $ac_func... " >&6; }
42670 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42671   $as_echo_n "(cached) " >&6
42672 else
42673   cat >conftest.$ac_ext <<_ACEOF
42674 /* confdefs.h.  */
42675 _ACEOF
42676 cat confdefs.h >>conftest.$ac_ext
42677 cat >>conftest.$ac_ext <<_ACEOF
42678 /* end confdefs.h.  */
42679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42680    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42681 #define $ac_func innocuous_$ac_func
42682
42683 /* System header to define __stub macros and hopefully few prototypes,
42684     which can conflict with char $ac_func (); below.
42685     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42686     <limits.h> exists even on freestanding compilers.  */
42687
42688 #ifdef __STDC__
42689 # include <limits.h>
42690 #else
42691 # include <assert.h>
42692 #endif
42693
42694 #undef $ac_func
42695
42696 /* Override any GCC internal prototype to avoid an error.
42697    Use char because int might match the return type of a GCC
42698    builtin and then its argument prototype would still apply.  */
42699 #ifdef __cplusplus
42700 extern "C"
42701 #endif
42702 char $ac_func ();
42703 /* The GNU C library defines this for functions which it implements
42704     to always fail with ENOSYS.  Some functions are actually named
42705     something starting with __ and the normal name is an alias.  */
42706 #if defined __stub_$ac_func || defined __stub___$ac_func
42707 choke me
42708 #endif
42709
42710 int
42711 main ()
42712 {
42713 return $ac_func ();
42714   ;
42715   return 0;
42716 }
42717 _ACEOF
42718 rm -f conftest.$ac_objext conftest$ac_exeext
42719 if { (ac_try="$ac_link"
42720 case "(($ac_try" in
42721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42722   *) ac_try_echo=$ac_try;;
42723 esac
42724 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42725 $as_echo "$ac_try_echo") >&5
42726   (eval "$ac_link") 2>conftest.er1
42727   ac_status=$?
42728   grep -v '^ *+' conftest.er1 >conftest.err
42729   rm -f conftest.er1
42730   cat conftest.err >&5
42731   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42732   (exit $ac_status); } && {
42733          test -z "$ac_c_werror_flag" ||
42734          test ! -s conftest.err
42735        } && test -s conftest$ac_exeext && {
42736          test "$cross_compiling" = yes ||
42737          $as_test_x conftest$ac_exeext
42738        }; then
42739   eval "$as_ac_var=yes"
42740 else
42741   $as_echo "$as_me: failed program was:" >&5
42742 sed 's/^/| /' conftest.$ac_ext >&5
42743
42744         eval "$as_ac_var=no"
42745 fi
42746
42747 rm -rf conftest.dSYM
42748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42749       conftest$ac_exeext conftest.$ac_ext
42750 fi
42751 ac_res=`eval 'as_val=${'$as_ac_var'}
42752                  $as_echo "$as_val"'`
42753                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42754 $as_echo "$ac_res" >&6; }
42755 as_val=`eval 'as_val=${'$as_ac_var'}
42756                  $as_echo "$as_val"'`
42757    if test "x$as_val" = x""yes; then
42758   cat >>confdefs.h <<_ACEOF
42759 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42760 _ACEOF
42761
42762 else
42763
42764     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42765
42766 fi
42767 done
42768
42769
42770     if test $ac_cv_func_strtoull = no; then
42771       HAVE_STRTOULL=0
42772
42773   :
42774
42775     fi
42776   fi
42777
42778
42779
42780   GNULIB_STRTOULL=1
42781
42782
42783 cat >>confdefs.h <<\_ACEOF
42784 #define GNULIB_STRTOULL 1
42785 _ACEOF
42786
42787
42788
42789
42790
42791
42792
42793   { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
42794 $as_echo_n "checking whether <inttypes.h> defines strtoumax as a macro... " >&6; }
42795 if test "${gl_cv_func_strtoumax_macro+set}" = set; then
42796   $as_echo_n "(cached) " >&6
42797 else
42798   cat >conftest.$ac_ext <<_ACEOF
42799 /* confdefs.h.  */
42800 _ACEOF
42801 cat confdefs.h >>conftest.$ac_ext
42802 cat >>conftest.$ac_ext <<_ACEOF
42803 /* end confdefs.h.  */
42804 #include <inttypes.h>
42805 #ifdef strtoumax
42806  inttypes_h_defines_strtoumax
42807 #endif
42808 _ACEOF
42809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42810   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
42811   gl_cv_func_strtoumax_macro=yes
42812 else
42813   gl_cv_func_strtoumax_macro=no
42814 fi
42815 rm -f conftest*
42816
42817 fi
42818 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strtoumax_macro" >&5
42819 $as_echo "$gl_cv_func_strtoumax_macro" >&6; }
42820
42821   if test "$gl_cv_func_strtoumax_macro" != yes; then
42822
42823
42824
42825
42826
42827
42828
42829
42830
42831 for ac_func in strtoumax
42832 do
42833 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
42834 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
42835 $as_echo_n "checking for $ac_func... " >&6; }
42836 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
42837   $as_echo_n "(cached) " >&6
42838 else
42839   cat >conftest.$ac_ext <<_ACEOF
42840 /* confdefs.h.  */
42841 _ACEOF
42842 cat confdefs.h >>conftest.$ac_ext
42843 cat >>conftest.$ac_ext <<_ACEOF
42844 /* end confdefs.h.  */
42845 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
42846    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
42847 #define $ac_func innocuous_$ac_func
42848
42849 /* System header to define __stub macros and hopefully few prototypes,
42850     which can conflict with char $ac_func (); below.
42851     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
42852     <limits.h> exists even on freestanding compilers.  */
42853
42854 #ifdef __STDC__
42855 # include <limits.h>
42856 #else
42857 # include <assert.h>
42858 #endif
42859
42860 #undef $ac_func
42861
42862 /* Override any GCC internal prototype to avoid an error.
42863    Use char because int might match the return type of a GCC
42864    builtin and then its argument prototype would still apply.  */
42865 #ifdef __cplusplus
42866 extern "C"
42867 #endif
42868 char $ac_func ();
42869 /* The GNU C library defines this for functions which it implements
42870     to always fail with ENOSYS.  Some functions are actually named
42871     something starting with __ and the normal name is an alias.  */
42872 #if defined __stub_$ac_func || defined __stub___$ac_func
42873 choke me
42874 #endif
42875
42876 int
42877 main ()
42878 {
42879 return $ac_func ();
42880   ;
42881   return 0;
42882 }
42883 _ACEOF
42884 rm -f conftest.$ac_objext conftest$ac_exeext
42885 if { (ac_try="$ac_link"
42886 case "(($ac_try" in
42887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42888   *) ac_try_echo=$ac_try;;
42889 esac
42890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42891 $as_echo "$ac_try_echo") >&5
42892   (eval "$ac_link") 2>conftest.er1
42893   ac_status=$?
42894   grep -v '^ *+' conftest.er1 >conftest.err
42895   rm -f conftest.er1
42896   cat conftest.err >&5
42897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42898   (exit $ac_status); } && {
42899          test -z "$ac_c_werror_flag" ||
42900          test ! -s conftest.err
42901        } && test -s conftest$ac_exeext && {
42902          test "$cross_compiling" = yes ||
42903          $as_test_x conftest$ac_exeext
42904        }; then
42905   eval "$as_ac_var=yes"
42906 else
42907   $as_echo "$as_me: failed program was:" >&5
42908 sed 's/^/| /' conftest.$ac_ext >&5
42909
42910         eval "$as_ac_var=no"
42911 fi
42912
42913 rm -rf conftest.dSYM
42914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
42915       conftest$ac_exeext conftest.$ac_ext
42916 fi
42917 ac_res=`eval 'as_val=${'$as_ac_var'}
42918                  $as_echo "$as_val"'`
42919                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
42920 $as_echo "$ac_res" >&6; }
42921 as_val=`eval 'as_val=${'$as_ac_var'}
42922                  $as_echo "$as_val"'`
42923    if test "x$as_val" = x""yes; then
42924   cat >>confdefs.h <<_ACEOF
42925 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
42926 _ACEOF
42927
42928 else
42929
42930     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
42931
42932 fi
42933 done
42934
42935
42936     if test $ac_cv_func_strtoumax = no; then
42937
42938   { $as_echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
42939 $as_echo_n "checking whether strtoull is declared... " >&6; }
42940 if test "${ac_cv_have_decl_strtoull+set}" = set; then
42941   $as_echo_n "(cached) " >&6
42942 else
42943   cat >conftest.$ac_ext <<_ACEOF
42944 /* confdefs.h.  */
42945 _ACEOF
42946 cat confdefs.h >>conftest.$ac_ext
42947 cat >>conftest.$ac_ext <<_ACEOF
42948 /* end confdefs.h.  */
42949 $ac_includes_default
42950 int
42951 main ()
42952 {
42953 #ifndef strtoull
42954   (void) strtoull;
42955 #endif
42956
42957   ;
42958   return 0;
42959 }
42960 _ACEOF
42961 rm -f conftest.$ac_objext
42962 if { (ac_try="$ac_compile"
42963 case "(($ac_try" in
42964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42965   *) ac_try_echo=$ac_try;;
42966 esac
42967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42968 $as_echo "$ac_try_echo") >&5
42969   (eval "$ac_compile") 2>conftest.er1
42970   ac_status=$?
42971   grep -v '^ *+' conftest.er1 >conftest.err
42972   rm -f conftest.er1
42973   cat conftest.err >&5
42974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42975   (exit $ac_status); } && {
42976          test -z "$ac_c_werror_flag" ||
42977          test ! -s conftest.err
42978        } && test -s conftest.$ac_objext; then
42979   ac_cv_have_decl_strtoull=yes
42980 else
42981   $as_echo "$as_me: failed program was:" >&5
42982 sed 's/^/| /' conftest.$ac_ext >&5
42983
42984         ac_cv_have_decl_strtoull=no
42985 fi
42986
42987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42988 fi
42989 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
42990 $as_echo "$ac_cv_have_decl_strtoull" >&6; }
42991 if test "x$ac_cv_have_decl_strtoull" = x""yes; then
42992
42993 cat >>confdefs.h <<_ACEOF
42994 #define HAVE_DECL_STRTOULL 1
42995 _ACEOF
42996
42997
42998 else
42999   cat >>confdefs.h <<_ACEOF
43000 #define HAVE_DECL_STRTOULL 0
43001 _ACEOF
43002
43003
43004 fi
43005
43006
43007
43008
43009     fi
43010   fi
43011
43012
43013
43014   GNULIB_STRTOUMAX=1
43015
43016
43017
43018
43019
43020
43021
43022
43023
43024
43025
43026
43027
43028
43029
43030
43031
43032
43033
43034      if test $gl_cv_have_include_next = yes; then
43035        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
43036      else
43037        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
43038 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
43039 if test "${gl_cv_next_sys_stat_h+set}" = set; then
43040   $as_echo_n "(cached) " >&6
43041 else
43042
43043           if test $ac_cv_header_sys_stat_h = yes; then
43044             cat >conftest.$ac_ext <<_ACEOF
43045 /* confdefs.h.  */
43046 _ACEOF
43047 cat confdefs.h >>conftest.$ac_ext
43048 cat >>conftest.$ac_ext <<_ACEOF
43049 /* end confdefs.h.  */
43050 #include <sys/stat.h>
43051
43052 _ACEOF
43053                                                                                                 case "$host_os" in
43054               aix*) gl_absname_cpp="$ac_cpp -C" ;;
43055               *)    gl_absname_cpp="$ac_cpp" ;;
43056             esac
43057                                                 gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43058                sed -n '\#/sys/stat.h#{
43059                  s#.*"\(.*/sys/stat.h\)".*#\1#
43060                  s#^/[^/]#//&#
43061                  p
43062                  q
43063                }'`'"'
43064           else
43065             gl_cv_next_sys_stat_h='<'sys/stat.h'>'
43066           fi
43067
43068 fi
43069 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
43070 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
43071      fi
43072      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
43073
43074      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43075        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43076        gl_next_as_first_directive='<'sys/stat.h'>'
43077      else
43078        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43079        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
43080      fi
43081      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
43082
43083
43084
43085
43086       { $as_echo "$as_me:$LINENO: checking for nlink_t" >&5
43087 $as_echo_n "checking for nlink_t... " >&6; }
43088 if test "${ac_cv_type_nlink_t+set}" = set; then
43089   $as_echo_n "(cached) " >&6
43090 else
43091   ac_cv_type_nlink_t=no
43092 cat >conftest.$ac_ext <<_ACEOF
43093 /* confdefs.h.  */
43094 _ACEOF
43095 cat confdefs.h >>conftest.$ac_ext
43096 cat >>conftest.$ac_ext <<_ACEOF
43097 /* end confdefs.h.  */
43098 #include <sys/types.h>
43099      #include <sys/stat.h>
43100
43101 int
43102 main ()
43103 {
43104 if (sizeof (nlink_t))
43105        return 0;
43106   ;
43107   return 0;
43108 }
43109 _ACEOF
43110 rm -f conftest.$ac_objext
43111 if { (ac_try="$ac_compile"
43112 case "(($ac_try" in
43113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43114   *) ac_try_echo=$ac_try;;
43115 esac
43116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43117 $as_echo "$ac_try_echo") >&5
43118   (eval "$ac_compile") 2>conftest.er1
43119   ac_status=$?
43120   grep -v '^ *+' conftest.er1 >conftest.err
43121   rm -f conftest.er1
43122   cat conftest.err >&5
43123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43124   (exit $ac_status); } && {
43125          test -z "$ac_c_werror_flag" ||
43126          test ! -s conftest.err
43127        } && test -s conftest.$ac_objext; then
43128   cat >conftest.$ac_ext <<_ACEOF
43129 /* confdefs.h.  */
43130 _ACEOF
43131 cat confdefs.h >>conftest.$ac_ext
43132 cat >>conftest.$ac_ext <<_ACEOF
43133 /* end confdefs.h.  */
43134 #include <sys/types.h>
43135      #include <sys/stat.h>
43136
43137 int
43138 main ()
43139 {
43140 if (sizeof ((nlink_t)))
43141           return 0;
43142   ;
43143   return 0;
43144 }
43145 _ACEOF
43146 rm -f conftest.$ac_objext
43147 if { (ac_try="$ac_compile"
43148 case "(($ac_try" in
43149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43150   *) ac_try_echo=$ac_try;;
43151 esac
43152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43153 $as_echo "$ac_try_echo") >&5
43154   (eval "$ac_compile") 2>conftest.er1
43155   ac_status=$?
43156   grep -v '^ *+' conftest.er1 >conftest.err
43157   rm -f conftest.er1
43158   cat conftest.err >&5
43159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43160   (exit $ac_status); } && {
43161          test -z "$ac_c_werror_flag" ||
43162          test ! -s conftest.err
43163        } && test -s conftest.$ac_objext; then
43164   :
43165 else
43166   $as_echo "$as_me: failed program was:" >&5
43167 sed 's/^/| /' conftest.$ac_ext >&5
43168
43169         ac_cv_type_nlink_t=yes
43170 fi
43171
43172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43173 else
43174   $as_echo "$as_me: failed program was:" >&5
43175 sed 's/^/| /' conftest.$ac_ext >&5
43176
43177
43178 fi
43179
43180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43181 fi
43182 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
43183 $as_echo "$ac_cv_type_nlink_t" >&6; }
43184 if test "x$ac_cv_type_nlink_t" = x""yes; then
43185   :
43186 else
43187
43188 cat >>confdefs.h <<\_ACEOF
43189 #define nlink_t int
43190 _ACEOF
43191
43192 fi
43193
43194
43195
43196
43197
43198
43199
43200
43201
43202
43203
43204
43205
43206
43207
43208   for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
43209     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43210     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
43211 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43212 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
43213   $as_echo_n "(cached) " >&6
43214 else
43215   cat >conftest.$ac_ext <<_ACEOF
43216 /* confdefs.h.  */
43217 _ACEOF
43218 cat confdefs.h >>conftest.$ac_ext
43219 cat >>conftest.$ac_ext <<_ACEOF
43220 /* end confdefs.h.  */
43221 #include <sys/stat.h>
43222
43223 int
43224 main ()
43225 {
43226 #undef $gl_func
43227   (void) $gl_func;
43228   ;
43229   return 0;
43230 }
43231 _ACEOF
43232 rm -f conftest.$ac_objext
43233 if { (ac_try="$ac_compile"
43234 case "(($ac_try" in
43235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43236   *) ac_try_echo=$ac_try;;
43237 esac
43238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43239 $as_echo "$ac_try_echo") >&5
43240   (eval "$ac_compile") 2>conftest.er1
43241   ac_status=$?
43242   grep -v '^ *+' conftest.er1 >conftest.err
43243   rm -f conftest.er1
43244   cat conftest.err >&5
43245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43246   (exit $ac_status); } && {
43247          test -z "$ac_c_werror_flag" ||
43248          test ! -s conftest.err
43249        } && test -s conftest.$ac_objext; then
43250   eval "$as_gl_Symbol=yes"
43251 else
43252   $as_echo "$as_me: failed program was:" >&5
43253 sed 's/^/| /' conftest.$ac_ext >&5
43254
43255         eval "$as_gl_Symbol=no"
43256 fi
43257
43258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43259 fi
43260 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
43261                  $as_echo "$as_val"'`
43262                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43263 $as_echo "$ac_res" >&6; }
43264      as_val=`eval 'as_val=${'$as_gl_Symbol'}
43265                  $as_echo "$as_val"'`
43266    if test "x$as_val" = x""yes; then
43267   cat >>confdefs.h <<_ACEOF
43268 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
43269 _ACEOF
43270
43271                      eval ac_cv_have_decl_$gl_func=yes
43272 fi
43273
43274       done
43275
43276
43277   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
43278 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
43279 if test -z "$MKDIR_P"; then
43280   if test "${ac_cv_path_mkdir+set}" = set; then
43281   $as_echo_n "(cached) " >&6
43282 else
43283   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43284 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
43285 do
43286   IFS=$as_save_IFS
43287   test -z "$as_dir" && as_dir=.
43288   for ac_prog in mkdir gmkdir; do
43289          for ac_exec_ext in '' $ac_executable_extensions; do
43290            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
43291            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
43292              'mkdir (GNU coreutils) '* | \
43293              'mkdir (coreutils) '* | \
43294              'mkdir (fileutils) '4.1*)
43295                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
43296                break 3;;
43297            esac
43298          done
43299        done
43300 done
43301 IFS=$as_save_IFS
43302
43303 fi
43304
43305   if test "${ac_cv_path_mkdir+set}" = set; then
43306     MKDIR_P="$ac_cv_path_mkdir -p"
43307   else
43308     # As a last resort, use the slow shell script.  Don't cache a
43309     # value for MKDIR_P within a source directory, because that will
43310     # break other packages using the cache if that directory is
43311     # removed, or if the value is a relative name.
43312     test -d ./--version && rmdir ./--version
43313     MKDIR_P="$ac_install_sh -d"
43314   fi
43315 fi
43316 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
43317 $as_echo "$MKDIR_P" >&6; }
43318
43319
43320
43321
43322
43323   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
43324 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
43325 if test -z "$MKDIR_P"; then
43326   if test "${ac_cv_path_mkdir+set}" = set; then
43327   $as_echo_n "(cached) " >&6
43328 else
43329   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43330 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
43331 do
43332   IFS=$as_save_IFS
43333   test -z "$as_dir" && as_dir=.
43334   for ac_prog in mkdir gmkdir; do
43335          for ac_exec_ext in '' $ac_executable_extensions; do
43336            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
43337            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
43338              'mkdir (GNU coreutils) '* | \
43339              'mkdir (coreutils) '* | \
43340              'mkdir (fileutils) '4.1*)
43341                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
43342                break 3;;
43343            esac
43344          done
43345        done
43346 done
43347 IFS=$as_save_IFS
43348
43349 fi
43350
43351   if test "${ac_cv_path_mkdir+set}" = set; then
43352     MKDIR_P="$ac_cv_path_mkdir -p"
43353   else
43354     # As a last resort, use the slow shell script.  Don't cache a
43355     # value for MKDIR_P within a source directory, because that will
43356     # break other packages using the cache if that directory is
43357     # removed, or if the value is a relative name.
43358     test -d ./--version && rmdir ./--version
43359     MKDIR_P="$ac_install_sh -d"
43360   fi
43361 fi
43362 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
43363 $as_echo "$MKDIR_P" >&6; }
43364
43365
43366
43367
43368
43369
43370
43371
43372
43373   if test $ac_cv_header_sysexits_h = yes; then
43374     HAVE_SYSEXITS_H=1
43375
43376
43377
43378
43379
43380
43381
43382
43383
43384
43385
43386      if test $gl_cv_have_include_next = yes; then
43387        gl_cv_next_sysexits_h='<'sysexits.h'>'
43388      else
43389        { $as_echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
43390 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
43391 if test "${gl_cv_next_sysexits_h+set}" = set; then
43392   $as_echo_n "(cached) " >&6
43393 else
43394
43395           if test $ac_cv_header_sysexits_h = yes; then
43396             cat >conftest.$ac_ext <<_ACEOF
43397 /* confdefs.h.  */
43398 _ACEOF
43399 cat confdefs.h >>conftest.$ac_ext
43400 cat >>conftest.$ac_ext <<_ACEOF
43401 /* end confdefs.h.  */
43402 #include <sysexits.h>
43403
43404 _ACEOF
43405                                                                                                 case "$host_os" in
43406               aix*) gl_absname_cpp="$ac_cpp -C" ;;
43407               *)    gl_absname_cpp="$ac_cpp" ;;
43408             esac
43409                                                 gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43410                sed -n '\#/sysexits.h#{
43411                  s#.*"\(.*/sysexits.h\)".*#\1#
43412                  s#^/[^/]#//&#
43413                  p
43414                  q
43415                }'`'"'
43416           else
43417             gl_cv_next_sysexits_h='<'sysexits.h'>'
43418           fi
43419
43420 fi
43421 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5
43422 $as_echo "$gl_cv_next_sysexits_h" >&6; }
43423      fi
43424      NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
43425
43426      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43427        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43428        gl_next_as_first_directive='<'sysexits.h'>'
43429      else
43430        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43431        gl_next_as_first_directive=$gl_cv_next_sysexits_h
43432      fi
43433      NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
43434
43435
43436
43437     cat >conftest.$ac_ext <<_ACEOF
43438 /* confdefs.h.  */
43439 _ACEOF
43440 cat confdefs.h >>conftest.$ac_ext
43441 cat >>conftest.$ac_ext <<_ACEOF
43442 /* end confdefs.h.  */
43443 #include <sysexits.h>
43444 int
43445 main ()
43446 {
43447 switch (0)
43448           {
43449           case EX_OK:
43450           case EX_USAGE:
43451           case EX_DATAERR:
43452           case EX_NOINPUT:
43453           case EX_NOUSER:
43454           case EX_NOHOST:
43455           case EX_UNAVAILABLE:
43456           case EX_SOFTWARE:
43457           case EX_OSERR:
43458           case EX_OSFILE:
43459           case EX_CANTCREAT:
43460           case EX_IOERR:
43461           case EX_TEMPFAIL:
43462           case EX_PROTOCOL:
43463           case EX_NOPERM:
43464           case EX_CONFIG:
43465             break;
43466           }
43467
43468   ;
43469   return 0;
43470 }
43471 _ACEOF
43472 rm -f conftest.$ac_objext
43473 if { (ac_try="$ac_compile"
43474 case "(($ac_try" in
43475   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43476   *) ac_try_echo=$ac_try;;
43477 esac
43478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43479 $as_echo "$ac_try_echo") >&5
43480   (eval "$ac_compile") 2>conftest.er1
43481   ac_status=$?
43482   grep -v '^ *+' conftest.er1 >conftest.err
43483   rm -f conftest.er1
43484   cat conftest.err >&5
43485   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43486   (exit $ac_status); } && {
43487          test -z "$ac_c_werror_flag" ||
43488          test ! -s conftest.err
43489        } && test -s conftest.$ac_objext; then
43490   SYSEXITS_H=
43491 else
43492   $as_echo "$as_me: failed program was:" >&5
43493 sed 's/^/| /' conftest.$ac_ext >&5
43494
43495         SYSEXITS_H=sysexits.h
43496 fi
43497
43498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43499   else
43500     HAVE_SYSEXITS_H=0
43501     SYSEXITS_H=sysexits.h
43502   fi
43503
43504
43505
43506
43507
43508
43509
43510
43511
43512
43513
43514
43515
43516
43517   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
43518
43519
43520   :
43521
43522
43523
43524
43525
43526
43527
43528
43529
43530
43531
43532   { $as_echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
43533 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
43534 if test "${gl_cv_time_r_posix+set}" = set; then
43535   $as_echo_n "(cached) " >&6
43536 else
43537   cat >conftest.$ac_ext <<_ACEOF
43538 /* confdefs.h.  */
43539 _ACEOF
43540 cat confdefs.h >>conftest.$ac_ext
43541 cat >>conftest.$ac_ext <<_ACEOF
43542 /* end confdefs.h.  */
43543 #include <time.h>
43544 int
43545 main ()
43546 {
43547 /* We don't need to append 'restrict's to the argument types,
43548               even though the POSIX signature has the 'restrict's,
43549               since C99 says they can't affect type compatibility.  */
43550            struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
43551            if (ptr) return 0;
43552            /* Check the return type is a pointer.  On HP-UX 10 it is 'int'.  */
43553            *localtime_r (0, 0);
43554   ;
43555   return 0;
43556 }
43557 _ACEOF
43558 rm -f conftest.$ac_objext
43559 if { (ac_try="$ac_compile"
43560 case "(($ac_try" in
43561   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43562   *) ac_try_echo=$ac_try;;
43563 esac
43564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43565 $as_echo "$ac_try_echo") >&5
43566   (eval "$ac_compile") 2>conftest.er1
43567   ac_status=$?
43568   grep -v '^ *+' conftest.er1 >conftest.err
43569   rm -f conftest.er1
43570   cat conftest.err >&5
43571   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43572   (exit $ac_status); } && {
43573          test -z "$ac_c_werror_flag" ||
43574          test ! -s conftest.err
43575        } && test -s conftest.$ac_objext; then
43576   gl_cv_time_r_posix=yes
43577 else
43578   $as_echo "$as_me: failed program was:" >&5
43579 sed 's/^/| /' conftest.$ac_ext >&5
43580
43581         gl_cv_time_r_posix=no
43582 fi
43583
43584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43585 fi
43586 { $as_echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
43587 $as_echo "$gl_cv_time_r_posix" >&6; }
43588   if test $gl_cv_time_r_posix = yes; then
43589     REPLACE_LOCALTIME_R=0
43590   else
43591     REPLACE_LOCALTIME_R=1
43592
43593
43594
43595
43596
43597
43598
43599
43600   gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
43601
43602
43603   :
43604
43605   fi
43606
43607
43608
43609
43610
43611
43612
43613
43614
43615
43616
43617
43618
43619
43620
43621
43622
43623
43624
43625      if test $gl_cv_have_include_next = yes; then
43626        gl_cv_next_unistd_h='<'unistd.h'>'
43627      else
43628        { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
43629 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
43630 if test "${gl_cv_next_unistd_h+set}" = set; then
43631   $as_echo_n "(cached) " >&6
43632 else
43633
43634           if test $ac_cv_header_unistd_h = yes; then
43635             cat >conftest.$ac_ext <<_ACEOF
43636 /* confdefs.h.  */
43637 _ACEOF
43638 cat confdefs.h >>conftest.$ac_ext
43639 cat >>conftest.$ac_ext <<_ACEOF
43640 /* end confdefs.h.  */
43641 #include <unistd.h>
43642
43643 _ACEOF
43644                                                                                                 case "$host_os" in
43645               aix*) gl_absname_cpp="$ac_cpp -C" ;;
43646               *)    gl_absname_cpp="$ac_cpp" ;;
43647             esac
43648                                                 gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43649                sed -n '\#/unistd.h#{
43650                  s#.*"\(.*/unistd.h\)".*#\1#
43651                  s#^/[^/]#//&#
43652                  p
43653                  q
43654                }'`'"'
43655           else
43656             gl_cv_next_unistd_h='<'unistd.h'>'
43657           fi
43658
43659 fi
43660 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
43661 $as_echo "$gl_cv_next_unistd_h" >&6; }
43662      fi
43663      NEXT_UNISTD_H=$gl_cv_next_unistd_h
43664
43665      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43666        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43667        gl_next_as_first_directive='<'unistd.h'>'
43668      else
43669        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43670        gl_next_as_first_directive=$gl_cv_next_unistd_h
43671      fi
43672      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
43673
43674
43675
43676
43677
43678
43679
43680
43681
43682
43683   if test $ac_cv_header_unistd_h = yes; then
43684     HAVE_UNISTD_H=1
43685   else
43686     HAVE_UNISTD_H=0
43687   fi
43688
43689
43690
43691
43692
43693
43694
43695
43696
43697
43698
43699
43700
43701
43702
43703
43704
43705
43706
43707
43708
43709
43710
43711
43712
43713
43714
43715
43716
43717
43718
43719
43720
43721
43722
43723
43724
43725
43726
43727   for gl_func in chown dup2 dup3 environ euidaccess faccessat fchdir fchownat     fsync ftruncate getcwd getdomainname getdtablesize getgroups     gethostname getlogin getlogin_r getpagesize getusershell setusershell     endusershell lchown link linkat lseek pipe2 pread readlink readlinkat     rmdir sleep symlink symlinkat unlink unlinkat usleep; do
43728     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
43729     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
43730 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
43731 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
43732   $as_echo_n "(cached) " >&6
43733 else
43734   cat >conftest.$ac_ext <<_ACEOF
43735 /* confdefs.h.  */
43736 _ACEOF
43737 cat confdefs.h >>conftest.$ac_ext
43738 cat >>conftest.$ac_ext <<_ACEOF
43739 /* end confdefs.h.  */
43740 #include <unistd.h>
43741 /* Some systems declare various items in the wrong headers.  */
43742 #ifndef __GLIBC__
43743 # include <fcntl.h>
43744 # include <stdio.h>
43745 # include <stdlib.h>
43746 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
43747 #  include <io.h>
43748 # endif
43749 #endif
43750
43751 int
43752 main ()
43753 {
43754 #undef $gl_func
43755   (void) $gl_func;
43756   ;
43757   return 0;
43758 }
43759 _ACEOF
43760 rm -f conftest.$ac_objext
43761 if { (ac_try="$ac_compile"
43762 case "(($ac_try" in
43763   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43764   *) ac_try_echo=$ac_try;;
43765 esac
43766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43767 $as_echo "$ac_try_echo") >&5
43768   (eval "$ac_compile") 2>conftest.er1
43769   ac_status=$?
43770   grep -v '^ *+' conftest.er1 >conftest.err
43771   rm -f conftest.er1
43772   cat conftest.err >&5
43773   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43774   (exit $ac_status); } && {
43775          test -z "$ac_c_werror_flag" ||
43776          test ! -s conftest.err
43777        } && test -s conftest.$ac_objext; then
43778   eval "$as_gl_Symbol=yes"
43779 else
43780   $as_echo "$as_me: failed program was:" >&5
43781 sed 's/^/| /' conftest.$ac_ext >&5
43782
43783         eval "$as_gl_Symbol=no"
43784 fi
43785
43786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43787 fi
43788 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
43789                  $as_echo "$as_val"'`
43790                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43791 $as_echo "$ac_res" >&6; }
43792      as_val=`eval 'as_val=${'$as_gl_Symbol'}
43793                  $as_echo "$as_val"'`
43794    if test "x$as_val" = x""yes; then
43795   cat >>confdefs.h <<_ACEOF
43796 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
43797 _ACEOF
43798
43799                      eval ac_cv_have_decl_$gl_func=yes
43800 fi
43801
43802       done
43803
43804
43805
43806
43807
43808
43809
43810
43811
43812
43813
43814
43815
43816
43817
43818
43819
43820   gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
43821
43822
43823
43824
43825
43826
43827
43828
43829
43830   gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
43831
43832
43833
43834
43835
43836
43837
43838
43839
43840   gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
43841
43842
43843
43844
43845
43846     { $as_echo "$as_me:$LINENO: checking whether unlink honors trailing slashes" >&5
43847 $as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
43848 if test "${gl_cv_func_unlink_works+set}" = set; then
43849   $as_echo_n "(cached) " >&6
43850 else
43851   touch conftest.file
43852      # Assume that if we have lstat, we can also check symlinks.
43853      if test $ac_cv_func_lstat = yes; then
43854        ln -s conftest.file conftest.lnk
43855      fi
43856      if test "$cross_compiling" = yes; then
43857   gl_cv_func_unlink_works="guessing no"
43858 else
43859   cat >conftest.$ac_ext <<_ACEOF
43860 /* confdefs.h.  */
43861 _ACEOF
43862 cat confdefs.h >>conftest.$ac_ext
43863 cat >>conftest.$ac_ext <<_ACEOF
43864 /* end confdefs.h.  */
43865 #include <unistd.h>
43866            #include <errno.h>
43867
43868 int
43869 main ()
43870 {
43871 if (!unlink ("conftest.file/") || errno != ENOTDIR) return 1;
43872 #if HAVE_LSTAT
43873       if (!unlink ("conftest.lnk/") || errno != ENOTDIR) return 2;
43874 #endif
43875
43876   ;
43877   return 0;
43878 }
43879 _ACEOF
43880 rm -f conftest$ac_exeext
43881 if { (ac_try="$ac_link"
43882 case "(($ac_try" in
43883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43884   *) ac_try_echo=$ac_try;;
43885 esac
43886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43887 $as_echo "$ac_try_echo") >&5
43888   (eval "$ac_link") 2>&5
43889   ac_status=$?
43890   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43891   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43892   { (case "(($ac_try" in
43893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43894   *) ac_try_echo=$ac_try;;
43895 esac
43896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43897 $as_echo "$ac_try_echo") >&5
43898   (eval "$ac_try") 2>&5
43899   ac_status=$?
43900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43901   (exit $ac_status); }; }; then
43902   gl_cv_func_unlink_works=yes
43903 else
43904   $as_echo "$as_me: program exited with status $ac_status" >&5
43905 $as_echo "$as_me: failed program was:" >&5
43906 sed 's/^/| /' conftest.$ac_ext >&5
43907
43908 ( exit $ac_status )
43909 gl_cv_func_unlink_works=no
43910 fi
43911 rm -rf conftest.dSYM
43912 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43913 fi
43914
43915
43916      rm -f conftest.file conftest.lnk
43917 fi
43918 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_works" >&5
43919 $as_echo "$gl_cv_func_unlink_works" >&6; }
43920   if test x"$gl_cv_func_unlink_works" != xyes; then
43921     REPLACE_UNLINK=1
43922
43923
43924
43925
43926
43927
43928
43929
43930   gl_LIBOBJS="$gl_LIBOBJS unlink.$ac_objext"
43931
43932   fi
43933
43934
43935
43936   GNULIB_UNLINK=1
43937
43938
43939 cat >>confdefs.h <<\_ACEOF
43940 #define GNULIB_UNLINK 1
43941 _ACEOF
43942
43943
43944
43945
43946
43947
43948
43949
43950
43951
43952
43953
43954
43955
43956
43957
43958
43959
43960
43961
43962   gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
43963
43964
43965   # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
43966   # Cygwin, and mingw never let anyone (even root) unlink directories.
43967   # If anyone knows of another system for which unlink can never
43968   # remove a directory, please report it to <bug-coreutils@gnu.org>.
43969   # Unfortunately this is difficult to test for, since it requires root access
43970   # and might create garbage in the file system,
43971   # so the code below simply relies on the kernel name and version number.
43972   case $host_os in
43973   gnu[0-9]* | \
43974   linux-* | linux | \
43975   freebsd2.2* | freebsd[3-9]* | freebsd[1-9][0-9]* | \
43976   cygwin | \
43977   mingw*)
43978
43979 cat >>confdefs.h <<\_ACEOF
43980 #define UNLINK_CANNOT_UNLINK_DIR 1
43981 _ACEOF
43982 ;;
43983   esac
43984
43985
43986
43987 cat >>confdefs.h <<\_ACEOF
43988 #define USE_UNLOCKED_IO 1
43989 _ACEOF
43990
43991
43992
43993
43994
43995
43996
43997
43998
43999
44000
44001
44002
44003
44004
44005
44006
44007
44008
44009
44010
44011
44012
44013
44014
44015
44016
44017
44018
44019
44020
44021
44022
44023
44024
44025
44026
44027
44028
44029
44030
44031
44032
44033
44034
44035
44036
44037
44038
44039
44040
44041
44042
44043
44044
44045
44046
44047
44048
44049
44050 for ac_func in unsetenv
44051 do
44052 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44053 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44054 $as_echo_n "checking for $ac_func... " >&6; }
44055 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44056   $as_echo_n "(cached) " >&6
44057 else
44058   cat >conftest.$ac_ext <<_ACEOF
44059 /* confdefs.h.  */
44060 _ACEOF
44061 cat confdefs.h >>conftest.$ac_ext
44062 cat >>conftest.$ac_ext <<_ACEOF
44063 /* end confdefs.h.  */
44064 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44065    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44066 #define $ac_func innocuous_$ac_func
44067
44068 /* System header to define __stub macros and hopefully few prototypes,
44069     which can conflict with char $ac_func (); below.
44070     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44071     <limits.h> exists even on freestanding compilers.  */
44072
44073 #ifdef __STDC__
44074 # include <limits.h>
44075 #else
44076 # include <assert.h>
44077 #endif
44078
44079 #undef $ac_func
44080
44081 /* Override any GCC internal prototype to avoid an error.
44082    Use char because int might match the return type of a GCC
44083    builtin and then its argument prototype would still apply.  */
44084 #ifdef __cplusplus
44085 extern "C"
44086 #endif
44087 char $ac_func ();
44088 /* The GNU C library defines this for functions which it implements
44089     to always fail with ENOSYS.  Some functions are actually named
44090     something starting with __ and the normal name is an alias.  */
44091 #if defined __stub_$ac_func || defined __stub___$ac_func
44092 choke me
44093 #endif
44094
44095 int
44096 main ()
44097 {
44098 return $ac_func ();
44099   ;
44100   return 0;
44101 }
44102 _ACEOF
44103 rm -f conftest.$ac_objext conftest$ac_exeext
44104 if { (ac_try="$ac_link"
44105 case "(($ac_try" in
44106   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44107   *) ac_try_echo=$ac_try;;
44108 esac
44109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44110 $as_echo "$ac_try_echo") >&5
44111   (eval "$ac_link") 2>conftest.er1
44112   ac_status=$?
44113   grep -v '^ *+' conftest.er1 >conftest.err
44114   rm -f conftest.er1
44115   cat conftest.err >&5
44116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44117   (exit $ac_status); } && {
44118          test -z "$ac_c_werror_flag" ||
44119          test ! -s conftest.err
44120        } && test -s conftest$ac_exeext && {
44121          test "$cross_compiling" = yes ||
44122          $as_test_x conftest$ac_exeext
44123        }; then
44124   eval "$as_ac_var=yes"
44125 else
44126   $as_echo "$as_me: failed program was:" >&5
44127 sed 's/^/| /' conftest.$ac_ext >&5
44128
44129         eval "$as_ac_var=no"
44130 fi
44131
44132 rm -rf conftest.dSYM
44133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44134       conftest$ac_exeext conftest.$ac_ext
44135 fi
44136 ac_res=`eval 'as_val=${'$as_ac_var'}
44137                  $as_echo "$as_val"'`
44138                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44139 $as_echo "$ac_res" >&6; }
44140 as_val=`eval 'as_val=${'$as_ac_var'}
44141                  $as_echo "$as_val"'`
44142    if test "x$as_val" = x""yes; then
44143   cat >>confdefs.h <<_ACEOF
44144 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44145 _ACEOF
44146
44147 fi
44148 done
44149
44150   if test $ac_cv_func_unsetenv = no; then
44151     HAVE_UNSETENV=0
44152
44153
44154
44155
44156
44157
44158
44159
44160   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
44161
44162
44163
44164
44165
44166
44167
44168
44169
44170
44171   else
44172         { $as_echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
44173 $as_echo_n "checking for unsetenv() return type... " >&6; }
44174 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
44175   $as_echo_n "(cached) " >&6
44176 else
44177   cat >conftest.$ac_ext <<_ACEOF
44178 /* confdefs.h.  */
44179 _ACEOF
44180 cat confdefs.h >>conftest.$ac_ext
44181 cat >>conftest.$ac_ext <<_ACEOF
44182 /* end confdefs.h.  */
44183 #include <stdlib.h>
44184 extern
44185 #ifdef __cplusplus
44186 "C"
44187 #endif
44188 #if defined(__STDC__) || defined(__cplusplus)
44189 int unsetenv (const char *name);
44190 #else
44191 int unsetenv();
44192 #endif
44193
44194 int
44195 main ()
44196 {
44197
44198   ;
44199   return 0;
44200 }
44201 _ACEOF
44202 rm -f conftest.$ac_objext
44203 if { (ac_try="$ac_compile"
44204 case "(($ac_try" in
44205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44206   *) ac_try_echo=$ac_try;;
44207 esac
44208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44209 $as_echo "$ac_try_echo") >&5
44210   (eval "$ac_compile") 2>conftest.er1
44211   ac_status=$?
44212   grep -v '^ *+' conftest.er1 >conftest.err
44213   rm -f conftest.er1
44214   cat conftest.err >&5
44215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44216   (exit $ac_status); } && {
44217          test -z "$ac_c_werror_flag" ||
44218          test ! -s conftest.err
44219        } && test -s conftest.$ac_objext; then
44220   gt_cv_func_unsetenv_ret='int'
44221 else
44222   $as_echo "$as_me: failed program was:" >&5
44223 sed 's/^/| /' conftest.$ac_ext >&5
44224
44225         gt_cv_func_unsetenv_ret='void'
44226 fi
44227
44228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44229 fi
44230 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
44231 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
44232     if test $gt_cv_func_unsetenv_ret = 'void'; then
44233
44234 cat >>confdefs.h <<\_ACEOF
44235 #define VOID_UNSETENV 1
44236 _ACEOF
44237
44238       REPLACE_UNSETENV=1
44239
44240
44241
44242
44243
44244
44245
44246
44247   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
44248
44249     fi
44250
44251         { $as_echo "$as_me:$LINENO: checking whether unsetenv works on duplicates" >&5
44252 $as_echo_n "checking whether unsetenv works on duplicates... " >&6; }
44253 if test "${gl_cv_func_unsetenv_works+set}" = set; then
44254   $as_echo_n "(cached) " >&6
44255 else
44256   if test "$cross_compiling" = yes; then
44257   gl_cv_func_unsetenv_works="guessing no"
44258 else
44259   cat >conftest.$ac_ext <<_ACEOF
44260 /* confdefs.h.  */
44261 _ACEOF
44262 cat confdefs.h >>conftest.$ac_ext
44263 cat >>conftest.$ac_ext <<_ACEOF
44264 /* end confdefs.h.  */
44265
44266        #include <stdlib.h>
44267
44268 int
44269 main ()
44270 {
44271
44272        char entry[] = "b=2";
44273        if (putenv ((char *) "a=1")) return 1;
44274        if (putenv (entry)) return 2;
44275        entry[0] = 'a';
44276        unsetenv ("a");
44277        if (getenv ("a")) return 3;
44278
44279   ;
44280   return 0;
44281 }
44282 _ACEOF
44283 rm -f conftest$ac_exeext
44284 if { (ac_try="$ac_link"
44285 case "(($ac_try" in
44286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44287   *) ac_try_echo=$ac_try;;
44288 esac
44289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44290 $as_echo "$ac_try_echo") >&5
44291   (eval "$ac_link") 2>&5
44292   ac_status=$?
44293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44294   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44295   { (case "(($ac_try" in
44296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44297   *) ac_try_echo=$ac_try;;
44298 esac
44299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44300 $as_echo "$ac_try_echo") >&5
44301   (eval "$ac_try") 2>&5
44302   ac_status=$?
44303   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44304   (exit $ac_status); }; }; then
44305   gl_cv_func_unsetenv_works=yes
44306 else
44307   $as_echo "$as_me: program exited with status $ac_status" >&5
44308 $as_echo "$as_me: failed program was:" >&5
44309 sed 's/^/| /' conftest.$ac_ext >&5
44310
44311 ( exit $ac_status )
44312 gl_cv_func_unsetenv_works=no
44313 fi
44314 rm -rf conftest.dSYM
44315 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44316 fi
44317
44318
44319 fi
44320 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unsetenv_works" >&5
44321 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
44322     if test "$gl_cv_func_unsetenv_works" != yes; then
44323       REPLACE_UNSETENV=1
44324
44325
44326
44327
44328
44329
44330
44331
44332   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
44333
44334     fi
44335   fi
44336
44337
44338
44339   GNULIB_UNSETENV=1
44340
44341
44342 cat >>confdefs.h <<\_ACEOF
44343 #define GNULIB_UNSETENV 1
44344 _ACEOF
44345
44346
44347
44348
44349
44350
44351
44352
44353
44354
44355
44356
44357   gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
44358
44359
44360
44361
44362
44363
44364
44365
44366
44367
44368
44369
44370
44371
44372
44373
44374
44375
44376
44377
44378   if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
44379                 { $as_echo "$as_me:$LINENO: checking whether futimesat handles NULL file" >&5
44380 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
44381 if test "${gl_cv_func_futimesat_works+set}" = set; then
44382   $as_echo_n "(cached) " >&6
44383 else
44384   touch conftest.file
44385        if test "$cross_compiling" = yes; then
44386   gl_cv_func_futimesat_works="guessing no"
44387 else
44388   cat >conftest.$ac_ext <<_ACEOF
44389 /* confdefs.h.  */
44390 _ACEOF
44391 cat confdefs.h >>conftest.$ac_ext
44392 cat >>conftest.$ac_ext <<_ACEOF
44393 /* end confdefs.h.  */
44394
44395 #include <stddef.h>
44396 #include <sys/times.h>
44397
44398 int
44399 main ()
44400 {
44401     int fd = open ("conftest.file", O_RDWR);
44402           if (fd < 0) return 1;
44403           if (futimesat (fd, NULL, NULL)) return 2;
44404
44405   ;
44406   return 0;
44407 }
44408 _ACEOF
44409 rm -f conftest$ac_exeext
44410 if { (ac_try="$ac_link"
44411 case "(($ac_try" in
44412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44413   *) ac_try_echo=$ac_try;;
44414 esac
44415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44416 $as_echo "$ac_try_echo") >&5
44417   (eval "$ac_link") 2>&5
44418   ac_status=$?
44419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44420   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44421   { (case "(($ac_try" in
44422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44423   *) ac_try_echo=$ac_try;;
44424 esac
44425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44426 $as_echo "$ac_try_echo") >&5
44427   (eval "$ac_try") 2>&5
44428   ac_status=$?
44429   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44430   (exit $ac_status); }; }; then
44431   gl_cv_func_futimesat_works=yes
44432 else
44433   $as_echo "$as_me: program exited with status $ac_status" >&5
44434 $as_echo "$as_me: failed program was:" >&5
44435 sed 's/^/| /' conftest.$ac_ext >&5
44436
44437 ( exit $ac_status )
44438 gl_cv_func_futimesat_works=no
44439 fi
44440 rm -rf conftest.dSYM
44441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44442 fi
44443
44444
44445       rm -f conftest.file
44446 fi
44447 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_futimesat_works" >&5
44448 $as_echo "$gl_cv_func_futimesat_works" >&6; }
44449     if test "$gl_cv_func_futimesat_works" != yes; then
44450
44451 cat >>confdefs.h <<\_ACEOF
44452 #define FUTIMESAT_NULL_BUG 1
44453 _ACEOF
44454
44455     fi
44456   fi
44457
44458
44459
44460
44461
44462
44463
44464
44465   if test $ac_cv_func_vasnprintf = no; then
44466
44467
44468
44469
44470
44471
44472
44473
44474
44475
44476
44477
44478
44479
44480
44481   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
44482
44483
44484
44485
44486
44487
44488
44489
44490
44491   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
44492
44493
44494
44495
44496
44497
44498
44499
44500
44501   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
44502
44503
44504
44505
44506
44507
44508
44509
44510
44511   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
44512
44513   if test $ac_cv_func_vasnprintf = yes; then
44514
44515 cat >>confdefs.h <<\_ACEOF
44516 #define REPLACE_VASNPRINTF 1
44517 _ACEOF
44518
44519   fi
44520
44521
44522
44523
44524
44525
44526
44527
44528
44529
44530   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
44531 $as_echo_n "checking for ptrdiff_t... " >&6; }
44532 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
44533   $as_echo_n "(cached) " >&6
44534 else
44535   ac_cv_type_ptrdiff_t=no
44536 cat >conftest.$ac_ext <<_ACEOF
44537 /* confdefs.h.  */
44538 _ACEOF
44539 cat confdefs.h >>conftest.$ac_ext
44540 cat >>conftest.$ac_ext <<_ACEOF
44541 /* end confdefs.h.  */
44542 $ac_includes_default
44543 int
44544 main ()
44545 {
44546 if (sizeof (ptrdiff_t))
44547        return 0;
44548   ;
44549   return 0;
44550 }
44551 _ACEOF
44552 rm -f conftest.$ac_objext
44553 if { (ac_try="$ac_compile"
44554 case "(($ac_try" in
44555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44556   *) ac_try_echo=$ac_try;;
44557 esac
44558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44559 $as_echo "$ac_try_echo") >&5
44560   (eval "$ac_compile") 2>conftest.er1
44561   ac_status=$?
44562   grep -v '^ *+' conftest.er1 >conftest.err
44563   rm -f conftest.er1
44564   cat conftest.err >&5
44565   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44566   (exit $ac_status); } && {
44567          test -z "$ac_c_werror_flag" ||
44568          test ! -s conftest.err
44569        } && test -s conftest.$ac_objext; then
44570   cat >conftest.$ac_ext <<_ACEOF
44571 /* confdefs.h.  */
44572 _ACEOF
44573 cat confdefs.h >>conftest.$ac_ext
44574 cat >>conftest.$ac_ext <<_ACEOF
44575 /* end confdefs.h.  */
44576 $ac_includes_default
44577 int
44578 main ()
44579 {
44580 if (sizeof ((ptrdiff_t)))
44581           return 0;
44582   ;
44583   return 0;
44584 }
44585 _ACEOF
44586 rm -f conftest.$ac_objext
44587 if { (ac_try="$ac_compile"
44588 case "(($ac_try" in
44589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44590   *) ac_try_echo=$ac_try;;
44591 esac
44592 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44593 $as_echo "$ac_try_echo") >&5
44594   (eval "$ac_compile") 2>conftest.er1
44595   ac_status=$?
44596   grep -v '^ *+' conftest.er1 >conftest.err
44597   rm -f conftest.er1
44598   cat conftest.err >&5
44599   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44600   (exit $ac_status); } && {
44601          test -z "$ac_c_werror_flag" ||
44602          test ! -s conftest.err
44603        } && test -s conftest.$ac_objext; then
44604   :
44605 else
44606   $as_echo "$as_me: failed program was:" >&5
44607 sed 's/^/| /' conftest.$ac_ext >&5
44608
44609         ac_cv_type_ptrdiff_t=yes
44610 fi
44611
44612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44613 else
44614   $as_echo "$as_me: failed program was:" >&5
44615 sed 's/^/| /' conftest.$ac_ext >&5
44616
44617
44618 fi
44619
44620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44621 fi
44622 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
44623 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
44624 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
44625   :
44626 else
44627
44628 cat >>confdefs.h <<\_ACEOF
44629 #define ptrdiff_t long
44630 _ACEOF
44631
44632
44633 fi
44634
44635
44636
44637
44638
44639
44640
44641   fi
44642
44643
44644
44645 for ac_func in vasprintf
44646 do
44647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44648 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44649 $as_echo_n "checking for $ac_func... " >&6; }
44650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44651   $as_echo_n "(cached) " >&6
44652 else
44653   cat >conftest.$ac_ext <<_ACEOF
44654 /* confdefs.h.  */
44655 _ACEOF
44656 cat confdefs.h >>conftest.$ac_ext
44657 cat >>conftest.$ac_ext <<_ACEOF
44658 /* end confdefs.h.  */
44659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44660    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44661 #define $ac_func innocuous_$ac_func
44662
44663 /* System header to define __stub macros and hopefully few prototypes,
44664     which can conflict with char $ac_func (); below.
44665     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44666     <limits.h> exists even on freestanding compilers.  */
44667
44668 #ifdef __STDC__
44669 # include <limits.h>
44670 #else
44671 # include <assert.h>
44672 #endif
44673
44674 #undef $ac_func
44675
44676 /* Override any GCC internal prototype to avoid an error.
44677    Use char because int might match the return type of a GCC
44678    builtin and then its argument prototype would still apply.  */
44679 #ifdef __cplusplus
44680 extern "C"
44681 #endif
44682 char $ac_func ();
44683 /* The GNU C library defines this for functions which it implements
44684     to always fail with ENOSYS.  Some functions are actually named
44685     something starting with __ and the normal name is an alias.  */
44686 #if defined __stub_$ac_func || defined __stub___$ac_func
44687 choke me
44688 #endif
44689
44690 int
44691 main ()
44692 {
44693 return $ac_func ();
44694   ;
44695   return 0;
44696 }
44697 _ACEOF
44698 rm -f conftest.$ac_objext conftest$ac_exeext
44699 if { (ac_try="$ac_link"
44700 case "(($ac_try" in
44701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44702   *) ac_try_echo=$ac_try;;
44703 esac
44704 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44705 $as_echo "$ac_try_echo") >&5
44706   (eval "$ac_link") 2>conftest.er1
44707   ac_status=$?
44708   grep -v '^ *+' conftest.er1 >conftest.err
44709   rm -f conftest.er1
44710   cat conftest.err >&5
44711   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44712   (exit $ac_status); } && {
44713          test -z "$ac_c_werror_flag" ||
44714          test ! -s conftest.err
44715        } && test -s conftest$ac_exeext && {
44716          test "$cross_compiling" = yes ||
44717          $as_test_x conftest$ac_exeext
44718        }; then
44719   eval "$as_ac_var=yes"
44720 else
44721   $as_echo "$as_me: failed program was:" >&5
44722 sed 's/^/| /' conftest.$ac_ext >&5
44723
44724         eval "$as_ac_var=no"
44725 fi
44726
44727 rm -rf conftest.dSYM
44728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44729       conftest$ac_exeext conftest.$ac_ext
44730 fi
44731 ac_res=`eval 'as_val=${'$as_ac_var'}
44732                  $as_echo "$as_val"'`
44733                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44734 $as_echo "$ac_res" >&6; }
44735 as_val=`eval 'as_val=${'$as_ac_var'}
44736                  $as_echo "$as_val"'`
44737    if test "x$as_val" = x""yes; then
44738   cat >>confdefs.h <<_ACEOF
44739 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44740 _ACEOF
44741
44742 fi
44743 done
44744
44745   if test $ac_cv_func_vasprintf = no; then
44746
44747
44748
44749
44750
44751
44752
44753
44754
44755   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
44756
44757
44758
44759
44760
44761
44762
44763
44764
44765   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
44766
44767
44768   if test $ac_cv_func_vasprintf = yes; then
44769     REPLACE_VASPRINTF=1
44770   else
44771     HAVE_VASPRINTF=0
44772   fi
44773
44774
44775
44776
44777
44778
44779
44780
44781   fi
44782
44783
44784
44785   GNULIB_VASPRINTF=1
44786
44787
44788 cat >>confdefs.h <<\_ACEOF
44789 #define GNULIB_VASPRINTF 1
44790 _ACEOF
44791
44792
44793
44794
44795
44796   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
44797
44798
44799
44800   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
44801
44802
44803 # Check whether --with-packager was given.
44804 if test "${with_packager+set}" = set; then
44805   withval=$with_packager;       case $withval in
44806         yes|no) ;;
44807         *)
44808 cat >>confdefs.h <<_ACEOF
44809 #define PACKAGE_PACKAGER "$withval"
44810 _ACEOF
44811  ;;
44812       esac
44813
44814 fi
44815
44816
44817
44818 # Check whether --with-packager-version was given.
44819 if test "${with_packager_version+set}" = set; then
44820   withval=$with_packager_version;       case $withval in
44821         yes|no) ;;
44822         *)
44823 cat >>confdefs.h <<_ACEOF
44824 #define PACKAGE_PACKAGER_VERSION "$withval"
44825 _ACEOF
44826  ;;
44827       esac
44828
44829 fi
44830
44831
44832
44833 # Check whether --with-packager-bug-reports was given.
44834 if test "${with_packager_bug_reports+set}" = set; then
44835   withval=$with_packager_bug_reports;       case $withval in
44836         yes|no) ;;
44837         *)
44838 cat >>confdefs.h <<_ACEOF
44839 #define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
44840 _ACEOF
44841  ;;
44842       esac
44843
44844 fi
44845
44846
44847   if test "X$with_packager" = "X" && \
44848      test "X$with_packager_version$with_packager_bug_reports" != "X"
44849   then
44850     { { $as_echo "$as_me:$LINENO: error: The --with-packager-{bug-reports,version} options require --with-packager" >&5
44851 $as_echo "$as_me: error: The --with-packager-{bug-reports,version} options require --with-packager" >&2;}
44852    { (exit 1); exit 1; }; }
44853   fi
44854
44855
44856
44857   gl_cv_func_vsnprintf_usable=no
44858
44859 for ac_func in vsnprintf
44860 do
44861 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
44862 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
44863 $as_echo_n "checking for $ac_func... " >&6; }
44864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
44865   $as_echo_n "(cached) " >&6
44866 else
44867   cat >conftest.$ac_ext <<_ACEOF
44868 /* confdefs.h.  */
44869 _ACEOF
44870 cat confdefs.h >>conftest.$ac_ext
44871 cat >>conftest.$ac_ext <<_ACEOF
44872 /* end confdefs.h.  */
44873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
44874    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
44875 #define $ac_func innocuous_$ac_func
44876
44877 /* System header to define __stub macros and hopefully few prototypes,
44878     which can conflict with char $ac_func (); below.
44879     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
44880     <limits.h> exists even on freestanding compilers.  */
44881
44882 #ifdef __STDC__
44883 # include <limits.h>
44884 #else
44885 # include <assert.h>
44886 #endif
44887
44888 #undef $ac_func
44889
44890 /* Override any GCC internal prototype to avoid an error.
44891    Use char because int might match the return type of a GCC
44892    builtin and then its argument prototype would still apply.  */
44893 #ifdef __cplusplus
44894 extern "C"
44895 #endif
44896 char $ac_func ();
44897 /* The GNU C library defines this for functions which it implements
44898     to always fail with ENOSYS.  Some functions are actually named
44899     something starting with __ and the normal name is an alias.  */
44900 #if defined __stub_$ac_func || defined __stub___$ac_func
44901 choke me
44902 #endif
44903
44904 int
44905 main ()
44906 {
44907 return $ac_func ();
44908   ;
44909   return 0;
44910 }
44911 _ACEOF
44912 rm -f conftest.$ac_objext conftest$ac_exeext
44913 if { (ac_try="$ac_link"
44914 case "(($ac_try" in
44915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44916   *) ac_try_echo=$ac_try;;
44917 esac
44918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44919 $as_echo "$ac_try_echo") >&5
44920   (eval "$ac_link") 2>conftest.er1
44921   ac_status=$?
44922   grep -v '^ *+' conftest.er1 >conftest.err
44923   rm -f conftest.er1
44924   cat conftest.err >&5
44925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44926   (exit $ac_status); } && {
44927          test -z "$ac_c_werror_flag" ||
44928          test ! -s conftest.err
44929        } && test -s conftest$ac_exeext && {
44930          test "$cross_compiling" = yes ||
44931          $as_test_x conftest$ac_exeext
44932        }; then
44933   eval "$as_ac_var=yes"
44934 else
44935   $as_echo "$as_me: failed program was:" >&5
44936 sed 's/^/| /' conftest.$ac_ext >&5
44937
44938         eval "$as_ac_var=no"
44939 fi
44940
44941 rm -rf conftest.dSYM
44942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
44943       conftest$ac_exeext conftest.$ac_ext
44944 fi
44945 ac_res=`eval 'as_val=${'$as_ac_var'}
44946                  $as_echo "$as_val"'`
44947                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44948 $as_echo "$ac_res" >&6; }
44949 as_val=`eval 'as_val=${'$as_ac_var'}
44950                  $as_echo "$as_val"'`
44951    if test "x$as_val" = x""yes; then
44952   cat >>confdefs.h <<_ACEOF
44953 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
44954 _ACEOF
44955
44956 fi
44957 done
44958
44959   if test $ac_cv_func_vsnprintf = yes; then
44960
44961
44962   { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
44963 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
44964 if test "${gl_cv_func_snprintf_size1+set}" = set; then
44965   $as_echo_n "(cached) " >&6
44966 else
44967
44968       if test "$cross_compiling" = yes; then
44969   gl_cv_func_snprintf_size1="guessing yes"
44970 else
44971   cat >conftest.$ac_ext <<_ACEOF
44972 /* confdefs.h.  */
44973 _ACEOF
44974 cat confdefs.h >>conftest.$ac_ext
44975 cat >>conftest.$ac_ext <<_ACEOF
44976 /* end confdefs.h.  */
44977
44978 #include <stdio.h>
44979 int main()
44980 {
44981   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
44982   snprintf (buf, 1, "%d", 12345);
44983   return buf[1] != 'E';
44984 }
44985 _ACEOF
44986 rm -f conftest$ac_exeext
44987 if { (ac_try="$ac_link"
44988 case "(($ac_try" in
44989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44990   *) ac_try_echo=$ac_try;;
44991 esac
44992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44993 $as_echo "$ac_try_echo") >&5
44994   (eval "$ac_link") 2>&5
44995   ac_status=$?
44996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44997   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44998   { (case "(($ac_try" in
44999   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45000   *) ac_try_echo=$ac_try;;
45001 esac
45002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45003 $as_echo "$ac_try_echo") >&5
45004   (eval "$ac_try") 2>&5
45005   ac_status=$?
45006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45007   (exit $ac_status); }; }; then
45008   gl_cv_func_snprintf_size1=yes
45009 else
45010   $as_echo "$as_me: program exited with status $ac_status" >&5
45011 $as_echo "$as_me: failed program was:" >&5
45012 sed 's/^/| /' conftest.$ac_ext >&5
45013
45014 ( exit $ac_status )
45015 gl_cv_func_snprintf_size1=no
45016 fi
45017 rm -rf conftest.dSYM
45018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45019 fi
45020
45021
45022
45023 fi
45024 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
45025 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
45026
45027     case "$gl_cv_func_snprintf_size1" in
45028       *yes)
45029         gl_cv_func_vsnprintf_usable=yes
45030         ;;
45031     esac
45032   fi
45033   if test $gl_cv_func_vsnprintf_usable = no; then
45034
45035
45036
45037
45038
45039
45040
45041
45042
45043
45044   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
45045
45046   if test $ac_cv_func_vsnprintf = yes; then
45047     REPLACE_VSNPRINTF=1
45048   fi
45049   :
45050
45051   fi
45052
45053
45054
45055
45056   if test $ac_cv_have_decl_vsnprintf = no; then
45057     HAVE_DECL_VSNPRINTF=0
45058   fi
45059
45060
45061
45062   GNULIB_VSNPRINTF=1
45063
45064
45065 cat >>confdefs.h <<\_ACEOF
45066 #define GNULIB_VSNPRINTF 1
45067 _ACEOF
45068
45069
45070
45071
45072
45073
45074
45075
45076
45077
45078
45079
45080
45081
45082
45083
45084
45085
45086
45087
45088
45089
45090
45091      if test $gl_cv_have_include_next = yes; then
45092        gl_cv_next_wchar_h='<'wchar.h'>'
45093      else
45094        { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
45095 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
45096 if test "${gl_cv_next_wchar_h+set}" = set; then
45097   $as_echo_n "(cached) " >&6
45098 else
45099
45100           if test $ac_cv_header_wchar_h = yes; then
45101             cat >conftest.$ac_ext <<_ACEOF
45102 /* confdefs.h.  */
45103 _ACEOF
45104 cat confdefs.h >>conftest.$ac_ext
45105 cat >>conftest.$ac_ext <<_ACEOF
45106 /* end confdefs.h.  */
45107 #include <wchar.h>
45108
45109 _ACEOF
45110                                                                                                 case "$host_os" in
45111               aix*) gl_absname_cpp="$ac_cpp -C" ;;
45112               *)    gl_absname_cpp="$ac_cpp" ;;
45113             esac
45114                                                 gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45115                sed -n '\#/wchar.h#{
45116                  s#.*"\(.*/wchar.h\)".*#\1#
45117                  s#^/[^/]#//&#
45118                  p
45119                  q
45120                }'`'"'
45121           else
45122             gl_cv_next_wchar_h='<'wchar.h'>'
45123           fi
45124
45125 fi
45126 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
45127 $as_echo "$gl_cv_next_wchar_h" >&6; }
45128      fi
45129      NEXT_WCHAR_H=$gl_cv_next_wchar_h
45130
45131      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45132        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45133        gl_next_as_first_directive='<'wchar.h'>'
45134      else
45135        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45136        gl_next_as_first_directive=$gl_cv_next_wchar_h
45137      fi
45138      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
45139
45140
45141
45142   if test $ac_cv_header_wchar_h = yes; then
45143     HAVE_WCHAR_H=1
45144   else
45145     HAVE_WCHAR_H=0
45146   fi
45147
45148
45149
45150   if test $gt_cv_c_wint_t = yes; then
45151     HAVE_WINT_T=1
45152   else
45153     HAVE_WINT_T=0
45154   fi
45155
45156
45157
45158
45159
45160
45161
45162
45163
45164
45165
45166
45167
45168
45169   for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb     wcsrtombs wcsnrtombs wcwidth; do
45170     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
45171     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
45172 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
45173 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
45174   $as_echo_n "(cached) " >&6
45175 else
45176   cat >conftest.$ac_ext <<_ACEOF
45177 /* confdefs.h.  */
45178 _ACEOF
45179 cat confdefs.h >>conftest.$ac_ext
45180 cat >>conftest.$ac_ext <<_ACEOF
45181 /* end confdefs.h.  */
45182
45183 /* Some systems require additional headers.  */
45184 #ifndef __GLIBC__
45185 # include <stddef.h>
45186 # include <stdio.h>
45187 # include <time.h>
45188 #endif
45189 #include <wchar.h>
45190
45191 int
45192 main ()
45193 {
45194 #undef $gl_func
45195   (void) $gl_func;
45196   ;
45197   return 0;
45198 }
45199 _ACEOF
45200 rm -f conftest.$ac_objext
45201 if { (ac_try="$ac_compile"
45202 case "(($ac_try" in
45203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45204   *) ac_try_echo=$ac_try;;
45205 esac
45206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45207 $as_echo "$ac_try_echo") >&5
45208   (eval "$ac_compile") 2>conftest.er1
45209   ac_status=$?
45210   grep -v '^ *+' conftest.er1 >conftest.err
45211   rm -f conftest.er1
45212   cat conftest.err >&5
45213   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45214   (exit $ac_status); } && {
45215          test -z "$ac_c_werror_flag" ||
45216          test ! -s conftest.err
45217        } && test -s conftest.$ac_objext; then
45218   eval "$as_gl_Symbol=yes"
45219 else
45220   $as_echo "$as_me: failed program was:" >&5
45221 sed 's/^/| /' conftest.$ac_ext >&5
45222
45223         eval "$as_gl_Symbol=no"
45224 fi
45225
45226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45227 fi
45228 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
45229                  $as_echo "$as_val"'`
45230                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45231 $as_echo "$ac_res" >&6; }
45232      as_val=`eval 'as_val=${'$as_gl_Symbol'}
45233                  $as_echo "$as_val"'`
45234    if test "x$as_val" = x""yes; then
45235   cat >>confdefs.h <<_ACEOF
45236 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
45237 _ACEOF
45238
45239                      eval ac_cv_have_decl_$gl_func=yes
45240 fi
45241
45242       done
45243
45244
45245
45246
45247
45248
45249
45250
45251
45252
45253
45254
45255
45256
45257
45258
45259
45260
45261
45262
45263
45264
45265   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
45266
45267
45268
45269      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
45270 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
45271 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
45272   $as_echo_n "(cached) " >&6
45273 else
45274
45275                   case "$host_os" in
45276               # Guess no on AIX and OSF/1.
45277         osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
45278               # Guess yes otherwise.
45279         *)    gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
45280       esac
45281       if test $LOCALE_JA != none; then
45282         if test "$cross_compiling" = yes; then
45283   :
45284 else
45285   cat >conftest.$ac_ext <<_ACEOF
45286 /* confdefs.h.  */
45287 _ACEOF
45288 cat confdefs.h >>conftest.$ac_ext
45289 cat >>conftest.$ac_ext <<_ACEOF
45290 /* end confdefs.h.  */
45291
45292 #include <locale.h>
45293 #include <string.h>
45294 #include <wchar.h>
45295 int main ()
45296 {
45297   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
45298     {
45299       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
45300       mbstate_t state;
45301       wchar_t wc;
45302
45303       memset (&state, '\0', sizeof (mbstate_t));
45304       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
45305         if (mbsinit (&state))
45306           return 1;
45307     }
45308   return 0;
45309 }
45310 _ACEOF
45311 rm -f conftest$ac_exeext
45312 if { (ac_try="$ac_link"
45313 case "(($ac_try" in
45314   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45315   *) ac_try_echo=$ac_try;;
45316 esac
45317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45318 $as_echo "$ac_try_echo") >&5
45319   (eval "$ac_link") 2>&5
45320   ac_status=$?
45321   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45322   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45323   { (case "(($ac_try" in
45324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45325   *) ac_try_echo=$ac_try;;
45326 esac
45327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45328 $as_echo "$ac_try_echo") >&5
45329   (eval "$ac_try") 2>&5
45330   ac_status=$?
45331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45332   (exit $ac_status); }; }; then
45333   gl_cv_func_mbrtowc_incomplete_state=yes
45334 else
45335   $as_echo "$as_me: program exited with status $ac_status" >&5
45336 $as_echo "$as_me: failed program was:" >&5
45337 sed 's/^/| /' conftest.$ac_ext >&5
45338
45339 ( exit $ac_status )
45340 gl_cv_func_mbrtowc_incomplete_state=no
45341 fi
45342 rm -rf conftest.dSYM
45343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45344 fi
45345
45346
45347       fi
45348
45349 fi
45350 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
45351 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
45352
45353
45354
45355
45356      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
45357 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
45358 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
45359   $as_echo_n "(cached) " >&6
45360 else
45361
45362                   case "$host_os" in
45363                     # Guess no on Solaris 8.
45364         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
45365                     # Guess yes otherwise.
45366         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
45367       esac
45368       if test $LOCALE_ZH_CN != none; then
45369         if test "$cross_compiling" = yes; then
45370   :
45371 else
45372   cat >conftest.$ac_ext <<_ACEOF
45373 /* confdefs.h.  */
45374 _ACEOF
45375 cat confdefs.h >>conftest.$ac_ext
45376 cat >>conftest.$ac_ext <<_ACEOF
45377 /* end confdefs.h.  */
45378
45379 #include <locale.h>
45380 #include <stdlib.h>
45381 #include <string.h>
45382 #include <wchar.h>
45383 int main ()
45384 {
45385   /* This fails on Solaris 8:
45386      mbrtowc returns 2, and sets wc to 0x00F0.
45387      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
45388   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
45389     {
45390       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
45391       mbstate_t state;
45392       wchar_t wc;
45393
45394       memset (&state, '\0', sizeof (mbstate_t));
45395       if (mbrtowc (&wc, input + 3, 6, &state) != 4
45396           && mbtowc (&wc, input + 3, 6) == 4)
45397         return 1;
45398     }
45399   return 0;
45400 }
45401 _ACEOF
45402 rm -f conftest$ac_exeext
45403 if { (ac_try="$ac_link"
45404 case "(($ac_try" in
45405   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45406   *) ac_try_echo=$ac_try;;
45407 esac
45408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45409 $as_echo "$ac_try_echo") >&5
45410   (eval "$ac_link") 2>&5
45411   ac_status=$?
45412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45413   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45414   { (case "(($ac_try" in
45415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45416   *) ac_try_echo=$ac_try;;
45417 esac
45418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45419 $as_echo "$ac_try_echo") >&5
45420   (eval "$ac_try") 2>&5
45421   ac_status=$?
45422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45423   (exit $ac_status); }; }; then
45424   gl_cv_func_mbrtowc_sanitycheck=yes
45425 else
45426   $as_echo "$as_me: program exited with status $ac_status" >&5
45427 $as_echo "$as_me: failed program was:" >&5
45428 sed 's/^/| /' conftest.$ac_ext >&5
45429
45430 ( exit $ac_status )
45431 gl_cv_func_mbrtowc_sanitycheck=no
45432 fi
45433 rm -rf conftest.dSYM
45434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45435 fi
45436
45437
45438       fi
45439
45440 fi
45441 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
45442 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
45443
45444     REPLACE_MBSTATE_T=0
45445     case "$gl_cv_func_mbrtowc_incomplete_state" in
45446       *yes) ;;
45447       *) REPLACE_MBSTATE_T=1 ;;
45448     esac
45449     case "$gl_cv_func_mbrtowc_sanitycheck" in
45450       *yes) ;;
45451       *) REPLACE_MBSTATE_T=1 ;;
45452     esac
45453   else
45454     REPLACE_MBSTATE_T=1
45455   fi
45456   if test $REPLACE_MBSTATE_T = 1; then
45457
45458     :
45459
45460   fi
45461
45462   if test $REPLACE_MBSTATE_T = 1; then
45463     REPLACE_WCRTOMB=1
45464   fi
45465
45466
45467
45468
45469
45470
45471   if test $ac_cv_func_wcrtomb = no; then
45472     HAVE_WCRTOMB=0
45473   fi
45474   if test $HAVE_WCRTOMB != 0 && test $REPLACE_WCRTOMB != 1; then
45475
45476
45477
45478
45479
45480          { $as_echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
45481 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
45482 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then
45483   $as_echo_n "(cached) " >&6
45484 else
45485
45486                         case "$host_os" in
45487                                    # Guess no on AIX 4, OSF/1 and Solaris.
45488           aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
45489                                    # Guess yes otherwise.
45490           *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
45491         esac
45492         if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
45493           if test "$cross_compiling" = yes; then
45494   :
45495 else
45496   cat >conftest.$ac_ext <<_ACEOF
45497 /* confdefs.h.  */
45498 _ACEOF
45499 cat confdefs.h >>conftest.$ac_ext
45500 cat >>conftest.$ac_ext <<_ACEOF
45501 /* end confdefs.h.  */
45502
45503 #include <locale.h>
45504 #include <stdio.h>
45505 #include <string.h>
45506 #include <wchar.h>
45507 int main ()
45508 {
45509   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
45510     {
45511       if (wcrtomb (NULL, 0, NULL) != 1)
45512         return 1;
45513     }
45514   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
45515     {
45516       if (wcrtomb (NULL, 0, NULL) != 1)
45517         return 1;
45518     }
45519   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
45520     {
45521       if (wcrtomb (NULL, 0, NULL) != 1)
45522         return 1;
45523     }
45524   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
45525     {
45526       if (wcrtomb (NULL, 0, NULL) != 1)
45527         return 1;
45528     }
45529   return 0;
45530 }
45531 _ACEOF
45532 rm -f conftest$ac_exeext
45533 if { (ac_try="$ac_link"
45534 case "(($ac_try" in
45535   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45536   *) ac_try_echo=$ac_try;;
45537 esac
45538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45539 $as_echo "$ac_try_echo") >&5
45540   (eval "$ac_link") 2>&5
45541   ac_status=$?
45542   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45543   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45544   { (case "(($ac_try" in
45545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45546   *) ac_try_echo=$ac_try;;
45547 esac
45548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45549 $as_echo "$ac_try_echo") >&5
45550   (eval "$ac_try") 2>&5
45551   ac_status=$?
45552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45553   (exit $ac_status); }; }; then
45554   gl_cv_func_wcrtomb_retval=yes
45555 else
45556   $as_echo "$as_me: program exited with status $ac_status" >&5
45557 $as_echo "$as_me: failed program was:" >&5
45558 sed 's/^/| /' conftest.$ac_ext >&5
45559
45560 ( exit $ac_status )
45561 gl_cv_func_wcrtomb_retval=no
45562 fi
45563 rm -rf conftest.dSYM
45564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45565 fi
45566
45567
45568         fi
45569
45570 fi
45571 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
45572 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
45573     case "$gl_cv_func_wcrtomb_retval" in
45574       *yes) ;;
45575       *) REPLACE_WCRTOMB=1 ;;
45576     esac
45577   fi
45578   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
45579
45580     :
45581
45582
45583
45584
45585
45586
45587
45588
45589
45590   gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
45591
45592
45593   :
45594
45595   fi
45596
45597
45598
45599   GNULIB_WCRTOMB=1
45600
45601
45602 cat >>confdefs.h <<\_ACEOF
45603 #define GNULIB_WCRTOMB 1
45604 _ACEOF
45605
45606
45607
45608
45609
45610
45611
45612
45613
45614
45615
45616
45617   if test $ac_cv_func_iswcntrl = yes; then
45618     HAVE_ISWCNTRL=1
45619   else
45620     HAVE_ISWCNTRL=0
45621   fi
45622
45623
45624
45625
45626
45627
45628
45629
45630
45631
45632   if test $gt_cv_c_wint_t = yes; then
45633     HAVE_WINT_T=1
45634   else
45635     HAVE_WINT_T=0
45636   fi
45637
45638
45639   if test $ac_cv_header_wctype_h = yes; then
45640     if test $ac_cv_func_iswcntrl = yes; then
45641                   { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
45642 $as_echo_n "checking whether iswcntrl works... " >&6; }
45643 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
45644   $as_echo_n "(cached) " >&6
45645 else
45646
45647           if test "$cross_compiling" = yes; then
45648   cat >conftest.$ac_ext <<_ACEOF
45649 /* confdefs.h.  */
45650 _ACEOF
45651 cat confdefs.h >>conftest.$ac_ext
45652 cat >>conftest.$ac_ext <<_ACEOF
45653 /* end confdefs.h.  */
45654 #include <stdlib.h>
45655                           #if __GNU_LIBRARY__ == 1
45656                           Linux libc5 i18n is broken.
45657                           #endif
45658 int
45659 main ()
45660 {
45661
45662   ;
45663   return 0;
45664 }
45665 _ACEOF
45666 rm -f conftest.$ac_objext
45667 if { (ac_try="$ac_compile"
45668 case "(($ac_try" in
45669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45670   *) ac_try_echo=$ac_try;;
45671 esac
45672 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45673 $as_echo "$ac_try_echo") >&5
45674   (eval "$ac_compile") 2>conftest.er1
45675   ac_status=$?
45676   grep -v '^ *+' conftest.er1 >conftest.err
45677   rm -f conftest.er1
45678   cat conftest.err >&5
45679   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45680   (exit $ac_status); } && {
45681          test -z "$ac_c_werror_flag" ||
45682          test ! -s conftest.err
45683        } && test -s conftest.$ac_objext; then
45684   gl_cv_func_iswcntrl_works=yes
45685 else
45686   $as_echo "$as_me: failed program was:" >&5
45687 sed 's/^/| /' conftest.$ac_ext >&5
45688
45689         gl_cv_func_iswcntrl_works=no
45690 fi
45691
45692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45693
45694 else
45695   cat >conftest.$ac_ext <<_ACEOF
45696 /* confdefs.h.  */
45697 _ACEOF
45698 cat confdefs.h >>conftest.$ac_ext
45699 cat >>conftest.$ac_ext <<_ACEOF
45700 /* end confdefs.h.  */
45701
45702                             #include <stddef.h>
45703                             #include <stdio.h>
45704                             #include <time.h>
45705                             #include <wchar.h>
45706                             #include <wctype.h>
45707                             int main () { return iswprint ('x') == 0; }
45708 _ACEOF
45709 rm -f conftest$ac_exeext
45710 if { (ac_try="$ac_link"
45711 case "(($ac_try" in
45712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45713   *) ac_try_echo=$ac_try;;
45714 esac
45715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45716 $as_echo "$ac_try_echo") >&5
45717   (eval "$ac_link") 2>&5
45718   ac_status=$?
45719   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45720   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45721   { (case "(($ac_try" in
45722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45723   *) ac_try_echo=$ac_try;;
45724 esac
45725 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45726 $as_echo "$ac_try_echo") >&5
45727   (eval "$ac_try") 2>&5
45728   ac_status=$?
45729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45730   (exit $ac_status); }; }; then
45731   gl_cv_func_iswcntrl_works=yes
45732 else
45733   $as_echo "$as_me: program exited with status $ac_status" >&5
45734 $as_echo "$as_me: failed program was:" >&5
45735 sed 's/^/| /' conftest.$ac_ext >&5
45736
45737 ( exit $ac_status )
45738 gl_cv_func_iswcntrl_works=no
45739 fi
45740 rm -rf conftest.dSYM
45741 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
45742 fi
45743
45744
45745
45746 fi
45747 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
45748 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
45749     fi
45750
45751
45752
45753
45754
45755
45756
45757
45758
45759
45760
45761      if test $gl_cv_have_include_next = yes; then
45762        gl_cv_next_wctype_h='<'wctype.h'>'
45763      else
45764        { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
45765 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
45766 if test "${gl_cv_next_wctype_h+set}" = set; then
45767   $as_echo_n "(cached) " >&6
45768 else
45769
45770           if test $ac_cv_header_wctype_h = yes; then
45771             cat >conftest.$ac_ext <<_ACEOF
45772 /* confdefs.h.  */
45773 _ACEOF
45774 cat confdefs.h >>conftest.$ac_ext
45775 cat >>conftest.$ac_ext <<_ACEOF
45776 /* end confdefs.h.  */
45777 #include <wctype.h>
45778
45779 _ACEOF
45780                                                                                                 case "$host_os" in
45781               aix*) gl_absname_cpp="$ac_cpp -C" ;;
45782               *)    gl_absname_cpp="$ac_cpp" ;;
45783             esac
45784                                                 gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45785                sed -n '\#/wctype.h#{
45786                  s#.*"\(.*/wctype.h\)".*#\1#
45787                  s#^/[^/]#//&#
45788                  p
45789                  q
45790                }'`'"'
45791           else
45792             gl_cv_next_wctype_h='<'wctype.h'>'
45793           fi
45794
45795 fi
45796 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
45797 $as_echo "$gl_cv_next_wctype_h" >&6; }
45798      fi
45799      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
45800
45801      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45802        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45803        gl_next_as_first_directive='<'wctype.h'>'
45804      else
45805        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45806        gl_next_as_first_directive=$gl_cv_next_wctype_h
45807      fi
45808      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
45809
45810
45811
45812     HAVE_WCTYPE_H=1
45813   else
45814     HAVE_WCTYPE_H=0
45815   fi
45816
45817
45818   if test "$gl_cv_func_iswcntrl_works" = no; then
45819     REPLACE_ISWCNTRL=1
45820   else
45821     REPLACE_ISWCNTRL=0
45822   fi
45823
45824
45825
45826
45827
45828
45829
45830
45831
45832
45833
45834
45835
45836
45837
45838
45839
45840
45841
45842
45843
45844
45845
45846   { $as_echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
45847 $as_echo_n "checking whether wcwidth is declared... " >&6; }
45848 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
45849   $as_echo_n "(cached) " >&6
45850 else
45851   cat >conftest.$ac_ext <<_ACEOF
45852 /* confdefs.h.  */
45853 _ACEOF
45854 cat confdefs.h >>conftest.$ac_ext
45855 cat >>conftest.$ac_ext <<_ACEOF
45856 /* end confdefs.h.  */
45857
45858 /* AIX 3.2.5 declares wcwidth in <string.h>. */
45859 #include <string.h>
45860 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45861    <wchar.h>.
45862    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
45863    before <wchar.h>.  */
45864 #include <stddef.h>
45865 #include <stdio.h>
45866 #include <time.h>
45867 #include <wchar.h>
45868
45869
45870 int
45871 main ()
45872 {
45873 #ifndef wcwidth
45874   (void) wcwidth;
45875 #endif
45876
45877   ;
45878   return 0;
45879 }
45880 _ACEOF
45881 rm -f conftest.$ac_objext
45882 if { (ac_try="$ac_compile"
45883 case "(($ac_try" in
45884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45885   *) ac_try_echo=$ac_try;;
45886 esac
45887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45888 $as_echo "$ac_try_echo") >&5
45889   (eval "$ac_compile") 2>conftest.er1
45890   ac_status=$?
45891   grep -v '^ *+' conftest.er1 >conftest.err
45892   rm -f conftest.er1
45893   cat conftest.err >&5
45894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45895   (exit $ac_status); } && {
45896          test -z "$ac_c_werror_flag" ||
45897          test ! -s conftest.err
45898        } && test -s conftest.$ac_objext; then
45899   ac_cv_have_decl_wcwidth=yes
45900 else
45901   $as_echo "$as_me: failed program was:" >&5
45902 sed 's/^/| /' conftest.$ac_ext >&5
45903
45904         ac_cv_have_decl_wcwidth=no
45905 fi
45906
45907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45908 fi
45909 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
45910 $as_echo "$ac_cv_have_decl_wcwidth" >&6; }
45911 if test "x$ac_cv_have_decl_wcwidth" = x""yes; then
45912
45913 cat >>confdefs.h <<_ACEOF
45914 #define HAVE_DECL_WCWIDTH 1
45915 _ACEOF
45916
45917
45918 else
45919   cat >>confdefs.h <<_ACEOF
45920 #define HAVE_DECL_WCWIDTH 0
45921 _ACEOF
45922
45923
45924 fi
45925
45926
45927   if test $ac_cv_have_decl_wcwidth != yes; then
45928     HAVE_DECL_WCWIDTH=0
45929   fi
45930
45931   if test $ac_cv_func_wcwidth = no; then
45932     REPLACE_WCWIDTH=1
45933   else
45934                 { $as_echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
45935 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
45936 if test "${gl_cv_func_wcwidth_works+set}" = set; then
45937   $as_echo_n "(cached) " >&6
45938 else
45939
45940         if test "$cross_compiling" = yes; then
45941
45942            case "$host_os" in
45943                      # Guess yes on glibc systems.
45944              *-gnu*) gl_cv_func_wcwidth_works="guessing yes";;
45945              *)      gl_cv_func_wcwidth_works="guessing no";;
45946            esac
45947
45948 else
45949   cat >conftest.$ac_ext <<_ACEOF
45950 /* confdefs.h.  */
45951 _ACEOF
45952 cat confdefs.h >>conftest.$ac_ext
45953 cat >>conftest.$ac_ext <<_ACEOF
45954 /* end confdefs.h.  */
45955
45956 #include <locale.h>
45957 /* AIX 3.2.5 declares wcwidth in <string.h>. */
45958 #include <string.h>
45959 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
45960    <wchar.h>.
45961    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
45962    before <wchar.h>.  */
45963 #include <stddef.h>
45964 #include <stdio.h>
45965 #include <time.h>
45966 #include <wchar.h>
45967 #if !HAVE_DECL_WCWIDTH
45968 extern
45969 # ifdef __cplusplus
45970 "C"
45971 # endif
45972 int wcwidth (int);
45973 #endif
45974 int main ()
45975 {
45976   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
45977     if (wcwidth (0x0301) > 0 || wcwidth (0x200B) > 0)
45978       return 1;
45979   return 0;
45980 }
45981 _ACEOF
45982 rm -f conftest$ac_exeext
45983 if { (ac_try="$ac_link"
45984 case "(($ac_try" in
45985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45986   *) ac_try_echo=$ac_try;;
45987 esac
45988 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45989 $as_echo "$ac_try_echo") >&5
45990   (eval "$ac_link") 2>&5
45991   ac_status=$?
45992   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45993   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
45994   { (case "(($ac_try" in
45995   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45996   *) ac_try_echo=$ac_try;;
45997 esac
45998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45999 $as_echo "$ac_try_echo") >&5
46000   (eval "$ac_try") 2>&5
46001   ac_status=$?
46002   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46003   (exit $ac_status); }; }; then
46004   gl_cv_func_wcwidth_works=yes
46005 else
46006   $as_echo "$as_me: program exited with status $ac_status" >&5
46007 $as_echo "$as_me: failed program was:" >&5
46008 sed 's/^/| /' conftest.$ac_ext >&5
46009
46010 ( exit $ac_status )
46011 gl_cv_func_wcwidth_works=no
46012 fi
46013 rm -rf conftest.dSYM
46014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46015 fi
46016
46017
46018
46019 fi
46020 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
46021 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
46022     case "$gl_cv_func_wcwidth_works" in
46023       *yes) ;;
46024       *no) REPLACE_WCWIDTH=1 ;;
46025     esac
46026   fi
46027   if test $REPLACE_WCWIDTH = 1; then
46028
46029
46030
46031
46032
46033
46034
46035
46036   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
46037
46038   fi
46039
46040   if test $REPLACE_WCWIDTH = 1 || test $HAVE_DECL_WCWIDTH = 0; then
46041
46042     :
46043
46044   fi
46045
46046
46047
46048   GNULIB_WCWIDTH=1
46049
46050
46051 cat >>confdefs.h <<\_ACEOF
46052 #define GNULIB_WCWIDTH 1
46053 _ACEOF
46054
46055
46056
46057
46058
46059
46060
46061
46062
46063   GNULIB_WRITE=1
46064
46065
46066 cat >>confdefs.h <<\_ACEOF
46067 #define GNULIB_WRITE 1
46068 _ACEOF
46069
46070
46071
46072
46073
46074
46075
46076
46077
46078
46079
46080
46081   gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
46082
46083
46084
46085
46086   :
46087
46088
46089   :
46090
46091
46092
46093
46094
46095
46096
46097
46098
46099
46100
46101   gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
46102
46103
46104
46105
46106
46107
46108
46109
46110 for ac_header in stdint.h
46111 do
46112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46114   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
46115 $as_echo_n "checking for $ac_header... " >&6; }
46116 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46117   $as_echo_n "(cached) " >&6
46118 fi
46119 ac_res=`eval 'as_val=${'$as_ac_Header'}
46120                  $as_echo "$as_val"'`
46121                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46122 $as_echo "$ac_res" >&6; }
46123 else
46124   # Is the header compilable?
46125 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
46126 $as_echo_n "checking $ac_header usability... " >&6; }
46127 cat >conftest.$ac_ext <<_ACEOF
46128 /* confdefs.h.  */
46129 _ACEOF
46130 cat confdefs.h >>conftest.$ac_ext
46131 cat >>conftest.$ac_ext <<_ACEOF
46132 /* end confdefs.h.  */
46133 $ac_includes_default
46134 #include <$ac_header>
46135 _ACEOF
46136 rm -f conftest.$ac_objext
46137 if { (ac_try="$ac_compile"
46138 case "(($ac_try" in
46139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46140   *) ac_try_echo=$ac_try;;
46141 esac
46142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46143 $as_echo "$ac_try_echo") >&5
46144   (eval "$ac_compile") 2>conftest.er1
46145   ac_status=$?
46146   grep -v '^ *+' conftest.er1 >conftest.err
46147   rm -f conftest.er1
46148   cat conftest.err >&5
46149   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46150   (exit $ac_status); } && {
46151          test -z "$ac_c_werror_flag" ||
46152          test ! -s conftest.err
46153        } && test -s conftest.$ac_objext; then
46154   ac_header_compiler=yes
46155 else
46156   $as_echo "$as_me: failed program was:" >&5
46157 sed 's/^/| /' conftest.$ac_ext >&5
46158
46159         ac_header_compiler=no
46160 fi
46161
46162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46163 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46164 $as_echo "$ac_header_compiler" >&6; }
46165
46166 # Is the header present?
46167 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
46168 $as_echo_n "checking $ac_header presence... " >&6; }
46169 cat >conftest.$ac_ext <<_ACEOF
46170 /* confdefs.h.  */
46171 _ACEOF
46172 cat confdefs.h >>conftest.$ac_ext
46173 cat >>conftest.$ac_ext <<_ACEOF
46174 /* end confdefs.h.  */
46175 #include <$ac_header>
46176 _ACEOF
46177 if { (ac_try="$ac_cpp conftest.$ac_ext"
46178 case "(($ac_try" in
46179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46180   *) ac_try_echo=$ac_try;;
46181 esac
46182 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46183 $as_echo "$ac_try_echo") >&5
46184   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46185   ac_status=$?
46186   grep -v '^ *+' conftest.er1 >conftest.err
46187   rm -f conftest.er1
46188   cat conftest.err >&5
46189   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46190   (exit $ac_status); } >/dev/null && {
46191          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46192          test ! -s conftest.err
46193        }; then
46194   ac_header_preproc=yes
46195 else
46196   $as_echo "$as_me: failed program was:" >&5
46197 sed 's/^/| /' conftest.$ac_ext >&5
46198
46199   ac_header_preproc=no
46200 fi
46201
46202 rm -f conftest.err conftest.$ac_ext
46203 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46204 $as_echo "$ac_header_preproc" >&6; }
46205
46206 # So?  What about this header?
46207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46208   yes:no: )
46209     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46210 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46213     ac_header_preproc=yes
46214     ;;
46215   no:yes:* )
46216     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46217 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46218     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46219 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46221 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46223 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46225 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46227 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46228     ( cat <<\_ASBOX
46229 ## ------------------------------ ##
46230 ## Report this to bug-tar@gnu.org ##
46231 ## ------------------------------ ##
46232 _ASBOX
46233      ) | sed "s/^/$as_me: WARNING:     /" >&2
46234     ;;
46235 esac
46236 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
46237 $as_echo_n "checking for $ac_header... " >&6; }
46238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46239   $as_echo_n "(cached) " >&6
46240 else
46241   eval "$as_ac_Header=\$ac_header_preproc"
46242 fi
46243 ac_res=`eval 'as_val=${'$as_ac_Header'}
46244                  $as_echo "$as_val"'`
46245                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46246 $as_echo "$ac_res" >&6; }
46247
46248 fi
46249 as_val=`eval 'as_val=${'$as_ac_Header'}
46250                  $as_echo "$as_val"'`
46251    if test "x$as_val" = x""yes; then
46252   cat >>confdefs.h <<_ACEOF
46253 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46254 _ACEOF
46255
46256 fi
46257
46258 done
46259
46260
46261
46262
46263   :
46264
46265
46266
46267
46268
46269
46270
46271
46272
46273
46274
46275   gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
46276
46277
46278
46279
46280
46281
46282
46283
46284
46285   gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
46286
46287
46288
46289
46290
46291
46292
46293
46294
46295   gl_LIBOBJS="$gl_LIBOBJS xstrtol-error.$ac_objext"
46296
46297
46298
46299
46300
46301
46302
46303   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
46304
46305
46306
46307
46308
46309
46310
46311
46312
46313
46314   gltests_libdeps=
46315   gltests_ltlibdeps=
46316
46317
46318
46319
46320
46321
46322
46323
46324
46325   gl_source_base='tests'
46326
46327
46328
46329
46330
46331
46332
46333   LIBGNU_LIBDEPS="$gl_libdeps"
46334
46335   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
46336
46337
46338 # paxutils modules
46339
46340
46341
46342
46343
46344
46345
46346
46347 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
46348 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
46349 if test "${ac_cv_header_time+set}" = set; then
46350   $as_echo_n "(cached) " >&6
46351 else
46352   cat >conftest.$ac_ext <<_ACEOF
46353 /* confdefs.h.  */
46354 _ACEOF
46355 cat confdefs.h >>conftest.$ac_ext
46356 cat >>conftest.$ac_ext <<_ACEOF
46357 /* end confdefs.h.  */
46358 #include <sys/types.h>
46359 #include <sys/time.h>
46360 #include <time.h>
46361
46362 int
46363 main ()
46364 {
46365 if ((struct tm *) 0)
46366 return 0;
46367   ;
46368   return 0;
46369 }
46370 _ACEOF
46371 rm -f conftest.$ac_objext
46372 if { (ac_try="$ac_compile"
46373 case "(($ac_try" in
46374   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46375   *) ac_try_echo=$ac_try;;
46376 esac
46377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46378 $as_echo "$ac_try_echo") >&5
46379   (eval "$ac_compile") 2>conftest.er1
46380   ac_status=$?
46381   grep -v '^ *+' conftest.er1 >conftest.err
46382   rm -f conftest.er1
46383   cat conftest.err >&5
46384   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46385   (exit $ac_status); } && {
46386          test -z "$ac_c_werror_flag" ||
46387          test ! -s conftest.err
46388        } && test -s conftest.$ac_objext; then
46389   ac_cv_header_time=yes
46390 else
46391   $as_echo "$as_me: failed program was:" >&5
46392 sed 's/^/| /' conftest.$ac_ext >&5
46393
46394         ac_cv_header_time=no
46395 fi
46396
46397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46398 fi
46399 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
46400 $as_echo "$ac_cv_header_time" >&6; }
46401 if test $ac_cv_header_time = yes; then
46402
46403 cat >>confdefs.h <<\_ACEOF
46404 #define TIME_WITH_SYS_TIME 1
46405 _ACEOF
46406
46407 fi
46408
46409 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
46410 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
46411 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
46412   $as_echo_n "(cached) " >&6
46413 else
46414   cat >conftest.$ac_ext <<_ACEOF
46415 /* confdefs.h.  */
46416 _ACEOF
46417 cat confdefs.h >>conftest.$ac_ext
46418 cat >>conftest.$ac_ext <<_ACEOF
46419 /* end confdefs.h.  */
46420 $ac_includes_default
46421 int
46422 main ()
46423 {
46424 static struct stat ac_aggr;
46425 if (ac_aggr.st_blksize)
46426 return 0;
46427   ;
46428   return 0;
46429 }
46430 _ACEOF
46431 rm -f conftest.$ac_objext
46432 if { (ac_try="$ac_compile"
46433 case "(($ac_try" in
46434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46435   *) ac_try_echo=$ac_try;;
46436 esac
46437 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46438 $as_echo "$ac_try_echo") >&5
46439   (eval "$ac_compile") 2>conftest.er1
46440   ac_status=$?
46441   grep -v '^ *+' conftest.er1 >conftest.err
46442   rm -f conftest.er1
46443   cat conftest.err >&5
46444   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46445   (exit $ac_status); } && {
46446          test -z "$ac_c_werror_flag" ||
46447          test ! -s conftest.err
46448        } && test -s conftest.$ac_objext; then
46449   ac_cv_member_struct_stat_st_blksize=yes
46450 else
46451   $as_echo "$as_me: failed program was:" >&5
46452 sed 's/^/| /' conftest.$ac_ext >&5
46453
46454         cat >conftest.$ac_ext <<_ACEOF
46455 /* confdefs.h.  */
46456 _ACEOF
46457 cat confdefs.h >>conftest.$ac_ext
46458 cat >>conftest.$ac_ext <<_ACEOF
46459 /* end confdefs.h.  */
46460 $ac_includes_default
46461 int
46462 main ()
46463 {
46464 static struct stat ac_aggr;
46465 if (sizeof ac_aggr.st_blksize)
46466 return 0;
46467   ;
46468   return 0;
46469 }
46470 _ACEOF
46471 rm -f conftest.$ac_objext
46472 if { (ac_try="$ac_compile"
46473 case "(($ac_try" in
46474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46475   *) ac_try_echo=$ac_try;;
46476 esac
46477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46478 $as_echo "$ac_try_echo") >&5
46479   (eval "$ac_compile") 2>conftest.er1
46480   ac_status=$?
46481   grep -v '^ *+' conftest.er1 >conftest.err
46482   rm -f conftest.er1
46483   cat conftest.err >&5
46484   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46485   (exit $ac_status); } && {
46486          test -z "$ac_c_werror_flag" ||
46487          test ! -s conftest.err
46488        } && test -s conftest.$ac_objext; then
46489   ac_cv_member_struct_stat_st_blksize=yes
46490 else
46491   $as_echo "$as_me: failed program was:" >&5
46492 sed 's/^/| /' conftest.$ac_ext >&5
46493
46494         ac_cv_member_struct_stat_st_blksize=no
46495 fi
46496
46497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46498 fi
46499
46500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46501 fi
46502 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
46503 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
46504 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
46505
46506 cat >>confdefs.h <<_ACEOF
46507 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
46508 _ACEOF
46509
46510
46511 cat >>confdefs.h <<\_ACEOF
46512 #define HAVE_ST_BLKSIZE 1
46513 _ACEOF
46514
46515 fi
46516
46517
46518
46519
46520
46521
46522
46523
46524   # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary.
46525   pu_save_LIBS=$LIBS
46526   LIB_SETSOCKOPT=
46527   { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
46528 $as_echo_n "checking for library containing setsockopt... " >&6; }
46529 if test "${ac_cv_search_setsockopt+set}" = set; then
46530   $as_echo_n "(cached) " >&6
46531 else
46532   ac_func_search_save_LIBS=$LIBS
46533 cat >conftest.$ac_ext <<_ACEOF
46534 /* confdefs.h.  */
46535 _ACEOF
46536 cat confdefs.h >>conftest.$ac_ext
46537 cat >>conftest.$ac_ext <<_ACEOF
46538 /* end confdefs.h.  */
46539
46540 /* Override any GCC internal prototype to avoid an error.
46541    Use char because int might match the return type of a GCC
46542    builtin and then its argument prototype would still apply.  */
46543 #ifdef __cplusplus
46544 extern "C"
46545 #endif
46546 char setsockopt ();
46547 int
46548 main ()
46549 {
46550 return setsockopt ();
46551   ;
46552   return 0;
46553 }
46554 _ACEOF
46555 for ac_lib in '' socket; do
46556   if test -z "$ac_lib"; then
46557     ac_res="none required"
46558   else
46559     ac_res=-l$ac_lib
46560     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
46561   fi
46562   rm -f conftest.$ac_objext conftest$ac_exeext
46563 if { (ac_try="$ac_link"
46564 case "(($ac_try" in
46565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46566   *) ac_try_echo=$ac_try;;
46567 esac
46568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46569 $as_echo "$ac_try_echo") >&5
46570   (eval "$ac_link") 2>conftest.er1
46571   ac_status=$?
46572   grep -v '^ *+' conftest.er1 >conftest.err
46573   rm -f conftest.er1
46574   cat conftest.err >&5
46575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46576   (exit $ac_status); } && {
46577          test -z "$ac_c_werror_flag" ||
46578          test ! -s conftest.err
46579        } && test -s conftest$ac_exeext && {
46580          test "$cross_compiling" = yes ||
46581          $as_test_x conftest$ac_exeext
46582        }; then
46583   ac_cv_search_setsockopt=$ac_res
46584 else
46585   $as_echo "$as_me: failed program was:" >&5
46586 sed 's/^/| /' conftest.$ac_ext >&5
46587
46588
46589 fi
46590
46591 rm -rf conftest.dSYM
46592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46593       conftest$ac_exeext
46594   if test "${ac_cv_search_setsockopt+set}" = set; then
46595   break
46596 fi
46597 done
46598 if test "${ac_cv_search_setsockopt+set}" = set; then
46599   :
46600 else
46601   ac_cv_search_setsockopt=no
46602 fi
46603 rm conftest.$ac_ext
46604 LIBS=$ac_func_search_save_LIBS
46605 fi
46606 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
46607 $as_echo "$ac_cv_search_setsockopt" >&6; }
46608 ac_res=$ac_cv_search_setsockopt
46609 if test "$ac_res" != no; then
46610   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46611
46612 else
46613   { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
46614 $as_echo_n "checking for library containing setsockopt... " >&6; }
46615 if test "${ac_cv_search_setsockopt+set}" = set; then
46616   $as_echo_n "(cached) " >&6
46617 else
46618   ac_func_search_save_LIBS=$LIBS
46619 cat >conftest.$ac_ext <<_ACEOF
46620 /* confdefs.h.  */
46621 _ACEOF
46622 cat confdefs.h >>conftest.$ac_ext
46623 cat >>conftest.$ac_ext <<_ACEOF
46624 /* end confdefs.h.  */
46625
46626 /* Override any GCC internal prototype to avoid an error.
46627    Use char because int might match the return type of a GCC
46628    builtin and then its argument prototype would still apply.  */
46629 #ifdef __cplusplus
46630 extern "C"
46631 #endif
46632 char setsockopt ();
46633 int
46634 main ()
46635 {
46636 return setsockopt ();
46637   ;
46638   return 0;
46639 }
46640 _ACEOF
46641 for ac_lib in '' socket; do
46642   if test -z "$ac_lib"; then
46643     ac_res="none required"
46644   else
46645     ac_res=-l$ac_lib
46646     LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
46647   fi
46648   rm -f conftest.$ac_objext conftest$ac_exeext
46649 if { (ac_try="$ac_link"
46650 case "(($ac_try" in
46651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46652   *) ac_try_echo=$ac_try;;
46653 esac
46654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46655 $as_echo "$ac_try_echo") >&5
46656   (eval "$ac_link") 2>conftest.er1
46657   ac_status=$?
46658   grep -v '^ *+' conftest.er1 >conftest.err
46659   rm -f conftest.er1
46660   cat conftest.err >&5
46661   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46662   (exit $ac_status); } && {
46663          test -z "$ac_c_werror_flag" ||
46664          test ! -s conftest.err
46665        } && test -s conftest$ac_exeext && {
46666          test "$cross_compiling" = yes ||
46667          $as_test_x conftest$ac_exeext
46668        }; then
46669   ac_cv_search_setsockopt=$ac_res
46670 else
46671   $as_echo "$as_me: failed program was:" >&5
46672 sed 's/^/| /' conftest.$ac_ext >&5
46673
46674
46675 fi
46676
46677 rm -rf conftest.dSYM
46678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46679       conftest$ac_exeext
46680   if test "${ac_cv_search_setsockopt+set}" = set; then
46681   break
46682 fi
46683 done
46684 if test "${ac_cv_search_setsockopt+set}" = set; then
46685   :
46686 else
46687   ac_cv_search_setsockopt=no
46688 fi
46689 rm conftest.$ac_ext
46690 LIBS=$ac_func_search_save_LIBS
46691 fi
46692 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
46693 $as_echo "$ac_cv_search_setsockopt" >&6; }
46694 ac_res=$ac_cv_search_setsockopt
46695 if test "$ac_res" != no; then
46696   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46697
46698 fi
46699
46700 fi
46701
46702   { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
46703 $as_echo_n "checking for library containing setsockopt... " >&6; }
46704 if test "${ac_cv_search_setsockopt+set}" = set; then
46705   $as_echo_n "(cached) " >&6
46706 else
46707   ac_func_search_save_LIBS=$LIBS
46708 cat >conftest.$ac_ext <<_ACEOF
46709 /* confdefs.h.  */
46710 _ACEOF
46711 cat confdefs.h >>conftest.$ac_ext
46712 cat >>conftest.$ac_ext <<_ACEOF
46713 /* end confdefs.h.  */
46714
46715 /* Override any GCC internal prototype to avoid an error.
46716    Use char because int might match the return type of a GCC
46717    builtin and then its argument prototype would still apply.  */
46718 #ifdef __cplusplus
46719 extern "C"
46720 #endif
46721 char setsockopt ();
46722 int
46723 main ()
46724 {
46725 return setsockopt ();
46726   ;
46727   return 0;
46728 }
46729 _ACEOF
46730 for ac_lib in '' nsl; do
46731   if test -z "$ac_lib"; then
46732     ac_res="none required"
46733   else
46734     ac_res=-l$ac_lib
46735     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
46736   fi
46737   rm -f conftest.$ac_objext conftest$ac_exeext
46738 if { (ac_try="$ac_link"
46739 case "(($ac_try" in
46740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46741   *) ac_try_echo=$ac_try;;
46742 esac
46743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46744 $as_echo "$ac_try_echo") >&5
46745   (eval "$ac_link") 2>conftest.er1
46746   ac_status=$?
46747   grep -v '^ *+' conftest.er1 >conftest.err
46748   rm -f conftest.er1
46749   cat conftest.err >&5
46750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46751   (exit $ac_status); } && {
46752          test -z "$ac_c_werror_flag" ||
46753          test ! -s conftest.err
46754        } && test -s conftest$ac_exeext && {
46755          test "$cross_compiling" = yes ||
46756          $as_test_x conftest$ac_exeext
46757        }; then
46758   ac_cv_search_setsockopt=$ac_res
46759 else
46760   $as_echo "$as_me: failed program was:" >&5
46761 sed 's/^/| /' conftest.$ac_ext >&5
46762
46763
46764 fi
46765
46766 rm -rf conftest.dSYM
46767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46768       conftest$ac_exeext
46769   if test "${ac_cv_search_setsockopt+set}" = set; then
46770   break
46771 fi
46772 done
46773 if test "${ac_cv_search_setsockopt+set}" = set; then
46774   :
46775 else
46776   ac_cv_search_setsockopt=no
46777 fi
46778 rm conftest.$ac_ext
46779 LIBS=$ac_func_search_save_LIBS
46780 fi
46781 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
46782 $as_echo "$ac_cv_search_setsockopt" >&6; }
46783 ac_res=$ac_cv_search_setsockopt
46784 if test "$ac_res" != no; then
46785   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
46786
46787 fi
46788
46789
46790   case "$ac_cv_search_setsockopt" in
46791     -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt
46792   esac
46793
46794   LIBS=$pu_save_LIBS
46795
46796   enable_rmt() {
46797     if test $ac_cv_header_sys_mtio_h = yes; then
46798       { $as_echo "$as_me:$LINENO: checking for remote tape header files" >&5
46799 $as_echo_n "checking for remote tape header files... " >&6; }
46800 if test "${pu_cv_header_rmt+set}" = set; then
46801   $as_echo_n "(cached) " >&6
46802 else
46803   cat >conftest.$ac_ext <<_ACEOF
46804 /* confdefs.h.  */
46805 _ACEOF
46806 cat confdefs.h >>conftest.$ac_ext
46807 cat >>conftest.$ac_ext <<_ACEOF
46808 /* end confdefs.h.  */
46809
46810 #if HAVE_SGTTY_H
46811 # include <sgtty.h>
46812 #endif
46813 #include <sys/socket.h>
46814 _ACEOF
46815 if { (ac_try="$ac_cpp conftest.$ac_ext"
46816 case "(($ac_try" in
46817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46818   *) ac_try_echo=$ac_try;;
46819 esac
46820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46821 $as_echo "$ac_try_echo") >&5
46822   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46823   ac_status=$?
46824   grep -v '^ *+' conftest.er1 >conftest.err
46825   rm -f conftest.er1
46826   cat conftest.err >&5
46827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46828   (exit $ac_status); } >/dev/null && {
46829          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46830          test ! -s conftest.err
46831        }; then
46832   pu_cv_header_rmt=yes
46833 else
46834   $as_echo "$as_me: failed program was:" >&5
46835 sed 's/^/| /' conftest.$ac_ext >&5
46836
46837   pu_cv_header_rmt=no
46838 fi
46839
46840 rm -f conftest.err conftest.$ac_ext
46841 fi
46842 { $as_echo "$as_me:$LINENO: result: $pu_cv_header_rmt" >&5
46843 $as_echo "$pu_cv_header_rmt" >&6; }
46844       test $pu_cv_header_rmt = yes && PU_RMT_PROG='rmt$(EXEEXT)'
46845
46846     fi
46847   }
46848
46849
46850 for ac_header in sys/mtio.h
46851 do
46852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
46853 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46854   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
46855 $as_echo_n "checking for $ac_header... " >&6; }
46856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46857   $as_echo_n "(cached) " >&6
46858 fi
46859 ac_res=`eval 'as_val=${'$as_ac_Header'}
46860                  $as_echo "$as_val"'`
46861                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46862 $as_echo "$ac_res" >&6; }
46863 else
46864   # Is the header compilable?
46865 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
46866 $as_echo_n "checking $ac_header usability... " >&6; }
46867 cat >conftest.$ac_ext <<_ACEOF
46868 /* confdefs.h.  */
46869 _ACEOF
46870 cat confdefs.h >>conftest.$ac_ext
46871 cat >>conftest.$ac_ext <<_ACEOF
46872 /* end confdefs.h.  */
46873 $ac_includes_default
46874 #include <$ac_header>
46875 _ACEOF
46876 rm -f conftest.$ac_objext
46877 if { (ac_try="$ac_compile"
46878 case "(($ac_try" in
46879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46880   *) ac_try_echo=$ac_try;;
46881 esac
46882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46883 $as_echo "$ac_try_echo") >&5
46884   (eval "$ac_compile") 2>conftest.er1
46885   ac_status=$?
46886   grep -v '^ *+' conftest.er1 >conftest.err
46887   rm -f conftest.er1
46888   cat conftest.err >&5
46889   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46890   (exit $ac_status); } && {
46891          test -z "$ac_c_werror_flag" ||
46892          test ! -s conftest.err
46893        } && test -s conftest.$ac_objext; then
46894   ac_header_compiler=yes
46895 else
46896   $as_echo "$as_me: failed program was:" >&5
46897 sed 's/^/| /' conftest.$ac_ext >&5
46898
46899         ac_header_compiler=no
46900 fi
46901
46902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46903 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
46904 $as_echo "$ac_header_compiler" >&6; }
46905
46906 # Is the header present?
46907 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
46908 $as_echo_n "checking $ac_header presence... " >&6; }
46909 cat >conftest.$ac_ext <<_ACEOF
46910 /* confdefs.h.  */
46911 _ACEOF
46912 cat confdefs.h >>conftest.$ac_ext
46913 cat >>conftest.$ac_ext <<_ACEOF
46914 /* end confdefs.h.  */
46915 #include <$ac_header>
46916 _ACEOF
46917 if { (ac_try="$ac_cpp conftest.$ac_ext"
46918 case "(($ac_try" in
46919   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46920   *) ac_try_echo=$ac_try;;
46921 esac
46922 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46923 $as_echo "$ac_try_echo") >&5
46924   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
46925   ac_status=$?
46926   grep -v '^ *+' conftest.er1 >conftest.err
46927   rm -f conftest.er1
46928   cat conftest.err >&5
46929   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46930   (exit $ac_status); } >/dev/null && {
46931          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
46932          test ! -s conftest.err
46933        }; then
46934   ac_header_preproc=yes
46935 else
46936   $as_echo "$as_me: failed program was:" >&5
46937 sed 's/^/| /' conftest.$ac_ext >&5
46938
46939   ac_header_preproc=no
46940 fi
46941
46942 rm -f conftest.err conftest.$ac_ext
46943 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
46944 $as_echo "$ac_header_preproc" >&6; }
46945
46946 # So?  What about this header?
46947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
46948   yes:no: )
46949     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
46950 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
46951     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
46952 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
46953     ac_header_preproc=yes
46954     ;;
46955   no:yes:* )
46956     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
46957 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
46958     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
46959 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
46960     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
46961 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
46962     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
46963 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
46964     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
46965 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
46966     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
46967 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
46968     ( cat <<\_ASBOX
46969 ## ------------------------------ ##
46970 ## Report this to bug-tar@gnu.org ##
46971 ## ------------------------------ ##
46972 _ASBOX
46973      ) | sed "s/^/$as_me: WARNING:     /" >&2
46974     ;;
46975 esac
46976 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
46977 $as_echo_n "checking for $ac_header... " >&6; }
46978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
46979   $as_echo_n "(cached) " >&6
46980 else
46981   eval "$as_ac_Header=\$ac_header_preproc"
46982 fi
46983 ac_res=`eval 'as_val=${'$as_ac_Header'}
46984                  $as_echo "$as_val"'`
46985                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46986 $as_echo "$ac_res" >&6; }
46987
46988 fi
46989 as_val=`eval 'as_val=${'$as_ac_Header'}
46990                  $as_echo "$as_val"'`
46991    if test "x$as_val" = x""yes; then
46992   cat >>confdefs.h <<_ACEOF
46993 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
46994 _ACEOF
46995
46996 fi
46997
46998 done
46999
47000   { $as_echo "$as_me:$LINENO: checking which ioctl field to test for reversed bytes" >&5
47001 $as_echo_n "checking which ioctl field to test for reversed bytes... " >&6; }
47002 if test "${pu_cv_header_mtio_check_field+set}" = set; then
47003   $as_echo_n "(cached) " >&6
47004 else
47005   cat >conftest.$ac_ext <<_ACEOF
47006 /* confdefs.h.  */
47007 _ACEOF
47008 cat confdefs.h >>conftest.$ac_ext
47009 cat >>conftest.$ac_ext <<_ACEOF
47010 /* end confdefs.h.  */
47011 #include <sys/mtio.h>
47012
47013 _ACEOF
47014 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47015   $EGREP "mt_model" >/dev/null 2>&1; then
47016   pu_cv_header_mtio_check_field=mt_model
47017 else
47018   pu_cv_header_mtio_check_field=mt_type
47019 fi
47020 rm -f conftest*
47021
47022 fi
47023 { $as_echo "$as_me:$LINENO: result: $pu_cv_header_mtio_check_field" >&5
47024 $as_echo "$pu_cv_header_mtio_check_field" >&6; }
47025
47026 cat >>confdefs.h <<_ACEOF
47027 #define MTIO_CHECK_FIELD $pu_cv_header_mtio_check_field
47028 _ACEOF
47029
47030
47031
47032
47033   if test "x$DEFAULT_RMT_DIR" != x; then
47034         DEFAULT_RMT_COMMAND=$DEFAULT_RMT_DIR/rmt
47035   else
47036         DEFAULT_RMT_DIR='$(libexecdir)'
47037   fi
47038
47039   { $as_echo "$as_me:$LINENO: checking whether to build rmt" >&5
47040 $as_echo_n "checking whether to build rmt... " >&6; }
47041
47042 # Check whether --with-rmt was given.
47043 if test "${with_rmt+set}" = set; then
47044   withval=$with_rmt; case $withval in
47045                yes|no) { { $as_echo "$as_me:$LINENO: error: Invalid argument to --with-rmt" >&5
47046 $as_echo "$as_me: error: Invalid argument to --with-rmt" >&2;}
47047    { (exit 1); exit 1; }; };;
47048                /*)     DEFAULT_RMT_COMMAND=$withval
47049                        { $as_echo "$as_me:$LINENO: result: no, use $withval instead" >&5
47050 $as_echo "no, use $withval instead" >&6; };;
47051                *)      { { $as_echo "$as_me:$LINENO: error: Argument to --with-rmt must be an absolute file name" >&5
47052 $as_echo "$as_me: error: Argument to --with-rmt must be an absolute file name" >&2;}
47053    { (exit 1); exit 1; }; };;
47054                esac
47055 else
47056   { $as_echo "$as_me:$LINENO: result: yes" >&5
47057 $as_echo "yes" >&6; }
47058                 enable_rmt
47059                 if test "$PU_RMT_PROG" = ""; then
47060                   { $as_echo "$as_me:$LINENO: WARNING: not building rmt, required header files are missing" >&5
47061 $as_echo "$as_me: WARNING: not building rmt, required header files are missing" >&2;}
47062                 fi
47063 fi
47064
47065
47066
47067   if test "x$DEFAULT_RMT_COMMAND" != x; then
47068
47069 cat >>confdefs.h <<_ACEOF
47070 #define DEFAULT_RMT_COMMAND "$DEFAULT_RMT_COMMAND"
47071 _ACEOF
47072
47073   fi
47074
47075
47076
47077
47078
47079
47080
47081
47082
47083
47084
47085
47086
47087
47088
47089
47090
47091
47092
47093
47094
47095
47096
47097
47098
47099
47100
47101
47102
47103
47104
47105
47106
47107
47108
47109
47110
47111
47112
47113
47114
47115
47116
47117
47118
47119
47120
47121
47122
47123
47124
47125
47126 for ac_header in sys/buf.h
47127 do
47128 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47129 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47130 $as_echo_n "checking for $ac_header... " >&6; }
47131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47132   $as_echo_n "(cached) " >&6
47133 else
47134   cat >conftest.$ac_ext <<_ACEOF
47135 /* confdefs.h.  */
47136 _ACEOF
47137 cat confdefs.h >>conftest.$ac_ext
47138 cat >>conftest.$ac_ext <<_ACEOF
47139 /* end confdefs.h.  */
47140 #if HAVE_SYS_PARAM_H
47141 #include <sys/param.h>
47142 #endif
47143
47144 #include <$ac_header>
47145 _ACEOF
47146 rm -f conftest.$ac_objext
47147 if { (ac_try="$ac_compile"
47148 case "(($ac_try" in
47149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47150   *) ac_try_echo=$ac_try;;
47151 esac
47152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47153 $as_echo "$ac_try_echo") >&5
47154   (eval "$ac_compile") 2>conftest.er1
47155   ac_status=$?
47156   grep -v '^ *+' conftest.er1 >conftest.err
47157   rm -f conftest.er1
47158   cat conftest.err >&5
47159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47160   (exit $ac_status); } && {
47161          test -z "$ac_c_werror_flag" ||
47162          test ! -s conftest.err
47163        } && test -s conftest.$ac_objext; then
47164   eval "$as_ac_Header=yes"
47165 else
47166   $as_echo "$as_me: failed program was:" >&5
47167 sed 's/^/| /' conftest.$ac_ext >&5
47168
47169         eval "$as_ac_Header=no"
47170 fi
47171
47172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47173 fi
47174 ac_res=`eval 'as_val=${'$as_ac_Header'}
47175                  $as_echo "$as_val"'`
47176                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47177 $as_echo "$ac_res" >&6; }
47178 as_val=`eval 'as_val=${'$as_ac_Header'}
47179                  $as_echo "$as_val"'`
47180    if test "x$as_val" = x""yes; then
47181   cat >>confdefs.h <<_ACEOF
47182 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
47183 _ACEOF
47184
47185 fi
47186
47187 done
47188
47189
47190
47191
47192   { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
47193 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
47194 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
47195   $as_echo_n "(cached) " >&6
47196 else
47197   cat >conftest.$ac_ext <<_ACEOF
47198 /* confdefs.h.  */
47199 _ACEOF
47200 cat confdefs.h >>conftest.$ac_ext
47201 cat >>conftest.$ac_ext <<_ACEOF
47202 /* end confdefs.h.  */
47203 $ac_includes_default
47204 int
47205 main ()
47206 {
47207 static struct stat ac_aggr;
47208 if (ac_aggr.st_blksize)
47209 return 0;
47210   ;
47211   return 0;
47212 }
47213 _ACEOF
47214 rm -f conftest.$ac_objext
47215 if { (ac_try="$ac_compile"
47216 case "(($ac_try" in
47217   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47218   *) ac_try_echo=$ac_try;;
47219 esac
47220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47221 $as_echo "$ac_try_echo") >&5
47222   (eval "$ac_compile") 2>conftest.er1
47223   ac_status=$?
47224   grep -v '^ *+' conftest.er1 >conftest.err
47225   rm -f conftest.er1
47226   cat conftest.err >&5
47227   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47228   (exit $ac_status); } && {
47229          test -z "$ac_c_werror_flag" ||
47230          test ! -s conftest.err
47231        } && test -s conftest.$ac_objext; then
47232   ac_cv_member_struct_stat_st_blksize=yes
47233 else
47234   $as_echo "$as_me: failed program was:" >&5
47235 sed 's/^/| /' conftest.$ac_ext >&5
47236
47237         cat >conftest.$ac_ext <<_ACEOF
47238 /* confdefs.h.  */
47239 _ACEOF
47240 cat confdefs.h >>conftest.$ac_ext
47241 cat >>conftest.$ac_ext <<_ACEOF
47242 /* end confdefs.h.  */
47243 $ac_includes_default
47244 int
47245 main ()
47246 {
47247 static struct stat ac_aggr;
47248 if (sizeof ac_aggr.st_blksize)
47249 return 0;
47250   ;
47251   return 0;
47252 }
47253 _ACEOF
47254 rm -f conftest.$ac_objext
47255 if { (ac_try="$ac_compile"
47256 case "(($ac_try" in
47257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47258   *) ac_try_echo=$ac_try;;
47259 esac
47260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47261 $as_echo "$ac_try_echo") >&5
47262   (eval "$ac_compile") 2>conftest.er1
47263   ac_status=$?
47264   grep -v '^ *+' conftest.er1 >conftest.err
47265   rm -f conftest.er1
47266   cat conftest.err >&5
47267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47268   (exit $ac_status); } && {
47269          test -z "$ac_c_werror_flag" ||
47270          test ! -s conftest.err
47271        } && test -s conftest.$ac_objext; then
47272   ac_cv_member_struct_stat_st_blksize=yes
47273 else
47274   $as_echo "$as_me: failed program was:" >&5
47275 sed 's/^/| /' conftest.$ac_ext >&5
47276
47277         ac_cv_member_struct_stat_st_blksize=no
47278 fi
47279
47280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47281 fi
47282
47283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47284 fi
47285 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
47286 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
47287 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
47288
47289 cat >>confdefs.h <<_ACEOF
47290 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
47291 _ACEOF
47292
47293
47294 fi
47295
47296
47297
47298
47299
47300
47301
47302
47303
47304
47305
47306
47307
47308
47309
47310
47311   { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
47312 $as_echo_n "checking for library containing gethostbyname... " >&6; }
47313 if test "${ac_cv_search_gethostbyname+set}" = set; then
47314   $as_echo_n "(cached) " >&6
47315 else
47316   ac_func_search_save_LIBS=$LIBS
47317 cat >conftest.$ac_ext <<_ACEOF
47318 /* confdefs.h.  */
47319 _ACEOF
47320 cat confdefs.h >>conftest.$ac_ext
47321 cat >>conftest.$ac_ext <<_ACEOF
47322 /* end confdefs.h.  */
47323
47324 /* Override any GCC internal prototype to avoid an error.
47325    Use char because int might match the return type of a GCC
47326    builtin and then its argument prototype would still apply.  */
47327 #ifdef __cplusplus
47328 extern "C"
47329 #endif
47330 char gethostbyname ();
47331 int
47332 main ()
47333 {
47334 return gethostbyname ();
47335   ;
47336   return 0;
47337 }
47338 _ACEOF
47339 for ac_lib in '' nsl; do
47340   if test -z "$ac_lib"; then
47341     ac_res="none required"
47342   else
47343     ac_res=-l$ac_lib
47344     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
47345   fi
47346   rm -f conftest.$ac_objext conftest$ac_exeext
47347 if { (ac_try="$ac_link"
47348 case "(($ac_try" in
47349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47350   *) ac_try_echo=$ac_try;;
47351 esac
47352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47353 $as_echo "$ac_try_echo") >&5
47354   (eval "$ac_link") 2>conftest.er1
47355   ac_status=$?
47356   grep -v '^ *+' conftest.er1 >conftest.err
47357   rm -f conftest.er1
47358   cat conftest.err >&5
47359   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47360   (exit $ac_status); } && {
47361          test -z "$ac_c_werror_flag" ||
47362          test ! -s conftest.err
47363        } && test -s conftest$ac_exeext && {
47364          test "$cross_compiling" = yes ||
47365          $as_test_x conftest$ac_exeext
47366        }; then
47367   ac_cv_search_gethostbyname=$ac_res
47368 else
47369   $as_echo "$as_me: failed program was:" >&5
47370 sed 's/^/| /' conftest.$ac_ext >&5
47371
47372
47373 fi
47374
47375 rm -rf conftest.dSYM
47376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47377       conftest$ac_exeext
47378   if test "${ac_cv_search_gethostbyname+set}" = set; then
47379   break
47380 fi
47381 done
47382 if test "${ac_cv_search_gethostbyname+set}" = set; then
47383   :
47384 else
47385   ac_cv_search_gethostbyname=no
47386 fi
47387 rm conftest.$ac_ext
47388 LIBS=$ac_func_search_save_LIBS
47389 fi
47390 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
47391 $as_echo "$ac_cv_search_gethostbyname" >&6; }
47392 ac_res=$ac_cv_search_gethostbyname
47393 if test "$ac_res" != no; then
47394   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
47395
47396 fi
47397
47398
47399
47400
47401
47402
47403
47404
47405
47406
47407
47408
47409 for ac_func in fsync getdtablesize lstat mkfifo readlink symlink setlocale utimes
47410 do
47411 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47412 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47413 $as_echo_n "checking for $ac_func... " >&6; }
47414 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47415   $as_echo_n "(cached) " >&6
47416 else
47417   cat >conftest.$ac_ext <<_ACEOF
47418 /* confdefs.h.  */
47419 _ACEOF
47420 cat confdefs.h >>conftest.$ac_ext
47421 cat >>conftest.$ac_ext <<_ACEOF
47422 /* end confdefs.h.  */
47423 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47424    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47425 #define $ac_func innocuous_$ac_func
47426
47427 /* System header to define __stub macros and hopefully few prototypes,
47428     which can conflict with char $ac_func (); below.
47429     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47430     <limits.h> exists even on freestanding compilers.  */
47431
47432 #ifdef __STDC__
47433 # include <limits.h>
47434 #else
47435 # include <assert.h>
47436 #endif
47437
47438 #undef $ac_func
47439
47440 /* Override any GCC internal prototype to avoid an error.
47441    Use char because int might match the return type of a GCC
47442    builtin and then its argument prototype would still apply.  */
47443 #ifdef __cplusplus
47444 extern "C"
47445 #endif
47446 char $ac_func ();
47447 /* The GNU C library defines this for functions which it implements
47448     to always fail with ENOSYS.  Some functions are actually named
47449     something starting with __ and the normal name is an alias.  */
47450 #if defined __stub_$ac_func || defined __stub___$ac_func
47451 choke me
47452 #endif
47453
47454 int
47455 main ()
47456 {
47457 return $ac_func ();
47458   ;
47459   return 0;
47460 }
47461 _ACEOF
47462 rm -f conftest.$ac_objext conftest$ac_exeext
47463 if { (ac_try="$ac_link"
47464 case "(($ac_try" in
47465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47466   *) ac_try_echo=$ac_try;;
47467 esac
47468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47469 $as_echo "$ac_try_echo") >&5
47470   (eval "$ac_link") 2>conftest.er1
47471   ac_status=$?
47472   grep -v '^ *+' conftest.er1 >conftest.err
47473   rm -f conftest.er1
47474   cat conftest.err >&5
47475   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47476   (exit $ac_status); } && {
47477          test -z "$ac_c_werror_flag" ||
47478          test ! -s conftest.err
47479        } && test -s conftest$ac_exeext && {
47480          test "$cross_compiling" = yes ||
47481          $as_test_x conftest$ac_exeext
47482        }; then
47483   eval "$as_ac_var=yes"
47484 else
47485   $as_echo "$as_me: failed program was:" >&5
47486 sed 's/^/| /' conftest.$ac_ext >&5
47487
47488         eval "$as_ac_var=no"
47489 fi
47490
47491 rm -rf conftest.dSYM
47492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47493       conftest$ac_exeext conftest.$ac_ext
47494 fi
47495 ac_res=`eval 'as_val=${'$as_ac_var'}
47496                  $as_echo "$as_val"'`
47497                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47498 $as_echo "$ac_res" >&6; }
47499 as_val=`eval 'as_val=${'$as_ac_var'}
47500                  $as_echo "$as_val"'`
47501    if test "x$as_val" = x""yes; then
47502   cat >>confdefs.h <<_ACEOF
47503 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47504 _ACEOF
47505
47506 fi
47507 done
47508
47509 { $as_echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
47510 $as_echo_n "checking whether getgrgid is declared... " >&6; }
47511 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
47512   $as_echo_n "(cached) " >&6
47513 else
47514   cat >conftest.$ac_ext <<_ACEOF
47515 /* confdefs.h.  */
47516 _ACEOF
47517 cat confdefs.h >>conftest.$ac_ext
47518 cat >>conftest.$ac_ext <<_ACEOF
47519 /* end confdefs.h.  */
47520 #include <grp.h>
47521
47522 int
47523 main ()
47524 {
47525 #ifndef getgrgid
47526   (void) getgrgid;
47527 #endif
47528
47529   ;
47530   return 0;
47531 }
47532 _ACEOF
47533 rm -f conftest.$ac_objext
47534 if { (ac_try="$ac_compile"
47535 case "(($ac_try" in
47536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47537   *) ac_try_echo=$ac_try;;
47538 esac
47539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47540 $as_echo "$ac_try_echo") >&5
47541   (eval "$ac_compile") 2>conftest.er1
47542   ac_status=$?
47543   grep -v '^ *+' conftest.er1 >conftest.err
47544   rm -f conftest.er1
47545   cat conftest.err >&5
47546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47547   (exit $ac_status); } && {
47548          test -z "$ac_c_werror_flag" ||
47549          test ! -s conftest.err
47550        } && test -s conftest.$ac_objext; then
47551   ac_cv_have_decl_getgrgid=yes
47552 else
47553   $as_echo "$as_me: failed program was:" >&5
47554 sed 's/^/| /' conftest.$ac_ext >&5
47555
47556         ac_cv_have_decl_getgrgid=no
47557 fi
47558
47559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47560 fi
47561 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
47562 $as_echo "$ac_cv_have_decl_getgrgid" >&6; }
47563 if test "x$ac_cv_have_decl_getgrgid" = x""yes; then
47564
47565 cat >>confdefs.h <<_ACEOF
47566 #define HAVE_DECL_GETGRGID 1
47567 _ACEOF
47568
47569
47570 else
47571   cat >>confdefs.h <<_ACEOF
47572 #define HAVE_DECL_GETGRGID 0
47573 _ACEOF
47574
47575
47576 fi
47577
47578
47579 { $as_echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
47580 $as_echo_n "checking whether getpwuid is declared... " >&6; }
47581 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
47582   $as_echo_n "(cached) " >&6
47583 else
47584   cat >conftest.$ac_ext <<_ACEOF
47585 /* confdefs.h.  */
47586 _ACEOF
47587 cat confdefs.h >>conftest.$ac_ext
47588 cat >>conftest.$ac_ext <<_ACEOF
47589 /* end confdefs.h.  */
47590 #include <pwd.h>
47591
47592 int
47593 main ()
47594 {
47595 #ifndef getpwuid
47596   (void) getpwuid;
47597 #endif
47598
47599   ;
47600   return 0;
47601 }
47602 _ACEOF
47603 rm -f conftest.$ac_objext
47604 if { (ac_try="$ac_compile"
47605 case "(($ac_try" in
47606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47607   *) ac_try_echo=$ac_try;;
47608 esac
47609 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47610 $as_echo "$ac_try_echo") >&5
47611   (eval "$ac_compile") 2>conftest.er1
47612   ac_status=$?
47613   grep -v '^ *+' conftest.er1 >conftest.err
47614   rm -f conftest.er1
47615   cat conftest.err >&5
47616   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47617   (exit $ac_status); } && {
47618          test -z "$ac_c_werror_flag" ||
47619          test ! -s conftest.err
47620        } && test -s conftest.$ac_objext; then
47621   ac_cv_have_decl_getpwuid=yes
47622 else
47623   $as_echo "$as_me: failed program was:" >&5
47624 sed 's/^/| /' conftest.$ac_ext >&5
47625
47626         ac_cv_have_decl_getpwuid=no
47627 fi
47628
47629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47630 fi
47631 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
47632 $as_echo "$ac_cv_have_decl_getpwuid" >&6; }
47633 if test "x$ac_cv_have_decl_getpwuid" = x""yes; then
47634
47635 cat >>confdefs.h <<_ACEOF
47636 #define HAVE_DECL_GETPWUID 1
47637 _ACEOF
47638
47639
47640 else
47641   cat >>confdefs.h <<_ACEOF
47642 #define HAVE_DECL_GETPWUID 0
47643 _ACEOF
47644
47645
47646 fi
47647
47648
47649 { $as_echo "$as_me:$LINENO: checking whether time is declared" >&5
47650 $as_echo_n "checking whether time is declared... " >&6; }
47651 if test "${ac_cv_have_decl_time+set}" = set; then
47652   $as_echo_n "(cached) " >&6
47653 else
47654   cat >conftest.$ac_ext <<_ACEOF
47655 /* confdefs.h.  */
47656 _ACEOF
47657 cat confdefs.h >>conftest.$ac_ext
47658 cat >>conftest.$ac_ext <<_ACEOF
47659 /* end confdefs.h.  */
47660 #include <time.h>
47661
47662 int
47663 main ()
47664 {
47665 #ifndef time
47666   (void) time;
47667 #endif
47668
47669   ;
47670   return 0;
47671 }
47672 _ACEOF
47673 rm -f conftest.$ac_objext
47674 if { (ac_try="$ac_compile"
47675 case "(($ac_try" in
47676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47677   *) ac_try_echo=$ac_try;;
47678 esac
47679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47680 $as_echo "$ac_try_echo") >&5
47681   (eval "$ac_compile") 2>conftest.er1
47682   ac_status=$?
47683   grep -v '^ *+' conftest.er1 >conftest.err
47684   rm -f conftest.er1
47685   cat conftest.err >&5
47686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47687   (exit $ac_status); } && {
47688          test -z "$ac_c_werror_flag" ||
47689          test ! -s conftest.err
47690        } && test -s conftest.$ac_objext; then
47691   ac_cv_have_decl_time=yes
47692 else
47693   $as_echo "$as_me: failed program was:" >&5
47694 sed 's/^/| /' conftest.$ac_ext >&5
47695
47696         ac_cv_have_decl_time=no
47697 fi
47698
47699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47700 fi
47701 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_time" >&5
47702 $as_echo "$ac_cv_have_decl_time" >&6; }
47703 if test "x$ac_cv_have_decl_time" = x""yes; then
47704
47705 cat >>confdefs.h <<_ACEOF
47706 #define HAVE_DECL_TIME 1
47707 _ACEOF
47708
47709
47710 else
47711   cat >>confdefs.h <<_ACEOF
47712 #define HAVE_DECL_TIME 0
47713 _ACEOF
47714
47715
47716 fi
47717
47718
47719
47720
47721 for ac_func in waitpid
47722 do
47723 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47724 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47725 $as_echo_n "checking for $ac_func... " >&6; }
47726 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47727   $as_echo_n "(cached) " >&6
47728 else
47729   cat >conftest.$ac_ext <<_ACEOF
47730 /* confdefs.h.  */
47731 _ACEOF
47732 cat confdefs.h >>conftest.$ac_ext
47733 cat >>conftest.$ac_ext <<_ACEOF
47734 /* end confdefs.h.  */
47735 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47736    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47737 #define $ac_func innocuous_$ac_func
47738
47739 /* System header to define __stub macros and hopefully few prototypes,
47740     which can conflict with char $ac_func (); below.
47741     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47742     <limits.h> exists even on freestanding compilers.  */
47743
47744 #ifdef __STDC__
47745 # include <limits.h>
47746 #else
47747 # include <assert.h>
47748 #endif
47749
47750 #undef $ac_func
47751
47752 /* Override any GCC internal prototype to avoid an error.
47753    Use char because int might match the return type of a GCC
47754    builtin and then its argument prototype would still apply.  */
47755 #ifdef __cplusplus
47756 extern "C"
47757 #endif
47758 char $ac_func ();
47759 /* The GNU C library defines this for functions which it implements
47760     to always fail with ENOSYS.  Some functions are actually named
47761     something starting with __ and the normal name is an alias.  */
47762 #if defined __stub_$ac_func || defined __stub___$ac_func
47763 choke me
47764 #endif
47765
47766 int
47767 main ()
47768 {
47769 return $ac_func ();
47770   ;
47771   return 0;
47772 }
47773 _ACEOF
47774 rm -f conftest.$ac_objext conftest$ac_exeext
47775 if { (ac_try="$ac_link"
47776 case "(($ac_try" in
47777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47778   *) ac_try_echo=$ac_try;;
47779 esac
47780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47781 $as_echo "$ac_try_echo") >&5
47782   (eval "$ac_link") 2>conftest.er1
47783   ac_status=$?
47784   grep -v '^ *+' conftest.er1 >conftest.err
47785   rm -f conftest.er1
47786   cat conftest.err >&5
47787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47788   (exit $ac_status); } && {
47789          test -z "$ac_c_werror_flag" ||
47790          test ! -s conftest.err
47791        } && test -s conftest$ac_exeext && {
47792          test "$cross_compiling" = yes ||
47793          $as_test_x conftest$ac_exeext
47794        }; then
47795   eval "$as_ac_var=yes"
47796 else
47797   $as_echo "$as_me: failed program was:" >&5
47798 sed 's/^/| /' conftest.$ac_ext >&5
47799
47800         eval "$as_ac_var=no"
47801 fi
47802
47803 rm -rf conftest.dSYM
47804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47805       conftest$ac_exeext conftest.$ac_ext
47806 fi
47807 ac_res=`eval 'as_val=${'$as_ac_var'}
47808                  $as_echo "$as_val"'`
47809                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47810 $as_echo "$ac_res" >&6; }
47811 as_val=`eval 'as_val=${'$as_ac_var'}
47812                  $as_echo "$as_val"'`
47813    if test "x$as_val" = x""yes; then
47814   cat >>confdefs.h <<_ACEOF
47815 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47816 _ACEOF
47817
47818 else
47819   case " $LIBOBJS " in
47820   *" $ac_func.$ac_objext "* ) ;;
47821   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
47822  ;;
47823 esac
47824
47825 fi
47826 done
47827
47828
47829
47830 { $as_echo "$as_me:$LINENO: checking for remote shell" >&5
47831 $as_echo_n "checking for remote shell... " >&6; }
47832 if test "${tar_cv_path_RSH+set}" = set; then
47833   $as_echo_n "(cached) " >&6
47834 else
47835   if test -n "$RSH"; then
47836     tar_cv_path_RSH=$RSH
47837   else
47838     tar_cv_path_RSH=no
47839     for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \
47840         /usr/bin/nsh /usr/bin/rcmd
47841     do
47842       # Prefer a non-symlink rsh to a symlink one, so that binaries built
47843       # on AIX 4.1.4, where /usr/ucb/rsh is a symlink to /usr/bin/rsh
47844       # will run on AIX 4.3.0, which has only /usr/bin/rsh.
47845       if test -f $ac_file; then
47846         if (test -h $ac_file) 2>/dev/null; then
47847           test $tar_cv_path_RSH = no && tar_cv_path_RSH=$ac_file
47848         else
47849           tar_cv_path_RSH=$ac_file
47850           break
47851         fi
47852       fi
47853     done
47854   fi
47855 fi
47856 { $as_echo "$as_me:$LINENO: result: $tar_cv_path_RSH" >&5
47857 $as_echo "$tar_cv_path_RSH" >&6; }
47858 if test $tar_cv_path_RSH = no; then
47859
47860 for ac_header in netdb.h
47861 do
47862 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
47863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47864   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47865 $as_echo_n "checking for $ac_header... " >&6; }
47866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47867   $as_echo_n "(cached) " >&6
47868 fi
47869 ac_res=`eval 'as_val=${'$as_ac_Header'}
47870                  $as_echo "$as_val"'`
47871                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47872 $as_echo "$ac_res" >&6; }
47873 else
47874   # Is the header compilable?
47875 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
47876 $as_echo_n "checking $ac_header usability... " >&6; }
47877 cat >conftest.$ac_ext <<_ACEOF
47878 /* confdefs.h.  */
47879 _ACEOF
47880 cat confdefs.h >>conftest.$ac_ext
47881 cat >>conftest.$ac_ext <<_ACEOF
47882 /* end confdefs.h.  */
47883 $ac_includes_default
47884 #include <$ac_header>
47885 _ACEOF
47886 rm -f conftest.$ac_objext
47887 if { (ac_try="$ac_compile"
47888 case "(($ac_try" in
47889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47890   *) ac_try_echo=$ac_try;;
47891 esac
47892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47893 $as_echo "$ac_try_echo") >&5
47894   (eval "$ac_compile") 2>conftest.er1
47895   ac_status=$?
47896   grep -v '^ *+' conftest.er1 >conftest.err
47897   rm -f conftest.er1
47898   cat conftest.err >&5
47899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47900   (exit $ac_status); } && {
47901          test -z "$ac_c_werror_flag" ||
47902          test ! -s conftest.err
47903        } && test -s conftest.$ac_objext; then
47904   ac_header_compiler=yes
47905 else
47906   $as_echo "$as_me: failed program was:" >&5
47907 sed 's/^/| /' conftest.$ac_ext >&5
47908
47909         ac_header_compiler=no
47910 fi
47911
47912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47913 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
47914 $as_echo "$ac_header_compiler" >&6; }
47915
47916 # Is the header present?
47917 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
47918 $as_echo_n "checking $ac_header presence... " >&6; }
47919 cat >conftest.$ac_ext <<_ACEOF
47920 /* confdefs.h.  */
47921 _ACEOF
47922 cat confdefs.h >>conftest.$ac_ext
47923 cat >>conftest.$ac_ext <<_ACEOF
47924 /* end confdefs.h.  */
47925 #include <$ac_header>
47926 _ACEOF
47927 if { (ac_try="$ac_cpp conftest.$ac_ext"
47928 case "(($ac_try" in
47929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47930   *) ac_try_echo=$ac_try;;
47931 esac
47932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47933 $as_echo "$ac_try_echo") >&5
47934   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
47935   ac_status=$?
47936   grep -v '^ *+' conftest.er1 >conftest.err
47937   rm -f conftest.er1
47938   cat conftest.err >&5
47939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47940   (exit $ac_status); } >/dev/null && {
47941          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
47942          test ! -s conftest.err
47943        }; then
47944   ac_header_preproc=yes
47945 else
47946   $as_echo "$as_me: failed program was:" >&5
47947 sed 's/^/| /' conftest.$ac_ext >&5
47948
47949   ac_header_preproc=no
47950 fi
47951
47952 rm -f conftest.err conftest.$ac_ext
47953 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
47954 $as_echo "$ac_header_preproc" >&6; }
47955
47956 # So?  What about this header?
47957 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
47958   yes:no: )
47959     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
47960 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
47961     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
47962 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
47963     ac_header_preproc=yes
47964     ;;
47965   no:yes:* )
47966     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
47967 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
47968     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
47969 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
47970     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
47971 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
47972     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
47973 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
47974     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
47975 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
47976     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
47977 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
47978     ( cat <<\_ASBOX
47979 ## ------------------------------ ##
47980 ## Report this to bug-tar@gnu.org ##
47981 ## ------------------------------ ##
47982 _ASBOX
47983      ) | sed "s/^/$as_me: WARNING:     /" >&2
47984     ;;
47985 esac
47986 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
47987 $as_echo_n "checking for $ac_header... " >&6; }
47988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
47989   $as_echo_n "(cached) " >&6
47990 else
47991   eval "$as_ac_Header=\$ac_header_preproc"
47992 fi
47993 ac_res=`eval 'as_val=${'$as_ac_Header'}
47994                  $as_echo "$as_val"'`
47995                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47996 $as_echo "$ac_res" >&6; }
47997
47998 fi
47999 as_val=`eval 'as_val=${'$as_ac_Header'}
48000                  $as_echo "$as_val"'`
48001    if test "x$as_val" = x""yes; then
48002   cat >>confdefs.h <<_ACEOF
48003 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
48004 _ACEOF
48005
48006 fi
48007
48008 done
48009
48010 else
48011
48012 cat >>confdefs.h <<_ACEOF
48013 #define REMOTE_SHELL "$tar_cv_path_RSH"
48014 _ACEOF
48015
48016 fi
48017
48018
48019
48020
48021
48022 # Check whether --with-compress was given.
48023 if test "${with_compress+set}" = set; then
48024   withval=$with_compress; tar_cv_compressor_compress=${withval}
48025 else
48026   tar_cv_compressor_compress=compress
48027 fi
48028
48029
48030 cat >>confdefs.h <<_ACEOF
48031 #define COMPRESS_PROGRAM "$tar_cv_compressor_compress"
48032 _ACEOF
48033
48034
48035
48036
48037
48038 # Check whether --with-gzip was given.
48039 if test "${with_gzip+set}" = set; then
48040   withval=$with_gzip; tar_cv_compressor_gzip=${withval}
48041 else
48042   tar_cv_compressor_gzip=gzip
48043 fi
48044
48045
48046 cat >>confdefs.h <<_ACEOF
48047 #define GZIP_PROGRAM "$tar_cv_compressor_gzip"
48048 _ACEOF
48049
48050
48051
48052
48053
48054 # Check whether --with-bzip2 was given.
48055 if test "${with_bzip2+set}" = set; then
48056   withval=$with_bzip2; tar_cv_compressor_bzip2=${withval}
48057 else
48058   tar_cv_compressor_bzip2=bzip2
48059 fi
48060
48061
48062 cat >>confdefs.h <<_ACEOF
48063 #define BZIP2_PROGRAM "$tar_cv_compressor_bzip2"
48064 _ACEOF
48065
48066
48067
48068
48069
48070 # Check whether --with-lzip was given.
48071 if test "${with_lzip+set}" = set; then
48072   withval=$with_lzip; tar_cv_compressor_lzip=${withval}
48073 else
48074   tar_cv_compressor_lzip=lzip
48075 fi
48076
48077
48078 cat >>confdefs.h <<_ACEOF
48079 #define LZIP_PROGRAM "$tar_cv_compressor_lzip"
48080 _ACEOF
48081
48082
48083
48084
48085
48086 # Check whether --with-lzma was given.
48087 if test "${with_lzma+set}" = set; then
48088   withval=$with_lzma; tar_cv_compressor_lzma=${withval}
48089 else
48090   tar_cv_compressor_lzma=lzma
48091 fi
48092
48093
48094 cat >>confdefs.h <<_ACEOF
48095 #define LZMA_PROGRAM "$tar_cv_compressor_lzma"
48096 _ACEOF
48097
48098
48099
48100
48101
48102 # Check whether --with-lzop was given.
48103 if test "${with_lzop+set}" = set; then
48104   withval=$with_lzop; tar_cv_compressor_lzop=${withval}
48105 else
48106   tar_cv_compressor_lzop=lzop
48107 fi
48108
48109
48110 cat >>confdefs.h <<_ACEOF
48111 #define LZOP_PROGRAM "$tar_cv_compressor_lzop"
48112 _ACEOF
48113
48114
48115
48116
48117
48118 # Check whether --with-xz was given.
48119 if test "${with_xz+set}" = set; then
48120   withval=$with_xz; tar_cv_compressor_xz=${withval}
48121 else
48122   tar_cv_compressor_xz=xz
48123 fi
48124
48125
48126 cat >>confdefs.h <<_ACEOF
48127 #define XZ_PROGRAM "$tar_cv_compressor_xz"
48128 _ACEOF
48129
48130
48131 { $as_echo "$as_me:$LINENO: checking for default archive format" >&5
48132 $as_echo_n "checking for default archive format... " >&6; }
48133
48134
48135
48136 if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
48137   DEFAULT_ARCHIVE_FORMAT="GNU"
48138 fi
48139 case $DEFAULT_ARCHIVE_FORMAT in
48140   V7|OLDGNU|USTAR|POSIX|GNU) ;;
48141   *) { { $as_echo "$as_me:$LINENO: error: Invalid format name" >&5
48142 $as_echo "$as_me: error: Invalid format name" >&2;}
48143    { (exit 1); exit 1; }; };;
48144 esac
48145
48146 cat >>confdefs.h <<_ACEOF
48147 #define DEFAULT_ARCHIVE_FORMAT ${DEFAULT_ARCHIVE_FORMAT}_FORMAT
48148 _ACEOF
48149
48150 { $as_echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE_FORMAT" >&5
48151 $as_echo "$DEFAULT_ARCHIVE_FORMAT" >&6; }
48152
48153 { $as_echo "$as_me:$LINENO: checking for default archive" >&5
48154 $as_echo_n "checking for default archive... " >&6; }
48155
48156
48157 if test -z "$DEFAULT_ARCHIVE"; then
48158   DEFAULT_ARCHIVE=-
48159 else
48160   if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
48161     { $as_echo "$as_me:$LINENO: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&5
48162 $as_echo "$as_me: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&2;}
48163   fi
48164   # FIXME: Look for DEFTAPE in <sys/mtio.h>.
48165   # FIXME: Let DEVICE_PREFIX be configured from the environment.
48166   # FIXME: Rearrange, here.
48167   case $DEFAULT_ARCHIVE in
48168     *[0-7][lmh])
48169
48170 cat >>confdefs.h <<\_ACEOF
48171 #define DENSITY_LETTER 1
48172 _ACEOF
48173
48174       device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7lmh$//'`
48175       ;;
48176     *[0-7])
48177       device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7$//'`
48178       ;;
48179     *)
48180       device_prefix=
48181       ;;
48182   esac
48183   case "$device_prefix" in
48184     ?*)
48185
48186 cat >>confdefs.h <<_ACEOF
48187 #define DEVICE_PREFIX "$device_prefix"
48188 _ACEOF
48189
48190       ;;
48191   esac
48192 fi
48193
48194 cat >>confdefs.h <<_ACEOF
48195 #define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
48196 _ACEOF
48197
48198 { $as_echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE" >&5
48199 $as_echo "$DEFAULT_ARCHIVE" >&6; }
48200
48201
48202 { $as_echo "$as_me:$LINENO: checking for default blocking" >&5
48203 $as_echo_n "checking for default blocking... " >&6; }
48204 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
48205
48206 cat >>confdefs.h <<_ACEOF
48207 #define DEFAULT_BLOCKING $DEFAULT_BLOCKING
48208 _ACEOF
48209
48210 { $as_echo "$as_me:$LINENO: result: $DEFAULT_BLOCKING" >&5
48211 $as_echo "$DEFAULT_BLOCKING" >&6; }
48212
48213 { $as_echo "$as_me:$LINENO: checking for default quoting style" >&5
48214 $as_echo_n "checking for default quoting style... " >&6; }
48215
48216
48217 DEFAULT_QUOTING_STYLE="escape"
48218
48219
48220 case $DEFAULT_QUOTING_STYLE in
48221           literal|shell|shell-always|c|escape|locale|clocale) ;;
48222 *)  { { $as_echo "$as_me:$LINENO: error: Invalid quoting style" >&5
48223 $as_echo "$as_me: error: Invalid quoting style" >&2;}
48224    { (exit 1); exit 1; }; };;
48225 esac
48226 { $as_echo "$as_me:$LINENO: result: $DEFAULT_QUOTING_STYLE" >&5
48227 $as_echo "$DEFAULT_QUOTING_STYLE" >&6; }
48228 DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
48229
48230 cat >>confdefs.h <<_ACEOF
48231 #define DEFAULT_QUOTING_STYLE $DEFAULT_QUOTING_STYLE
48232 _ACEOF
48233
48234
48235 # Iconv
48236
48237       if test "X$prefix" = "XNONE"; then
48238     acl_final_prefix="$ac_default_prefix"
48239   else
48240     acl_final_prefix="$prefix"
48241   fi
48242   if test "X$exec_prefix" = "XNONE"; then
48243     acl_final_exec_prefix='${prefix}'
48244   else
48245     acl_final_exec_prefix="$exec_prefix"
48246   fi
48247   acl_save_prefix="$prefix"
48248   prefix="$acl_final_prefix"
48249   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
48250   prefix="$acl_save_prefix"
48251
48252
48253 # Check whether --with-gnu-ld was given.
48254 if test "${with_gnu_ld+set}" = set; then
48255   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
48256 else
48257   with_gnu_ld=no
48258 fi
48259
48260 # Prepare PATH_SEPARATOR.
48261 # The user is always right.
48262 if test "${PATH_SEPARATOR+set}" != set; then
48263   echo "#! /bin/sh" >conf$$.sh
48264   echo  "exit 0"   >>conf$$.sh
48265   chmod +x conf$$.sh
48266   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
48267     PATH_SEPARATOR=';'
48268   else
48269     PATH_SEPARATOR=:
48270   fi
48271   rm -f conf$$.sh
48272 fi
48273 ac_prog=ld
48274 if test "$GCC" = yes; then
48275   # Check if gcc -print-prog-name=ld gives a path.
48276   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
48277 $as_echo_n "checking for ld used by GCC... " >&6; }
48278   case $host in
48279   *-*-mingw*)
48280     # gcc leaves a trailing carriage return which upsets mingw
48281     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
48282   *)
48283     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
48284   esac
48285   case $ac_prog in
48286     # Accept absolute paths.
48287     [\\/]* | [A-Za-z]:[\\/]*)
48288       re_direlt='/[^/][^/]*/\.\./'
48289       # Canonicalize the path of ld
48290       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
48291       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
48292         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
48293       done
48294       test -z "$LD" && LD="$ac_prog"
48295       ;;
48296   "")
48297     # If it fails, then pretend we aren't using GCC.
48298     ac_prog=ld
48299     ;;
48300   *)
48301     # If it is relative, then search for the first ld in PATH.
48302     with_gnu_ld=unknown
48303     ;;
48304   esac
48305 elif test "$with_gnu_ld" = yes; then
48306   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
48307 $as_echo_n "checking for GNU ld... " >&6; }
48308 else
48309   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
48310 $as_echo_n "checking for non-GNU ld... " >&6; }
48311 fi
48312 if test "${acl_cv_path_LD+set}" = set; then
48313   $as_echo_n "(cached) " >&6
48314 else
48315   if test -z "$LD"; then
48316   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
48317   for ac_dir in $PATH; do
48318     test -z "$ac_dir" && ac_dir=.
48319     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
48320       acl_cv_path_LD="$ac_dir/$ac_prog"
48321       # Check to see if the program is GNU ld.  I'd rather use --version,
48322       # but apparently some GNU ld's only accept -v.
48323       # Break only if it was the GNU/non-GNU ld that we prefer.
48324       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
48325       *GNU* | *'with BFD'*)
48326         test "$with_gnu_ld" != no && break ;;
48327       *)
48328         test "$with_gnu_ld" != yes && break ;;
48329       esac
48330     fi
48331   done
48332   IFS="$ac_save_ifs"
48333 else
48334   acl_cv_path_LD="$LD" # Let the user override the test with a path.
48335 fi
48336 fi
48337
48338 LD="$acl_cv_path_LD"
48339 if test -n "$LD"; then
48340   { $as_echo "$as_me:$LINENO: result: $LD" >&5
48341 $as_echo "$LD" >&6; }
48342 else
48343   { $as_echo "$as_me:$LINENO: result: no" >&5
48344 $as_echo "no" >&6; }
48345 fi
48346 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
48347 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
48348    { (exit 1); exit 1; }; }
48349 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
48350 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
48351 if test "${acl_cv_prog_gnu_ld+set}" = set; then
48352   $as_echo_n "(cached) " >&6
48353 else
48354   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
48355 case `$LD -v 2>&1 </dev/null` in
48356 *GNU* | *'with BFD'*)
48357   acl_cv_prog_gnu_ld=yes ;;
48358 *)
48359   acl_cv_prog_gnu_ld=no ;;
48360 esac
48361 fi
48362 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
48363 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
48364 with_gnu_ld=$acl_cv_prog_gnu_ld
48365
48366
48367
48368
48369                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
48370 $as_echo_n "checking for shared library run path origin... " >&6; }
48371 if test "${acl_cv_rpath+set}" = set; then
48372   $as_echo_n "(cached) " >&6
48373 else
48374
48375     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
48376     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
48377     . ./conftest.sh
48378     rm -f ./conftest.sh
48379     acl_cv_rpath=done
48380
48381 fi
48382 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
48383 $as_echo "$acl_cv_rpath" >&6; }
48384   wl="$acl_cv_wl"
48385   acl_libext="$acl_cv_libext"
48386   acl_shlibext="$acl_cv_shlibext"
48387   acl_libname_spec="$acl_cv_libname_spec"
48388   acl_library_names_spec="$acl_cv_library_names_spec"
48389   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
48390   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
48391   acl_hardcode_direct="$acl_cv_hardcode_direct"
48392   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
48393     # Check whether --enable-rpath was given.
48394 if test "${enable_rpath+set}" = set; then
48395   enableval=$enable_rpath; :
48396 else
48397   enable_rpath=yes
48398 fi
48399
48400
48401
48402
48403   acl_libdirstem=lib
48404   acl_libdirstem2=
48405   case "$host_os" in
48406     solaris*)
48407                                     { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5
48408 $as_echo_n "checking for 64-bit host... " >&6; }
48409 if test "${gl_cv_solaris_64bit+set}" = set; then
48410   $as_echo_n "(cached) " >&6
48411 else
48412   cat >conftest.$ac_ext <<_ACEOF
48413 /* confdefs.h.  */
48414 _ACEOF
48415 cat confdefs.h >>conftest.$ac_ext
48416 cat >>conftest.$ac_ext <<_ACEOF
48417 /* end confdefs.h.  */
48418
48419 #ifdef _LP64
48420 sixtyfour bits
48421 #endif
48422
48423 _ACEOF
48424 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
48425   $EGREP "sixtyfour bits" >/dev/null 2>&1; then
48426   gl_cv_solaris_64bit=yes
48427 else
48428   gl_cv_solaris_64bit=no
48429 fi
48430 rm -f conftest*
48431
48432
48433 fi
48434 { $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
48435 $as_echo "$gl_cv_solaris_64bit" >&6; }
48436       if test $gl_cv_solaris_64bit = yes; then
48437         acl_libdirstem=lib/64
48438         case "$host_cpu" in
48439           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
48440           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
48441         esac
48442       fi
48443       ;;
48444     *)
48445       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
48446       if test -n "$searchpath"; then
48447         acl_save_IFS="${IFS=    }"; IFS=":"
48448         for searchdir in $searchpath; do
48449           if test -d "$searchdir"; then
48450             case "$searchdir" in
48451               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
48452               */../ | */.. )
48453                 # Better ignore directories of this form. They are misleading.
48454                 ;;
48455               *) searchdir=`cd "$searchdir" && pwd`
48456                  case "$searchdir" in
48457                    */lib64 ) acl_libdirstem=lib64 ;;
48458                  esac ;;
48459             esac
48460           fi
48461         done
48462         IFS="$acl_save_IFS"
48463       fi
48464       ;;
48465   esac
48466   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
48467
48468
48469
48470
48471
48472
48473
48474
48475
48476
48477
48478
48479     use_additional=yes
48480
48481   acl_save_prefix="$prefix"
48482   prefix="$acl_final_prefix"
48483   acl_save_exec_prefix="$exec_prefix"
48484   exec_prefix="$acl_final_exec_prefix"
48485
48486     eval additional_includedir=\"$includedir\"
48487     eval additional_libdir=\"$libdir\"
48488
48489   exec_prefix="$acl_save_exec_prefix"
48490   prefix="$acl_save_prefix"
48491
48492
48493 # Check whether --with-libiconv-prefix was given.
48494 if test "${with_libiconv_prefix+set}" = set; then
48495   withval=$with_libiconv_prefix;
48496     if test "X$withval" = "Xno"; then
48497       use_additional=no
48498     else
48499       if test "X$withval" = "X"; then
48500
48501   acl_save_prefix="$prefix"
48502   prefix="$acl_final_prefix"
48503   acl_save_exec_prefix="$exec_prefix"
48504   exec_prefix="$acl_final_exec_prefix"
48505
48506           eval additional_includedir=\"$includedir\"
48507           eval additional_libdir=\"$libdir\"
48508
48509   exec_prefix="$acl_save_exec_prefix"
48510   prefix="$acl_save_prefix"
48511
48512       else
48513         additional_includedir="$withval/include"
48514         additional_libdir="$withval/$acl_libdirstem"
48515         if test "$acl_libdirstem2" != "$acl_libdirstem" \
48516            && ! test -d "$withval/$acl_libdirstem"; then
48517           additional_libdir="$withval/$acl_libdirstem2"
48518         fi
48519       fi
48520     fi
48521
48522 fi
48523
48524       LIBICONV=
48525   LTLIBICONV=
48526   INCICONV=
48527   LIBICONV_PREFIX=
48528       HAVE_LIBICONV=
48529   rpathdirs=
48530   ltrpathdirs=
48531   names_already_handled=
48532   names_next_round='iconv '
48533   while test -n "$names_next_round"; do
48534     names_this_round="$names_next_round"
48535     names_next_round=
48536     for name in $names_this_round; do
48537       already_handled=
48538       for n in $names_already_handled; do
48539         if test "$n" = "$name"; then
48540           already_handled=yes
48541           break
48542         fi
48543       done
48544       if test -z "$already_handled"; then
48545         names_already_handled="$names_already_handled $name"
48546                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
48547         eval value=\"\$HAVE_LIB$uppername\"
48548         if test -n "$value"; then
48549           if test "$value" = yes; then
48550             eval value=\"\$LIB$uppername\"
48551             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
48552             eval value=\"\$LTLIB$uppername\"
48553             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
48554           else
48555                                     :
48556           fi
48557         else
48558                               found_dir=
48559           found_la=
48560           found_so=
48561           found_a=
48562           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
48563           if test -n "$acl_shlibext"; then
48564             shrext=".$acl_shlibext"             # typically: shrext=.so
48565           else
48566             shrext=
48567           fi
48568           if test $use_additional = yes; then
48569             dir="$additional_libdir"
48570                                     if test -n "$acl_shlibext"; then
48571               if test -f "$dir/$libname$shrext"; then
48572                 found_dir="$dir"
48573                 found_so="$dir/$libname$shrext"
48574               else
48575                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
48576                   ver=`(cd "$dir" && \
48577                         for f in "$libname$shrext".*; do echo "$f"; done \
48578                         | sed -e "s,^$libname$shrext\\\\.,," \
48579                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
48580                         | sed 1q ) 2>/dev/null`
48581                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
48582                     found_dir="$dir"
48583                     found_so="$dir/$libname$shrext.$ver"
48584                   fi
48585                 else
48586                   eval library_names=\"$acl_library_names_spec\"
48587                   for f in $library_names; do
48588                     if test -f "$dir/$f"; then
48589                       found_dir="$dir"
48590                       found_so="$dir/$f"
48591                       break
48592                     fi
48593                   done
48594                 fi
48595               fi
48596             fi
48597                         if test "X$found_dir" = "X"; then
48598               if test -f "$dir/$libname.$acl_libext"; then
48599                 found_dir="$dir"
48600                 found_a="$dir/$libname.$acl_libext"
48601               fi
48602             fi
48603             if test "X$found_dir" != "X"; then
48604               if test -f "$dir/$libname.la"; then
48605                 found_la="$dir/$libname.la"
48606               fi
48607             fi
48608           fi
48609           if test "X$found_dir" = "X"; then
48610             for x in $LDFLAGS $LTLIBICONV; do
48611
48612   acl_save_prefix="$prefix"
48613   prefix="$acl_final_prefix"
48614   acl_save_exec_prefix="$exec_prefix"
48615   exec_prefix="$acl_final_exec_prefix"
48616   eval x=\"$x\"
48617   exec_prefix="$acl_save_exec_prefix"
48618   prefix="$acl_save_prefix"
48619
48620               case "$x" in
48621                 -L*)
48622                   dir=`echo "X$x" | sed -e 's/^X-L//'`
48623                                     if test -n "$acl_shlibext"; then
48624                     if test -f "$dir/$libname$shrext"; then
48625                       found_dir="$dir"
48626                       found_so="$dir/$libname$shrext"
48627                     else
48628                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
48629                         ver=`(cd "$dir" && \
48630                               for f in "$libname$shrext".*; do echo "$f"; done \
48631                               | sed -e "s,^$libname$shrext\\\\.,," \
48632                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
48633                               | sed 1q ) 2>/dev/null`
48634                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
48635                           found_dir="$dir"
48636                           found_so="$dir/$libname$shrext.$ver"
48637                         fi
48638                       else
48639                         eval library_names=\"$acl_library_names_spec\"
48640                         for f in $library_names; do
48641                           if test -f "$dir/$f"; then
48642                             found_dir="$dir"
48643                             found_so="$dir/$f"
48644                             break
48645                           fi
48646                         done
48647                       fi
48648                     fi
48649                   fi
48650                                     if test "X$found_dir" = "X"; then
48651                     if test -f "$dir/$libname.$acl_libext"; then
48652                       found_dir="$dir"
48653                       found_a="$dir/$libname.$acl_libext"
48654                     fi
48655                   fi
48656                   if test "X$found_dir" != "X"; then
48657                     if test -f "$dir/$libname.la"; then
48658                       found_la="$dir/$libname.la"
48659                     fi
48660                   fi
48661                   ;;
48662               esac
48663               if test "X$found_dir" != "X"; then
48664                 break
48665               fi
48666             done
48667           fi
48668           if test "X$found_dir" != "X"; then
48669                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
48670             if test "X$found_so" != "X"; then
48671                                                         if test "$enable_rpath" = no \
48672                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
48673                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
48674                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
48675               else
48676                                                                                 haveit=
48677                 for x in $ltrpathdirs; do
48678                   if test "X$x" = "X$found_dir"; then
48679                     haveit=yes
48680                     break
48681                   fi
48682                 done
48683                 if test -z "$haveit"; then
48684                   ltrpathdirs="$ltrpathdirs $found_dir"
48685                 fi
48686                                 if test "$acl_hardcode_direct" = yes; then
48687                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
48688                 else
48689                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
48690                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
48691                                                             haveit=
48692                     for x in $rpathdirs; do
48693                       if test "X$x" = "X$found_dir"; then
48694                         haveit=yes
48695                         break
48696                       fi
48697                     done
48698                     if test -z "$haveit"; then
48699                       rpathdirs="$rpathdirs $found_dir"
48700                     fi
48701                   else
48702                                                                                 haveit=
48703                     for x in $LDFLAGS $LIBICONV; do
48704
48705   acl_save_prefix="$prefix"
48706   prefix="$acl_final_prefix"
48707   acl_save_exec_prefix="$exec_prefix"
48708   exec_prefix="$acl_final_exec_prefix"
48709   eval x=\"$x\"
48710   exec_prefix="$acl_save_exec_prefix"
48711   prefix="$acl_save_prefix"
48712
48713                       if test "X$x" = "X-L$found_dir"; then
48714                         haveit=yes
48715                         break
48716                       fi
48717                     done
48718                     if test -z "$haveit"; then
48719                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
48720                     fi
48721                     if test "$acl_hardcode_minus_L" != no; then
48722                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
48723                     else
48724                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
48725                     fi
48726                   fi
48727                 fi
48728               fi
48729             else
48730               if test "X$found_a" != "X"; then
48731                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
48732               else
48733                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
48734               fi
48735             fi
48736                         additional_includedir=
48737             case "$found_dir" in
48738               */$acl_libdirstem | */$acl_libdirstem/)
48739                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
48740                 if test "$name" = 'iconv'; then
48741                   LIBICONV_PREFIX="$basedir"
48742                 fi
48743                 additional_includedir="$basedir/include"
48744                 ;;
48745               */$acl_libdirstem2 | */$acl_libdirstem2/)
48746                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
48747                 if test "$name" = 'iconv'; then
48748                   LIBICONV_PREFIX="$basedir"
48749                 fi
48750                 additional_includedir="$basedir/include"
48751                 ;;
48752             esac
48753             if test "X$additional_includedir" != "X"; then
48754                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
48755                 haveit=
48756                 if test "X$additional_includedir" = "X/usr/local/include"; then
48757                   if test -n "$GCC"; then
48758                     case $host_os in
48759                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
48760                     esac
48761                   fi
48762                 fi
48763                 if test -z "$haveit"; then
48764                   for x in $CPPFLAGS $INCICONV; do
48765
48766   acl_save_prefix="$prefix"
48767   prefix="$acl_final_prefix"
48768   acl_save_exec_prefix="$exec_prefix"
48769   exec_prefix="$acl_final_exec_prefix"
48770   eval x=\"$x\"
48771   exec_prefix="$acl_save_exec_prefix"
48772   prefix="$acl_save_prefix"
48773
48774                     if test "X$x" = "X-I$additional_includedir"; then
48775                       haveit=yes
48776                       break
48777                     fi
48778                   done
48779                   if test -z "$haveit"; then
48780                     if test -d "$additional_includedir"; then
48781                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
48782                     fi
48783                   fi
48784                 fi
48785               fi
48786             fi
48787                         if test -n "$found_la"; then
48788                                                         save_libdir="$libdir"
48789               case "$found_la" in
48790                 */* | *\\*) . "$found_la" ;;
48791                 *) . "./$found_la" ;;
48792               esac
48793               libdir="$save_libdir"
48794                             for dep in $dependency_libs; do
48795                 case "$dep" in
48796                   -L*)
48797                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
48798                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
48799                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
48800                       haveit=
48801                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
48802                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
48803                         if test -n "$GCC"; then
48804                           case $host_os in
48805                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
48806                           esac
48807                         fi
48808                       fi
48809                       if test -z "$haveit"; then
48810                         haveit=
48811                         for x in $LDFLAGS $LIBICONV; do
48812
48813   acl_save_prefix="$prefix"
48814   prefix="$acl_final_prefix"
48815   acl_save_exec_prefix="$exec_prefix"
48816   exec_prefix="$acl_final_exec_prefix"
48817   eval x=\"$x\"
48818   exec_prefix="$acl_save_exec_prefix"
48819   prefix="$acl_save_prefix"
48820
48821                           if test "X$x" = "X-L$additional_libdir"; then
48822                             haveit=yes
48823                             break
48824                           fi
48825                         done
48826                         if test -z "$haveit"; then
48827                           if test -d "$additional_libdir"; then
48828                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
48829                           fi
48830                         fi
48831                         haveit=
48832                         for x in $LDFLAGS $LTLIBICONV; do
48833
48834   acl_save_prefix="$prefix"
48835   prefix="$acl_final_prefix"
48836   acl_save_exec_prefix="$exec_prefix"
48837   exec_prefix="$acl_final_exec_prefix"
48838   eval x=\"$x\"
48839   exec_prefix="$acl_save_exec_prefix"
48840   prefix="$acl_save_prefix"
48841
48842                           if test "X$x" = "X-L$additional_libdir"; then
48843                             haveit=yes
48844                             break
48845                           fi
48846                         done
48847                         if test -z "$haveit"; then
48848                           if test -d "$additional_libdir"; then
48849                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
48850                           fi
48851                         fi
48852                       fi
48853                     fi
48854                     ;;
48855                   -R*)
48856                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
48857                     if test "$enable_rpath" != no; then
48858                                                                   haveit=
48859                       for x in $rpathdirs; do
48860                         if test "X$x" = "X$dir"; then
48861                           haveit=yes
48862                           break
48863                         fi
48864                       done
48865                       if test -z "$haveit"; then
48866                         rpathdirs="$rpathdirs $dir"
48867                       fi
48868                                                                   haveit=
48869                       for x in $ltrpathdirs; do
48870                         if test "X$x" = "X$dir"; then
48871                           haveit=yes
48872                           break
48873                         fi
48874                       done
48875                       if test -z "$haveit"; then
48876                         ltrpathdirs="$ltrpathdirs $dir"
48877                       fi
48878                     fi
48879                     ;;
48880                   -l*)
48881                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
48882                     ;;
48883                   *.la)
48884                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
48885                     ;;
48886                   *)
48887                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
48888                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
48889                     ;;
48890                 esac
48891               done
48892             fi
48893           else
48894                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
48895             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
48896           fi
48897         fi
48898       fi
48899     done
48900   done
48901   if test "X$rpathdirs" != "X"; then
48902     if test -n "$acl_hardcode_libdir_separator"; then
48903                         alldirs=
48904       for found_dir in $rpathdirs; do
48905         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
48906       done
48907             acl_save_libdir="$libdir"
48908       libdir="$alldirs"
48909       eval flag=\"$acl_hardcode_libdir_flag_spec\"
48910       libdir="$acl_save_libdir"
48911       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
48912     else
48913             for found_dir in $rpathdirs; do
48914         acl_save_libdir="$libdir"
48915         libdir="$found_dir"
48916         eval flag=\"$acl_hardcode_libdir_flag_spec\"
48917         libdir="$acl_save_libdir"
48918         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
48919       done
48920     fi
48921   fi
48922   if test "X$ltrpathdirs" != "X"; then
48923             for found_dir in $ltrpathdirs; do
48924       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
48925     done
48926   fi
48927
48928
48929
48930
48931
48932
48933
48934
48935
48936
48937
48938
48939           am_save_CPPFLAGS="$CPPFLAGS"
48940
48941   for element in $INCICONV; do
48942     haveit=
48943     for x in $CPPFLAGS; do
48944
48945   acl_save_prefix="$prefix"
48946   prefix="$acl_final_prefix"
48947   acl_save_exec_prefix="$exec_prefix"
48948   exec_prefix="$acl_final_exec_prefix"
48949   eval x=\"$x\"
48950   exec_prefix="$acl_save_exec_prefix"
48951   prefix="$acl_save_prefix"
48952
48953       if test "X$x" = "X$element"; then
48954         haveit=yes
48955         break
48956       fi
48957     done
48958     if test -z "$haveit"; then
48959       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
48960     fi
48961   done
48962
48963
48964   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
48965 $as_echo_n "checking for iconv... " >&6; }
48966 if test "${am_cv_func_iconv+set}" = set; then
48967   $as_echo_n "(cached) " >&6
48968 else
48969
48970     am_cv_func_iconv="no, consider installing GNU libiconv"
48971     am_cv_lib_iconv=no
48972     cat >conftest.$ac_ext <<_ACEOF
48973 /* confdefs.h.  */
48974 _ACEOF
48975 cat confdefs.h >>conftest.$ac_ext
48976 cat >>conftest.$ac_ext <<_ACEOF
48977 /* end confdefs.h.  */
48978 #include <stdlib.h>
48979 #include <iconv.h>
48980 int
48981 main ()
48982 {
48983 iconv_t cd = iconv_open("","");
48984        iconv(cd,NULL,NULL,NULL,NULL);
48985        iconv_close(cd);
48986   ;
48987   return 0;
48988 }
48989 _ACEOF
48990 rm -f conftest.$ac_objext conftest$ac_exeext
48991 if { (ac_try="$ac_link"
48992 case "(($ac_try" in
48993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48994   *) ac_try_echo=$ac_try;;
48995 esac
48996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48997 $as_echo "$ac_try_echo") >&5
48998   (eval "$ac_link") 2>conftest.er1
48999   ac_status=$?
49000   grep -v '^ *+' conftest.er1 >conftest.err
49001   rm -f conftest.er1
49002   cat conftest.err >&5
49003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49004   (exit $ac_status); } && {
49005          test -z "$ac_c_werror_flag" ||
49006          test ! -s conftest.err
49007        } && test -s conftest$ac_exeext && {
49008          test "$cross_compiling" = yes ||
49009          $as_test_x conftest$ac_exeext
49010        }; then
49011   am_cv_func_iconv=yes
49012 else
49013   $as_echo "$as_me: failed program was:" >&5
49014 sed 's/^/| /' conftest.$ac_ext >&5
49015
49016
49017 fi
49018
49019 rm -rf conftest.dSYM
49020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49021       conftest$ac_exeext conftest.$ac_ext
49022     if test "$am_cv_func_iconv" != yes; then
49023       am_save_LIBS="$LIBS"
49024       LIBS="$LIBS $LIBICONV"
49025       cat >conftest.$ac_ext <<_ACEOF
49026 /* confdefs.h.  */
49027 _ACEOF
49028 cat confdefs.h >>conftest.$ac_ext
49029 cat >>conftest.$ac_ext <<_ACEOF
49030 /* end confdefs.h.  */
49031 #include <stdlib.h>
49032 #include <iconv.h>
49033 int
49034 main ()
49035 {
49036 iconv_t cd = iconv_open("","");
49037          iconv(cd,NULL,NULL,NULL,NULL);
49038          iconv_close(cd);
49039   ;
49040   return 0;
49041 }
49042 _ACEOF
49043 rm -f conftest.$ac_objext conftest$ac_exeext
49044 if { (ac_try="$ac_link"
49045 case "(($ac_try" in
49046   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49047   *) ac_try_echo=$ac_try;;
49048 esac
49049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49050 $as_echo "$ac_try_echo") >&5
49051   (eval "$ac_link") 2>conftest.er1
49052   ac_status=$?
49053   grep -v '^ *+' conftest.er1 >conftest.err
49054   rm -f conftest.er1
49055   cat conftest.err >&5
49056   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49057   (exit $ac_status); } && {
49058          test -z "$ac_c_werror_flag" ||
49059          test ! -s conftest.err
49060        } && test -s conftest$ac_exeext && {
49061          test "$cross_compiling" = yes ||
49062          $as_test_x conftest$ac_exeext
49063        }; then
49064   am_cv_lib_iconv=yes
49065         am_cv_func_iconv=yes
49066 else
49067   $as_echo "$as_me: failed program was:" >&5
49068 sed 's/^/| /' conftest.$ac_ext >&5
49069
49070
49071 fi
49072
49073 rm -rf conftest.dSYM
49074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49075       conftest$ac_exeext conftest.$ac_ext
49076       LIBS="$am_save_LIBS"
49077     fi
49078
49079 fi
49080 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
49081 $as_echo "$am_cv_func_iconv" >&6; }
49082   if test "$am_cv_func_iconv" = yes; then
49083     { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
49084 $as_echo_n "checking for working iconv... " >&6; }
49085 if test "${am_cv_func_iconv_works+set}" = set; then
49086   $as_echo_n "(cached) " >&6
49087 else
49088
49089             am_save_LIBS="$LIBS"
49090       if test $am_cv_lib_iconv = yes; then
49091         LIBS="$LIBS $LIBICONV"
49092       fi
49093       if test "$cross_compiling" = yes; then
49094   case "$host_os" in
49095            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
49096            *)            am_cv_func_iconv_works="guessing yes" ;;
49097          esac
49098 else
49099   cat >conftest.$ac_ext <<_ACEOF
49100 /* confdefs.h.  */
49101 _ACEOF
49102 cat confdefs.h >>conftest.$ac_ext
49103 cat >>conftest.$ac_ext <<_ACEOF
49104 /* end confdefs.h.  */
49105
49106 #include <iconv.h>
49107 #include <string.h>
49108 int main ()
49109 {
49110   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
49111      returns.  */
49112   {
49113     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
49114     if (cd_utf8_to_88591 != (iconv_t)(-1))
49115       {
49116         static const char input[] = "\342\202\254"; /* EURO SIGN */
49117         char buf[10];
49118         const char *inptr = input;
49119         size_t inbytesleft = strlen (input);
49120         char *outptr = buf;
49121         size_t outbytesleft = sizeof (buf);
49122         size_t res = iconv (cd_utf8_to_88591,
49123                             (char **) &inptr, &inbytesleft,
49124                             &outptr, &outbytesleft);
49125         if (res == 0)
49126           return 1;
49127       }
49128   }
49129   /* Test against Solaris 10 bug: Failures are not distinguishable from
49130      successful returns.  */
49131   {
49132     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
49133     if (cd_ascii_to_88591 != (iconv_t)(-1))
49134       {
49135         static const char input[] = "\263";
49136         char buf[10];
49137         const char *inptr = input;
49138         size_t inbytesleft = strlen (input);
49139         char *outptr = buf;
49140         size_t outbytesleft = sizeof (buf);
49141         size_t res = iconv (cd_ascii_to_88591,
49142                             (char **) &inptr, &inbytesleft,
49143                             &outptr, &outbytesleft);
49144         if (res == 0)
49145           return 1;
49146       }
49147   }
49148 #if 0 /* This bug could be worked around by the caller.  */
49149   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
49150   {
49151     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
49152     if (cd_88591_to_utf8 != (iconv_t)(-1))
49153       {
49154         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
49155         char buf[50];
49156         const char *inptr = input;
49157         size_t inbytesleft = strlen (input);
49158         char *outptr = buf;
49159         size_t outbytesleft = sizeof (buf);
49160         size_t res = iconv (cd_88591_to_utf8,
49161                             (char **) &inptr, &inbytesleft,
49162                             &outptr, &outbytesleft);
49163         if ((int)res > 0)
49164           return 1;
49165       }
49166   }
49167 #endif
49168   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
49169      provided.  */
49170   if (/* Try standardized names.  */
49171       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
49172       /* Try IRIX, OSF/1 names.  */
49173       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
49174       /* Try AIX names.  */
49175       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
49176       /* Try HP-UX names.  */
49177       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
49178     return 1;
49179   return 0;
49180 }
49181 _ACEOF
49182 rm -f conftest$ac_exeext
49183 if { (ac_try="$ac_link"
49184 case "(($ac_try" in
49185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49186   *) ac_try_echo=$ac_try;;
49187 esac
49188 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49189 $as_echo "$ac_try_echo") >&5
49190   (eval "$ac_link") 2>&5
49191   ac_status=$?
49192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49193   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49194   { (case "(($ac_try" in
49195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49196   *) ac_try_echo=$ac_try;;
49197 esac
49198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49199 $as_echo "$ac_try_echo") >&5
49200   (eval "$ac_try") 2>&5
49201   ac_status=$?
49202   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49203   (exit $ac_status); }; }; then
49204   am_cv_func_iconv_works=yes
49205 else
49206   $as_echo "$as_me: program exited with status $ac_status" >&5
49207 $as_echo "$as_me: failed program was:" >&5
49208 sed 's/^/| /' conftest.$ac_ext >&5
49209
49210 ( exit $ac_status )
49211 am_cv_func_iconv_works=no
49212 fi
49213 rm -rf conftest.dSYM
49214 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49215 fi
49216
49217
49218       LIBS="$am_save_LIBS"
49219
49220 fi
49221 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
49222 $as_echo "$am_cv_func_iconv_works" >&6; }
49223     case "$am_cv_func_iconv_works" in
49224       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
49225       *)   am_func_iconv=yes ;;
49226     esac
49227   else
49228     am_func_iconv=no am_cv_lib_iconv=no
49229   fi
49230   if test "$am_func_iconv" = yes; then
49231
49232 cat >>confdefs.h <<\_ACEOF
49233 #define HAVE_ICONV 1
49234 _ACEOF
49235
49236   fi
49237   if test "$am_cv_lib_iconv" = yes; then
49238     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
49239 $as_echo_n "checking how to link with libiconv... " >&6; }
49240     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
49241 $as_echo "$LIBICONV" >&6; }
49242   else
49243             CPPFLAGS="$am_save_CPPFLAGS"
49244     LIBICONV=
49245     LTLIBICONV=
49246   fi
49247
49248
49249
49250   if test "$am_cv_func_iconv" = yes; then
49251     { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
49252 $as_echo_n "checking for iconv declaration... " >&6; }
49253     if test "${am_cv_proto_iconv+set}" = set; then
49254   $as_echo_n "(cached) " >&6
49255 else
49256
49257       cat >conftest.$ac_ext <<_ACEOF
49258 /* confdefs.h.  */
49259 _ACEOF
49260 cat confdefs.h >>conftest.$ac_ext
49261 cat >>conftest.$ac_ext <<_ACEOF
49262 /* end confdefs.h.  */
49263
49264 #include <stdlib.h>
49265 #include <iconv.h>
49266 extern
49267 #ifdef __cplusplus
49268 "C"
49269 #endif
49270 #if defined(__STDC__) || defined(__cplusplus)
49271 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
49272 #else
49273 size_t iconv();
49274 #endif
49275
49276 int
49277 main ()
49278 {
49279
49280   ;
49281   return 0;
49282 }
49283 _ACEOF
49284 rm -f conftest.$ac_objext
49285 if { (ac_try="$ac_compile"
49286 case "(($ac_try" in
49287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49288   *) ac_try_echo=$ac_try;;
49289 esac
49290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49291 $as_echo "$ac_try_echo") >&5
49292   (eval "$ac_compile") 2>conftest.er1
49293   ac_status=$?
49294   grep -v '^ *+' conftest.er1 >conftest.err
49295   rm -f conftest.er1
49296   cat conftest.err >&5
49297   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49298   (exit $ac_status); } && {
49299          test -z "$ac_c_werror_flag" ||
49300          test ! -s conftest.err
49301        } && test -s conftest.$ac_objext; then
49302   am_cv_proto_iconv_arg1=""
49303 else
49304   $as_echo "$as_me: failed program was:" >&5
49305 sed 's/^/| /' conftest.$ac_ext >&5
49306
49307         am_cv_proto_iconv_arg1="const"
49308 fi
49309
49310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49311       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);"
49312 fi
49313
49314     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
49315     { $as_echo "$as_me:$LINENO: result:
49316          $am_cv_proto_iconv" >&5
49317 $as_echo "
49318          $am_cv_proto_iconv" >&6; }
49319
49320 cat >>confdefs.h <<_ACEOF
49321 #define ICONV_CONST $am_cv_proto_iconv_arg1
49322 _ACEOF
49323
49324   fi
49325
49326
49327 for ac_header in iconv.h
49328 do
49329 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
49330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49331   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49332 $as_echo_n "checking for $ac_header... " >&6; }
49333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49334   $as_echo_n "(cached) " >&6
49335 fi
49336 ac_res=`eval 'as_val=${'$as_ac_Header'}
49337                  $as_echo "$as_val"'`
49338                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49339 $as_echo "$ac_res" >&6; }
49340 else
49341   # Is the header compilable?
49342 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
49343 $as_echo_n "checking $ac_header usability... " >&6; }
49344 cat >conftest.$ac_ext <<_ACEOF
49345 /* confdefs.h.  */
49346 _ACEOF
49347 cat confdefs.h >>conftest.$ac_ext
49348 cat >>conftest.$ac_ext <<_ACEOF
49349 /* end confdefs.h.  */
49350 $ac_includes_default
49351 #include <$ac_header>
49352 _ACEOF
49353 rm -f conftest.$ac_objext
49354 if { (ac_try="$ac_compile"
49355 case "(($ac_try" in
49356   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49357   *) ac_try_echo=$ac_try;;
49358 esac
49359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49360 $as_echo "$ac_try_echo") >&5
49361   (eval "$ac_compile") 2>conftest.er1
49362   ac_status=$?
49363   grep -v '^ *+' conftest.er1 >conftest.err
49364   rm -f conftest.er1
49365   cat conftest.err >&5
49366   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49367   (exit $ac_status); } && {
49368          test -z "$ac_c_werror_flag" ||
49369          test ! -s conftest.err
49370        } && test -s conftest.$ac_objext; then
49371   ac_header_compiler=yes
49372 else
49373   $as_echo "$as_me: failed program was:" >&5
49374 sed 's/^/| /' conftest.$ac_ext >&5
49375
49376         ac_header_compiler=no
49377 fi
49378
49379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49380 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
49381 $as_echo "$ac_header_compiler" >&6; }
49382
49383 # Is the header present?
49384 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
49385 $as_echo_n "checking $ac_header presence... " >&6; }
49386 cat >conftest.$ac_ext <<_ACEOF
49387 /* confdefs.h.  */
49388 _ACEOF
49389 cat confdefs.h >>conftest.$ac_ext
49390 cat >>conftest.$ac_ext <<_ACEOF
49391 /* end confdefs.h.  */
49392 #include <$ac_header>
49393 _ACEOF
49394 if { (ac_try="$ac_cpp conftest.$ac_ext"
49395 case "(($ac_try" in
49396   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49397   *) ac_try_echo=$ac_try;;
49398 esac
49399 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49400 $as_echo "$ac_try_echo") >&5
49401   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
49402   ac_status=$?
49403   grep -v '^ *+' conftest.er1 >conftest.err
49404   rm -f conftest.er1
49405   cat conftest.err >&5
49406   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49407   (exit $ac_status); } >/dev/null && {
49408          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
49409          test ! -s conftest.err
49410        }; then
49411   ac_header_preproc=yes
49412 else
49413   $as_echo "$as_me: failed program was:" >&5
49414 sed 's/^/| /' conftest.$ac_ext >&5
49415
49416   ac_header_preproc=no
49417 fi
49418
49419 rm -f conftest.err conftest.$ac_ext
49420 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
49421 $as_echo "$ac_header_preproc" >&6; }
49422
49423 # So?  What about this header?
49424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
49425   yes:no: )
49426     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
49427 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
49428     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
49429 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
49430     ac_header_preproc=yes
49431     ;;
49432   no:yes:* )
49433     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
49434 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
49435     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
49436 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
49437     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
49438 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
49439     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
49440 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
49441     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
49442 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
49443     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
49444 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
49445     ( cat <<\_ASBOX
49446 ## ------------------------------ ##
49447 ## Report this to bug-tar@gnu.org ##
49448 ## ------------------------------ ##
49449 _ASBOX
49450      ) | sed "s/^/$as_me: WARNING:     /" >&2
49451     ;;
49452 esac
49453 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
49454 $as_echo_n "checking for $ac_header... " >&6; }
49455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
49456   $as_echo_n "(cached) " >&6
49457 else
49458   eval "$as_ac_Header=\$ac_header_preproc"
49459 fi
49460 ac_res=`eval 'as_val=${'$as_ac_Header'}
49461                  $as_echo "$as_val"'`
49462                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49463 $as_echo "$ac_res" >&6; }
49464
49465 fi
49466 as_val=`eval 'as_val=${'$as_ac_Header'}
49467                  $as_echo "$as_val"'`
49468    if test "x$as_val" = x""yes; then
49469   cat >>confdefs.h <<_ACEOF
49470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
49471 _ACEOF
49472
49473 fi
49474
49475 done
49476
49477 { $as_echo "$as_me:$LINENO: checking for iconv_t" >&5
49478 $as_echo_n "checking for iconv_t... " >&6; }
49479 if test "${ac_cv_type_iconv_t+set}" = set; then
49480   $as_echo_n "(cached) " >&6
49481 else
49482   ac_cv_type_iconv_t=no
49483 cat >conftest.$ac_ext <<_ACEOF
49484 /* confdefs.h.  */
49485 _ACEOF
49486 cat confdefs.h >>conftest.$ac_ext
49487 cat >>conftest.$ac_ext <<_ACEOF
49488 /* end confdefs.h.  */
49489
49490 #ifdef HAVE_ICONV_H
49491 # include <iconv.h>
49492 #endif
49493
49494
49495 int
49496 main ()
49497 {
49498 if (sizeof (iconv_t))
49499        return 0;
49500   ;
49501   return 0;
49502 }
49503 _ACEOF
49504 rm -f conftest.$ac_objext
49505 if { (ac_try="$ac_compile"
49506 case "(($ac_try" in
49507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49508   *) ac_try_echo=$ac_try;;
49509 esac
49510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49511 $as_echo "$ac_try_echo") >&5
49512   (eval "$ac_compile") 2>conftest.er1
49513   ac_status=$?
49514   grep -v '^ *+' conftest.er1 >conftest.err
49515   rm -f conftest.er1
49516   cat conftest.err >&5
49517   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49518   (exit $ac_status); } && {
49519          test -z "$ac_c_werror_flag" ||
49520          test ! -s conftest.err
49521        } && test -s conftest.$ac_objext; then
49522   cat >conftest.$ac_ext <<_ACEOF
49523 /* confdefs.h.  */
49524 _ACEOF
49525 cat confdefs.h >>conftest.$ac_ext
49526 cat >>conftest.$ac_ext <<_ACEOF
49527 /* end confdefs.h.  */
49528
49529 #ifdef HAVE_ICONV_H
49530 # include <iconv.h>
49531 #endif
49532
49533
49534 int
49535 main ()
49536 {
49537 if (sizeof ((iconv_t)))
49538           return 0;
49539   ;
49540   return 0;
49541 }
49542 _ACEOF
49543 rm -f conftest.$ac_objext
49544 if { (ac_try="$ac_compile"
49545 case "(($ac_try" in
49546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49547   *) ac_try_echo=$ac_try;;
49548 esac
49549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49550 $as_echo "$ac_try_echo") >&5
49551   (eval "$ac_compile") 2>conftest.er1
49552   ac_status=$?
49553   grep -v '^ *+' conftest.er1 >conftest.err
49554   rm -f conftest.er1
49555   cat conftest.err >&5
49556   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49557   (exit $ac_status); } && {
49558          test -z "$ac_c_werror_flag" ||
49559          test ! -s conftest.err
49560        } && test -s conftest.$ac_objext; then
49561   :
49562 else
49563   $as_echo "$as_me: failed program was:" >&5
49564 sed 's/^/| /' conftest.$ac_ext >&5
49565
49566         ac_cv_type_iconv_t=yes
49567 fi
49568
49569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49570 else
49571   $as_echo "$as_me: failed program was:" >&5
49572 sed 's/^/| /' conftest.$ac_ext >&5
49573
49574
49575 fi
49576
49577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49578 fi
49579 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_iconv_t" >&5
49580 $as_echo "$ac_cv_type_iconv_t" >&6; }
49581 if test "x$ac_cv_type_iconv_t" = x""yes; then
49582   :
49583 else
49584
49585 cat >>confdefs.h <<\_ACEOF
49586 #define iconv_t int
49587 _ACEOF
49588
49589 fi
49590
49591
49592 # Gettext.
49593
49594   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
49595 $as_echo_n "checking whether NLS is requested... " >&6; }
49596     # Check whether --enable-nls was given.
49597 if test "${enable_nls+set}" = set; then
49598   enableval=$enable_nls; USE_NLS=$enableval
49599 else
49600   USE_NLS=yes
49601 fi
49602
49603   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
49604 $as_echo "$USE_NLS" >&6; }
49605
49606
49607
49608
49609       GETTEXT_MACRO_VERSION=0.17
49610
49611
49612
49613
49614 # Prepare PATH_SEPARATOR.
49615 # The user is always right.
49616 if test "${PATH_SEPARATOR+set}" != set; then
49617   echo "#! /bin/sh" >conf$$.sh
49618   echo  "exit 0"   >>conf$$.sh
49619   chmod +x conf$$.sh
49620   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49621     PATH_SEPARATOR=';'
49622   else
49623     PATH_SEPARATOR=:
49624   fi
49625   rm -f conf$$.sh
49626 fi
49627
49628 # Find out how to test for executable files. Don't use a zero-byte file,
49629 # as systems may use methods other than mode bits to determine executability.
49630 cat >conf$$.file <<_ASEOF
49631 #! /bin/sh
49632 exit 0
49633 _ASEOF
49634 chmod +x conf$$.file
49635 if test -x conf$$.file >/dev/null 2>&1; then
49636   ac_executable_p="test -x"
49637 else
49638   ac_executable_p="test -f"
49639 fi
49640 rm -f conf$$.file
49641
49642 # Extract the first word of "msgfmt", so it can be a program name with args.
49643 set dummy msgfmt; ac_word=$2
49644 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
49645 $as_echo_n "checking for $ac_word... " >&6; }
49646 if test "${ac_cv_path_MSGFMT+set}" = set; then
49647   $as_echo_n "(cached) " >&6
49648 else
49649   case "$MSGFMT" in
49650   [\\/]* | ?:[\\/]*)
49651     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
49652     ;;
49653   *)
49654     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
49655     for ac_dir in $PATH; do
49656       IFS="$ac_save_IFS"
49657       test -z "$ac_dir" && ac_dir=.
49658       for ac_exec_ext in '' $ac_executable_extensions; do
49659         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
49660           echo "$as_me: trying $ac_dir/$ac_word..." >&5
49661           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
49662      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
49663             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
49664             break 2
49665           fi
49666         fi
49667       done
49668     done
49669     IFS="$ac_save_IFS"
49670   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
49671     ;;
49672 esac
49673 fi
49674 MSGFMT="$ac_cv_path_MSGFMT"
49675 if test "$MSGFMT" != ":"; then
49676   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
49677 $as_echo "$MSGFMT" >&6; }
49678 else
49679   { $as_echo "$as_me:$LINENO: result: no" >&5
49680 $as_echo "no" >&6; }
49681 fi
49682
49683   # Extract the first word of "gmsgfmt", so it can be a program name with args.
49684 set dummy gmsgfmt; ac_word=$2
49685 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
49686 $as_echo_n "checking for $ac_word... " >&6; }
49687 if test "${ac_cv_path_GMSGFMT+set}" = set; then
49688   $as_echo_n "(cached) " >&6
49689 else
49690   case $GMSGFMT in
49691   [\\/]* | ?:[\\/]*)
49692   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
49693   ;;
49694   *)
49695   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
49696 for as_dir in $PATH
49697 do
49698   IFS=$as_save_IFS
49699   test -z "$as_dir" && as_dir=.
49700   for ac_exec_ext in '' $ac_executable_extensions; do
49701   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
49702     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
49703     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
49704     break 2
49705   fi
49706 done
49707 done
49708 IFS=$as_save_IFS
49709
49710   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
49711   ;;
49712 esac
49713 fi
49714 GMSGFMT=$ac_cv_path_GMSGFMT
49715 if test -n "$GMSGFMT"; then
49716   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
49717 $as_echo "$GMSGFMT" >&6; }
49718 else
49719   { $as_echo "$as_me:$LINENO: result: no" >&5
49720 $as_echo "no" >&6; }
49721 fi
49722
49723
49724
49725     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
49726     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
49727     *) MSGFMT_015=$MSGFMT ;;
49728   esac
49729
49730   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
49731     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
49732     *) GMSGFMT_015=$GMSGFMT ;;
49733   esac
49734
49735
49736
49737 # Prepare PATH_SEPARATOR.
49738 # The user is always right.
49739 if test "${PATH_SEPARATOR+set}" != set; then
49740   echo "#! /bin/sh" >conf$$.sh
49741   echo  "exit 0"   >>conf$$.sh
49742   chmod +x conf$$.sh
49743   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49744     PATH_SEPARATOR=';'
49745   else
49746     PATH_SEPARATOR=:
49747   fi
49748   rm -f conf$$.sh
49749 fi
49750
49751 # Find out how to test for executable files. Don't use a zero-byte file,
49752 # as systems may use methods other than mode bits to determine executability.
49753 cat >conf$$.file <<_ASEOF
49754 #! /bin/sh
49755 exit 0
49756 _ASEOF
49757 chmod +x conf$$.file
49758 if test -x conf$$.file >/dev/null 2>&1; then
49759   ac_executable_p="test -x"
49760 else
49761   ac_executable_p="test -f"
49762 fi
49763 rm -f conf$$.file
49764
49765 # Extract the first word of "xgettext", so it can be a program name with args.
49766 set dummy xgettext; ac_word=$2
49767 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
49768 $as_echo_n "checking for $ac_word... " >&6; }
49769 if test "${ac_cv_path_XGETTEXT+set}" = set; then
49770   $as_echo_n "(cached) " >&6
49771 else
49772   case "$XGETTEXT" in
49773   [\\/]* | ?:[\\/]*)
49774     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
49775     ;;
49776   *)
49777     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
49778     for ac_dir in $PATH; do
49779       IFS="$ac_save_IFS"
49780       test -z "$ac_dir" && ac_dir=.
49781       for ac_exec_ext in '' $ac_executable_extensions; do
49782         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
49783           echo "$as_me: trying $ac_dir/$ac_word..." >&5
49784           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
49785      (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
49786             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
49787             break 2
49788           fi
49789         fi
49790       done
49791     done
49792     IFS="$ac_save_IFS"
49793   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
49794     ;;
49795 esac
49796 fi
49797 XGETTEXT="$ac_cv_path_XGETTEXT"
49798 if test "$XGETTEXT" != ":"; then
49799   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
49800 $as_echo "$XGETTEXT" >&6; }
49801 else
49802   { $as_echo "$as_me:$LINENO: result: no" >&5
49803 $as_echo "no" >&6; }
49804 fi
49805
49806     rm -f messages.po
49807
49808     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
49809     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
49810     *) XGETTEXT_015=$XGETTEXT ;;
49811   esac
49812
49813
49814
49815 # Prepare PATH_SEPARATOR.
49816 # The user is always right.
49817 if test "${PATH_SEPARATOR+set}" != set; then
49818   echo "#! /bin/sh" >conf$$.sh
49819   echo  "exit 0"   >>conf$$.sh
49820   chmod +x conf$$.sh
49821   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
49822     PATH_SEPARATOR=';'
49823   else
49824     PATH_SEPARATOR=:
49825   fi
49826   rm -f conf$$.sh
49827 fi
49828
49829 # Find out how to test for executable files. Don't use a zero-byte file,
49830 # as systems may use methods other than mode bits to determine executability.
49831 cat >conf$$.file <<_ASEOF
49832 #! /bin/sh
49833 exit 0
49834 _ASEOF
49835 chmod +x conf$$.file
49836 if test -x conf$$.file >/dev/null 2>&1; then
49837   ac_executable_p="test -x"
49838 else
49839   ac_executable_p="test -f"
49840 fi
49841 rm -f conf$$.file
49842
49843 # Extract the first word of "msgmerge", so it can be a program name with args.
49844 set dummy msgmerge; ac_word=$2
49845 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
49846 $as_echo_n "checking for $ac_word... " >&6; }
49847 if test "${ac_cv_path_MSGMERGE+set}" = set; then
49848   $as_echo_n "(cached) " >&6
49849 else
49850   case "$MSGMERGE" in
49851   [\\/]* | ?:[\\/]*)
49852     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
49853     ;;
49854   *)
49855     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
49856     for ac_dir in $PATH; do
49857       IFS="$ac_save_IFS"
49858       test -z "$ac_dir" && ac_dir=.
49859       for ac_exec_ext in '' $ac_executable_extensions; do
49860         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
49861           echo "$as_me: trying $ac_dir/$ac_word..." >&5
49862           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
49863             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
49864             break 2
49865           fi
49866         fi
49867       done
49868     done
49869     IFS="$ac_save_IFS"
49870   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
49871     ;;
49872 esac
49873 fi
49874 MSGMERGE="$ac_cv_path_MSGMERGE"
49875 if test "$MSGMERGE" != ":"; then
49876   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
49877 $as_echo "$MSGMERGE" >&6; }
49878 else
49879   { $as_echo "$as_me:$LINENO: result: no" >&5
49880 $as_echo "no" >&6; }
49881 fi
49882
49883
49884         test -n "$localedir" || localedir='${datadir}/locale'
49885
49886
49887     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
49888
49889
49890   ac_config_commands="$ac_config_commands po-directories"
49891
49892
49893
49894
49895
49896
49897
49898
49899
49900
49901
49902
49903
49904
49905
49906
49907
49908
49909
49910
49911
49912
49913
49914
49915
49916     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
49917 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
49918 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
49919   $as_echo_n "(cached) " >&6
49920 else
49921   gt_save_LIBS="$LIBS"
49922      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
49923      cat >conftest.$ac_ext <<_ACEOF
49924 /* confdefs.h.  */
49925 _ACEOF
49926 cat confdefs.h >>conftest.$ac_ext
49927 cat >>conftest.$ac_ext <<_ACEOF
49928 /* end confdefs.h.  */
49929 #include <CoreFoundation/CFPreferences.h>
49930 int
49931 main ()
49932 {
49933 CFPreferencesCopyAppValue(NULL, NULL)
49934   ;
49935   return 0;
49936 }
49937 _ACEOF
49938 rm -f conftest.$ac_objext conftest$ac_exeext
49939 if { (ac_try="$ac_link"
49940 case "(($ac_try" in
49941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49942   *) ac_try_echo=$ac_try;;
49943 esac
49944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49945 $as_echo "$ac_try_echo") >&5
49946   (eval "$ac_link") 2>conftest.er1
49947   ac_status=$?
49948   grep -v '^ *+' conftest.er1 >conftest.err
49949   rm -f conftest.er1
49950   cat conftest.err >&5
49951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49952   (exit $ac_status); } && {
49953          test -z "$ac_c_werror_flag" ||
49954          test ! -s conftest.err
49955        } && test -s conftest$ac_exeext && {
49956          test "$cross_compiling" = yes ||
49957          $as_test_x conftest$ac_exeext
49958        }; then
49959   gt_cv_func_CFPreferencesCopyAppValue=yes
49960 else
49961   $as_echo "$as_me: failed program was:" >&5
49962 sed 's/^/| /' conftest.$ac_ext >&5
49963
49964         gt_cv_func_CFPreferencesCopyAppValue=no
49965 fi
49966
49967 rm -rf conftest.dSYM
49968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49969       conftest$ac_exeext conftest.$ac_ext
49970      LIBS="$gt_save_LIBS"
49971 fi
49972 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
49973 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
49974   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
49975
49976 cat >>confdefs.h <<\_ACEOF
49977 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
49978 _ACEOF
49979
49980   fi
49981     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
49982 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
49983 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
49984   $as_echo_n "(cached) " >&6
49985 else
49986   gt_save_LIBS="$LIBS"
49987      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
49988      cat >conftest.$ac_ext <<_ACEOF
49989 /* confdefs.h.  */
49990 _ACEOF
49991 cat confdefs.h >>conftest.$ac_ext
49992 cat >>conftest.$ac_ext <<_ACEOF
49993 /* end confdefs.h.  */
49994 #include <CoreFoundation/CFLocale.h>
49995 int
49996 main ()
49997 {
49998 CFLocaleCopyCurrent();
49999   ;
50000   return 0;
50001 }
50002 _ACEOF
50003 rm -f conftest.$ac_objext conftest$ac_exeext
50004 if { (ac_try="$ac_link"
50005 case "(($ac_try" in
50006   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50007   *) ac_try_echo=$ac_try;;
50008 esac
50009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50010 $as_echo "$ac_try_echo") >&5
50011   (eval "$ac_link") 2>conftest.er1
50012   ac_status=$?
50013   grep -v '^ *+' conftest.er1 >conftest.err
50014   rm -f conftest.er1
50015   cat conftest.err >&5
50016   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50017   (exit $ac_status); } && {
50018          test -z "$ac_c_werror_flag" ||
50019          test ! -s conftest.err
50020        } && test -s conftest$ac_exeext && {
50021          test "$cross_compiling" = yes ||
50022          $as_test_x conftest$ac_exeext
50023        }; then
50024   gt_cv_func_CFLocaleCopyCurrent=yes
50025 else
50026   $as_echo "$as_me: failed program was:" >&5
50027 sed 's/^/| /' conftest.$ac_ext >&5
50028
50029         gt_cv_func_CFLocaleCopyCurrent=no
50030 fi
50031
50032 rm -rf conftest.dSYM
50033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50034       conftest$ac_exeext conftest.$ac_ext
50035      LIBS="$gt_save_LIBS"
50036 fi
50037 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
50038 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
50039   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
50040
50041 cat >>confdefs.h <<\_ACEOF
50042 #define HAVE_CFLOCALECOPYCURRENT 1
50043 _ACEOF
50044
50045   fi
50046   INTL_MACOSX_LIBS=
50047   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
50048     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
50049   fi
50050
50051
50052
50053
50054
50055
50056   LIBINTL=
50057   LTLIBINTL=
50058   POSUB=
50059
50060     case " $gt_needs " in
50061     *" need-formatstring-macros "*) gt_api_version=3 ;;
50062     *" need-ngettext "*) gt_api_version=2 ;;
50063     *) gt_api_version=1 ;;
50064   esac
50065   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
50066   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
50067
50068     if test "$USE_NLS" = "yes"; then
50069     gt_use_preinstalled_gnugettext=no
50070
50071
50072         if test $gt_api_version -ge 3; then
50073           gt_revision_test_code='
50074 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
50075 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
50076 #endif
50077 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
50078 '
50079         else
50080           gt_revision_test_code=
50081         fi
50082         if test $gt_api_version -ge 2; then
50083           gt_expression_test_code=' + * ngettext ("", "", 0)'
50084         else
50085           gt_expression_test_code=
50086         fi
50087
50088         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
50089 $as_echo_n "checking for GNU gettext in libc... " >&6; }
50090 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
50091   $as_echo_n "(cached) " >&6
50092 else
50093   cat >conftest.$ac_ext <<_ACEOF
50094 /* confdefs.h.  */
50095 _ACEOF
50096 cat confdefs.h >>conftest.$ac_ext
50097 cat >>conftest.$ac_ext <<_ACEOF
50098 /* end confdefs.h.  */
50099 #include <libintl.h>
50100 $gt_revision_test_code
50101 extern int _nl_msg_cat_cntr;
50102 extern int *_nl_domain_bindings;
50103 int
50104 main ()
50105 {
50106 bindtextdomain ("", "");
50107 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
50108   ;
50109   return 0;
50110 }
50111 _ACEOF
50112 rm -f conftest.$ac_objext conftest$ac_exeext
50113 if { (ac_try="$ac_link"
50114 case "(($ac_try" in
50115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50116   *) ac_try_echo=$ac_try;;
50117 esac
50118 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50119 $as_echo "$ac_try_echo") >&5
50120   (eval "$ac_link") 2>conftest.er1
50121   ac_status=$?
50122   grep -v '^ *+' conftest.er1 >conftest.err
50123   rm -f conftest.er1
50124   cat conftest.err >&5
50125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50126   (exit $ac_status); } && {
50127          test -z "$ac_c_werror_flag" ||
50128          test ! -s conftest.err
50129        } && test -s conftest$ac_exeext && {
50130          test "$cross_compiling" = yes ||
50131          $as_test_x conftest$ac_exeext
50132        }; then
50133   eval "$gt_func_gnugettext_libc=yes"
50134 else
50135   $as_echo "$as_me: failed program was:" >&5
50136 sed 's/^/| /' conftest.$ac_ext >&5
50137
50138         eval "$gt_func_gnugettext_libc=no"
50139 fi
50140
50141 rm -rf conftest.dSYM
50142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50143       conftest$ac_exeext conftest.$ac_ext
50144 fi
50145 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
50146                  $as_echo "$as_val"'`
50147                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50148 $as_echo "$ac_res" >&6; }
50149
50150         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
50151
50152
50153
50154
50155
50156           am_save_CPPFLAGS="$CPPFLAGS"
50157
50158   for element in $INCICONV; do
50159     haveit=
50160     for x in $CPPFLAGS; do
50161
50162   acl_save_prefix="$prefix"
50163   prefix="$acl_final_prefix"
50164   acl_save_exec_prefix="$exec_prefix"
50165   exec_prefix="$acl_final_exec_prefix"
50166   eval x=\"$x\"
50167   exec_prefix="$acl_save_exec_prefix"
50168   prefix="$acl_save_prefix"
50169
50170       if test "X$x" = "X$element"; then
50171         haveit=yes
50172         break
50173       fi
50174     done
50175     if test -z "$haveit"; then
50176       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
50177     fi
50178   done
50179
50180
50181   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
50182 $as_echo_n "checking for iconv... " >&6; }
50183 if test "${am_cv_func_iconv+set}" = set; then
50184   $as_echo_n "(cached) " >&6
50185 else
50186
50187     am_cv_func_iconv="no, consider installing GNU libiconv"
50188     am_cv_lib_iconv=no
50189     cat >conftest.$ac_ext <<_ACEOF
50190 /* confdefs.h.  */
50191 _ACEOF
50192 cat confdefs.h >>conftest.$ac_ext
50193 cat >>conftest.$ac_ext <<_ACEOF
50194 /* end confdefs.h.  */
50195 #include <stdlib.h>
50196 #include <iconv.h>
50197 int
50198 main ()
50199 {
50200 iconv_t cd = iconv_open("","");
50201        iconv(cd,NULL,NULL,NULL,NULL);
50202        iconv_close(cd);
50203   ;
50204   return 0;
50205 }
50206 _ACEOF
50207 rm -f conftest.$ac_objext conftest$ac_exeext
50208 if { (ac_try="$ac_link"
50209 case "(($ac_try" in
50210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50211   *) ac_try_echo=$ac_try;;
50212 esac
50213 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50214 $as_echo "$ac_try_echo") >&5
50215   (eval "$ac_link") 2>conftest.er1
50216   ac_status=$?
50217   grep -v '^ *+' conftest.er1 >conftest.err
50218   rm -f conftest.er1
50219   cat conftest.err >&5
50220   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50221   (exit $ac_status); } && {
50222          test -z "$ac_c_werror_flag" ||
50223          test ! -s conftest.err
50224        } && test -s conftest$ac_exeext && {
50225          test "$cross_compiling" = yes ||
50226          $as_test_x conftest$ac_exeext
50227        }; then
50228   am_cv_func_iconv=yes
50229 else
50230   $as_echo "$as_me: failed program was:" >&5
50231 sed 's/^/| /' conftest.$ac_ext >&5
50232
50233
50234 fi
50235
50236 rm -rf conftest.dSYM
50237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50238       conftest$ac_exeext conftest.$ac_ext
50239     if test "$am_cv_func_iconv" != yes; then
50240       am_save_LIBS="$LIBS"
50241       LIBS="$LIBS $LIBICONV"
50242       cat >conftest.$ac_ext <<_ACEOF
50243 /* confdefs.h.  */
50244 _ACEOF
50245 cat confdefs.h >>conftest.$ac_ext
50246 cat >>conftest.$ac_ext <<_ACEOF
50247 /* end confdefs.h.  */
50248 #include <stdlib.h>
50249 #include <iconv.h>
50250 int
50251 main ()
50252 {
50253 iconv_t cd = iconv_open("","");
50254          iconv(cd,NULL,NULL,NULL,NULL);
50255          iconv_close(cd);
50256   ;
50257   return 0;
50258 }
50259 _ACEOF
50260 rm -f conftest.$ac_objext conftest$ac_exeext
50261 if { (ac_try="$ac_link"
50262 case "(($ac_try" in
50263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50264   *) ac_try_echo=$ac_try;;
50265 esac
50266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50267 $as_echo "$ac_try_echo") >&5
50268   (eval "$ac_link") 2>conftest.er1
50269   ac_status=$?
50270   grep -v '^ *+' conftest.er1 >conftest.err
50271   rm -f conftest.er1
50272   cat conftest.err >&5
50273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50274   (exit $ac_status); } && {
50275          test -z "$ac_c_werror_flag" ||
50276          test ! -s conftest.err
50277        } && test -s conftest$ac_exeext && {
50278          test "$cross_compiling" = yes ||
50279          $as_test_x conftest$ac_exeext
50280        }; then
50281   am_cv_lib_iconv=yes
50282         am_cv_func_iconv=yes
50283 else
50284   $as_echo "$as_me: failed program was:" >&5
50285 sed 's/^/| /' conftest.$ac_ext >&5
50286
50287
50288 fi
50289
50290 rm -rf conftest.dSYM
50291 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50292       conftest$ac_exeext conftest.$ac_ext
50293       LIBS="$am_save_LIBS"
50294     fi
50295
50296 fi
50297 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
50298 $as_echo "$am_cv_func_iconv" >&6; }
50299   if test "$am_cv_func_iconv" = yes; then
50300     { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
50301 $as_echo_n "checking for working iconv... " >&6; }
50302 if test "${am_cv_func_iconv_works+set}" = set; then
50303   $as_echo_n "(cached) " >&6
50304 else
50305
50306             am_save_LIBS="$LIBS"
50307       if test $am_cv_lib_iconv = yes; then
50308         LIBS="$LIBS $LIBICONV"
50309       fi
50310       if test "$cross_compiling" = yes; then
50311   case "$host_os" in
50312            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
50313            *)            am_cv_func_iconv_works="guessing yes" ;;
50314          esac
50315 else
50316   cat >conftest.$ac_ext <<_ACEOF
50317 /* confdefs.h.  */
50318 _ACEOF
50319 cat confdefs.h >>conftest.$ac_ext
50320 cat >>conftest.$ac_ext <<_ACEOF
50321 /* end confdefs.h.  */
50322
50323 #include <iconv.h>
50324 #include <string.h>
50325 int main ()
50326 {
50327   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
50328      returns.  */
50329   {
50330     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
50331     if (cd_utf8_to_88591 != (iconv_t)(-1))
50332       {
50333         static const char input[] = "\342\202\254"; /* EURO SIGN */
50334         char buf[10];
50335         const char *inptr = input;
50336         size_t inbytesleft = strlen (input);
50337         char *outptr = buf;
50338         size_t outbytesleft = sizeof (buf);
50339         size_t res = iconv (cd_utf8_to_88591,
50340                             (char **) &inptr, &inbytesleft,
50341                             &outptr, &outbytesleft);
50342         if (res == 0)
50343           return 1;
50344       }
50345   }
50346   /* Test against Solaris 10 bug: Failures are not distinguishable from
50347      successful returns.  */
50348   {
50349     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
50350     if (cd_ascii_to_88591 != (iconv_t)(-1))
50351       {
50352         static const char input[] = "\263";
50353         char buf[10];
50354         const char *inptr = input;
50355         size_t inbytesleft = strlen (input);
50356         char *outptr = buf;
50357         size_t outbytesleft = sizeof (buf);
50358         size_t res = iconv (cd_ascii_to_88591,
50359                             (char **) &inptr, &inbytesleft,
50360                             &outptr, &outbytesleft);
50361         if (res == 0)
50362           return 1;
50363       }
50364   }
50365 #if 0 /* This bug could be worked around by the caller.  */
50366   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
50367   {
50368     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
50369     if (cd_88591_to_utf8 != (iconv_t)(-1))
50370       {
50371         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
50372         char buf[50];
50373         const char *inptr = input;
50374         size_t inbytesleft = strlen (input);
50375         char *outptr = buf;
50376         size_t outbytesleft = sizeof (buf);
50377         size_t res = iconv (cd_88591_to_utf8,
50378                             (char **) &inptr, &inbytesleft,
50379                             &outptr, &outbytesleft);
50380         if ((int)res > 0)
50381           return 1;
50382       }
50383   }
50384 #endif
50385   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
50386      provided.  */
50387   if (/* Try standardized names.  */
50388       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
50389       /* Try IRIX, OSF/1 names.  */
50390       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
50391       /* Try AIX names.  */
50392       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
50393       /* Try HP-UX names.  */
50394       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
50395     return 1;
50396   return 0;
50397 }
50398 _ACEOF
50399 rm -f conftest$ac_exeext
50400 if { (ac_try="$ac_link"
50401 case "(($ac_try" in
50402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50403   *) ac_try_echo=$ac_try;;
50404 esac
50405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50406 $as_echo "$ac_try_echo") >&5
50407   (eval "$ac_link") 2>&5
50408   ac_status=$?
50409   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50410   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50411   { (case "(($ac_try" in
50412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50413   *) ac_try_echo=$ac_try;;
50414 esac
50415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50416 $as_echo "$ac_try_echo") >&5
50417   (eval "$ac_try") 2>&5
50418   ac_status=$?
50419   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50420   (exit $ac_status); }; }; then
50421   am_cv_func_iconv_works=yes
50422 else
50423   $as_echo "$as_me: program exited with status $ac_status" >&5
50424 $as_echo "$as_me: failed program was:" >&5
50425 sed 's/^/| /' conftest.$ac_ext >&5
50426
50427 ( exit $ac_status )
50428 am_cv_func_iconv_works=no
50429 fi
50430 rm -rf conftest.dSYM
50431 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50432 fi
50433
50434
50435       LIBS="$am_save_LIBS"
50436
50437 fi
50438 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
50439 $as_echo "$am_cv_func_iconv_works" >&6; }
50440     case "$am_cv_func_iconv_works" in
50441       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
50442       *)   am_func_iconv=yes ;;
50443     esac
50444   else
50445     am_func_iconv=no am_cv_lib_iconv=no
50446   fi
50447   if test "$am_func_iconv" = yes; then
50448
50449 cat >>confdefs.h <<\_ACEOF
50450 #define HAVE_ICONV 1
50451 _ACEOF
50452
50453   fi
50454   if test "$am_cv_lib_iconv" = yes; then
50455     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
50456 $as_echo_n "checking how to link with libiconv... " >&6; }
50457     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
50458 $as_echo "$LIBICONV" >&6; }
50459   else
50460             CPPFLAGS="$am_save_CPPFLAGS"
50461     LIBICONV=
50462     LTLIBICONV=
50463   fi
50464
50465
50466
50467
50468
50469
50470
50471
50472
50473
50474
50475     use_additional=yes
50476
50477   acl_save_prefix="$prefix"
50478   prefix="$acl_final_prefix"
50479   acl_save_exec_prefix="$exec_prefix"
50480   exec_prefix="$acl_final_exec_prefix"
50481
50482     eval additional_includedir=\"$includedir\"
50483     eval additional_libdir=\"$libdir\"
50484
50485   exec_prefix="$acl_save_exec_prefix"
50486   prefix="$acl_save_prefix"
50487
50488
50489 # Check whether --with-libintl-prefix was given.
50490 if test "${with_libintl_prefix+set}" = set; then
50491   withval=$with_libintl_prefix;
50492     if test "X$withval" = "Xno"; then
50493       use_additional=no
50494     else
50495       if test "X$withval" = "X"; then
50496
50497   acl_save_prefix="$prefix"
50498   prefix="$acl_final_prefix"
50499   acl_save_exec_prefix="$exec_prefix"
50500   exec_prefix="$acl_final_exec_prefix"
50501
50502           eval additional_includedir=\"$includedir\"
50503           eval additional_libdir=\"$libdir\"
50504
50505   exec_prefix="$acl_save_exec_prefix"
50506   prefix="$acl_save_prefix"
50507
50508       else
50509         additional_includedir="$withval/include"
50510         additional_libdir="$withval/$acl_libdirstem"
50511         if test "$acl_libdirstem2" != "$acl_libdirstem" \
50512            && ! test -d "$withval/$acl_libdirstem"; then
50513           additional_libdir="$withval/$acl_libdirstem2"
50514         fi
50515       fi
50516     fi
50517
50518 fi
50519
50520       LIBINTL=
50521   LTLIBINTL=
50522   INCINTL=
50523   LIBINTL_PREFIX=
50524       HAVE_LIBINTL=
50525   rpathdirs=
50526   ltrpathdirs=
50527   names_already_handled=
50528   names_next_round='intl '
50529   while test -n "$names_next_round"; do
50530     names_this_round="$names_next_round"
50531     names_next_round=
50532     for name in $names_this_round; do
50533       already_handled=
50534       for n in $names_already_handled; do
50535         if test "$n" = "$name"; then
50536           already_handled=yes
50537           break
50538         fi
50539       done
50540       if test -z "$already_handled"; then
50541         names_already_handled="$names_already_handled $name"
50542                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
50543         eval value=\"\$HAVE_LIB$uppername\"
50544         if test -n "$value"; then
50545           if test "$value" = yes; then
50546             eval value=\"\$LIB$uppername\"
50547             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
50548             eval value=\"\$LTLIB$uppername\"
50549             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
50550           else
50551                                     :
50552           fi
50553         else
50554                               found_dir=
50555           found_la=
50556           found_so=
50557           found_a=
50558           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
50559           if test -n "$acl_shlibext"; then
50560             shrext=".$acl_shlibext"             # typically: shrext=.so
50561           else
50562             shrext=
50563           fi
50564           if test $use_additional = yes; then
50565             dir="$additional_libdir"
50566                                     if test -n "$acl_shlibext"; then
50567               if test -f "$dir/$libname$shrext"; then
50568                 found_dir="$dir"
50569                 found_so="$dir/$libname$shrext"
50570               else
50571                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
50572                   ver=`(cd "$dir" && \
50573                         for f in "$libname$shrext".*; do echo "$f"; done \
50574                         | sed -e "s,^$libname$shrext\\\\.,," \
50575                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
50576                         | sed 1q ) 2>/dev/null`
50577                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
50578                     found_dir="$dir"
50579                     found_so="$dir/$libname$shrext.$ver"
50580                   fi
50581                 else
50582                   eval library_names=\"$acl_library_names_spec\"
50583                   for f in $library_names; do
50584                     if test -f "$dir/$f"; then
50585                       found_dir="$dir"
50586                       found_so="$dir/$f"
50587                       break
50588                     fi
50589                   done
50590                 fi
50591               fi
50592             fi
50593                         if test "X$found_dir" = "X"; then
50594               if test -f "$dir/$libname.$acl_libext"; then
50595                 found_dir="$dir"
50596                 found_a="$dir/$libname.$acl_libext"
50597               fi
50598             fi
50599             if test "X$found_dir" != "X"; then
50600               if test -f "$dir/$libname.la"; then
50601                 found_la="$dir/$libname.la"
50602               fi
50603             fi
50604           fi
50605           if test "X$found_dir" = "X"; then
50606             for x in $LDFLAGS $LTLIBINTL; do
50607
50608   acl_save_prefix="$prefix"
50609   prefix="$acl_final_prefix"
50610   acl_save_exec_prefix="$exec_prefix"
50611   exec_prefix="$acl_final_exec_prefix"
50612   eval x=\"$x\"
50613   exec_prefix="$acl_save_exec_prefix"
50614   prefix="$acl_save_prefix"
50615
50616               case "$x" in
50617                 -L*)
50618                   dir=`echo "X$x" | sed -e 's/^X-L//'`
50619                                     if test -n "$acl_shlibext"; then
50620                     if test -f "$dir/$libname$shrext"; then
50621                       found_dir="$dir"
50622                       found_so="$dir/$libname$shrext"
50623                     else
50624                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
50625                         ver=`(cd "$dir" && \
50626                               for f in "$libname$shrext".*; do echo "$f"; done \
50627                               | sed -e "s,^$libname$shrext\\\\.,," \
50628                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
50629                               | sed 1q ) 2>/dev/null`
50630                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
50631                           found_dir="$dir"
50632                           found_so="$dir/$libname$shrext.$ver"
50633                         fi
50634                       else
50635                         eval library_names=\"$acl_library_names_spec\"
50636                         for f in $library_names; do
50637                           if test -f "$dir/$f"; then
50638                             found_dir="$dir"
50639                             found_so="$dir/$f"
50640                             break
50641                           fi
50642                         done
50643                       fi
50644                     fi
50645                   fi
50646                                     if test "X$found_dir" = "X"; then
50647                     if test -f "$dir/$libname.$acl_libext"; then
50648                       found_dir="$dir"
50649                       found_a="$dir/$libname.$acl_libext"
50650                     fi
50651                   fi
50652                   if test "X$found_dir" != "X"; then
50653                     if test -f "$dir/$libname.la"; then
50654                       found_la="$dir/$libname.la"
50655                     fi
50656                   fi
50657                   ;;
50658               esac
50659               if test "X$found_dir" != "X"; then
50660                 break
50661               fi
50662             done
50663           fi
50664           if test "X$found_dir" != "X"; then
50665                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
50666             if test "X$found_so" != "X"; then
50667                                                         if test "$enable_rpath" = no \
50668                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
50669                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
50670                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50671               else
50672                                                                                 haveit=
50673                 for x in $ltrpathdirs; do
50674                   if test "X$x" = "X$found_dir"; then
50675                     haveit=yes
50676                     break
50677                   fi
50678                 done
50679                 if test -z "$haveit"; then
50680                   ltrpathdirs="$ltrpathdirs $found_dir"
50681                 fi
50682                                 if test "$acl_hardcode_direct" = yes; then
50683                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50684                 else
50685                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
50686                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50687                                                             haveit=
50688                     for x in $rpathdirs; do
50689                       if test "X$x" = "X$found_dir"; then
50690                         haveit=yes
50691                         break
50692                       fi
50693                     done
50694                     if test -z "$haveit"; then
50695                       rpathdirs="$rpathdirs $found_dir"
50696                     fi
50697                   else
50698                                                                                 haveit=
50699                     for x in $LDFLAGS $LIBINTL; do
50700
50701   acl_save_prefix="$prefix"
50702   prefix="$acl_final_prefix"
50703   acl_save_exec_prefix="$exec_prefix"
50704   exec_prefix="$acl_final_exec_prefix"
50705   eval x=\"$x\"
50706   exec_prefix="$acl_save_exec_prefix"
50707   prefix="$acl_save_prefix"
50708
50709                       if test "X$x" = "X-L$found_dir"; then
50710                         haveit=yes
50711                         break
50712                       fi
50713                     done
50714                     if test -z "$haveit"; then
50715                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
50716                     fi
50717                     if test "$acl_hardcode_minus_L" != no; then
50718                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
50719                     else
50720                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
50721                     fi
50722                   fi
50723                 fi
50724               fi
50725             else
50726               if test "X$found_a" != "X"; then
50727                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
50728               else
50729                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
50730               fi
50731             fi
50732                         additional_includedir=
50733             case "$found_dir" in
50734               */$acl_libdirstem | */$acl_libdirstem/)
50735                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
50736                 if test "$name" = 'intl'; then
50737                   LIBINTL_PREFIX="$basedir"
50738                 fi
50739                 additional_includedir="$basedir/include"
50740                 ;;
50741               */$acl_libdirstem2 | */$acl_libdirstem2/)
50742                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
50743                 if test "$name" = 'intl'; then
50744                   LIBINTL_PREFIX="$basedir"
50745                 fi
50746                 additional_includedir="$basedir/include"
50747                 ;;
50748             esac
50749             if test "X$additional_includedir" != "X"; then
50750                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
50751                 haveit=
50752                 if test "X$additional_includedir" = "X/usr/local/include"; then
50753                   if test -n "$GCC"; then
50754                     case $host_os in
50755                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
50756                     esac
50757                   fi
50758                 fi
50759                 if test -z "$haveit"; then
50760                   for x in $CPPFLAGS $INCINTL; do
50761
50762   acl_save_prefix="$prefix"
50763   prefix="$acl_final_prefix"
50764   acl_save_exec_prefix="$exec_prefix"
50765   exec_prefix="$acl_final_exec_prefix"
50766   eval x=\"$x\"
50767   exec_prefix="$acl_save_exec_prefix"
50768   prefix="$acl_save_prefix"
50769
50770                     if test "X$x" = "X-I$additional_includedir"; then
50771                       haveit=yes
50772                       break
50773                     fi
50774                   done
50775                   if test -z "$haveit"; then
50776                     if test -d "$additional_includedir"; then
50777                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
50778                     fi
50779                   fi
50780                 fi
50781               fi
50782             fi
50783                         if test -n "$found_la"; then
50784                                                         save_libdir="$libdir"
50785               case "$found_la" in
50786                 */* | *\\*) . "$found_la" ;;
50787                 *) . "./$found_la" ;;
50788               esac
50789               libdir="$save_libdir"
50790                             for dep in $dependency_libs; do
50791                 case "$dep" in
50792                   -L*)
50793                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
50794                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
50795                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
50796                       haveit=
50797                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
50798                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
50799                         if test -n "$GCC"; then
50800                           case $host_os in
50801                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
50802                           esac
50803                         fi
50804                       fi
50805                       if test -z "$haveit"; then
50806                         haveit=
50807                         for x in $LDFLAGS $LIBINTL; do
50808
50809   acl_save_prefix="$prefix"
50810   prefix="$acl_final_prefix"
50811   acl_save_exec_prefix="$exec_prefix"
50812   exec_prefix="$acl_final_exec_prefix"
50813   eval x=\"$x\"
50814   exec_prefix="$acl_save_exec_prefix"
50815   prefix="$acl_save_prefix"
50816
50817                           if test "X$x" = "X-L$additional_libdir"; then
50818                             haveit=yes
50819                             break
50820                           fi
50821                         done
50822                         if test -z "$haveit"; then
50823                           if test -d "$additional_libdir"; then
50824                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
50825                           fi
50826                         fi
50827                         haveit=
50828                         for x in $LDFLAGS $LTLIBINTL; do
50829
50830   acl_save_prefix="$prefix"
50831   prefix="$acl_final_prefix"
50832   acl_save_exec_prefix="$exec_prefix"
50833   exec_prefix="$acl_final_exec_prefix"
50834   eval x=\"$x\"
50835   exec_prefix="$acl_save_exec_prefix"
50836   prefix="$acl_save_prefix"
50837
50838                           if test "X$x" = "X-L$additional_libdir"; then
50839                             haveit=yes
50840                             break
50841                           fi
50842                         done
50843                         if test -z "$haveit"; then
50844                           if test -d "$additional_libdir"; then
50845                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
50846                           fi
50847                         fi
50848                       fi
50849                     fi
50850                     ;;
50851                   -R*)
50852                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
50853                     if test "$enable_rpath" != no; then
50854                                                                   haveit=
50855                       for x in $rpathdirs; do
50856                         if test "X$x" = "X$dir"; then
50857                           haveit=yes
50858                           break
50859                         fi
50860                       done
50861                       if test -z "$haveit"; then
50862                         rpathdirs="$rpathdirs $dir"
50863                       fi
50864                                                                   haveit=
50865                       for x in $ltrpathdirs; do
50866                         if test "X$x" = "X$dir"; then
50867                           haveit=yes
50868                           break
50869                         fi
50870                       done
50871                       if test -z "$haveit"; then
50872                         ltrpathdirs="$ltrpathdirs $dir"
50873                       fi
50874                     fi
50875                     ;;
50876                   -l*)
50877                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
50878                     ;;
50879                   *.la)
50880                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
50881                     ;;
50882                   *)
50883                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
50884                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
50885                     ;;
50886                 esac
50887               done
50888             fi
50889           else
50890                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
50891             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
50892           fi
50893         fi
50894       fi
50895     done
50896   done
50897   if test "X$rpathdirs" != "X"; then
50898     if test -n "$acl_hardcode_libdir_separator"; then
50899                         alldirs=
50900       for found_dir in $rpathdirs; do
50901         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
50902       done
50903             acl_save_libdir="$libdir"
50904       libdir="$alldirs"
50905       eval flag=\"$acl_hardcode_libdir_flag_spec\"
50906       libdir="$acl_save_libdir"
50907       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
50908     else
50909             for found_dir in $rpathdirs; do
50910         acl_save_libdir="$libdir"
50911         libdir="$found_dir"
50912         eval flag=\"$acl_hardcode_libdir_flag_spec\"
50913         libdir="$acl_save_libdir"
50914         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
50915       done
50916     fi
50917   fi
50918   if test "X$ltrpathdirs" != "X"; then
50919             for found_dir in $ltrpathdirs; do
50920       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
50921     done
50922   fi
50923
50924
50925
50926
50927
50928
50929           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
50930 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
50931 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
50932   $as_echo_n "(cached) " >&6
50933 else
50934   gt_save_CPPFLAGS="$CPPFLAGS"
50935             CPPFLAGS="$CPPFLAGS $INCINTL"
50936             gt_save_LIBS="$LIBS"
50937             LIBS="$LIBS $LIBINTL"
50938                         cat >conftest.$ac_ext <<_ACEOF
50939 /* confdefs.h.  */
50940 _ACEOF
50941 cat confdefs.h >>conftest.$ac_ext
50942 cat >>conftest.$ac_ext <<_ACEOF
50943 /* end confdefs.h.  */
50944 #include <libintl.h>
50945 $gt_revision_test_code
50946 extern int _nl_msg_cat_cntr;
50947 extern
50948 #ifdef __cplusplus
50949 "C"
50950 #endif
50951 const char *_nl_expand_alias (const char *);
50952 int
50953 main ()
50954 {
50955 bindtextdomain ("", "");
50956 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
50957   ;
50958   return 0;
50959 }
50960 _ACEOF
50961 rm -f conftest.$ac_objext conftest$ac_exeext
50962 if { (ac_try="$ac_link"
50963 case "(($ac_try" in
50964   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50965   *) ac_try_echo=$ac_try;;
50966 esac
50967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50968 $as_echo "$ac_try_echo") >&5
50969   (eval "$ac_link") 2>conftest.er1
50970   ac_status=$?
50971   grep -v '^ *+' conftest.er1 >conftest.err
50972   rm -f conftest.er1
50973   cat conftest.err >&5
50974   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50975   (exit $ac_status); } && {
50976          test -z "$ac_c_werror_flag" ||
50977          test ! -s conftest.err
50978        } && test -s conftest$ac_exeext && {
50979          test "$cross_compiling" = yes ||
50980          $as_test_x conftest$ac_exeext
50981        }; then
50982   eval "$gt_func_gnugettext_libintl=yes"
50983 else
50984   $as_echo "$as_me: failed program was:" >&5
50985 sed 's/^/| /' conftest.$ac_ext >&5
50986
50987         eval "$gt_func_gnugettext_libintl=no"
50988 fi
50989
50990 rm -rf conftest.dSYM
50991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
50992       conftest$ac_exeext conftest.$ac_ext
50993                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
50994               LIBS="$LIBS $LIBICONV"
50995               cat >conftest.$ac_ext <<_ACEOF
50996 /* confdefs.h.  */
50997 _ACEOF
50998 cat confdefs.h >>conftest.$ac_ext
50999 cat >>conftest.$ac_ext <<_ACEOF
51000 /* end confdefs.h.  */
51001 #include <libintl.h>
51002 $gt_revision_test_code
51003 extern int _nl_msg_cat_cntr;
51004 extern
51005 #ifdef __cplusplus
51006 "C"
51007 #endif
51008 const char *_nl_expand_alias (const char *);
51009 int
51010 main ()
51011 {
51012 bindtextdomain ("", "");
51013 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
51014   ;
51015   return 0;
51016 }
51017 _ACEOF
51018 rm -f conftest.$ac_objext conftest$ac_exeext
51019 if { (ac_try="$ac_link"
51020 case "(($ac_try" in
51021   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51022   *) ac_try_echo=$ac_try;;
51023 esac
51024 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51025 $as_echo "$ac_try_echo") >&5
51026   (eval "$ac_link") 2>conftest.er1
51027   ac_status=$?
51028   grep -v '^ *+' conftest.er1 >conftest.err
51029   rm -f conftest.er1
51030   cat conftest.err >&5
51031   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51032   (exit $ac_status); } && {
51033          test -z "$ac_c_werror_flag" ||
51034          test ! -s conftest.err
51035        } && test -s conftest$ac_exeext && {
51036          test "$cross_compiling" = yes ||
51037          $as_test_x conftest$ac_exeext
51038        }; then
51039   LIBINTL="$LIBINTL $LIBICONV"
51040                 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
51041                 eval "$gt_func_gnugettext_libintl=yes"
51042
51043 else
51044   $as_echo "$as_me: failed program was:" >&5
51045 sed 's/^/| /' conftest.$ac_ext >&5
51046
51047
51048 fi
51049
51050 rm -rf conftest.dSYM
51051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51052       conftest$ac_exeext conftest.$ac_ext
51053             fi
51054             CPPFLAGS="$gt_save_CPPFLAGS"
51055             LIBS="$gt_save_LIBS"
51056 fi
51057 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
51058                  $as_echo "$as_val"'`
51059                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51060 $as_echo "$ac_res" >&6; }
51061         fi
51062
51063                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
51064            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
51065                 && test "$PACKAGE" != gettext-runtime \
51066                 && test "$PACKAGE" != gettext-tools; }; then
51067           gt_use_preinstalled_gnugettext=yes
51068         else
51069                     LIBINTL=
51070           LTLIBINTL=
51071           INCINTL=
51072         fi
51073
51074
51075
51076     if test -n "$INTL_MACOSX_LIBS"; then
51077       if test "$gt_use_preinstalled_gnugettext" = "yes" \
51078          || test "$nls_cv_use_gnu_gettext" = "yes"; then
51079                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
51080         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
51081       fi
51082     fi
51083
51084     if test "$gt_use_preinstalled_gnugettext" = "yes" \
51085        || test "$nls_cv_use_gnu_gettext" = "yes"; then
51086
51087 cat >>confdefs.h <<\_ACEOF
51088 #define ENABLE_NLS 1
51089 _ACEOF
51090
51091     else
51092       USE_NLS=no
51093     fi
51094   fi
51095
51096   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
51097 $as_echo_n "checking whether to use NLS... " >&6; }
51098   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
51099 $as_echo "$USE_NLS" >&6; }
51100   if test "$USE_NLS" = "yes"; then
51101     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
51102 $as_echo_n "checking where the gettext function comes from... " >&6; }
51103     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
51104       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
51105         gt_source="external libintl"
51106       else
51107         gt_source="libc"
51108       fi
51109     else
51110       gt_source="included intl directory"
51111     fi
51112     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
51113 $as_echo "$gt_source" >&6; }
51114   fi
51115
51116   if test "$USE_NLS" = "yes"; then
51117
51118     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
51119       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
51120         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
51121 $as_echo_n "checking how to link with libintl... " >&6; }
51122         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
51123 $as_echo "$LIBINTL" >&6; }
51124
51125   for element in $INCINTL; do
51126     haveit=
51127     for x in $CPPFLAGS; do
51128
51129   acl_save_prefix="$prefix"
51130   prefix="$acl_final_prefix"
51131   acl_save_exec_prefix="$exec_prefix"
51132   exec_prefix="$acl_final_exec_prefix"
51133   eval x=\"$x\"
51134   exec_prefix="$acl_save_exec_prefix"
51135   prefix="$acl_save_prefix"
51136
51137       if test "X$x" = "X$element"; then
51138         haveit=yes
51139         break
51140       fi
51141     done
51142     if test -z "$haveit"; then
51143       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
51144     fi
51145   done
51146
51147       fi
51148
51149
51150 cat >>confdefs.h <<\_ACEOF
51151 #define HAVE_GETTEXT 1
51152 _ACEOF
51153
51154
51155 cat >>confdefs.h <<\_ACEOF
51156 #define HAVE_DCGETTEXT 1
51157 _ACEOF
51158
51159     fi
51160
51161         POSUB=po
51162   fi
51163
51164
51165
51166     INTLLIBS="$LIBINTL"
51167
51168
51169
51170
51171
51172
51173
51174
51175 # Initialize the test suite.
51176 ac_config_commands="$ac_config_commands tests/atconfig"
51177
51178
51179 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
51180  # FIXME: tests/preset?
51181
51182 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
51183
51184
51185
51186
51187 # Check whether --enable-backup-scripts was given.
51188 if test "${enable_backup_scripts+set}" = set; then
51189   enableval=$enable_backup_scripts; case $enableval in
51190                yes) BACKUP_LIBEXEC_SCRIPTS='$(BACKUP_LIBEXEC_SCRIPTS_LIST)'
51191                     BACKUP_SBIN_SCRIPTS='$(BACKUP_SBIN_SCRIPTS_LIST)'
51192                     ;;
51193                esac
51194 fi
51195
51196
51197
51198 if date +%Y-%m-%d 2>/dev/null >&2; then
51199         BACKUP_SED_COND='/^\#ELSE_DATE_FORMAT_OK/,/^\#ENDIF_DATE_FORMAT_OK/d;/^\#IF_DATE_FORMAT_OK/d'
51200 else
51201         BACKUP_SED_COND='/^\#IF_DATE_FORMAT_OK/,/^\#ELSE_DATE_FORMAT_OK/d;/^\#ENDIF_DATE_FORMAT_OK/d'
51202 fi
51203
51204 ac_config_files="$ac_config_files Makefile doc/Makefile gnu/Makefile lib/Makefile po/Makefile.in scripts/Makefile rmt/Makefile src/Makefile"
51205
51206 cat >confcache <<\_ACEOF
51207 # This file is a shell script that caches the results of configure
51208 # tests run on this system so they can be shared between configure
51209 # scripts and configure runs, see configure's option --config-cache.
51210 # It is not useful on other systems.  If it contains results you don't
51211 # want to keep, you may remove or edit it.
51212 #
51213 # config.status only pays attention to the cache file if you give it
51214 # the --recheck option to rerun configure.
51215 #
51216 # `ac_cv_env_foo' variables (set or unset) will be overridden when
51217 # loading this file, other *unset* `ac_cv_foo' will be assigned the
51218 # following values.
51219
51220 _ACEOF
51221
51222 # The following way of writing the cache mishandles newlines in values,
51223 # but we know of no workaround that is simple, portable, and efficient.
51224 # So, we kill variables containing newlines.
51225 # Ultrix sh set writes to stderr and can't be redirected directly,
51226 # and sets the high bit in the cache file unless we assign to the vars.
51227 (
51228   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
51229     eval ac_val=\$$ac_var
51230     case $ac_val in #(
51231     *${as_nl}*)
51232       case $ac_var in #(
51233       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
51234 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
51235       esac
51236       case $ac_var in #(
51237       _ | IFS | as_nl) ;; #(
51238       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
51239       *) $as_unset $ac_var ;;
51240       esac ;;
51241     esac
51242   done
51243
51244   (set) 2>&1 |
51245     case $as_nl`(ac_space=' '; set) 2>&1` in #(
51246     *${as_nl}ac_space=\ *)
51247       # `set' does not quote correctly, so add quotes (double-quote
51248       # substitution turns \\\\ into \\, and sed turns \\ into \).
51249       sed -n \
51250         "s/'/'\\\\''/g;
51251           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
51252       ;; #(
51253     *)
51254       # `set' quotes correctly as required by POSIX, so do not add quotes.
51255       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
51256       ;;
51257     esac |
51258     sort
51259 ) |
51260   sed '
51261      /^ac_cv_env_/b end
51262      t clear
51263      :clear
51264      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
51265      t end
51266      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
51267      :end' >>confcache
51268 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
51269   if test -w "$cache_file"; then
51270     test "x$cache_file" != "x/dev/null" &&
51271       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
51272 $as_echo "$as_me: updating cache $cache_file" >&6;}
51273     cat confcache >$cache_file
51274   else
51275     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
51276 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
51277   fi
51278 fi
51279 rm -f confcache
51280
51281 test "x$prefix" = xNONE && prefix=$ac_default_prefix
51282 # Let make expand exec_prefix.
51283 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
51284
51285 DEFS=-DHAVE_CONFIG_H
51286
51287 ac_libobjs=
51288 ac_ltlibobjs=
51289 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
51290   # 1. Remove the extension, and $U if already installed.
51291   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
51292   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
51293   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
51294   #    will be set to the directory where LIBOBJS objects are built.
51295   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
51296   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
51297 done
51298 LIBOBJS=$ac_libobjs
51299
51300 LTLIBOBJS=$ac_ltlibobjs
51301
51302
51303  if test -n "$EXEEXT"; then
51304   am__EXEEXT_TRUE=
51305   am__EXEEXT_FALSE='#'
51306 else
51307   am__EXEEXT_TRUE='#'
51308   am__EXEEXT_FALSE=
51309 fi
51310
51311 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
51312   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
51313 Usually this means the macro was only invoked conditionally." >&5
51314 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
51315 Usually this means the macro was only invoked conditionally." >&2;}
51316    { (exit 1); exit 1; }; }
51317 fi
51318 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
51319   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
51320 Usually this means the macro was only invoked conditionally." >&5
51321 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
51322 Usually this means the macro was only invoked conditionally." >&2;}
51323    { (exit 1); exit 1; }; }
51324 fi
51325 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
51326   { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
51327 Usually this means the macro was only invoked conditionally." >&5
51328 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
51329 Usually this means the macro was only invoked conditionally." >&2;}
51330    { (exit 1); exit 1; }; }
51331 fi
51332
51333     gl_libobjs=
51334     gl_ltlibobjs=
51335     if test -n "$gl_LIBOBJS"; then
51336       # Remove the extension.
51337       sed_drop_objext='s/\.o$//;s/\.obj$//'
51338       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
51339         gl_libobjs="$gl_libobjs $i.$ac_objext"
51340         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
51341       done
51342     fi
51343     gl_LIBOBJS=$gl_libobjs
51344
51345     gl_LTLIBOBJS=$gl_ltlibobjs
51346
51347
51348
51349     gltests_libobjs=
51350     gltests_ltlibobjs=
51351     if test -n "$gltests_LIBOBJS"; then
51352       # Remove the extension.
51353       sed_drop_objext='s/\.o$//;s/\.obj$//'
51354       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
51355         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
51356         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
51357       done
51358     fi
51359     gltests_LIBOBJS=$gltests_libobjs
51360
51361     gltests_LTLIBOBJS=$gltests_ltlibobjs
51362
51363
51364
51365 : ${CONFIG_STATUS=./config.status}
51366 ac_write_fail=0
51367 ac_clean_files_save=$ac_clean_files
51368 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
51369 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
51370 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
51371 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51372 #! $SHELL
51373 # Generated by $as_me.
51374 # Run this file to recreate the current configuration.
51375 # Compiler output produced by configure, useful for debugging
51376 # configure, is in config.log if it exists.
51377
51378 debug=false
51379 ac_cs_recheck=false
51380 ac_cs_silent=false
51381 SHELL=\${CONFIG_SHELL-$SHELL}
51382 _ACEOF
51383
51384 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51385 ## --------------------- ##
51386 ## M4sh Initialization.  ##
51387 ## --------------------- ##
51388
51389 # Be more Bourne compatible
51390 DUALCASE=1; export DUALCASE # for MKS sh
51391 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
51392   emulate sh
51393   NULLCMD=:
51394   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
51395   # is contrary to our usage.  Disable this feature.
51396   alias -g '${1+"$@"}'='"$@"'
51397   setopt NO_GLOB_SUBST
51398 else
51399   case `(set -o) 2>/dev/null` in
51400   *posix*) set -o posix ;;
51401 esac
51402
51403 fi
51404
51405
51406
51407
51408 # PATH needs CR
51409 # Avoid depending upon Character Ranges.
51410 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
51411 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
51412 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
51413 as_cr_digits='0123456789'
51414 as_cr_alnum=$as_cr_Letters$as_cr_digits
51415
51416 as_nl='
51417 '
51418 export as_nl
51419 # Printing a long string crashes Solaris 7 /usr/bin/printf.
51420 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
51421 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
51422 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
51423 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51424   as_echo='printf %s\n'
51425   as_echo_n='printf %s'
51426 else
51427   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
51428     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
51429     as_echo_n='/usr/ucb/echo -n'
51430   else
51431     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
51432     as_echo_n_body='eval
51433       arg=$1;
51434       case $arg in
51435       *"$as_nl"*)
51436         expr "X$arg" : "X\\(.*\\)$as_nl";
51437         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
51438       esac;
51439       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
51440     '
51441     export as_echo_n_body
51442     as_echo_n='sh -c $as_echo_n_body as_echo'
51443   fi
51444   export as_echo_body
51445   as_echo='sh -c $as_echo_body as_echo'
51446 fi
51447
51448 # The user is always right.
51449 if test "${PATH_SEPARATOR+set}" != set; then
51450   PATH_SEPARATOR=:
51451   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
51452     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
51453       PATH_SEPARATOR=';'
51454   }
51455 fi
51456
51457 # Support unset when possible.
51458 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51459   as_unset=unset
51460 else
51461   as_unset=false
51462 fi
51463
51464
51465 # IFS
51466 # We need space, tab and new line, in precisely that order.  Quoting is
51467 # there to prevent editors from complaining about space-tab.
51468 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51469 # splitting by setting IFS to empty value.)
51470 IFS=" ""        $as_nl"
51471
51472 # Find who we are.  Look in the path if we contain no directory separator.
51473 case $0 in
51474   *[\\/]* ) as_myself=$0 ;;
51475   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
51476 for as_dir in $PATH
51477 do
51478   IFS=$as_save_IFS
51479   test -z "$as_dir" && as_dir=.
51480   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
51481 done
51482 IFS=$as_save_IFS
51483
51484      ;;
51485 esac
51486 # We did not find ourselves, most probably we were run as `sh COMMAND'
51487 # in which case we are not to be found in the path.
51488 if test "x$as_myself" = x; then
51489   as_myself=$0
51490 fi
51491 if test ! -f "$as_myself"; then
51492   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
51493   { (exit 1); exit 1; }
51494 fi
51495
51496 # Work around bugs in pre-3.0 UWIN ksh.
51497 for as_var in ENV MAIL MAILPATH
51498 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
51499 done
51500 PS1='$ '
51501 PS2='> '
51502 PS4='+ '
51503
51504 # NLS nuisances.
51505 LC_ALL=C
51506 export LC_ALL
51507 LANGUAGE=C
51508 export LANGUAGE
51509
51510 # Required to use basename.
51511 if expr a : '\(a\)' >/dev/null 2>&1 &&
51512    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51513   as_expr=expr
51514 else
51515   as_expr=false
51516 fi
51517
51518 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
51519   as_basename=basename
51520 else
51521   as_basename=false
51522 fi
51523
51524
51525 # Name of the executable.
51526 as_me=`$as_basename -- "$0" ||
51527 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
51528          X"$0" : 'X\(//\)$' \| \
51529          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
51530 $as_echo X/"$0" |
51531     sed '/^.*\/\([^/][^/]*\)\/*$/{
51532             s//\1/
51533             q
51534           }
51535           /^X\/\(\/\/\)$/{
51536             s//\1/
51537             q
51538           }
51539           /^X\/\(\/\).*/{
51540             s//\1/
51541             q
51542           }
51543           s/.*/./; q'`
51544
51545 # CDPATH.
51546 $as_unset CDPATH
51547
51548
51549
51550   as_lineno_1=$LINENO
51551   as_lineno_2=$LINENO
51552   test "x$as_lineno_1" != "x$as_lineno_2" &&
51553   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
51554
51555   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
51556   # uniformly replaced by the line number.  The first 'sed' inserts a
51557   # line-number line after each line using $LINENO; the second 'sed'
51558   # does the real work.  The second script uses 'N' to pair each
51559   # line-number line with the line containing $LINENO, and appends
51560   # trailing '-' during substitution so that $LINENO is not a special
51561   # case at line end.
51562   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
51563   # scripts with optimization help from Paolo Bonzini.  Blame Lee
51564   # E. McMahon (1931-1989) for sed's syntax.  :-)
51565   sed -n '
51566     p
51567     /[$]LINENO/=
51568   ' <$as_myself |
51569     sed '
51570       s/[$]LINENO.*/&-/
51571       t lineno
51572       b
51573       :lineno
51574       N
51575       :loop
51576       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
51577       t loop
51578       s/-\n.*//
51579     ' >$as_me.lineno &&
51580   chmod +x "$as_me.lineno" ||
51581     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
51582    { (exit 1); exit 1; }; }
51583
51584   # Don't try to exec as it changes $[0], causing all sort of problems
51585   # (the dirname of $[0] is not the place where we might find the
51586   # original and so on.  Autoconf is especially sensitive to this).
51587   . "./$as_me.lineno"
51588   # Exit status is that of the last command.
51589   exit
51590 }
51591
51592
51593 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
51594   as_dirname=dirname
51595 else
51596   as_dirname=false
51597 fi
51598
51599 ECHO_C= ECHO_N= ECHO_T=
51600 case `echo -n x` in
51601 -n*)
51602   case `echo 'x\c'` in
51603   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
51604   *)   ECHO_C='\c';;
51605   esac;;
51606 *)
51607   ECHO_N='-n';;
51608 esac
51609 if expr a : '\(a\)' >/dev/null 2>&1 &&
51610    test "X`expr 00001 : '.*\(...\)'`" = X001; then
51611   as_expr=expr
51612 else
51613   as_expr=false
51614 fi
51615
51616 rm -f conf$$ conf$$.exe conf$$.file
51617 if test -d conf$$.dir; then
51618   rm -f conf$$.dir/conf$$.file
51619 else
51620   rm -f conf$$.dir
51621   mkdir conf$$.dir 2>/dev/null
51622 fi
51623 if (echo >conf$$.file) 2>/dev/null; then
51624   if ln -s conf$$.file conf$$ 2>/dev/null; then
51625     as_ln_s='ln -s'
51626     # ... but there are two gotchas:
51627     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
51628     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
51629     # In both cases, we have to default to `cp -p'.
51630     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
51631       as_ln_s='cp -p'
51632   elif ln conf$$.file conf$$ 2>/dev/null; then
51633     as_ln_s=ln
51634   else
51635     as_ln_s='cp -p'
51636   fi
51637 else
51638   as_ln_s='cp -p'
51639 fi
51640 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
51641 rmdir conf$$.dir 2>/dev/null
51642
51643 if mkdir -p . 2>/dev/null; then
51644   as_mkdir_p=:
51645 else
51646   test -d ./-p && rmdir ./-p
51647   as_mkdir_p=false
51648 fi
51649
51650 if test -x / >/dev/null 2>&1; then
51651   as_test_x='test -x'
51652 else
51653   if ls -dL / >/dev/null 2>&1; then
51654     as_ls_L_option=L
51655   else
51656     as_ls_L_option=
51657   fi
51658   as_test_x='
51659     eval sh -c '\''
51660       if test -d "$1"; then
51661         test -d "$1/.";
51662       else
51663         case $1 in
51664         -*)set "./$1";;
51665         esac;
51666         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
51667         ???[sx]*):;;*)false;;esac;fi
51668     '\'' sh
51669   '
51670 fi
51671 as_executable_p=$as_test_x
51672
51673 # Sed expression to map a string onto a valid CPP name.
51674 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
51675
51676 # Sed expression to map a string onto a valid variable name.
51677 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
51678
51679
51680 exec 6>&1
51681
51682 # Save the log message, to keep $[0] and so on meaningful, and to
51683 # report actual input values of CONFIG_FILES etc. instead of their
51684 # values after options handling.
51685 ac_log="
51686 This file was extended by GNU tar $as_me 1.23, which was
51687 generated by GNU Autoconf 2.63.  Invocation command line was
51688
51689   CONFIG_FILES    = $CONFIG_FILES
51690   CONFIG_HEADERS  = $CONFIG_HEADERS
51691   CONFIG_LINKS    = $CONFIG_LINKS
51692   CONFIG_COMMANDS = $CONFIG_COMMANDS
51693   $ $0 $@
51694
51695 on `(hostname || uname -n) 2>/dev/null | sed 1q`
51696 "
51697
51698 _ACEOF
51699
51700 case $ac_config_files in *"
51701 "*) set x $ac_config_files; shift; ac_config_files=$*;;
51702 esac
51703
51704 case $ac_config_headers in *"
51705 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
51706 esac
51707
51708
51709 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51710 # Files that config.status was made for.
51711 config_files="$ac_config_files"
51712 config_headers="$ac_config_headers"
51713 config_commands="$ac_config_commands"
51714
51715 _ACEOF
51716
51717 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51718 ac_cs_usage="\
51719 \`$as_me' instantiates files from templates according to the
51720 current configuration.
51721
51722 Usage: $0 [OPTION]... [FILE]...
51723
51724   -h, --help       print this help, then exit
51725   -V, --version    print version number and configuration settings, then exit
51726   -q, --quiet, --silent
51727                    do not print progress messages
51728   -d, --debug      don't remove temporary files
51729       --recheck    update $as_me by reconfiguring in the same conditions
51730       --file=FILE[:TEMPLATE]
51731                    instantiate the configuration file FILE
51732       --header=FILE[:TEMPLATE]
51733                    instantiate the configuration header FILE
51734
51735 Configuration files:
51736 $config_files
51737
51738 Configuration headers:
51739 $config_headers
51740
51741 Configuration commands:
51742 $config_commands
51743
51744 Report bugs to <bug-autoconf@gnu.org>."
51745
51746 _ACEOF
51747 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51748 ac_cs_version="\\
51749 GNU tar config.status 1.23
51750 configured by $0, generated by GNU Autoconf 2.63,
51751   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
51752
51753 Copyright (C) 2008 Free Software Foundation, Inc.
51754 This config.status script is free software; the Free Software Foundation
51755 gives unlimited permission to copy, distribute and modify it."
51756
51757 ac_pwd='$ac_pwd'
51758 srcdir='$srcdir'
51759 INSTALL='$INSTALL'
51760 MKDIR_P='$MKDIR_P'
51761 AWK='$AWK'
51762 test -n "\$AWK" || AWK=awk
51763 _ACEOF
51764
51765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51766 # The default lists apply if the user does not specify any file.
51767 ac_need_defaults=:
51768 while test $# != 0
51769 do
51770   case $1 in
51771   --*=*)
51772     ac_option=`expr "X$1" : 'X\([^=]*\)='`
51773     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
51774     ac_shift=:
51775     ;;
51776   *)
51777     ac_option=$1
51778     ac_optarg=$2
51779     ac_shift=shift
51780     ;;
51781   esac
51782
51783   case $ac_option in
51784   # Handling of the options.
51785   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
51786     ac_cs_recheck=: ;;
51787   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
51788     $as_echo "$ac_cs_version"; exit ;;
51789   --debug | --debu | --deb | --de | --d | -d )
51790     debug=: ;;
51791   --file | --fil | --fi | --f )
51792     $ac_shift
51793     case $ac_optarg in
51794     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
51795     esac
51796     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
51797     ac_need_defaults=false;;
51798   --header | --heade | --head | --hea )
51799     $ac_shift
51800     case $ac_optarg in
51801     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
51802     esac
51803     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
51804     ac_need_defaults=false;;
51805   --he | --h)
51806     # Conflict between --help and --header
51807     { $as_echo "$as_me: error: ambiguous option: $1
51808 Try \`$0 --help' for more information." >&2
51809    { (exit 1); exit 1; }; };;
51810   --help | --hel | -h )
51811     $as_echo "$ac_cs_usage"; exit ;;
51812   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
51813   | -silent | --silent | --silen | --sile | --sil | --si | --s)
51814     ac_cs_silent=: ;;
51815
51816   # This is an error.
51817   -*) { $as_echo "$as_me: error: unrecognized option: $1
51818 Try \`$0 --help' for more information." >&2
51819    { (exit 1); exit 1; }; } ;;
51820
51821   *) ac_config_targets="$ac_config_targets $1"
51822      ac_need_defaults=false ;;
51823
51824   esac
51825   shift
51826 done
51827
51828 ac_configure_extra_args=
51829
51830 if $ac_cs_silent; then
51831   exec 6>/dev/null
51832   ac_configure_extra_args="$ac_configure_extra_args --silent"
51833 fi
51834
51835 _ACEOF
51836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51837 if \$ac_cs_recheck; then
51838   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
51839   shift
51840   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
51841   CONFIG_SHELL='$SHELL'
51842   export CONFIG_SHELL
51843   exec "\$@"
51844 fi
51845
51846 _ACEOF
51847 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51848 exec 5>>config.log
51849 {
51850   echo
51851   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
51852 ## Running $as_me. ##
51853 _ASBOX
51854   $as_echo "$ac_log"
51855 } >&5
51856
51857 _ACEOF
51858 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51859 #
51860 # INIT-COMMANDS
51861 #
51862 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
51863 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
51864     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
51865     # from automake < 1.5.
51866     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
51867     # Capture the value of LINGUAS because we need it to compute CATALOGS.
51868     LINGUAS="${LINGUAS-%UNSET%}"
51869
51870
51871 _ACEOF
51872
51873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
51874
51875 # Handling of arguments.
51876 for ac_config_target in $ac_config_targets
51877 do
51878   case $ac_config_target in
51879     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
51880     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
51881     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
51882     "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
51883     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
51884     "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
51885     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
51886     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
51887     "gnu/Makefile") CONFIG_FILES="$CONFIG_FILES gnu/Makefile" ;;
51888     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
51889     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
51890     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
51891     "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
51892     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
51893
51894   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
51895 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
51896    { (exit 1); exit 1; }; };;
51897   esac
51898 done
51899
51900
51901 # If the user did not use the arguments to specify the items to instantiate,
51902 # then the envvar interface is used.  Set only those that are not.
51903 # We use the long form for the default assignment because of an extremely
51904 # bizarre bug on SunOS 4.1.3.
51905 if $ac_need_defaults; then
51906   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
51907   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
51908   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
51909 fi
51910
51911 # Have a temporary directory for convenience.  Make it in the build tree
51912 # simply because there is no reason against having it here, and in addition,
51913 # creating and moving files from /tmp can sometimes cause problems.
51914 # Hook for its removal unless debugging.
51915 # Note that there is a small window in which the directory will not be cleaned:
51916 # after its creation but before its name has been assigned to `$tmp'.
51917 $debug ||
51918 {
51919   tmp=
51920   trap 'exit_status=$?
51921   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
51922 ' 0
51923   trap '{ (exit 1); exit 1; }' 1 2 13 15
51924 }
51925 # Create a (secure) tmp directory for tmp files.
51926
51927 {
51928   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
51929   test -n "$tmp" && test -d "$tmp"
51930 }  ||
51931 {
51932   tmp=./conf$$-$RANDOM
51933   (umask 077 && mkdir "$tmp")
51934 } ||
51935 {
51936    $as_echo "$as_me: cannot create a temporary directory in ." >&2
51937    { (exit 1); exit 1; }
51938 }
51939
51940 # Set up the scripts for CONFIG_FILES section.
51941 # No need to generate them if there are no CONFIG_FILES.
51942 # This happens for instance with `./config.status config.h'.
51943 if test -n "$CONFIG_FILES"; then
51944
51945
51946 ac_cr='\r'
51947 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
51948 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
51949   ac_cs_awk_cr='\\r'
51950 else
51951   ac_cs_awk_cr=$ac_cr
51952 fi
51953
51954 echo 'BEGIN {' >"$tmp/subs1.awk" &&
51955 _ACEOF
51956
51957
51958 {
51959   echo "cat >conf$$subs.awk <<_ACEOF" &&
51960   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
51961   echo "_ACEOF"
51962 } >conf$$subs.sh ||
51963   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51964 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51965    { (exit 1); exit 1; }; }
51966 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
51967 ac_delim='%!_!# '
51968 for ac_last_try in false false false false false :; do
51969   . ./conf$$subs.sh ||
51970     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51971 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51972    { (exit 1); exit 1; }; }
51973
51974   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
51975   if test $ac_delim_n = $ac_delim_num; then
51976     break
51977   elif $ac_last_try; then
51978     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
51979 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
51980    { (exit 1); exit 1; }; }
51981   else
51982     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
51983   fi
51984 done
51985 rm -f conf$$subs.sh
51986
51987 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
51988 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
51989 _ACEOF
51990 sed -n '
51991 h
51992 s/^/S["/; s/!.*/"]=/
51993 p
51994 g
51995 s/^[^!]*!//
51996 :repl
51997 t repl
51998 s/'"$ac_delim"'$//
51999 t delim
52000 :nl
52001 h
52002 s/\(.\{148\}\).*/\1/
52003 t more1
52004 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
52005 p
52006 n
52007 b repl
52008 :more1
52009 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
52010 p
52011 g
52012 s/.\{148\}//
52013 t nl
52014 :delim
52015 h
52016 s/\(.\{148\}\).*/\1/
52017 t more2
52018 s/["\\]/\\&/g; s/^/"/; s/$/"/
52019 p
52020 b
52021 :more2
52022 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
52023 p
52024 g
52025 s/.\{148\}//
52026 t delim
52027 ' <conf$$subs.awk | sed '
52028 /^[^""]/{
52029   N
52030   s/\n//
52031 }
52032 ' >>$CONFIG_STATUS || ac_write_fail=1
52033 rm -f conf$$subs.awk
52034 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52035 _ACAWK
52036 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
52037   for (key in S) S_is_set[key] = 1
52038   FS = "\a"
52039
52040 }
52041 {
52042   line = $ 0
52043   nfields = split(line, field, "@")
52044   substed = 0
52045   len = length(field[1])
52046   for (i = 2; i < nfields; i++) {
52047     key = field[i]
52048     keylen = length(key)
52049     if (S_is_set[key]) {
52050       value = S[key]
52051       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
52052       len += length(value) + length(field[++i])
52053       substed = 1
52054     } else
52055       len += 1 + keylen
52056   }
52057
52058   print line
52059 }
52060
52061 _ACAWK
52062 _ACEOF
52063 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52064 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
52065   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
52066 else
52067   cat
52068 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
52069   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
52070 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
52071    { (exit 1); exit 1; }; }
52072 _ACEOF
52073
52074 # VPATH may cause trouble with some makes, so we remove $(srcdir),
52075 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
52076 # trailing colons and then remove the whole line if VPATH becomes empty
52077 # (actually we leave an empty line to preserve line numbers).
52078 if test "x$srcdir" = x.; then
52079   ac_vpsub='/^[  ]*VPATH[        ]*=/{
52080 s/:*\$(srcdir):*/:/
52081 s/:*\${srcdir}:*/:/
52082 s/:*@srcdir@:*/:/
52083 s/^\([^=]*=[     ]*\):*/\1/
52084 s/:*$//
52085 s/^[^=]*=[       ]*$//
52086 }'
52087 fi
52088
52089 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52090 fi # test -n "$CONFIG_FILES"
52091
52092 # Set up the scripts for CONFIG_HEADERS section.
52093 # No need to generate them if there are no CONFIG_HEADERS.
52094 # This happens for instance with `./config.status Makefile'.
52095 if test -n "$CONFIG_HEADERS"; then
52096 cat >"$tmp/defines.awk" <<\_ACAWK ||
52097 BEGIN {
52098 _ACEOF
52099
52100 # Transform confdefs.h into an awk script `defines.awk', embedded as
52101 # here-document in config.status, that substitutes the proper values into
52102 # config.h.in to produce config.h.
52103
52104 # Create a delimiter string that does not exist in confdefs.h, to ease
52105 # handling of long lines.
52106 ac_delim='%!_!# '
52107 for ac_last_try in false false :; do
52108   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
52109   if test -z "$ac_t"; then
52110     break
52111   elif $ac_last_try; then
52112     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
52113 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
52114    { (exit 1); exit 1; }; }
52115   else
52116     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
52117   fi
52118 done
52119
52120 # For the awk script, D is an array of macro values keyed by name,
52121 # likewise P contains macro parameters if any.  Preserve backslash
52122 # newline sequences.
52123
52124 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
52125 sed -n '
52126 s/.\{148\}/&'"$ac_delim"'/g
52127 t rset
52128 :rset
52129 s/^[     ]*#[    ]*define[       ][      ]*/ /
52130 t def
52131 d
52132 :def
52133 s/\\$//
52134 t bsnl
52135 s/["\\]/\\&/g
52136 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
52137 D["\1"]=" \3"/p
52138 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
52139 d
52140 :bsnl
52141 s/["\\]/\\&/g
52142 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
52143 D["\1"]=" \3\\\\\\n"\\/p
52144 t cont
52145 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
52146 t cont
52147 d
52148 :cont
52149 n
52150 s/.\{148\}/&'"$ac_delim"'/g
52151 t clear
52152 :clear
52153 s/\\$//
52154 t bsnlc
52155 s/["\\]/\\&/g; s/^/"/; s/$/"/p
52156 d
52157 :bsnlc
52158 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
52159 b cont
52160 ' <confdefs.h | sed '
52161 s/'"$ac_delim"'/"\\\
52162 "/g' >>$CONFIG_STATUS || ac_write_fail=1
52163
52164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52165   for (key in D) D_is_set[key] = 1
52166   FS = "\a"
52167 }
52168 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
52169   line = \$ 0
52170   split(line, arg, " ")
52171   if (arg[1] == "#") {
52172     defundef = arg[2]
52173     mac1 = arg[3]
52174   } else {
52175     defundef = substr(arg[1], 2)
52176     mac1 = arg[2]
52177   }
52178   split(mac1, mac2, "(") #)
52179   macro = mac2[1]
52180   prefix = substr(line, 1, index(line, defundef) - 1)
52181   if (D_is_set[macro]) {
52182     # Preserve the white space surrounding the "#".
52183     print prefix "define", macro P[macro] D[macro]
52184     next
52185   } else {
52186     # Replace #undef with comments.  This is necessary, for example,
52187     # in the case of _POSIX_SOURCE, which is predefined and required
52188     # on some systems where configure will not decide to define it.
52189     if (defundef == "undef") {
52190       print "/*", prefix defundef, macro, "*/"
52191       next
52192     }
52193   }
52194 }
52195 { print }
52196 _ACAWK
52197 _ACEOF
52198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52199   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
52200 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
52201    { (exit 1); exit 1; }; }
52202 fi # test -n "$CONFIG_HEADERS"
52203
52204
52205 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
52206 shift
52207 for ac_tag
52208 do
52209   case $ac_tag in
52210   :[FHLC]) ac_mode=$ac_tag; continue;;
52211   esac
52212   case $ac_mode$ac_tag in
52213   :[FHL]*:*);;
52214   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
52215 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
52216    { (exit 1); exit 1; }; };;
52217   :[FH]-) ac_tag=-:-;;
52218   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
52219   esac
52220   ac_save_IFS=$IFS
52221   IFS=:
52222   set x $ac_tag
52223   IFS=$ac_save_IFS
52224   shift
52225   ac_file=$1
52226   shift
52227
52228   case $ac_mode in
52229   :L) ac_source=$1;;
52230   :[FH])
52231     ac_file_inputs=
52232     for ac_f
52233     do
52234       case $ac_f in
52235       -) ac_f="$tmp/stdin";;
52236       *) # Look for the file first in the build tree, then in the source tree
52237          # (if the path is not absolute).  The absolute path cannot be DOS-style,
52238          # because $ac_f cannot contain `:'.
52239          test -f "$ac_f" ||
52240            case $ac_f in
52241            [\\/$]*) false;;
52242            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
52243            esac ||
52244            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
52245 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
52246    { (exit 1); exit 1; }; };;
52247       esac
52248       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
52249       ac_file_inputs="$ac_file_inputs '$ac_f'"
52250     done
52251
52252     # Let's still pretend it is `configure' which instantiates (i.e., don't
52253     # use $as_me), people would be surprised to read:
52254     #    /* config.h.  Generated by config.status.  */
52255     configure_input='Generated from '`
52256           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
52257         `' by configure.'
52258     if test x"$ac_file" != x-; then
52259       configure_input="$ac_file.  $configure_input"
52260       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
52261 $as_echo "$as_me: creating $ac_file" >&6;}
52262     fi
52263     # Neutralize special characters interpreted by sed in replacement strings.
52264     case $configure_input in #(
52265     *\&* | *\|* | *\\* )
52266        ac_sed_conf_input=`$as_echo "$configure_input" |
52267        sed 's/[\\\\&|]/\\\\&/g'`;; #(
52268     *) ac_sed_conf_input=$configure_input;;
52269     esac
52270
52271     case $ac_tag in
52272     *:-:* | *:-) cat >"$tmp/stdin" \
52273       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
52274 $as_echo "$as_me: error: could not create $ac_file" >&2;}
52275    { (exit 1); exit 1; }; } ;;
52276     esac
52277     ;;
52278   esac
52279
52280   ac_dir=`$as_dirname -- "$ac_file" ||
52281 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52282          X"$ac_file" : 'X\(//\)[^/]' \| \
52283          X"$ac_file" : 'X\(//\)$' \| \
52284          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
52285 $as_echo X"$ac_file" |
52286     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52287             s//\1/
52288             q
52289           }
52290           /^X\(\/\/\)[^/].*/{
52291             s//\1/
52292             q
52293           }
52294           /^X\(\/\/\)$/{
52295             s//\1/
52296             q
52297           }
52298           /^X\(\/\).*/{
52299             s//\1/
52300             q
52301           }
52302           s/.*/./; q'`
52303   { as_dir="$ac_dir"
52304   case $as_dir in #(
52305   -*) as_dir=./$as_dir;;
52306   esac
52307   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52308     as_dirs=
52309     while :; do
52310       case $as_dir in #(
52311       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
52312       *) as_qdir=$as_dir;;
52313       esac
52314       as_dirs="'$as_qdir' $as_dirs"
52315       as_dir=`$as_dirname -- "$as_dir" ||
52316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52317          X"$as_dir" : 'X\(//\)[^/]' \| \
52318          X"$as_dir" : 'X\(//\)$' \| \
52319          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52320 $as_echo X"$as_dir" |
52321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52322             s//\1/
52323             q
52324           }
52325           /^X\(\/\/\)[^/].*/{
52326             s//\1/
52327             q
52328           }
52329           /^X\(\/\/\)$/{
52330             s//\1/
52331             q
52332           }
52333           /^X\(\/\).*/{
52334             s//\1/
52335             q
52336           }
52337           s/.*/./; q'`
52338       test -d "$as_dir" && break
52339     done
52340     test -z "$as_dirs" || eval "mkdir $as_dirs"
52341   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52342 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
52343    { (exit 1); exit 1; }; }; }
52344   ac_builddir=.
52345
52346 case "$ac_dir" in
52347 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
52348 *)
52349   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
52350   # A ".." for each directory in $ac_dir_suffix.
52351   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
52352   case $ac_top_builddir_sub in
52353   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
52354   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
52355   esac ;;
52356 esac
52357 ac_abs_top_builddir=$ac_pwd
52358 ac_abs_builddir=$ac_pwd$ac_dir_suffix
52359 # for backward compatibility:
52360 ac_top_builddir=$ac_top_build_prefix
52361
52362 case $srcdir in
52363   .)  # We are building in place.
52364     ac_srcdir=.
52365     ac_top_srcdir=$ac_top_builddir_sub
52366     ac_abs_top_srcdir=$ac_pwd ;;
52367   [\\/]* | ?:[\\/]* )  # Absolute name.
52368     ac_srcdir=$srcdir$ac_dir_suffix;
52369     ac_top_srcdir=$srcdir
52370     ac_abs_top_srcdir=$srcdir ;;
52371   *) # Relative name.
52372     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
52373     ac_top_srcdir=$ac_top_build_prefix$srcdir
52374     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
52375 esac
52376 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
52377
52378
52379   case $ac_mode in
52380   :F)
52381   #
52382   # CONFIG_FILE
52383   #
52384
52385   case $INSTALL in
52386   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
52387   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
52388   esac
52389   ac_MKDIR_P=$MKDIR_P
52390   case $MKDIR_P in
52391   [\\/$]* | ?:[\\/]* ) ;;
52392   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
52393   esac
52394 _ACEOF
52395
52396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52397 # If the template does not know about datarootdir, expand it.
52398 # FIXME: This hack should be removed a few years after 2.60.
52399 ac_datarootdir_hack=; ac_datarootdir_seen=
52400
52401 ac_sed_dataroot='
52402 /datarootdir/ {
52403   p
52404   q
52405 }
52406 /@datadir@/p
52407 /@docdir@/p
52408 /@infodir@/p
52409 /@localedir@/p
52410 /@mandir@/p
52411 '
52412 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
52413 *datarootdir*) ac_datarootdir_seen=yes;;
52414 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
52415   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
52416 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
52417 _ACEOF
52418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52419   ac_datarootdir_hack='
52420   s&@datadir@&$datadir&g
52421   s&@docdir@&$docdir&g
52422   s&@infodir@&$infodir&g
52423   s&@localedir@&$localedir&g
52424   s&@mandir@&$mandir&g
52425     s&\\\${datarootdir}&$datarootdir&g' ;;
52426 esac
52427 _ACEOF
52428
52429 # Neutralize VPATH when `$srcdir' = `.'.
52430 # Shell code in configure.ac might set extrasub.
52431 # FIXME: do we really want to maintain this feature?
52432 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
52433 ac_sed_extra="$ac_vpsub
52434 $extrasub
52435 _ACEOF
52436 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
52437 :t
52438 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
52439 s|@configure_input@|$ac_sed_conf_input|;t t
52440 s&@top_builddir@&$ac_top_builddir_sub&;t t
52441 s&@top_build_prefix@&$ac_top_build_prefix&;t t
52442 s&@srcdir@&$ac_srcdir&;t t
52443 s&@abs_srcdir@&$ac_abs_srcdir&;t t
52444 s&@top_srcdir@&$ac_top_srcdir&;t t
52445 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
52446 s&@builddir@&$ac_builddir&;t t
52447 s&@abs_builddir@&$ac_abs_builddir&;t t
52448 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
52449 s&@INSTALL@&$ac_INSTALL&;t t
52450 s&@MKDIR_P@&$ac_MKDIR_P&;t t
52451 $ac_datarootdir_hack
52452 "
52453 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
52454   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
52455 $as_echo "$as_me: error: could not create $ac_file" >&2;}
52456    { (exit 1); exit 1; }; }
52457
52458 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
52459   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
52460   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
52461   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52462 which seems to be undefined.  Please make sure it is defined." >&5
52463 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
52464 which seems to be undefined.  Please make sure it is defined." >&2;}
52465
52466   rm -f "$tmp/stdin"
52467   case $ac_file in
52468   -) cat "$tmp/out" && rm -f "$tmp/out";;
52469   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
52470   esac \
52471   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
52472 $as_echo "$as_me: error: could not create $ac_file" >&2;}
52473    { (exit 1); exit 1; }; }
52474  ;;
52475   :H)
52476   #
52477   # CONFIG_HEADER
52478   #
52479   if test x"$ac_file" != x-; then
52480     {
52481       $as_echo "/* $configure_input  */" \
52482       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
52483     } >"$tmp/config.h" \
52484       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
52485 $as_echo "$as_me: error: could not create $ac_file" >&2;}
52486    { (exit 1); exit 1; }; }
52487     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
52488       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
52489 $as_echo "$as_me: $ac_file is unchanged" >&6;}
52490     else
52491       rm -f "$ac_file"
52492       mv "$tmp/config.h" "$ac_file" \
52493         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
52494 $as_echo "$as_me: error: could not create $ac_file" >&2;}
52495    { (exit 1); exit 1; }; }
52496     fi
52497   else
52498     $as_echo "/* $configure_input  */" \
52499       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
52500       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
52501 $as_echo "$as_me: error: could not create -" >&2;}
52502    { (exit 1); exit 1; }; }
52503   fi
52504 # Compute "$ac_file"'s index in $config_headers.
52505 _am_arg="$ac_file"
52506 _am_stamp_count=1
52507 for _am_header in $config_headers :; do
52508   case $_am_header in
52509     $_am_arg | $_am_arg:* )
52510       break ;;
52511     * )
52512       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
52513   esac
52514 done
52515 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
52516 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52517          X"$_am_arg" : 'X\(//\)[^/]' \| \
52518          X"$_am_arg" : 'X\(//\)$' \| \
52519          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
52520 $as_echo X"$_am_arg" |
52521     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52522             s//\1/
52523             q
52524           }
52525           /^X\(\/\/\)[^/].*/{
52526             s//\1/
52527             q
52528           }
52529           /^X\(\/\/\)$/{
52530             s//\1/
52531             q
52532           }
52533           /^X\(\/\).*/{
52534             s//\1/
52535             q
52536           }
52537           s/.*/./; q'`/stamp-h$_am_stamp_count
52538  ;;
52539
52540   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
52541 $as_echo "$as_me: executing $ac_file commands" >&6;}
52542  ;;
52543   esac
52544
52545
52546   case $ac_file$ac_mode in
52547     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
52548   # Autoconf 2.62 quotes --file arguments for eval, but not when files
52549   # are listed without --file.  Let's play safe and only enable the eval
52550   # if we detect the quoting.
52551   case $CONFIG_FILES in
52552   *\'*) eval set x "$CONFIG_FILES" ;;
52553   *)   set x $CONFIG_FILES ;;
52554   esac
52555   shift
52556   for mf
52557   do
52558     # Strip MF so we end up with the name of the file.
52559     mf=`echo "$mf" | sed -e 's/:.*$//'`
52560     # Check whether this is an Automake generated Makefile or not.
52561     # We used to match only the files named `Makefile.in', but
52562     # some people rename them; so instead we look at the file content.
52563     # Grep'ing the first line is not enough: some people post-process
52564     # each Makefile.in and add a new line on top of each file to say so.
52565     # Grep'ing the whole file is not good either: AIX grep has a line
52566     # limit of 2048, but all sed's we know have understand at least 4000.
52567     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
52568       dirpart=`$as_dirname -- "$mf" ||
52569 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52570          X"$mf" : 'X\(//\)[^/]' \| \
52571          X"$mf" : 'X\(//\)$' \| \
52572          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
52573 $as_echo X"$mf" |
52574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52575             s//\1/
52576             q
52577           }
52578           /^X\(\/\/\)[^/].*/{
52579             s//\1/
52580             q
52581           }
52582           /^X\(\/\/\)$/{
52583             s//\1/
52584             q
52585           }
52586           /^X\(\/\).*/{
52587             s//\1/
52588             q
52589           }
52590           s/.*/./; q'`
52591     else
52592       continue
52593     fi
52594     # Extract the definition of DEPDIR, am__include, and am__quote
52595     # from the Makefile without running `make'.
52596     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
52597     test -z "$DEPDIR" && continue
52598     am__include=`sed -n 's/^am__include = //p' < "$mf"`
52599     test -z "am__include" && continue
52600     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
52601     # When using ansi2knr, U may be empty or an underscore; expand it
52602     U=`sed -n 's/^U = //p' < "$mf"`
52603     # Find all dependency output files, they are included files with
52604     # $(DEPDIR) in their names.  We invoke sed twice because it is the
52605     # simplest approach to changing $(DEPDIR) to its actual value in the
52606     # expansion.
52607     for file in `sed -n "
52608       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
52609          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
52610       # Make sure the directory exists.
52611       test -f "$dirpart/$file" && continue
52612       fdir=`$as_dirname -- "$file" ||
52613 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52614          X"$file" : 'X\(//\)[^/]' \| \
52615          X"$file" : 'X\(//\)$' \| \
52616          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
52617 $as_echo X"$file" |
52618     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52619             s//\1/
52620             q
52621           }
52622           /^X\(\/\/\)[^/].*/{
52623             s//\1/
52624             q
52625           }
52626           /^X\(\/\/\)$/{
52627             s//\1/
52628             q
52629           }
52630           /^X\(\/\).*/{
52631             s//\1/
52632             q
52633           }
52634           s/.*/./; q'`
52635       { as_dir=$dirpart/$fdir
52636   case $as_dir in #(
52637   -*) as_dir=./$as_dir;;
52638   esac
52639   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
52640     as_dirs=
52641     while :; do
52642       case $as_dir in #(
52643       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
52644       *) as_qdir=$as_dir;;
52645       esac
52646       as_dirs="'$as_qdir' $as_dirs"
52647       as_dir=`$as_dirname -- "$as_dir" ||
52648 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
52649          X"$as_dir" : 'X\(//\)[^/]' \| \
52650          X"$as_dir" : 'X\(//\)$' \| \
52651          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
52652 $as_echo X"$as_dir" |
52653     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
52654             s//\1/
52655             q
52656           }
52657           /^X\(\/\/\)[^/].*/{
52658             s//\1/
52659             q
52660           }
52661           /^X\(\/\/\)$/{
52662             s//\1/
52663             q
52664           }
52665           /^X\(\/\).*/{
52666             s//\1/
52667             q
52668           }
52669           s/.*/./; q'`
52670       test -d "$as_dir" && break
52671     done
52672     test -z "$as_dirs" || eval "mkdir $as_dirs"
52673   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
52674 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
52675    { (exit 1); exit 1; }; }; }
52676       # echo "creating $dirpart/$file"
52677       echo '# dummy' > "$dirpart/$file"
52678     done
52679   done
52680 }
52681  ;;
52682     "po-directories":C)
52683     for ac_file in $CONFIG_FILES; do
52684       # Support "outfile[:infile[:infile...]]"
52685       case "$ac_file" in
52686         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
52687       esac
52688       # PO directories have a Makefile.in generated from Makefile.in.in.
52689       case "$ac_file" in */Makefile.in)
52690         # Adjust a relative srcdir.
52691         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
52692         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
52693         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
52694         # In autoconf-2.13 it is called $ac_given_srcdir.
52695         # In autoconf-2.50 it is called $srcdir.
52696         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
52697         case "$ac_given_srcdir" in
52698           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
52699           /*) top_srcdir="$ac_given_srcdir" ;;
52700           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
52701         esac
52702         # Treat a directory as a PO directory if and only if it has a
52703         # POTFILES.in file. This allows packages to have multiple PO
52704         # directories under different names or in different locations.
52705         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
52706           rm -f "$ac_dir/POTFILES"
52707           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
52708           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
52709           POMAKEFILEDEPS="POTFILES.in"
52710           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
52711           # on $ac_dir but don't depend on user-specified configuration
52712           # parameters.
52713           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
52714             # The LINGUAS file contains the set of available languages.
52715             if test -n "$OBSOLETE_ALL_LINGUAS"; then
52716               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
52717             fi
52718             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
52719             # Hide the ALL_LINGUAS assigment from automake < 1.5.
52720             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
52721             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
52722           else
52723             # The set of available languages was given in configure.in.
52724             # Hide the ALL_LINGUAS assigment from automake < 1.5.
52725             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
52726           fi
52727           # Compute POFILES
52728           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
52729           # Compute UPDATEPOFILES
52730           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
52731           # Compute DUMMYPOFILES
52732           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
52733           # Compute GMOFILES
52734           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
52735           case "$ac_given_srcdir" in
52736             .) srcdirpre= ;;
52737             *) srcdirpre='$(srcdir)/' ;;
52738           esac
52739           POFILES=
52740           UPDATEPOFILES=
52741           DUMMYPOFILES=
52742           GMOFILES=
52743           for lang in $ALL_LINGUAS; do
52744             POFILES="$POFILES $srcdirpre$lang.po"
52745             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
52746             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
52747             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
52748           done
52749           # CATALOGS depends on both $ac_dir and the user's LINGUAS
52750           # environment variable.
52751           INST_LINGUAS=
52752           if test -n "$ALL_LINGUAS"; then
52753             for presentlang in $ALL_LINGUAS; do
52754               useit=no
52755               if test "%UNSET%" != "$LINGUAS"; then
52756                 desiredlanguages="$LINGUAS"
52757               else
52758                 desiredlanguages="$ALL_LINGUAS"
52759               fi
52760               for desiredlang in $desiredlanguages; do
52761                 # Use the presentlang catalog if desiredlang is
52762                 #   a. equal to presentlang, or
52763                 #   b. a variant of presentlang (because in this case,
52764                 #      presentlang can be used as a fallback for messages
52765                 #      which are not translated in the desiredlang catalog).
52766                 case "$desiredlang" in
52767                   "$presentlang"*) useit=yes;;
52768                 esac
52769               done
52770               if test $useit = yes; then
52771                 INST_LINGUAS="$INST_LINGUAS $presentlang"
52772               fi
52773             done
52774           fi
52775           CATALOGS=
52776           if test -n "$INST_LINGUAS"; then
52777             for lang in $INST_LINGUAS; do
52778               CATALOGS="$CATALOGS $lang.gmo"
52779             done
52780           fi
52781           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
52782           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"
52783           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
52784             if test -f "$f"; then
52785               case "$f" in
52786                 *.orig | *.bak | *~) ;;
52787                 *) cat "$f" >> "$ac_dir/Makefile" ;;
52788               esac
52789             fi
52790           done
52791         fi
52792         ;;
52793       esac
52794     done ;;
52795     "tests/atconfig":C) cat >tests/atconfig <<ATEOF
52796 # Configurable variable values for building test suites.
52797 # Generated by $0.
52798 # Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
52799
52800 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
52801 at_testdir='tests'
52802 abs_builddir='$ac_abs_builddir'
52803 at_srcdir='$ac_srcdir'
52804 abs_srcdir='$ac_abs_srcdir'
52805 at_top_srcdir='$ac_top_srcdir'
52806 abs_top_srcdir='$ac_abs_top_srcdir'
52807 at_top_build_prefix='$ac_top_build_prefix'
52808 abs_top_builddir='$ac_abs_top_builddir'
52809
52810 # Backward compatibility with Autotest <= 2.59b:
52811 at_top_builddir=\$at_top_build_prefix
52812
52813 AUTOTEST_PATH='tests'
52814
52815 SHELL=\${CONFIG_SHELL-'$SHELL'}
52816 ATEOF
52817  ;;
52818
52819   esac
52820 done # for ac_tag
52821
52822
52823 { (exit 0); exit 0; }
52824 _ACEOF
52825 chmod +x $CONFIG_STATUS
52826 ac_clean_files=$ac_clean_files_save
52827
52828 test $ac_write_fail = 0 ||
52829   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
52830 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
52831    { (exit 1); exit 1; }; }
52832
52833
52834 # configure is writing to config.log, and then calls config.status.
52835 # config.status does its own redirection, appending to config.log.
52836 # Unfortunately, on DOS this fails, as config.log is still kept open
52837 # by configure, so config.status won't be able to write to it; its
52838 # output is simply discarded.  So we exec the FD to /dev/null,
52839 # effectively closing config.log, so it can be properly (re)opened and
52840 # appended to by config.status.  When coming back to configure, we
52841 # need to make the FD available again.
52842 if test "$no_create" != yes; then
52843   ac_cs_success=:
52844   ac_config_status_args=
52845   test "$silent" = yes &&
52846     ac_config_status_args="$ac_config_status_args --quiet"
52847   exec 5>/dev/null
52848   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
52849   exec 5>>config.log
52850   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
52851   # would make configure fail if this is the last instruction.
52852   $ac_cs_success || { (exit 1); exit 1; }
52853 fi
52854 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
52855   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
52856 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
52857 fi
52858