Elide non-DFSG compliant upstream components
[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.26.
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.26'
600 PACKAGE_STRING='GNU tar 1.26'
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 gltests_WITNESS
684 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
685 NEXT_WCHAR_H
686 HAVE_FEATURES_H
687 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE
688 LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE
689 LIBUNISTRING_UNIWIDTH_H
690 LIBUNISTRING_UNITYPES_H
691 HAVE_UNISTD_H
692 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
693 NEXT_UNISTD_H
694 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
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 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
712 NEXT_STDLIB_H
713 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
714 NEXT_STDIO_H
715 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
716 NEXT_STDDEF_H
717 STDDEF_H
718 HAVE_WCHAR_T
719 REPLACE_NULL
720 NEXT_AS_FIRST_DIRECTIVE_STDARG_H
721 NEXT_STDARG_H
722 STDARG_H
723 REPLACE_TIMEGM
724 REPLACE_NANOSLEEP
725 REPLACE_MKTIME
726 REPLACE_LOCALTIME_R
727 HAVE_TIMEGM
728 HAVE_STRPTIME
729 HAVE_NANOSLEEP
730 HAVE_DECL_LOCALTIME_R
731 GNULIB_TIME_R
732 GNULIB_TIMEGM
733 GNULIB_STRPTIME
734 GNULIB_NANOSLEEP
735 GNULIB_MKTIME
736 UNDEFINE_STRTOK_R
737 REPLACE_STRTOK_R
738 REPLACE_STRSIGNAL
739 REPLACE_STRNLEN
740 REPLACE_STRNDUP
741 REPLACE_STRNCAT
742 REPLACE_STRERROR_R
743 REPLACE_STRERROR
744 REPLACE_STRCASESTR
745 REPLACE_STRSTR
746 REPLACE_STRDUP
747 REPLACE_STPNCPY
748 REPLACE_MEMMEM
749 REPLACE_MEMCHR
750 HAVE_STRVERSCMP
751 HAVE_DECL_STRSIGNAL
752 HAVE_DECL_STRERROR_R
753 HAVE_DECL_STRTOK_R
754 HAVE_STRCASESTR
755 HAVE_STRSEP
756 HAVE_STRPBRK
757 HAVE_DECL_STRNLEN
758 HAVE_DECL_STRNDUP
759 HAVE_DECL_STRDUP
760 HAVE_STRCHRNUL
761 HAVE_STPNCPY
762 HAVE_STPCPY
763 HAVE_RAWMEMCHR
764 HAVE_DECL_MEMRCHR
765 HAVE_MEMPCPY
766 HAVE_DECL_MEMMEM
767 HAVE_MEMCHR
768 HAVE_MBSLEN
769 GNULIB_STRVERSCMP
770 GNULIB_STRSIGNAL
771 GNULIB_STRERROR_R
772 GNULIB_STRERROR
773 GNULIB_MBSTOK_R
774 GNULIB_MBSSEP
775 GNULIB_MBSSPN
776 GNULIB_MBSPBRK
777 GNULIB_MBSCSPN
778 GNULIB_MBSCASESTR
779 GNULIB_MBSPCASECMP
780 GNULIB_MBSNCASECMP
781 GNULIB_MBSCASECMP
782 GNULIB_MBSSTR
783 GNULIB_MBSRCHR
784 GNULIB_MBSCHR
785 GNULIB_MBSNLEN
786 GNULIB_MBSLEN
787 GNULIB_STRTOK_R
788 GNULIB_STRCASESTR
789 GNULIB_STRSTR
790 GNULIB_STRSEP
791 GNULIB_STRPBRK
792 GNULIB_STRNLEN
793 GNULIB_STRNDUP
794 GNULIB_STRNCAT
795 GNULIB_STRDUP
796 GNULIB_STRCHRNUL
797 GNULIB_STPNCPY
798 GNULIB_STPCPY
799 GNULIB_RAWMEMCHR
800 GNULIB_MEMRCHR
801 GNULIB_MEMPCPY
802 GNULIB_MEMMEM
803 GNULIB_MEMCHR
804 LOCALE_FR_UTF8
805 LOCALE_ZH_CN
806 LOCALE_JA
807 LOCALCHARSET_TESTS_ENVIRONMENT
808 GLIBC21
809 HAVE_LANGINFO_YESEXPR
810 HAVE_LANGINFO_ERA
811 HAVE_LANGINFO_T_FMT_AMPM
812 HAVE_LANGINFO_CODESET
813 HAVE_LANGINFO_H
814 NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H
815 NEXT_LANGINFO_H
816 REPLACE_NL_LANGINFO
817 HAVE_NL_LANGINFO
818 GNULIB_NL_LANGINFO
819 REPLACE_ISWCNTRL
820 HAVE_WCTYPE_H
821 NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H
822 NEXT_WCTYPE_H
823 HAVE_WINT_T
824 HAVE_ISWCNTRL
825 REPLACE_ISWBLANK
826 HAVE_WCTRANS_T
827 HAVE_WCTYPE_T
828 HAVE_ISWBLANK
829 GNULIB_TOWCTRANS
830 GNULIB_WCTRANS
831 GNULIB_ISWCTYPE
832 GNULIB_WCTYPE
833 GNULIB_ISWBLANK
834 UINT64_MAX_EQ_ULONG_MAX
835 UINT32_MAX_LT_UINTMAX_MAX
836 INT64_MAX_EQ_LONG_MAX
837 INT32_MAX_LT_INTMAX_MAX
838 PRIPTR_PREFIX
839 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
840 NEXT_INTTYPES_H
841 HAVE_DECL_STRTOUMAX
842 HAVE_DECL_STRTOIMAX
843 HAVE_DECL_IMAXDIV
844 HAVE_DECL_IMAXABS
845 GNULIB_STRTOUMAX
846 GNULIB_STRTOIMAX
847 GNULIB_IMAXDIV
848 GNULIB_IMAXABS
849 PRI_MACROS_BROKEN
850 STDINT_H
851 WINT_T_SUFFIX
852 WCHAR_T_SUFFIX
853 SIG_ATOMIC_T_SUFFIX
854 SIZE_T_SUFFIX
855 PTRDIFF_T_SUFFIX
856 HAVE_SIGNED_WINT_T
857 HAVE_SIGNED_WCHAR_T
858 HAVE_SIGNED_SIG_ATOMIC_T
859 BITSIZEOF_WINT_T
860 BITSIZEOF_WCHAR_T
861 BITSIZEOF_SIG_ATOMIC_T
862 BITSIZEOF_SIZE_T
863 BITSIZEOF_PTRDIFF_T
864 APPLE_UNIVERSAL_BUILD
865 HAVE_SYS_BITYPES_H
866 HAVE_SYS_INTTYPES_H
867 HAVE_STDINT_H
868 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
869 NEXT_STDINT_H
870 HAVE_SYS_TYPES_H
871 HAVE_INTTYPES_H
872 HAVE_WCHAR_H
873 HAVE_UNSIGNED_LONG_LONG_INT
874 HAVE_LONG_LONG_INT
875 HAVE__BOOL
876 STDBOOL_H
877 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
878 NEXT_SYS_TIME_H
879 REPLACE_GETTIMEOFDAY
880 HAVE_SYS_TIME_H
881 HAVE_STRUCT_TIMEVAL
882 HAVE_GETTIMEOFDAY
883 GNULIB_GETTIMEOFDAY
884 LTLIBINTL
885 LIBINTL
886 HAVE_GETOPT_H
887 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
888 NEXT_GETOPT_H
889 FNMATCH_H
890 FLOAT_H
891 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
892 NEXT_FLOAT_H
893 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
894 NEXT_FCNTL_H
895 REPLACE_VSPRINTF
896 REPLACE_VSNPRINTF
897 REPLACE_VPRINTF
898 REPLACE_VFPRINTF
899 REPLACE_VDPRINTF
900 REPLACE_VASPRINTF
901 REPLACE_TMPFILE
902 REPLACE_STDIO_WRITE_FUNCS
903 REPLACE_SPRINTF
904 REPLACE_SNPRINTF
905 REPLACE_RENAMEAT
906 REPLACE_RENAME
907 REPLACE_REMOVE
908 REPLACE_PRINTF
909 REPLACE_POPEN
910 REPLACE_PERROR
911 REPLACE_OBSTACK_PRINTF
912 REPLACE_GETLINE
913 REPLACE_GETDELIM
914 REPLACE_FTELLO
915 REPLACE_FTELL
916 REPLACE_FSEEKO
917 REPLACE_FSEEK
918 REPLACE_FREOPEN
919 REPLACE_FPURGE
920 REPLACE_FPRINTF
921 REPLACE_FOPEN
922 REPLACE_FFLUSH
923 REPLACE_FCLOSE
924 REPLACE_DPRINTF
925 HAVE_VDPRINTF
926 HAVE_VASPRINTF
927 HAVE_RENAMEAT
928 HAVE_FTELLO
929 HAVE_FSEEKO
930 HAVE_DPRINTF
931 HAVE_DECL_VSNPRINTF
932 HAVE_DECL_SNPRINTF
933 HAVE_DECL_OBSTACK_PRINTF
934 HAVE_DECL_GETLINE
935 HAVE_DECL_GETDELIM
936 HAVE_DECL_FTELLO
937 HAVE_DECL_FSEEKO
938 HAVE_DECL_FPURGE
939 GNULIB_VSPRINTF_POSIX
940 GNULIB_VSNPRINTF
941 GNULIB_VPRINTF_POSIX
942 GNULIB_VPRINTF
943 GNULIB_VFPRINTF_POSIX
944 GNULIB_VFPRINTF
945 GNULIB_VDPRINTF
946 GNULIB_VASPRINTF
947 GNULIB_TMPFILE
948 GNULIB_STDIO_H_SIGPIPE
949 GNULIB_SPRINTF_POSIX
950 GNULIB_SNPRINTF
951 GNULIB_RENAMEAT
952 GNULIB_RENAME
953 GNULIB_REMOVE
954 GNULIB_PUTS
955 GNULIB_PUTCHAR
956 GNULIB_PUTC
957 GNULIB_PRINTF_POSIX
958 GNULIB_PRINTF
959 GNULIB_POPEN
960 GNULIB_PERROR
961 GNULIB_OBSTACK_PRINTF_POSIX
962 GNULIB_OBSTACK_PRINTF
963 GNULIB_GETLINE
964 GNULIB_GETDELIM
965 GNULIB_FWRITE
966 GNULIB_FTELLO
967 GNULIB_FTELL
968 GNULIB_FSEEKO
969 GNULIB_FSEEK
970 GNULIB_FREOPEN
971 GNULIB_FPUTS
972 GNULIB_FPUTC
973 GNULIB_FPURGE
974 GNULIB_FPRINTF_POSIX
975 GNULIB_FPRINTF
976 GNULIB_FOPEN
977 GNULIB_FFLUSH
978 GNULIB_FCLOSE
979 GNULIB_DPRINTF
980 REPLACE_OPENAT
981 REPLACE_OPEN
982 REPLACE_FCNTL
983 HAVE_OPENAT
984 HAVE_FCNTL
985 GNULIB_OPENAT
986 GNULIB_OPEN
987 GNULIB_FCNTL
988 REPLACE_UTIMENSAT
989 REPLACE_STAT
990 REPLACE_MKNOD
991 REPLACE_MKFIFO
992 REPLACE_MKDIR
993 REPLACE_LSTAT
994 REPLACE_FUTIMENS
995 REPLACE_FSTATAT
996 REPLACE_FSTAT
997 HAVE_UTIMENSAT
998 HAVE_MKNODAT
999 HAVE_MKNOD
1000 HAVE_MKFIFOAT
1001 HAVE_MKFIFO
1002 HAVE_MKDIRAT
1003 HAVE_LSTAT
1004 HAVE_LCHMOD
1005 HAVE_FUTIMENS
1006 HAVE_FSTATAT
1007 HAVE_FCHMODAT
1008 GNULIB_UTIMENSAT
1009 GNULIB_STAT
1010 GNULIB_MKNODAT
1011 GNULIB_MKNOD
1012 GNULIB_MKFIFOAT
1013 GNULIB_MKFIFO
1014 GNULIB_MKDIRAT
1015 GNULIB_LSTAT
1016 GNULIB_LCHMOD
1017 GNULIB_FUTIMENS
1018 GNULIB_FSTATAT
1019 GNULIB_FCHMODAT
1020 EOVERFLOW_VALUE
1021 EOVERFLOW_HIDDEN
1022 ENOLINK_VALUE
1023 ENOLINK_HIDDEN
1024 EMULTIHOP_VALUE
1025 EMULTIHOP_HIDDEN
1026 ERRNO_H
1027 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1028 NEXT_ERRNO_H
1029 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1030 NEXT_DIRENT_H
1031 PRAGMA_COLUMNS
1032 PRAGMA_SYSTEM_HEADER
1033 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1034 INCLUDE_NEXT
1035 REPLACE_OPENDIR
1036 REPLACE_FDOPENDIR
1037 REPLACE_DIRFD
1038 REPLACE_CLOSEDIR
1039 HAVE_ALPHASORT
1040 HAVE_SCANDIR
1041 HAVE_FDOPENDIR
1042 HAVE_DECL_FDOPENDIR
1043 HAVE_DECL_DIRFD
1044 GNULIB_ALPHASORT
1045 GNULIB_SCANDIR
1046 GNULIB_FDOPENDIR
1047 GNULIB_DIRFD
1048 pkglibexecdir
1049 lispdir
1050 LIB_CLOCK_GETTIME
1051 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1052 UNISTD_H_HAVE_WINSOCK2_H
1053 REPLACE_WRITE
1054 REPLACE_USLEEP
1055 REPLACE_UNLINKAT
1056 REPLACE_UNLINK
1057 REPLACE_TTYNAME_R
1058 REPLACE_SYMLINK
1059 REPLACE_SLEEP
1060 REPLACE_RMDIR
1061 REPLACE_READLINK
1062 REPLACE_PWRITE
1063 REPLACE_PREAD
1064 REPLACE_LSEEK
1065 REPLACE_LINKAT
1066 REPLACE_LINK
1067 REPLACE_LCHOWN
1068 REPLACE_GETPAGESIZE
1069 REPLACE_GETGROUPS
1070 REPLACE_GETLOGIN_R
1071 REPLACE_GETDOMAINNAME
1072 REPLACE_GETCWD
1073 REPLACE_FCHOWNAT
1074 REPLACE_DUP2
1075 REPLACE_DUP
1076 REPLACE_CLOSE
1077 REPLACE_CHOWN
1078 HAVE_SYS_PARAM_H
1079 HAVE_OS_H
1080 HAVE_DECL_TTYNAME_R
1081 HAVE_DECL_GETUSERSHELL
1082 HAVE_DECL_GETPAGESIZE
1083 HAVE_DECL_GETLOGIN_R
1084 HAVE_DECL_GETDOMAINNAME
1085 HAVE_DECL_FCHDIR
1086 HAVE_DECL_ENVIRON
1087 HAVE_USLEEP
1088 HAVE_UNLINKAT
1089 HAVE_SYMLINKAT
1090 HAVE_SYMLINK
1091 HAVE_SLEEP
1092 HAVE_READLINKAT
1093 HAVE_READLINK
1094 HAVE_PWRITE
1095 HAVE_PREAD
1096 HAVE_PIPE2
1097 HAVE_PIPE
1098 HAVE_LINKAT
1099 HAVE_LINK
1100 HAVE_LCHOWN
1101 HAVE_GETPAGESIZE
1102 HAVE_GETLOGIN
1103 HAVE_GETHOSTNAME
1104 HAVE_GETGROUPS
1105 HAVE_GETDTABLESIZE
1106 HAVE_FTRUNCATE
1107 HAVE_FSYNC
1108 HAVE_FCHOWNAT
1109 HAVE_FCHDIR
1110 HAVE_FACCESSAT
1111 HAVE_EUIDACCESS
1112 HAVE_DUP3
1113 HAVE_DUP2
1114 HAVE_CHOWN
1115 GNULIB_WRITE
1116 GNULIB_USLEEP
1117 GNULIB_UNLINKAT
1118 GNULIB_UNLINK
1119 GNULIB_UNISTD_H_SIGPIPE
1120 GNULIB_UNISTD_H_GETOPT
1121 GNULIB_TTYNAME_R
1122 GNULIB_SYMLINKAT
1123 GNULIB_SYMLINK
1124 GNULIB_SLEEP
1125 GNULIB_RMDIR
1126 GNULIB_READLINKAT
1127 GNULIB_READLINK
1128 GNULIB_PWRITE
1129 GNULIB_PREAD
1130 GNULIB_PIPE2
1131 GNULIB_PIPE
1132 GNULIB_LSEEK
1133 GNULIB_LINKAT
1134 GNULIB_LINK
1135 GNULIB_LCHOWN
1136 GNULIB_GETUSERSHELL
1137 GNULIB_GETPAGESIZE
1138 GNULIB_GETLOGIN_R
1139 GNULIB_GETLOGIN
1140 GNULIB_GETHOSTNAME
1141 GNULIB_GETGROUPS
1142 GNULIB_GETDTABLESIZE
1143 GNULIB_GETDOMAINNAME
1144 GNULIB_GETCWD
1145 GNULIB_FTRUNCATE
1146 GNULIB_FSYNC
1147 GNULIB_FCHOWNAT
1148 GNULIB_FCHDIR
1149 GNULIB_FACCESSAT
1150 GNULIB_EUIDACCESS
1151 GNULIB_ENVIRON
1152 GNULIB_DUP3
1153 GNULIB_DUP2
1154 GNULIB_CLOSE
1155 GNULIB_CHOWN
1156 REPLACE_WCTOMB
1157 REPLACE_UNSETENV
1158 REPLACE_STRTOD
1159 REPLACE_SETENV
1160 REPLACE_REALPATH
1161 REPLACE_REALLOC
1162 REPLACE_PUTENV
1163 REPLACE_MKSTEMP
1164 REPLACE_MBTOWC
1165 REPLACE_MALLOC
1166 REPLACE_CANONICALIZE_FILE_NAME
1167 REPLACE_CALLOC
1168 HAVE_DECL_UNSETENV
1169 HAVE_UNLOCKPT
1170 HAVE_SYS_LOADAVG_H
1171 HAVE_STRUCT_RANDOM_DATA
1172 HAVE_STRTOULL
1173 HAVE_STRTOLL
1174 HAVE_STRTOD
1175 HAVE_DECL_SETENV
1176 HAVE_SETENV
1177 HAVE_RPMATCH
1178 HAVE_REALPATH
1179 HAVE_RANDOM_R
1180 HAVE_RANDOM_H
1181 HAVE_PTSNAME
1182 HAVE_MKSTEMPS
1183 HAVE_MKSTEMP
1184 HAVE_MKOSTEMPS
1185 HAVE_MKOSTEMP
1186 HAVE_MKDTEMP
1187 HAVE_GRANTPT
1188 HAVE_GETSUBOPT
1189 HAVE_DECL_GETLOADAVG
1190 HAVE_CANONICALIZE_FILE_NAME
1191 HAVE_ATOLL
1192 HAVE__EXIT
1193 GNULIB_WCTOMB
1194 GNULIB_UNSETENV
1195 GNULIB_UNLOCKPT
1196 GNULIB_SYSTEM_POSIX
1197 GNULIB_STRTOULL
1198 GNULIB_STRTOLL
1199 GNULIB_STRTOD
1200 GNULIB_SETENV
1201 GNULIB_RPMATCH
1202 GNULIB_REALPATH
1203 GNULIB_REALLOC_POSIX
1204 GNULIB_RANDOM_R
1205 GNULIB_PUTENV
1206 GNULIB_PTSNAME
1207 GNULIB_MKSTEMPS
1208 GNULIB_MKSTEMP
1209 GNULIB_MKOSTEMPS
1210 GNULIB_MKOSTEMP
1211 GNULIB_MKDTEMP
1212 GNULIB_MBTOWC
1213 GNULIB_MALLOC_POSIX
1214 GNULIB_GRANTPT
1215 GNULIB_GETSUBOPT
1216 GNULIB_GETLOADAVG
1217 GNULIB_CANONICALIZE_FILE_NAME
1218 GNULIB_CALLOC_POSIX
1219 GNULIB_ATOLL
1220 GNULIB__EXIT
1221 LOCALE_FR
1222 REPLACE_WCSWIDTH
1223 REPLACE_WCWIDTH
1224 REPLACE_WCSNRTOMBS
1225 REPLACE_WCSRTOMBS
1226 REPLACE_WCRTOMB
1227 REPLACE_MBSNRTOWCS
1228 REPLACE_MBSRTOWCS
1229 REPLACE_MBRLEN
1230 REPLACE_MBRTOWC
1231 REPLACE_MBSINIT
1232 REPLACE_WCTOB
1233 REPLACE_BTOWC
1234 REPLACE_MBSTATE_T
1235 HAVE_DECL_WCWIDTH
1236 HAVE_DECL_WCTOB
1237 HAVE_WCSWIDTH
1238 HAVE_WCSTOK
1239 HAVE_WCSSTR
1240 HAVE_WCSPBRK
1241 HAVE_WCSSPN
1242 HAVE_WCSCSPN
1243 HAVE_WCSRCHR
1244 HAVE_WCSCHR
1245 HAVE_WCSDUP
1246 HAVE_WCSXFRM
1247 HAVE_WCSCOLL
1248 HAVE_WCSNCASECMP
1249 HAVE_WCSCASECMP
1250 HAVE_WCSNCMP
1251 HAVE_WCSCMP
1252 HAVE_WCSNCAT
1253 HAVE_WCSCAT
1254 HAVE_WCPNCPY
1255 HAVE_WCSNCPY
1256 HAVE_WCPCPY
1257 HAVE_WCSCPY
1258 HAVE_WCSNLEN
1259 HAVE_WCSLEN
1260 HAVE_WMEMSET
1261 HAVE_WMEMMOVE
1262 HAVE_WMEMCPY
1263 HAVE_WMEMCMP
1264 HAVE_WMEMCHR
1265 HAVE_WCSNRTOMBS
1266 HAVE_WCSRTOMBS
1267 HAVE_WCRTOMB
1268 HAVE_MBSNRTOWCS
1269 HAVE_MBSRTOWCS
1270 HAVE_MBRLEN
1271 HAVE_MBRTOWC
1272 HAVE_MBSINIT
1273 HAVE_BTOWC
1274 GNULIB_WCSWIDTH
1275 GNULIB_WCSTOK
1276 GNULIB_WCSSTR
1277 GNULIB_WCSPBRK
1278 GNULIB_WCSSPN
1279 GNULIB_WCSCSPN
1280 GNULIB_WCSRCHR
1281 GNULIB_WCSCHR
1282 GNULIB_WCSDUP
1283 GNULIB_WCSXFRM
1284 GNULIB_WCSCOLL
1285 GNULIB_WCSNCASECMP
1286 GNULIB_WCSCASECMP
1287 GNULIB_WCSNCMP
1288 GNULIB_WCSCMP
1289 GNULIB_WCSNCAT
1290 GNULIB_WCSCAT
1291 GNULIB_WCPNCPY
1292 GNULIB_WCSNCPY
1293 GNULIB_WCPCPY
1294 GNULIB_WCSCPY
1295 GNULIB_WCSNLEN
1296 GNULIB_WCSLEN
1297 GNULIB_WMEMSET
1298 GNULIB_WMEMMOVE
1299 GNULIB_WMEMCPY
1300 GNULIB_WMEMCMP
1301 GNULIB_WMEMCHR
1302 GNULIB_WCWIDTH
1303 GNULIB_WCSNRTOMBS
1304 GNULIB_WCSRTOMBS
1305 GNULIB_WCRTOMB
1306 GNULIB_MBSNRTOWCS
1307 GNULIB_MBSRTOWCS
1308 GNULIB_MBRLEN
1309 GNULIB_MBRTOWC
1310 GNULIB_MBSINIT
1311 GNULIB_WCTOB
1312 GNULIB_BTOWC
1313 GETOPT_H
1314 ALLOCA_H
1315 ALLOCA
1316 GL_COND_LIBTOOL_FALSE
1317 GL_COND_LIBTOOL_TRUE
1318 EGREP
1319 GREP
1320 CPP
1321 host_os
1322 host_vendor
1323 host_cpu
1324 host
1325 build_os
1326 build_vendor
1327 build_cpu
1328 build
1329 YFLAGS
1330 YACC
1331 RANLIB
1332 am__fastdepCC_FALSE
1333 am__fastdepCC_TRUE
1334 CCDEPMODE
1335 AMDEPBACKSLASH
1336 AMDEP_FALSE
1337 AMDEP_TRUE
1338 am__quote
1339 am__include
1340 DEPDIR
1341 OBJEXT
1342 EXEEXT
1343 ac_ct_CC
1344 CPPFLAGS
1345 LDFLAGS
1346 CFLAGS
1347 CC
1348 AM_BACKSLASH
1349 AM_DEFAULT_VERBOSITY
1350 am__untar
1351 am__tar
1352 AMTAR
1353 am__leading_dot
1354 SET_MAKE
1355 AWK
1356 mkdir_p
1357 MKDIR_P
1358 INSTALL_STRIP_PROGRAM
1359 STRIP
1360 install_sh
1361 MAKEINFO
1362 AUTOHEADER
1363 AUTOMAKE
1364 AUTOCONF
1365 ACLOCAL
1366 VERSION
1367 PACKAGE
1368 CYGPATH_W
1369 am__isrc
1370 INSTALL_DATA
1371 INSTALL_SCRIPT
1372 INSTALL_PROGRAM
1373 target_alias
1374 host_alias
1375 build_alias
1376 LIBS
1377 ECHO_T
1378 ECHO_N
1379 ECHO_C
1380 DEFS
1381 mandir
1382 localedir
1383 libdir
1384 psdir
1385 pdfdir
1386 dvidir
1387 htmldir
1388 infodir
1389 docdir
1390 oldincludedir
1391 includedir
1392 localstatedir
1393 sharedstatedir
1394 sysconfdir
1395 datadir
1396 datarootdir
1397 libexecdir
1398 sbindir
1399 bindir
1400 program_transform_name
1401 prefix
1402 exec_prefix
1403 PACKAGE_BUGREPORT
1404 PACKAGE_STRING
1405 PACKAGE_VERSION
1406 PACKAGE_TARNAME
1407 PACKAGE_NAME
1408 PATH_SEPARATOR
1409 SHELL'
1410 ac_subst_files=''
1411 ac_user_opts='
1412 enable_option_checking
1413 enable_silent_rules
1414 enable_dependency_tracking
1415 enable_largefile
1416 with_included_regex
1417 with_packager
1418 with_packager_version
1419 with_packager_bug_reports
1420 with_rmt
1421 with_compress
1422 with_gzip
1423 with_bzip2
1424 with_lzip
1425 with_lzma
1426 with_lzop
1427 with_xz
1428 with_gnu_ld
1429 enable_rpath
1430 with_libiconv_prefix
1431 enable_nls
1432 with_libintl_prefix
1433 enable_backup_scripts
1434 '
1435       ac_precious_vars='build_alias
1436 host_alias
1437 target_alias
1438 CC
1439 CFLAGS
1440 LDFLAGS
1441 LIBS
1442 CPPFLAGS
1443 YACC
1444 YFLAGS
1445 CPP
1446 DEFAULT_RMT_DIR
1447 DEFAULT_ARCHIVE_FORMAT
1448 DEFAULT_ARCHIVE
1449 DEFAULT_BLOCKING
1450 DEFAULT_QUOTING_STYLE'
1451
1452
1453 # Initialize some variables set by options.
1454 ac_init_help=
1455 ac_init_version=false
1456 ac_unrecognized_opts=
1457 ac_unrecognized_sep=
1458 # The variables have the same names as the options, with
1459 # dashes changed to underlines.
1460 cache_file=/dev/null
1461 exec_prefix=NONE
1462 no_create=
1463 no_recursion=
1464 prefix=NONE
1465 program_prefix=NONE
1466 program_suffix=NONE
1467 program_transform_name=s,x,x,
1468 silent=
1469 site=
1470 srcdir=
1471 verbose=
1472 x_includes=NONE
1473 x_libraries=NONE
1474
1475 # Installation directory options.
1476 # These are left unexpanded so users can "make install exec_prefix=/foo"
1477 # and all the variables that are supposed to be based on exec_prefix
1478 # by default will actually change.
1479 # Use braces instead of parens because sh, perl, etc. also accept them.
1480 # (The list follows the same order as the GNU Coding Standards.)
1481 bindir='${exec_prefix}/bin'
1482 sbindir='${exec_prefix}/sbin'
1483 libexecdir='${exec_prefix}/libexec'
1484 datarootdir='${prefix}/share'
1485 datadir='${datarootdir}'
1486 sysconfdir='${prefix}/etc'
1487 sharedstatedir='${prefix}/com'
1488 localstatedir='${prefix}/var'
1489 includedir='${prefix}/include'
1490 oldincludedir='/usr/include'
1491 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1492 infodir='${datarootdir}/info'
1493 htmldir='${docdir}'
1494 dvidir='${docdir}'
1495 pdfdir='${docdir}'
1496 psdir='${docdir}'
1497 libdir='${exec_prefix}/lib'
1498 localedir='${datarootdir}/locale'
1499 mandir='${datarootdir}/man'
1500
1501 ac_prev=
1502 ac_dashdash=
1503 for ac_option
1504 do
1505   # If the previous option needs an argument, assign it.
1506   if test -n "$ac_prev"; then
1507     eval $ac_prev=\$ac_option
1508     ac_prev=
1509     continue
1510   fi
1511
1512   case $ac_option in
1513   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1514   *)    ac_optarg=yes ;;
1515   esac
1516
1517   # Accept the important Cygnus configure options, so we can diagnose typos.
1518
1519   case $ac_dashdash$ac_option in
1520   --)
1521     ac_dashdash=yes ;;
1522
1523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1524     ac_prev=bindir ;;
1525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1526     bindir=$ac_optarg ;;
1527
1528   -build | --build | --buil | --bui | --bu)
1529     ac_prev=build_alias ;;
1530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1531     build_alias=$ac_optarg ;;
1532
1533   -cache-file | --cache-file | --cache-fil | --cache-fi \
1534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1535     ac_prev=cache_file ;;
1536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1538     cache_file=$ac_optarg ;;
1539
1540   --config-cache | -C)
1541     cache_file=config.cache ;;
1542
1543   -datadir | --datadir | --datadi | --datad)
1544     ac_prev=datadir ;;
1545   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1546     datadir=$ac_optarg ;;
1547
1548   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1549   | --dataroo | --dataro | --datar)
1550     ac_prev=datarootdir ;;
1551   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1552   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1553     datarootdir=$ac_optarg ;;
1554
1555   -disable-* | --disable-*)
1556     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1557     # Reject names that are not valid shell variable names.
1558     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1559       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1560    { (exit 1); exit 1; }; }
1561     ac_useropt_orig=$ac_useropt
1562     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1563     case $ac_user_opts in
1564       *"
1565 "enable_$ac_useropt"
1566 "*) ;;
1567       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1568          ac_unrecognized_sep=', ';;
1569     esac
1570     eval enable_$ac_useropt=no ;;
1571
1572   -docdir | --docdir | --docdi | --doc | --do)
1573     ac_prev=docdir ;;
1574   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1575     docdir=$ac_optarg ;;
1576
1577   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1578     ac_prev=dvidir ;;
1579   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1580     dvidir=$ac_optarg ;;
1581
1582   -enable-* | --enable-*)
1583     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1584     # Reject names that are not valid shell variable names.
1585     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1586       { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1587    { (exit 1); exit 1; }; }
1588     ac_useropt_orig=$ac_useropt
1589     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1590     case $ac_user_opts in
1591       *"
1592 "enable_$ac_useropt"
1593 "*) ;;
1594       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1595          ac_unrecognized_sep=', ';;
1596     esac
1597     eval enable_$ac_useropt=\$ac_optarg ;;
1598
1599   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1600   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1601   | --exec | --exe | --ex)
1602     ac_prev=exec_prefix ;;
1603   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1604   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1605   | --exec=* | --exe=* | --ex=*)
1606     exec_prefix=$ac_optarg ;;
1607
1608   -gas | --gas | --ga | --g)
1609     # Obsolete; use --with-gas.
1610     with_gas=yes ;;
1611
1612   -help | --help | --hel | --he | -h)
1613     ac_init_help=long ;;
1614   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1615     ac_init_help=recursive ;;
1616   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1617     ac_init_help=short ;;
1618
1619   -host | --host | --hos | --ho)
1620     ac_prev=host_alias ;;
1621   -host=* | --host=* | --hos=* | --ho=*)
1622     host_alias=$ac_optarg ;;
1623
1624   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1625     ac_prev=htmldir ;;
1626   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1627   | --ht=*)
1628     htmldir=$ac_optarg ;;
1629
1630   -includedir | --includedir | --includedi | --included | --include \
1631   | --includ | --inclu | --incl | --inc)
1632     ac_prev=includedir ;;
1633   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1634   | --includ=* | --inclu=* | --incl=* | --inc=*)
1635     includedir=$ac_optarg ;;
1636
1637   -infodir | --infodir | --infodi | --infod | --info | --inf)
1638     ac_prev=infodir ;;
1639   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1640     infodir=$ac_optarg ;;
1641
1642   -libdir | --libdir | --libdi | --libd)
1643     ac_prev=libdir ;;
1644   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1645     libdir=$ac_optarg ;;
1646
1647   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1648   | --libexe | --libex | --libe)
1649     ac_prev=libexecdir ;;
1650   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1651   | --libexe=* | --libex=* | --libe=*)
1652     libexecdir=$ac_optarg ;;
1653
1654   -localedir | --localedir | --localedi | --localed | --locale)
1655     ac_prev=localedir ;;
1656   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1657     localedir=$ac_optarg ;;
1658
1659   -localstatedir | --localstatedir | --localstatedi | --localstated \
1660   | --localstate | --localstat | --localsta | --localst | --locals)
1661     ac_prev=localstatedir ;;
1662   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1663   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1664     localstatedir=$ac_optarg ;;
1665
1666   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1667     ac_prev=mandir ;;
1668   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1669     mandir=$ac_optarg ;;
1670
1671   -nfp | --nfp | --nf)
1672     # Obsolete; use --without-fp.
1673     with_fp=no ;;
1674
1675   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1676   | --no-cr | --no-c | -n)
1677     no_create=yes ;;
1678
1679   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1680   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1681     no_recursion=yes ;;
1682
1683   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1684   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1685   | --oldin | --oldi | --old | --ol | --o)
1686     ac_prev=oldincludedir ;;
1687   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1688   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1689   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1690     oldincludedir=$ac_optarg ;;
1691
1692   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1693     ac_prev=prefix ;;
1694   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1695     prefix=$ac_optarg ;;
1696
1697   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1698   | --program-pre | --program-pr | --program-p)
1699     ac_prev=program_prefix ;;
1700   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1701   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1702     program_prefix=$ac_optarg ;;
1703
1704   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1705   | --program-suf | --program-su | --program-s)
1706     ac_prev=program_suffix ;;
1707   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1708   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1709     program_suffix=$ac_optarg ;;
1710
1711   -program-transform-name | --program-transform-name \
1712   | --program-transform-nam | --program-transform-na \
1713   | --program-transform-n | --program-transform- \
1714   | --program-transform | --program-transfor \
1715   | --program-transfo | --program-transf \
1716   | --program-trans | --program-tran \
1717   | --progr-tra | --program-tr | --program-t)
1718     ac_prev=program_transform_name ;;
1719   -program-transform-name=* | --program-transform-name=* \
1720   | --program-transform-nam=* | --program-transform-na=* \
1721   | --program-transform-n=* | --program-transform-=* \
1722   | --program-transform=* | --program-transfor=* \
1723   | --program-transfo=* | --program-transf=* \
1724   | --program-trans=* | --program-tran=* \
1725   | --progr-tra=* | --program-tr=* | --program-t=*)
1726     program_transform_name=$ac_optarg ;;
1727
1728   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1729     ac_prev=pdfdir ;;
1730   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1731     pdfdir=$ac_optarg ;;
1732
1733   -psdir | --psdir | --psdi | --psd | --ps)
1734     ac_prev=psdir ;;
1735   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1736     psdir=$ac_optarg ;;
1737
1738   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1739   | -silent | --silent | --silen | --sile | --sil)
1740     silent=yes ;;
1741
1742   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1743     ac_prev=sbindir ;;
1744   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1745   | --sbi=* | --sb=*)
1746     sbindir=$ac_optarg ;;
1747
1748   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1749   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1750   | --sharedst | --shareds | --shared | --share | --shar \
1751   | --sha | --sh)
1752     ac_prev=sharedstatedir ;;
1753   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1754   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1755   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1756   | --sha=* | --sh=*)
1757     sharedstatedir=$ac_optarg ;;
1758
1759   -site | --site | --sit)
1760     ac_prev=site ;;
1761   -site=* | --site=* | --sit=*)
1762     site=$ac_optarg ;;
1763
1764   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1765     ac_prev=srcdir ;;
1766   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1767     srcdir=$ac_optarg ;;
1768
1769   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1770   | --syscon | --sysco | --sysc | --sys | --sy)
1771     ac_prev=sysconfdir ;;
1772   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1773   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1774     sysconfdir=$ac_optarg ;;
1775
1776   -target | --target | --targe | --targ | --tar | --ta | --t)
1777     ac_prev=target_alias ;;
1778   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1779     target_alias=$ac_optarg ;;
1780
1781   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1782     verbose=yes ;;
1783
1784   -version | --version | --versio | --versi | --vers | -V)
1785     ac_init_version=: ;;
1786
1787   -with-* | --with-*)
1788     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1789     # Reject names that are not valid shell variable names.
1790     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1791       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1792    { (exit 1); exit 1; }; }
1793     ac_useropt_orig=$ac_useropt
1794     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1795     case $ac_user_opts in
1796       *"
1797 "with_$ac_useropt"
1798 "*) ;;
1799       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1800          ac_unrecognized_sep=', ';;
1801     esac
1802     eval with_$ac_useropt=\$ac_optarg ;;
1803
1804   -without-* | --without-*)
1805     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1806     # Reject names that are not valid shell variable names.
1807     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1808       { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1809    { (exit 1); exit 1; }; }
1810     ac_useropt_orig=$ac_useropt
1811     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1812     case $ac_user_opts in
1813       *"
1814 "with_$ac_useropt"
1815 "*) ;;
1816       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1817          ac_unrecognized_sep=', ';;
1818     esac
1819     eval with_$ac_useropt=no ;;
1820
1821   --x)
1822     # Obsolete; use --with-x.
1823     with_x=yes ;;
1824
1825   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1826   | --x-incl | --x-inc | --x-in | --x-i)
1827     ac_prev=x_includes ;;
1828   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1829   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1830     x_includes=$ac_optarg ;;
1831
1832   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1833   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1834     ac_prev=x_libraries ;;
1835   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1836   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1837     x_libraries=$ac_optarg ;;
1838
1839   -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1840 Try \`$0 --help' for more information." >&2
1841    { (exit 1); exit 1; }; }
1842     ;;
1843
1844   *=*)
1845     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1846     # Reject names that are not valid shell variable names.
1847     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1848       { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1849    { (exit 1); exit 1; }; }
1850     eval $ac_envvar=\$ac_optarg
1851     export $ac_envvar ;;
1852
1853   *)
1854     # FIXME: should be removed in autoconf 3.0.
1855     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1856     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1857       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1858     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1859     ;;
1860
1861   esac
1862 done
1863
1864 if test -n "$ac_prev"; then
1865   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1866   { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1867    { (exit 1); exit 1; }; }
1868 fi
1869
1870 if test -n "$ac_unrecognized_opts"; then
1871   case $enable_option_checking in
1872     no) ;;
1873     fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1874    { (exit 1); exit 1; }; } ;;
1875     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1876   esac
1877 fi
1878
1879 # Check all directory arguments for consistency.
1880 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1881                 datadir sysconfdir sharedstatedir localstatedir includedir \
1882                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1883                 libdir localedir mandir
1884 do
1885   eval ac_val=\$$ac_var
1886   # Remove trailing slashes.
1887   case $ac_val in
1888     */ )
1889       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1890       eval $ac_var=\$ac_val;;
1891   esac
1892   # Be sure to have absolute directory names.
1893   case $ac_val in
1894     [\\/$]* | ?:[\\/]* )  continue;;
1895     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1896   esac
1897   { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1898    { (exit 1); exit 1; }; }
1899 done
1900
1901 # There might be people who depend on the old broken behavior: `$host'
1902 # used to hold the argument of --host etc.
1903 # FIXME: To remove some day.
1904 build=$build_alias
1905 host=$host_alias
1906 target=$target_alias
1907
1908 # FIXME: To remove some day.
1909 if test "x$host_alias" != x; then
1910   if test "x$build_alias" = x; then
1911     cross_compiling=maybe
1912     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1913     If a cross compiler is detected then cross compile mode will be used." >&2
1914   elif test "x$build_alias" != "x$host_alias"; then
1915     cross_compiling=yes
1916   fi
1917 fi
1918
1919 ac_tool_prefix=
1920 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1921
1922 test "$silent" = yes && exec 6>/dev/null
1923
1924
1925 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1926 ac_ls_di=`ls -di .` &&
1927 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1928   { $as_echo "$as_me: error: working directory cannot be determined" >&2
1929    { (exit 1); exit 1; }; }
1930 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1931   { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1932    { (exit 1); exit 1; }; }
1933
1934
1935 # Find the source files, if location was not specified.
1936 if test -z "$srcdir"; then
1937   ac_srcdir_defaulted=yes
1938   # Try the directory containing this script, then the parent directory.
1939   ac_confdir=`$as_dirname -- "$as_myself" ||
1940 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1941          X"$as_myself" : 'X\(//\)[^/]' \| \
1942          X"$as_myself" : 'X\(//\)$' \| \
1943          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1944 $as_echo X"$as_myself" |
1945     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1946             s//\1/
1947             q
1948           }
1949           /^X\(\/\/\)[^/].*/{
1950             s//\1/
1951             q
1952           }
1953           /^X\(\/\/\)$/{
1954             s//\1/
1955             q
1956           }
1957           /^X\(\/\).*/{
1958             s//\1/
1959             q
1960           }
1961           s/.*/./; q'`
1962   srcdir=$ac_confdir
1963   if test ! -r "$srcdir/$ac_unique_file"; then
1964     srcdir=..
1965   fi
1966 else
1967   ac_srcdir_defaulted=no
1968 fi
1969 if test ! -r "$srcdir/$ac_unique_file"; then
1970   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1971   { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1972    { (exit 1); exit 1; }; }
1973 fi
1974 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1975 ac_abs_confdir=`(
1976         cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1977    { (exit 1); exit 1; }; }
1978         pwd)`
1979 # When building in place, set srcdir=.
1980 if test "$ac_abs_confdir" = "$ac_pwd"; then
1981   srcdir=.
1982 fi
1983 # Remove unnecessary trailing slashes from srcdir.
1984 # Double slashes in file names in object file debugging info
1985 # mess up M-x gdb in Emacs.
1986 case $srcdir in
1987 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1988 esac
1989 for ac_var in $ac_precious_vars; do
1990   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1991   eval ac_env_${ac_var}_value=\$${ac_var}
1992   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1993   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1994 done
1995
1996 #
1997 # Report the --help message.
1998 #
1999 if test "$ac_init_help" = "long"; then
2000   # Omit some internal or obsolete options to make the list less imposing.
2001   # This message is too long to be a string in the A/UX 3.1 sh.
2002   cat <<_ACEOF
2003 \`configure' configures GNU tar 1.26 to adapt to many kinds of systems.
2004
2005 Usage: $0 [OPTION]... [VAR=VALUE]...
2006
2007 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2008 VAR=VALUE.  See below for descriptions of some of the useful variables.
2009
2010 Defaults for the options are specified in brackets.
2011
2012 Configuration:
2013   -h, --help              display this help and exit
2014       --help=short        display options specific to this package
2015       --help=recursive    display the short help of all the included packages
2016   -V, --version           display version information and exit
2017   -q, --quiet, --silent   do not print \`checking...' messages
2018       --cache-file=FILE   cache test results in FILE [disabled]
2019   -C, --config-cache      alias for \`--cache-file=config.cache'
2020   -n, --no-create         do not create output files
2021       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2022
2023 Installation directories:
2024   --prefix=PREFIX         install architecture-independent files in PREFIX
2025                           [$ac_default_prefix]
2026   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2027                           [PREFIX]
2028
2029 By default, \`make install' will install all the files in
2030 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2031 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2032 for instance \`--prefix=\$HOME'.
2033
2034 For better control, use the options below.
2035
2036 Fine tuning of the installation directories:
2037   --bindir=DIR            user executables [EPREFIX/bin]
2038   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2039   --libexecdir=DIR        program executables [EPREFIX/libexec]
2040   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2041   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2042   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2043   --libdir=DIR            object code libraries [EPREFIX/lib]
2044   --includedir=DIR        C header files [PREFIX/include]
2045   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2046   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2047   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2048   --infodir=DIR           info documentation [DATAROOTDIR/info]
2049   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2050   --mandir=DIR            man documentation [DATAROOTDIR/man]
2051   --docdir=DIR            documentation root [DATAROOTDIR/doc/tar]
2052   --htmldir=DIR           html documentation [DOCDIR]
2053   --dvidir=DIR            dvi documentation [DOCDIR]
2054   --pdfdir=DIR            pdf documentation [DOCDIR]
2055   --psdir=DIR             ps documentation [DOCDIR]
2056 _ACEOF
2057
2058   cat <<\_ACEOF
2059
2060 Program names:
2061   --program-prefix=PREFIX            prepend PREFIX to installed program names
2062   --program-suffix=SUFFIX            append SUFFIX to installed program names
2063   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2064
2065 System types:
2066   --build=BUILD     configure for building on BUILD [guessed]
2067   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2068 _ACEOF
2069 fi
2070
2071 if test -n "$ac_init_help"; then
2072   case $ac_init_help in
2073      short | recursive ) echo "Configuration of GNU tar 1.26:";;
2074    esac
2075   cat <<\_ACEOF
2076
2077 Optional Features:
2078   --disable-option-checking  ignore unrecognized --enable/--with options
2079   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2080   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2081   --enable-silent-rules          less verbose build output (undo: `make V=1')
2082   --disable-silent-rules         verbose build output (undo: `make V=0')
2083   --disable-dependency-tracking  speeds up one-time build
2084   --enable-dependency-tracking   do not reject slow dependency extractors
2085   --disable-largefile     omit support for large files
2086   --disable-rpath         do not hardcode runtime library paths
2087   --disable-nls           do not use Native Language Support
2088   --enable-backup-scripts Create and install backup and restore scripts
2089
2090 Optional Packages:
2091   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2092   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2093   --without-included-regex
2094                           don't compile regex; this is the default on systems
2095                           with recent-enough versions of the GNU C Library
2096                           (use with caution on other systems).
2097   --with-packager         String identifying the packager of this software
2098   --with-packager-version Packager-specific version information
2099   --with-packager-bug-reports
2100                           Packager info for bug reports (URL/e-mail/...)
2101   --with-rmt=FILE         Use FILE as the default `rmt' program. Do not build
2102                           included copy of `rmt'.
2103   --with-compress=PROG    use PROG as compress compressor program
2104   --with-gzip=PROG        use PROG as gzip compressor program
2105   --with-bzip2=PROG       use PROG as bzip2 compressor program
2106   --with-lzip=PROG        use PROG as lzip compressor program
2107   --with-lzma=PROG        use PROG as lzma compressor program
2108   --with-lzop=PROG        use PROG as lzop compressor program
2109   --with-xz=PROG          use PROG as xz compressor program
2110   --with-gnu-ld           assume the C compiler uses GNU ld default=no
2111   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
2112   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
2113   --with-libintl-prefix[=DIR]  search for libintl in DIR/include and DIR/lib
2114   --without-libintl-prefix     don't search for libintl in includedir and libdir
2115
2116 Some influential environment variables:
2117   CC          C compiler command
2118   CFLAGS      C compiler flags
2119   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2120               nonstandard directory <lib dir>
2121   LIBS        libraries to pass to the linker, e.g. -l<library>
2122   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
2123               you have headers in a nonstandard directory <include dir>
2124   YACC        The `Yet Another C Compiler' implementation to use. Defaults to
2125               the first program found out of: `bison -y', `byacc', `yacc'.
2126   YFLAGS      The list of arguments that will be passed by default to $YACC.
2127               This script will default YFLAGS to the empty string to avoid a
2128               default value of `-d' given by some make applications.
2129   CPP         C preprocessor
2130   DEFAULT_RMT_DIR
2131               Define full file name of the directory where to install `rmt'.
2132               (default: $(libexecdir))
2133   DEFAULT_ARCHIVE_FORMAT
2134               Set the default archive format. Allowed values are: V7, OLDGNU,
2135               USTAR, POSIX, GNU. Default is GNU
2136   DEFAULT_ARCHIVE
2137               Set the name of the default archive (default: -)
2138   DEFAULT_BLOCKING
2139               Define default blocking factor (default: 20)
2140   DEFAULT_QUOTING_STYLE
2141               Set the default quoting style. Allowed values are: literal,
2142               shell, shell-always, c, escape, locale, clocale . Default is
2143               "escape".
2144
2145 Use these variables to override the choices made by `configure' or to help
2146 it to find libraries and programs with nonstandard names/locations.
2147
2148 Report bugs to <bug-tar@gnu.org>.
2149 _ACEOF
2150 ac_status=$?
2151 fi
2152
2153 if test "$ac_init_help" = "recursive"; then
2154   # If there are subdirs, report their specific --help.
2155   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2156     test -d "$ac_dir" ||
2157       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2158       continue
2159     ac_builddir=.
2160
2161 case "$ac_dir" in
2162 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2163 *)
2164   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2165   # A ".." for each directory in $ac_dir_suffix.
2166   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2167   case $ac_top_builddir_sub in
2168   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2169   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2170   esac ;;
2171 esac
2172 ac_abs_top_builddir=$ac_pwd
2173 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2174 # for backward compatibility:
2175 ac_top_builddir=$ac_top_build_prefix
2176
2177 case $srcdir in
2178   .)  # We are building in place.
2179     ac_srcdir=.
2180     ac_top_srcdir=$ac_top_builddir_sub
2181     ac_abs_top_srcdir=$ac_pwd ;;
2182   [\\/]* | ?:[\\/]* )  # Absolute name.
2183     ac_srcdir=$srcdir$ac_dir_suffix;
2184     ac_top_srcdir=$srcdir
2185     ac_abs_top_srcdir=$srcdir ;;
2186   *) # Relative name.
2187     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2188     ac_top_srcdir=$ac_top_build_prefix$srcdir
2189     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2190 esac
2191 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2192
2193     cd "$ac_dir" || { ac_status=$?; continue; }
2194     # Check for guested configure.
2195     if test -f "$ac_srcdir/configure.gnu"; then
2196       echo &&
2197       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2198     elif test -f "$ac_srcdir/configure"; then
2199       echo &&
2200       $SHELL "$ac_srcdir/configure" --help=recursive
2201     else
2202       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2203     fi || ac_status=$?
2204     cd "$ac_pwd" || { ac_status=$?; break; }
2205   done
2206 fi
2207
2208 test -n "$ac_init_help" && exit $ac_status
2209 if $ac_init_version; then
2210   cat <<\_ACEOF
2211 GNU tar configure 1.26
2212 generated by GNU Autoconf 2.63
2213
2214 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
2215 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
2216 This configure script is free software; the Free Software Foundation
2217 gives unlimited permission to copy, distribute and modify it.
2218 _ACEOF
2219   exit
2220 fi
2221 cat >config.log <<_ACEOF
2222 This file contains any messages produced by compilers while
2223 running configure, to aid debugging if configure makes a mistake.
2224
2225 It was created by GNU tar $as_me 1.26, which was
2226 generated by GNU Autoconf 2.63.  Invocation command line was
2227
2228   $ $0 $@
2229
2230 _ACEOF
2231 exec 5>>config.log
2232 {
2233 cat <<_ASUNAME
2234 ## --------- ##
2235 ## Platform. ##
2236 ## --------- ##
2237
2238 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2239 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2240 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2241 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2242 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2243
2244 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2245 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2246
2247 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2248 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2249 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2250 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2251 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2252 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2253 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2254
2255 _ASUNAME
2256
2257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2258 for as_dir in $PATH
2259 do
2260   IFS=$as_save_IFS
2261   test -z "$as_dir" && as_dir=.
2262   $as_echo "PATH: $as_dir"
2263 done
2264 IFS=$as_save_IFS
2265
2266 } >&5
2267
2268 cat >&5 <<_ACEOF
2269
2270
2271 ## ----------- ##
2272 ## Core tests. ##
2273 ## ----------- ##
2274
2275 _ACEOF
2276
2277
2278 # Keep a trace of the command line.
2279 # Strip out --no-create and --no-recursion so they do not pile up.
2280 # Strip out --silent because we don't want to record it for future runs.
2281 # Also quote any args containing shell meta-characters.
2282 # Make two passes to allow for proper duplicate-argument suppression.
2283 ac_configure_args=
2284 ac_configure_args0=
2285 ac_configure_args1=
2286 ac_must_keep_next=false
2287 for ac_pass in 1 2
2288 do
2289   for ac_arg
2290   do
2291     case $ac_arg in
2292     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2293     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2294     | -silent | --silent | --silen | --sile | --sil)
2295       continue ;;
2296     *\'*)
2297       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2298     esac
2299     case $ac_pass in
2300     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2301     2)
2302       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2303       if test $ac_must_keep_next = true; then
2304         ac_must_keep_next=false # Got value, back to normal.
2305       else
2306         case $ac_arg in
2307           *=* | --config-cache | -C | -disable-* | --disable-* \
2308           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2309           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2310           | -with-* | --with-* | -without-* | --without-* | --x)
2311             case "$ac_configure_args0 " in
2312               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2313             esac
2314             ;;
2315           -* ) ac_must_keep_next=true ;;
2316         esac
2317       fi
2318       ac_configure_args="$ac_configure_args '$ac_arg'"
2319       ;;
2320     esac
2321   done
2322 done
2323 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2324 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2325
2326 # When interrupted or exit'd, cleanup temporary files, and complete
2327 # config.log.  We remove comments because anyway the quotes in there
2328 # would cause problems or look ugly.
2329 # WARNING: Use '\'' to represent an apostrophe within the trap.
2330 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2331 trap 'exit_status=$?
2332   # Save into config.log some information that might help in debugging.
2333   {
2334     echo
2335
2336     cat <<\_ASBOX
2337 ## ---------------- ##
2338 ## Cache variables. ##
2339 ## ---------------- ##
2340 _ASBOX
2341     echo
2342     # The following way of writing the cache mishandles newlines in values,
2343 (
2344   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2345     eval ac_val=\$$ac_var
2346     case $ac_val in #(
2347     *${as_nl}*)
2348       case $ac_var in #(
2349       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
2350 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2351       esac
2352       case $ac_var in #(
2353       _ | IFS | as_nl) ;; #(
2354       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2355       *) $as_unset $ac_var ;;
2356       esac ;;
2357     esac
2358   done
2359   (set) 2>&1 |
2360     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2361     *${as_nl}ac_space=\ *)
2362       sed -n \
2363         "s/'\''/'\''\\\\'\'''\''/g;
2364           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2365       ;; #(
2366     *)
2367       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2368       ;;
2369     esac |
2370     sort
2371 )
2372     echo
2373
2374     cat <<\_ASBOX
2375 ## ----------------- ##
2376 ## Output variables. ##
2377 ## ----------------- ##
2378 _ASBOX
2379     echo
2380     for ac_var in $ac_subst_vars
2381     do
2382       eval ac_val=\$$ac_var
2383       case $ac_val in
2384       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2385       esac
2386       $as_echo "$ac_var='\''$ac_val'\''"
2387     done | sort
2388     echo
2389
2390     if test -n "$ac_subst_files"; then
2391       cat <<\_ASBOX
2392 ## ------------------- ##
2393 ## File substitutions. ##
2394 ## ------------------- ##
2395 _ASBOX
2396       echo
2397       for ac_var in $ac_subst_files
2398       do
2399         eval ac_val=\$$ac_var
2400         case $ac_val in
2401         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2402         esac
2403         $as_echo "$ac_var='\''$ac_val'\''"
2404       done | sort
2405       echo
2406     fi
2407
2408     if test -s confdefs.h; then
2409       cat <<\_ASBOX
2410 ## ----------- ##
2411 ## confdefs.h. ##
2412 ## ----------- ##
2413 _ASBOX
2414       echo
2415       cat confdefs.h
2416       echo
2417     fi
2418     test "$ac_signal" != 0 &&
2419       $as_echo "$as_me: caught signal $ac_signal"
2420     $as_echo "$as_me: exit $exit_status"
2421   } >&5
2422   rm -f core *.core core.conftest.* &&
2423     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2424     exit $exit_status
2425 ' 0
2426 for ac_signal in 1 2 13 15; do
2427   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2428 done
2429 ac_signal=0
2430
2431 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2432 rm -f -r conftest* confdefs.h
2433
2434 # Predefined preprocessor variables.
2435
2436 cat >>confdefs.h <<_ACEOF
2437 #define PACKAGE_NAME "$PACKAGE_NAME"
2438 _ACEOF
2439
2440
2441 cat >>confdefs.h <<_ACEOF
2442 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2443 _ACEOF
2444
2445
2446 cat >>confdefs.h <<_ACEOF
2447 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2448 _ACEOF
2449
2450
2451 cat >>confdefs.h <<_ACEOF
2452 #define PACKAGE_STRING "$PACKAGE_STRING"
2453 _ACEOF
2454
2455
2456 cat >>confdefs.h <<_ACEOF
2457 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2458 _ACEOF
2459
2460
2461 # Let the site file select an alternate cache file if it wants to.
2462 # Prefer an explicitly selected file to automatically selected ones.
2463 ac_site_file1=NONE
2464 ac_site_file2=NONE
2465 if test -n "$CONFIG_SITE"; then
2466   ac_site_file1=$CONFIG_SITE
2467 elif test "x$prefix" != xNONE; then
2468   ac_site_file1=$prefix/share/config.site
2469   ac_site_file2=$prefix/etc/config.site
2470 else
2471   ac_site_file1=$ac_default_prefix/share/config.site
2472   ac_site_file2=$ac_default_prefix/etc/config.site
2473 fi
2474 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2475 do
2476   test "x$ac_site_file" = xNONE && continue
2477   if test -r "$ac_site_file"; then
2478     { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2479 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2480     sed 's/^/| /' "$ac_site_file" >&5
2481     . "$ac_site_file"
2482   fi
2483 done
2484
2485 if test -r "$cache_file"; then
2486   # Some versions of bash will fail to source /dev/null (special
2487   # files actually), so we avoid doing that.
2488   if test -f "$cache_file"; then
2489     { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2490 $as_echo "$as_me: loading cache $cache_file" >&6;}
2491     case $cache_file in
2492       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2493       *)                      . "./$cache_file";;
2494     esac
2495   fi
2496 else
2497   { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2498 $as_echo "$as_me: creating cache $cache_file" >&6;}
2499   >$cache_file
2500 fi
2501
2502 ac_header_list="$ac_header_list fcntl.h"
2503 ac_header_list="$ac_header_list linux/fd.h"
2504 ac_header_list="$ac_header_list memory.h"
2505 ac_header_list="$ac_header_list net/errno.h"
2506 ac_header_list="$ac_header_list sgtty.h"
2507 ac_header_list="$ac_header_list string.h"
2508 ac_header_list="$ac_header_list sys/param.h"
2509 ac_header_list="$ac_header_list sys/device.h"
2510 ac_header_list="$ac_header_list sys/gentape.h"
2511 ac_header_list="$ac_header_list sys/inet.h"
2512 ac_header_list="$ac_header_list sys/io/trioctl.h"
2513 ac_header_list="$ac_header_list sys/mtio.h"
2514 ac_header_list="$ac_header_list sys/time.h"
2515 ac_header_list="$ac_header_list sys/tprintf.h"
2516 ac_header_list="$ac_header_list sys/tape.h"
2517 ac_header_list="$ac_header_list unistd.h"
2518 ac_header_list="$ac_header_list locale.h"
2519 ac_func_list="$ac_func_list flockfile"
2520 ac_func_list="$ac_func_list funlockfile"
2521 ac_header_list="$ac_header_list features.h"
2522 ac_header_list="$ac_header_list linewrap.h"
2523 ac_func_list="$ac_func_list pathconf"
2524 ac_func_list="$ac_func_list btowc"
2525 ac_func_list="$ac_func_list canonicalize_file_name"
2526 ac_func_list="$ac_func_list getcwd"
2527 ac_func_list="$ac_func_list readlink"
2528 ac_func_list="$ac_func_list realpath"
2529 ac_func_list="$ac_func_list chown"
2530 ac_func_list="$ac_func_list fchown"
2531 ac_header_list="$ac_header_list dirent.h"
2532 ac_func_list="$ac_func_list fdopendir"
2533 ac_func_list="$ac_func_list dup2"
2534 ac_func_list="$ac_func_list fcntl"
2535 ac_func_list="$ac_func_list fchdir"
2536 ac_func_list="$ac_func_list mempcpy"
2537 ac_func_list="$ac_func_list isblank"
2538 ac_func_list="$ac_func_list iswctype"
2539 ac_func_list="$ac_func_list mbsrtowcs"
2540 ac_func_list="$ac_func_list wmemchr"
2541 ac_func_list="$ac_func_list wmemcpy"
2542 ac_func_list="$ac_func_list wmempcpy"
2543 ac_header_list="$ac_header_list wctype.h"
2544 gl_fnmatch_required=GNU
2545 ac_header_list="$ac_header_list stdio_ext.h"
2546 ac_func_list="$ac_func_list __fpending"
2547 ac_func_list="$ac_func_list futimens"
2548 ac_func_list="$ac_func_list getdelim"
2549 ac_func_list="$ac_func_list getdtablesize"
2550 gl_getopt_required=GNU
2551 ac_header_list="$ac_header_list getopt.h"
2552 ac_func_list="$ac_func_list gettimeofday"
2553 ac_func_list="$ac_func_list nanotime"
2554 ac_header_list="$ac_header_list wchar.h"
2555 ac_header_list="$ac_header_list stdint.h"
2556 ac_header_list="$ac_header_list inttypes.h"
2557 ac_func_list="$ac_func_list iswcntrl"
2558 ac_func_list="$ac_func_list iswblank"
2559 ac_header_list="$ac_header_list langinfo.h"
2560 ac_func_list="$ac_func_list lchmod"
2561 ac_func_list="$ac_func_list link"
2562 ac_func_list="$ac_func_list linkat"
2563 ac_func_list="$ac_func_list symlink"
2564 ac_func_list="$ac_func_list lstat"
2565 ac_func_list="$ac_func_list mbsinit"
2566 ac_func_list="$ac_func_list mbrtowc"
2567 ac_header_list="$ac_header_list sys/mman.h"
2568 ac_func_list="$ac_func_list mprotect"
2569 ac_func_list="$ac_func_list memchr"
2570 ac_func_list="$ac_func_list mkfifo"
2571 ac_func_list="$ac_func_list mkfifoat"
2572 ac_func_list="$ac_func_list mknodat"
2573 ac_func_list="$ac_func_list mknod"
2574 ac_func_list="$ac_func_list alarm"
2575 ac_func_list="$ac_func_list nl_langinfo"
2576 ac_header_list="$ac_header_list priv.h"
2577 ac_func_list="$ac_func_list readlinkat"
2578 ac_func_list="$ac_func_list wcscoll"
2579 ac_func_list="$ac_func_list renameat"
2580 ac_func_list="$ac_func_list setenv"
2581 ac_func_list="$ac_func_list sleep"
2582 ac_func_list="$ac_func_list strdup"
2583 ac_header_list="$ac_header_list sys/socket.h"
2584 ac_header_list="$ac_header_list strings.h"
2585 ac_func_list="$ac_func_list strndup"
2586 ac_func_list="$ac_func_list symlinkat"
2587 ac_header_list="$ac_header_list sys/stat.h"
2588 ac_header_list="$ac_header_list sysexits.h"
2589 ac_func_list="$ac_func_list localtime_r"
2590 ac_func_list="$ac_func_list pipe"
2591 ac_header_list="$ac_header_list utime.h"
2592 ac_func_list="$ac_func_list futimes"
2593 ac_func_list="$ac_func_list futimesat"
2594 ac_func_list="$ac_func_list utimensat"
2595 ac_func_list="$ac_func_list lutimes"
2596 ac_func_list="$ac_func_list vasnprintf"
2597 ac_func_list="$ac_func_list wcrtomb"
2598 ac_func_list="$ac_func_list wcwidth"
2599 ac_header_list="$ac_header_list netdb.h"
2600 ac_header_list="$ac_header_list sys/wait.h"
2601 ac_header_list="$ac_header_list pwd.h"
2602 ac_header_list="$ac_header_list grp.h"
2603 ac_func_list="$ac_func_list setlocale"
2604 ac_func_list="$ac_func_list fchmod"
2605 ac_func_list="$ac_func_list fsync"
2606 gt_needs="$gt_needs need-formatstring-macros"
2607 # Check that the precious variables saved in the cache have kept the same
2608 # value.
2609 ac_cache_corrupted=false
2610 for ac_var in $ac_precious_vars; do
2611   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2612   eval ac_new_set=\$ac_env_${ac_var}_set
2613   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2614   eval ac_new_val=\$ac_env_${ac_var}_value
2615   case $ac_old_set,$ac_new_set in
2616     set,)
2617       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2618 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2619       ac_cache_corrupted=: ;;
2620     ,set)
2621       { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2622 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2623       ac_cache_corrupted=: ;;
2624     ,);;
2625     *)
2626       if test "x$ac_old_val" != "x$ac_new_val"; then
2627         # differences in whitespace do not lead to failure.
2628         ac_old_val_w=`echo x $ac_old_val`
2629         ac_new_val_w=`echo x $ac_new_val`
2630         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2631           { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2632 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2633           ac_cache_corrupted=:
2634         else
2635           { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2636 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2637           eval $ac_var=\$ac_old_val
2638         fi
2639         { $as_echo "$as_me:$LINENO:   former value:  \`$ac_old_val'" >&5
2640 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2641         { $as_echo "$as_me:$LINENO:   current value: \`$ac_new_val'" >&5
2642 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2643       fi;;
2644   esac
2645   # Pass precious variables to config.status.
2646   if test "$ac_new_set" = set; then
2647     case $ac_new_val in
2648     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2649     *) ac_arg=$ac_var=$ac_new_val ;;
2650     esac
2651     case " $ac_configure_args " in
2652       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2653       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2654     esac
2655   fi
2656 done
2657 if $ac_cache_corrupted; then
2658   { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2660   { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2661 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2662   { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2663 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2664    { (exit 1); exit 1; }; }
2665 fi
2666
2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
2679
2680
2681
2682
2683
2684
2685
2686
2687
2688
2689
2690
2691 ac_ext=c
2692 ac_cpp='$CPP $CPPFLAGS'
2693 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2694 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2695 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2696
2697
2698
2699 ac_aux_dir=
2700 for ac_dir in build-aux "$srcdir"/build-aux; do
2701   if test -f "$ac_dir/install-sh"; then
2702     ac_aux_dir=$ac_dir
2703     ac_install_sh="$ac_aux_dir/install-sh -c"
2704     break
2705   elif test -f "$ac_dir/install.sh"; then
2706     ac_aux_dir=$ac_dir
2707     ac_install_sh="$ac_aux_dir/install.sh -c"
2708     break
2709   elif test -f "$ac_dir/shtool"; then
2710     ac_aux_dir=$ac_dir
2711     ac_install_sh="$ac_aux_dir/shtool install -c"
2712     break
2713   fi
2714 done
2715 if test -z "$ac_aux_dir"; then
2716   { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2717 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2718    { (exit 1); exit 1; }; }
2719 fi
2720
2721 # These three variables are undocumented and unsupported,
2722 # and are intended to be withdrawn in a future Autoconf release.
2723 # They can cause serious problems if a builder's source tree is in a directory
2724 # whose full name contains unusual characters.
2725 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2726 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2727 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2728
2729
2730 ac_config_headers="$ac_config_headers config.h"
2731
2732
2733 am__api_version='1.11'
2734
2735 # Find a good install program.  We prefer a C program (faster),
2736 # so one script is as good as another.  But avoid the broken or
2737 # incompatible versions:
2738 # SysV /etc/install, /usr/sbin/install
2739 # SunOS /usr/etc/install
2740 # IRIX /sbin/install
2741 # AIX /bin/install
2742 # AmigaOS /C/install, which installs bootblocks on floppy discs
2743 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2744 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2745 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2746 # OS/2's system install, which has a completely different semantic
2747 # ./install, which can be erroneously created by make from ./install.sh.
2748 # Reject install programs that cannot install multiple files.
2749 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2750 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2751 if test -z "$INSTALL"; then
2752 if test "${ac_cv_path_install+set}" = set; then
2753   $as_echo_n "(cached) " >&6
2754 else
2755   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2756 for as_dir in $PATH
2757 do
2758   IFS=$as_save_IFS
2759   test -z "$as_dir" && as_dir=.
2760   # Account for people who put trailing slashes in PATH elements.
2761 case $as_dir/ in
2762   ./ | .// | /cC/* | \
2763   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2764   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2765   /usr/ucb/* ) ;;
2766   *)
2767     # OSF1 and SCO ODT 3.0 have their own names for install.
2768     # Don't use installbsd from OSF since it installs stuff as root
2769     # by default.
2770     for ac_prog in ginstall scoinst install; do
2771       for ac_exec_ext in '' $ac_executable_extensions; do
2772         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2773           if test $ac_prog = install &&
2774             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2775             # AIX install.  It has an incompatible calling convention.
2776             :
2777           elif test $ac_prog = install &&
2778             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2779             # program-specific install script used by HP pwplus--don't use.
2780             :
2781           else
2782             rm -rf conftest.one conftest.two conftest.dir
2783             echo one > conftest.one
2784             echo two > conftest.two
2785             mkdir conftest.dir
2786             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2787               test -s conftest.one && test -s conftest.two &&
2788               test -s conftest.dir/conftest.one &&
2789               test -s conftest.dir/conftest.two
2790             then
2791               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2792               break 3
2793             fi
2794           fi
2795         fi
2796       done
2797     done
2798     ;;
2799 esac
2800
2801 done
2802 IFS=$as_save_IFS
2803
2804 rm -rf conftest.one conftest.two conftest.dir
2805
2806 fi
2807   if test "${ac_cv_path_install+set}" = set; then
2808     INSTALL=$ac_cv_path_install
2809   else
2810     # As a last resort, use the slow shell script.  Don't cache a
2811     # value for INSTALL within a source directory, because that will
2812     # break other packages using the cache if that directory is
2813     # removed, or if the value is a relative name.
2814     INSTALL=$ac_install_sh
2815   fi
2816 fi
2817 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2818 $as_echo "$INSTALL" >&6; }
2819
2820 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2821 # It thinks the first close brace ends the variable substitution.
2822 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2823
2824 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2825
2826 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2827
2828 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2829 $as_echo_n "checking whether build environment is sane... " >&6; }
2830 # Just in case
2831 sleep 1
2832 echo timestamp > conftest.file
2833 # Reject unsafe characters in $srcdir or the absolute working directory
2834 # name.  Accept space and tab only in the latter.
2835 am_lf='
2836 '
2837 case `pwd` in
2838   *[\\\"\#\$\&\'\`$am_lf]*)
2839     { { $as_echo "$as_me:$LINENO: error: unsafe absolute working directory name" >&5
2840 $as_echo "$as_me: error: unsafe absolute working directory name" >&2;}
2841    { (exit 1); exit 1; }; };;
2842 esac
2843 case $srcdir in
2844   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
2845     { { $as_echo "$as_me:$LINENO: error: unsafe srcdir value: \`$srcdir'" >&5
2846 $as_echo "$as_me: error: unsafe srcdir value: \`$srcdir'" >&2;}
2847    { (exit 1); exit 1; }; };;
2848 esac
2849
2850 # Do `set' in a subshell so we don't clobber the current shell's
2851 # arguments.  Must try -L first in case configure is actually a
2852 # symlink; some systems play weird games with the mod time of symlinks
2853 # (eg FreeBSD returns the mod time of the symlink's containing
2854 # directory).
2855 if (
2856    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2857    if test "$*" = "X"; then
2858       # -L didn't work.
2859       set X `ls -t "$srcdir/configure" conftest.file`
2860    fi
2861    rm -f conftest.file
2862    if test "$*" != "X $srcdir/configure conftest.file" \
2863       && test "$*" != "X conftest.file $srcdir/configure"; then
2864
2865       # If neither matched, then we have a broken ls.  This can happen
2866       # if, for instance, CONFIG_SHELL is bash and it inherits a
2867       # broken ls alias from the environment.  This has actually
2868       # happened.  Such a system could not be considered "sane".
2869       { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2870 alias in your environment" >&5
2871 $as_echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2872 alias in your environment" >&2;}
2873    { (exit 1); exit 1; }; }
2874    fi
2875
2876    test "$2" = conftest.file
2877    )
2878 then
2879    # Ok.
2880    :
2881 else
2882    { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2883 Check your system clock" >&5
2884 $as_echo "$as_me: error: newly created file is older than distributed files!
2885 Check your system clock" >&2;}
2886    { (exit 1); exit 1; }; }
2887 fi
2888 { $as_echo "$as_me:$LINENO: result: yes" >&5
2889 $as_echo "yes" >&6; }
2890 test "$program_prefix" != NONE &&
2891   program_transform_name="s&^&$program_prefix&;$program_transform_name"
2892 # Use a double $ so make ignores it.
2893 test "$program_suffix" != NONE &&
2894   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2895 # Double any \ or $.
2896 # By default was `s,x,x', remove it if useless.
2897 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2898 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2899
2900 # expand $ac_aux_dir to an absolute path
2901 am_aux_dir=`cd $ac_aux_dir && pwd`
2902
2903 if test x"${MISSING+set}" != xset; then
2904   case $am_aux_dir in
2905   *\ * | *\     *)
2906     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2907   *)
2908     MISSING="\${SHELL} $am_aux_dir/missing" ;;
2909   esac
2910 fi
2911 # Use eval to expand $SHELL
2912 if eval "$MISSING --run true"; then
2913   am_missing_run="$MISSING --run "
2914 else
2915   am_missing_run=
2916   { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2917 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2918 fi
2919
2920 if test x"${install_sh}" != xset; then
2921   case $am_aux_dir in
2922   *\ * | *\     *)
2923     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2924   *)
2925     install_sh="\${SHELL} $am_aux_dir/install-sh"
2926   esac
2927 fi
2928
2929 # Installed binaries are usually stripped using `strip' when the user
2930 # run `make install-strip'.  However `strip' might not be the right
2931 # tool to use in cross-compilation environments, therefore Automake
2932 # will honor the `STRIP' environment variable to overrule this program.
2933 if test "$cross_compiling" != no; then
2934   if test -n "$ac_tool_prefix"; then
2935   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2936 set dummy ${ac_tool_prefix}strip; ac_word=$2
2937 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if test "${ac_cv_prog_STRIP+set}" = set; then
2940   $as_echo_n "(cached) " >&6
2941 else
2942   if test -n "$STRIP"; then
2943   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948   IFS=$as_save_IFS
2949   test -z "$as_dir" && as_dir=.
2950   for ac_exec_ext in '' $ac_executable_extensions; do
2951   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2952     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2953     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2954     break 2
2955   fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 STRIP=$ac_cv_prog_STRIP
2963 if test -n "$STRIP"; then
2964   { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2965 $as_echo "$STRIP" >&6; }
2966 else
2967   { $as_echo "$as_me:$LINENO: result: no" >&5
2968 $as_echo "no" >&6; }
2969 fi
2970
2971
2972 fi
2973 if test -z "$ac_cv_prog_STRIP"; then
2974   ac_ct_STRIP=$STRIP
2975   # Extract the first word of "strip", so it can be a program name with args.
2976 set dummy strip; ac_word=$2
2977 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2978 $as_echo_n "checking for $ac_word... " >&6; }
2979 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2980   $as_echo_n "(cached) " >&6
2981 else
2982   if test -n "$ac_ct_STRIP"; then
2983   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2984 else
2985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2986 for as_dir in $PATH
2987 do
2988   IFS=$as_save_IFS
2989   test -z "$as_dir" && as_dir=.
2990   for ac_exec_ext in '' $ac_executable_extensions; do
2991   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2992     ac_cv_prog_ac_ct_STRIP="strip"
2993     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2994     break 2
2995   fi
2996 done
2997 done
2998 IFS=$as_save_IFS
2999
3000 fi
3001 fi
3002 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3003 if test -n "$ac_ct_STRIP"; then
3004   { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3005 $as_echo "$ac_ct_STRIP" >&6; }
3006 else
3007   { $as_echo "$as_me:$LINENO: result: no" >&5
3008 $as_echo "no" >&6; }
3009 fi
3010
3011   if test "x$ac_ct_STRIP" = x; then
3012     STRIP=":"
3013   else
3014     case $cross_compiling:$ac_tool_warned in
3015 yes:)
3016 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3017 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3018 ac_tool_warned=yes ;;
3019 esac
3020     STRIP=$ac_ct_STRIP
3021   fi
3022 else
3023   STRIP="$ac_cv_prog_STRIP"
3024 fi
3025
3026 fi
3027 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3028
3029 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
3030 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3031 if test -z "$MKDIR_P"; then
3032   if test "${ac_cv_path_mkdir+set}" = set; then
3033   $as_echo_n "(cached) " >&6
3034 else
3035   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3036 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3037 do
3038   IFS=$as_save_IFS
3039   test -z "$as_dir" && as_dir=.
3040   for ac_prog in mkdir gmkdir; do
3041          for ac_exec_ext in '' $ac_executable_extensions; do
3042            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3043            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3044              'mkdir (GNU coreutils) '* | \
3045              'mkdir (coreutils) '* | \
3046              'mkdir (fileutils) '4.1*)
3047                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3048                break 3;;
3049            esac
3050          done
3051        done
3052 done
3053 IFS=$as_save_IFS
3054
3055 fi
3056
3057   if test "${ac_cv_path_mkdir+set}" = set; then
3058     MKDIR_P="$ac_cv_path_mkdir -p"
3059   else
3060     # As a last resort, use the slow shell script.  Don't cache a
3061     # value for MKDIR_P within a source directory, because that will
3062     # break other packages using the cache if that directory is
3063     # removed, or if the value is a relative name.
3064     test -d ./--version && rmdir ./--version
3065     MKDIR_P="$ac_install_sh -d"
3066   fi
3067 fi
3068 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
3069 $as_echo "$MKDIR_P" >&6; }
3070
3071
3072 mkdir_p="$MKDIR_P"
3073 case $mkdir_p in
3074   [\\/$]* | ?:[\\/]*) ;;
3075   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3076 esac
3077
3078 for ac_prog in gawk mawk nawk awk
3079 do
3080   # Extract the first word of "$ac_prog", so it can be a program name with args.
3081 set dummy $ac_prog; ac_word=$2
3082 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3083 $as_echo_n "checking for $ac_word... " >&6; }
3084 if test "${ac_cv_prog_AWK+set}" = set; then
3085   $as_echo_n "(cached) " >&6
3086 else
3087   if test -n "$AWK"; then
3088   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3089 else
3090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091 for as_dir in $PATH
3092 do
3093   IFS=$as_save_IFS
3094   test -z "$as_dir" && as_dir=.
3095   for ac_exec_ext in '' $ac_executable_extensions; do
3096   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3097     ac_cv_prog_AWK="$ac_prog"
3098     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099     break 2
3100   fi
3101 done
3102 done
3103 IFS=$as_save_IFS
3104
3105 fi
3106 fi
3107 AWK=$ac_cv_prog_AWK
3108 if test -n "$AWK"; then
3109   { $as_echo "$as_me:$LINENO: result: $AWK" >&5
3110 $as_echo "$AWK" >&6; }
3111 else
3112   { $as_echo "$as_me:$LINENO: result: no" >&5
3113 $as_echo "no" >&6; }
3114 fi
3115
3116
3117   test -n "$AWK" && break
3118 done
3119
3120 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3121 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3122 set x ${MAKE-make}
3123 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3124 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
3125   $as_echo_n "(cached) " >&6
3126 else
3127   cat >conftest.make <<\_ACEOF
3128 SHELL = /bin/sh
3129 all:
3130         @echo '@@@%%%=$(MAKE)=@@@%%%'
3131 _ACEOF
3132 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3133 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3134   *@@@%%%=?*=@@@%%%*)
3135     eval ac_cv_prog_make_${ac_make}_set=yes;;
3136   *)
3137     eval ac_cv_prog_make_${ac_make}_set=no;;
3138 esac
3139 rm -f conftest.make
3140 fi
3141 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3142   { $as_echo "$as_me:$LINENO: result: yes" >&5
3143 $as_echo "yes" >&6; }
3144   SET_MAKE=
3145 else
3146   { $as_echo "$as_me:$LINENO: result: no" >&5
3147 $as_echo "no" >&6; }
3148   SET_MAKE="MAKE=${MAKE-make}"
3149 fi
3150
3151 rm -rf .tst 2>/dev/null
3152 mkdir .tst 2>/dev/null
3153 if test -d .tst; then
3154   am__leading_dot=.
3155 else
3156   am__leading_dot=_
3157 fi
3158 rmdir .tst 2>/dev/null
3159
3160 # Check whether --enable-silent-rules was given.
3161 if test "${enable_silent_rules+set}" = set; then
3162   enableval=$enable_silent_rules;
3163 fi
3164
3165 case $enable_silent_rules in
3166 yes) AM_DEFAULT_VERBOSITY=0;;
3167 no)  AM_DEFAULT_VERBOSITY=1;;
3168 *)   AM_DEFAULT_VERBOSITY=1;;
3169 esac
3170 AM_BACKSLASH='\'
3171
3172 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3173   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3174   # is not polluted with repeated "-I."
3175   am__isrc=' -I$(srcdir)'
3176   # test to see if srcdir already configured
3177   if test -f $srcdir/config.status; then
3178     { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3179 $as_echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3180    { (exit 1); exit 1; }; }
3181   fi
3182 fi
3183
3184 # test whether we have cygpath
3185 if test -z "$CYGPATH_W"; then
3186   if (cygpath --version) >/dev/null 2>/dev/null; then
3187     CYGPATH_W='cygpath -w'
3188   else
3189     CYGPATH_W=echo
3190   fi
3191 fi
3192
3193
3194 # Define the identity of the package.
3195  PACKAGE='tar'
3196  VERSION='1.26'
3197
3198
3199 cat >>confdefs.h <<_ACEOF
3200 #define PACKAGE "$PACKAGE"
3201 _ACEOF
3202
3203
3204 cat >>confdefs.h <<_ACEOF
3205 #define VERSION "$VERSION"
3206 _ACEOF
3207
3208 # Some tools Automake needs.
3209
3210 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3211
3212
3213 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3214
3215
3216 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3217
3218
3219 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3220
3221
3222 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3223
3224 # We need awk for the "check" target.  The system "awk" is bad on
3225 # some platforms.
3226 # Always define AMTAR for backward compatibility.
3227
3228 AMTAR=${AMTAR-"${am_missing_run}tar"}
3229
3230
3231 { $as_echo "$as_me:$LINENO: checking how to create a ustar tar archive" >&5
3232 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3233 # Loop over all known methods to create a tar archive until one works.
3234 _am_tools='gnutar plaintar pax cpio none'
3235 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3236 # Do not fold the above two line into one, because Tru64 sh and
3237 # Solaris sh will not grok spaces in the rhs of `-'.
3238 for _am_tool in $_am_tools
3239 do
3240   case $_am_tool in
3241   gnutar)
3242     for _am_tar in tar gnutar gtar;
3243     do
3244       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3245    ($_am_tar --version) >&5 2>&5
3246    ac_status=$?
3247    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3248    (exit $ac_status); } && break
3249     done
3250     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3251     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3252     am__untar="$_am_tar -xf -"
3253     ;;
3254   plaintar)
3255     # Must skip GNU tar: if it does not support --format= it doesn't create
3256     # ustar tarball either.
3257     (tar --version) >/dev/null 2>&1 && continue
3258     am__tar='tar chf - "$$tardir"'
3259     am__tar_='tar chf - "$tardir"'
3260     am__untar='tar xf -'
3261     ;;
3262   pax)
3263     am__tar='pax -L -x ustar -w "$$tardir"'
3264     am__tar_='pax -L -x ustar -w "$tardir"'
3265     am__untar='pax -r'
3266     ;;
3267   cpio)
3268     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3269     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3270     am__untar='cpio -i -H ustar -d'
3271     ;;
3272   none)
3273     am__tar=false
3274     am__tar_=false
3275     am__untar=false
3276     ;;
3277   esac
3278
3279   # If the value was cached, stop now.  We just wanted to have am__tar
3280   # and am__untar set.
3281   test -n "${am_cv_prog_tar_ustar}" && break
3282
3283   # tar/untar a dummy directory, and stop if the command works
3284   rm -rf conftest.dir
3285   mkdir conftest.dir
3286   echo GrepMe > conftest.dir/file
3287   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3288    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3289    ac_status=$?
3290    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291    (exit $ac_status); }
3292   rm -rf conftest.dir
3293   if test -s conftest.tar; then
3294     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3295    ($am__untar <conftest.tar) >&5 2>&5
3296    ac_status=$?
3297    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298    (exit $ac_status); }
3299     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3300   fi
3301 done
3302 rm -rf conftest.dir
3303
3304 if test "${am_cv_prog_tar_ustar+set}" = set; then
3305   $as_echo_n "(cached) " >&6
3306 else
3307   am_cv_prog_tar_ustar=$_am_tool
3308 fi
3309
3310 { $as_echo "$as_me:$LINENO: result: $am_cv_prog_tar_ustar" >&5
3311 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3312
3313
3314
3315
3316
3317
3318 # Enable silent rules by default:
3319 # Check whether --enable-silent-rules was given.
3320 if test "${enable_silent_rules+set}" = set; then
3321   enableval=$enable_silent_rules;
3322 fi
3323
3324 case $enable_silent_rules in
3325 yes) AM_DEFAULT_VERBOSITY=0;;
3326 no)  AM_DEFAULT_VERBOSITY=1;;
3327 *)   AM_DEFAULT_VERBOSITY=0;;
3328 esac
3329 AM_BACKSLASH='\'
3330
3331
3332 ac_ext=c
3333 ac_cpp='$CPP $CPPFLAGS'
3334 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3335 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3336 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3337 if test -n "$ac_tool_prefix"; then
3338   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3339 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3340 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3341 $as_echo_n "checking for $ac_word... " >&6; }
3342 if test "${ac_cv_prog_CC+set}" = set; then
3343   $as_echo_n "(cached) " >&6
3344 else
3345   if test -n "$CC"; then
3346   ac_cv_prog_CC="$CC" # Let the user override the test.
3347 else
3348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3349 for as_dir in $PATH
3350 do
3351   IFS=$as_save_IFS
3352   test -z "$as_dir" && as_dir=.
3353   for ac_exec_ext in '' $ac_executable_extensions; do
3354   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3355     ac_cv_prog_CC="${ac_tool_prefix}gcc"
3356     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3357     break 2
3358   fi
3359 done
3360 done
3361 IFS=$as_save_IFS
3362
3363 fi
3364 fi
3365 CC=$ac_cv_prog_CC
3366 if test -n "$CC"; then
3367   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3368 $as_echo "$CC" >&6; }
3369 else
3370   { $as_echo "$as_me:$LINENO: result: no" >&5
3371 $as_echo "no" >&6; }
3372 fi
3373
3374
3375 fi
3376 if test -z "$ac_cv_prog_CC"; then
3377   ac_ct_CC=$CC
3378   # Extract the first word of "gcc", so it can be a program name with args.
3379 set dummy gcc; ac_word=$2
3380 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 $as_echo_n "checking for $ac_word... " >&6; }
3382 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3383   $as_echo_n "(cached) " >&6
3384 else
3385   if test -n "$ac_ct_CC"; then
3386   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391   IFS=$as_save_IFS
3392   test -z "$as_dir" && as_dir=.
3393   for ac_exec_ext in '' $ac_executable_extensions; do
3394   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395     ac_cv_prog_ac_ct_CC="gcc"
3396     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397     break 2
3398   fi
3399 done
3400 done
3401 IFS=$as_save_IFS
3402
3403 fi
3404 fi
3405 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3406 if test -n "$ac_ct_CC"; then
3407   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3408 $as_echo "$ac_ct_CC" >&6; }
3409 else
3410   { $as_echo "$as_me:$LINENO: result: no" >&5
3411 $as_echo "no" >&6; }
3412 fi
3413
3414   if test "x$ac_ct_CC" = x; then
3415     CC=""
3416   else
3417     case $cross_compiling:$ac_tool_warned in
3418 yes:)
3419 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3420 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3421 ac_tool_warned=yes ;;
3422 esac
3423     CC=$ac_ct_CC
3424   fi
3425 else
3426   CC="$ac_cv_prog_CC"
3427 fi
3428
3429 if test -z "$CC"; then
3430           if test -n "$ac_tool_prefix"; then
3431     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3432 set dummy ${ac_tool_prefix}cc; ac_word=$2
3433 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 $as_echo_n "checking for $ac_word... " >&6; }
3435 if test "${ac_cv_prog_CC+set}" = set; then
3436   $as_echo_n "(cached) " >&6
3437 else
3438   if test -n "$CC"; then
3439   ac_cv_prog_CC="$CC" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444   IFS=$as_save_IFS
3445   test -z "$as_dir" && as_dir=.
3446   for ac_exec_ext in '' $ac_executable_extensions; do
3447   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3448     ac_cv_prog_CC="${ac_tool_prefix}cc"
3449     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450     break 2
3451   fi
3452 done
3453 done
3454 IFS=$as_save_IFS
3455
3456 fi
3457 fi
3458 CC=$ac_cv_prog_CC
3459 if test -n "$CC"; then
3460   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3461 $as_echo "$CC" >&6; }
3462 else
3463   { $as_echo "$as_me:$LINENO: result: no" >&5
3464 $as_echo "no" >&6; }
3465 fi
3466
3467
3468   fi
3469 fi
3470 if test -z "$CC"; then
3471   # Extract the first word of "cc", so it can be a program name with args.
3472 set dummy cc; ac_word=$2
3473 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3474 $as_echo_n "checking for $ac_word... " >&6; }
3475 if test "${ac_cv_prog_CC+set}" = set; then
3476   $as_echo_n "(cached) " >&6
3477 else
3478   if test -n "$CC"; then
3479   ac_cv_prog_CC="$CC" # Let the user override the test.
3480 else
3481   ac_prog_rejected=no
3482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3483 for as_dir in $PATH
3484 do
3485   IFS=$as_save_IFS
3486   test -z "$as_dir" && as_dir=.
3487   for ac_exec_ext in '' $ac_executable_extensions; do
3488   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3489     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3490        ac_prog_rejected=yes
3491        continue
3492      fi
3493     ac_cv_prog_CC="cc"
3494     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3495     break 2
3496   fi
3497 done
3498 done
3499 IFS=$as_save_IFS
3500
3501 if test $ac_prog_rejected = yes; then
3502   # We found a bogon in the path, so make sure we never use it.
3503   set dummy $ac_cv_prog_CC
3504   shift
3505   if test $# != 0; then
3506     # We chose a different compiler from the bogus one.
3507     # However, it has the same basename, so the bogon will be chosen
3508     # first if we set CC to just the basename; use the full file name.
3509     shift
3510     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3511   fi
3512 fi
3513 fi
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3518 $as_echo "$CC" >&6; }
3519 else
3520   { $as_echo "$as_me:$LINENO: result: no" >&5
3521 $as_echo "no" >&6; }
3522 fi
3523
3524
3525 fi
3526 if test -z "$CC"; then
3527   if test -n "$ac_tool_prefix"; then
3528   for ac_prog in cl.exe
3529   do
3530     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3531 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3532 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3533 $as_echo_n "checking for $ac_word... " >&6; }
3534 if test "${ac_cv_prog_CC+set}" = set; then
3535   $as_echo_n "(cached) " >&6
3536 else
3537   if test -n "$CC"; then
3538   ac_cv_prog_CC="$CC" # Let the user override the test.
3539 else
3540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3541 for as_dir in $PATH
3542 do
3543   IFS=$as_save_IFS
3544   test -z "$as_dir" && as_dir=.
3545   for ac_exec_ext in '' $ac_executable_extensions; do
3546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3547     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3548     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3549     break 2
3550   fi
3551 done
3552 done
3553 IFS=$as_save_IFS
3554
3555 fi
3556 fi
3557 CC=$ac_cv_prog_CC
3558 if test -n "$CC"; then
3559   { $as_echo "$as_me:$LINENO: result: $CC" >&5
3560 $as_echo "$CC" >&6; }
3561 else
3562   { $as_echo "$as_me:$LINENO: result: no" >&5
3563 $as_echo "no" >&6; }
3564 fi
3565
3566
3567     test -n "$CC" && break
3568   done
3569 fi
3570 if test -z "$CC"; then
3571   ac_ct_CC=$CC
3572   for ac_prog in cl.exe
3573 do
3574   # Extract the first word of "$ac_prog", so it can be a program name with args.
3575 set dummy $ac_prog; ac_word=$2
3576 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3579   $as_echo_n "(cached) " >&6
3580 else
3581   if test -n "$ac_ct_CC"; then
3582   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3583 else
3584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 for as_dir in $PATH
3586 do
3587   IFS=$as_save_IFS
3588   test -z "$as_dir" && as_dir=.
3589   for ac_exec_ext in '' $ac_executable_extensions; do
3590   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3591     ac_cv_prog_ac_ct_CC="$ac_prog"
3592     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3593     break 2
3594   fi
3595 done
3596 done
3597 IFS=$as_save_IFS
3598
3599 fi
3600 fi
3601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3602 if test -n "$ac_ct_CC"; then
3603   { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3604 $as_echo "$ac_ct_CC" >&6; }
3605 else
3606   { $as_echo "$as_me:$LINENO: result: no" >&5
3607 $as_echo "no" >&6; }
3608 fi
3609
3610
3611   test -n "$ac_ct_CC" && break
3612 done
3613
3614   if test "x$ac_ct_CC" = x; then
3615     CC=""
3616   else
3617     case $cross_compiling:$ac_tool_warned in
3618 yes:)
3619 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3621 ac_tool_warned=yes ;;
3622 esac
3623     CC=$ac_ct_CC
3624   fi
3625 fi
3626
3627 fi
3628
3629
3630 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3633 See \`config.log' for more details." >&5
3634 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3635 See \`config.log' for more details." >&2;}
3636    { (exit 1); exit 1; }; }; }
3637
3638 # Provide some information about the compiler.
3639 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3640 set X $ac_compile
3641 ac_compiler=$2
3642 { (ac_try="$ac_compiler --version >&5"
3643 case "(($ac_try" in
3644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645   *) ac_try_echo=$ac_try;;
3646 esac
3647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3648 $as_echo "$ac_try_echo") >&5
3649   (eval "$ac_compiler --version >&5") 2>&5
3650   ac_status=$?
3651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652   (exit $ac_status); }
3653 { (ac_try="$ac_compiler -v >&5"
3654 case "(($ac_try" in
3655   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656   *) ac_try_echo=$ac_try;;
3657 esac
3658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3659 $as_echo "$ac_try_echo") >&5
3660   (eval "$ac_compiler -v >&5") 2>&5
3661   ac_status=$?
3662   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3663   (exit $ac_status); }
3664 { (ac_try="$ac_compiler -V >&5"
3665 case "(($ac_try" in
3666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3667   *) ac_try_echo=$ac_try;;
3668 esac
3669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3670 $as_echo "$ac_try_echo") >&5
3671   (eval "$ac_compiler -V >&5") 2>&5
3672   ac_status=$?
3673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); }
3675
3676 cat >conftest.$ac_ext <<_ACEOF
3677 /* confdefs.h.  */
3678 _ACEOF
3679 cat confdefs.h >>conftest.$ac_ext
3680 cat >>conftest.$ac_ext <<_ACEOF
3681 /* end confdefs.h.  */
3682
3683 int
3684 main ()
3685 {
3686
3687   ;
3688   return 0;
3689 }
3690 _ACEOF
3691 ac_clean_files_save=$ac_clean_files
3692 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3693 # Try to create an executable without -o first, disregard a.out.
3694 # It will help us diagnose broken compilers, and finding out an intuition
3695 # of exeext.
3696 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3697 $as_echo_n "checking for C compiler default output file name... " >&6; }
3698 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3699
3700 # The possible output files:
3701 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3702
3703 ac_rmfiles=
3704 for ac_file in $ac_files
3705 do
3706   case $ac_file in
3707     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3708     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3709   esac
3710 done
3711 rm -f $ac_rmfiles
3712
3713 if { (ac_try="$ac_link_default"
3714 case "(($ac_try" in
3715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3716   *) ac_try_echo=$ac_try;;
3717 esac
3718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3719 $as_echo "$ac_try_echo") >&5
3720   (eval "$ac_link_default") 2>&5
3721   ac_status=$?
3722   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); }; then
3724   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3725 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3726 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3727 # so that the user can short-circuit this test for compilers unknown to
3728 # Autoconf.
3729 for ac_file in $ac_files ''
3730 do
3731   test -f "$ac_file" || continue
3732   case $ac_file in
3733     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3734         ;;
3735     [ab].out )
3736         # We found the default executable, but exeext='' is most
3737         # certainly right.
3738         break;;
3739     *.* )
3740         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3741         then :; else
3742            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3743         fi
3744         # We set ac_cv_exeext here because the later test for it is not
3745         # safe: cross compilers may not add the suffix if given an `-o'
3746         # argument, so we may need to know it at that point already.
3747         # Even if this section looks crufty: it has the advantage of
3748         # actually working.
3749         break;;
3750     * )
3751         break;;
3752   esac
3753 done
3754 test "$ac_cv_exeext" = no && ac_cv_exeext=
3755
3756 else
3757   ac_file=''
3758 fi
3759
3760 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3761 $as_echo "$ac_file" >&6; }
3762 if test -z "$ac_file"; then
3763   $as_echo "$as_me: failed program was:" >&5
3764 sed 's/^/| /' conftest.$ac_ext >&5
3765
3766 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3768 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3769 See \`config.log' for more details." >&5
3770 $as_echo "$as_me: error: C compiler cannot create executables
3771 See \`config.log' for more details." >&2;}
3772    { (exit 77); exit 77; }; }; }
3773 fi
3774
3775 ac_exeext=$ac_cv_exeext
3776
3777 # Check that the compiler produces executables we can run.  If not, either
3778 # the compiler is broken, or we cross compile.
3779 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3780 $as_echo_n "checking whether the C compiler works... " >&6; }
3781 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3782 # If not cross compiling, check that we can run a simple program.
3783 if test "$cross_compiling" != yes; then
3784   if { ac_try='./$ac_file'
3785   { (case "(($ac_try" in
3786   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787   *) ac_try_echo=$ac_try;;
3788 esac
3789 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3790 $as_echo "$ac_try_echo") >&5
3791   (eval "$ac_try") 2>&5
3792   ac_status=$?
3793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3794   (exit $ac_status); }; }; then
3795     cross_compiling=no
3796   else
3797     if test "$cross_compiling" = maybe; then
3798         cross_compiling=yes
3799     else
3800         { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3803 If you meant to cross compile, use \`--host'.
3804 See \`config.log' for more details." >&5
3805 $as_echo "$as_me: error: cannot run C compiled programs.
3806 If you meant to cross compile, use \`--host'.
3807 See \`config.log' for more details." >&2;}
3808    { (exit 1); exit 1; }; }; }
3809     fi
3810   fi
3811 fi
3812 { $as_echo "$as_me:$LINENO: result: yes" >&5
3813 $as_echo "yes" >&6; }
3814
3815 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3816 ac_clean_files=$ac_clean_files_save
3817 # Check that the compiler produces executables we can run.  If not, either
3818 # the compiler is broken, or we cross compile.
3819 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3820 $as_echo_n "checking whether we are cross compiling... " >&6; }
3821 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3822 $as_echo "$cross_compiling" >&6; }
3823
3824 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3825 $as_echo_n "checking for suffix of executables... " >&6; }
3826 if { (ac_try="$ac_link"
3827 case "(($ac_try" in
3828   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3829   *) ac_try_echo=$ac_try;;
3830 esac
3831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3832 $as_echo "$ac_try_echo") >&5
3833   (eval "$ac_link") 2>&5
3834   ac_status=$?
3835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3836   (exit $ac_status); }; then
3837   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3838 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3839 # work properly (i.e., refer to `conftest.exe'), while it won't with
3840 # `rm'.
3841 for ac_file in conftest.exe conftest conftest.*; do
3842   test -f "$ac_file" || continue
3843   case $ac_file in
3844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3845     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3846           break;;
3847     * ) break;;
3848   esac
3849 done
3850 else
3851   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3853 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3854 See \`config.log' for more details." >&5
3855 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3856 See \`config.log' for more details." >&2;}
3857    { (exit 1); exit 1; }; }; }
3858 fi
3859
3860 rm -f conftest$ac_cv_exeext
3861 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3862 $as_echo "$ac_cv_exeext" >&6; }
3863
3864 rm -f conftest.$ac_ext
3865 EXEEXT=$ac_cv_exeext
3866 ac_exeext=$EXEEXT
3867 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3868 $as_echo_n "checking for suffix of object files... " >&6; }
3869 if test "${ac_cv_objext+set}" = set; then
3870   $as_echo_n "(cached) " >&6
3871 else
3872   cat >conftest.$ac_ext <<_ACEOF
3873 /* confdefs.h.  */
3874 _ACEOF
3875 cat confdefs.h >>conftest.$ac_ext
3876 cat >>conftest.$ac_ext <<_ACEOF
3877 /* end confdefs.h.  */
3878
3879 int
3880 main ()
3881 {
3882
3883   ;
3884   return 0;
3885 }
3886 _ACEOF
3887 rm -f conftest.o conftest.obj
3888 if { (ac_try="$ac_compile"
3889 case "(($ac_try" in
3890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3891   *) ac_try_echo=$ac_try;;
3892 esac
3893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3894 $as_echo "$ac_try_echo") >&5
3895   (eval "$ac_compile") 2>&5
3896   ac_status=$?
3897   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898   (exit $ac_status); }; then
3899   for ac_file in conftest.o conftest.obj conftest.*; do
3900   test -f "$ac_file" || continue;
3901   case $ac_file in
3902     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3903     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3904        break;;
3905   esac
3906 done
3907 else
3908   $as_echo "$as_me: failed program was:" >&5
3909 sed 's/^/| /' conftest.$ac_ext >&5
3910
3911 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3913 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3914 See \`config.log' for more details." >&5
3915 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3916 See \`config.log' for more details." >&2;}
3917    { (exit 1); exit 1; }; }; }
3918 fi
3919
3920 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3921 fi
3922 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3923 $as_echo "$ac_cv_objext" >&6; }
3924 OBJEXT=$ac_cv_objext
3925 ac_objext=$OBJEXT
3926 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3927 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3928 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3929   $as_echo_n "(cached) " >&6
3930 else
3931   cat >conftest.$ac_ext <<_ACEOF
3932 /* confdefs.h.  */
3933 _ACEOF
3934 cat confdefs.h >>conftest.$ac_ext
3935 cat >>conftest.$ac_ext <<_ACEOF
3936 /* end confdefs.h.  */
3937
3938 int
3939 main ()
3940 {
3941 #ifndef __GNUC__
3942        choke me
3943 #endif
3944
3945   ;
3946   return 0;
3947 }
3948 _ACEOF
3949 rm -f conftest.$ac_objext
3950 if { (ac_try="$ac_compile"
3951 case "(($ac_try" in
3952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3953   *) ac_try_echo=$ac_try;;
3954 esac
3955 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3956 $as_echo "$ac_try_echo") >&5
3957   (eval "$ac_compile") 2>conftest.er1
3958   ac_status=$?
3959   grep -v '^ *+' conftest.er1 >conftest.err
3960   rm -f conftest.er1
3961   cat conftest.err >&5
3962   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963   (exit $ac_status); } && {
3964          test -z "$ac_c_werror_flag" ||
3965          test ! -s conftest.err
3966        } && test -s conftest.$ac_objext; then
3967   ac_compiler_gnu=yes
3968 else
3969   $as_echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3971
3972         ac_compiler_gnu=no
3973 fi
3974
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3977
3978 fi
3979 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3980 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3981 if test $ac_compiler_gnu = yes; then
3982   GCC=yes
3983 else
3984   GCC=
3985 fi
3986 ac_test_CFLAGS=${CFLAGS+set}
3987 ac_save_CFLAGS=$CFLAGS
3988 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3989 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3990 if test "${ac_cv_prog_cc_g+set}" = set; then
3991   $as_echo_n "(cached) " >&6
3992 else
3993   ac_save_c_werror_flag=$ac_c_werror_flag
3994    ac_c_werror_flag=yes
3995    ac_cv_prog_cc_g=no
3996    CFLAGS="-g"
3997    cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h.  */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h.  */
4003
4004 int
4005 main ()
4006 {
4007
4008   ;
4009   return 0;
4010 }
4011 _ACEOF
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4014 case "(($ac_try" in
4015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016   *) ac_try_echo=$ac_try;;
4017 esac
4018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4019 $as_echo "$ac_try_echo") >&5
4020   (eval "$ac_compile") 2>conftest.er1
4021   ac_status=$?
4022   grep -v '^ *+' conftest.er1 >conftest.err
4023   rm -f conftest.er1
4024   cat conftest.err >&5
4025   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026   (exit $ac_status); } && {
4027          test -z "$ac_c_werror_flag" ||
4028          test ! -s conftest.err
4029        } && test -s conftest.$ac_objext; then
4030   ac_cv_prog_cc_g=yes
4031 else
4032   $as_echo "$as_me: failed program was:" >&5
4033 sed 's/^/| /' conftest.$ac_ext >&5
4034
4035         CFLAGS=""
4036       cat >conftest.$ac_ext <<_ACEOF
4037 /* confdefs.h.  */
4038 _ACEOF
4039 cat confdefs.h >>conftest.$ac_ext
4040 cat >>conftest.$ac_ext <<_ACEOF
4041 /* end confdefs.h.  */
4042
4043 int
4044 main ()
4045 {
4046
4047   ;
4048   return 0;
4049 }
4050 _ACEOF
4051 rm -f conftest.$ac_objext
4052 if { (ac_try="$ac_compile"
4053 case "(($ac_try" in
4054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055   *) ac_try_echo=$ac_try;;
4056 esac
4057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4058 $as_echo "$ac_try_echo") >&5
4059   (eval "$ac_compile") 2>conftest.er1
4060   ac_status=$?
4061   grep -v '^ *+' conftest.er1 >conftest.err
4062   rm -f conftest.er1
4063   cat conftest.err >&5
4064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4065   (exit $ac_status); } && {
4066          test -z "$ac_c_werror_flag" ||
4067          test ! -s conftest.err
4068        } && test -s conftest.$ac_objext; then
4069   :
4070 else
4071   $as_echo "$as_me: failed program was:" >&5
4072 sed 's/^/| /' conftest.$ac_ext >&5
4073
4074         ac_c_werror_flag=$ac_save_c_werror_flag
4075          CFLAGS="-g"
4076          cat >conftest.$ac_ext <<_ACEOF
4077 /* confdefs.h.  */
4078 _ACEOF
4079 cat confdefs.h >>conftest.$ac_ext
4080 cat >>conftest.$ac_ext <<_ACEOF
4081 /* end confdefs.h.  */
4082
4083 int
4084 main ()
4085 {
4086
4087   ;
4088   return 0;
4089 }
4090 _ACEOF
4091 rm -f conftest.$ac_objext
4092 if { (ac_try="$ac_compile"
4093 case "(($ac_try" in
4094   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4095   *) ac_try_echo=$ac_try;;
4096 esac
4097 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4098 $as_echo "$ac_try_echo") >&5
4099   (eval "$ac_compile") 2>conftest.er1
4100   ac_status=$?
4101   grep -v '^ *+' conftest.er1 >conftest.err
4102   rm -f conftest.er1
4103   cat conftest.err >&5
4104   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105   (exit $ac_status); } && {
4106          test -z "$ac_c_werror_flag" ||
4107          test ! -s conftest.err
4108        } && test -s conftest.$ac_objext; then
4109   ac_cv_prog_cc_g=yes
4110 else
4111   $as_echo "$as_me: failed program was:" >&5
4112 sed 's/^/| /' conftest.$ac_ext >&5
4113
4114
4115 fi
4116
4117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4118 fi
4119
4120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4121 fi
4122
4123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4124    ac_c_werror_flag=$ac_save_c_werror_flag
4125 fi
4126 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4127 $as_echo "$ac_cv_prog_cc_g" >&6; }
4128 if test "$ac_test_CFLAGS" = set; then
4129   CFLAGS=$ac_save_CFLAGS
4130 elif test $ac_cv_prog_cc_g = yes; then
4131   if test "$GCC" = yes; then
4132     CFLAGS="-g -O2"
4133   else
4134     CFLAGS="-g"
4135   fi
4136 else
4137   if test "$GCC" = yes; then
4138     CFLAGS="-O2"
4139   else
4140     CFLAGS=
4141   fi
4142 fi
4143 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4144 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4145 if test "${ac_cv_prog_cc_c89+set}" = set; then
4146   $as_echo_n "(cached) " >&6
4147 else
4148   ac_cv_prog_cc_c89=no
4149 ac_save_CC=$CC
4150 cat >conftest.$ac_ext <<_ACEOF
4151 /* confdefs.h.  */
4152 _ACEOF
4153 cat confdefs.h >>conftest.$ac_ext
4154 cat >>conftest.$ac_ext <<_ACEOF
4155 /* end confdefs.h.  */
4156 #include <stdarg.h>
4157 #include <stdio.h>
4158 #include <sys/types.h>
4159 #include <sys/stat.h>
4160 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4161 struct buf { int x; };
4162 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4163 static char *e (p, i)
4164      char **p;
4165      int i;
4166 {
4167   return p[i];
4168 }
4169 static char *f (char * (*g) (char **, int), char **p, ...)
4170 {
4171   char *s;
4172   va_list v;
4173   va_start (v,p);
4174   s = g (p, va_arg (v,int));
4175   va_end (v);
4176   return s;
4177 }
4178
4179 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4180    function prototypes and stuff, but not '\xHH' hex character constants.
4181    These don't provoke an error unfortunately, instead are silently treated
4182    as 'x'.  The following induces an error, until -std is added to get
4183    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4184    array size at least.  It's necessary to write '\x00'==0 to get something
4185    that's true only with -std.  */
4186 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4187
4188 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4189    inside strings and character constants.  */
4190 #define FOO(x) 'x'
4191 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4192
4193 int test (int i, double x);
4194 struct s1 {int (*f) (int a);};
4195 struct s2 {int (*f) (double a);};
4196 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4197 int argc;
4198 char **argv;
4199 int
4200 main ()
4201 {
4202 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4203   ;
4204   return 0;
4205 }
4206 _ACEOF
4207 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4208         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4209 do
4210   CC="$ac_save_CC $ac_arg"
4211   rm -f conftest.$ac_objext
4212 if { (ac_try="$ac_compile"
4213 case "(($ac_try" in
4214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4215   *) ac_try_echo=$ac_try;;
4216 esac
4217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4218 $as_echo "$ac_try_echo") >&5
4219   (eval "$ac_compile") 2>conftest.er1
4220   ac_status=$?
4221   grep -v '^ *+' conftest.er1 >conftest.err
4222   rm -f conftest.er1
4223   cat conftest.err >&5
4224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225   (exit $ac_status); } && {
4226          test -z "$ac_c_werror_flag" ||
4227          test ! -s conftest.err
4228        } && test -s conftest.$ac_objext; then
4229   ac_cv_prog_cc_c89=$ac_arg
4230 else
4231   $as_echo "$as_me: failed program was:" >&5
4232 sed 's/^/| /' conftest.$ac_ext >&5
4233
4234
4235 fi
4236
4237 rm -f core conftest.err conftest.$ac_objext
4238   test "x$ac_cv_prog_cc_c89" != "xno" && break
4239 done
4240 rm -f conftest.$ac_ext
4241 CC=$ac_save_CC
4242
4243 fi
4244 # AC_CACHE_VAL
4245 case "x$ac_cv_prog_cc_c89" in
4246   x)
4247     { $as_echo "$as_me:$LINENO: result: none needed" >&5
4248 $as_echo "none needed" >&6; } ;;
4249   xno)
4250     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4251 $as_echo "unsupported" >&6; } ;;
4252   *)
4253     CC="$CC $ac_cv_prog_cc_c89"
4254     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4255 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4256 esac
4257
4258
4259 ac_ext=c
4260 ac_cpp='$CPP $CPPFLAGS'
4261 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4262 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4263 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4264 DEPDIR="${am__leading_dot}deps"
4265
4266 ac_config_commands="$ac_config_commands depfiles"
4267
4268
4269 am_make=${MAKE-make}
4270 cat > confinc << 'END'
4271 am__doit:
4272         @echo this is the am__doit target
4273 .PHONY: am__doit
4274 END
4275 # If we don't find an include directive, just comment out the code.
4276 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
4277 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4278 am__include="#"
4279 am__quote=
4280 _am_result=none
4281 # First try GNU make style include.
4282 echo "include confinc" > confmf
4283 # Ignore all kinds of additional output from `make'.
4284 case `$am_make -s -f confmf 2> /dev/null` in #(
4285 *the\ am__doit\ target*)
4286   am__include=include
4287   am__quote=
4288   _am_result=GNU
4289   ;;
4290 esac
4291 # Now try BSD make style include.
4292 if test "$am__include" = "#"; then
4293    echo '.include "confinc"' > confmf
4294    case `$am_make -s -f confmf 2> /dev/null` in #(
4295    *the\ am__doit\ target*)
4296      am__include=.include
4297      am__quote="\""
4298      _am_result=BSD
4299      ;;
4300    esac
4301 fi
4302
4303
4304 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
4305 $as_echo "$_am_result" >&6; }
4306 rm -f confinc confmf
4307
4308 # Check whether --enable-dependency-tracking was given.
4309 if test "${enable_dependency_tracking+set}" = set; then
4310   enableval=$enable_dependency_tracking;
4311 fi
4312
4313 if test "x$enable_dependency_tracking" != xno; then
4314   am_depcomp="$ac_aux_dir/depcomp"
4315   AMDEPBACKSLASH='\'
4316 fi
4317  if test "x$enable_dependency_tracking" != xno; then
4318   AMDEP_TRUE=
4319   AMDEP_FALSE='#'
4320 else
4321   AMDEP_TRUE='#'
4322   AMDEP_FALSE=
4323 fi
4324
4325
4326
4327 depcc="$CC"   am_compiler_list=
4328
4329 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4330 $as_echo_n "checking dependency style of $depcc... " >&6; }
4331 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
4332   $as_echo_n "(cached) " >&6
4333 else
4334   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4335   # We make a subdir and do the tests there.  Otherwise we can end up
4336   # making bogus files that we don't know about and never remove.  For
4337   # instance it was reported that on HP-UX the gcc test will end up
4338   # making a dummy file named `D' -- because `-MD' means `put the output
4339   # in D'.
4340   mkdir conftest.dir
4341   # Copy depcomp to subdir because otherwise we won't find it if we're
4342   # using a relative directory.
4343   cp "$am_depcomp" conftest.dir
4344   cd conftest.dir
4345   # We will build objects and dependencies in a subdirectory because
4346   # it helps to detect inapplicable dependency modes.  For instance
4347   # both Tru64's cc and ICC support -MD to output dependencies as a
4348   # side effect of compilation, but ICC will put the dependencies in
4349   # the current directory while Tru64 will put them in the object
4350   # directory.
4351   mkdir sub
4352
4353   am_cv_CC_dependencies_compiler_type=none
4354   if test "$am_compiler_list" = ""; then
4355      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4356   fi
4357   am__universal=false
4358   case " $depcc " in #(
4359      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4360      esac
4361
4362   for depmode in $am_compiler_list; do
4363     # Setup a source with many dependencies, because some compilers
4364     # like to wrap large dependency lists on column 80 (with \), and
4365     # we should not choose a depcomp mode which is confused by this.
4366     #
4367     # We need to recreate these files for each test, as the compiler may
4368     # overwrite some of them when testing with obscure command lines.
4369     # This happens at least with the AIX C compiler.
4370     : > sub/conftest.c
4371     for i in 1 2 3 4 5 6; do
4372       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4373       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4374       # Solaris 8's {/usr,}/bin/sh.
4375       touch sub/conftst$i.h
4376     done
4377     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4378
4379     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4380     # mode.  It turns out that the SunPro C++ compiler does not properly
4381     # handle `-M -o', and we need to detect this.  Also, some Intel
4382     # versions had trouble with output in subdirs
4383     am__obj=sub/conftest.${OBJEXT-o}
4384     am__minus_obj="-o $am__obj"
4385     case $depmode in
4386     gcc)
4387       # This depmode causes a compiler race in universal mode.
4388       test "$am__universal" = false || continue
4389       ;;
4390     nosideeffect)
4391       # after this tag, mechanisms are not by side-effect, so they'll
4392       # only be used when explicitly requested
4393       if test "x$enable_dependency_tracking" = xyes; then
4394         continue
4395       else
4396         break
4397       fi
4398       ;;
4399     msvisualcpp | msvcmsys)
4400       # This compiler won't grok `-c -o', but also, the minuso test has
4401       # not run yet.  These depmodes are late enough in the game, and
4402       # so weak that their functioning should not be impacted.
4403       am__obj=conftest.${OBJEXT-o}
4404       am__minus_obj=
4405       ;;
4406     none) break ;;
4407     esac
4408     if depmode=$depmode \
4409        source=sub/conftest.c object=$am__obj \
4410        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4411        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4412          >/dev/null 2>conftest.err &&
4413        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4414        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4415        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4416        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4417       # icc doesn't choke on unknown options, it will just issue warnings
4418       # or remarks (even with -Werror).  So we grep stderr for any message
4419       # that says an option was ignored or not supported.
4420       # When given -MP, icc 7.0 and 7.1 complain thusly:
4421       #   icc: Command line warning: ignoring option '-M'; no argument required
4422       # The diagnosis changed in icc 8.0:
4423       #   icc: Command line remark: option '-MP' not supported
4424       if (grep 'ignoring option' conftest.err ||
4425           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4426         am_cv_CC_dependencies_compiler_type=$depmode
4427         break
4428       fi
4429     fi
4430   done
4431
4432   cd ..
4433   rm -rf conftest.dir
4434 else
4435   am_cv_CC_dependencies_compiler_type=none
4436 fi
4437
4438 fi
4439 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4440 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4441 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4442
4443  if
4444   test "x$enable_dependency_tracking" != xno \
4445   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4446   am__fastdepCC_TRUE=
4447   am__fastdepCC_FALSE='#'
4448 else
4449   am__fastdepCC_TRUE='#'
4450   am__fastdepCC_FALSE=
4451 fi
4452
4453
4454
4455 if test -n "$ac_tool_prefix"; then
4456   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4457 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4458 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4459 $as_echo_n "checking for $ac_word... " >&6; }
4460 if test "${ac_cv_prog_RANLIB+set}" = set; then
4461   $as_echo_n "(cached) " >&6
4462 else
4463   if test -n "$RANLIB"; then
4464   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4465 else
4466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 for as_dir in $PATH
4468 do
4469   IFS=$as_save_IFS
4470   test -z "$as_dir" && as_dir=.
4471   for ac_exec_ext in '' $ac_executable_extensions; do
4472   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4473     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4474     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4475     break 2
4476   fi
4477 done
4478 done
4479 IFS=$as_save_IFS
4480
4481 fi
4482 fi
4483 RANLIB=$ac_cv_prog_RANLIB
4484 if test -n "$RANLIB"; then
4485   { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4486 $as_echo "$RANLIB" >&6; }
4487 else
4488   { $as_echo "$as_me:$LINENO: result: no" >&5
4489 $as_echo "no" >&6; }
4490 fi
4491
4492
4493 fi
4494 if test -z "$ac_cv_prog_RANLIB"; then
4495   ac_ct_RANLIB=$RANLIB
4496   # Extract the first word of "ranlib", so it can be a program name with args.
4497 set dummy ranlib; ac_word=$2
4498 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4499 $as_echo_n "checking for $ac_word... " >&6; }
4500 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4501   $as_echo_n "(cached) " >&6
4502 else
4503   if test -n "$ac_ct_RANLIB"; then
4504   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4505 else
4506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4507 for as_dir in $PATH
4508 do
4509   IFS=$as_save_IFS
4510   test -z "$as_dir" && as_dir=.
4511   for ac_exec_ext in '' $ac_executable_extensions; do
4512   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4513     ac_cv_prog_ac_ct_RANLIB="ranlib"
4514     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4515     break 2
4516   fi
4517 done
4518 done
4519 IFS=$as_save_IFS
4520
4521 fi
4522 fi
4523 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4524 if test -n "$ac_ct_RANLIB"; then
4525   { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4526 $as_echo "$ac_ct_RANLIB" >&6; }
4527 else
4528   { $as_echo "$as_me:$LINENO: result: no" >&5
4529 $as_echo "no" >&6; }
4530 fi
4531
4532   if test "x$ac_ct_RANLIB" = x; then
4533     RANLIB=":"
4534   else
4535     case $cross_compiling:$ac_tool_warned in
4536 yes:)
4537 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4538 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4539 ac_tool_warned=yes ;;
4540 esac
4541     RANLIB=$ac_ct_RANLIB
4542   fi
4543 else
4544   RANLIB="$ac_cv_prog_RANLIB"
4545 fi
4546
4547 for ac_prog in 'bison -y' byacc
4548 do
4549   # Extract the first word of "$ac_prog", so it can be a program name with args.
4550 set dummy $ac_prog; ac_word=$2
4551 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4552 $as_echo_n "checking for $ac_word... " >&6; }
4553 if test "${ac_cv_prog_YACC+set}" = set; then
4554   $as_echo_n "(cached) " >&6
4555 else
4556   if test -n "$YACC"; then
4557   ac_cv_prog_YACC="$YACC" # Let the user override the test.
4558 else
4559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4560 for as_dir in $PATH
4561 do
4562   IFS=$as_save_IFS
4563   test -z "$as_dir" && as_dir=.
4564   for ac_exec_ext in '' $ac_executable_extensions; do
4565   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4566     ac_cv_prog_YACC="$ac_prog"
4567     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4568     break 2
4569   fi
4570 done
4571 done
4572 IFS=$as_save_IFS
4573
4574 fi
4575 fi
4576 YACC=$ac_cv_prog_YACC
4577 if test -n "$YACC"; then
4578   { $as_echo "$as_me:$LINENO: result: $YACC" >&5
4579 $as_echo "$YACC" >&6; }
4580 else
4581   { $as_echo "$as_me:$LINENO: result: no" >&5
4582 $as_echo "no" >&6; }
4583 fi
4584
4585
4586   test -n "$YACC" && break
4587 done
4588 test -n "$YACC" || YACC="yacc"
4589
4590 if test "x$CC" != xcc; then
4591   { $as_echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5
4592 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4593 else
4594   { $as_echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5
4595 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4596 fi
4597 set dummy $CC; ac_cc=`$as_echo "$2" |
4598                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4599 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then
4600   $as_echo_n "(cached) " >&6
4601 else
4602   cat >conftest.$ac_ext <<_ACEOF
4603 /* confdefs.h.  */
4604 _ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h.  */
4608
4609 int
4610 main ()
4611 {
4612
4613   ;
4614   return 0;
4615 }
4616 _ACEOF
4617 # Make sure it works both with $CC and with simple cc.
4618 # We do the test twice because some compilers refuse to overwrite an
4619 # existing .o file with -o, though they will create one.
4620 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4621 rm -f conftest2.*
4622 if { (case "(($ac_try" in
4623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4624   *) ac_try_echo=$ac_try;;
4625 esac
4626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4627 $as_echo "$ac_try_echo") >&5
4628   (eval "$ac_try") 2>&5
4629   ac_status=$?
4630   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631   (exit $ac_status); } &&
4632    test -f conftest2.$ac_objext && { (case "(($ac_try" in
4633   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634   *) ac_try_echo=$ac_try;;
4635 esac
4636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4637 $as_echo "$ac_try_echo") >&5
4638   (eval "$ac_try") 2>&5
4639   ac_status=$?
4640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4641   (exit $ac_status); };
4642 then
4643   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4644   if test "x$CC" != xcc; then
4645     # Test first that cc exists at all.
4646     if { ac_try='cc -c conftest.$ac_ext >&5'
4647   { (case "(($ac_try" in
4648   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4649   *) ac_try_echo=$ac_try;;
4650 esac
4651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4652 $as_echo "$ac_try_echo") >&5
4653   (eval "$ac_try") 2>&5
4654   ac_status=$?
4655   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656   (exit $ac_status); }; }; then
4657       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4658       rm -f conftest2.*
4659       if { (case "(($ac_try" in
4660   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4661   *) ac_try_echo=$ac_try;;
4662 esac
4663 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4664 $as_echo "$ac_try_echo") >&5
4665   (eval "$ac_try") 2>&5
4666   ac_status=$?
4667   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4668   (exit $ac_status); } &&
4669          test -f conftest2.$ac_objext && { (case "(($ac_try" in
4670   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671   *) ac_try_echo=$ac_try;;
4672 esac
4673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4674 $as_echo "$ac_try_echo") >&5
4675   (eval "$ac_try") 2>&5
4676   ac_status=$?
4677   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678   (exit $ac_status); };
4679       then
4680         # cc works too.
4681         :
4682       else
4683         # cc exists but doesn't like -o.
4684         eval ac_cv_prog_cc_${ac_cc}_c_o=no
4685       fi
4686     fi
4687   fi
4688 else
4689   eval ac_cv_prog_cc_${ac_cc}_c_o=no
4690 fi
4691 rm -f core conftest*
4692
4693 fi
4694 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4695   { $as_echo "$as_me:$LINENO: result: yes" >&5
4696 $as_echo "yes" >&6; }
4697 else
4698   { $as_echo "$as_me:$LINENO: result: no" >&5
4699 $as_echo "no" >&6; }
4700
4701 cat >>confdefs.h <<\_ACEOF
4702 #define NO_MINUS_C_MINUS_O 1
4703 _ACEOF
4704
4705 fi
4706
4707 # FIXME: we rely on the cache variable name because
4708 # there is no other way.
4709 set dummy $CC
4710 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4711 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4712 if test "$am_t" != yes; then
4713    # Losing compiler, so override with the script.
4714    # FIXME: It is wrong to rewrite CC.
4715    # But if we don't then we get into trouble of one sort or another.
4716    # A longer-term fix would be to have automake use am__CC in this case,
4717    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4718    CC="$am_aux_dir/compile $CC"
4719 fi
4720
4721
4722 # Make sure we can run config.sub.
4723 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4724   { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4725 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4726    { (exit 1); exit 1; }; }
4727
4728 { $as_echo "$as_me:$LINENO: checking build system type" >&5
4729 $as_echo_n "checking build system type... " >&6; }
4730 if test "${ac_cv_build+set}" = set; then
4731   $as_echo_n "(cached) " >&6
4732 else
4733   ac_build_alias=$build_alias
4734 test "x$ac_build_alias" = x &&
4735   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4736 test "x$ac_build_alias" = x &&
4737   { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4738 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4739    { (exit 1); exit 1; }; }
4740 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4741   { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4742 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4743    { (exit 1); exit 1; }; }
4744
4745 fi
4746 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4747 $as_echo "$ac_cv_build" >&6; }
4748 case $ac_cv_build in
4749 *-*-*) ;;
4750 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4751 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
4752    { (exit 1); exit 1; }; };;
4753 esac
4754 build=$ac_cv_build
4755 ac_save_IFS=$IFS; IFS='-'
4756 set x $ac_cv_build
4757 shift
4758 build_cpu=$1
4759 build_vendor=$2
4760 shift; shift
4761 # Remember, the first character of IFS is used to create $*,
4762 # except with old shells:
4763 build_os=$*
4764 IFS=$ac_save_IFS
4765 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4766
4767
4768 { $as_echo "$as_me:$LINENO: checking host system type" >&5
4769 $as_echo_n "checking host system type... " >&6; }
4770 if test "${ac_cv_host+set}" = set; then
4771   $as_echo_n "(cached) " >&6
4772 else
4773   if test "x$host_alias" = x; then
4774   ac_cv_host=$ac_cv_build
4775 else
4776   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4777     { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4778 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4779    { (exit 1); exit 1; }; }
4780 fi
4781
4782 fi
4783 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4784 $as_echo "$ac_cv_host" >&6; }
4785 case $ac_cv_host in
4786 *-*-*) ;;
4787 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4788 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
4789    { (exit 1); exit 1; }; };;
4790 esac
4791 host=$ac_cv_host
4792 ac_save_IFS=$IFS; IFS='-'
4793 set x $ac_cv_host
4794 shift
4795 host_cpu=$1
4796 host_vendor=$2
4797 shift; shift
4798 # Remember, the first character of IFS is used to create $*,
4799 # except with old shells:
4800 host_os=$*
4801 IFS=$ac_save_IFS
4802 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4803
4804
4805
4806 ac_ext=c
4807 ac_cpp='$CPP $CPPFLAGS'
4808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4811 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4812 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4813 # On Suns, sometimes $CPP names a directory.
4814 if test -n "$CPP" && test -d "$CPP"; then
4815   CPP=
4816 fi
4817 if test -z "$CPP"; then
4818   if test "${ac_cv_prog_CPP+set}" = set; then
4819   $as_echo_n "(cached) " >&6
4820 else
4821       # Double quotes because CPP needs to be expanded
4822     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4823     do
4824       ac_preproc_ok=false
4825 for ac_c_preproc_warn_flag in '' yes
4826 do
4827   # Use a header file that comes with gcc, so configuring glibc
4828   # with a fresh cross-compiler works.
4829   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4830   # <limits.h> exists even on freestanding compilers.
4831   # On the NeXT, cc -E runs the code through the compiler's parser,
4832   # not just through cpp. "Syntax error" is here to catch this case.
4833   cat >conftest.$ac_ext <<_ACEOF
4834 /* confdefs.h.  */
4835 _ACEOF
4836 cat confdefs.h >>conftest.$ac_ext
4837 cat >>conftest.$ac_ext <<_ACEOF
4838 /* end confdefs.h.  */
4839 #ifdef __STDC__
4840 # include <limits.h>
4841 #else
4842 # include <assert.h>
4843 #endif
4844                      Syntax error
4845 _ACEOF
4846 if { (ac_try="$ac_cpp conftest.$ac_ext"
4847 case "(($ac_try" in
4848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4849   *) ac_try_echo=$ac_try;;
4850 esac
4851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4852 $as_echo "$ac_try_echo") >&5
4853   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4854   ac_status=$?
4855   grep -v '^ *+' conftest.er1 >conftest.err
4856   rm -f conftest.er1
4857   cat conftest.err >&5
4858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859   (exit $ac_status); } >/dev/null && {
4860          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4861          test ! -s conftest.err
4862        }; then
4863   :
4864 else
4865   $as_echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4867
4868   # Broken: fails on valid input.
4869 continue
4870 fi
4871
4872 rm -f conftest.err conftest.$ac_ext
4873
4874   # OK, works on sane cases.  Now check whether nonexistent headers
4875   # can be detected and how.
4876   cat >conftest.$ac_ext <<_ACEOF
4877 /* confdefs.h.  */
4878 _ACEOF
4879 cat confdefs.h >>conftest.$ac_ext
4880 cat >>conftest.$ac_ext <<_ACEOF
4881 /* end confdefs.h.  */
4882 #include <ac_nonexistent.h>
4883 _ACEOF
4884 if { (ac_try="$ac_cpp conftest.$ac_ext"
4885 case "(($ac_try" in
4886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4887   *) ac_try_echo=$ac_try;;
4888 esac
4889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4890 $as_echo "$ac_try_echo") >&5
4891   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4892   ac_status=$?
4893   grep -v '^ *+' conftest.er1 >conftest.err
4894   rm -f conftest.er1
4895   cat conftest.err >&5
4896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4897   (exit $ac_status); } >/dev/null && {
4898          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4899          test ! -s conftest.err
4900        }; then
4901   # Broken: success on invalid input.
4902 continue
4903 else
4904   $as_echo "$as_me: failed program was:" >&5
4905 sed 's/^/| /' conftest.$ac_ext >&5
4906
4907   # Passes both tests.
4908 ac_preproc_ok=:
4909 break
4910 fi
4911
4912 rm -f conftest.err conftest.$ac_ext
4913
4914 done
4915 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4916 rm -f conftest.err conftest.$ac_ext
4917 if $ac_preproc_ok; then
4918   break
4919 fi
4920
4921     done
4922     ac_cv_prog_CPP=$CPP
4923
4924 fi
4925   CPP=$ac_cv_prog_CPP
4926 else
4927   ac_cv_prog_CPP=$CPP
4928 fi
4929 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4930 $as_echo "$CPP" >&6; }
4931 ac_preproc_ok=false
4932 for ac_c_preproc_warn_flag in '' yes
4933 do
4934   # Use a header file that comes with gcc, so configuring glibc
4935   # with a fresh cross-compiler works.
4936   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4937   # <limits.h> exists even on freestanding compilers.
4938   # On the NeXT, cc -E runs the code through the compiler's parser,
4939   # not just through cpp. "Syntax error" is here to catch this case.
4940   cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h.  */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h.  */
4946 #ifdef __STDC__
4947 # include <limits.h>
4948 #else
4949 # include <assert.h>
4950 #endif
4951                      Syntax error
4952 _ACEOF
4953 if { (ac_try="$ac_cpp conftest.$ac_ext"
4954 case "(($ac_try" in
4955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4956   *) ac_try_echo=$ac_try;;
4957 esac
4958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4959 $as_echo "$ac_try_echo") >&5
4960   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4961   ac_status=$?
4962   grep -v '^ *+' conftest.er1 >conftest.err
4963   rm -f conftest.er1
4964   cat conftest.err >&5
4965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966   (exit $ac_status); } >/dev/null && {
4967          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4968          test ! -s conftest.err
4969        }; then
4970   :
4971 else
4972   $as_echo "$as_me: failed program was:" >&5
4973 sed 's/^/| /' conftest.$ac_ext >&5
4974
4975   # Broken: fails on valid input.
4976 continue
4977 fi
4978
4979 rm -f conftest.err conftest.$ac_ext
4980
4981   # OK, works on sane cases.  Now check whether nonexistent headers
4982   # can be detected and how.
4983   cat >conftest.$ac_ext <<_ACEOF
4984 /* confdefs.h.  */
4985 _ACEOF
4986 cat confdefs.h >>conftest.$ac_ext
4987 cat >>conftest.$ac_ext <<_ACEOF
4988 /* end confdefs.h.  */
4989 #include <ac_nonexistent.h>
4990 _ACEOF
4991 if { (ac_try="$ac_cpp conftest.$ac_ext"
4992 case "(($ac_try" in
4993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4994   *) ac_try_echo=$ac_try;;
4995 esac
4996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4997 $as_echo "$ac_try_echo") >&5
4998   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4999   ac_status=$?
5000   grep -v '^ *+' conftest.er1 >conftest.err
5001   rm -f conftest.er1
5002   cat conftest.err >&5
5003   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); } >/dev/null && {
5005          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5006          test ! -s conftest.err
5007        }; then
5008   # Broken: success on invalid input.
5009 continue
5010 else
5011   $as_echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014   # Passes both tests.
5015 ac_preproc_ok=:
5016 break
5017 fi
5018
5019 rm -f conftest.err conftest.$ac_ext
5020
5021 done
5022 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5023 rm -f conftest.err conftest.$ac_ext
5024 if $ac_preproc_ok; then
5025   :
5026 else
5027   { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5029 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5030 See \`config.log' for more details." >&5
5031 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5032 See \`config.log' for more details." >&2;}
5033    { (exit 1); exit 1; }; }; }
5034 fi
5035
5036 ac_ext=c
5037 ac_cpp='$CPP $CPPFLAGS'
5038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5041
5042
5043 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
5044 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5045 if test "${ac_cv_path_GREP+set}" = set; then
5046   $as_echo_n "(cached) " >&6
5047 else
5048   if test -z "$GREP"; then
5049   ac_path_GREP_found=false
5050   # Loop through the user's path and test for each of PROGNAME-LIST
5051   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5052 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5053 do
5054   IFS=$as_save_IFS
5055   test -z "$as_dir" && as_dir=.
5056   for ac_prog in grep ggrep; do
5057     for ac_exec_ext in '' $ac_executable_extensions; do
5058       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5059       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5060 # Check for GNU ac_path_GREP and select it if it is found.
5061   # Check for GNU $ac_path_GREP
5062 case `"$ac_path_GREP" --version 2>&1` in
5063 *GNU*)
5064   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5065 *)
5066   ac_count=0
5067   $as_echo_n 0123456789 >"conftest.in"
5068   while :
5069   do
5070     cat "conftest.in" "conftest.in" >"conftest.tmp"
5071     mv "conftest.tmp" "conftest.in"
5072     cp "conftest.in" "conftest.nl"
5073     $as_echo 'GREP' >> "conftest.nl"
5074     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5075     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5076     ac_count=`expr $ac_count + 1`
5077     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5078       # Best one so far, save it but keep looking for a better one
5079       ac_cv_path_GREP="$ac_path_GREP"
5080       ac_path_GREP_max=$ac_count
5081     fi
5082     # 10*(2^10) chars as input seems more than enough
5083     test $ac_count -gt 10 && break
5084   done
5085   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5086 esac
5087
5088       $ac_path_GREP_found && break 3
5089     done
5090   done
5091 done
5092 IFS=$as_save_IFS
5093   if test -z "$ac_cv_path_GREP"; then
5094     { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5095 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5096    { (exit 1); exit 1; }; }
5097   fi
5098 else
5099   ac_cv_path_GREP=$GREP
5100 fi
5101
5102 fi
5103 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
5104 $as_echo "$ac_cv_path_GREP" >&6; }
5105  GREP="$ac_cv_path_GREP"
5106
5107
5108 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
5109 $as_echo_n "checking for egrep... " >&6; }
5110 if test "${ac_cv_path_EGREP+set}" = set; then
5111   $as_echo_n "(cached) " >&6
5112 else
5113   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5114    then ac_cv_path_EGREP="$GREP -E"
5115    else
5116      if test -z "$EGREP"; then
5117   ac_path_EGREP_found=false
5118   # Loop through the user's path and test for each of PROGNAME-LIST
5119   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5121 do
5122   IFS=$as_save_IFS
5123   test -z "$as_dir" && as_dir=.
5124   for ac_prog in egrep; do
5125     for ac_exec_ext in '' $ac_executable_extensions; do
5126       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5127       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5128 # Check for GNU ac_path_EGREP and select it if it is found.
5129   # Check for GNU $ac_path_EGREP
5130 case `"$ac_path_EGREP" --version 2>&1` in
5131 *GNU*)
5132   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5133 *)
5134   ac_count=0
5135   $as_echo_n 0123456789 >"conftest.in"
5136   while :
5137   do
5138     cat "conftest.in" "conftest.in" >"conftest.tmp"
5139     mv "conftest.tmp" "conftest.in"
5140     cp "conftest.in" "conftest.nl"
5141     $as_echo 'EGREP' >> "conftest.nl"
5142     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5143     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5144     ac_count=`expr $ac_count + 1`
5145     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5146       # Best one so far, save it but keep looking for a better one
5147       ac_cv_path_EGREP="$ac_path_EGREP"
5148       ac_path_EGREP_max=$ac_count
5149     fi
5150     # 10*(2^10) chars as input seems more than enough
5151     test $ac_count -gt 10 && break
5152   done
5153   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5154 esac
5155
5156       $ac_path_EGREP_found && break 3
5157     done
5158   done
5159 done
5160 IFS=$as_save_IFS
5161   if test -z "$ac_cv_path_EGREP"; then
5162     { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
5163 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
5164    { (exit 1); exit 1; }; }
5165   fi
5166 else
5167   ac_cv_path_EGREP=$EGREP
5168 fi
5169
5170    fi
5171 fi
5172 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
5173 $as_echo "$ac_cv_path_EGREP" >&6; }
5174  EGREP="$ac_cv_path_EGREP"
5175
5176
5177 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5178 $as_echo_n "checking for ANSI C header files... " >&6; }
5179 if test "${ac_cv_header_stdc+set}" = set; then
5180   $as_echo_n "(cached) " >&6
5181 else
5182   cat >conftest.$ac_ext <<_ACEOF
5183 /* confdefs.h.  */
5184 _ACEOF
5185 cat confdefs.h >>conftest.$ac_ext
5186 cat >>conftest.$ac_ext <<_ACEOF
5187 /* end confdefs.h.  */
5188 #include <stdlib.h>
5189 #include <stdarg.h>
5190 #include <string.h>
5191 #include <float.h>
5192
5193 int
5194 main ()
5195 {
5196
5197   ;
5198   return 0;
5199 }
5200 _ACEOF
5201 rm -f conftest.$ac_objext
5202 if { (ac_try="$ac_compile"
5203 case "(($ac_try" in
5204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5205   *) ac_try_echo=$ac_try;;
5206 esac
5207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5208 $as_echo "$ac_try_echo") >&5
5209   (eval "$ac_compile") 2>conftest.er1
5210   ac_status=$?
5211   grep -v '^ *+' conftest.er1 >conftest.err
5212   rm -f conftest.er1
5213   cat conftest.err >&5
5214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5215   (exit $ac_status); } && {
5216          test -z "$ac_c_werror_flag" ||
5217          test ! -s conftest.err
5218        } && test -s conftest.$ac_objext; then
5219   ac_cv_header_stdc=yes
5220 else
5221   $as_echo "$as_me: failed program was:" >&5
5222 sed 's/^/| /' conftest.$ac_ext >&5
5223
5224         ac_cv_header_stdc=no
5225 fi
5226
5227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5228
5229 if test $ac_cv_header_stdc = yes; then
5230   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5231   cat >conftest.$ac_ext <<_ACEOF
5232 /* confdefs.h.  */
5233 _ACEOF
5234 cat confdefs.h >>conftest.$ac_ext
5235 cat >>conftest.$ac_ext <<_ACEOF
5236 /* end confdefs.h.  */
5237 #include <string.h>
5238
5239 _ACEOF
5240 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5241   $EGREP "memchr" >/dev/null 2>&1; then
5242   :
5243 else
5244   ac_cv_header_stdc=no
5245 fi
5246 rm -f conftest*
5247
5248 fi
5249
5250 if test $ac_cv_header_stdc = yes; then
5251   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5252   cat >conftest.$ac_ext <<_ACEOF
5253 /* confdefs.h.  */
5254 _ACEOF
5255 cat confdefs.h >>conftest.$ac_ext
5256 cat >>conftest.$ac_ext <<_ACEOF
5257 /* end confdefs.h.  */
5258 #include <stdlib.h>
5259
5260 _ACEOF
5261 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5262   $EGREP "free" >/dev/null 2>&1; then
5263   :
5264 else
5265   ac_cv_header_stdc=no
5266 fi
5267 rm -f conftest*
5268
5269 fi
5270
5271 if test $ac_cv_header_stdc = yes; then
5272   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5273   if test "$cross_compiling" = yes; then
5274   :
5275 else
5276   cat >conftest.$ac_ext <<_ACEOF
5277 /* confdefs.h.  */
5278 _ACEOF
5279 cat confdefs.h >>conftest.$ac_ext
5280 cat >>conftest.$ac_ext <<_ACEOF
5281 /* end confdefs.h.  */
5282 #include <ctype.h>
5283 #include <stdlib.h>
5284 #if ((' ' & 0x0FF) == 0x020)
5285 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5286 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5287 #else
5288 # define ISLOWER(c) \
5289                    (('a' <= (c) && (c) <= 'i') \
5290                      || ('j' <= (c) && (c) <= 'r') \
5291                      || ('s' <= (c) && (c) <= 'z'))
5292 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5293 #endif
5294
5295 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5296 int
5297 main ()
5298 {
5299   int i;
5300   for (i = 0; i < 256; i++)
5301     if (XOR (islower (i), ISLOWER (i))
5302         || toupper (i) != TOUPPER (i))
5303       return 2;
5304   return 0;
5305 }
5306 _ACEOF
5307 rm -f conftest$ac_exeext
5308 if { (ac_try="$ac_link"
5309 case "(($ac_try" in
5310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5311   *) ac_try_echo=$ac_try;;
5312 esac
5313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5314 $as_echo "$ac_try_echo") >&5
5315   (eval "$ac_link") 2>&5
5316   ac_status=$?
5317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5319   { (case "(($ac_try" in
5320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5321   *) ac_try_echo=$ac_try;;
5322 esac
5323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5324 $as_echo "$ac_try_echo") >&5
5325   (eval "$ac_try") 2>&5
5326   ac_status=$?
5327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5328   (exit $ac_status); }; }; then
5329   :
5330 else
5331   $as_echo "$as_me: program exited with status $ac_status" >&5
5332 $as_echo "$as_me: failed program was:" >&5
5333 sed 's/^/| /' conftest.$ac_ext >&5
5334
5335 ( exit $ac_status )
5336 ac_cv_header_stdc=no
5337 fi
5338 rm -rf conftest.dSYM
5339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5340 fi
5341
5342
5343 fi
5344 fi
5345 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5346 $as_echo "$ac_cv_header_stdc" >&6; }
5347 if test $ac_cv_header_stdc = yes; then
5348
5349 cat >>confdefs.h <<\_ACEOF
5350 #define STDC_HEADERS 1
5351 _ACEOF
5352
5353 fi
5354
5355 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5366                   inttypes.h stdint.h unistd.h
5367 do
5368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5369 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5370 $as_echo_n "checking for $ac_header... " >&6; }
5371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5372   $as_echo_n "(cached) " >&6
5373 else
5374   cat >conftest.$ac_ext <<_ACEOF
5375 /* confdefs.h.  */
5376 _ACEOF
5377 cat confdefs.h >>conftest.$ac_ext
5378 cat >>conftest.$ac_ext <<_ACEOF
5379 /* end confdefs.h.  */
5380 $ac_includes_default
5381
5382 #include <$ac_header>
5383 _ACEOF
5384 rm -f conftest.$ac_objext
5385 if { (ac_try="$ac_compile"
5386 case "(($ac_try" in
5387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5388   *) ac_try_echo=$ac_try;;
5389 esac
5390 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5391 $as_echo "$ac_try_echo") >&5
5392   (eval "$ac_compile") 2>conftest.er1
5393   ac_status=$?
5394   grep -v '^ *+' conftest.er1 >conftest.err
5395   rm -f conftest.er1
5396   cat conftest.err >&5
5397   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); } && {
5399          test -z "$ac_c_werror_flag" ||
5400          test ! -s conftest.err
5401        } && test -s conftest.$ac_objext; then
5402   eval "$as_ac_Header=yes"
5403 else
5404   $as_echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5406
5407         eval "$as_ac_Header=no"
5408 fi
5409
5410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5411 fi
5412 ac_res=`eval 'as_val=${'$as_ac_Header'}
5413                  $as_echo "$as_val"'`
5414                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5415 $as_echo "$ac_res" >&6; }
5416 as_val=`eval 'as_val=${'$as_ac_Header'}
5417                  $as_echo "$as_val"'`
5418    if test "x$as_val" = x""yes; then
5419   cat >>confdefs.h <<_ACEOF
5420 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5421 _ACEOF
5422
5423 fi
5424
5425 done
5426
5427
5428
5429
5430
5431   if test "${ac_cv_header_minix_config_h+set}" = set; then
5432   { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5433 $as_echo_n "checking for minix/config.h... " >&6; }
5434 if test "${ac_cv_header_minix_config_h+set}" = set; then
5435   $as_echo_n "(cached) " >&6
5436 fi
5437 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5438 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5439 else
5440   # Is the header compilable?
5441 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
5442 $as_echo_n "checking minix/config.h usability... " >&6; }
5443 cat >conftest.$ac_ext <<_ACEOF
5444 /* confdefs.h.  */
5445 _ACEOF
5446 cat confdefs.h >>conftest.$ac_ext
5447 cat >>conftest.$ac_ext <<_ACEOF
5448 /* end confdefs.h.  */
5449 $ac_includes_default
5450 #include <minix/config.h>
5451 _ACEOF
5452 rm -f conftest.$ac_objext
5453 if { (ac_try="$ac_compile"
5454 case "(($ac_try" in
5455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5456   *) ac_try_echo=$ac_try;;
5457 esac
5458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5459 $as_echo "$ac_try_echo") >&5
5460   (eval "$ac_compile") 2>conftest.er1
5461   ac_status=$?
5462   grep -v '^ *+' conftest.er1 >conftest.err
5463   rm -f conftest.er1
5464   cat conftest.err >&5
5465   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5466   (exit $ac_status); } && {
5467          test -z "$ac_c_werror_flag" ||
5468          test ! -s conftest.err
5469        } && test -s conftest.$ac_objext; then
5470   ac_header_compiler=yes
5471 else
5472   $as_echo "$as_me: failed program was:" >&5
5473 sed 's/^/| /' conftest.$ac_ext >&5
5474
5475         ac_header_compiler=no
5476 fi
5477
5478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5479 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5480 $as_echo "$ac_header_compiler" >&6; }
5481
5482 # Is the header present?
5483 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
5484 $as_echo_n "checking minix/config.h presence... " >&6; }
5485 cat >conftest.$ac_ext <<_ACEOF
5486 /* confdefs.h.  */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h.  */
5491 #include <minix/config.h>
5492 _ACEOF
5493 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
5507          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5508          test ! -s conftest.err
5509        }; then
5510   ac_header_preproc=yes
5511 else
5512   $as_echo "$as_me: failed program was:" >&5
5513 sed 's/^/| /' conftest.$ac_ext >&5
5514
5515   ac_header_preproc=no
5516 fi
5517
5518 rm -f conftest.err conftest.$ac_ext
5519 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5520 $as_echo "$ac_header_preproc" >&6; }
5521
5522 # So?  What about this header?
5523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5524   yes:no: )
5525     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
5526 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
5527     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
5528 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
5529     ac_header_preproc=yes
5530     ;;
5531   no:yes:* )
5532     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
5533 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
5534     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     check for missing prerequisite headers?" >&5
5535 $as_echo "$as_me: WARNING: minix/config.h:     check for missing prerequisite headers?" >&2;}
5536     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
5537 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
5538     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&5
5539 $as_echo "$as_me: WARNING: minix/config.h:     section \"Present But Cannot Be Compiled\"" >&2;}
5540     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
5541 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
5542     { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
5543 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
5544     ( cat <<\_ASBOX
5545 ## ------------------------------ ##
5546 ## Report this to bug-tar@gnu.org ##
5547 ## ------------------------------ ##
5548 _ASBOX
5549      ) | sed "s/^/$as_me: WARNING:     /" >&2
5550     ;;
5551 esac
5552 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
5553 $as_echo_n "checking for minix/config.h... " >&6; }
5554 if test "${ac_cv_header_minix_config_h+set}" = set; then
5555   $as_echo_n "(cached) " >&6
5556 else
5557   ac_cv_header_minix_config_h=$ac_header_preproc
5558 fi
5559 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
5560 $as_echo "$ac_cv_header_minix_config_h" >&6; }
5561
5562 fi
5563 if test "x$ac_cv_header_minix_config_h" = x""yes; then
5564   MINIX=yes
5565 else
5566   MINIX=
5567 fi
5568
5569
5570   if test "$MINIX" = yes; then
5571
5572 cat >>confdefs.h <<\_ACEOF
5573 #define _POSIX_SOURCE 1
5574 _ACEOF
5575
5576
5577 cat >>confdefs.h <<\_ACEOF
5578 #define _POSIX_1_SOURCE 2
5579 _ACEOF
5580
5581
5582 cat >>confdefs.h <<\_ACEOF
5583 #define _MINIX 1
5584 _ACEOF
5585
5586   fi
5587
5588         case "$host_os" in
5589     hpux*)
5590
5591 cat >>confdefs.h <<\_ACEOF
5592 #define _XOPEN_SOURCE 500
5593 _ACEOF
5594
5595       ;;
5596   esac
5597
5598
5599
5600   { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
5601 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
5602 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
5603   $as_echo_n "(cached) " >&6
5604 else
5605   cat >conftest.$ac_ext <<_ACEOF
5606 /* confdefs.h.  */
5607 _ACEOF
5608 cat confdefs.h >>conftest.$ac_ext
5609 cat >>conftest.$ac_ext <<_ACEOF
5610 /* end confdefs.h.  */
5611
5612 #         define __EXTENSIONS__ 1
5613           $ac_includes_default
5614 int
5615 main ()
5616 {
5617
5618   ;
5619   return 0;
5620 }
5621 _ACEOF
5622 rm -f conftest.$ac_objext
5623 if { (ac_try="$ac_compile"
5624 case "(($ac_try" in
5625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5626   *) ac_try_echo=$ac_try;;
5627 esac
5628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5629 $as_echo "$ac_try_echo") >&5
5630   (eval "$ac_compile") 2>conftest.er1
5631   ac_status=$?
5632   grep -v '^ *+' conftest.er1 >conftest.err
5633   rm -f conftest.er1
5634   cat conftest.err >&5
5635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636   (exit $ac_status); } && {
5637          test -z "$ac_c_werror_flag" ||
5638          test ! -s conftest.err
5639        } && test -s conftest.$ac_objext; then
5640   ac_cv_safe_to_define___extensions__=yes
5641 else
5642   $as_echo "$as_me: failed program was:" >&5
5643 sed 's/^/| /' conftest.$ac_ext >&5
5644
5645         ac_cv_safe_to_define___extensions__=no
5646 fi
5647
5648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5649 fi
5650 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
5651 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5652   test $ac_cv_safe_to_define___extensions__ = yes &&
5653     cat >>confdefs.h <<\_ACEOF
5654 #define __EXTENSIONS__ 1
5655 _ACEOF
5656
5657   cat >>confdefs.h <<\_ACEOF
5658 #define _ALL_SOURCE 1
5659 _ACEOF
5660
5661   cat >>confdefs.h <<\_ACEOF
5662 #define _GNU_SOURCE 1
5663 _ACEOF
5664
5665   cat >>confdefs.h <<\_ACEOF
5666 #define _POSIX_PTHREAD_SEMANTICS 1
5667 _ACEOF
5668
5669   cat >>confdefs.h <<\_ACEOF
5670 #define _TANDEM_SOURCE 1
5671 _ACEOF
5672
5673
5674
5675
5676
5677
5678
5679
5680
5681 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
5682 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
5683 if test "${ac_cv_sys_largefile_source+set}" = set; then
5684   $as_echo_n "(cached) " >&6
5685 else
5686   while :; do
5687   cat >conftest.$ac_ext <<_ACEOF
5688 /* confdefs.h.  */
5689 _ACEOF
5690 cat confdefs.h >>conftest.$ac_ext
5691 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h.  */
5693 #include <sys/types.h> /* for off_t */
5694      #include <stdio.h>
5695 int
5696 main ()
5697 {
5698 int (*fp) (FILE *, off_t, int) = fseeko;
5699      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5700   ;
5701   return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest.$ac_objext conftest$ac_exeext
5705 if { (ac_try="$ac_link"
5706 case "(($ac_try" in
5707   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708   *) ac_try_echo=$ac_try;;
5709 esac
5710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5711 $as_echo "$ac_try_echo") >&5
5712   (eval "$ac_link") 2>conftest.er1
5713   ac_status=$?
5714   grep -v '^ *+' conftest.er1 >conftest.err
5715   rm -f conftest.er1
5716   cat conftest.err >&5
5717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718   (exit $ac_status); } && {
5719          test -z "$ac_c_werror_flag" ||
5720          test ! -s conftest.err
5721        } && test -s conftest$ac_exeext && {
5722          test "$cross_compiling" = yes ||
5723          $as_test_x conftest$ac_exeext
5724        }; then
5725   ac_cv_sys_largefile_source=no; break
5726 else
5727   $as_echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5729
5730
5731 fi
5732
5733 rm -rf conftest.dSYM
5734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5735       conftest$ac_exeext conftest.$ac_ext
5736   cat >conftest.$ac_ext <<_ACEOF
5737 /* confdefs.h.  */
5738 _ACEOF
5739 cat confdefs.h >>conftest.$ac_ext
5740 cat >>conftest.$ac_ext <<_ACEOF
5741 /* end confdefs.h.  */
5742 #define _LARGEFILE_SOURCE 1
5743 #include <sys/types.h> /* for off_t */
5744      #include <stdio.h>
5745 int
5746 main ()
5747 {
5748 int (*fp) (FILE *, off_t, int) = fseeko;
5749      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
5750   ;
5751   return 0;
5752 }
5753 _ACEOF
5754 rm -f conftest.$ac_objext conftest$ac_exeext
5755 if { (ac_try="$ac_link"
5756 case "(($ac_try" in
5757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5758   *) ac_try_echo=$ac_try;;
5759 esac
5760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5761 $as_echo "$ac_try_echo") >&5
5762   (eval "$ac_link") 2>conftest.er1
5763   ac_status=$?
5764   grep -v '^ *+' conftest.er1 >conftest.err
5765   rm -f conftest.er1
5766   cat conftest.err >&5
5767   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5768   (exit $ac_status); } && {
5769          test -z "$ac_c_werror_flag" ||
5770          test ! -s conftest.err
5771        } && test -s conftest$ac_exeext && {
5772          test "$cross_compiling" = yes ||
5773          $as_test_x conftest$ac_exeext
5774        }; then
5775   ac_cv_sys_largefile_source=1; break
5776 else
5777   $as_echo "$as_me: failed program was:" >&5
5778 sed 's/^/| /' conftest.$ac_ext >&5
5779
5780
5781 fi
5782
5783 rm -rf conftest.dSYM
5784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5785       conftest$ac_exeext conftest.$ac_ext
5786   ac_cv_sys_largefile_source=unknown
5787   break
5788 done
5789 fi
5790 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
5791 $as_echo "$ac_cv_sys_largefile_source" >&6; }
5792 case $ac_cv_sys_largefile_source in #(
5793   no | unknown) ;;
5794   *)
5795 cat >>confdefs.h <<_ACEOF
5796 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
5797 _ACEOF
5798 ;;
5799 esac
5800 rm -rf conftest*
5801
5802 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
5803 # in glibc 2.1.3, but that breaks too many other things.
5804 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
5805 if test $ac_cv_sys_largefile_source != unknown; then
5806
5807 cat >>confdefs.h <<\_ACEOF
5808 #define HAVE_FSEEKO 1
5809 _ACEOF
5810
5811 fi
5812
5813    case $ac_cv_prog_cc_stdc in
5814   no) ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;;
5815   *) { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C99" >&5
5816 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
5817 if test "${ac_cv_prog_cc_c99+set}" = set; then
5818   $as_echo_n "(cached) " >&6
5819 else
5820   ac_cv_prog_cc_c99=no
5821 ac_save_CC=$CC
5822 cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h.  */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h.  */
5828 #include <stdarg.h>
5829 #include <stdbool.h>
5830 #include <stdlib.h>
5831 #include <wchar.h>
5832 #include <stdio.h>
5833
5834 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5835 #define debug(...) fprintf (stderr, __VA_ARGS__)
5836 #define showlist(...) puts (#__VA_ARGS__)
5837 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5838 static void
5839 test_varargs_macros (void)
5840 {
5841   int x = 1234;
5842   int y = 5678;
5843   debug ("Flag");
5844   debug ("X = %d\n", x);
5845   showlist (The first, second, and third items.);
5846   report (x>y, "x is %d but y is %d", x, y);
5847 }
5848
5849 // Check long long types.
5850 #define BIG64 18446744073709551615ull
5851 #define BIG32 4294967295ul
5852 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5853 #if !BIG_OK
5854   your preprocessor is broken;
5855 #endif
5856 #if BIG_OK
5857 #else
5858   your preprocessor is broken;
5859 #endif
5860 static long long int bignum = -9223372036854775807LL;
5861 static unsigned long long int ubignum = BIG64;
5862
5863 struct incomplete_array
5864 {
5865   int datasize;
5866   double data[];
5867 };
5868
5869 struct named_init {
5870   int number;
5871   const wchar_t *name;
5872   double average;
5873 };
5874
5875 typedef const char *ccp;
5876
5877 static inline int
5878 test_restrict (ccp restrict text)
5879 {
5880   // See if C++-style comments work.
5881   // Iterate through items via the restricted pointer.
5882   // Also check for declarations in for loops.
5883   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5884     continue;
5885   return 0;
5886 }
5887
5888 // Check varargs and va_copy.
5889 static void
5890 test_varargs (const char *format, ...)
5891 {
5892   va_list args;
5893   va_start (args, format);
5894   va_list args_copy;
5895   va_copy (args_copy, args);
5896
5897   const char *str;
5898   int number;
5899   float fnumber;
5900
5901   while (*format)
5902     {
5903       switch (*format++)
5904         {
5905         case 's': // string
5906           str = va_arg (args_copy, const char *);
5907           break;
5908         case 'd': // int
5909           number = va_arg (args_copy, int);
5910           break;
5911         case 'f': // float
5912           fnumber = va_arg (args_copy, double);
5913           break;
5914         default:
5915           break;
5916         }
5917     }
5918   va_end (args_copy);
5919   va_end (args);
5920 }
5921
5922 int
5923 main ()
5924 {
5925
5926   // Check bool.
5927   _Bool success = false;
5928
5929   // Check restrict.
5930   if (test_restrict ("String literal") == 0)
5931     success = true;
5932   char *restrict newvar = "Another string";
5933
5934   // Check varargs.
5935   test_varargs ("s, d' f .", "string", 65, 34.234);
5936   test_varargs_macros ();
5937
5938   // Check flexible array members.
5939   struct incomplete_array *ia =
5940     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5941   ia->datasize = 10;
5942   for (int i = 0; i < ia->datasize; ++i)
5943     ia->data[i] = i * 1.234;
5944
5945   // Check named initializers.
5946   struct named_init ni = {
5947     .number = 34,
5948     .name = L"Test wide string",
5949     .average = 543.34343,
5950   };
5951
5952   ni.number = 58;
5953
5954   int dynamic_array[ni.number];
5955   dynamic_array[ni.number - 1] = 543;
5956
5957   // work around unused variable warnings
5958   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5959           || dynamic_array[ni.number - 1] != 543);
5960
5961   ;
5962   return 0;
5963 }
5964 _ACEOF
5965 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
5966 do
5967   CC="$ac_save_CC $ac_arg"
5968   rm -f conftest.$ac_objext
5969 if { (ac_try="$ac_compile"
5970 case "(($ac_try" in
5971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5972   *) ac_try_echo=$ac_try;;
5973 esac
5974 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5975 $as_echo "$ac_try_echo") >&5
5976   (eval "$ac_compile") 2>conftest.er1
5977   ac_status=$?
5978   grep -v '^ *+' conftest.er1 >conftest.err
5979   rm -f conftest.er1
5980   cat conftest.err >&5
5981   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982   (exit $ac_status); } && {
5983          test -z "$ac_c_werror_flag" ||
5984          test ! -s conftest.err
5985        } && test -s conftest.$ac_objext; then
5986   ac_cv_prog_cc_c99=$ac_arg
5987 else
5988   $as_echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991
5992 fi
5993
5994 rm -f core conftest.err conftest.$ac_objext
5995   test "x$ac_cv_prog_cc_c99" != "xno" && break
5996 done
5997 rm -f conftest.$ac_ext
5998 CC=$ac_save_CC
5999
6000 fi
6001 # AC_CACHE_VAL
6002 case "x$ac_cv_prog_cc_c99" in
6003   x)
6004     { $as_echo "$as_me:$LINENO: result: none needed" >&5
6005 $as_echo "none needed" >&6; } ;;
6006   xno)
6007     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6008 $as_echo "unsupported" >&6; } ;;
6009   *)
6010     CC="$CC $ac_cv_prog_cc_c99"
6011     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c99" >&5
6012 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
6013 esac
6014 if test "x$ac_cv_prog_cc_c99" != xno; then
6015   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
6016 else
6017   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6018 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
6019 if test "${ac_cv_prog_cc_c89+set}" = set; then
6020   $as_echo_n "(cached) " >&6
6021 else
6022   ac_cv_prog_cc_c89=no
6023 ac_save_CC=$CC
6024 cat >conftest.$ac_ext <<_ACEOF
6025 /* confdefs.h.  */
6026 _ACEOF
6027 cat confdefs.h >>conftest.$ac_ext
6028 cat >>conftest.$ac_ext <<_ACEOF
6029 /* end confdefs.h.  */
6030 #include <stdarg.h>
6031 #include <stdio.h>
6032 #include <sys/types.h>
6033 #include <sys/stat.h>
6034 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6035 struct buf { int x; };
6036 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6037 static char *e (p, i)
6038      char **p;
6039      int i;
6040 {
6041   return p[i];
6042 }
6043 static char *f (char * (*g) (char **, int), char **p, ...)
6044 {
6045   char *s;
6046   va_list v;
6047   va_start (v,p);
6048   s = g (p, va_arg (v,int));
6049   va_end (v);
6050   return s;
6051 }
6052
6053 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6054    function prototypes and stuff, but not '\xHH' hex character constants.
6055    These don't provoke an error unfortunately, instead are silently treated
6056    as 'x'.  The following induces an error, until -std is added to get
6057    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6058    array size at least.  It's necessary to write '\x00'==0 to get something
6059    that's true only with -std.  */
6060 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6061
6062 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6063    inside strings and character constants.  */
6064 #define FOO(x) 'x'
6065 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6066
6067 int test (int i, double x);
6068 struct s1 {int (*f) (int a);};
6069 struct s2 {int (*f) (double a);};
6070 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6071 int argc;
6072 char **argv;
6073 int
6074 main ()
6075 {
6076 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6077   ;
6078   return 0;
6079 }
6080 _ACEOF
6081 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6082         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6083 do
6084   CC="$ac_save_CC $ac_arg"
6085   rm -f conftest.$ac_objext
6086 if { (ac_try="$ac_compile"
6087 case "(($ac_try" in
6088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089   *) ac_try_echo=$ac_try;;
6090 esac
6091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6092 $as_echo "$ac_try_echo") >&5
6093   (eval "$ac_compile") 2>conftest.er1
6094   ac_status=$?
6095   grep -v '^ *+' conftest.er1 >conftest.err
6096   rm -f conftest.er1
6097   cat conftest.err >&5
6098   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099   (exit $ac_status); } && {
6100          test -z "$ac_c_werror_flag" ||
6101          test ! -s conftest.err
6102        } && test -s conftest.$ac_objext; then
6103   ac_cv_prog_cc_c89=$ac_arg
6104 else
6105   $as_echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6107
6108
6109 fi
6110
6111 rm -f core conftest.err conftest.$ac_objext
6112   test "x$ac_cv_prog_cc_c89" != "xno" && break
6113 done
6114 rm -f conftest.$ac_ext
6115 CC=$ac_save_CC
6116
6117 fi
6118 # AC_CACHE_VAL
6119 case "x$ac_cv_prog_cc_c89" in
6120   x)
6121     { $as_echo "$as_me:$LINENO: result: none needed" >&5
6122 $as_echo "none needed" >&6; } ;;
6123   xno)
6124     { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6125 $as_echo "unsupported" >&6; } ;;
6126   *)
6127     CC="$CC $ac_cv_prog_cc_c89"
6128     { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6129 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6130 esac
6131 if test "x$ac_cv_prog_cc_c89" != xno; then
6132   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6133 else
6134   ac_cv_prog_cc_stdc=no
6135 fi
6136
6137
6138 fi
6139
6140  ;;
6141 esac
6142   { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO Standard C" >&5
6143 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
6144   if test "${ac_cv_prog_cc_stdc+set}" = set; then
6145   $as_echo_n "(cached) " >&6
6146 fi
6147
6148   case $ac_cv_prog_cc_stdc in
6149   no) { $as_echo "$as_me:$LINENO: result: unsupported" >&5
6150 $as_echo "unsupported" >&6; } ;;
6151   '') { $as_echo "$as_me:$LINENO: result: none needed" >&5
6152 $as_echo "none needed" >&6; } ;;
6153   *) { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
6154 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
6155 esac
6156
6157
6158
6159
6160
6161   # Code from module alloca:
6162   # Code from module alloca-opt:
6163   # Code from module areadlink:
6164   # Code from module areadlinkat:
6165   # Code from module arg-nonnull:
6166   # Code from module argmatch:
6167   # Code from module argp:
6168   # Code from module argp-version-etc:
6169   # Code from module backupfile:
6170   # Code from module bitrotate:
6171   # Code from module btowc:
6172   # Code from module c++defs:
6173   # Code from module c-ctype:
6174   # Code from module canonicalize-lgpl:
6175   # Code from module chdir-long:
6176   # Code from module chown:
6177   # Code from module clock-time:
6178   # Code from module cloexec:
6179   # Code from module close:
6180   # Code from module close-hook:
6181   # Code from module close-stream:
6182   # Code from module closeout:
6183   # Code from module configmake:
6184   # Code from module d-ino:
6185   # Code from module dirent:
6186   # Code from module dirent-safer:
6187   # Code from module dirfd:
6188   # Code from module dirname:
6189   # Code from module dirname-lgpl:
6190   # Code from module dosname:
6191   # Code from module double-slash-root:
6192   # Code from module dup2:
6193   # Code from module environ:
6194   # Code from module errno:
6195   # Code from module error:
6196   # Code from module exclude:
6197   # Code from module exitfail:
6198   # Code from module extensions:
6199
6200   # Code from module fchdir:
6201   # Code from module fclose:
6202   # Code from module fcntl:
6203   # Code from module fcntl-h:
6204   # Code from module fdopendir:
6205   # Code from module fdutimensat:
6206   # Code from module fileblocks:
6207   # Code from module filenamecat-lgpl:
6208   # Code from module float:
6209   # Code from module fnmatch:
6210   # Code from module fnmatch-gnu:
6211   # Code from module fpending:
6212   # Code from module fseeko:
6213
6214   # Code from module full-write:
6215   # Code from module futimens:
6216   # Code from module getcwd:
6217   # Code from module getdelim:
6218   # Code from module getdtablesize:
6219   # Code from module getline:
6220   # Code from module getopt-gnu:
6221   # Code from module getopt-posix:
6222   # Code from module getpagesize:
6223   # Code from module gettext:
6224   # Code from module gettext-h:
6225   # Code from module gettime:
6226   # Code from module gettimeofday:
6227   # Code from module gitlog-to-changelog:
6228   # Code from module hash:
6229   # Code from module havelib:
6230   # Code from module human:
6231   # Code from module include_next:
6232   # Code from module inline:
6233   # Code from module intprops:
6234   # Code from module inttostr:
6235   # Code from module inttypes:
6236   # Code from module iswblank:
6237   # Code from module langinfo:
6238   # Code from module lchown:
6239   # Code from module link:
6240   # Code from module link-follow:
6241   # Code from module linkat:
6242   # Code from module localcharset:
6243   # Code from module lseek:
6244   # Code from module lstat:
6245   # Code from module malloc-gnu:
6246   # Code from module malloc-posix:
6247   # Code from module malloca:
6248   # Code from module mbchar:
6249   # Code from module mbrtowc:
6250   # Code from module mbscasecmp:
6251   # Code from module mbsinit:
6252   # Code from module mbsrtowcs:
6253   # Code from module mbtowc:
6254   # Code from module mbuiter:
6255   # Code from module memchr:
6256   # Code from module mempcpy:
6257   # Code from module memrchr:
6258   # Code from module mkdir:
6259   # Code from module mkdtemp:
6260   # Code from module mkfifo:
6261   # Code from module mkfifoat:
6262   # Code from module mknod:
6263   # Code from module mktime:
6264   # Code from module modechange:
6265   # Code from module multiarch:
6266   # Code from module nl_langinfo:
6267   # Code from module obstack:
6268   # Code from module open:
6269   # Code from module openat:
6270   # Code from module openat-die:
6271   # Code from module parse-datetime:
6272   # Code from module pathmax:
6273   # Code from module priv-set:
6274   # Code from module progname:
6275   # Code from module quote:
6276   # Code from module quotearg:
6277   # Code from module quotearg-simple:
6278   # Code from module rawmemchr:
6279   # Code from module readlink:
6280   # Code from module readlinkat:
6281   # Code from module realloc-posix:
6282   # Code from module regex:
6283   # Code from module rename:
6284   # Code from module renameat:
6285   # Code from module rmdir:
6286   # Code from module rpmatch:
6287   # Code from module safe-read:
6288   # Code from module safe-write:
6289   # Code from module same-inode:
6290   # Code from module save-cwd:
6291   # Code from module savedir:
6292   # Code from module setenv:
6293   # Code from module size_max:
6294   # Code from module sleep:
6295   # Code from module snprintf:
6296   # Code from module ssize_t:
6297   # Code from module stat:
6298   # Code from module stat-macros:
6299   # Code from module stat-time:
6300   # Code from module stdarg:
6301
6302   # Code from module stdbool:
6303   # Code from module stddef:
6304   # Code from module stdint:
6305   # Code from module stdio:
6306   # Code from module stdlib:
6307   # Code from module stpcpy:
6308   # Code from module strcase:
6309   # Code from module strchrnul:
6310   # Code from module strdup-posix:
6311   # Code from module streq:
6312   # Code from module strerror:
6313   # Code from module string:
6314   # Code from module strings:
6315   # Code from module strndup:
6316   # Code from module strnlen:
6317   # Code from module strnlen1:
6318   # Code from module strtoimax:
6319   # Code from module strtol:
6320   # Code from module strtoll:
6321   # Code from module strtoul:
6322   # Code from module strtoull:
6323   # Code from module strtoumax:
6324   # Code from module symlink:
6325   # Code from module symlinkat:
6326   # Code from module sys_stat:
6327   # Code from module sys_time:
6328   # Code from module sysexits:
6329   # Code from module tempname:
6330   # Code from module time:
6331   # Code from module time_r:
6332   # Code from module timespec:
6333   # Code from module unistd:
6334   # Code from module unistd-safer:
6335   # Code from module unitypes:
6336   # Code from module uniwidth/base:
6337   # Code from module uniwidth/width:
6338   # Code from module unlink:
6339   # Code from module unlinkdir:
6340   # Code from module unlocked-io:
6341   # Code from module unsetenv:
6342   # Code from module utimens:
6343   # Code from module utimensat:
6344   # Code from module vasnprintf:
6345   # Code from module vasprintf:
6346   # Code from module verify:
6347   # Code from module version-etc:
6348   # Code from module version-etc-fsf:
6349   # Code from module vsnprintf:
6350   # Code from module warn-on-use:
6351   # Code from module wchar:
6352   # Code from module wcrtomb:
6353   # Code from module wctype-h:
6354   # Code from module wcwidth:
6355   # Code from module write:
6356   # Code from module xalloc:
6357   # Code from module xalloc-die:
6358   # Code from module xgetcwd:
6359   # Code from module xsize:
6360   # Code from module xstrndup:
6361   # Code from module xstrtol:
6362   # Code from module xstrtoumax:
6363   # Code from module xvasprintf:
6364
6365
6366 # Check whether --enable-largefile was given.
6367 if test "${enable_largefile+set}" = set; then
6368   enableval=$enable_largefile;
6369 fi
6370
6371 if test "$enable_largefile" != no; then
6372
6373   { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
6374 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
6375 if test "${ac_cv_sys_largefile_CC+set}" = set; then
6376   $as_echo_n "(cached) " >&6
6377 else
6378   ac_cv_sys_largefile_CC=no
6379      if test "$GCC" != yes; then
6380        ac_save_CC=$CC
6381        while :; do
6382          # IRIX 6.2 and later do not support large files by default,
6383          # so use the C compiler's -n32 option if that helps.
6384          cat >conftest.$ac_ext <<_ACEOF
6385 /* confdefs.h.  */
6386 _ACEOF
6387 cat confdefs.h >>conftest.$ac_ext
6388 cat >>conftest.$ac_ext <<_ACEOF
6389 /* end confdefs.h.  */
6390 #include <sys/types.h>
6391  /* Check that off_t can represent 2**63 - 1 correctly.
6392     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6393     since some C++ compilers masquerading as C compilers
6394     incorrectly reject 9223372036854775807.  */
6395 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6396   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6397                        && LARGE_OFF_T % 2147483647 == 1)
6398                       ? 1 : -1];
6399 int
6400 main ()
6401 {
6402
6403   ;
6404   return 0;
6405 }
6406 _ACEOF
6407          rm -f conftest.$ac_objext
6408 if { (ac_try="$ac_compile"
6409 case "(($ac_try" in
6410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6411   *) ac_try_echo=$ac_try;;
6412 esac
6413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6414 $as_echo "$ac_try_echo") >&5
6415   (eval "$ac_compile") 2>conftest.er1
6416   ac_status=$?
6417   grep -v '^ *+' conftest.er1 >conftest.err
6418   rm -f conftest.er1
6419   cat conftest.err >&5
6420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421   (exit $ac_status); } && {
6422          test -z "$ac_c_werror_flag" ||
6423          test ! -s conftest.err
6424        } && test -s conftest.$ac_objext; then
6425   break
6426 else
6427   $as_echo "$as_me: failed program was:" >&5
6428 sed 's/^/| /' conftest.$ac_ext >&5
6429
6430
6431 fi
6432
6433 rm -f core conftest.err conftest.$ac_objext
6434          CC="$CC -n32"
6435          rm -f conftest.$ac_objext
6436 if { (ac_try="$ac_compile"
6437 case "(($ac_try" in
6438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6439   *) ac_try_echo=$ac_try;;
6440 esac
6441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6442 $as_echo "$ac_try_echo") >&5
6443   (eval "$ac_compile") 2>conftest.er1
6444   ac_status=$?
6445   grep -v '^ *+' conftest.er1 >conftest.err
6446   rm -f conftest.er1
6447   cat conftest.err >&5
6448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449   (exit $ac_status); } && {
6450          test -z "$ac_c_werror_flag" ||
6451          test ! -s conftest.err
6452        } && test -s conftest.$ac_objext; then
6453   ac_cv_sys_largefile_CC=' -n32'; break
6454 else
6455   $as_echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6457
6458
6459 fi
6460
6461 rm -f core conftest.err conftest.$ac_objext
6462          break
6463        done
6464        CC=$ac_save_CC
6465        rm -f conftest.$ac_ext
6466     fi
6467 fi
6468 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
6469 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6470   if test "$ac_cv_sys_largefile_CC" != no; then
6471     CC=$CC$ac_cv_sys_largefile_CC
6472   fi
6473
6474   { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6475 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6476 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
6477   $as_echo_n "(cached) " >&6
6478 else
6479   while :; do
6480   cat >conftest.$ac_ext <<_ACEOF
6481 /* confdefs.h.  */
6482 _ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h.  */
6486 #include <sys/types.h>
6487  /* Check that off_t can represent 2**63 - 1 correctly.
6488     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6489     since some C++ compilers masquerading as C compilers
6490     incorrectly reject 9223372036854775807.  */
6491 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6492   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6493                        && LARGE_OFF_T % 2147483647 == 1)
6494                       ? 1 : -1];
6495 int
6496 main ()
6497 {
6498
6499   ;
6500   return 0;
6501 }
6502 _ACEOF
6503 rm -f conftest.$ac_objext
6504 if { (ac_try="$ac_compile"
6505 case "(($ac_try" in
6506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6507   *) ac_try_echo=$ac_try;;
6508 esac
6509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6510 $as_echo "$ac_try_echo") >&5
6511   (eval "$ac_compile") 2>conftest.er1
6512   ac_status=$?
6513   grep -v '^ *+' conftest.er1 >conftest.err
6514   rm -f conftest.er1
6515   cat conftest.err >&5
6516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517   (exit $ac_status); } && {
6518          test -z "$ac_c_werror_flag" ||
6519          test ! -s conftest.err
6520        } && test -s conftest.$ac_objext; then
6521   ac_cv_sys_file_offset_bits=no; break
6522 else
6523   $as_echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6525
6526
6527 fi
6528
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530   cat >conftest.$ac_ext <<_ACEOF
6531 /* confdefs.h.  */
6532 _ACEOF
6533 cat confdefs.h >>conftest.$ac_ext
6534 cat >>conftest.$ac_ext <<_ACEOF
6535 /* end confdefs.h.  */
6536 #define _FILE_OFFSET_BITS 64
6537 #include <sys/types.h>
6538  /* Check that off_t can represent 2**63 - 1 correctly.
6539     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6540     since some C++ compilers masquerading as C compilers
6541     incorrectly reject 9223372036854775807.  */
6542 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6543   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6544                        && LARGE_OFF_T % 2147483647 == 1)
6545                       ? 1 : -1];
6546 int
6547 main ()
6548 {
6549
6550   ;
6551   return 0;
6552 }
6553 _ACEOF
6554 rm -f conftest.$ac_objext
6555 if { (ac_try="$ac_compile"
6556 case "(($ac_try" in
6557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558   *) ac_try_echo=$ac_try;;
6559 esac
6560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6561 $as_echo "$ac_try_echo") >&5
6562   (eval "$ac_compile") 2>conftest.er1
6563   ac_status=$?
6564   grep -v '^ *+' conftest.er1 >conftest.err
6565   rm -f conftest.er1
6566   cat conftest.err >&5
6567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6568   (exit $ac_status); } && {
6569          test -z "$ac_c_werror_flag" ||
6570          test ! -s conftest.err
6571        } && test -s conftest.$ac_objext; then
6572   ac_cv_sys_file_offset_bits=64; break
6573 else
6574   $as_echo "$as_me: failed program was:" >&5
6575 sed 's/^/| /' conftest.$ac_ext >&5
6576
6577
6578 fi
6579
6580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6581   ac_cv_sys_file_offset_bits=unknown
6582   break
6583 done
6584 fi
6585 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
6586 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6587 case $ac_cv_sys_file_offset_bits in #(
6588   no | unknown) ;;
6589   *)
6590 cat >>confdefs.h <<_ACEOF
6591 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
6592 _ACEOF
6593 ;;
6594 esac
6595 rm -rf conftest*
6596   if test $ac_cv_sys_file_offset_bits = unknown; then
6597     { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
6598 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6599 if test "${ac_cv_sys_large_files+set}" = set; then
6600   $as_echo_n "(cached) " >&6
6601 else
6602   while :; do
6603   cat >conftest.$ac_ext <<_ACEOF
6604 /* confdefs.h.  */
6605 _ACEOF
6606 cat confdefs.h >>conftest.$ac_ext
6607 cat >>conftest.$ac_ext <<_ACEOF
6608 /* end confdefs.h.  */
6609 #include <sys/types.h>
6610  /* Check that off_t can represent 2**63 - 1 correctly.
6611     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6612     since some C++ compilers masquerading as C compilers
6613     incorrectly reject 9223372036854775807.  */
6614 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6615   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6616                        && LARGE_OFF_T % 2147483647 == 1)
6617                       ? 1 : -1];
6618 int
6619 main ()
6620 {
6621
6622   ;
6623   return 0;
6624 }
6625 _ACEOF
6626 rm -f conftest.$ac_objext
6627 if { (ac_try="$ac_compile"
6628 case "(($ac_try" in
6629   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6630   *) ac_try_echo=$ac_try;;
6631 esac
6632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6633 $as_echo "$ac_try_echo") >&5
6634   (eval "$ac_compile") 2>conftest.er1
6635   ac_status=$?
6636   grep -v '^ *+' conftest.er1 >conftest.err
6637   rm -f conftest.er1
6638   cat conftest.err >&5
6639   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6640   (exit $ac_status); } && {
6641          test -z "$ac_c_werror_flag" ||
6642          test ! -s conftest.err
6643        } && test -s conftest.$ac_objext; then
6644   ac_cv_sys_large_files=no; break
6645 else
6646   $as_echo "$as_me: failed program was:" >&5
6647 sed 's/^/| /' conftest.$ac_ext >&5
6648
6649
6650 fi
6651
6652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6653   cat >conftest.$ac_ext <<_ACEOF
6654 /* confdefs.h.  */
6655 _ACEOF
6656 cat confdefs.h >>conftest.$ac_ext
6657 cat >>conftest.$ac_ext <<_ACEOF
6658 /* end confdefs.h.  */
6659 #define _LARGE_FILES 1
6660 #include <sys/types.h>
6661  /* Check that off_t can represent 2**63 - 1 correctly.
6662     We can't simply define LARGE_OFF_T to be 9223372036854775807,
6663     since some C++ compilers masquerading as C compilers
6664     incorrectly reject 9223372036854775807.  */
6665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6666   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6667                        && LARGE_OFF_T % 2147483647 == 1)
6668                       ? 1 : -1];
6669 int
6670 main ()
6671 {
6672
6673   ;
6674   return 0;
6675 }
6676 _ACEOF
6677 rm -f conftest.$ac_objext
6678 if { (ac_try="$ac_compile"
6679 case "(($ac_try" in
6680   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6681   *) ac_try_echo=$ac_try;;
6682 esac
6683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6684 $as_echo "$ac_try_echo") >&5
6685   (eval "$ac_compile") 2>conftest.er1
6686   ac_status=$?
6687   grep -v '^ *+' conftest.er1 >conftest.err
6688   rm -f conftest.er1
6689   cat conftest.err >&5
6690   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691   (exit $ac_status); } && {
6692          test -z "$ac_c_werror_flag" ||
6693          test ! -s conftest.err
6694        } && test -s conftest.$ac_objext; then
6695   ac_cv_sys_large_files=1; break
6696 else
6697   $as_echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6699
6700
6701 fi
6702
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704   ac_cv_sys_large_files=unknown
6705   break
6706 done
6707 fi
6708 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6709 $as_echo "$ac_cv_sys_large_files" >&6; }
6710 case $ac_cv_sys_large_files in #(
6711   no | unknown) ;;
6712   *)
6713 cat >>confdefs.h <<_ACEOF
6714 #define _LARGE_FILES $ac_cv_sys_large_files
6715 _ACEOF
6716 ;;
6717 esac
6718 rm -rf conftest*
6719   fi
6720 fi
6721
6722 { $as_echo "$as_me:$LINENO: checking for library containing strerror" >&5
6723 $as_echo_n "checking for library containing strerror... " >&6; }
6724 if test "${ac_cv_search_strerror+set}" = set; then
6725   $as_echo_n "(cached) " >&6
6726 else
6727   ac_func_search_save_LIBS=$LIBS
6728 cat >conftest.$ac_ext <<_ACEOF
6729 /* confdefs.h.  */
6730 _ACEOF
6731 cat confdefs.h >>conftest.$ac_ext
6732 cat >>conftest.$ac_ext <<_ACEOF
6733 /* end confdefs.h.  */
6734
6735 /* Override any GCC internal prototype to avoid an error.
6736    Use char because int might match the return type of a GCC
6737    builtin and then its argument prototype would still apply.  */
6738 #ifdef __cplusplus
6739 extern "C"
6740 #endif
6741 char strerror ();
6742 int
6743 main ()
6744 {
6745 return strerror ();
6746   ;
6747   return 0;
6748 }
6749 _ACEOF
6750 for ac_lib in '' cposix; do
6751   if test -z "$ac_lib"; then
6752     ac_res="none required"
6753   else
6754     ac_res=-l$ac_lib
6755     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
6756   fi
6757   rm -f conftest.$ac_objext conftest$ac_exeext
6758 if { (ac_try="$ac_link"
6759 case "(($ac_try" in
6760   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6761   *) ac_try_echo=$ac_try;;
6762 esac
6763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6764 $as_echo "$ac_try_echo") >&5
6765   (eval "$ac_link") 2>conftest.er1
6766   ac_status=$?
6767   grep -v '^ *+' conftest.er1 >conftest.err
6768   rm -f conftest.er1
6769   cat conftest.err >&5
6770   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6771   (exit $ac_status); } && {
6772          test -z "$ac_c_werror_flag" ||
6773          test ! -s conftest.err
6774        } && test -s conftest$ac_exeext && {
6775          test "$cross_compiling" = yes ||
6776          $as_test_x conftest$ac_exeext
6777        }; then
6778   ac_cv_search_strerror=$ac_res
6779 else
6780   $as_echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783
6784 fi
6785
6786 rm -rf conftest.dSYM
6787 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6788       conftest$ac_exeext
6789   if test "${ac_cv_search_strerror+set}" = set; then
6790   break
6791 fi
6792 done
6793 if test "${ac_cv_search_strerror+set}" = set; then
6794   :
6795 else
6796   ac_cv_search_strerror=no
6797 fi
6798 rm conftest.$ac_ext
6799 LIBS=$ac_func_search_save_LIBS
6800 fi
6801 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
6802 $as_echo "$ac_cv_search_strerror" >&6; }
6803 ac_res=$ac_cv_search_strerror
6804 if test "$ac_res" != no; then
6805   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
6806
6807 fi
6808
6809 { $as_echo "$as_me:$LINENO: checking for inline" >&5
6810 $as_echo_n "checking for inline... " >&6; }
6811 if test "${ac_cv_c_inline+set}" = set; then
6812   $as_echo_n "(cached) " >&6
6813 else
6814   ac_cv_c_inline=no
6815 for ac_kw in inline __inline__ __inline; do
6816   cat >conftest.$ac_ext <<_ACEOF
6817 /* confdefs.h.  */
6818 _ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h.  */
6822 #ifndef __cplusplus
6823 typedef int foo_t;
6824 static $ac_kw foo_t static_foo () {return 0; }
6825 $ac_kw foo_t foo () {return 0; }
6826 #endif
6827
6828 _ACEOF
6829 rm -f conftest.$ac_objext
6830 if { (ac_try="$ac_compile"
6831 case "(($ac_try" in
6832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6833   *) ac_try_echo=$ac_try;;
6834 esac
6835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6836 $as_echo "$ac_try_echo") >&5
6837   (eval "$ac_compile") 2>conftest.er1
6838   ac_status=$?
6839   grep -v '^ *+' conftest.er1 >conftest.err
6840   rm -f conftest.er1
6841   cat conftest.err >&5
6842   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843   (exit $ac_status); } && {
6844          test -z "$ac_c_werror_flag" ||
6845          test ! -s conftest.err
6846        } && test -s conftest.$ac_objext; then
6847   ac_cv_c_inline=$ac_kw
6848 else
6849   $as_echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6851
6852
6853 fi
6854
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856   test "$ac_cv_c_inline" != no && break
6857 done
6858
6859 fi
6860 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
6861 $as_echo "$ac_cv_c_inline" >&6; }
6862
6863
6864 case $ac_cv_c_inline in
6865   inline | yes) ;;
6866   *)
6867     case $ac_cv_c_inline in
6868       no) ac_val=;;
6869       *) ac_val=$ac_cv_c_inline;;
6870     esac
6871     cat >>confdefs.h <<_ACEOF
6872 #ifndef __cplusplus
6873 #define inline $ac_val
6874 #endif
6875 _ACEOF
6876     ;;
6877 esac
6878
6879
6880
6881
6882
6883
6884 for ac_header in $ac_header_list
6885 do
6886 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6888   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6889 $as_echo_n "checking for $ac_header... " >&6; }
6890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6891   $as_echo_n "(cached) " >&6
6892 fi
6893 ac_res=`eval 'as_val=${'$as_ac_Header'}
6894                  $as_echo "$as_val"'`
6895                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6896 $as_echo "$ac_res" >&6; }
6897 else
6898   # Is the header compilable?
6899 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6900 $as_echo_n "checking $ac_header usability... " >&6; }
6901 cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h.  */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h.  */
6907 $ac_includes_default
6908 #include <$ac_header>
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (ac_try="$ac_compile"
6912 case "(($ac_try" in
6913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914   *) ac_try_echo=$ac_try;;
6915 esac
6916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6917 $as_echo "$ac_try_echo") >&5
6918   (eval "$ac_compile") 2>conftest.er1
6919   ac_status=$?
6920   grep -v '^ *+' conftest.er1 >conftest.err
6921   rm -f conftest.er1
6922   cat conftest.err >&5
6923   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924   (exit $ac_status); } && {
6925          test -z "$ac_c_werror_flag" ||
6926          test ! -s conftest.err
6927        } && test -s conftest.$ac_objext; then
6928   ac_header_compiler=yes
6929 else
6930   $as_echo "$as_me: failed program was:" >&5
6931 sed 's/^/| /' conftest.$ac_ext >&5
6932
6933         ac_header_compiler=no
6934 fi
6935
6936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6937 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6938 $as_echo "$ac_header_compiler" >&6; }
6939
6940 # Is the header present?
6941 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6942 $as_echo_n "checking $ac_header presence... " >&6; }
6943 cat >conftest.$ac_ext <<_ACEOF
6944 /* confdefs.h.  */
6945 _ACEOF
6946 cat confdefs.h >>conftest.$ac_ext
6947 cat >>conftest.$ac_ext <<_ACEOF
6948 /* end confdefs.h.  */
6949 #include <$ac_header>
6950 _ACEOF
6951 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
6965          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6966          test ! -s conftest.err
6967        }; then
6968   ac_header_preproc=yes
6969 else
6970   $as_echo "$as_me: failed program was:" >&5
6971 sed 's/^/| /' conftest.$ac_ext >&5
6972
6973   ac_header_preproc=no
6974 fi
6975
6976 rm -f conftest.err conftest.$ac_ext
6977 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6978 $as_echo "$ac_header_preproc" >&6; }
6979
6980 # So?  What about this header?
6981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6982   yes:no: )
6983     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6984 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6985     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6986 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6987     ac_header_preproc=yes
6988     ;;
6989   no:yes:* )
6990     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6991 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6992     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6993 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6994     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6995 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6996     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6997 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6998     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6999 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7000     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7001 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7002     ( cat <<\_ASBOX
7003 ## ------------------------------ ##
7004 ## Report this to bug-tar@gnu.org ##
7005 ## ------------------------------ ##
7006 _ASBOX
7007      ) | sed "s/^/$as_me: WARNING:     /" >&2
7008     ;;
7009 esac
7010 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7011 $as_echo_n "checking for $ac_header... " >&6; }
7012 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7013   $as_echo_n "(cached) " >&6
7014 else
7015   eval "$as_ac_Header=\$ac_header_preproc"
7016 fi
7017 ac_res=`eval 'as_val=${'$as_ac_Header'}
7018                  $as_echo "$as_val"'`
7019                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7020 $as_echo "$ac_res" >&6; }
7021
7022 fi
7023 as_val=`eval 'as_val=${'$as_ac_Header'}
7024                  $as_echo "$as_val"'`
7025    if test "x$as_val" = x""yes; then
7026   cat >>confdefs.h <<_ACEOF
7027 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7028 _ACEOF
7029
7030 fi
7031
7032 done
7033
7034
7035
7036
7037
7038
7039
7040
7041
7042
7043
7044
7045
7046
7047
7048
7049
7050
7051
7052
7053
7054
7055
7056
7057
7058
7059
7060
7061
7062
7063
7064
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077
7078
7079
7080
7081
7082
7083
7084
7085
7086
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108 for ac_header in sys/buf.h
7109 do
7110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7111 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7112 $as_echo_n "checking for $ac_header... " >&6; }
7113 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7114   $as_echo_n "(cached) " >&6
7115 else
7116   cat >conftest.$ac_ext <<_ACEOF
7117 /* confdefs.h.  */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h.  */
7122 #if HAVE_SYS_PARAM_H
7123 #include <sys/param.h>
7124 #endif
7125
7126 #include <$ac_header>
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7130 case "(($ac_try" in
7131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132   *) ac_try_echo=$ac_try;;
7133 esac
7134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7135 $as_echo "$ac_try_echo") >&5
7136   (eval "$ac_compile") 2>conftest.er1
7137   ac_status=$?
7138   grep -v '^ *+' conftest.er1 >conftest.err
7139   rm -f conftest.er1
7140   cat conftest.err >&5
7141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7142   (exit $ac_status); } && {
7143          test -z "$ac_c_werror_flag" ||
7144          test ! -s conftest.err
7145        } && test -s conftest.$ac_objext; then
7146   eval "$as_ac_Header=yes"
7147 else
7148   $as_echo "$as_me: failed program was:" >&5
7149 sed 's/^/| /' conftest.$ac_ext >&5
7150
7151         eval "$as_ac_Header=no"
7152 fi
7153
7154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7155 fi
7156 ac_res=`eval 'as_val=${'$as_ac_Header'}
7157                  $as_echo "$as_val"'`
7158                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7159 $as_echo "$ac_res" >&6; }
7160 as_val=`eval 'as_val=${'$as_ac_Header'}
7161                  $as_echo "$as_val"'`
7162    if test "x$as_val" = x""yes; then
7163   cat >>confdefs.h <<_ACEOF
7164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7165 _ACEOF
7166
7167 fi
7168
7169 done
7170
7171
7172 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7173 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7174 if test "${ac_cv_header_sys_wait_h+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 #include <sys/wait.h>
7185 #ifndef WEXITSTATUS
7186 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7187 #endif
7188 #ifndef WIFEXITED
7189 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7190 #endif
7191
7192 int
7193 main ()
7194 {
7195   int s;
7196   wait (&s);
7197   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7198   ;
7199   return 0;
7200 }
7201 _ACEOF
7202 rm -f conftest.$ac_objext
7203 if { (ac_try="$ac_compile"
7204 case "(($ac_try" in
7205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7206   *) ac_try_echo=$ac_try;;
7207 esac
7208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7209 $as_echo "$ac_try_echo") >&5
7210   (eval "$ac_compile") 2>conftest.er1
7211   ac_status=$?
7212   grep -v '^ *+' conftest.er1 >conftest.err
7213   rm -f conftest.er1
7214   cat conftest.err >&5
7215   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7216   (exit $ac_status); } && {
7217          test -z "$ac_c_werror_flag" ||
7218          test ! -s conftest.err
7219        } && test -s conftest.$ac_objext; then
7220   ac_cv_header_sys_wait_h=yes
7221 else
7222   $as_echo "$as_me: failed program was:" >&5
7223 sed 's/^/| /' conftest.$ac_ext >&5
7224
7225         ac_cv_header_sys_wait_h=no
7226 fi
7227
7228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7229 fi
7230 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7231 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7232 if test $ac_cv_header_sys_wait_h = yes; then
7233
7234 cat >>confdefs.h <<\_ACEOF
7235 #define HAVE_SYS_WAIT_H 1
7236 _ACEOF
7237
7238 fi
7239
7240
7241
7242
7243
7244
7245
7246 ac_header_dirent=no
7247 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
7248   as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
7249 { $as_echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
7250 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
7251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7252   $as_echo_n "(cached) " >&6
7253 else
7254   cat >conftest.$ac_ext <<_ACEOF
7255 /* confdefs.h.  */
7256 _ACEOF
7257 cat confdefs.h >>conftest.$ac_ext
7258 cat >>conftest.$ac_ext <<_ACEOF
7259 /* end confdefs.h.  */
7260 #include <sys/types.h>
7261 #include <$ac_hdr>
7262
7263 int
7264 main ()
7265 {
7266 if ((DIR *) 0)
7267 return 0;
7268   ;
7269   return 0;
7270 }
7271 _ACEOF
7272 rm -f conftest.$ac_objext
7273 if { (ac_try="$ac_compile"
7274 case "(($ac_try" in
7275   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7276   *) ac_try_echo=$ac_try;;
7277 esac
7278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7279 $as_echo "$ac_try_echo") >&5
7280   (eval "$ac_compile") 2>conftest.er1
7281   ac_status=$?
7282   grep -v '^ *+' conftest.er1 >conftest.err
7283   rm -f conftest.er1
7284   cat conftest.err >&5
7285   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286   (exit $ac_status); } && {
7287          test -z "$ac_c_werror_flag" ||
7288          test ! -s conftest.err
7289        } && test -s conftest.$ac_objext; then
7290   eval "$as_ac_Header=yes"
7291 else
7292   $as_echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7294
7295         eval "$as_ac_Header=no"
7296 fi
7297
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 fi
7300 ac_res=`eval 'as_val=${'$as_ac_Header'}
7301                  $as_echo "$as_val"'`
7302                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7303 $as_echo "$ac_res" >&6; }
7304 as_val=`eval 'as_val=${'$as_ac_Header'}
7305                  $as_echo "$as_val"'`
7306    if test "x$as_val" = x""yes; then
7307   cat >>confdefs.h <<_ACEOF
7308 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
7309 _ACEOF
7310
7311 ac_header_dirent=$ac_hdr; break
7312 fi
7313
7314 done
7315 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
7316 if test $ac_header_dirent = dirent.h; then
7317   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
7318 $as_echo_n "checking for library containing opendir... " >&6; }
7319 if test "${ac_cv_search_opendir+set}" = set; then
7320   $as_echo_n "(cached) " >&6
7321 else
7322   ac_func_search_save_LIBS=$LIBS
7323 cat >conftest.$ac_ext <<_ACEOF
7324 /* confdefs.h.  */
7325 _ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h.  */
7329
7330 /* Override any GCC internal prototype to avoid an error.
7331    Use char because int might match the return type of a GCC
7332    builtin and then its argument prototype would still apply.  */
7333 #ifdef __cplusplus
7334 extern "C"
7335 #endif
7336 char opendir ();
7337 int
7338 main ()
7339 {
7340 return opendir ();
7341   ;
7342   return 0;
7343 }
7344 _ACEOF
7345 for ac_lib in '' dir; do
7346   if test -z "$ac_lib"; then
7347     ac_res="none required"
7348   else
7349     ac_res=-l$ac_lib
7350     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7351   fi
7352   rm -f conftest.$ac_objext conftest$ac_exeext
7353 if { (ac_try="$ac_link"
7354 case "(($ac_try" in
7355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7356   *) ac_try_echo=$ac_try;;
7357 esac
7358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7359 $as_echo "$ac_try_echo") >&5
7360   (eval "$ac_link") 2>conftest.er1
7361   ac_status=$?
7362   grep -v '^ *+' conftest.er1 >conftest.err
7363   rm -f conftest.er1
7364   cat conftest.err >&5
7365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7366   (exit $ac_status); } && {
7367          test -z "$ac_c_werror_flag" ||
7368          test ! -s conftest.err
7369        } && test -s conftest$ac_exeext && {
7370          test "$cross_compiling" = yes ||
7371          $as_test_x conftest$ac_exeext
7372        }; then
7373   ac_cv_search_opendir=$ac_res
7374 else
7375   $as_echo "$as_me: failed program was:" >&5
7376 sed 's/^/| /' conftest.$ac_ext >&5
7377
7378
7379 fi
7380
7381 rm -rf conftest.dSYM
7382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7383       conftest$ac_exeext
7384   if test "${ac_cv_search_opendir+set}" = set; then
7385   break
7386 fi
7387 done
7388 if test "${ac_cv_search_opendir+set}" = set; then
7389   :
7390 else
7391   ac_cv_search_opendir=no
7392 fi
7393 rm conftest.$ac_ext
7394 LIBS=$ac_func_search_save_LIBS
7395 fi
7396 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7397 $as_echo "$ac_cv_search_opendir" >&6; }
7398 ac_res=$ac_cv_search_opendir
7399 if test "$ac_res" != no; then
7400   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7401
7402 fi
7403
7404 else
7405   { $as_echo "$as_me:$LINENO: checking for library containing opendir" >&5
7406 $as_echo_n "checking for library containing opendir... " >&6; }
7407 if test "${ac_cv_search_opendir+set}" = set; then
7408   $as_echo_n "(cached) " >&6
7409 else
7410   ac_func_search_save_LIBS=$LIBS
7411 cat >conftest.$ac_ext <<_ACEOF
7412 /* confdefs.h.  */
7413 _ACEOF
7414 cat confdefs.h >>conftest.$ac_ext
7415 cat >>conftest.$ac_ext <<_ACEOF
7416 /* end confdefs.h.  */
7417
7418 /* Override any GCC internal prototype to avoid an error.
7419    Use char because int might match the return type of a GCC
7420    builtin and then its argument prototype would still apply.  */
7421 #ifdef __cplusplus
7422 extern "C"
7423 #endif
7424 char opendir ();
7425 int
7426 main ()
7427 {
7428 return opendir ();
7429   ;
7430   return 0;
7431 }
7432 _ACEOF
7433 for ac_lib in '' x; do
7434   if test -z "$ac_lib"; then
7435     ac_res="none required"
7436   else
7437     ac_res=-l$ac_lib
7438     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
7439   fi
7440   rm -f conftest.$ac_objext conftest$ac_exeext
7441 if { (ac_try="$ac_link"
7442 case "(($ac_try" in
7443   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7444   *) ac_try_echo=$ac_try;;
7445 esac
7446 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7447 $as_echo "$ac_try_echo") >&5
7448   (eval "$ac_link") 2>conftest.er1
7449   ac_status=$?
7450   grep -v '^ *+' conftest.er1 >conftest.err
7451   rm -f conftest.er1
7452   cat conftest.err >&5
7453   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7454   (exit $ac_status); } && {
7455          test -z "$ac_c_werror_flag" ||
7456          test ! -s conftest.err
7457        } && test -s conftest$ac_exeext && {
7458          test "$cross_compiling" = yes ||
7459          $as_test_x conftest$ac_exeext
7460        }; then
7461   ac_cv_search_opendir=$ac_res
7462 else
7463   $as_echo "$as_me: failed program was:" >&5
7464 sed 's/^/| /' conftest.$ac_ext >&5
7465
7466
7467 fi
7468
7469 rm -rf conftest.dSYM
7470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7471       conftest$ac_exeext
7472   if test "${ac_cv_search_opendir+set}" = set; then
7473   break
7474 fi
7475 done
7476 if test "${ac_cv_search_opendir+set}" = set; then
7477   :
7478 else
7479   ac_cv_search_opendir=no
7480 fi
7481 rm conftest.$ac_ext
7482 LIBS=$ac_func_search_save_LIBS
7483 fi
7484 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
7485 $as_echo "$ac_cv_search_opendir" >&6; }
7486 ac_res=$ac_cv_search_opendir
7487 if test "$ac_res" != no; then
7488   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7489
7490 fi
7491
7492 fi
7493
7494 { $as_echo "$as_me:$LINENO: checking whether sys/types.h defines makedev" >&5
7495 $as_echo_n "checking whether sys/types.h defines makedev... " >&6; }
7496 if test "${ac_cv_header_sys_types_h_makedev+set}" = set; then
7497   $as_echo_n "(cached) " >&6
7498 else
7499   cat >conftest.$ac_ext <<_ACEOF
7500 /* confdefs.h.  */
7501 _ACEOF
7502 cat confdefs.h >>conftest.$ac_ext
7503 cat >>conftest.$ac_ext <<_ACEOF
7504 /* end confdefs.h.  */
7505 #include <sys/types.h>
7506 int
7507 main ()
7508 {
7509 return makedev(0, 0);
7510   ;
7511   return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext conftest$ac_exeext
7515 if { (ac_try="$ac_link"
7516 case "(($ac_try" in
7517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518   *) ac_try_echo=$ac_try;;
7519 esac
7520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7521 $as_echo "$ac_try_echo") >&5
7522   (eval "$ac_link") 2>conftest.er1
7523   ac_status=$?
7524   grep -v '^ *+' conftest.er1 >conftest.err
7525   rm -f conftest.er1
7526   cat conftest.err >&5
7527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7528   (exit $ac_status); } && {
7529          test -z "$ac_c_werror_flag" ||
7530          test ! -s conftest.err
7531        } && test -s conftest$ac_exeext && {
7532          test "$cross_compiling" = yes ||
7533          $as_test_x conftest$ac_exeext
7534        }; then
7535   ac_cv_header_sys_types_h_makedev=yes
7536 else
7537   $as_echo "$as_me: failed program was:" >&5
7538 sed 's/^/| /' conftest.$ac_ext >&5
7539
7540         ac_cv_header_sys_types_h_makedev=no
7541 fi
7542
7543 rm -rf conftest.dSYM
7544 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7545       conftest$ac_exeext conftest.$ac_ext
7546
7547 fi
7548 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_types_h_makedev" >&5
7549 $as_echo "$ac_cv_header_sys_types_h_makedev" >&6; }
7550
7551 if test $ac_cv_header_sys_types_h_makedev = no; then
7552 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7553   { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7554 $as_echo_n "checking for sys/mkdev.h... " >&6; }
7555 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7556   $as_echo_n "(cached) " >&6
7557 fi
7558 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7559 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
7560 else
7561   # Is the header compilable?
7562 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h usability" >&5
7563 $as_echo_n "checking sys/mkdev.h usability... " >&6; }
7564 cat >conftest.$ac_ext <<_ACEOF
7565 /* confdefs.h.  */
7566 _ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h.  */
7570 $ac_includes_default
7571 #include <sys/mkdev.h>
7572 _ACEOF
7573 rm -f conftest.$ac_objext
7574 if { (ac_try="$ac_compile"
7575 case "(($ac_try" in
7576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7577   *) ac_try_echo=$ac_try;;
7578 esac
7579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7580 $as_echo "$ac_try_echo") >&5
7581   (eval "$ac_compile") 2>conftest.er1
7582   ac_status=$?
7583   grep -v '^ *+' conftest.er1 >conftest.err
7584   rm -f conftest.er1
7585   cat conftest.err >&5
7586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587   (exit $ac_status); } && {
7588          test -z "$ac_c_werror_flag" ||
7589          test ! -s conftest.err
7590        } && test -s conftest.$ac_objext; then
7591   ac_header_compiler=yes
7592 else
7593   $as_echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7595
7596         ac_header_compiler=no
7597 fi
7598
7599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7600 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7601 $as_echo "$ac_header_compiler" >&6; }
7602
7603 # Is the header present?
7604 { $as_echo "$as_me:$LINENO: checking sys/mkdev.h presence" >&5
7605 $as_echo_n "checking sys/mkdev.h presence... " >&6; }
7606 cat >conftest.$ac_ext <<_ACEOF
7607 /* confdefs.h.  */
7608 _ACEOF
7609 cat confdefs.h >>conftest.$ac_ext
7610 cat >>conftest.$ac_ext <<_ACEOF
7611 /* end confdefs.h.  */
7612 #include <sys/mkdev.h>
7613 _ACEOF
7614 if { (ac_try="$ac_cpp conftest.$ac_ext"
7615 case "(($ac_try" in
7616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7617   *) ac_try_echo=$ac_try;;
7618 esac
7619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7620 $as_echo "$ac_try_echo") >&5
7621   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7622   ac_status=$?
7623   grep -v '^ *+' conftest.er1 >conftest.err
7624   rm -f conftest.er1
7625   cat conftest.err >&5
7626   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627   (exit $ac_status); } >/dev/null && {
7628          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7629          test ! -s conftest.err
7630        }; then
7631   ac_header_preproc=yes
7632 else
7633   $as_echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7635
7636   ac_header_preproc=no
7637 fi
7638
7639 rm -f conftest.err conftest.$ac_ext
7640 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7641 $as_echo "$ac_header_preproc" >&6; }
7642
7643 # So?  What about this header?
7644 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7645   yes:no: )
7646     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&5
7647 $as_echo "$as_me: WARNING: sys/mkdev.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7648     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&5
7649 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the compiler's result" >&2;}
7650     ac_header_preproc=yes
7651     ;;
7652   no:yes:* )
7653     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: present but cannot be compiled" >&5
7654 $as_echo "$as_me: WARNING: sys/mkdev.h: present but cannot be compiled" >&2;}
7655     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&5
7656 $as_echo "$as_me: WARNING: sys/mkdev.h:     check for missing prerequisite headers?" >&2;}
7657     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: see the Autoconf documentation" >&5
7658 $as_echo "$as_me: WARNING: sys/mkdev.h: see the Autoconf documentation" >&2;}
7659     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&5
7660 $as_echo "$as_me: WARNING: sys/mkdev.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7661     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&5
7662 $as_echo "$as_me: WARNING: sys/mkdev.h: proceeding with the preprocessor's result" >&2;}
7663     { $as_echo "$as_me:$LINENO: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&5
7664 $as_echo "$as_me: WARNING: sys/mkdev.h: in the future, the compiler will take precedence" >&2;}
7665     ( cat <<\_ASBOX
7666 ## ------------------------------ ##
7667 ## Report this to bug-tar@gnu.org ##
7668 ## ------------------------------ ##
7669 _ASBOX
7670      ) | sed "s/^/$as_me: WARNING:     /" >&2
7671     ;;
7672 esac
7673 { $as_echo "$as_me:$LINENO: checking for sys/mkdev.h" >&5
7674 $as_echo_n "checking for sys/mkdev.h... " >&6; }
7675 if test "${ac_cv_header_sys_mkdev_h+set}" = set; then
7676   $as_echo_n "(cached) " >&6
7677 else
7678   ac_cv_header_sys_mkdev_h=$ac_header_preproc
7679 fi
7680 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_mkdev_h" >&5
7681 $as_echo "$ac_cv_header_sys_mkdev_h" >&6; }
7682
7683 fi
7684 if test "x$ac_cv_header_sys_mkdev_h" = x""yes; then
7685
7686 cat >>confdefs.h <<\_ACEOF
7687 #define MAJOR_IN_MKDEV 1
7688 _ACEOF
7689
7690 fi
7691
7692
7693
7694   if test $ac_cv_header_sys_mkdev_h = no; then
7695     if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7696   { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7697 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
7698 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7699   $as_echo_n "(cached) " >&6
7700 fi
7701 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7702 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
7703 else
7704   # Is the header compilable?
7705 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h usability" >&5
7706 $as_echo_n "checking sys/sysmacros.h usability... " >&6; }
7707 cat >conftest.$ac_ext <<_ACEOF
7708 /* confdefs.h.  */
7709 _ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h.  */
7713 $ac_includes_default
7714 #include <sys/sysmacros.h>
7715 _ACEOF
7716 rm -f conftest.$ac_objext
7717 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
7725   ac_status=$?
7726   grep -v '^ *+' conftest.er1 >conftest.err
7727   rm -f conftest.er1
7728   cat conftest.err >&5
7729   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730   (exit $ac_status); } && {
7731          test -z "$ac_c_werror_flag" ||
7732          test ! -s conftest.err
7733        } && test -s conftest.$ac_objext; then
7734   ac_header_compiler=yes
7735 else
7736   $as_echo "$as_me: failed program was:" >&5
7737 sed 's/^/| /' conftest.$ac_ext >&5
7738
7739         ac_header_compiler=no
7740 fi
7741
7742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7743 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7744 $as_echo "$ac_header_compiler" >&6; }
7745
7746 # Is the header present?
7747 { $as_echo "$as_me:$LINENO: checking sys/sysmacros.h presence" >&5
7748 $as_echo_n "checking sys/sysmacros.h presence... " >&6; }
7749 cat >conftest.$ac_ext <<_ACEOF
7750 /* confdefs.h.  */
7751 _ACEOF
7752 cat confdefs.h >>conftest.$ac_ext
7753 cat >>conftest.$ac_ext <<_ACEOF
7754 /* end confdefs.h.  */
7755 #include <sys/sysmacros.h>
7756 _ACEOF
7757 if { (ac_try="$ac_cpp conftest.$ac_ext"
7758 case "(($ac_try" in
7759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7760   *) ac_try_echo=$ac_try;;
7761 esac
7762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7763 $as_echo "$ac_try_echo") >&5
7764   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7765   ac_status=$?
7766   grep -v '^ *+' conftest.er1 >conftest.err
7767   rm -f conftest.er1
7768   cat conftest.err >&5
7769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770   (exit $ac_status); } >/dev/null && {
7771          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7772          test ! -s conftest.err
7773        }; then
7774   ac_header_preproc=yes
7775 else
7776   $as_echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7778
7779   ac_header_preproc=no
7780 fi
7781
7782 rm -f conftest.err conftest.$ac_ext
7783 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7784 $as_echo "$ac_header_preproc" >&6; }
7785
7786 # So?  What about this header?
7787 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7788   yes:no: )
7789     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&5
7790 $as_echo "$as_me: WARNING: sys/sysmacros.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
7791     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&5
7792 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the compiler's result" >&2;}
7793     ac_header_preproc=yes
7794     ;;
7795   no:yes:* )
7796     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: present but cannot be compiled" >&5
7797 $as_echo "$as_me: WARNING: sys/sysmacros.h: present but cannot be compiled" >&2;}
7798     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&5
7799 $as_echo "$as_me: WARNING: sys/sysmacros.h:     check for missing prerequisite headers?" >&2;}
7800     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&5
7801 $as_echo "$as_me: WARNING: sys/sysmacros.h: see the Autoconf documentation" >&2;}
7802     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&5
7803 $as_echo "$as_me: WARNING: sys/sysmacros.h:     section \"Present But Cannot Be Compiled\"" >&2;}
7804     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&5
7805 $as_echo "$as_me: WARNING: sys/sysmacros.h: proceeding with the preprocessor's result" >&2;}
7806     { $as_echo "$as_me:$LINENO: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&5
7807 $as_echo "$as_me: WARNING: sys/sysmacros.h: in the future, the compiler will take precedence" >&2;}
7808     ( cat <<\_ASBOX
7809 ## ------------------------------ ##
7810 ## Report this to bug-tar@gnu.org ##
7811 ## ------------------------------ ##
7812 _ASBOX
7813      ) | sed "s/^/$as_me: WARNING:     /" >&2
7814     ;;
7815 esac
7816 { $as_echo "$as_me:$LINENO: checking for sys/sysmacros.h" >&5
7817 $as_echo_n "checking for sys/sysmacros.h... " >&6; }
7818 if test "${ac_cv_header_sys_sysmacros_h+set}" = set; then
7819   $as_echo_n "(cached) " >&6
7820 else
7821   ac_cv_header_sys_sysmacros_h=$ac_header_preproc
7822 fi
7823 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_sysmacros_h" >&5
7824 $as_echo "$ac_cv_header_sys_sysmacros_h" >&6; }
7825
7826 fi
7827 if test "x$ac_cv_header_sys_sysmacros_h" = x""yes; then
7828
7829 cat >>confdefs.h <<\_ACEOF
7830 #define MAJOR_IN_SYSMACROS 1
7831 _ACEOF
7832
7833 fi
7834
7835
7836   fi
7837 fi
7838
7839 { $as_echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
7840 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
7841 if test "${ac_cv_header_stat_broken+set}" = set; then
7842   $as_echo_n "(cached) " >&6
7843 else
7844   cat >conftest.$ac_ext <<_ACEOF
7845 /* confdefs.h.  */
7846 _ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h.  */
7850 #include <sys/types.h>
7851 #include <sys/stat.h>
7852
7853 #if defined S_ISBLK && defined S_IFDIR
7854 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
7855 #endif
7856
7857 #if defined S_ISBLK && defined S_IFCHR
7858 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
7859 #endif
7860
7861 #if defined S_ISLNK && defined S_IFREG
7862 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
7863 #endif
7864
7865 #if defined S_ISSOCK && defined S_IFREG
7866 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
7867 #endif
7868
7869 _ACEOF
7870 rm -f conftest.$ac_objext
7871 if { (ac_try="$ac_compile"
7872 case "(($ac_try" in
7873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7874   *) ac_try_echo=$ac_try;;
7875 esac
7876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7877 $as_echo "$ac_try_echo") >&5
7878   (eval "$ac_compile") 2>conftest.er1
7879   ac_status=$?
7880   grep -v '^ *+' conftest.er1 >conftest.err
7881   rm -f conftest.er1
7882   cat conftest.err >&5
7883   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7884   (exit $ac_status); } && {
7885          test -z "$ac_c_werror_flag" ||
7886          test ! -s conftest.err
7887        } && test -s conftest.$ac_objext; then
7888   ac_cv_header_stat_broken=no
7889 else
7890   $as_echo "$as_me: failed program was:" >&5
7891 sed 's/^/| /' conftest.$ac_ext >&5
7892
7893         ac_cv_header_stat_broken=yes
7894 fi
7895
7896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7897 fi
7898 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
7899 $as_echo "$ac_cv_header_stat_broken" >&6; }
7900 if test $ac_cv_header_stat_broken = yes; then
7901
7902 cat >>confdefs.h <<\_ACEOF
7903 #define STAT_MACROS_BROKEN 1
7904 _ACEOF
7905
7906 fi
7907
7908 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7909 $as_echo_n "checking for ANSI C header files... " >&6; }
7910 if test "${ac_cv_header_stdc+set}" = set; then
7911   $as_echo_n "(cached) " >&6
7912 else
7913   cat >conftest.$ac_ext <<_ACEOF
7914 /* confdefs.h.  */
7915 _ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h.  */
7919 #include <stdlib.h>
7920 #include <stdarg.h>
7921 #include <string.h>
7922 #include <float.h>
7923
7924 int
7925 main ()
7926 {
7927
7928   ;
7929   return 0;
7930 }
7931 _ACEOF
7932 rm -f conftest.$ac_objext
7933 if { (ac_try="$ac_compile"
7934 case "(($ac_try" in
7935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936   *) ac_try_echo=$ac_try;;
7937 esac
7938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7939 $as_echo "$ac_try_echo") >&5
7940   (eval "$ac_compile") 2>conftest.er1
7941   ac_status=$?
7942   grep -v '^ *+' conftest.er1 >conftest.err
7943   rm -f conftest.er1
7944   cat conftest.err >&5
7945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946   (exit $ac_status); } && {
7947          test -z "$ac_c_werror_flag" ||
7948          test ! -s conftest.err
7949        } && test -s conftest.$ac_objext; then
7950   ac_cv_header_stdc=yes
7951 else
7952   $as_echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.$ac_ext >&5
7954
7955         ac_cv_header_stdc=no
7956 fi
7957
7958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959
7960 if test $ac_cv_header_stdc = yes; then
7961   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7962   cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h.  */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h.  */
7968 #include <string.h>
7969
7970 _ACEOF
7971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7972   $EGREP "memchr" >/dev/null 2>&1; then
7973   :
7974 else
7975   ac_cv_header_stdc=no
7976 fi
7977 rm -f conftest*
7978
7979 fi
7980
7981 if test $ac_cv_header_stdc = yes; then
7982   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7983   cat >conftest.$ac_ext <<_ACEOF
7984 /* confdefs.h.  */
7985 _ACEOF
7986 cat confdefs.h >>conftest.$ac_ext
7987 cat >>conftest.$ac_ext <<_ACEOF
7988 /* end confdefs.h.  */
7989 #include <stdlib.h>
7990
7991 _ACEOF
7992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7993   $EGREP "free" >/dev/null 2>&1; then
7994   :
7995 else
7996   ac_cv_header_stdc=no
7997 fi
7998 rm -f conftest*
7999
8000 fi
8001
8002 if test $ac_cv_header_stdc = yes; then
8003   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8004   if test "$cross_compiling" = yes; then
8005   :
8006 else
8007   cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h.  */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h.  */
8013 #include <ctype.h>
8014 #include <stdlib.h>
8015 #if ((' ' & 0x0FF) == 0x020)
8016 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8017 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8018 #else
8019 # define ISLOWER(c) \
8020                    (('a' <= (c) && (c) <= 'i') \
8021                      || ('j' <= (c) && (c) <= 'r') \
8022                      || ('s' <= (c) && (c) <= 'z'))
8023 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8024 #endif
8025
8026 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8027 int
8028 main ()
8029 {
8030   int i;
8031   for (i = 0; i < 256; i++)
8032     if (XOR (islower (i), ISLOWER (i))
8033         || toupper (i) != TOUPPER (i))
8034       return 2;
8035   return 0;
8036 }
8037 _ACEOF
8038 rm -f conftest$ac_exeext
8039 if { (ac_try="$ac_link"
8040 case "(($ac_try" in
8041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8042   *) ac_try_echo=$ac_try;;
8043 esac
8044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8045 $as_echo "$ac_try_echo") >&5
8046   (eval "$ac_link") 2>&5
8047   ac_status=$?
8048   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8049   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8050   { (case "(($ac_try" in
8051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8052   *) ac_try_echo=$ac_try;;
8053 esac
8054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8055 $as_echo "$ac_try_echo") >&5
8056   (eval "$ac_try") 2>&5
8057   ac_status=$?
8058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059   (exit $ac_status); }; }; then
8060   :
8061 else
8062   $as_echo "$as_me: program exited with status $ac_status" >&5
8063 $as_echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066 ( exit $ac_status )
8067 ac_cv_header_stdc=no
8068 fi
8069 rm -rf conftest.dSYM
8070 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8071 fi
8072
8073
8074 fi
8075 fi
8076 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
8077 $as_echo "$ac_cv_header_stdc" >&6; }
8078 if test $ac_cv_header_stdc = yes; then
8079
8080 cat >>confdefs.h <<\_ACEOF
8081 #define STDC_HEADERS 1
8082 _ACEOF
8083
8084 fi
8085
8086
8087 { $as_echo "$as_me:$LINENO: checking for st_fstype string in struct stat" >&5
8088 $as_echo_n "checking for st_fstype string in struct stat... " >&6; }
8089 if test "${diff_cv_st_fstype_string+set}" = set; then
8090   $as_echo_n "(cached) " >&6
8091 else
8092   cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h.  */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h.  */
8098 #include <sys/types.h>
8099 #include <sys/stat.h>
8100 int
8101 main ()
8102 {
8103 struct stat s; s.st_fstype[0] = 'x';
8104   ;
8105   return 0;
8106 }
8107 _ACEOF
8108 rm -f conftest.$ac_objext
8109 if { (ac_try="$ac_compile"
8110 case "(($ac_try" in
8111   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8112   *) ac_try_echo=$ac_try;;
8113 esac
8114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8115 $as_echo "$ac_try_echo") >&5
8116   (eval "$ac_compile") 2>conftest.er1
8117   ac_status=$?
8118   grep -v '^ *+' conftest.er1 >conftest.err
8119   rm -f conftest.er1
8120   cat conftest.err >&5
8121   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122   (exit $ac_status); } && {
8123          test -z "$ac_c_werror_flag" ||
8124          test ! -s conftest.err
8125        } && test -s conftest.$ac_objext; then
8126   diff_cv_st_fstype_string=yes
8127 else
8128   $as_echo "$as_me: failed program was:" >&5
8129 sed 's/^/| /' conftest.$ac_ext >&5
8130
8131         diff_cv_st_fstype_string=no
8132 fi
8133
8134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135 fi
8136
8137 { $as_echo "$as_me:$LINENO: result: $diff_cv_st_fstype_string" >&5
8138 $as_echo "$diff_cv_st_fstype_string" >&6; }
8139 if test $diff_cv_st_fstype_string = yes; then
8140
8141 cat >>confdefs.h <<\_ACEOF
8142 #define HAVE_ST_FSTYPE_STRING 1
8143 _ACEOF
8144
8145 fi
8146
8147 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
8148 $as_echo_n "checking return type of signal handlers... " >&6; }
8149 if test "${ac_cv_type_signal+set}" = set; then
8150   $as_echo_n "(cached) " >&6
8151 else
8152   cat >conftest.$ac_ext <<_ACEOF
8153 /* confdefs.h.  */
8154 _ACEOF
8155 cat confdefs.h >>conftest.$ac_ext
8156 cat >>conftest.$ac_ext <<_ACEOF
8157 /* end confdefs.h.  */
8158 #include <sys/types.h>
8159 #include <signal.h>
8160
8161 int
8162 main ()
8163 {
8164 return *(signal (0, 0)) (0) == 1;
8165   ;
8166   return 0;
8167 }
8168 _ACEOF
8169 rm -f conftest.$ac_objext
8170 if { (ac_try="$ac_compile"
8171 case "(($ac_try" in
8172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8173   *) ac_try_echo=$ac_try;;
8174 esac
8175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8176 $as_echo "$ac_try_echo") >&5
8177   (eval "$ac_compile") 2>conftest.er1
8178   ac_status=$?
8179   grep -v '^ *+' conftest.er1 >conftest.err
8180   rm -f conftest.er1
8181   cat conftest.err >&5
8182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8183   (exit $ac_status); } && {
8184          test -z "$ac_c_werror_flag" ||
8185          test ! -s conftest.err
8186        } && test -s conftest.$ac_objext; then
8187   ac_cv_type_signal=int
8188 else
8189   $as_echo "$as_me: failed program was:" >&5
8190 sed 's/^/| /' conftest.$ac_ext >&5
8191
8192         ac_cv_type_signal=void
8193 fi
8194
8195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8196 fi
8197 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
8198 $as_echo "$ac_cv_type_signal" >&6; }
8199
8200 cat >>confdefs.h <<_ACEOF
8201 #define RETSIGTYPE $ac_cv_type_signal
8202 _ACEOF
8203
8204
8205 { $as_echo "$as_me:$LINENO: checking for mode_t" >&5
8206 $as_echo_n "checking for mode_t... " >&6; }
8207 if test "${ac_cv_type_mode_t+set}" = set; then
8208   $as_echo_n "(cached) " >&6
8209 else
8210   ac_cv_type_mode_t=no
8211 cat >conftest.$ac_ext <<_ACEOF
8212 /* confdefs.h.  */
8213 _ACEOF
8214 cat confdefs.h >>conftest.$ac_ext
8215 cat >>conftest.$ac_ext <<_ACEOF
8216 /* end confdefs.h.  */
8217 $ac_includes_default
8218 int
8219 main ()
8220 {
8221 if (sizeof (mode_t))
8222        return 0;
8223   ;
8224   return 0;
8225 }
8226 _ACEOF
8227 rm -f conftest.$ac_objext
8228 if { (ac_try="$ac_compile"
8229 case "(($ac_try" in
8230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8231   *) ac_try_echo=$ac_try;;
8232 esac
8233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8234 $as_echo "$ac_try_echo") >&5
8235   (eval "$ac_compile") 2>conftest.er1
8236   ac_status=$?
8237   grep -v '^ *+' conftest.er1 >conftest.err
8238   rm -f conftest.er1
8239   cat conftest.err >&5
8240   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); } && {
8242          test -z "$ac_c_werror_flag" ||
8243          test ! -s conftest.err
8244        } && test -s conftest.$ac_objext; then
8245   cat >conftest.$ac_ext <<_ACEOF
8246 /* confdefs.h.  */
8247 _ACEOF
8248 cat confdefs.h >>conftest.$ac_ext
8249 cat >>conftest.$ac_ext <<_ACEOF
8250 /* end confdefs.h.  */
8251 $ac_includes_default
8252 int
8253 main ()
8254 {
8255 if (sizeof ((mode_t)))
8256           return 0;
8257   ;
8258   return 0;
8259 }
8260 _ACEOF
8261 rm -f conftest.$ac_objext
8262 if { (ac_try="$ac_compile"
8263 case "(($ac_try" in
8264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265   *) ac_try_echo=$ac_try;;
8266 esac
8267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8268 $as_echo "$ac_try_echo") >&5
8269   (eval "$ac_compile") 2>conftest.er1
8270   ac_status=$?
8271   grep -v '^ *+' conftest.er1 >conftest.err
8272   rm -f conftest.er1
8273   cat conftest.err >&5
8274   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8275   (exit $ac_status); } && {
8276          test -z "$ac_c_werror_flag" ||
8277          test ! -s conftest.err
8278        } && test -s conftest.$ac_objext; then
8279   :
8280 else
8281   $as_echo "$as_me: failed program was:" >&5
8282 sed 's/^/| /' conftest.$ac_ext >&5
8283
8284         ac_cv_type_mode_t=yes
8285 fi
8286
8287 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8288 else
8289   $as_echo "$as_me: failed program was:" >&5
8290 sed 's/^/| /' conftest.$ac_ext >&5
8291
8292
8293 fi
8294
8295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8296 fi
8297 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8298 $as_echo "$ac_cv_type_mode_t" >&6; }
8299 if test "x$ac_cv_type_mode_t" = x""yes; then
8300   :
8301 else
8302
8303 cat >>confdefs.h <<_ACEOF
8304 #define mode_t int
8305 _ACEOF
8306
8307 fi
8308
8309 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
8310 $as_echo_n "checking for pid_t... " >&6; }
8311 if test "${ac_cv_type_pid_t+set}" = set; then
8312   $as_echo_n "(cached) " >&6
8313 else
8314   ac_cv_type_pid_t=no
8315 cat >conftest.$ac_ext <<_ACEOF
8316 /* confdefs.h.  */
8317 _ACEOF
8318 cat confdefs.h >>conftest.$ac_ext
8319 cat >>conftest.$ac_ext <<_ACEOF
8320 /* end confdefs.h.  */
8321 $ac_includes_default
8322 int
8323 main ()
8324 {
8325 if (sizeof (pid_t))
8326        return 0;
8327   ;
8328   return 0;
8329 }
8330 _ACEOF
8331 rm -f conftest.$ac_objext
8332 if { (ac_try="$ac_compile"
8333 case "(($ac_try" in
8334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8335   *) ac_try_echo=$ac_try;;
8336 esac
8337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8338 $as_echo "$ac_try_echo") >&5
8339   (eval "$ac_compile") 2>conftest.er1
8340   ac_status=$?
8341   grep -v '^ *+' conftest.er1 >conftest.err
8342   rm -f conftest.er1
8343   cat conftest.err >&5
8344   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345   (exit $ac_status); } && {
8346          test -z "$ac_c_werror_flag" ||
8347          test ! -s conftest.err
8348        } && test -s conftest.$ac_objext; then
8349   cat >conftest.$ac_ext <<_ACEOF
8350 /* confdefs.h.  */
8351 _ACEOF
8352 cat confdefs.h >>conftest.$ac_ext
8353 cat >>conftest.$ac_ext <<_ACEOF
8354 /* end confdefs.h.  */
8355 $ac_includes_default
8356 int
8357 main ()
8358 {
8359 if (sizeof ((pid_t)))
8360           return 0;
8361   ;
8362   return 0;
8363 }
8364 _ACEOF
8365 rm -f conftest.$ac_objext
8366 if { (ac_try="$ac_compile"
8367 case "(($ac_try" in
8368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369   *) ac_try_echo=$ac_try;;
8370 esac
8371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8372 $as_echo "$ac_try_echo") >&5
8373   (eval "$ac_compile") 2>conftest.er1
8374   ac_status=$?
8375   grep -v '^ *+' conftest.er1 >conftest.err
8376   rm -f conftest.er1
8377   cat conftest.err >&5
8378   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379   (exit $ac_status); } && {
8380          test -z "$ac_c_werror_flag" ||
8381          test ! -s conftest.err
8382        } && test -s conftest.$ac_objext; then
8383   :
8384 else
8385   $as_echo "$as_me: failed program was:" >&5
8386 sed 's/^/| /' conftest.$ac_ext >&5
8387
8388         ac_cv_type_pid_t=yes
8389 fi
8390
8391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8392 else
8393   $as_echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396
8397 fi
8398
8399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8400 fi
8401 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8402 $as_echo "$ac_cv_type_pid_t" >&6; }
8403 if test "x$ac_cv_type_pid_t" = x""yes; then
8404   :
8405 else
8406
8407 cat >>confdefs.h <<_ACEOF
8408 #define pid_t int
8409 _ACEOF
8410
8411 fi
8412
8413 { $as_echo "$as_me:$LINENO: checking for off_t" >&5
8414 $as_echo_n "checking for off_t... " >&6; }
8415 if test "${ac_cv_type_off_t+set}" = set; then
8416   $as_echo_n "(cached) " >&6
8417 else
8418   ac_cv_type_off_t=no
8419 cat >conftest.$ac_ext <<_ACEOF
8420 /* confdefs.h.  */
8421 _ACEOF
8422 cat confdefs.h >>conftest.$ac_ext
8423 cat >>conftest.$ac_ext <<_ACEOF
8424 /* end confdefs.h.  */
8425 $ac_includes_default
8426 int
8427 main ()
8428 {
8429 if (sizeof (off_t))
8430        return 0;
8431   ;
8432   return 0;
8433 }
8434 _ACEOF
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8437 case "(($ac_try" in
8438   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439   *) ac_try_echo=$ac_try;;
8440 esac
8441 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8442 $as_echo "$ac_try_echo") >&5
8443   (eval "$ac_compile") 2>conftest.er1
8444   ac_status=$?
8445   grep -v '^ *+' conftest.er1 >conftest.err
8446   rm -f conftest.er1
8447   cat conftest.err >&5
8448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8449   (exit $ac_status); } && {
8450          test -z "$ac_c_werror_flag" ||
8451          test ! -s conftest.err
8452        } && test -s conftest.$ac_objext; then
8453   cat >conftest.$ac_ext <<_ACEOF
8454 /* confdefs.h.  */
8455 _ACEOF
8456 cat confdefs.h >>conftest.$ac_ext
8457 cat >>conftest.$ac_ext <<_ACEOF
8458 /* end confdefs.h.  */
8459 $ac_includes_default
8460 int
8461 main ()
8462 {
8463 if (sizeof ((off_t)))
8464           return 0;
8465   ;
8466   return 0;
8467 }
8468 _ACEOF
8469 rm -f conftest.$ac_objext
8470 if { (ac_try="$ac_compile"
8471 case "(($ac_try" in
8472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8473   *) ac_try_echo=$ac_try;;
8474 esac
8475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8476 $as_echo "$ac_try_echo") >&5
8477   (eval "$ac_compile") 2>conftest.er1
8478   ac_status=$?
8479   grep -v '^ *+' conftest.er1 >conftest.err
8480   rm -f conftest.er1
8481   cat conftest.err >&5
8482   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8483   (exit $ac_status); } && {
8484          test -z "$ac_c_werror_flag" ||
8485          test ! -s conftest.err
8486        } && test -s conftest.$ac_objext; then
8487   :
8488 else
8489   $as_echo "$as_me: failed program was:" >&5
8490 sed 's/^/| /' conftest.$ac_ext >&5
8491
8492         ac_cv_type_off_t=yes
8493 fi
8494
8495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8496 else
8497   $as_echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8499
8500
8501 fi
8502
8503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8504 fi
8505 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5
8506 $as_echo "$ac_cv_type_off_t" >&6; }
8507 if test "x$ac_cv_type_off_t" = x""yes; then
8508   :
8509 else
8510
8511 cat >>confdefs.h <<_ACEOF
8512 #define off_t long int
8513 _ACEOF
8514
8515 fi
8516
8517 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
8518 $as_echo_n "checking for size_t... " >&6; }
8519 if test "${ac_cv_type_size_t+set}" = set; then
8520   $as_echo_n "(cached) " >&6
8521 else
8522   ac_cv_type_size_t=no
8523 cat >conftest.$ac_ext <<_ACEOF
8524 /* confdefs.h.  */
8525 _ACEOF
8526 cat confdefs.h >>conftest.$ac_ext
8527 cat >>conftest.$ac_ext <<_ACEOF
8528 /* end confdefs.h.  */
8529 $ac_includes_default
8530 int
8531 main ()
8532 {
8533 if (sizeof (size_t))
8534        return 0;
8535   ;
8536   return 0;
8537 }
8538 _ACEOF
8539 rm -f conftest.$ac_objext
8540 if { (ac_try="$ac_compile"
8541 case "(($ac_try" in
8542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8543   *) ac_try_echo=$ac_try;;
8544 esac
8545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8546 $as_echo "$ac_try_echo") >&5
8547   (eval "$ac_compile") 2>conftest.er1
8548   ac_status=$?
8549   grep -v '^ *+' conftest.er1 >conftest.err
8550   rm -f conftest.er1
8551   cat conftest.err >&5
8552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553   (exit $ac_status); } && {
8554          test -z "$ac_c_werror_flag" ||
8555          test ! -s conftest.err
8556        } && test -s conftest.$ac_objext; then
8557   cat >conftest.$ac_ext <<_ACEOF
8558 /* confdefs.h.  */
8559 _ACEOF
8560 cat confdefs.h >>conftest.$ac_ext
8561 cat >>conftest.$ac_ext <<_ACEOF
8562 /* end confdefs.h.  */
8563 $ac_includes_default
8564 int
8565 main ()
8566 {
8567 if (sizeof ((size_t)))
8568           return 0;
8569   ;
8570   return 0;
8571 }
8572 _ACEOF
8573 rm -f conftest.$ac_objext
8574 if { (ac_try="$ac_compile"
8575 case "(($ac_try" in
8576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577   *) ac_try_echo=$ac_try;;
8578 esac
8579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8580 $as_echo "$ac_try_echo") >&5
8581   (eval "$ac_compile") 2>conftest.er1
8582   ac_status=$?
8583   grep -v '^ *+' conftest.er1 >conftest.err
8584   rm -f conftest.er1
8585   cat conftest.err >&5
8586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8587   (exit $ac_status); } && {
8588          test -z "$ac_c_werror_flag" ||
8589          test ! -s conftest.err
8590        } && test -s conftest.$ac_objext; then
8591   :
8592 else
8593   $as_echo "$as_me: failed program was:" >&5
8594 sed 's/^/| /' conftest.$ac_ext >&5
8595
8596         ac_cv_type_size_t=yes
8597 fi
8598
8599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8600 else
8601   $as_echo "$as_me: failed program was:" >&5
8602 sed 's/^/| /' conftest.$ac_ext >&5
8603
8604
8605 fi
8606
8607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8608 fi
8609 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
8610 $as_echo "$ac_cv_type_size_t" >&6; }
8611 if test "x$ac_cv_type_size_t" = x""yes; then
8612   :
8613 else
8614
8615 cat >>confdefs.h <<_ACEOF
8616 #define size_t unsigned int
8617 _ACEOF
8618
8619 fi
8620
8621 { $as_echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8622 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
8623 if test "${ac_cv_type_uid_t+set}" = set; then
8624   $as_echo_n "(cached) " >&6
8625 else
8626   cat >conftest.$ac_ext <<_ACEOF
8627 /* confdefs.h.  */
8628 _ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h.  */
8632 #include <sys/types.h>
8633
8634 _ACEOF
8635 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8636   $EGREP "uid_t" >/dev/null 2>&1; then
8637   ac_cv_type_uid_t=yes
8638 else
8639   ac_cv_type_uid_t=no
8640 fi
8641 rm -f conftest*
8642
8643 fi
8644 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8645 $as_echo "$ac_cv_type_uid_t" >&6; }
8646 if test $ac_cv_type_uid_t = no; then
8647
8648 cat >>confdefs.h <<\_ACEOF
8649 #define uid_t int
8650 _ACEOF
8651
8652
8653 cat >>confdefs.h <<\_ACEOF
8654 #define gid_t int
8655 _ACEOF
8656
8657 fi
8658
8659 { $as_echo "$as_me:$LINENO: checking for major_t" >&5
8660 $as_echo_n "checking for major_t... " >&6; }
8661 if test "${ac_cv_type_major_t+set}" = set; then
8662   $as_echo_n "(cached) " >&6
8663 else
8664   ac_cv_type_major_t=no
8665 cat >conftest.$ac_ext <<_ACEOF
8666 /* confdefs.h.  */
8667 _ACEOF
8668 cat confdefs.h >>conftest.$ac_ext
8669 cat >>conftest.$ac_ext <<_ACEOF
8670 /* end confdefs.h.  */
8671 $ac_includes_default
8672 int
8673 main ()
8674 {
8675 if (sizeof (major_t))
8676        return 0;
8677   ;
8678   return 0;
8679 }
8680 _ACEOF
8681 rm -f conftest.$ac_objext
8682 if { (ac_try="$ac_compile"
8683 case "(($ac_try" in
8684   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8685   *) ac_try_echo=$ac_try;;
8686 esac
8687 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8688 $as_echo "$ac_try_echo") >&5
8689   (eval "$ac_compile") 2>conftest.er1
8690   ac_status=$?
8691   grep -v '^ *+' conftest.er1 >conftest.err
8692   rm -f conftest.er1
8693   cat conftest.err >&5
8694   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8695   (exit $ac_status); } && {
8696          test -z "$ac_c_werror_flag" ||
8697          test ! -s conftest.err
8698        } && test -s conftest.$ac_objext; then
8699   cat >conftest.$ac_ext <<_ACEOF
8700 /* confdefs.h.  */
8701 _ACEOF
8702 cat confdefs.h >>conftest.$ac_ext
8703 cat >>conftest.$ac_ext <<_ACEOF
8704 /* end confdefs.h.  */
8705 $ac_includes_default
8706 int
8707 main ()
8708 {
8709 if (sizeof ((major_t)))
8710           return 0;
8711   ;
8712   return 0;
8713 }
8714 _ACEOF
8715 rm -f conftest.$ac_objext
8716 if { (ac_try="$ac_compile"
8717 case "(($ac_try" in
8718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719   *) ac_try_echo=$ac_try;;
8720 esac
8721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8722 $as_echo "$ac_try_echo") >&5
8723   (eval "$ac_compile") 2>conftest.er1
8724   ac_status=$?
8725   grep -v '^ *+' conftest.er1 >conftest.err
8726   rm -f conftest.er1
8727   cat conftest.err >&5
8728   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8729   (exit $ac_status); } && {
8730          test -z "$ac_c_werror_flag" ||
8731          test ! -s conftest.err
8732        } && test -s conftest.$ac_objext; then
8733   :
8734 else
8735   $as_echo "$as_me: failed program was:" >&5
8736 sed 's/^/| /' conftest.$ac_ext >&5
8737
8738         ac_cv_type_major_t=yes
8739 fi
8740
8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742 else
8743   $as_echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8745
8746
8747 fi
8748
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8750 fi
8751 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_major_t" >&5
8752 $as_echo "$ac_cv_type_major_t" >&6; }
8753 if test "x$ac_cv_type_major_t" = x""yes; then
8754   :
8755 else
8756
8757 cat >>confdefs.h <<\_ACEOF
8758 #define major_t int
8759 _ACEOF
8760
8761 fi
8762
8763 { $as_echo "$as_me:$LINENO: checking for minor_t" >&5
8764 $as_echo_n "checking for minor_t... " >&6; }
8765 if test "${ac_cv_type_minor_t+set}" = set; then
8766   $as_echo_n "(cached) " >&6
8767 else
8768   ac_cv_type_minor_t=no
8769 cat >conftest.$ac_ext <<_ACEOF
8770 /* confdefs.h.  */
8771 _ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h.  */
8775 $ac_includes_default
8776 int
8777 main ()
8778 {
8779 if (sizeof (minor_t))
8780        return 0;
8781   ;
8782   return 0;
8783 }
8784 _ACEOF
8785 rm -f conftest.$ac_objext
8786 if { (ac_try="$ac_compile"
8787 case "(($ac_try" in
8788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8789   *) ac_try_echo=$ac_try;;
8790 esac
8791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8792 $as_echo "$ac_try_echo") >&5
8793   (eval "$ac_compile") 2>conftest.er1
8794   ac_status=$?
8795   grep -v '^ *+' conftest.er1 >conftest.err
8796   rm -f conftest.er1
8797   cat conftest.err >&5
8798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8799   (exit $ac_status); } && {
8800          test -z "$ac_c_werror_flag" ||
8801          test ! -s conftest.err
8802        } && test -s conftest.$ac_objext; then
8803   cat >conftest.$ac_ext <<_ACEOF
8804 /* confdefs.h.  */
8805 _ACEOF
8806 cat confdefs.h >>conftest.$ac_ext
8807 cat >>conftest.$ac_ext <<_ACEOF
8808 /* end confdefs.h.  */
8809 $ac_includes_default
8810 int
8811 main ()
8812 {
8813 if (sizeof ((minor_t)))
8814           return 0;
8815   ;
8816   return 0;
8817 }
8818 _ACEOF
8819 rm -f conftest.$ac_objext
8820 if { (ac_try="$ac_compile"
8821 case "(($ac_try" in
8822   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8823   *) ac_try_echo=$ac_try;;
8824 esac
8825 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8826 $as_echo "$ac_try_echo") >&5
8827   (eval "$ac_compile") 2>conftest.er1
8828   ac_status=$?
8829   grep -v '^ *+' conftest.er1 >conftest.err
8830   rm -f conftest.er1
8831   cat conftest.err >&5
8832   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); } && {
8834          test -z "$ac_c_werror_flag" ||
8835          test ! -s conftest.err
8836        } && test -s conftest.$ac_objext; then
8837   :
8838 else
8839   $as_echo "$as_me: failed program was:" >&5
8840 sed 's/^/| /' conftest.$ac_ext >&5
8841
8842         ac_cv_type_minor_t=yes
8843 fi
8844
8845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8846 else
8847   $as_echo "$as_me: failed program was:" >&5
8848 sed 's/^/| /' conftest.$ac_ext >&5
8849
8850
8851 fi
8852
8853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 fi
8855 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_minor_t" >&5
8856 $as_echo "$ac_cv_type_minor_t" >&6; }
8857 if test "x$ac_cv_type_minor_t" = x""yes; then
8858   :
8859 else
8860
8861 cat >>confdefs.h <<\_ACEOF
8862 #define minor_t int
8863 _ACEOF
8864
8865 fi
8866
8867 { $as_echo "$as_me:$LINENO: checking for dev_t" >&5
8868 $as_echo_n "checking for dev_t... " >&6; }
8869 if test "${ac_cv_type_dev_t+set}" = set; then
8870   $as_echo_n "(cached) " >&6
8871 else
8872   ac_cv_type_dev_t=no
8873 cat >conftest.$ac_ext <<_ACEOF
8874 /* confdefs.h.  */
8875 _ACEOF
8876 cat confdefs.h >>conftest.$ac_ext
8877 cat >>conftest.$ac_ext <<_ACEOF
8878 /* end confdefs.h.  */
8879 $ac_includes_default
8880 int
8881 main ()
8882 {
8883 if (sizeof (dev_t))
8884        return 0;
8885   ;
8886   return 0;
8887 }
8888 _ACEOF
8889 rm -f conftest.$ac_objext
8890 if { (ac_try="$ac_compile"
8891 case "(($ac_try" in
8892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8893   *) ac_try_echo=$ac_try;;
8894 esac
8895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8896 $as_echo "$ac_try_echo") >&5
8897   (eval "$ac_compile") 2>conftest.er1
8898   ac_status=$?
8899   grep -v '^ *+' conftest.er1 >conftest.err
8900   rm -f conftest.er1
8901   cat conftest.err >&5
8902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } && {
8904          test -z "$ac_c_werror_flag" ||
8905          test ! -s conftest.err
8906        } && test -s conftest.$ac_objext; then
8907   cat >conftest.$ac_ext <<_ACEOF
8908 /* confdefs.h.  */
8909 _ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h.  */
8913 $ac_includes_default
8914 int
8915 main ()
8916 {
8917 if (sizeof ((dev_t)))
8918           return 0;
8919   ;
8920   return 0;
8921 }
8922 _ACEOF
8923 rm -f conftest.$ac_objext
8924 if { (ac_try="$ac_compile"
8925 case "(($ac_try" in
8926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927   *) ac_try_echo=$ac_try;;
8928 esac
8929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8930 $as_echo "$ac_try_echo") >&5
8931   (eval "$ac_compile") 2>conftest.er1
8932   ac_status=$?
8933   grep -v '^ *+' conftest.er1 >conftest.err
8934   rm -f conftest.er1
8935   cat conftest.err >&5
8936   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); } && {
8938          test -z "$ac_c_werror_flag" ||
8939          test ! -s conftest.err
8940        } && test -s conftest.$ac_objext; then
8941   :
8942 else
8943   $as_echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8945
8946         ac_cv_type_dev_t=yes
8947 fi
8948
8949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8950 else
8951   $as_echo "$as_me: failed program was:" >&5
8952 sed 's/^/| /' conftest.$ac_ext >&5
8953
8954
8955 fi
8956
8957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8958 fi
8959 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_dev_t" >&5
8960 $as_echo "$ac_cv_type_dev_t" >&6; }
8961 if test "x$ac_cv_type_dev_t" = x""yes; then
8962   :
8963 else
8964
8965 cat >>confdefs.h <<_ACEOF
8966 #define dev_t unsigned
8967 _ACEOF
8968
8969 fi
8970
8971 { $as_echo "$as_me:$LINENO: checking for ino_t" >&5
8972 $as_echo_n "checking for ino_t... " >&6; }
8973 if test "${ac_cv_type_ino_t+set}" = set; then
8974   $as_echo_n "(cached) " >&6
8975 else
8976   ac_cv_type_ino_t=no
8977 cat >conftest.$ac_ext <<_ACEOF
8978 /* confdefs.h.  */
8979 _ACEOF
8980 cat confdefs.h >>conftest.$ac_ext
8981 cat >>conftest.$ac_ext <<_ACEOF
8982 /* end confdefs.h.  */
8983 $ac_includes_default
8984 int
8985 main ()
8986 {
8987 if (sizeof (ino_t))
8988        return 0;
8989   ;
8990   return 0;
8991 }
8992 _ACEOF
8993 rm -f conftest.$ac_objext
8994 if { (ac_try="$ac_compile"
8995 case "(($ac_try" in
8996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8997   *) ac_try_echo=$ac_try;;
8998 esac
8999 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9000 $as_echo "$ac_try_echo") >&5
9001   (eval "$ac_compile") 2>conftest.er1
9002   ac_status=$?
9003   grep -v '^ *+' conftest.er1 >conftest.err
9004   rm -f conftest.er1
9005   cat conftest.err >&5
9006   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9007   (exit $ac_status); } && {
9008          test -z "$ac_c_werror_flag" ||
9009          test ! -s conftest.err
9010        } && test -s conftest.$ac_objext; then
9011   cat >conftest.$ac_ext <<_ACEOF
9012 /* confdefs.h.  */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h.  */
9017 $ac_includes_default
9018 int
9019 main ()
9020 {
9021 if (sizeof ((ino_t)))
9022           return 0;
9023   ;
9024   return 0;
9025 }
9026 _ACEOF
9027 rm -f conftest.$ac_objext
9028 if { (ac_try="$ac_compile"
9029 case "(($ac_try" in
9030   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9031   *) ac_try_echo=$ac_try;;
9032 esac
9033 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9034 $as_echo "$ac_try_echo") >&5
9035   (eval "$ac_compile") 2>conftest.er1
9036   ac_status=$?
9037   grep -v '^ *+' conftest.er1 >conftest.err
9038   rm -f conftest.er1
9039   cat conftest.err >&5
9040   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041   (exit $ac_status); } && {
9042          test -z "$ac_c_werror_flag" ||
9043          test ! -s conftest.err
9044        } && test -s conftest.$ac_objext; then
9045   :
9046 else
9047   $as_echo "$as_me: failed program was:" >&5
9048 sed 's/^/| /' conftest.$ac_ext >&5
9049
9050         ac_cv_type_ino_t=yes
9051 fi
9052
9053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9054 else
9055   $as_echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9057
9058
9059 fi
9060
9061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062 fi
9063 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ino_t" >&5
9064 $as_echo "$ac_cv_type_ino_t" >&6; }
9065 if test "x$ac_cv_type_ino_t" = x""yes; then
9066   :
9067 else
9068
9069 cat >>confdefs.h <<_ACEOF
9070 #define ino_t unsigned
9071 _ACEOF
9072
9073 fi
9074
9075
9076
9077   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
9078 $as_echo_n "checking for ssize_t... " >&6; }
9079 if test "${gt_cv_ssize_t+set}" = set; then
9080   $as_echo_n "(cached) " >&6
9081 else
9082   cat >conftest.$ac_ext <<_ACEOF
9083 /* confdefs.h.  */
9084 _ACEOF
9085 cat confdefs.h >>conftest.$ac_ext
9086 cat >>conftest.$ac_ext <<_ACEOF
9087 /* end confdefs.h.  */
9088 #include <sys/types.h>
9089 int
9090 main ()
9091 {
9092 int x = sizeof (ssize_t *) + sizeof (ssize_t);
9093             return !x;
9094   ;
9095   return 0;
9096 }
9097 _ACEOF
9098 rm -f conftest.$ac_objext
9099 if { (ac_try="$ac_compile"
9100 case "(($ac_try" in
9101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102   *) ac_try_echo=$ac_try;;
9103 esac
9104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9105 $as_echo "$ac_try_echo") >&5
9106   (eval "$ac_compile") 2>conftest.er1
9107   ac_status=$?
9108   grep -v '^ *+' conftest.er1 >conftest.err
9109   rm -f conftest.er1
9110   cat conftest.err >&5
9111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9112   (exit $ac_status); } && {
9113          test -z "$ac_c_werror_flag" ||
9114          test ! -s conftest.err
9115        } && test -s conftest.$ac_objext; then
9116   gt_cv_ssize_t=yes
9117 else
9118   $as_echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9120
9121         gt_cv_ssize_t=no
9122 fi
9123
9124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9125 fi
9126 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
9127 $as_echo "$gt_cv_ssize_t" >&6; }
9128   if test $gt_cv_ssize_t = no; then
9129
9130 cat >>confdefs.h <<\_ACEOF
9131 #define ssize_t int
9132 _ACEOF
9133
9134   fi
9135
9136
9137 # gnulib modules
9138
9139
9140
9141
9142
9143
9144           LIBC_FATAL_STDERR_=1
9145   export LIBC_FATAL_STDERR_
9146
9147 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
9148 # for constant arguments.  Useless!
9149 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
9150 $as_echo_n "checking for working alloca.h... " >&6; }
9151 if test "${ac_cv_working_alloca_h+set}" = set; then
9152   $as_echo_n "(cached) " >&6
9153 else
9154   cat >conftest.$ac_ext <<_ACEOF
9155 /* confdefs.h.  */
9156 _ACEOF
9157 cat confdefs.h >>conftest.$ac_ext
9158 cat >>conftest.$ac_ext <<_ACEOF
9159 /* end confdefs.h.  */
9160 #include <alloca.h>
9161 int
9162 main ()
9163 {
9164 char *p = (char *) alloca (2 * sizeof (int));
9165                           if (p) return 0;
9166   ;
9167   return 0;
9168 }
9169 _ACEOF
9170 rm -f conftest.$ac_objext conftest$ac_exeext
9171 if { (ac_try="$ac_link"
9172 case "(($ac_try" in
9173   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9174   *) ac_try_echo=$ac_try;;
9175 esac
9176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9177 $as_echo "$ac_try_echo") >&5
9178   (eval "$ac_link") 2>conftest.er1
9179   ac_status=$?
9180   grep -v '^ *+' conftest.er1 >conftest.err
9181   rm -f conftest.er1
9182   cat conftest.err >&5
9183   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184   (exit $ac_status); } && {
9185          test -z "$ac_c_werror_flag" ||
9186          test ! -s conftest.err
9187        } && test -s conftest$ac_exeext && {
9188          test "$cross_compiling" = yes ||
9189          $as_test_x conftest$ac_exeext
9190        }; then
9191   ac_cv_working_alloca_h=yes
9192 else
9193   $as_echo "$as_me: failed program was:" >&5
9194 sed 's/^/| /' conftest.$ac_ext >&5
9195
9196         ac_cv_working_alloca_h=no
9197 fi
9198
9199 rm -rf conftest.dSYM
9200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9201       conftest$ac_exeext conftest.$ac_ext
9202 fi
9203 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
9204 $as_echo "$ac_cv_working_alloca_h" >&6; }
9205 if test $ac_cv_working_alloca_h = yes; then
9206
9207 cat >>confdefs.h <<\_ACEOF
9208 #define HAVE_ALLOCA_H 1
9209 _ACEOF
9210
9211 fi
9212
9213 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
9214 $as_echo_n "checking for alloca... " >&6; }
9215 if test "${ac_cv_func_alloca_works+set}" = set; then
9216   $as_echo_n "(cached) " >&6
9217 else
9218   cat >conftest.$ac_ext <<_ACEOF
9219 /* confdefs.h.  */
9220 _ACEOF
9221 cat confdefs.h >>conftest.$ac_ext
9222 cat >>conftest.$ac_ext <<_ACEOF
9223 /* end confdefs.h.  */
9224 #ifdef __GNUC__
9225 # define alloca __builtin_alloca
9226 #else
9227 # ifdef _MSC_VER
9228 #  include <malloc.h>
9229 #  define alloca _alloca
9230 # else
9231 #  ifdef HAVE_ALLOCA_H
9232 #   include <alloca.h>
9233 #  else
9234 #   ifdef _AIX
9235  #pragma alloca
9236 #   else
9237 #    ifndef alloca /* predefined by HP cc +Olibcalls */
9238 char *alloca ();
9239 #    endif
9240 #   endif
9241 #  endif
9242 # endif
9243 #endif
9244
9245 int
9246 main ()
9247 {
9248 char *p = (char *) alloca (1);
9249                                     if (p) return 0;
9250   ;
9251   return 0;
9252 }
9253 _ACEOF
9254 rm -f conftest.$ac_objext conftest$ac_exeext
9255 if { (ac_try="$ac_link"
9256 case "(($ac_try" in
9257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9258   *) ac_try_echo=$ac_try;;
9259 esac
9260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9261 $as_echo "$ac_try_echo") >&5
9262   (eval "$ac_link") 2>conftest.er1
9263   ac_status=$?
9264   grep -v '^ *+' conftest.er1 >conftest.err
9265   rm -f conftest.er1
9266   cat conftest.err >&5
9267   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9268   (exit $ac_status); } && {
9269          test -z "$ac_c_werror_flag" ||
9270          test ! -s conftest.err
9271        } && test -s conftest$ac_exeext && {
9272          test "$cross_compiling" = yes ||
9273          $as_test_x conftest$ac_exeext
9274        }; then
9275   ac_cv_func_alloca_works=yes
9276 else
9277   $as_echo "$as_me: failed program was:" >&5
9278 sed 's/^/| /' conftest.$ac_ext >&5
9279
9280         ac_cv_func_alloca_works=no
9281 fi
9282
9283 rm -rf conftest.dSYM
9284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9285       conftest$ac_exeext conftest.$ac_ext
9286 fi
9287 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
9288 $as_echo "$ac_cv_func_alloca_works" >&6; }
9289
9290 if test $ac_cv_func_alloca_works = yes; then
9291
9292 cat >>confdefs.h <<\_ACEOF
9293 #define HAVE_ALLOCA 1
9294 _ACEOF
9295
9296 else
9297   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
9298 # that cause trouble.  Some versions do not even contain alloca or
9299 # contain a buggy version.  If you still want to use their alloca,
9300 # use ar to extract alloca.o from them instead of compiling alloca.c.
9301
9302
9303
9304
9305
9306 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
9307
9308 cat >>confdefs.h <<\_ACEOF
9309 #define C_ALLOCA 1
9310 _ACEOF
9311
9312
9313 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
9314 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
9315 if test "${ac_cv_os_cray+set}" = set; then
9316   $as_echo_n "(cached) " >&6
9317 else
9318   cat >conftest.$ac_ext <<_ACEOF
9319 /* confdefs.h.  */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h.  */
9324 #if defined CRAY && ! defined CRAY2
9325 webecray
9326 #else
9327 wenotbecray
9328 #endif
9329
9330 _ACEOF
9331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9332   $EGREP "webecray" >/dev/null 2>&1; then
9333   ac_cv_os_cray=yes
9334 else
9335   ac_cv_os_cray=no
9336 fi
9337 rm -f conftest*
9338
9339 fi
9340 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
9341 $as_echo "$ac_cv_os_cray" >&6; }
9342 if test $ac_cv_os_cray = yes; then
9343   for ac_func in _getb67 GETB67 getb67; do
9344     as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
9345 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
9346 $as_echo_n "checking for $ac_func... " >&6; }
9347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9348   $as_echo_n "(cached) " >&6
9349 else
9350   cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h.  */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h.  */
9356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9357    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9358 #define $ac_func innocuous_$ac_func
9359
9360 /* System header to define __stub macros and hopefully few prototypes,
9361     which can conflict with char $ac_func (); below.
9362     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9363     <limits.h> exists even on freestanding compilers.  */
9364
9365 #ifdef __STDC__
9366 # include <limits.h>
9367 #else
9368 # include <assert.h>
9369 #endif
9370
9371 #undef $ac_func
9372
9373 /* Override any GCC internal prototype to avoid an error.
9374    Use char because int might match the return type of a GCC
9375    builtin and then its argument prototype would still apply.  */
9376 #ifdef __cplusplus
9377 extern "C"
9378 #endif
9379 char $ac_func ();
9380 /* The GNU C library defines this for functions which it implements
9381     to always fail with ENOSYS.  Some functions are actually named
9382     something starting with __ and the normal name is an alias.  */
9383 #if defined __stub_$ac_func || defined __stub___$ac_func
9384 choke me
9385 #endif
9386
9387 int
9388 main ()
9389 {
9390 return $ac_func ();
9391   ;
9392   return 0;
9393 }
9394 _ACEOF
9395 rm -f conftest.$ac_objext conftest$ac_exeext
9396 if { (ac_try="$ac_link"
9397 case "(($ac_try" in
9398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9399   *) ac_try_echo=$ac_try;;
9400 esac
9401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9402 $as_echo "$ac_try_echo") >&5
9403   (eval "$ac_link") 2>conftest.er1
9404   ac_status=$?
9405   grep -v '^ *+' conftest.er1 >conftest.err
9406   rm -f conftest.er1
9407   cat conftest.err >&5
9408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409   (exit $ac_status); } && {
9410          test -z "$ac_c_werror_flag" ||
9411          test ! -s conftest.err
9412        } && test -s conftest$ac_exeext && {
9413          test "$cross_compiling" = yes ||
9414          $as_test_x conftest$ac_exeext
9415        }; then
9416   eval "$as_ac_var=yes"
9417 else
9418   $as_echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9420
9421         eval "$as_ac_var=no"
9422 fi
9423
9424 rm -rf conftest.dSYM
9425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9426       conftest$ac_exeext conftest.$ac_ext
9427 fi
9428 ac_res=`eval 'as_val=${'$as_ac_var'}
9429                  $as_echo "$as_val"'`
9430                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
9431 $as_echo "$ac_res" >&6; }
9432 as_val=`eval 'as_val=${'$as_ac_var'}
9433                  $as_echo "$as_val"'`
9434    if test "x$as_val" = x""yes; then
9435
9436 cat >>confdefs.h <<_ACEOF
9437 #define CRAY_STACKSEG_END $ac_func
9438 _ACEOF
9439
9440     break
9441 fi
9442
9443   done
9444 fi
9445
9446 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
9447 $as_echo_n "checking stack direction for C alloca... " >&6; }
9448 if test "${ac_cv_c_stack_direction+set}" = set; then
9449   $as_echo_n "(cached) " >&6
9450 else
9451   if test "$cross_compiling" = yes; then
9452   ac_cv_c_stack_direction=0
9453 else
9454   cat >conftest.$ac_ext <<_ACEOF
9455 /* confdefs.h.  */
9456 _ACEOF
9457 cat confdefs.h >>conftest.$ac_ext
9458 cat >>conftest.$ac_ext <<_ACEOF
9459 /* end confdefs.h.  */
9460 $ac_includes_default
9461 int
9462 find_stack_direction ()
9463 {
9464   static char *addr = 0;
9465   auto char dummy;
9466   if (addr == 0)
9467     {
9468       addr = &dummy;
9469       return find_stack_direction ();
9470     }
9471   else
9472     return (&dummy > addr) ? 1 : -1;
9473 }
9474
9475 int
9476 main ()
9477 {
9478   return find_stack_direction () < 0;
9479 }
9480 _ACEOF
9481 rm -f conftest$ac_exeext
9482 if { (ac_try="$ac_link"
9483 case "(($ac_try" in
9484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9485   *) ac_try_echo=$ac_try;;
9486 esac
9487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9488 $as_echo "$ac_try_echo") >&5
9489   (eval "$ac_link") 2>&5
9490   ac_status=$?
9491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9493   { (case "(($ac_try" in
9494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9495   *) ac_try_echo=$ac_try;;
9496 esac
9497 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9498 $as_echo "$ac_try_echo") >&5
9499   (eval "$ac_try") 2>&5
9500   ac_status=$?
9501   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502   (exit $ac_status); }; }; then
9503   ac_cv_c_stack_direction=1
9504 else
9505   $as_echo "$as_me: program exited with status $ac_status" >&5
9506 $as_echo "$as_me: failed program was:" >&5
9507 sed 's/^/| /' conftest.$ac_ext >&5
9508
9509 ( exit $ac_status )
9510 ac_cv_c_stack_direction=-1
9511 fi
9512 rm -rf conftest.dSYM
9513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9514 fi
9515
9516
9517 fi
9518 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
9519 $as_echo "$ac_cv_c_stack_direction" >&6; }
9520
9521 cat >>confdefs.h <<_ACEOF
9522 #define STACK_DIRECTION $ac_cv_c_stack_direction
9523 _ACEOF
9524
9525
9526 fi
9527
9528 { $as_echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
9529 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
9530 if test "${ac_cv_c_restrict+set}" = set; then
9531   $as_echo_n "(cached) " >&6
9532 else
9533   ac_cv_c_restrict=no
9534    # The order here caters to the fact that C++ does not require restrict.
9535    for ac_kw in __restrict __restrict__ _Restrict restrict; do
9536      cat >conftest.$ac_ext <<_ACEOF
9537 /* confdefs.h.  */
9538 _ACEOF
9539 cat confdefs.h >>conftest.$ac_ext
9540 cat >>conftest.$ac_ext <<_ACEOF
9541 /* end confdefs.h.  */
9542 typedef int * int_ptr;
9543         int foo (int_ptr $ac_kw ip) {
9544         return ip[0];
9545        }
9546 int
9547 main ()
9548 {
9549 int s[1];
9550         int * $ac_kw t = s;
9551         t[0] = 0;
9552         return foo(t)
9553   ;
9554   return 0;
9555 }
9556 _ACEOF
9557 rm -f conftest.$ac_objext
9558 if { (ac_try="$ac_compile"
9559 case "(($ac_try" in
9560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9561   *) ac_try_echo=$ac_try;;
9562 esac
9563 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9564 $as_echo "$ac_try_echo") >&5
9565   (eval "$ac_compile") 2>conftest.er1
9566   ac_status=$?
9567   grep -v '^ *+' conftest.er1 >conftest.err
9568   rm -f conftest.er1
9569   cat conftest.err >&5
9570   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9571   (exit $ac_status); } && {
9572          test -z "$ac_c_werror_flag" ||
9573          test ! -s conftest.err
9574        } && test -s conftest.$ac_objext; then
9575   ac_cv_c_restrict=$ac_kw
9576 else
9577   $as_echo "$as_me: failed program was:" >&5
9578 sed 's/^/| /' conftest.$ac_ext >&5
9579
9580
9581 fi
9582
9583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9584      test "$ac_cv_c_restrict" != no && break
9585    done
9586
9587 fi
9588 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
9589 $as_echo "$ac_cv_c_restrict" >&6; }
9590
9591
9592  case $ac_cv_c_restrict in
9593    restrict) ;;
9594    no) cat >>confdefs.h <<\_ACEOF
9595 #define restrict /**/
9596 _ACEOF
9597  ;;
9598    *)  cat >>confdefs.h <<_ACEOF
9599 #define restrict $ac_cv_c_restrict
9600 _ACEOF
9601  ;;
9602  esac
9603
9604 { $as_echo "$as_me:$LINENO: checking whether getenv is declared" >&5
9605 $as_echo_n "checking whether getenv is declared... " >&6; }
9606 if test "${ac_cv_have_decl_getenv+set}" = set; then
9607   $as_echo_n "(cached) " >&6
9608 else
9609   cat >conftest.$ac_ext <<_ACEOF
9610 /* confdefs.h.  */
9611 _ACEOF
9612 cat confdefs.h >>conftest.$ac_ext
9613 cat >>conftest.$ac_ext <<_ACEOF
9614 /* end confdefs.h.  */
9615 $ac_includes_default
9616 int
9617 main ()
9618 {
9619 #ifndef getenv
9620   (void) getenv;
9621 #endif
9622
9623   ;
9624   return 0;
9625 }
9626 _ACEOF
9627 rm -f conftest.$ac_objext
9628 if { (ac_try="$ac_compile"
9629 case "(($ac_try" in
9630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9631   *) ac_try_echo=$ac_try;;
9632 esac
9633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9634 $as_echo "$ac_try_echo") >&5
9635   (eval "$ac_compile") 2>conftest.er1
9636   ac_status=$?
9637   grep -v '^ *+' conftest.er1 >conftest.err
9638   rm -f conftest.er1
9639   cat conftest.err >&5
9640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641   (exit $ac_status); } && {
9642          test -z "$ac_c_werror_flag" ||
9643          test ! -s conftest.err
9644        } && test -s conftest.$ac_objext; then
9645   ac_cv_have_decl_getenv=yes
9646 else
9647   $as_echo "$as_me: failed program was:" >&5
9648 sed 's/^/| /' conftest.$ac_ext >&5
9649
9650         ac_cv_have_decl_getenv=no
9651 fi
9652
9653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9654 fi
9655 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getenv" >&5
9656 $as_echo "$ac_cv_have_decl_getenv" >&6; }
9657 if test "x$ac_cv_have_decl_getenv" = x""yes; then
9658
9659 cat >>confdefs.h <<_ACEOF
9660 #define HAVE_DECL_GETENV 1
9661 _ACEOF
9662
9663
9664 else
9665   cat >>confdefs.h <<_ACEOF
9666 #define HAVE_DECL_GETENV 0
9667 _ACEOF
9668
9669
9670 fi
9671
9672
9673 { $as_echo "$as_me:$LINENO: checking whether clearerr_unlocked is declared" >&5
9674 $as_echo_n "checking whether clearerr_unlocked is declared... " >&6; }
9675 if test "${ac_cv_have_decl_clearerr_unlocked+set}" = set; then
9676   $as_echo_n "(cached) " >&6
9677 else
9678   cat >conftest.$ac_ext <<_ACEOF
9679 /* confdefs.h.  */
9680 _ACEOF
9681 cat confdefs.h >>conftest.$ac_ext
9682 cat >>conftest.$ac_ext <<_ACEOF
9683 /* end confdefs.h.  */
9684 $ac_includes_default
9685 int
9686 main ()
9687 {
9688 #ifndef clearerr_unlocked
9689   (void) clearerr_unlocked;
9690 #endif
9691
9692   ;
9693   return 0;
9694 }
9695 _ACEOF
9696 rm -f conftest.$ac_objext
9697 if { (ac_try="$ac_compile"
9698 case "(($ac_try" in
9699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9700   *) ac_try_echo=$ac_try;;
9701 esac
9702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9703 $as_echo "$ac_try_echo") >&5
9704   (eval "$ac_compile") 2>conftest.er1
9705   ac_status=$?
9706   grep -v '^ *+' conftest.er1 >conftest.err
9707   rm -f conftest.er1
9708   cat conftest.err >&5
9709   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710   (exit $ac_status); } && {
9711          test -z "$ac_c_werror_flag" ||
9712          test ! -s conftest.err
9713        } && test -s conftest.$ac_objext; then
9714   ac_cv_have_decl_clearerr_unlocked=yes
9715 else
9716   $as_echo "$as_me: failed program was:" >&5
9717 sed 's/^/| /' conftest.$ac_ext >&5
9718
9719         ac_cv_have_decl_clearerr_unlocked=no
9720 fi
9721
9722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723 fi
9724 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_clearerr_unlocked" >&5
9725 $as_echo "$ac_cv_have_decl_clearerr_unlocked" >&6; }
9726 if test "x$ac_cv_have_decl_clearerr_unlocked" = x""yes; then
9727
9728 cat >>confdefs.h <<_ACEOF
9729 #define HAVE_DECL_CLEARERR_UNLOCKED 1
9730 _ACEOF
9731
9732
9733 else
9734   cat >>confdefs.h <<_ACEOF
9735 #define HAVE_DECL_CLEARERR_UNLOCKED 0
9736 _ACEOF
9737
9738
9739 fi
9740
9741
9742 { $as_echo "$as_me:$LINENO: checking whether feof_unlocked is declared" >&5
9743 $as_echo_n "checking whether feof_unlocked is declared... " >&6; }
9744 if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then
9745   $as_echo_n "(cached) " >&6
9746 else
9747   cat >conftest.$ac_ext <<_ACEOF
9748 /* confdefs.h.  */
9749 _ACEOF
9750 cat confdefs.h >>conftest.$ac_ext
9751 cat >>conftest.$ac_ext <<_ACEOF
9752 /* end confdefs.h.  */
9753 $ac_includes_default
9754 int
9755 main ()
9756 {
9757 #ifndef feof_unlocked
9758   (void) feof_unlocked;
9759 #endif
9760
9761   ;
9762   return 0;
9763 }
9764 _ACEOF
9765 rm -f conftest.$ac_objext
9766 if { (ac_try="$ac_compile"
9767 case "(($ac_try" in
9768   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9769   *) ac_try_echo=$ac_try;;
9770 esac
9771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9772 $as_echo "$ac_try_echo") >&5
9773   (eval "$ac_compile") 2>conftest.er1
9774   ac_status=$?
9775   grep -v '^ *+' conftest.er1 >conftest.err
9776   rm -f conftest.er1
9777   cat conftest.err >&5
9778   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779   (exit $ac_status); } && {
9780          test -z "$ac_c_werror_flag" ||
9781          test ! -s conftest.err
9782        } && test -s conftest.$ac_objext; then
9783   ac_cv_have_decl_feof_unlocked=yes
9784 else
9785   $as_echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.$ac_ext >&5
9787
9788         ac_cv_have_decl_feof_unlocked=no
9789 fi
9790
9791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9792 fi
9793 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_feof_unlocked" >&5
9794 $as_echo "$ac_cv_have_decl_feof_unlocked" >&6; }
9795 if test "x$ac_cv_have_decl_feof_unlocked" = x""yes; then
9796
9797 cat >>confdefs.h <<_ACEOF
9798 #define HAVE_DECL_FEOF_UNLOCKED 1
9799 _ACEOF
9800
9801
9802 else
9803   cat >>confdefs.h <<_ACEOF
9804 #define HAVE_DECL_FEOF_UNLOCKED 0
9805 _ACEOF
9806
9807
9808 fi
9809
9810
9811 { $as_echo "$as_me:$LINENO: checking whether ferror_unlocked is declared" >&5
9812 $as_echo_n "checking whether ferror_unlocked is declared... " >&6; }
9813 if test "${ac_cv_have_decl_ferror_unlocked+set}" = set; then
9814   $as_echo_n "(cached) " >&6
9815 else
9816   cat >conftest.$ac_ext <<_ACEOF
9817 /* confdefs.h.  */
9818 _ACEOF
9819 cat confdefs.h >>conftest.$ac_ext
9820 cat >>conftest.$ac_ext <<_ACEOF
9821 /* end confdefs.h.  */
9822 $ac_includes_default
9823 int
9824 main ()
9825 {
9826 #ifndef ferror_unlocked
9827   (void) ferror_unlocked;
9828 #endif
9829
9830   ;
9831   return 0;
9832 }
9833 _ACEOF
9834 rm -f conftest.$ac_objext
9835 if { (ac_try="$ac_compile"
9836 case "(($ac_try" in
9837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838   *) ac_try_echo=$ac_try;;
9839 esac
9840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9841 $as_echo "$ac_try_echo") >&5
9842   (eval "$ac_compile") 2>conftest.er1
9843   ac_status=$?
9844   grep -v '^ *+' conftest.er1 >conftest.err
9845   rm -f conftest.er1
9846   cat conftest.err >&5
9847   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848   (exit $ac_status); } && {
9849          test -z "$ac_c_werror_flag" ||
9850          test ! -s conftest.err
9851        } && test -s conftest.$ac_objext; then
9852   ac_cv_have_decl_ferror_unlocked=yes
9853 else
9854   $as_echo "$as_me: failed program was:" >&5
9855 sed 's/^/| /' conftest.$ac_ext >&5
9856
9857         ac_cv_have_decl_ferror_unlocked=no
9858 fi
9859
9860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9861 fi
9862 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_ferror_unlocked" >&5
9863 $as_echo "$ac_cv_have_decl_ferror_unlocked" >&6; }
9864 if test "x$ac_cv_have_decl_ferror_unlocked" = x""yes; then
9865
9866 cat >>confdefs.h <<_ACEOF
9867 #define HAVE_DECL_FERROR_UNLOCKED 1
9868 _ACEOF
9869
9870
9871 else
9872   cat >>confdefs.h <<_ACEOF
9873 #define HAVE_DECL_FERROR_UNLOCKED 0
9874 _ACEOF
9875
9876
9877 fi
9878
9879
9880 { $as_echo "$as_me:$LINENO: checking whether fflush_unlocked is declared" >&5
9881 $as_echo_n "checking whether fflush_unlocked is declared... " >&6; }
9882 if test "${ac_cv_have_decl_fflush_unlocked+set}" = set; then
9883   $as_echo_n "(cached) " >&6
9884 else
9885   cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h.  */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h.  */
9891 $ac_includes_default
9892 int
9893 main ()
9894 {
9895 #ifndef fflush_unlocked
9896   (void) fflush_unlocked;
9897 #endif
9898
9899   ;
9900   return 0;
9901 }
9902 _ACEOF
9903 rm -f conftest.$ac_objext
9904 if { (ac_try="$ac_compile"
9905 case "(($ac_try" in
9906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9907   *) ac_try_echo=$ac_try;;
9908 esac
9909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9910 $as_echo "$ac_try_echo") >&5
9911   (eval "$ac_compile") 2>conftest.er1
9912   ac_status=$?
9913   grep -v '^ *+' conftest.er1 >conftest.err
9914   rm -f conftest.er1
9915   cat conftest.err >&5
9916   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9917   (exit $ac_status); } && {
9918          test -z "$ac_c_werror_flag" ||
9919          test ! -s conftest.err
9920        } && test -s conftest.$ac_objext; then
9921   ac_cv_have_decl_fflush_unlocked=yes
9922 else
9923   $as_echo "$as_me: failed program was:" >&5
9924 sed 's/^/| /' conftest.$ac_ext >&5
9925
9926         ac_cv_have_decl_fflush_unlocked=no
9927 fi
9928
9929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9930 fi
9931 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fflush_unlocked" >&5
9932 $as_echo "$ac_cv_have_decl_fflush_unlocked" >&6; }
9933 if test "x$ac_cv_have_decl_fflush_unlocked" = x""yes; then
9934
9935 cat >>confdefs.h <<_ACEOF
9936 #define HAVE_DECL_FFLUSH_UNLOCKED 1
9937 _ACEOF
9938
9939
9940 else
9941   cat >>confdefs.h <<_ACEOF
9942 #define HAVE_DECL_FFLUSH_UNLOCKED 0
9943 _ACEOF
9944
9945
9946 fi
9947
9948
9949 { $as_echo "$as_me:$LINENO: checking whether fgets_unlocked is declared" >&5
9950 $as_echo_n "checking whether fgets_unlocked is declared... " >&6; }
9951 if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then
9952   $as_echo_n "(cached) " >&6
9953 else
9954   cat >conftest.$ac_ext <<_ACEOF
9955 /* confdefs.h.  */
9956 _ACEOF
9957 cat confdefs.h >>conftest.$ac_ext
9958 cat >>conftest.$ac_ext <<_ACEOF
9959 /* end confdefs.h.  */
9960 $ac_includes_default
9961 int
9962 main ()
9963 {
9964 #ifndef fgets_unlocked
9965   (void) fgets_unlocked;
9966 #endif
9967
9968   ;
9969   return 0;
9970 }
9971 _ACEOF
9972 rm -f conftest.$ac_objext
9973 if { (ac_try="$ac_compile"
9974 case "(($ac_try" in
9975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9976   *) ac_try_echo=$ac_try;;
9977 esac
9978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9979 $as_echo "$ac_try_echo") >&5
9980   (eval "$ac_compile") 2>conftest.er1
9981   ac_status=$?
9982   grep -v '^ *+' conftest.er1 >conftest.err
9983   rm -f conftest.er1
9984   cat conftest.err >&5
9985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986   (exit $ac_status); } && {
9987          test -z "$ac_c_werror_flag" ||
9988          test ! -s conftest.err
9989        } && test -s conftest.$ac_objext; then
9990   ac_cv_have_decl_fgets_unlocked=yes
9991 else
9992   $as_echo "$as_me: failed program was:" >&5
9993 sed 's/^/| /' conftest.$ac_ext >&5
9994
9995         ac_cv_have_decl_fgets_unlocked=no
9996 fi
9997
9998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9999 fi
10000 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgets_unlocked" >&5
10001 $as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; }
10002 if test "x$ac_cv_have_decl_fgets_unlocked" = x""yes; then
10003
10004 cat >>confdefs.h <<_ACEOF
10005 #define HAVE_DECL_FGETS_UNLOCKED 1
10006 _ACEOF
10007
10008
10009 else
10010   cat >>confdefs.h <<_ACEOF
10011 #define HAVE_DECL_FGETS_UNLOCKED 0
10012 _ACEOF
10013
10014
10015 fi
10016
10017
10018 { $as_echo "$as_me:$LINENO: checking whether fputc_unlocked is declared" >&5
10019 $as_echo_n "checking whether fputc_unlocked is declared... " >&6; }
10020 if test "${ac_cv_have_decl_fputc_unlocked+set}" = set; then
10021   $as_echo_n "(cached) " >&6
10022 else
10023   cat >conftest.$ac_ext <<_ACEOF
10024 /* confdefs.h.  */
10025 _ACEOF
10026 cat confdefs.h >>conftest.$ac_ext
10027 cat >>conftest.$ac_ext <<_ACEOF
10028 /* end confdefs.h.  */
10029 $ac_includes_default
10030 int
10031 main ()
10032 {
10033 #ifndef fputc_unlocked
10034   (void) fputc_unlocked;
10035 #endif
10036
10037   ;
10038   return 0;
10039 }
10040 _ACEOF
10041 rm -f conftest.$ac_objext
10042 if { (ac_try="$ac_compile"
10043 case "(($ac_try" in
10044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10045   *) ac_try_echo=$ac_try;;
10046 esac
10047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10048 $as_echo "$ac_try_echo") >&5
10049   (eval "$ac_compile") 2>conftest.er1
10050   ac_status=$?
10051   grep -v '^ *+' conftest.er1 >conftest.err
10052   rm -f conftest.er1
10053   cat conftest.err >&5
10054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055   (exit $ac_status); } && {
10056          test -z "$ac_c_werror_flag" ||
10057          test ! -s conftest.err
10058        } && test -s conftest.$ac_objext; then
10059   ac_cv_have_decl_fputc_unlocked=yes
10060 else
10061   $as_echo "$as_me: failed program was:" >&5
10062 sed 's/^/| /' conftest.$ac_ext >&5
10063
10064         ac_cv_have_decl_fputc_unlocked=no
10065 fi
10066
10067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10068 fi
10069 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputc_unlocked" >&5
10070 $as_echo "$ac_cv_have_decl_fputc_unlocked" >&6; }
10071 if test "x$ac_cv_have_decl_fputc_unlocked" = x""yes; then
10072
10073 cat >>confdefs.h <<_ACEOF
10074 #define HAVE_DECL_FPUTC_UNLOCKED 1
10075 _ACEOF
10076
10077
10078 else
10079   cat >>confdefs.h <<_ACEOF
10080 #define HAVE_DECL_FPUTC_UNLOCKED 0
10081 _ACEOF
10082
10083
10084 fi
10085
10086
10087 { $as_echo "$as_me:$LINENO: checking whether fputs_unlocked is declared" >&5
10088 $as_echo_n "checking whether fputs_unlocked is declared... " >&6; }
10089 if test "${ac_cv_have_decl_fputs_unlocked+set}" = set; then
10090   $as_echo_n "(cached) " >&6
10091 else
10092   cat >conftest.$ac_ext <<_ACEOF
10093 /* confdefs.h.  */
10094 _ACEOF
10095 cat confdefs.h >>conftest.$ac_ext
10096 cat >>conftest.$ac_ext <<_ACEOF
10097 /* end confdefs.h.  */
10098 $ac_includes_default
10099 int
10100 main ()
10101 {
10102 #ifndef fputs_unlocked
10103   (void) fputs_unlocked;
10104 #endif
10105
10106   ;
10107   return 0;
10108 }
10109 _ACEOF
10110 rm -f conftest.$ac_objext
10111 if { (ac_try="$ac_compile"
10112 case "(($ac_try" in
10113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10114   *) ac_try_echo=$ac_try;;
10115 esac
10116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10117 $as_echo "$ac_try_echo") >&5
10118   (eval "$ac_compile") 2>conftest.er1
10119   ac_status=$?
10120   grep -v '^ *+' conftest.er1 >conftest.err
10121   rm -f conftest.er1
10122   cat conftest.err >&5
10123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10124   (exit $ac_status); } && {
10125          test -z "$ac_c_werror_flag" ||
10126          test ! -s conftest.err
10127        } && test -s conftest.$ac_objext; then
10128   ac_cv_have_decl_fputs_unlocked=yes
10129 else
10130   $as_echo "$as_me: failed program was:" >&5
10131 sed 's/^/| /' conftest.$ac_ext >&5
10132
10133         ac_cv_have_decl_fputs_unlocked=no
10134 fi
10135
10136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10137 fi
10138 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fputs_unlocked" >&5
10139 $as_echo "$ac_cv_have_decl_fputs_unlocked" >&6; }
10140 if test "x$ac_cv_have_decl_fputs_unlocked" = x""yes; then
10141
10142 cat >>confdefs.h <<_ACEOF
10143 #define HAVE_DECL_FPUTS_UNLOCKED 1
10144 _ACEOF
10145
10146
10147 else
10148   cat >>confdefs.h <<_ACEOF
10149 #define HAVE_DECL_FPUTS_UNLOCKED 0
10150 _ACEOF
10151
10152
10153 fi
10154
10155
10156 { $as_echo "$as_me:$LINENO: checking whether fread_unlocked is declared" >&5
10157 $as_echo_n "checking whether fread_unlocked is declared... " >&6; }
10158 if test "${ac_cv_have_decl_fread_unlocked+set}" = set; then
10159   $as_echo_n "(cached) " >&6
10160 else
10161   cat >conftest.$ac_ext <<_ACEOF
10162 /* confdefs.h.  */
10163 _ACEOF
10164 cat confdefs.h >>conftest.$ac_ext
10165 cat >>conftest.$ac_ext <<_ACEOF
10166 /* end confdefs.h.  */
10167 $ac_includes_default
10168 int
10169 main ()
10170 {
10171 #ifndef fread_unlocked
10172   (void) fread_unlocked;
10173 #endif
10174
10175   ;
10176   return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest.$ac_objext
10180 if { (ac_try="$ac_compile"
10181 case "(($ac_try" in
10182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183   *) ac_try_echo=$ac_try;;
10184 esac
10185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10186 $as_echo "$ac_try_echo") >&5
10187   (eval "$ac_compile") 2>conftest.er1
10188   ac_status=$?
10189   grep -v '^ *+' conftest.er1 >conftest.err
10190   rm -f conftest.er1
10191   cat conftest.err >&5
10192   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193   (exit $ac_status); } && {
10194          test -z "$ac_c_werror_flag" ||
10195          test ! -s conftest.err
10196        } && test -s conftest.$ac_objext; then
10197   ac_cv_have_decl_fread_unlocked=yes
10198 else
10199   $as_echo "$as_me: failed program was:" >&5
10200 sed 's/^/| /' conftest.$ac_ext >&5
10201
10202         ac_cv_have_decl_fread_unlocked=no
10203 fi
10204
10205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10206 fi
10207 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fread_unlocked" >&5
10208 $as_echo "$ac_cv_have_decl_fread_unlocked" >&6; }
10209 if test "x$ac_cv_have_decl_fread_unlocked" = x""yes; then
10210
10211 cat >>confdefs.h <<_ACEOF
10212 #define HAVE_DECL_FREAD_UNLOCKED 1
10213 _ACEOF
10214
10215
10216 else
10217   cat >>confdefs.h <<_ACEOF
10218 #define HAVE_DECL_FREAD_UNLOCKED 0
10219 _ACEOF
10220
10221
10222 fi
10223
10224
10225 { $as_echo "$as_me:$LINENO: checking whether fwrite_unlocked is declared" >&5
10226 $as_echo_n "checking whether fwrite_unlocked is declared... " >&6; }
10227 if test "${ac_cv_have_decl_fwrite_unlocked+set}" = set; then
10228   $as_echo_n "(cached) " >&6
10229 else
10230   cat >conftest.$ac_ext <<_ACEOF
10231 /* confdefs.h.  */
10232 _ACEOF
10233 cat confdefs.h >>conftest.$ac_ext
10234 cat >>conftest.$ac_ext <<_ACEOF
10235 /* end confdefs.h.  */
10236 $ac_includes_default
10237 int
10238 main ()
10239 {
10240 #ifndef fwrite_unlocked
10241   (void) fwrite_unlocked;
10242 #endif
10243
10244   ;
10245   return 0;
10246 }
10247 _ACEOF
10248 rm -f conftest.$ac_objext
10249 if { (ac_try="$ac_compile"
10250 case "(($ac_try" in
10251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252   *) ac_try_echo=$ac_try;;
10253 esac
10254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10255 $as_echo "$ac_try_echo") >&5
10256   (eval "$ac_compile") 2>conftest.er1
10257   ac_status=$?
10258   grep -v '^ *+' conftest.er1 >conftest.err
10259   rm -f conftest.er1
10260   cat conftest.err >&5
10261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); } && {
10263          test -z "$ac_c_werror_flag" ||
10264          test ! -s conftest.err
10265        } && test -s conftest.$ac_objext; then
10266   ac_cv_have_decl_fwrite_unlocked=yes
10267 else
10268   $as_echo "$as_me: failed program was:" >&5
10269 sed 's/^/| /' conftest.$ac_ext >&5
10270
10271         ac_cv_have_decl_fwrite_unlocked=no
10272 fi
10273
10274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10275 fi
10276 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fwrite_unlocked" >&5
10277 $as_echo "$ac_cv_have_decl_fwrite_unlocked" >&6; }
10278 if test "x$ac_cv_have_decl_fwrite_unlocked" = x""yes; then
10279
10280 cat >>confdefs.h <<_ACEOF
10281 #define HAVE_DECL_FWRITE_UNLOCKED 1
10282 _ACEOF
10283
10284
10285 else
10286   cat >>confdefs.h <<_ACEOF
10287 #define HAVE_DECL_FWRITE_UNLOCKED 0
10288 _ACEOF
10289
10290
10291 fi
10292
10293
10294 { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
10295 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
10296 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
10297   $as_echo_n "(cached) " >&6
10298 else
10299   cat >conftest.$ac_ext <<_ACEOF
10300 /* confdefs.h.  */
10301 _ACEOF
10302 cat confdefs.h >>conftest.$ac_ext
10303 cat >>conftest.$ac_ext <<_ACEOF
10304 /* end confdefs.h.  */
10305 $ac_includes_default
10306 int
10307 main ()
10308 {
10309 #ifndef getc_unlocked
10310   (void) getc_unlocked;
10311 #endif
10312
10313   ;
10314   return 0;
10315 }
10316 _ACEOF
10317 rm -f conftest.$ac_objext
10318 if { (ac_try="$ac_compile"
10319 case "(($ac_try" in
10320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10321   *) ac_try_echo=$ac_try;;
10322 esac
10323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10324 $as_echo "$ac_try_echo") >&5
10325   (eval "$ac_compile") 2>conftest.er1
10326   ac_status=$?
10327   grep -v '^ *+' conftest.er1 >conftest.err
10328   rm -f conftest.er1
10329   cat conftest.err >&5
10330   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10331   (exit $ac_status); } && {
10332          test -z "$ac_c_werror_flag" ||
10333          test ! -s conftest.err
10334        } && test -s conftest.$ac_objext; then
10335   ac_cv_have_decl_getc_unlocked=yes
10336 else
10337   $as_echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340         ac_cv_have_decl_getc_unlocked=no
10341 fi
10342
10343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10344 fi
10345 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
10346 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
10347 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
10348
10349 cat >>confdefs.h <<_ACEOF
10350 #define HAVE_DECL_GETC_UNLOCKED 1
10351 _ACEOF
10352
10353
10354 else
10355   cat >>confdefs.h <<_ACEOF
10356 #define HAVE_DECL_GETC_UNLOCKED 0
10357 _ACEOF
10358
10359
10360 fi
10361
10362
10363 { $as_echo "$as_me:$LINENO: checking whether getchar_unlocked is declared" >&5
10364 $as_echo_n "checking whether getchar_unlocked is declared... " >&6; }
10365 if test "${ac_cv_have_decl_getchar_unlocked+set}" = set; then
10366   $as_echo_n "(cached) " >&6
10367 else
10368   cat >conftest.$ac_ext <<_ACEOF
10369 /* confdefs.h.  */
10370 _ACEOF
10371 cat confdefs.h >>conftest.$ac_ext
10372 cat >>conftest.$ac_ext <<_ACEOF
10373 /* end confdefs.h.  */
10374 $ac_includes_default
10375 int
10376 main ()
10377 {
10378 #ifndef getchar_unlocked
10379   (void) getchar_unlocked;
10380 #endif
10381
10382   ;
10383   return 0;
10384 }
10385 _ACEOF
10386 rm -f conftest.$ac_objext
10387 if { (ac_try="$ac_compile"
10388 case "(($ac_try" in
10389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390   *) ac_try_echo=$ac_try;;
10391 esac
10392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10393 $as_echo "$ac_try_echo") >&5
10394   (eval "$ac_compile") 2>conftest.er1
10395   ac_status=$?
10396   grep -v '^ *+' conftest.er1 >conftest.err
10397   rm -f conftest.er1
10398   cat conftest.err >&5
10399   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10400   (exit $ac_status); } && {
10401          test -z "$ac_c_werror_flag" ||
10402          test ! -s conftest.err
10403        } && test -s conftest.$ac_objext; then
10404   ac_cv_have_decl_getchar_unlocked=yes
10405 else
10406   $as_echo "$as_me: failed program was:" >&5
10407 sed 's/^/| /' conftest.$ac_ext >&5
10408
10409         ac_cv_have_decl_getchar_unlocked=no
10410 fi
10411
10412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10413 fi
10414 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getchar_unlocked" >&5
10415 $as_echo "$ac_cv_have_decl_getchar_unlocked" >&6; }
10416 if test "x$ac_cv_have_decl_getchar_unlocked" = x""yes; then
10417
10418 cat >>confdefs.h <<_ACEOF
10419 #define HAVE_DECL_GETCHAR_UNLOCKED 1
10420 _ACEOF
10421
10422
10423 else
10424   cat >>confdefs.h <<_ACEOF
10425 #define HAVE_DECL_GETCHAR_UNLOCKED 0
10426 _ACEOF
10427
10428
10429 fi
10430
10431
10432 { $as_echo "$as_me:$LINENO: checking whether putc_unlocked is declared" >&5
10433 $as_echo_n "checking whether putc_unlocked is declared... " >&6; }
10434 if test "${ac_cv_have_decl_putc_unlocked+set}" = set; then
10435   $as_echo_n "(cached) " >&6
10436 else
10437   cat >conftest.$ac_ext <<_ACEOF
10438 /* confdefs.h.  */
10439 _ACEOF
10440 cat confdefs.h >>conftest.$ac_ext
10441 cat >>conftest.$ac_ext <<_ACEOF
10442 /* end confdefs.h.  */
10443 $ac_includes_default
10444 int
10445 main ()
10446 {
10447 #ifndef putc_unlocked
10448   (void) putc_unlocked;
10449 #endif
10450
10451   ;
10452   return 0;
10453 }
10454 _ACEOF
10455 rm -f conftest.$ac_objext
10456 if { (ac_try="$ac_compile"
10457 case "(($ac_try" in
10458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10459   *) ac_try_echo=$ac_try;;
10460 esac
10461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10462 $as_echo "$ac_try_echo") >&5
10463   (eval "$ac_compile") 2>conftest.er1
10464   ac_status=$?
10465   grep -v '^ *+' conftest.er1 >conftest.err
10466   rm -f conftest.er1
10467   cat conftest.err >&5
10468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10469   (exit $ac_status); } && {
10470          test -z "$ac_c_werror_flag" ||
10471          test ! -s conftest.err
10472        } && test -s conftest.$ac_objext; then
10473   ac_cv_have_decl_putc_unlocked=yes
10474 else
10475   $as_echo "$as_me: failed program was:" >&5
10476 sed 's/^/| /' conftest.$ac_ext >&5
10477
10478         ac_cv_have_decl_putc_unlocked=no
10479 fi
10480
10481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10482 fi
10483 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putc_unlocked" >&5
10484 $as_echo "$ac_cv_have_decl_putc_unlocked" >&6; }
10485 if test "x$ac_cv_have_decl_putc_unlocked" = x""yes; then
10486
10487 cat >>confdefs.h <<_ACEOF
10488 #define HAVE_DECL_PUTC_UNLOCKED 1
10489 _ACEOF
10490
10491
10492 else
10493   cat >>confdefs.h <<_ACEOF
10494 #define HAVE_DECL_PUTC_UNLOCKED 0
10495 _ACEOF
10496
10497
10498 fi
10499
10500
10501 { $as_echo "$as_me:$LINENO: checking whether putchar_unlocked is declared" >&5
10502 $as_echo_n "checking whether putchar_unlocked is declared... " >&6; }
10503 if test "${ac_cv_have_decl_putchar_unlocked+set}" = set; then
10504   $as_echo_n "(cached) " >&6
10505 else
10506   cat >conftest.$ac_ext <<_ACEOF
10507 /* confdefs.h.  */
10508 _ACEOF
10509 cat confdefs.h >>conftest.$ac_ext
10510 cat >>conftest.$ac_ext <<_ACEOF
10511 /* end confdefs.h.  */
10512 $ac_includes_default
10513 int
10514 main ()
10515 {
10516 #ifndef putchar_unlocked
10517   (void) putchar_unlocked;
10518 #endif
10519
10520   ;
10521   return 0;
10522 }
10523 _ACEOF
10524 rm -f conftest.$ac_objext
10525 if { (ac_try="$ac_compile"
10526 case "(($ac_try" in
10527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10528   *) ac_try_echo=$ac_try;;
10529 esac
10530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10531 $as_echo "$ac_try_echo") >&5
10532   (eval "$ac_compile") 2>conftest.er1
10533   ac_status=$?
10534   grep -v '^ *+' conftest.er1 >conftest.err
10535   rm -f conftest.er1
10536   cat conftest.err >&5
10537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538   (exit $ac_status); } && {
10539          test -z "$ac_c_werror_flag" ||
10540          test ! -s conftest.err
10541        } && test -s conftest.$ac_objext; then
10542   ac_cv_have_decl_putchar_unlocked=yes
10543 else
10544   $as_echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10546
10547         ac_cv_have_decl_putchar_unlocked=no
10548 fi
10549
10550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10551 fi
10552 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_putchar_unlocked" >&5
10553 $as_echo "$ac_cv_have_decl_putchar_unlocked" >&6; }
10554 if test "x$ac_cv_have_decl_putchar_unlocked" = x""yes; then
10555
10556 cat >>confdefs.h <<_ACEOF
10557 #define HAVE_DECL_PUTCHAR_UNLOCKED 1
10558 _ACEOF
10559
10560
10561 else
10562   cat >>confdefs.h <<_ACEOF
10563 #define HAVE_DECL_PUTCHAR_UNLOCKED 0
10564 _ACEOF
10565
10566
10567 fi
10568
10569
10570
10571
10572
10573
10574 for ac_func in $ac_func_list
10575 do
10576 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10577 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10578 $as_echo_n "checking for $ac_func... " >&6; }
10579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10580   $as_echo_n "(cached) " >&6
10581 else
10582   cat >conftest.$ac_ext <<_ACEOF
10583 /* confdefs.h.  */
10584 _ACEOF
10585 cat confdefs.h >>conftest.$ac_ext
10586 cat >>conftest.$ac_ext <<_ACEOF
10587 /* end confdefs.h.  */
10588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10590 #define $ac_func innocuous_$ac_func
10591
10592 /* System header to define __stub macros and hopefully few prototypes,
10593     which can conflict with char $ac_func (); below.
10594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10595     <limits.h> exists even on freestanding compilers.  */
10596
10597 #ifdef __STDC__
10598 # include <limits.h>
10599 #else
10600 # include <assert.h>
10601 #endif
10602
10603 #undef $ac_func
10604
10605 /* Override any GCC internal prototype to avoid an error.
10606    Use char because int might match the return type of a GCC
10607    builtin and then its argument prototype would still apply.  */
10608 #ifdef __cplusplus
10609 extern "C"
10610 #endif
10611 char $ac_func ();
10612 /* The GNU C library defines this for functions which it implements
10613     to always fail with ENOSYS.  Some functions are actually named
10614     something starting with __ and the normal name is an alias.  */
10615 #if defined __stub_$ac_func || defined __stub___$ac_func
10616 choke me
10617 #endif
10618
10619 int
10620 main ()
10621 {
10622 return $ac_func ();
10623   ;
10624   return 0;
10625 }
10626 _ACEOF
10627 rm -f conftest.$ac_objext conftest$ac_exeext
10628 if { (ac_try="$ac_link"
10629 case "(($ac_try" in
10630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10631   *) ac_try_echo=$ac_try;;
10632 esac
10633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10634 $as_echo "$ac_try_echo") >&5
10635   (eval "$ac_link") 2>conftest.er1
10636   ac_status=$?
10637   grep -v '^ *+' conftest.er1 >conftest.err
10638   rm -f conftest.er1
10639   cat conftest.err >&5
10640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641   (exit $ac_status); } && {
10642          test -z "$ac_c_werror_flag" ||
10643          test ! -s conftest.err
10644        } && test -s conftest$ac_exeext && {
10645          test "$cross_compiling" = yes ||
10646          $as_test_x conftest$ac_exeext
10647        }; then
10648   eval "$as_ac_var=yes"
10649 else
10650   $as_echo "$as_me: failed program was:" >&5
10651 sed 's/^/| /' conftest.$ac_ext >&5
10652
10653         eval "$as_ac_var=no"
10654 fi
10655
10656 rm -rf conftest.dSYM
10657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10658       conftest$ac_exeext conftest.$ac_ext
10659 fi
10660 ac_res=`eval 'as_val=${'$as_ac_var'}
10661                  $as_echo "$as_val"'`
10662                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10663 $as_echo "$ac_res" >&6; }
10664 as_val=`eval 'as_val=${'$as_ac_var'}
10665                  $as_echo "$as_val"'`
10666    if test "x$as_val" = x""yes; then
10667   cat >>confdefs.h <<_ACEOF
10668 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10669 _ACEOF
10670
10671 fi
10672 done
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683   XGETTEXT_EXTRA_OPTIONS=
10684
10685 { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
10686 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
10687 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
10688   $as_echo_n "(cached) " >&6
10689 else
10690   if test "$cross_compiling" = yes; then
10691   gl_cv_struct_dirent_d_ino=no
10692 else
10693   cat >conftest.$ac_ext <<_ACEOF
10694 /* confdefs.h.  */
10695 _ACEOF
10696 cat confdefs.h >>conftest.$ac_ext
10697 cat >>conftest.$ac_ext <<_ACEOF
10698 /* end confdefs.h.  */
10699 #include <sys/types.h>
10700              #include <sys/stat.h>
10701              #include <dirent.h>
10702
10703 int
10704 main ()
10705 {
10706 DIR *dp = opendir (".");
10707              struct dirent *e;
10708              struct stat st;
10709              if (! dp)
10710                return 1;
10711              e = readdir (dp);
10712              if (! e)
10713                return 2;
10714              if (stat (e->d_name, &st) != 0)
10715                return 3;
10716              if (e->d_ino != st.st_ino)
10717                return 4;
10718              return 0;
10719
10720   ;
10721   return 0;
10722 }
10723 _ACEOF
10724 rm -f conftest$ac_exeext
10725 if { (ac_try="$ac_link"
10726 case "(($ac_try" in
10727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10728   *) ac_try_echo=$ac_try;;
10729 esac
10730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10731 $as_echo "$ac_try_echo") >&5
10732   (eval "$ac_link") 2>&5
10733   ac_status=$?
10734   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10736   { (case "(($ac_try" in
10737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10738   *) ac_try_echo=$ac_try;;
10739 esac
10740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10741 $as_echo "$ac_try_echo") >&5
10742   (eval "$ac_try") 2>&5
10743   ac_status=$?
10744   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745   (exit $ac_status); }; }; then
10746   gl_cv_struct_dirent_d_ino=yes
10747 else
10748   $as_echo "$as_me: program exited with status $ac_status" >&5
10749 $as_echo "$as_me: failed program was:" >&5
10750 sed 's/^/| /' conftest.$ac_ext >&5
10751
10752 ( exit $ac_status )
10753 gl_cv_struct_dirent_d_ino=no
10754 fi
10755 rm -rf conftest.dSYM
10756 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10757 fi
10758
10759
10760 fi
10761 { $as_echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
10762 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
10763    if test $gl_cv_struct_dirent_d_ino = yes; then
10764
10765 cat >>confdefs.h <<\_ACEOF
10766 #define D_INO_IN_DIRENT 1
10767 _ACEOF
10768
10769    fi
10770
10771
10772 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
10773 $as_echo_n "checking for long file names... " >&6; }
10774 if test "${ac_cv_sys_long_file_names+set}" = set; then
10775   $as_echo_n "(cached) " >&6
10776 else
10777   ac_cv_sys_long_file_names=yes
10778 # Test for long file names in all the places we know might matter:
10779 #      .                the current directory, where building will happen
10780 #      $prefix/lib      where we will be installing things
10781 #      $exec_prefix/lib likewise
10782 #      $TMPDIR          if set, where it might want to write temporary files
10783 #      /tmp             where it might want to write temporary files
10784 #      /var/tmp         likewise
10785 #      /usr/tmp         likewise
10786 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
10787   # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
10788   # in the usual case where exec_prefix is '${prefix}'.
10789   case $ac_dir in #(
10790     . | /* | ?:[\\/]*) ;; #(
10791     *) continue;;
10792   esac
10793   test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
10794   ac_xdir=$ac_dir/cf$$
10795   (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
10796   ac_tf1=$ac_xdir/conftest9012345
10797   ac_tf2=$ac_xdir/conftest9012346
10798   touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
10799     ac_cv_sys_long_file_names=no
10800   rm -f -r "$ac_xdir" 2>/dev/null
10801   test $ac_cv_sys_long_file_names = no && break
10802 done
10803 fi
10804 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
10805 $as_echo "$ac_cv_sys_long_file_names" >&6; }
10806 if test $ac_cv_sys_long_file_names = yes; then
10807
10808 cat >>confdefs.h <<\_ACEOF
10809 #define HAVE_LONG_FILE_NAMES 1
10810 _ACEOF
10811
10812 fi
10813
10814
10815
10816
10817   GNULIB_BTOWC=0;
10818   GNULIB_WCTOB=0;
10819   GNULIB_MBSINIT=0;
10820   GNULIB_MBRTOWC=0;
10821   GNULIB_MBRLEN=0;
10822   GNULIB_MBSRTOWCS=0;
10823   GNULIB_MBSNRTOWCS=0;
10824   GNULIB_WCRTOMB=0;
10825   GNULIB_WCSRTOMBS=0;
10826   GNULIB_WCSNRTOMBS=0;
10827   GNULIB_WCWIDTH=0;
10828   GNULIB_WMEMCHR=0;
10829   GNULIB_WMEMCMP=0;
10830   GNULIB_WMEMCPY=0;
10831   GNULIB_WMEMMOVE=0;
10832   GNULIB_WMEMSET=0;
10833   GNULIB_WCSLEN=0;
10834   GNULIB_WCSNLEN=0;
10835   GNULIB_WCSCPY=0;
10836   GNULIB_WCPCPY=0;
10837   GNULIB_WCSNCPY=0;
10838   GNULIB_WCPNCPY=0;
10839   GNULIB_WCSCAT=0;
10840   GNULIB_WCSNCAT=0;
10841   GNULIB_WCSCMP=0;
10842   GNULIB_WCSNCMP=0;
10843   GNULIB_WCSCASECMP=0;
10844   GNULIB_WCSNCASECMP=0;
10845   GNULIB_WCSCOLL=0;
10846   GNULIB_WCSXFRM=0;
10847   GNULIB_WCSDUP=0;
10848   GNULIB_WCSCHR=0;
10849   GNULIB_WCSRCHR=0;
10850   GNULIB_WCSCSPN=0;
10851   GNULIB_WCSSPN=0;
10852   GNULIB_WCSPBRK=0;
10853   GNULIB_WCSSTR=0;
10854   GNULIB_WCSTOK=0;
10855   GNULIB_WCSWIDTH=0;
10856     HAVE_BTOWC=1;
10857   HAVE_MBSINIT=1;
10858   HAVE_MBRTOWC=1;
10859   HAVE_MBRLEN=1;
10860   HAVE_MBSRTOWCS=1;
10861   HAVE_MBSNRTOWCS=1;
10862   HAVE_WCRTOMB=1;
10863   HAVE_WCSRTOMBS=1;
10864   HAVE_WCSNRTOMBS=1;
10865   HAVE_WMEMCHR=1;
10866   HAVE_WMEMCMP=1;
10867   HAVE_WMEMCPY=1;
10868   HAVE_WMEMMOVE=1;
10869   HAVE_WMEMSET=1;
10870   HAVE_WCSLEN=1;
10871   HAVE_WCSNLEN=1;
10872   HAVE_WCSCPY=1;
10873   HAVE_WCPCPY=1;
10874   HAVE_WCSNCPY=1;
10875   HAVE_WCPNCPY=1;
10876   HAVE_WCSCAT=1;
10877   HAVE_WCSNCAT=1;
10878   HAVE_WCSCMP=1;
10879   HAVE_WCSNCMP=1;
10880   HAVE_WCSCASECMP=1;
10881   HAVE_WCSNCASECMP=1;
10882   HAVE_WCSCOLL=1;
10883   HAVE_WCSXFRM=1;
10884   HAVE_WCSDUP=1;
10885   HAVE_WCSCHR=1;
10886   HAVE_WCSRCHR=1;
10887   HAVE_WCSCSPN=1;
10888   HAVE_WCSSPN=1;
10889   HAVE_WCSPBRK=1;
10890   HAVE_WCSSTR=1;
10891   HAVE_WCSTOK=1;
10892   HAVE_WCSWIDTH=1;
10893   HAVE_DECL_WCTOB=1;
10894   HAVE_DECL_WCWIDTH=1;
10895   REPLACE_MBSTATE_T=0;
10896   REPLACE_BTOWC=0;
10897   REPLACE_WCTOB=0;
10898   REPLACE_MBSINIT=0;
10899   REPLACE_MBRTOWC=0;
10900   REPLACE_MBRLEN=0;
10901   REPLACE_MBSRTOWCS=0;
10902   REPLACE_MBSNRTOWCS=0;
10903   REPLACE_WCRTOMB=0;
10904   REPLACE_WCSRTOMBS=0;
10905   REPLACE_WCSNRTOMBS=0;
10906   REPLACE_WCWIDTH=0;
10907   REPLACE_WCSWIDTH=0;
10908
10909
10910             { $as_echo "$as_me:$LINENO: checking whether <wchar.h> uses 'inline' correctly" >&5
10911 $as_echo_n "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
10912 if test "${gl_cv_header_wchar_h_correct_inline+set}" = set; then
10913   $as_echo_n "(cached) " >&6
10914 else
10915   gl_cv_header_wchar_h_correct_inline=yes
10916      cat >conftest.$ac_ext <<_ACEOF
10917
10918        /* confdefs.h.  */
10919 _ACEOF
10920 cat confdefs.h >>conftest.$ac_ext
10921 cat >>conftest.$ac_ext <<_ACEOF
10922 /* end confdefs.h.  */
10923 #define wcstod renamed_wcstod
10924 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10925    <wchar.h>.
10926    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10927    included before <wchar.h>.  */
10928 #include <stddef.h>
10929 #include <stdio.h>
10930 #include <time.h>
10931 #include <wchar.h>
10932 extern int zero (void);
10933 int main () { return zero(); }
10934
10935 _ACEOF
10936      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10937   (eval $ac_compile) 2>&5
10938   ac_status=$?
10939   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); }; then
10941        mv conftest.$ac_objext conftest1.$ac_objext
10942        cat >conftest.$ac_ext <<_ACEOF
10943
10944          /* confdefs.h.  */
10945 _ACEOF
10946 cat confdefs.h >>conftest.$ac_ext
10947 cat >>conftest.$ac_ext <<_ACEOF
10948 /* end confdefs.h.  */
10949 #define wcstod renamed_wcstod
10950 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10951    <wchar.h>.
10952    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10953    included before <wchar.h>.  */
10954 #include <stddef.h>
10955 #include <stdio.h>
10956 #include <time.h>
10957 #include <wchar.h>
10958 int zero (void) { return 0; }
10959
10960 _ACEOF
10961        if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10962   (eval $ac_compile) 2>&5
10963   ac_status=$?
10964   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965   (exit $ac_status); }; then
10966          mv conftest.$ac_objext conftest2.$ac_objext
10967          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
10968            :
10969          else
10970            gl_cv_header_wchar_h_correct_inline=no
10971          fi
10972        fi
10973      fi
10974      rm -f conftest1.$ac_objext conftest2.$ac_objext conftest$ac_exeext
10975
10976 fi
10977 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_wchar_h_correct_inline" >&5
10978 $as_echo "$gl_cv_header_wchar_h_correct_inline" >&6; }
10979   if test $gl_cv_header_wchar_h_correct_inline = no; then
10980     { { $as_echo "$as_me:$LINENO: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10981 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10982 C99 mode. You have four options:
10983   - Add the flag -fgnu89-inline to CC and reconfigure, or
10984   - Fix your include files, using parts of
10985     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10986   - Use a gcc version older than 4.3, or
10987   - Don't use the flags -std=c99 or -std=gnu99.
10988 Configuration aborted." >&5
10989 $as_echo "$as_me: error: <wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
10990 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
10991 C99 mode. You have four options:
10992   - Add the flag -fgnu89-inline to CC and reconfigure, or
10993   - Fix your include files, using parts of
10994     <http://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
10995   - Use a gcc version older than 4.3, or
10996   - Don't use the flags -std=c99 or -std=gnu99.
10997 Configuration aborted." >&2;}
10998    { (exit 1); exit 1; }; }
10999   fi
11000
11001
11002
11003
11004   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
11005 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
11006 if test "${am_cv_langinfo_codeset+set}" = set; then
11007   $as_echo_n "(cached) " >&6
11008 else
11009   cat >conftest.$ac_ext <<_ACEOF
11010 /* confdefs.h.  */
11011 _ACEOF
11012 cat confdefs.h >>conftest.$ac_ext
11013 cat >>conftest.$ac_ext <<_ACEOF
11014 /* end confdefs.h.  */
11015 #include <langinfo.h>
11016 int
11017 main ()
11018 {
11019 char* cs = nl_langinfo(CODESET); return !cs;
11020   ;
11021   return 0;
11022 }
11023 _ACEOF
11024 rm -f conftest.$ac_objext conftest$ac_exeext
11025 if { (ac_try="$ac_link"
11026 case "(($ac_try" in
11027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11028   *) ac_try_echo=$ac_try;;
11029 esac
11030 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11031 $as_echo "$ac_try_echo") >&5
11032   (eval "$ac_link") 2>conftest.er1
11033   ac_status=$?
11034   grep -v '^ *+' conftest.er1 >conftest.err
11035   rm -f conftest.er1
11036   cat conftest.err >&5
11037   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038   (exit $ac_status); } && {
11039          test -z "$ac_c_werror_flag" ||
11040          test ! -s conftest.err
11041        } && test -s conftest$ac_exeext && {
11042          test "$cross_compiling" = yes ||
11043          $as_test_x conftest$ac_exeext
11044        }; then
11045   am_cv_langinfo_codeset=yes
11046 else
11047   $as_echo "$as_me: failed program was:" >&5
11048 sed 's/^/| /' conftest.$ac_ext >&5
11049
11050         am_cv_langinfo_codeset=no
11051 fi
11052
11053 rm -rf conftest.dSYM
11054 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11055       conftest$ac_exeext conftest.$ac_ext
11056
11057 fi
11058 { $as_echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
11059 $as_echo "$am_cv_langinfo_codeset" >&6; }
11060   if test $am_cv_langinfo_codeset = yes; then
11061
11062 cat >>confdefs.h <<\_ACEOF
11063 #define HAVE_LANGINFO_CODESET 1
11064 _ACEOF
11065
11066   fi
11067
11068
11069
11070
11071   { $as_echo "$as_me:$LINENO: checking for a traditional french locale" >&5
11072 $as_echo_n "checking for a traditional french locale... " >&6; }
11073 if test "${gt_cv_locale_fr+set}" = set; then
11074   $as_echo_n "(cached) " >&6
11075 else
11076
11077     cat >conftest.$ac_ext <<_ACEOF
11078 /* confdefs.h.  */
11079 _ACEOF
11080 cat confdefs.h >>conftest.$ac_ext
11081 cat >>conftest.$ac_ext <<_ACEOF
11082 /* end confdefs.h.  */
11083
11084 #include <locale.h>
11085 #include <time.h>
11086 #if HAVE_LANGINFO_CODESET
11087 # include <langinfo.h>
11088 #endif
11089 #include <stdlib.h>
11090 #include <string.h>
11091 struct tm t;
11092 char buf[16];
11093 int main () {
11094   /* Check whether the given locale name is recognized by the system.  */
11095 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
11096   /* On native Win32, setlocale(category, "") looks at the system settings,
11097      not at the environment variables.  Also, when an encoding suffix such
11098      as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE
11099      category of the locale to "C".  */
11100   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11101       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11102     return 1;
11103 #else
11104   if (setlocale (LC_ALL, "") == NULL) return 1;
11105 #endif
11106   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11107      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11108      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11109      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11110      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11111      some unit tests fail.
11112      On MirBSD 10, when an unsupported locale is specified, setlocale()
11113      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
11114 #if HAVE_LANGINFO_CODESET
11115   {
11116     const char *cs = nl_langinfo (CODESET);
11117     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11118         || strcmp (cs, "UTF-8") == 0)
11119       return 1;
11120   }
11121 #endif
11122 #ifdef __CYGWIN__
11123   /* On Cygwin, avoid locale names without encoding suffix, because the
11124      locale_charset() function relies on the encoding suffix.  Note that
11125      LC_ALL is set on the command line.  */
11126   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11127 #endif
11128   /* Check whether in the abbreviation of the second month, the second
11129      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is only
11130      one byte long. This excludes the UTF-8 encoding.  */
11131   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11132   if (strftime (buf, sizeof (buf), "%b", &t) < 3 || buf[2] != 'v') return 1;
11133   /* Check whether the decimal separator is a comma.
11134      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
11135      are nl_langinfo(RADIXCHAR) are both ".".  */
11136   if (localeconv () ->decimal_point[0] != ',') return 1;
11137   return 0;
11138 }
11139
11140 _ACEOF
11141     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11142   (eval $ac_link) 2>&5
11143   ac_status=$?
11144   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); } && test -s conftest$ac_exeext; then
11146       case "$host_os" in
11147         # Handle native Windows specially, because there setlocale() interprets
11148         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11149         # "fr" or "fra" as "French" or "French_France.1252",
11150         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11151         # "ja" as "Japanese" or "Japanese_Japan.932",
11152         # and similar.
11153         mingw*)
11154           # Test for the native Win32 locale name.
11155           if (LC_ALL=French_France.1252 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11156             gt_cv_locale_fr=French_France.1252
11157           else
11158             # None found.
11159             gt_cv_locale_fr=none
11160           fi
11161           ;;
11162         *)
11163           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11164           # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
11165           # configure script would override the LC_ALL setting. Likewise for
11166           # LC_CTYPE, which is also set at the beginning of the configure script.
11167           # Test for the usual locale name.
11168           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11169             gt_cv_locale_fr=fr_FR
11170           else
11171             # Test for the locale name with explicit encoding suffix.
11172             if (LC_ALL=fr_FR.ISO-8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11173               gt_cv_locale_fr=fr_FR.ISO-8859-1
11174             else
11175               # Test for the AIX, OSF/1, FreeBSD, NetBSD, OpenBSD locale name.
11176               if (LC_ALL=fr_FR.ISO8859-1 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11177                 gt_cv_locale_fr=fr_FR.ISO8859-1
11178               else
11179                 # Test for the HP-UX locale name.
11180                 if (LC_ALL=fr_FR.iso88591 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11181                   gt_cv_locale_fr=fr_FR.iso88591
11182                 else
11183                   # Test for the Solaris 7 locale name.
11184                   if (LC_ALL=fr LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11185                     gt_cv_locale_fr=fr
11186                   else
11187                     # None found.
11188                     gt_cv_locale_fr=none
11189                   fi
11190                 fi
11191               fi
11192             fi
11193           fi
11194           ;;
11195       esac
11196     fi
11197     rm -fr conftest*
11198
11199 fi
11200 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr" >&5
11201 $as_echo "$gt_cv_locale_fr" >&6; }
11202   LOCALE_FR=$gt_cv_locale_fr
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213   { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
11214 $as_echo_n "checking whether // is distinct from /... " >&6; }
11215 if test "${gl_cv_double_slash_root+set}" = set; then
11216   $as_echo_n "(cached) " >&6
11217 else
11218    if test x"$cross_compiling" = xyes ; then
11219         # When cross-compiling, there is no way to tell whether // is special
11220         # short of a list of hosts.  However, the only known hosts to date
11221         # that have a distinct // are Apollo DomainOS (too old to port to),
11222         # Cygwin, and z/OS.  If anyone knows of another system for which // has
11223         # special semantics and is distinct from /, please report it to
11224         # <bug-gnulib@gnu.org>.
11225         case $host in
11226           *-cygwin | i370-ibm-openedition)
11227             gl_cv_double_slash_root=yes ;;
11228           *)
11229             # Be optimistic and assume that / and // are the same when we
11230             # don't know.
11231             gl_cv_double_slash_root='unknown, assuming no' ;;
11232         esac
11233       else
11234         set x `ls -di / // 2>/dev/null`
11235         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
11236           gl_cv_double_slash_root=no
11237         else
11238           gl_cv_double_slash_root=yes
11239         fi
11240       fi
11241 fi
11242 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
11243 $as_echo "$gl_cv_double_slash_root" >&6; }
11244   if test "$gl_cv_double_slash_root" = yes; then
11245
11246 cat >>confdefs.h <<\_ACEOF
11247 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
11248 _ACEOF
11249
11250   fi
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261   { $as_echo "$as_me:$LINENO: checking whether realpath works" >&5
11262 $as_echo_n "checking whether realpath works... " >&6; }
11263 if test "${gl_cv_func_realpath_works+set}" = set; then
11264   $as_echo_n "(cached) " >&6
11265 else
11266
11267     touch conftest.a
11268     if test "$cross_compiling" = yes; then
11269   gl_cv_func_realpath_works="guessing no"
11270 else
11271   cat >conftest.$ac_ext <<_ACEOF
11272
11273       /* confdefs.h.  */
11274 _ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h.  */
11278
11279         #include <stdlib.h>
11280
11281 int
11282 main ()
11283 {
11284
11285         int result = 0;
11286         {
11287           char *name = realpath ("conftest.a", NULL);
11288           if (!(name && *name == '/'))
11289             result |= 1;
11290         }
11291         {
11292           char *name = realpath ("conftest.b/../conftest.a", NULL);
11293           if (name != NULL)
11294             result |= 2;
11295         }
11296         {
11297           char *name = realpath ("conftest.a/", NULL);
11298           if (name != NULL)
11299             result |= 4;
11300         }
11301         return result;
11302
11303   ;
11304   return 0;
11305 }
11306
11307 _ACEOF
11308 rm -f conftest$ac_exeext
11309 if { (ac_try="$ac_link"
11310 case "(($ac_try" in
11311   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312   *) ac_try_echo=$ac_try;;
11313 esac
11314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11315 $as_echo "$ac_try_echo") >&5
11316   (eval "$ac_link") 2>&5
11317   ac_status=$?
11318   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11319   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11320   { (case "(($ac_try" in
11321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11322   *) ac_try_echo=$ac_try;;
11323 esac
11324 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11325 $as_echo "$ac_try_echo") >&5
11326   (eval "$ac_try") 2>&5
11327   ac_status=$?
11328   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11329   (exit $ac_status); }; }; then
11330   gl_cv_func_realpath_works=yes
11331 else
11332   $as_echo "$as_me: program exited with status $ac_status" >&5
11333 $as_echo "$as_me: failed program was:" >&5
11334 sed 's/^/| /' conftest.$ac_ext >&5
11335
11336 ( exit $ac_status )
11337 gl_cv_func_realpath_works=no
11338 fi
11339 rm -rf conftest.dSYM
11340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11341 fi
11342
11343
11344
11345 fi
11346 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_realpath_works" >&5
11347 $as_echo "$gl_cv_func_realpath_works" >&6; }
11348   if test "$gl_cv_func_realpath_works" = yes; then
11349
11350 cat >>confdefs.h <<\_ACEOF
11351 #define FUNC_REALPATH_WORKS 1
11352 _ACEOF
11353
11354   fi
11355
11356
11357
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378   GNULIB__EXIT=0;
11379   GNULIB_ATOLL=0;
11380   GNULIB_CALLOC_POSIX=0;
11381   GNULIB_CANONICALIZE_FILE_NAME=0;
11382   GNULIB_GETLOADAVG=0;
11383   GNULIB_GETSUBOPT=0;
11384   GNULIB_GRANTPT=0;
11385   GNULIB_MALLOC_POSIX=0;
11386   GNULIB_MBTOWC=0;
11387   GNULIB_MKDTEMP=0;
11388   GNULIB_MKOSTEMP=0;
11389   GNULIB_MKOSTEMPS=0;
11390   GNULIB_MKSTEMP=0;
11391   GNULIB_MKSTEMPS=0;
11392   GNULIB_PTSNAME=0;
11393   GNULIB_PUTENV=0;
11394   GNULIB_RANDOM_R=0;
11395   GNULIB_REALLOC_POSIX=0;
11396   GNULIB_REALPATH=0;
11397   GNULIB_RPMATCH=0;
11398   GNULIB_SETENV=0;
11399   GNULIB_STRTOD=0;
11400   GNULIB_STRTOLL=0;
11401   GNULIB_STRTOULL=0;
11402   GNULIB_SYSTEM_POSIX=0;
11403   GNULIB_UNLOCKPT=0;
11404   GNULIB_UNSETENV=0;
11405   GNULIB_WCTOMB=0;
11406     HAVE__EXIT=1;
11407   HAVE_ATOLL=1;
11408   HAVE_CANONICALIZE_FILE_NAME=1;
11409   HAVE_DECL_GETLOADAVG=1;
11410   HAVE_GETSUBOPT=1;
11411   HAVE_GRANTPT=1;
11412   HAVE_MKDTEMP=1;
11413   HAVE_MKOSTEMP=1;
11414   HAVE_MKOSTEMPS=1;
11415   HAVE_MKSTEMP=1;
11416   HAVE_MKSTEMPS=1;
11417   HAVE_PTSNAME=1;
11418   HAVE_RANDOM_H=1;
11419   HAVE_RANDOM_R=1;
11420   HAVE_REALPATH=1;
11421   HAVE_RPMATCH=1;
11422   HAVE_SETENV=1;
11423   HAVE_DECL_SETENV=1;
11424   HAVE_STRTOD=1;
11425   HAVE_STRTOLL=1;
11426   HAVE_STRTOULL=1;
11427   HAVE_STRUCT_RANDOM_DATA=1;
11428   HAVE_SYS_LOADAVG_H=0;
11429   HAVE_UNLOCKPT=1;
11430   HAVE_DECL_UNSETENV=1;
11431   REPLACE_CALLOC=0;
11432   REPLACE_CANONICALIZE_FILE_NAME=0;
11433   REPLACE_MALLOC=0;
11434   REPLACE_MBTOWC=0;
11435   REPLACE_MKSTEMP=0;
11436   REPLACE_PUTENV=0;
11437   REPLACE_REALLOC=0;
11438   REPLACE_REALPATH=0;
11439   REPLACE_SETENV=0;
11440   REPLACE_STRTOD=0;
11441   REPLACE_UNSETENV=0;
11442   REPLACE_WCTOMB=0;
11443
11444
11445   GNULIB_CHOWN=0;
11446   GNULIB_CLOSE=0;
11447   GNULIB_DUP2=0;
11448   GNULIB_DUP3=0;
11449   GNULIB_ENVIRON=0;
11450   GNULIB_EUIDACCESS=0;
11451   GNULIB_FACCESSAT=0;
11452   GNULIB_FCHDIR=0;
11453   GNULIB_FCHOWNAT=0;
11454   GNULIB_FSYNC=0;
11455   GNULIB_FTRUNCATE=0;
11456   GNULIB_GETCWD=0;
11457   GNULIB_GETDOMAINNAME=0;
11458   GNULIB_GETDTABLESIZE=0;
11459   GNULIB_GETGROUPS=0;
11460   GNULIB_GETHOSTNAME=0;
11461   GNULIB_GETLOGIN=0;
11462   GNULIB_GETLOGIN_R=0;
11463   GNULIB_GETPAGESIZE=0;
11464   GNULIB_GETUSERSHELL=0;
11465   GNULIB_LCHOWN=0;
11466   GNULIB_LINK=0;
11467   GNULIB_LINKAT=0;
11468   GNULIB_LSEEK=0;
11469   GNULIB_PIPE=0;
11470   GNULIB_PIPE2=0;
11471   GNULIB_PREAD=0;
11472   GNULIB_PWRITE=0;
11473   GNULIB_READLINK=0;
11474   GNULIB_READLINKAT=0;
11475   GNULIB_RMDIR=0;
11476   GNULIB_SLEEP=0;
11477   GNULIB_SYMLINK=0;
11478   GNULIB_SYMLINKAT=0;
11479   GNULIB_TTYNAME_R=0;
11480   GNULIB_UNISTD_H_GETOPT=0;
11481   GNULIB_UNISTD_H_SIGPIPE=0;
11482   GNULIB_UNLINK=0;
11483   GNULIB_UNLINKAT=0;
11484   GNULIB_USLEEP=0;
11485   GNULIB_WRITE=0;
11486     HAVE_CHOWN=1;
11487   HAVE_DUP2=1;
11488   HAVE_DUP3=1;
11489   HAVE_EUIDACCESS=1;
11490   HAVE_FACCESSAT=1;
11491   HAVE_FCHDIR=1;
11492   HAVE_FCHOWNAT=1;
11493   HAVE_FSYNC=1;
11494   HAVE_FTRUNCATE=1;
11495   HAVE_GETDTABLESIZE=1;
11496   HAVE_GETGROUPS=1;
11497   HAVE_GETHOSTNAME=1;
11498   HAVE_GETLOGIN=1;
11499   HAVE_GETPAGESIZE=1;
11500   HAVE_LCHOWN=1;
11501   HAVE_LINK=1;
11502   HAVE_LINKAT=1;
11503   HAVE_PIPE=1;
11504   HAVE_PIPE2=1;
11505   HAVE_PREAD=1;
11506   HAVE_PWRITE=1;
11507   HAVE_READLINK=1;
11508   HAVE_READLINKAT=1;
11509   HAVE_SLEEP=1;
11510   HAVE_SYMLINK=1;
11511   HAVE_SYMLINKAT=1;
11512   HAVE_UNLINKAT=1;
11513   HAVE_USLEEP=1;
11514   HAVE_DECL_ENVIRON=1;
11515   HAVE_DECL_FCHDIR=1;
11516   HAVE_DECL_GETDOMAINNAME=1;
11517   HAVE_DECL_GETLOGIN_R=1;
11518   HAVE_DECL_GETPAGESIZE=1;
11519   HAVE_DECL_GETUSERSHELL=1;
11520   HAVE_DECL_TTYNAME_R=1;
11521   HAVE_OS_H=0;
11522   HAVE_SYS_PARAM_H=0;
11523   REPLACE_CHOWN=0;
11524   REPLACE_CLOSE=0;
11525   REPLACE_DUP=0;
11526   REPLACE_DUP2=0;
11527   REPLACE_FCHOWNAT=0;
11528   REPLACE_GETCWD=0;
11529   REPLACE_GETDOMAINNAME=0;
11530   REPLACE_GETLOGIN_R=0;
11531   REPLACE_GETGROUPS=0;
11532   REPLACE_GETPAGESIZE=0;
11533   REPLACE_LCHOWN=0;
11534   REPLACE_LINK=0;
11535   REPLACE_LINKAT=0;
11536   REPLACE_LSEEK=0;
11537   REPLACE_PREAD=0;
11538   REPLACE_PWRITE=0;
11539   REPLACE_READLINK=0;
11540   REPLACE_RMDIR=0;
11541   REPLACE_SLEEP=0;
11542   REPLACE_SYMLINK=0;
11543   REPLACE_TTYNAME_R=0;
11544   REPLACE_UNLINK=0;
11545   REPLACE_UNLINKAT=0;
11546   REPLACE_USLEEP=0;
11547   REPLACE_WRITE=0;
11548   UNISTD_H_HAVE_WINSOCK2_H=0;
11549   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
11550
11551
11552
11553 for ac_header in unistd.h
11554 do
11555 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11556 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11557   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11558 $as_echo_n "checking for $ac_header... " >&6; }
11559 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11560   $as_echo_n "(cached) " >&6
11561 fi
11562 ac_res=`eval 'as_val=${'$as_ac_Header'}
11563                  $as_echo "$as_val"'`
11564                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11565 $as_echo "$ac_res" >&6; }
11566 else
11567   # Is the header compilable?
11568 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
11569 $as_echo_n "checking $ac_header usability... " >&6; }
11570 cat >conftest.$ac_ext <<_ACEOF
11571 /* confdefs.h.  */
11572 _ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h.  */
11576 $ac_includes_default
11577 #include <$ac_header>
11578 _ACEOF
11579 rm -f conftest.$ac_objext
11580 if { (ac_try="$ac_compile"
11581 case "(($ac_try" in
11582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11583   *) ac_try_echo=$ac_try;;
11584 esac
11585 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11586 $as_echo "$ac_try_echo") >&5
11587   (eval "$ac_compile") 2>conftest.er1
11588   ac_status=$?
11589   grep -v '^ *+' conftest.er1 >conftest.err
11590   rm -f conftest.er1
11591   cat conftest.err >&5
11592   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11593   (exit $ac_status); } && {
11594          test -z "$ac_c_werror_flag" ||
11595          test ! -s conftest.err
11596        } && test -s conftest.$ac_objext; then
11597   ac_header_compiler=yes
11598 else
11599   $as_echo "$as_me: failed program was:" >&5
11600 sed 's/^/| /' conftest.$ac_ext >&5
11601
11602         ac_header_compiler=no
11603 fi
11604
11605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11606 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11607 $as_echo "$ac_header_compiler" >&6; }
11608
11609 # Is the header present?
11610 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
11611 $as_echo_n "checking $ac_header presence... " >&6; }
11612 cat >conftest.$ac_ext <<_ACEOF
11613 /* confdefs.h.  */
11614 _ACEOF
11615 cat confdefs.h >>conftest.$ac_ext
11616 cat >>conftest.$ac_ext <<_ACEOF
11617 /* end confdefs.h.  */
11618 #include <$ac_header>
11619 _ACEOF
11620 if { (ac_try="$ac_cpp conftest.$ac_ext"
11621 case "(($ac_try" in
11622   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11623   *) ac_try_echo=$ac_try;;
11624 esac
11625 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11626 $as_echo "$ac_try_echo") >&5
11627   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11628   ac_status=$?
11629   grep -v '^ *+' conftest.er1 >conftest.err
11630   rm -f conftest.er1
11631   cat conftest.err >&5
11632   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633   (exit $ac_status); } >/dev/null && {
11634          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11635          test ! -s conftest.err
11636        }; then
11637   ac_header_preproc=yes
11638 else
11639   $as_echo "$as_me: failed program was:" >&5
11640 sed 's/^/| /' conftest.$ac_ext >&5
11641
11642   ac_header_preproc=no
11643 fi
11644
11645 rm -f conftest.err conftest.$ac_ext
11646 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11647 $as_echo "$ac_header_preproc" >&6; }
11648
11649 # So?  What about this header?
11650 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11651   yes:no: )
11652     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11653 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11654     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11655 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11656     ac_header_preproc=yes
11657     ;;
11658   no:yes:* )
11659     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11660 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11661     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11662 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11663     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11664 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11665     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11666 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11667     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11668 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11669     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11670 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11671     ( cat <<\_ASBOX
11672 ## ------------------------------ ##
11673 ## Report this to bug-tar@gnu.org ##
11674 ## ------------------------------ ##
11675 _ASBOX
11676      ) | sed "s/^/$as_me: WARNING:     /" >&2
11677     ;;
11678 esac
11679 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
11680 $as_echo_n "checking for $ac_header... " >&6; }
11681 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11682   $as_echo_n "(cached) " >&6
11683 else
11684   eval "$as_ac_Header=\$ac_header_preproc"
11685 fi
11686 ac_res=`eval 'as_val=${'$as_ac_Header'}
11687                  $as_echo "$as_val"'`
11688                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11689 $as_echo "$ac_res" >&6; }
11690
11691 fi
11692 as_val=`eval 'as_val=${'$as_ac_Header'}
11693                  $as_echo "$as_val"'`
11694    if test "x$as_val" = x""yes; then
11695   cat >>confdefs.h <<_ACEOF
11696 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11697 _ACEOF
11698
11699 fi
11700
11701 done
11702
11703 { $as_echo "$as_me:$LINENO: checking for working chown" >&5
11704 $as_echo_n "checking for working chown... " >&6; }
11705 if test "${ac_cv_func_chown_works+set}" = set; then
11706   $as_echo_n "(cached) " >&6
11707 else
11708   if test "$cross_compiling" = yes; then
11709   ac_cv_func_chown_works=no
11710 else
11711   cat >conftest.$ac_ext <<_ACEOF
11712 /* confdefs.h.  */
11713 _ACEOF
11714 cat confdefs.h >>conftest.$ac_ext
11715 cat >>conftest.$ac_ext <<_ACEOF
11716 /* end confdefs.h.  */
11717 $ac_includes_default
11718 #include <fcntl.h>
11719
11720 int
11721 main ()
11722 {
11723   char *f = "conftest.chown";
11724   struct stat before, after;
11725
11726   if (creat (f, 0600) < 0)
11727     return 1;
11728   if (stat (f, &before) < 0)
11729     return 1;
11730   if (chown (f, (uid_t) -1, (gid_t) -1) == -1)
11731     return 1;
11732   if (stat (f, &after) < 0)
11733     return 1;
11734   return ! (before.st_uid == after.st_uid && before.st_gid == after.st_gid);
11735
11736   ;
11737   return 0;
11738 }
11739 _ACEOF
11740 rm -f conftest$ac_exeext
11741 if { (ac_try="$ac_link"
11742 case "(($ac_try" in
11743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744   *) ac_try_echo=$ac_try;;
11745 esac
11746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11747 $as_echo "$ac_try_echo") >&5
11748   (eval "$ac_link") 2>&5
11749   ac_status=$?
11750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11752   { (case "(($ac_try" in
11753   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754   *) ac_try_echo=$ac_try;;
11755 esac
11756 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11757 $as_echo "$ac_try_echo") >&5
11758   (eval "$ac_try") 2>&5
11759   ac_status=$?
11760   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761   (exit $ac_status); }; }; then
11762   ac_cv_func_chown_works=yes
11763 else
11764   $as_echo "$as_me: program exited with status $ac_status" >&5
11765 $as_echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11767
11768 ( exit $ac_status )
11769 ac_cv_func_chown_works=no
11770 fi
11771 rm -rf conftest.dSYM
11772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11773 fi
11774
11775
11776 rm -f conftest.chown
11777
11778 fi
11779 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_chown_works" >&5
11780 $as_echo "$ac_cv_func_chown_works" >&6; }
11781 if test $ac_cv_func_chown_works = yes; then
11782
11783 cat >>confdefs.h <<\_ACEOF
11784 #define HAVE_CHOWN 1
11785 _ACEOF
11786
11787 fi
11788
11789
11790   { $as_echo "$as_me:$LINENO: checking whether chown dereferences symlinks" >&5
11791 $as_echo_n "checking whether chown dereferences symlinks... " >&6; }
11792 if test "${gl_cv_func_chown_follows_symlink+set}" = set; then
11793   $as_echo_n "(cached) " >&6
11794 else
11795
11796       if test "$cross_compiling" = yes; then
11797   gl_cv_func_chown_follows_symlink=yes
11798
11799 else
11800   cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h.  */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h.  */
11806
11807 #include <unistd.h>
11808 #include <stdlib.h>
11809 #include <errno.h>
11810
11811         int
11812         main ()
11813         {
11814           int result = 0;
11815           char const *dangling_symlink = "conftest.dangle";
11816
11817           unlink (dangling_symlink);
11818           if (symlink ("conftest.no-such", dangling_symlink))
11819             abort ();
11820
11821           /* Exit successfully on a conforming system,
11822              i.e., where chown must fail with ENOENT.  */
11823           if (chown (dangling_symlink, getuid (), getgid ()) == 0)
11824             result |= 1;
11825           if (errno != ENOENT)
11826             result |= 2;
11827           return result;
11828         }
11829
11830 _ACEOF
11831 rm -f conftest$ac_exeext
11832 if { (ac_try="$ac_link"
11833 case "(($ac_try" in
11834   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11835   *) ac_try_echo=$ac_try;;
11836 esac
11837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11838 $as_echo "$ac_try_echo") >&5
11839   (eval "$ac_link") 2>&5
11840   ac_status=$?
11841   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11842   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
11850   ac_status=$?
11851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852   (exit $ac_status); }; }; then
11853   gl_cv_func_chown_follows_symlink=yes
11854 else
11855   $as_echo "$as_me: program exited with status $ac_status" >&5
11856 $as_echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11858
11859 ( exit $ac_status )
11860 gl_cv_func_chown_follows_symlink=no
11861 fi
11862 rm -rf conftest.dSYM
11863 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11864 fi
11865
11866
11867
11868
11869 fi
11870 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_follows_symlink" >&5
11871 $as_echo "$gl_cv_func_chown_follows_symlink" >&6; }
11872
11873   if test $gl_cv_func_chown_follows_symlink = no; then
11874
11875 cat >>confdefs.h <<\_ACEOF
11876 #define CHOWN_MODIFIES_SYMLINK 1
11877 _ACEOF
11878
11879   fi
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900     if test $ac_cv_func_chown = no; then
11901     HAVE_CHOWN=0
11902
11903
11904
11905
11906
11907
11908
11909
11910   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11911
11912   else
11913         if test $gl_cv_func_chown_follows_symlink = no; then
11914       REPLACE_CHOWN=1
11915
11916
11917
11918
11919
11920
11921
11922
11923   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11924
11925     fi
11926
11927         if test $ac_cv_func_chown_works = no; then
11928
11929 cat >>confdefs.h <<\_ACEOF
11930 #define CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE 1
11931 _ACEOF
11932
11933       REPLACE_CHOWN=1
11934
11935
11936
11937
11938
11939
11940
11941
11942   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
11943
11944     fi
11945
11946                 { $as_echo "$as_me:$LINENO: checking whether chown honors trailing slash" >&5
11947 $as_echo_n "checking whether chown honors trailing slash... " >&6; }
11948 if test "${gl_cv_func_chown_slash_works+set}" = set; then
11949   $as_echo_n "(cached) " >&6
11950 else
11951   touch conftest.file && rm -f conftest.link
11952        if test "$cross_compiling" = yes; then
11953   gl_cv_func_chown_slash_works="guessing no"
11954 else
11955   cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h.  */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h.  */
11961
11962 #include <unistd.h>
11963 #include <stdlib.h>
11964 #include <errno.h>
11965
11966 int
11967 main ()
11968 {
11969     if (symlink ("conftest.file", "conftest.link")) return 1;
11970           if (chown ("conftest.link/", getuid (), getgid ()) == 0) return 2;
11971
11972   ;
11973   return 0;
11974 }
11975 _ACEOF
11976 rm -f conftest$ac_exeext
11977 if { (ac_try="$ac_link"
11978 case "(($ac_try" in
11979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11980   *) ac_try_echo=$ac_try;;
11981 esac
11982 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11983 $as_echo "$ac_try_echo") >&5
11984   (eval "$ac_link") 2>&5
11985   ac_status=$?
11986   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11988   { (case "(($ac_try" in
11989   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11990   *) ac_try_echo=$ac_try;;
11991 esac
11992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11993 $as_echo "$ac_try_echo") >&5
11994   (eval "$ac_try") 2>&5
11995   ac_status=$?
11996   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11997   (exit $ac_status); }; }; then
11998   gl_cv_func_chown_slash_works=yes
11999 else
12000   $as_echo "$as_me: program exited with status $ac_status" >&5
12001 $as_echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12003
12004 ( exit $ac_status )
12005 gl_cv_func_chown_slash_works=no
12006 fi
12007 rm -rf conftest.dSYM
12008 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12009 fi
12010
12011
12012       rm -f conftest.link conftest.file
12013 fi
12014 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_slash_works" >&5
12015 $as_echo "$gl_cv_func_chown_slash_works" >&6; }
12016     if test "$gl_cv_func_chown_slash_works" != yes; then
12017
12018 cat >>confdefs.h <<\_ACEOF
12019 #define CHOWN_TRAILING_SLASH_BUG 1
12020 _ACEOF
12021
12022       REPLACE_CHOWN=1
12023
12024
12025
12026
12027
12028
12029
12030
12031   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
12032
12033     fi
12034
12035         { $as_echo "$as_me:$LINENO: checking whether chown always updates ctime" >&5
12036 $as_echo_n "checking whether chown always updates ctime... " >&6; }
12037 if test "${gl_cv_func_chown_ctime_works+set}" = set; then
12038   $as_echo_n "(cached) " >&6
12039 else
12040   if test "$cross_compiling" = yes; then
12041   gl_cv_func_chown_ctime_works="guessing no"
12042 else
12043   cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h.  */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h.  */
12049
12050 #include <unistd.h>
12051 #include <stdlib.h>
12052 #include <errno.h>
12053 #include <fcntl.h>
12054 #include <sys/stat.h>
12055
12056 int
12057 main ()
12058 {
12059     struct stat st1, st2;
12060           if (close (creat ("conftest.file", 0600))) return 1;
12061           if (stat ("conftest.file", &st1)) return 2;
12062           sleep (1);
12063           if (chown ("conftest.file", st1.st_uid, st1.st_gid)) return 3;
12064           if (stat ("conftest.file", &st2)) return 4;
12065           if (st2.st_ctime <= st1.st_ctime) return 5;
12066
12067   ;
12068   return 0;
12069 }
12070 _ACEOF
12071 rm -f conftest$ac_exeext
12072 if { (ac_try="$ac_link"
12073 case "(($ac_try" in
12074   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12075   *) ac_try_echo=$ac_try;;
12076 esac
12077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12078 $as_echo "$ac_try_echo") >&5
12079   (eval "$ac_link") 2>&5
12080   ac_status=$?
12081   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12083   { (case "(($ac_try" in
12084   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12085   *) ac_try_echo=$ac_try;;
12086 esac
12087 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12088 $as_echo "$ac_try_echo") >&5
12089   (eval "$ac_try") 2>&5
12090   ac_status=$?
12091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); }; }; then
12093   gl_cv_func_chown_ctime_works=yes
12094 else
12095   $as_echo "$as_me: program exited with status $ac_status" >&5
12096 $as_echo "$as_me: failed program was:" >&5
12097 sed 's/^/| /' conftest.$ac_ext >&5
12098
12099 ( exit $ac_status )
12100 gl_cv_func_chown_ctime_works=no
12101 fi
12102 rm -rf conftest.dSYM
12103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12104 fi
12105
12106
12107       rm -f conftest.file
12108 fi
12109 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_chown_ctime_works" >&5
12110 $as_echo "$gl_cv_func_chown_ctime_works" >&6; }
12111     if test "$gl_cv_func_chown_ctime_works" != yes; then
12112
12113 cat >>confdefs.h <<\_ACEOF
12114 #define CHOWN_CHANGE_TIME_BUG 1
12115 _ACEOF
12116
12117       REPLACE_CHOWN=1
12118
12119
12120
12121
12122
12123
12124
12125
12126   gl_LIBOBJS="$gl_LIBOBJS chown.$ac_objext"
12127
12128     fi
12129
12130     if test $REPLACE_CHOWN = 1 && test $ac_cv_func_fchown = no; then
12131
12132
12133
12134
12135
12136
12137
12138
12139   gl_LIBOBJS="$gl_LIBOBJS fchown-stub.$ac_objext"
12140
12141     fi
12142   fi
12143
12144
12145      GNULIB_DIRFD=0;
12146   GNULIB_FDOPENDIR=0;
12147   GNULIB_SCANDIR=0;
12148   GNULIB_ALPHASORT=0;
12149     HAVE_DECL_DIRFD=1;
12150   HAVE_DECL_FDOPENDIR=1;
12151   HAVE_FDOPENDIR=1;
12152   HAVE_SCANDIR=1;
12153   HAVE_ALPHASORT=1;
12154   REPLACE_CLOSEDIR=0;
12155   REPLACE_DIRFD=0;
12156   REPLACE_FDOPENDIR=0;
12157   REPLACE_OPENDIR=0;
12158
12159
12160
12161   { $as_echo "$as_me:$LINENO: checking whether the preprocessor supports include_next" >&5
12162 $as_echo_n "checking whether the preprocessor supports include_next... " >&6; }
12163 if test "${gl_cv_have_include_next+set}" = set; then
12164   $as_echo_n "(cached) " >&6
12165 else
12166   rm -rf conftestd1a conftestd1b conftestd2
12167      mkdir conftestd1a conftestd1b conftestd2
12168                                                   cat <<EOF > conftestd1a/conftest.h
12169 #define DEFINED_IN_CONFTESTD1
12170 #include_next <conftest.h>
12171 #ifdef DEFINED_IN_CONFTESTD2
12172 int foo;
12173 #else
12174 #error "include_next doesn't work"
12175 #endif
12176 EOF
12177      cat <<EOF > conftestd1b/conftest.h
12178 #define DEFINED_IN_CONFTESTD1
12179 #include <stdio.h>
12180 #include_next <conftest.h>
12181 #ifdef DEFINED_IN_CONFTESTD2
12182 int foo;
12183 #else
12184 #error "include_next doesn't work"
12185 #endif
12186 EOF
12187      cat <<EOF > conftestd2/conftest.h
12188 #ifndef DEFINED_IN_CONFTESTD1
12189 #error "include_next test doesn't work"
12190 #endif
12191 #define DEFINED_IN_CONFTESTD2
12192 EOF
12193      gl_save_CPPFLAGS="$CPPFLAGS"
12194      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
12195      cat >conftest.$ac_ext <<_ACEOF
12196 #include <conftest.h>
12197 _ACEOF
12198 rm -f conftest.$ac_objext
12199 if { (ac_try="$ac_compile"
12200 case "(($ac_try" in
12201   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12202   *) ac_try_echo=$ac_try;;
12203 esac
12204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12205 $as_echo "$ac_try_echo") >&5
12206   (eval "$ac_compile") 2>conftest.er1
12207   ac_status=$?
12208   grep -v '^ *+' conftest.er1 >conftest.err
12209   rm -f conftest.er1
12210   cat conftest.err >&5
12211   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12212   (exit $ac_status); } && {
12213          test -z "$ac_c_werror_flag" ||
12214          test ! -s conftest.err
12215        } && test -s conftest.$ac_objext; then
12216   gl_cv_have_include_next=yes
12217 else
12218   $as_echo "$as_me: failed program was:" >&5
12219 sed 's/^/| /' conftest.$ac_ext >&5
12220
12221         CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
12222         cat >conftest.$ac_ext <<_ACEOF
12223 #include <conftest.h>
12224 _ACEOF
12225 rm -f conftest.$ac_objext
12226 if { (ac_try="$ac_compile"
12227 case "(($ac_try" in
12228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229   *) ac_try_echo=$ac_try;;
12230 esac
12231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12232 $as_echo "$ac_try_echo") >&5
12233   (eval "$ac_compile") 2>conftest.er1
12234   ac_status=$?
12235   grep -v '^ *+' conftest.er1 >conftest.err
12236   rm -f conftest.er1
12237   cat conftest.err >&5
12238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); } && {
12240          test -z "$ac_c_werror_flag" ||
12241          test ! -s conftest.err
12242        } && test -s conftest.$ac_objext; then
12243   gl_cv_have_include_next=buggy
12244 else
12245   $as_echo "$as_me: failed program was:" >&5
12246 sed 's/^/| /' conftest.$ac_ext >&5
12247
12248         gl_cv_have_include_next=no
12249 fi
12250
12251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12252
12253 fi
12254
12255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12256      CPPFLAGS="$gl_save_CPPFLAGS"
12257      rm -rf conftestd1a conftestd1b conftestd2
12258
12259 fi
12260 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_include_next" >&5
12261 $as_echo "$gl_cv_have_include_next" >&6; }
12262   PRAGMA_SYSTEM_HEADER=
12263   if test $gl_cv_have_include_next = yes; then
12264     INCLUDE_NEXT=include_next
12265     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12266     if test -n "$GCC"; then
12267       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
12268     fi
12269   else
12270     if test $gl_cv_have_include_next = buggy; then
12271       INCLUDE_NEXT=include
12272       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
12273     else
12274       INCLUDE_NEXT=include
12275       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
12276     fi
12277   fi
12278
12279
12280
12281   { $as_echo "$as_me:$LINENO: checking whether system header files limit the line length" >&5
12282 $as_echo_n "checking whether system header files limit the line length... " >&6; }
12283 if test "${gl_cv_pragma_columns+set}" = set; then
12284   $as_echo_n "(cached) " >&6
12285 else
12286        cat >conftest.$ac_ext <<_ACEOF
12287 /* confdefs.h.  */
12288 _ACEOF
12289 cat confdefs.h >>conftest.$ac_ext
12290 cat >>conftest.$ac_ext <<_ACEOF
12291 /* end confdefs.h.  */
12292
12293 #ifdef __TANDEM
12294 choke me
12295 #endif
12296
12297 _ACEOF
12298 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12299   $EGREP "choke me" >/dev/null 2>&1; then
12300   gl_cv_pragma_columns=yes
12301 else
12302   gl_cv_pragma_columns=no
12303 fi
12304 rm -f conftest*
12305
12306
12307 fi
12308 { $as_echo "$as_me:$LINENO: result: $gl_cv_pragma_columns" >&5
12309 $as_echo "$gl_cv_pragma_columns" >&6; }
12310   if test $gl_cv_pragma_columns = yes; then
12311     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
12312   else
12313     PRAGMA_COLUMNS=
12314   fi
12315
12316
12317
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330   gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340   gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350   gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
12351
12352
12353
12354
12355
12356
12357
12358
12359
12360
12361
12362
12363
12364
12365   { $as_echo "$as_me:$LINENO: checking if environ is properly declared" >&5
12366 $as_echo_n "checking if environ is properly declared... " >&6; }
12367   if test "${gt_cv_var_environ_declaration+set}" = set; then
12368   $as_echo_n "(cached) " >&6
12369 else
12370
12371     cat >conftest.$ac_ext <<_ACEOF
12372 /* confdefs.h.  */
12373 _ACEOF
12374 cat confdefs.h >>conftest.$ac_ext
12375 cat >>conftest.$ac_ext <<_ACEOF
12376 /* end confdefs.h.  */
12377 #include <unistd.h>
12378            extern struct { int foo; } environ;
12379 int
12380 main ()
12381 {
12382 environ.foo = 1;
12383   ;
12384   return 0;
12385 }
12386 _ACEOF
12387 rm -f conftest.$ac_objext
12388 if { (ac_try="$ac_compile"
12389 case "(($ac_try" in
12390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12391   *) ac_try_echo=$ac_try;;
12392 esac
12393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12394 $as_echo "$ac_try_echo") >&5
12395   (eval "$ac_compile") 2>conftest.er1
12396   ac_status=$?
12397   grep -v '^ *+' conftest.er1 >conftest.err
12398   rm -f conftest.er1
12399   cat conftest.err >&5
12400   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12401   (exit $ac_status); } && {
12402          test -z "$ac_c_werror_flag" ||
12403          test ! -s conftest.err
12404        } && test -s conftest.$ac_objext; then
12405   gt_cv_var_environ_declaration=no
12406 else
12407   $as_echo "$as_me: failed program was:" >&5
12408 sed 's/^/| /' conftest.$ac_ext >&5
12409
12410         gt_cv_var_environ_declaration=yes
12411 fi
12412
12413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12414 fi
12415
12416   { $as_echo "$as_me:$LINENO: result: $gt_cv_var_environ_declaration" >&5
12417 $as_echo "$gt_cv_var_environ_declaration" >&6; }
12418   if test $gt_cv_var_environ_declaration = yes; then
12419
12420 cat >>confdefs.h <<\_ACEOF
12421 #define HAVE_ENVIRON_DECL 1
12422 _ACEOF
12423
12424   fi
12425
12426
12427   if test $gt_cv_var_environ_declaration != yes; then
12428     HAVE_DECL_ENVIRON=0
12429   fi
12430
12431
12432
12433   { $as_echo "$as_me:$LINENO: checking for complete errno.h" >&5
12434 $as_echo_n "checking for complete errno.h... " >&6; }
12435 if test "${gl_cv_header_errno_h_complete+set}" = set; then
12436   $as_echo_n "(cached) " >&6
12437 else
12438
12439     cat >conftest.$ac_ext <<_ACEOF
12440 /* confdefs.h.  */
12441 _ACEOF
12442 cat confdefs.h >>conftest.$ac_ext
12443 cat >>conftest.$ac_ext <<_ACEOF
12444 /* end confdefs.h.  */
12445
12446 #include <errno.h>
12447 #if !defined ENOMSG
12448 booboo
12449 #endif
12450 #if !defined EIDRM
12451 booboo
12452 #endif
12453 #if !defined ENOLINK
12454 booboo
12455 #endif
12456 #if !defined EPROTO
12457 booboo
12458 #endif
12459 #if !defined EMULTIHOP
12460 booboo
12461 #endif
12462 #if !defined EBADMSG
12463 booboo
12464 #endif
12465 #if !defined EOVERFLOW
12466 booboo
12467 #endif
12468 #if !defined ENOTSUP
12469 booboo
12470 #endif
12471 #if !defined ESTALE
12472 booboo
12473 #endif
12474 #if !defined EDQUOT
12475 booboo
12476 #endif
12477 #if !defined ECANCELED
12478 booboo
12479 #endif
12480
12481 _ACEOF
12482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12483   $EGREP "booboo" >/dev/null 2>&1; then
12484   gl_cv_header_errno_h_complete=no
12485 else
12486   gl_cv_header_errno_h_complete=yes
12487 fi
12488 rm -f conftest*
12489
12490
12491 fi
12492 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_complete" >&5
12493 $as_echo "$gl_cv_header_errno_h_complete" >&6; }
12494   if test $gl_cv_header_errno_h_complete = yes; then
12495     ERRNO_H=''
12496   else
12497
12498
12499
12500
12501
12502
12503
12504
12505      if test $gl_cv_have_include_next = yes; then
12506        gl_cv_next_errno_h='<'errno.h'>'
12507      else
12508        { $as_echo "$as_me:$LINENO: checking absolute name of <errno.h>" >&5
12509 $as_echo_n "checking absolute name of <errno.h>... " >&6; }
12510 if test "${gl_cv_next_errno_h+set}" = set; then
12511   $as_echo_n "(cached) " >&6
12512 else
12513
12514                cat >conftest.$ac_ext <<_ACEOF
12515 /* confdefs.h.  */
12516 _ACEOF
12517 cat confdefs.h >>conftest.$ac_ext
12518 cat >>conftest.$ac_ext <<_ACEOF
12519 /* end confdefs.h.  */
12520 #include <errno.h>
12521
12522 _ACEOF
12523                                                                                                                         case "$host_os" in
12524                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
12525                  *)    gl_absname_cpp="$ac_cpp" ;;
12526                esac
12527                                                             gl_cv_next_errno_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12528                   sed -n '\#/errno.h#{
12529                     s#.*"\(.*/errno.h\)".*#\1#
12530                     s#^/[^/]#//&#
12531                     p
12532                     q
12533                   }'`'"'
12534
12535
12536 fi
12537 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_errno_h" >&5
12538 $as_echo "$gl_cv_next_errno_h" >&6; }
12539      fi
12540      NEXT_ERRNO_H=$gl_cv_next_errno_h
12541
12542      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12543        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12544        gl_next_as_first_directive='<'errno.h'>'
12545      else
12546        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12547        gl_next_as_first_directive=$gl_cv_next_errno_h
12548      fi
12549      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
12550
12551
12552
12553
12554     ERRNO_H='errno.h'
12555   fi
12556
12557
12558   if test -n "$ERRNO_H"; then
12559     { $as_echo "$as_me:$LINENO: checking for EMULTIHOP value" >&5
12560 $as_echo_n "checking for EMULTIHOP value... " >&6; }
12561 if test "${gl_cv_header_errno_h_EMULTIHOP+set}" = set; then
12562   $as_echo_n "(cached) " >&6
12563 else
12564
12565       cat >conftest.$ac_ext <<_ACEOF
12566 /* confdefs.h.  */
12567 _ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h.  */
12571
12572 #include <errno.h>
12573 #ifdef EMULTIHOP
12574 yes
12575 #endif
12576
12577 _ACEOF
12578 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12579   $EGREP "yes" >/dev/null 2>&1; then
12580   gl_cv_header_errno_h_EMULTIHOP=yes
12581 else
12582   gl_cv_header_errno_h_EMULTIHOP=no
12583 fi
12584 rm -f conftest*
12585
12586       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
12587         cat >conftest.$ac_ext <<_ACEOF
12588 /* confdefs.h.  */
12589 _ACEOF
12590 cat confdefs.h >>conftest.$ac_ext
12591 cat >>conftest.$ac_ext <<_ACEOF
12592 /* end confdefs.h.  */
12593
12594 #define _XOPEN_SOURCE_EXTENDED 1
12595 #include <errno.h>
12596 #ifdef EMULTIHOP
12597 yes
12598 #endif
12599
12600 _ACEOF
12601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12602   $EGREP "yes" >/dev/null 2>&1; then
12603   gl_cv_header_errno_h_EMULTIHOP=hidden
12604 fi
12605 rm -f conftest*
12606
12607         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
12608                               if test "$cross_compiling" = yes; then
12609   # Depending upon the size, compute the lo and hi bounds.
12610 cat >conftest.$ac_ext <<_ACEOF
12611 /* confdefs.h.  */
12612 _ACEOF
12613 cat confdefs.h >>conftest.$ac_ext
12614 cat >>conftest.$ac_ext <<_ACEOF
12615 /* end confdefs.h.  */
12616
12617 #define _XOPEN_SOURCE_EXTENDED 1
12618 #include <errno.h>
12619 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12620 #include <stdio.h>
12621 #include <stdlib.h>
12622
12623 int
12624 main ()
12625 {
12626 static int test_array [1 - 2 * !((EMULTIHOP) >= 0)];
12627 test_array [0] = 0
12628
12629   ;
12630   return 0;
12631 }
12632 _ACEOF
12633 rm -f conftest.$ac_objext
12634 if { (ac_try="$ac_compile"
12635 case "(($ac_try" in
12636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637   *) ac_try_echo=$ac_try;;
12638 esac
12639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12640 $as_echo "$ac_try_echo") >&5
12641   (eval "$ac_compile") 2>conftest.er1
12642   ac_status=$?
12643   grep -v '^ *+' conftest.er1 >conftest.err
12644   rm -f conftest.er1
12645   cat conftest.err >&5
12646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647   (exit $ac_status); } && {
12648          test -z "$ac_c_werror_flag" ||
12649          test ! -s conftest.err
12650        } && test -s conftest.$ac_objext; then
12651   ac_lo=0 ac_mid=0
12652   while :; do
12653     cat >conftest.$ac_ext <<_ACEOF
12654 /* confdefs.h.  */
12655 _ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h.  */
12659
12660 #define _XOPEN_SOURCE_EXTENDED 1
12661 #include <errno.h>
12662 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12663 #include <stdio.h>
12664 #include <stdlib.h>
12665
12666 int
12667 main ()
12668 {
12669 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
12670 test_array [0] = 0
12671
12672   ;
12673   return 0;
12674 }
12675 _ACEOF
12676 rm -f conftest.$ac_objext
12677 if { (ac_try="$ac_compile"
12678 case "(($ac_try" in
12679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680   *) ac_try_echo=$ac_try;;
12681 esac
12682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12683 $as_echo "$ac_try_echo") >&5
12684   (eval "$ac_compile") 2>conftest.er1
12685   ac_status=$?
12686   grep -v '^ *+' conftest.er1 >conftest.err
12687   rm -f conftest.er1
12688   cat conftest.err >&5
12689   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12690   (exit $ac_status); } && {
12691          test -z "$ac_c_werror_flag" ||
12692          test ! -s conftest.err
12693        } && test -s conftest.$ac_objext; then
12694   ac_hi=$ac_mid; break
12695 else
12696   $as_echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.$ac_ext >&5
12698
12699         ac_lo=`expr $ac_mid + 1`
12700                         if test $ac_lo -le $ac_mid; then
12701                           ac_lo= ac_hi=
12702                           break
12703                         fi
12704                         ac_mid=`expr 2 '*' $ac_mid + 1`
12705 fi
12706
12707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12708   done
12709 else
12710   $as_echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12712
12713         cat >conftest.$ac_ext <<_ACEOF
12714 /* confdefs.h.  */
12715 _ACEOF
12716 cat confdefs.h >>conftest.$ac_ext
12717 cat >>conftest.$ac_ext <<_ACEOF
12718 /* end confdefs.h.  */
12719
12720 #define _XOPEN_SOURCE_EXTENDED 1
12721 #include <errno.h>
12722 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12723 #include <stdio.h>
12724 #include <stdlib.h>
12725
12726 int
12727 main ()
12728 {
12729 static int test_array [1 - 2 * !((EMULTIHOP) < 0)];
12730 test_array [0] = 0
12731
12732   ;
12733   return 0;
12734 }
12735 _ACEOF
12736 rm -f conftest.$ac_objext
12737 if { (ac_try="$ac_compile"
12738 case "(($ac_try" in
12739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12740   *) ac_try_echo=$ac_try;;
12741 esac
12742 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12743 $as_echo "$ac_try_echo") >&5
12744   (eval "$ac_compile") 2>conftest.er1
12745   ac_status=$?
12746   grep -v '^ *+' conftest.er1 >conftest.err
12747   rm -f conftest.er1
12748   cat conftest.err >&5
12749   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750   (exit $ac_status); } && {
12751          test -z "$ac_c_werror_flag" ||
12752          test ! -s conftest.err
12753        } && test -s conftest.$ac_objext; then
12754   ac_hi=-1 ac_mid=-1
12755   while :; do
12756     cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h.  */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h.  */
12762
12763 #define _XOPEN_SOURCE_EXTENDED 1
12764 #include <errno.h>
12765 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12766 #include <stdio.h>
12767 #include <stdlib.h>
12768
12769 int
12770 main ()
12771 {
12772 static int test_array [1 - 2 * !((EMULTIHOP) >= $ac_mid)];
12773 test_array [0] = 0
12774
12775   ;
12776   return 0;
12777 }
12778 _ACEOF
12779 rm -f conftest.$ac_objext
12780 if { (ac_try="$ac_compile"
12781 case "(($ac_try" in
12782   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783   *) ac_try_echo=$ac_try;;
12784 esac
12785 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12786 $as_echo "$ac_try_echo") >&5
12787   (eval "$ac_compile") 2>conftest.er1
12788   ac_status=$?
12789   grep -v '^ *+' conftest.er1 >conftest.err
12790   rm -f conftest.er1
12791   cat conftest.err >&5
12792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793   (exit $ac_status); } && {
12794          test -z "$ac_c_werror_flag" ||
12795          test ! -s conftest.err
12796        } && test -s conftest.$ac_objext; then
12797   ac_lo=$ac_mid; break
12798 else
12799   $as_echo "$as_me: failed program was:" >&5
12800 sed 's/^/| /' conftest.$ac_ext >&5
12801
12802         ac_hi=`expr '(' $ac_mid ')' - 1`
12803                         if test $ac_mid -le $ac_hi; then
12804                           ac_lo= ac_hi=
12805                           break
12806                         fi
12807                         ac_mid=`expr 2 '*' $ac_mid`
12808 fi
12809
12810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12811   done
12812 else
12813   $as_echo "$as_me: failed program was:" >&5
12814 sed 's/^/| /' conftest.$ac_ext >&5
12815
12816         ac_lo= ac_hi=
12817 fi
12818
12819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12820 fi
12821
12822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12823 # Binary search between lo and hi bounds.
12824 while test "x$ac_lo" != "x$ac_hi"; do
12825   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
12826   cat >conftest.$ac_ext <<_ACEOF
12827 /* confdefs.h.  */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h.  */
12832
12833 #define _XOPEN_SOURCE_EXTENDED 1
12834 #include <errno.h>
12835 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12836 #include <stdio.h>
12837 #include <stdlib.h>
12838
12839 int
12840 main ()
12841 {
12842 static int test_array [1 - 2 * !((EMULTIHOP) <= $ac_mid)];
12843 test_array [0] = 0
12844
12845   ;
12846   return 0;
12847 }
12848 _ACEOF
12849 rm -f conftest.$ac_objext
12850 if { (ac_try="$ac_compile"
12851 case "(($ac_try" in
12852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853   *) ac_try_echo=$ac_try;;
12854 esac
12855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12856 $as_echo "$ac_try_echo") >&5
12857   (eval "$ac_compile") 2>conftest.er1
12858   ac_status=$?
12859   grep -v '^ *+' conftest.er1 >conftest.err
12860   rm -f conftest.er1
12861   cat conftest.err >&5
12862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12863   (exit $ac_status); } && {
12864          test -z "$ac_c_werror_flag" ||
12865          test ! -s conftest.err
12866        } && test -s conftest.$ac_objext; then
12867   ac_hi=$ac_mid
12868 else
12869   $as_echo "$as_me: failed program was:" >&5
12870 sed 's/^/| /' conftest.$ac_ext >&5
12871
12872         ac_lo=`expr '(' $ac_mid ')' + 1`
12873 fi
12874
12875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12876 done
12877 case $ac_lo in
12878 ?*) gl_cv_header_errno_h_EMULTIHOP=$ac_lo;;
12879 '')  ;;
12880 esac
12881 else
12882   cat >conftest.$ac_ext <<_ACEOF
12883 /* confdefs.h.  */
12884 _ACEOF
12885 cat confdefs.h >>conftest.$ac_ext
12886 cat >>conftest.$ac_ext <<_ACEOF
12887 /* end confdefs.h.  */
12888
12889 #define _XOPEN_SOURCE_EXTENDED 1
12890 #include <errno.h>
12891 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
12892 #include <stdio.h>
12893 #include <stdlib.h>
12894
12895 static long int longval () { return EMULTIHOP; }
12896 static unsigned long int ulongval () { return EMULTIHOP; }
12897 #include <stdio.h>
12898 #include <stdlib.h>
12899 int
12900 main ()
12901 {
12902
12903   FILE *f = fopen ("conftest.val", "w");
12904   if (! f)
12905     return 1;
12906   if ((EMULTIHOP) < 0)
12907     {
12908       long int i = longval ();
12909       if (i != (EMULTIHOP))
12910         return 1;
12911       fprintf (f, "%ld", i);
12912     }
12913   else
12914     {
12915       unsigned long int i = ulongval ();
12916       if (i != (EMULTIHOP))
12917         return 1;
12918       fprintf (f, "%lu", i);
12919     }
12920   /* Do not output a trailing newline, as this causes \r\n confusion
12921      on some platforms.  */
12922   return ferror (f) || fclose (f) != 0;
12923
12924   ;
12925   return 0;
12926 }
12927 _ACEOF
12928 rm -f conftest$ac_exeext
12929 if { (ac_try="$ac_link"
12930 case "(($ac_try" in
12931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12932   *) ac_try_echo=$ac_try;;
12933 esac
12934 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12935 $as_echo "$ac_try_echo") >&5
12936   (eval "$ac_link") 2>&5
12937   ac_status=$?
12938   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12940   { (case "(($ac_try" in
12941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942   *) ac_try_echo=$ac_try;;
12943 esac
12944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12945 $as_echo "$ac_try_echo") >&5
12946   (eval "$ac_try") 2>&5
12947   ac_status=$?
12948   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12949   (exit $ac_status); }; }; then
12950   gl_cv_header_errno_h_EMULTIHOP=`cat conftest.val`
12951 else
12952   $as_echo "$as_me: program exited with status $ac_status" >&5
12953 $as_echo "$as_me: failed program was:" >&5
12954 sed 's/^/| /' conftest.$ac_ext >&5
12955
12956 fi
12957 rm -rf conftest.dSYM
12958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12959 fi
12960 rm -f conftest.val
12961         fi
12962       fi
12963
12964 fi
12965 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
12966 $as_echo "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
12967     case $gl_cv_header_errno_h_EMULTIHOP in
12968       yes | no)
12969         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
12970         ;;
12971       *)
12972         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
12973         ;;
12974     esac
12975
12976
12977   fi
12978
12979
12980   if test -n "$ERRNO_H"; then
12981     { $as_echo "$as_me:$LINENO: checking for ENOLINK value" >&5
12982 $as_echo_n "checking for ENOLINK value... " >&6; }
12983 if test "${gl_cv_header_errno_h_ENOLINK+set}" = set; then
12984   $as_echo_n "(cached) " >&6
12985 else
12986
12987       cat >conftest.$ac_ext <<_ACEOF
12988 /* confdefs.h.  */
12989 _ACEOF
12990 cat confdefs.h >>conftest.$ac_ext
12991 cat >>conftest.$ac_ext <<_ACEOF
12992 /* end confdefs.h.  */
12993
12994 #include <errno.h>
12995 #ifdef ENOLINK
12996 yes
12997 #endif
12998
12999 _ACEOF
13000 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13001   $EGREP "yes" >/dev/null 2>&1; then
13002   gl_cv_header_errno_h_ENOLINK=yes
13003 else
13004   gl_cv_header_errno_h_ENOLINK=no
13005 fi
13006 rm -f conftest*
13007
13008       if test $gl_cv_header_errno_h_ENOLINK = no; then
13009         cat >conftest.$ac_ext <<_ACEOF
13010 /* confdefs.h.  */
13011 _ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h.  */
13015
13016 #define _XOPEN_SOURCE_EXTENDED 1
13017 #include <errno.h>
13018 #ifdef ENOLINK
13019 yes
13020 #endif
13021
13022 _ACEOF
13023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13024   $EGREP "yes" >/dev/null 2>&1; then
13025   gl_cv_header_errno_h_ENOLINK=hidden
13026 fi
13027 rm -f conftest*
13028
13029         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
13030                               if test "$cross_compiling" = yes; then
13031   # Depending upon the size, compute the lo and hi bounds.
13032 cat >conftest.$ac_ext <<_ACEOF
13033 /* confdefs.h.  */
13034 _ACEOF
13035 cat confdefs.h >>conftest.$ac_ext
13036 cat >>conftest.$ac_ext <<_ACEOF
13037 /* end confdefs.h.  */
13038
13039 #define _XOPEN_SOURCE_EXTENDED 1
13040 #include <errno.h>
13041 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13042 #include <stdio.h>
13043 #include <stdlib.h>
13044
13045 int
13046 main ()
13047 {
13048 static int test_array [1 - 2 * !((ENOLINK) >= 0)];
13049 test_array [0] = 0
13050
13051   ;
13052   return 0;
13053 }
13054 _ACEOF
13055 rm -f conftest.$ac_objext
13056 if { (ac_try="$ac_compile"
13057 case "(($ac_try" in
13058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059   *) ac_try_echo=$ac_try;;
13060 esac
13061 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13062 $as_echo "$ac_try_echo") >&5
13063   (eval "$ac_compile") 2>conftest.er1
13064   ac_status=$?
13065   grep -v '^ *+' conftest.er1 >conftest.err
13066   rm -f conftest.er1
13067   cat conftest.err >&5
13068   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069   (exit $ac_status); } && {
13070          test -z "$ac_c_werror_flag" ||
13071          test ! -s conftest.err
13072        } && test -s conftest.$ac_objext; then
13073   ac_lo=0 ac_mid=0
13074   while :; do
13075     cat >conftest.$ac_ext <<_ACEOF
13076 /* confdefs.h.  */
13077 _ACEOF
13078 cat confdefs.h >>conftest.$ac_ext
13079 cat >>conftest.$ac_ext <<_ACEOF
13080 /* end confdefs.h.  */
13081
13082 #define _XOPEN_SOURCE_EXTENDED 1
13083 #include <errno.h>
13084 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13085 #include <stdio.h>
13086 #include <stdlib.h>
13087
13088 int
13089 main ()
13090 {
13091 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13092 test_array [0] = 0
13093
13094   ;
13095   return 0;
13096 }
13097 _ACEOF
13098 rm -f conftest.$ac_objext
13099 if { (ac_try="$ac_compile"
13100 case "(($ac_try" in
13101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13102   *) ac_try_echo=$ac_try;;
13103 esac
13104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13105 $as_echo "$ac_try_echo") >&5
13106   (eval "$ac_compile") 2>conftest.er1
13107   ac_status=$?
13108   grep -v '^ *+' conftest.er1 >conftest.err
13109   rm -f conftest.er1
13110   cat conftest.err >&5
13111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112   (exit $ac_status); } && {
13113          test -z "$ac_c_werror_flag" ||
13114          test ! -s conftest.err
13115        } && test -s conftest.$ac_objext; then
13116   ac_hi=$ac_mid; break
13117 else
13118   $as_echo "$as_me: failed program was:" >&5
13119 sed 's/^/| /' conftest.$ac_ext >&5
13120
13121         ac_lo=`expr $ac_mid + 1`
13122                         if test $ac_lo -le $ac_mid; then
13123                           ac_lo= ac_hi=
13124                           break
13125                         fi
13126                         ac_mid=`expr 2 '*' $ac_mid + 1`
13127 fi
13128
13129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13130   done
13131 else
13132   $as_echo "$as_me: failed program was:" >&5
13133 sed 's/^/| /' conftest.$ac_ext >&5
13134
13135         cat >conftest.$ac_ext <<_ACEOF
13136 /* confdefs.h.  */
13137 _ACEOF
13138 cat confdefs.h >>conftest.$ac_ext
13139 cat >>conftest.$ac_ext <<_ACEOF
13140 /* end confdefs.h.  */
13141
13142 #define _XOPEN_SOURCE_EXTENDED 1
13143 #include <errno.h>
13144 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13145 #include <stdio.h>
13146 #include <stdlib.h>
13147
13148 int
13149 main ()
13150 {
13151 static int test_array [1 - 2 * !((ENOLINK) < 0)];
13152 test_array [0] = 0
13153
13154   ;
13155   return 0;
13156 }
13157 _ACEOF
13158 rm -f conftest.$ac_objext
13159 if { (ac_try="$ac_compile"
13160 case "(($ac_try" in
13161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13162   *) ac_try_echo=$ac_try;;
13163 esac
13164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13165 $as_echo "$ac_try_echo") >&5
13166   (eval "$ac_compile") 2>conftest.er1
13167   ac_status=$?
13168   grep -v '^ *+' conftest.er1 >conftest.err
13169   rm -f conftest.er1
13170   cat conftest.err >&5
13171   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13172   (exit $ac_status); } && {
13173          test -z "$ac_c_werror_flag" ||
13174          test ! -s conftest.err
13175        } && test -s conftest.$ac_objext; then
13176   ac_hi=-1 ac_mid=-1
13177   while :; do
13178     cat >conftest.$ac_ext <<_ACEOF
13179 /* confdefs.h.  */
13180 _ACEOF
13181 cat confdefs.h >>conftest.$ac_ext
13182 cat >>conftest.$ac_ext <<_ACEOF
13183 /* end confdefs.h.  */
13184
13185 #define _XOPEN_SOURCE_EXTENDED 1
13186 #include <errno.h>
13187 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13188 #include <stdio.h>
13189 #include <stdlib.h>
13190
13191 int
13192 main ()
13193 {
13194 static int test_array [1 - 2 * !((ENOLINK) >= $ac_mid)];
13195 test_array [0] = 0
13196
13197   ;
13198   return 0;
13199 }
13200 _ACEOF
13201 rm -f conftest.$ac_objext
13202 if { (ac_try="$ac_compile"
13203 case "(($ac_try" in
13204   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13205   *) ac_try_echo=$ac_try;;
13206 esac
13207 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13208 $as_echo "$ac_try_echo") >&5
13209   (eval "$ac_compile") 2>conftest.er1
13210   ac_status=$?
13211   grep -v '^ *+' conftest.er1 >conftest.err
13212   rm -f conftest.er1
13213   cat conftest.err >&5
13214   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215   (exit $ac_status); } && {
13216          test -z "$ac_c_werror_flag" ||
13217          test ! -s conftest.err
13218        } && test -s conftest.$ac_objext; then
13219   ac_lo=$ac_mid; break
13220 else
13221   $as_echo "$as_me: failed program was:" >&5
13222 sed 's/^/| /' conftest.$ac_ext >&5
13223
13224         ac_hi=`expr '(' $ac_mid ')' - 1`
13225                         if test $ac_mid -le $ac_hi; then
13226                           ac_lo= ac_hi=
13227                           break
13228                         fi
13229                         ac_mid=`expr 2 '*' $ac_mid`
13230 fi
13231
13232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13233   done
13234 else
13235   $as_echo "$as_me: failed program was:" >&5
13236 sed 's/^/| /' conftest.$ac_ext >&5
13237
13238         ac_lo= ac_hi=
13239 fi
13240
13241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13242 fi
13243
13244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13245 # Binary search between lo and hi bounds.
13246 while test "x$ac_lo" != "x$ac_hi"; do
13247   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
13248   cat >conftest.$ac_ext <<_ACEOF
13249 /* confdefs.h.  */
13250 _ACEOF
13251 cat confdefs.h >>conftest.$ac_ext
13252 cat >>conftest.$ac_ext <<_ACEOF
13253 /* end confdefs.h.  */
13254
13255 #define _XOPEN_SOURCE_EXTENDED 1
13256 #include <errno.h>
13257 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13258 #include <stdio.h>
13259 #include <stdlib.h>
13260
13261 int
13262 main ()
13263 {
13264 static int test_array [1 - 2 * !((ENOLINK) <= $ac_mid)];
13265 test_array [0] = 0
13266
13267   ;
13268   return 0;
13269 }
13270 _ACEOF
13271 rm -f conftest.$ac_objext
13272 if { (ac_try="$ac_compile"
13273 case "(($ac_try" in
13274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13275   *) ac_try_echo=$ac_try;;
13276 esac
13277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13278 $as_echo "$ac_try_echo") >&5
13279   (eval "$ac_compile") 2>conftest.er1
13280   ac_status=$?
13281   grep -v '^ *+' conftest.er1 >conftest.err
13282   rm -f conftest.er1
13283   cat conftest.err >&5
13284   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285   (exit $ac_status); } && {
13286          test -z "$ac_c_werror_flag" ||
13287          test ! -s conftest.err
13288        } && test -s conftest.$ac_objext; then
13289   ac_hi=$ac_mid
13290 else
13291   $as_echo "$as_me: failed program was:" >&5
13292 sed 's/^/| /' conftest.$ac_ext >&5
13293
13294         ac_lo=`expr '(' $ac_mid ')' + 1`
13295 fi
13296
13297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13298 done
13299 case $ac_lo in
13300 ?*) gl_cv_header_errno_h_ENOLINK=$ac_lo;;
13301 '')  ;;
13302 esac
13303 else
13304   cat >conftest.$ac_ext <<_ACEOF
13305 /* confdefs.h.  */
13306 _ACEOF
13307 cat confdefs.h >>conftest.$ac_ext
13308 cat >>conftest.$ac_ext <<_ACEOF
13309 /* end confdefs.h.  */
13310
13311 #define _XOPEN_SOURCE_EXTENDED 1
13312 #include <errno.h>
13313 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13314 #include <stdio.h>
13315 #include <stdlib.h>
13316
13317 static long int longval () { return ENOLINK; }
13318 static unsigned long int ulongval () { return ENOLINK; }
13319 #include <stdio.h>
13320 #include <stdlib.h>
13321 int
13322 main ()
13323 {
13324
13325   FILE *f = fopen ("conftest.val", "w");
13326   if (! f)
13327     return 1;
13328   if ((ENOLINK) < 0)
13329     {
13330       long int i = longval ();
13331       if (i != (ENOLINK))
13332         return 1;
13333       fprintf (f, "%ld", i);
13334     }
13335   else
13336     {
13337       unsigned long int i = ulongval ();
13338       if (i != (ENOLINK))
13339         return 1;
13340       fprintf (f, "%lu", i);
13341     }
13342   /* Do not output a trailing newline, as this causes \r\n confusion
13343      on some platforms.  */
13344   return ferror (f) || fclose (f) != 0;
13345
13346   ;
13347   return 0;
13348 }
13349 _ACEOF
13350 rm -f conftest$ac_exeext
13351 if { (ac_try="$ac_link"
13352 case "(($ac_try" in
13353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13354   *) ac_try_echo=$ac_try;;
13355 esac
13356 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13357 $as_echo "$ac_try_echo") >&5
13358   (eval "$ac_link") 2>&5
13359   ac_status=$?
13360   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13362   { (case "(($ac_try" in
13363   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13364   *) ac_try_echo=$ac_try;;
13365 esac
13366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13367 $as_echo "$ac_try_echo") >&5
13368   (eval "$ac_try") 2>&5
13369   ac_status=$?
13370   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371   (exit $ac_status); }; }; then
13372   gl_cv_header_errno_h_ENOLINK=`cat conftest.val`
13373 else
13374   $as_echo "$as_me: program exited with status $ac_status" >&5
13375 $as_echo "$as_me: failed program was:" >&5
13376 sed 's/^/| /' conftest.$ac_ext >&5
13377
13378 fi
13379 rm -rf conftest.dSYM
13380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13381 fi
13382 rm -f conftest.val
13383         fi
13384       fi
13385
13386 fi
13387 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_ENOLINK" >&5
13388 $as_echo "$gl_cv_header_errno_h_ENOLINK" >&6; }
13389     case $gl_cv_header_errno_h_ENOLINK in
13390       yes | no)
13391         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
13392         ;;
13393       *)
13394         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
13395         ;;
13396     esac
13397
13398
13399   fi
13400
13401
13402   if test -n "$ERRNO_H"; then
13403     { $as_echo "$as_me:$LINENO: checking for EOVERFLOW value" >&5
13404 $as_echo_n "checking for EOVERFLOW value... " >&6; }
13405 if test "${gl_cv_header_errno_h_EOVERFLOW+set}" = set; then
13406   $as_echo_n "(cached) " >&6
13407 else
13408
13409       cat >conftest.$ac_ext <<_ACEOF
13410 /* confdefs.h.  */
13411 _ACEOF
13412 cat confdefs.h >>conftest.$ac_ext
13413 cat >>conftest.$ac_ext <<_ACEOF
13414 /* end confdefs.h.  */
13415
13416 #include <errno.h>
13417 #ifdef EOVERFLOW
13418 yes
13419 #endif
13420
13421 _ACEOF
13422 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13423   $EGREP "yes" >/dev/null 2>&1; then
13424   gl_cv_header_errno_h_EOVERFLOW=yes
13425 else
13426   gl_cv_header_errno_h_EOVERFLOW=no
13427 fi
13428 rm -f conftest*
13429
13430       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
13431         cat >conftest.$ac_ext <<_ACEOF
13432 /* confdefs.h.  */
13433 _ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h.  */
13437
13438 #define _XOPEN_SOURCE_EXTENDED 1
13439 #include <errno.h>
13440 #ifdef EOVERFLOW
13441 yes
13442 #endif
13443
13444 _ACEOF
13445 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13446   $EGREP "yes" >/dev/null 2>&1; then
13447   gl_cv_header_errno_h_EOVERFLOW=hidden
13448 fi
13449 rm -f conftest*
13450
13451         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
13452                               if test "$cross_compiling" = yes; then
13453   # Depending upon the size, compute the lo and hi bounds.
13454 cat >conftest.$ac_ext <<_ACEOF
13455 /* confdefs.h.  */
13456 _ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h.  */
13460
13461 #define _XOPEN_SOURCE_EXTENDED 1
13462 #include <errno.h>
13463 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13464 #include <stdio.h>
13465 #include <stdlib.h>
13466
13467 int
13468 main ()
13469 {
13470 static int test_array [1 - 2 * !((EOVERFLOW) >= 0)];
13471 test_array [0] = 0
13472
13473   ;
13474   return 0;
13475 }
13476 _ACEOF
13477 rm -f conftest.$ac_objext
13478 if { (ac_try="$ac_compile"
13479 case "(($ac_try" in
13480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481   *) ac_try_echo=$ac_try;;
13482 esac
13483 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13484 $as_echo "$ac_try_echo") >&5
13485   (eval "$ac_compile") 2>conftest.er1
13486   ac_status=$?
13487   grep -v '^ *+' conftest.er1 >conftest.err
13488   rm -f conftest.er1
13489   cat conftest.err >&5
13490   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); } && {
13492          test -z "$ac_c_werror_flag" ||
13493          test ! -s conftest.err
13494        } && test -s conftest.$ac_objext; then
13495   ac_lo=0 ac_mid=0
13496   while :; do
13497     cat >conftest.$ac_ext <<_ACEOF
13498 /* confdefs.h.  */
13499 _ACEOF
13500 cat confdefs.h >>conftest.$ac_ext
13501 cat >>conftest.$ac_ext <<_ACEOF
13502 /* end confdefs.h.  */
13503
13504 #define _XOPEN_SOURCE_EXTENDED 1
13505 #include <errno.h>
13506 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13507 #include <stdio.h>
13508 #include <stdlib.h>
13509
13510 int
13511 main ()
13512 {
13513 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13514 test_array [0] = 0
13515
13516   ;
13517   return 0;
13518 }
13519 _ACEOF
13520 rm -f conftest.$ac_objext
13521 if { (ac_try="$ac_compile"
13522 case "(($ac_try" in
13523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13524   *) ac_try_echo=$ac_try;;
13525 esac
13526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13527 $as_echo "$ac_try_echo") >&5
13528   (eval "$ac_compile") 2>conftest.er1
13529   ac_status=$?
13530   grep -v '^ *+' conftest.er1 >conftest.err
13531   rm -f conftest.er1
13532   cat conftest.err >&5
13533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13534   (exit $ac_status); } && {
13535          test -z "$ac_c_werror_flag" ||
13536          test ! -s conftest.err
13537        } && test -s conftest.$ac_objext; then
13538   ac_hi=$ac_mid; break
13539 else
13540   $as_echo "$as_me: failed program was:" >&5
13541 sed 's/^/| /' conftest.$ac_ext >&5
13542
13543         ac_lo=`expr $ac_mid + 1`
13544                         if test $ac_lo -le $ac_mid; then
13545                           ac_lo= ac_hi=
13546                           break
13547                         fi
13548                         ac_mid=`expr 2 '*' $ac_mid + 1`
13549 fi
13550
13551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13552   done
13553 else
13554   $as_echo "$as_me: failed program was:" >&5
13555 sed 's/^/| /' conftest.$ac_ext >&5
13556
13557         cat >conftest.$ac_ext <<_ACEOF
13558 /* confdefs.h.  */
13559 _ACEOF
13560 cat confdefs.h >>conftest.$ac_ext
13561 cat >>conftest.$ac_ext <<_ACEOF
13562 /* end confdefs.h.  */
13563
13564 #define _XOPEN_SOURCE_EXTENDED 1
13565 #include <errno.h>
13566 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13567 #include <stdio.h>
13568 #include <stdlib.h>
13569
13570 int
13571 main ()
13572 {
13573 static int test_array [1 - 2 * !((EOVERFLOW) < 0)];
13574 test_array [0] = 0
13575
13576   ;
13577   return 0;
13578 }
13579 _ACEOF
13580 rm -f conftest.$ac_objext
13581 if { (ac_try="$ac_compile"
13582 case "(($ac_try" in
13583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13584   *) ac_try_echo=$ac_try;;
13585 esac
13586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13587 $as_echo "$ac_try_echo") >&5
13588   (eval "$ac_compile") 2>conftest.er1
13589   ac_status=$?
13590   grep -v '^ *+' conftest.er1 >conftest.err
13591   rm -f conftest.er1
13592   cat conftest.err >&5
13593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594   (exit $ac_status); } && {
13595          test -z "$ac_c_werror_flag" ||
13596          test ! -s conftest.err
13597        } && test -s conftest.$ac_objext; then
13598   ac_hi=-1 ac_mid=-1
13599   while :; do
13600     cat >conftest.$ac_ext <<_ACEOF
13601 /* confdefs.h.  */
13602 _ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h.  */
13606
13607 #define _XOPEN_SOURCE_EXTENDED 1
13608 #include <errno.h>
13609 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13610 #include <stdio.h>
13611 #include <stdlib.h>
13612
13613 int
13614 main ()
13615 {
13616 static int test_array [1 - 2 * !((EOVERFLOW) >= $ac_mid)];
13617 test_array [0] = 0
13618
13619   ;
13620   return 0;
13621 }
13622 _ACEOF
13623 rm -f conftest.$ac_objext
13624 if { (ac_try="$ac_compile"
13625 case "(($ac_try" in
13626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627   *) ac_try_echo=$ac_try;;
13628 esac
13629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13630 $as_echo "$ac_try_echo") >&5
13631   (eval "$ac_compile") 2>conftest.er1
13632   ac_status=$?
13633   grep -v '^ *+' conftest.er1 >conftest.err
13634   rm -f conftest.er1
13635   cat conftest.err >&5
13636   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637   (exit $ac_status); } && {
13638          test -z "$ac_c_werror_flag" ||
13639          test ! -s conftest.err
13640        } && test -s conftest.$ac_objext; then
13641   ac_lo=$ac_mid; break
13642 else
13643   $as_echo "$as_me: failed program was:" >&5
13644 sed 's/^/| /' conftest.$ac_ext >&5
13645
13646         ac_hi=`expr '(' $ac_mid ')' - 1`
13647                         if test $ac_mid -le $ac_hi; then
13648                           ac_lo= ac_hi=
13649                           break
13650                         fi
13651                         ac_mid=`expr 2 '*' $ac_mid`
13652 fi
13653
13654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13655   done
13656 else
13657   $as_echo "$as_me: failed program was:" >&5
13658 sed 's/^/| /' conftest.$ac_ext >&5
13659
13660         ac_lo= ac_hi=
13661 fi
13662
13663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13664 fi
13665
13666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13667 # Binary search between lo and hi bounds.
13668 while test "x$ac_lo" != "x$ac_hi"; do
13669   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
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
13677 #define _XOPEN_SOURCE_EXTENDED 1
13678 #include <errno.h>
13679 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13680 #include <stdio.h>
13681 #include <stdlib.h>
13682
13683 int
13684 main ()
13685 {
13686 static int test_array [1 - 2 * !((EOVERFLOW) <= $ac_mid)];
13687 test_array [0] = 0
13688
13689   ;
13690   return 0;
13691 }
13692 _ACEOF
13693 rm -f conftest.$ac_objext
13694 if { (ac_try="$ac_compile"
13695 case "(($ac_try" in
13696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697   *) ac_try_echo=$ac_try;;
13698 esac
13699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13700 $as_echo "$ac_try_echo") >&5
13701   (eval "$ac_compile") 2>conftest.er1
13702   ac_status=$?
13703   grep -v '^ *+' conftest.er1 >conftest.err
13704   rm -f conftest.er1
13705   cat conftest.err >&5
13706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13707   (exit $ac_status); } && {
13708          test -z "$ac_c_werror_flag" ||
13709          test ! -s conftest.err
13710        } && test -s conftest.$ac_objext; then
13711   ac_hi=$ac_mid
13712 else
13713   $as_echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716         ac_lo=`expr '(' $ac_mid ')' + 1`
13717 fi
13718
13719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13720 done
13721 case $ac_lo in
13722 ?*) gl_cv_header_errno_h_EOVERFLOW=$ac_lo;;
13723 '')  ;;
13724 esac
13725 else
13726   cat >conftest.$ac_ext <<_ACEOF
13727 /* confdefs.h.  */
13728 _ACEOF
13729 cat confdefs.h >>conftest.$ac_ext
13730 cat >>conftest.$ac_ext <<_ACEOF
13731 /* end confdefs.h.  */
13732
13733 #define _XOPEN_SOURCE_EXTENDED 1
13734 #include <errno.h>
13735 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
13736 #include <stdio.h>
13737 #include <stdlib.h>
13738
13739 static long int longval () { return EOVERFLOW; }
13740 static unsigned long int ulongval () { return EOVERFLOW; }
13741 #include <stdio.h>
13742 #include <stdlib.h>
13743 int
13744 main ()
13745 {
13746
13747   FILE *f = fopen ("conftest.val", "w");
13748   if (! f)
13749     return 1;
13750   if ((EOVERFLOW) < 0)
13751     {
13752       long int i = longval ();
13753       if (i != (EOVERFLOW))
13754         return 1;
13755       fprintf (f, "%ld", i);
13756     }
13757   else
13758     {
13759       unsigned long int i = ulongval ();
13760       if (i != (EOVERFLOW))
13761         return 1;
13762       fprintf (f, "%lu", i);
13763     }
13764   /* Do not output a trailing newline, as this causes \r\n confusion
13765      on some platforms.  */
13766   return ferror (f) || fclose (f) != 0;
13767
13768   ;
13769   return 0;
13770 }
13771 _ACEOF
13772 rm -f conftest$ac_exeext
13773 if { (ac_try="$ac_link"
13774 case "(($ac_try" in
13775   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13776   *) ac_try_echo=$ac_try;;
13777 esac
13778 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13779 $as_echo "$ac_try_echo") >&5
13780   (eval "$ac_link") 2>&5
13781   ac_status=$?
13782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13783   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
13784   { (case "(($ac_try" in
13785   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13786   *) ac_try_echo=$ac_try;;
13787 esac
13788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13789 $as_echo "$ac_try_echo") >&5
13790   (eval "$ac_try") 2>&5
13791   ac_status=$?
13792   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13793   (exit $ac_status); }; }; then
13794   gl_cv_header_errno_h_EOVERFLOW=`cat conftest.val`
13795 else
13796   $as_echo "$as_me: program exited with status $ac_status" >&5
13797 $as_echo "$as_me: failed program was:" >&5
13798 sed 's/^/| /' conftest.$ac_ext >&5
13799
13800 fi
13801 rm -rf conftest.dSYM
13802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13803 fi
13804 rm -f conftest.val
13805         fi
13806       fi
13807
13808 fi
13809 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
13810 $as_echo "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
13811     case $gl_cv_header_errno_h_EOVERFLOW in
13812       yes | no)
13813         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
13814         ;;
13815       *)
13816         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
13817         ;;
13818     esac
13819
13820
13821   fi
13822
13823
13824 { $as_echo "$as_me:$LINENO: checking whether strerror_r is declared" >&5
13825 $as_echo_n "checking whether strerror_r is declared... " >&6; }
13826 if test "${ac_cv_have_decl_strerror_r+set}" = set; then
13827   $as_echo_n "(cached) " >&6
13828 else
13829   cat >conftest.$ac_ext <<_ACEOF
13830 /* confdefs.h.  */
13831 _ACEOF
13832 cat confdefs.h >>conftest.$ac_ext
13833 cat >>conftest.$ac_ext <<_ACEOF
13834 /* end confdefs.h.  */
13835 $ac_includes_default
13836 int
13837 main ()
13838 {
13839 #ifndef strerror_r
13840   (void) strerror_r;
13841 #endif
13842
13843   ;
13844   return 0;
13845 }
13846 _ACEOF
13847 rm -f conftest.$ac_objext
13848 if { (ac_try="$ac_compile"
13849 case "(($ac_try" in
13850   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13851   *) ac_try_echo=$ac_try;;
13852 esac
13853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13854 $as_echo "$ac_try_echo") >&5
13855   (eval "$ac_compile") 2>conftest.er1
13856   ac_status=$?
13857   grep -v '^ *+' conftest.er1 >conftest.err
13858   rm -f conftest.er1
13859   cat conftest.err >&5
13860   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13861   (exit $ac_status); } && {
13862          test -z "$ac_c_werror_flag" ||
13863          test ! -s conftest.err
13864        } && test -s conftest.$ac_objext; then
13865   ac_cv_have_decl_strerror_r=yes
13866 else
13867   $as_echo "$as_me: failed program was:" >&5
13868 sed 's/^/| /' conftest.$ac_ext >&5
13869
13870         ac_cv_have_decl_strerror_r=no
13871 fi
13872
13873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13874 fi
13875 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_r" >&5
13876 $as_echo "$ac_cv_have_decl_strerror_r" >&6; }
13877 if test "x$ac_cv_have_decl_strerror_r" = x""yes; then
13878
13879 cat >>confdefs.h <<_ACEOF
13880 #define HAVE_DECL_STRERROR_R 1
13881 _ACEOF
13882
13883
13884 else
13885   cat >>confdefs.h <<_ACEOF
13886 #define HAVE_DECL_STRERROR_R 0
13887 _ACEOF
13888
13889
13890 fi
13891
13892
13893
13894 for ac_func in strerror_r
13895 do
13896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13897 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13898 $as_echo_n "checking for $ac_func... " >&6; }
13899 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13900   $as_echo_n "(cached) " >&6
13901 else
13902   cat >conftest.$ac_ext <<_ACEOF
13903 /* confdefs.h.  */
13904 _ACEOF
13905 cat confdefs.h >>conftest.$ac_ext
13906 cat >>conftest.$ac_ext <<_ACEOF
13907 /* end confdefs.h.  */
13908 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13909    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13910 #define $ac_func innocuous_$ac_func
13911
13912 /* System header to define __stub macros and hopefully few prototypes,
13913     which can conflict with char $ac_func (); below.
13914     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13915     <limits.h> exists even on freestanding compilers.  */
13916
13917 #ifdef __STDC__
13918 # include <limits.h>
13919 #else
13920 # include <assert.h>
13921 #endif
13922
13923 #undef $ac_func
13924
13925 /* Override any GCC internal prototype to avoid an error.
13926    Use char because int might match the return type of a GCC
13927    builtin and then its argument prototype would still apply.  */
13928 #ifdef __cplusplus
13929 extern "C"
13930 #endif
13931 char $ac_func ();
13932 /* The GNU C library defines this for functions which it implements
13933     to always fail with ENOSYS.  Some functions are actually named
13934     something starting with __ and the normal name is an alias.  */
13935 #if defined __stub_$ac_func || defined __stub___$ac_func
13936 choke me
13937 #endif
13938
13939 int
13940 main ()
13941 {
13942 return $ac_func ();
13943   ;
13944   return 0;
13945 }
13946 _ACEOF
13947 rm -f conftest.$ac_objext conftest$ac_exeext
13948 if { (ac_try="$ac_link"
13949 case "(($ac_try" in
13950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951   *) ac_try_echo=$ac_try;;
13952 esac
13953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13954 $as_echo "$ac_try_echo") >&5
13955   (eval "$ac_link") 2>conftest.er1
13956   ac_status=$?
13957   grep -v '^ *+' conftest.er1 >conftest.err
13958   rm -f conftest.er1
13959   cat conftest.err >&5
13960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961   (exit $ac_status); } && {
13962          test -z "$ac_c_werror_flag" ||
13963          test ! -s conftest.err
13964        } && test -s conftest$ac_exeext && {
13965          test "$cross_compiling" = yes ||
13966          $as_test_x conftest$ac_exeext
13967        }; then
13968   eval "$as_ac_var=yes"
13969 else
13970   $as_echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13972
13973         eval "$as_ac_var=no"
13974 fi
13975
13976 rm -rf conftest.dSYM
13977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13978       conftest$ac_exeext conftest.$ac_ext
13979 fi
13980 ac_res=`eval 'as_val=${'$as_ac_var'}
13981                  $as_echo "$as_val"'`
13982                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
13983 $as_echo "$ac_res" >&6; }
13984 as_val=`eval 'as_val=${'$as_ac_var'}
13985                  $as_echo "$as_val"'`
13986    if test "x$as_val" = x""yes; then
13987   cat >>confdefs.h <<_ACEOF
13988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13989 _ACEOF
13990
13991 fi
13992 done
13993
13994 { $as_echo "$as_me:$LINENO: checking whether strerror_r returns char *" >&5
13995 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
13996 if test "${ac_cv_func_strerror_r_char_p+set}" = set; then
13997   $as_echo_n "(cached) " >&6
13998 else
13999
14000     ac_cv_func_strerror_r_char_p=no
14001     if test $ac_cv_have_decl_strerror_r = yes; then
14002       cat >conftest.$ac_ext <<_ACEOF
14003 /* confdefs.h.  */
14004 _ACEOF
14005 cat confdefs.h >>conftest.$ac_ext
14006 cat >>conftest.$ac_ext <<_ACEOF
14007 /* end confdefs.h.  */
14008 $ac_includes_default
14009 int
14010 main ()
14011 {
14012
14013           char buf[100];
14014           char x = *strerror_r (0, buf, sizeof buf);
14015           char *p = strerror_r (0, buf, sizeof buf);
14016           return !p || x;
14017
14018   ;
14019   return 0;
14020 }
14021 _ACEOF
14022 rm -f conftest.$ac_objext
14023 if { (ac_try="$ac_compile"
14024 case "(($ac_try" in
14025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14026   *) ac_try_echo=$ac_try;;
14027 esac
14028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14029 $as_echo "$ac_try_echo") >&5
14030   (eval "$ac_compile") 2>conftest.er1
14031   ac_status=$?
14032   grep -v '^ *+' conftest.er1 >conftest.err
14033   rm -f conftest.er1
14034   cat conftest.err >&5
14035   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036   (exit $ac_status); } && {
14037          test -z "$ac_c_werror_flag" ||
14038          test ! -s conftest.err
14039        } && test -s conftest.$ac_objext; then
14040   ac_cv_func_strerror_r_char_p=yes
14041 else
14042   $as_echo "$as_me: failed program was:" >&5
14043 sed 's/^/| /' conftest.$ac_ext >&5
14044
14045
14046 fi
14047
14048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14049     else
14050       # strerror_r is not declared.  Choose between
14051       # systems that have relatively inaccessible declarations for the
14052       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
14053       # former has a strerror_r that returns char*, while the latter
14054       # has a strerror_r that returns `int'.
14055       # This test should segfault on the DEC system.
14056       if test "$cross_compiling" = yes; then
14057   :
14058 else
14059   cat >conftest.$ac_ext <<_ACEOF
14060 /* confdefs.h.  */
14061 _ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h.  */
14065 $ac_includes_default
14066         extern char *strerror_r ();
14067 int
14068 main ()
14069 {
14070 char buf[100];
14071           char x = *strerror_r (0, buf, sizeof buf);
14072           return ! isalpha (x);
14073   ;
14074   return 0;
14075 }
14076 _ACEOF
14077 rm -f conftest$ac_exeext
14078 if { (ac_try="$ac_link"
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_link") 2>&5
14086   ac_status=$?
14087   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14088   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14089   { (case "(($ac_try" in
14090   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14091   *) ac_try_echo=$ac_try;;
14092 esac
14093 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14094 $as_echo "$ac_try_echo") >&5
14095   (eval "$ac_try") 2>&5
14096   ac_status=$?
14097   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098   (exit $ac_status); }; }; then
14099   ac_cv_func_strerror_r_char_p=yes
14100 else
14101   $as_echo "$as_me: program exited with status $ac_status" >&5
14102 $as_echo "$as_me: failed program was:" >&5
14103 sed 's/^/| /' conftest.$ac_ext >&5
14104
14105 fi
14106 rm -rf conftest.dSYM
14107 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14108 fi
14109
14110
14111     fi
14112
14113 fi
14114 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strerror_r_char_p" >&5
14115 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
14116 if test $ac_cv_func_strerror_r_char_p = yes; then
14117
14118 cat >>confdefs.h <<\_ACEOF
14119 #define STRERROR_R_CHAR_P 1
14120 _ACEOF
14121
14122 fi
14123
14124
14125      GNULIB_FCHMODAT=0;
14126   GNULIB_FSTATAT=0;
14127   GNULIB_FUTIMENS=0;
14128   GNULIB_LCHMOD=0;
14129   GNULIB_LSTAT=0;
14130   GNULIB_MKDIRAT=0;
14131   GNULIB_MKFIFO=0;
14132   GNULIB_MKFIFOAT=0;
14133   GNULIB_MKNOD=0;
14134   GNULIB_MKNODAT=0;
14135   GNULIB_STAT=0;
14136   GNULIB_UTIMENSAT=0;
14137     HAVE_FCHMODAT=1;
14138   HAVE_FSTATAT=1;
14139   HAVE_FUTIMENS=1;
14140   HAVE_LCHMOD=1;
14141   HAVE_LSTAT=1;
14142   HAVE_MKDIRAT=1;
14143   HAVE_MKFIFO=1;
14144   HAVE_MKFIFOAT=1;
14145   HAVE_MKNOD=1;
14146   HAVE_MKNODAT=1;
14147   HAVE_UTIMENSAT=1;
14148   REPLACE_FSTAT=0;
14149   REPLACE_FSTATAT=0;
14150   REPLACE_FUTIMENS=0;
14151   REPLACE_LSTAT=0;
14152   REPLACE_MKDIR=0;
14153   REPLACE_MKFIFO=0;
14154   REPLACE_MKNOD=0;
14155   REPLACE_STAT=0;
14156   REPLACE_UTIMENSAT=0;
14157
14158 { $as_echo "$as_me:$LINENO: checking whether fchdir is declared" >&5
14159 $as_echo_n "checking whether fchdir is declared... " >&6; }
14160 if test "${ac_cv_have_decl_fchdir+set}" = set; then
14161   $as_echo_n "(cached) " >&6
14162 else
14163   cat >conftest.$ac_ext <<_ACEOF
14164 /* confdefs.h.  */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h.  */
14169 $ac_includes_default
14170 int
14171 main ()
14172 {
14173 #ifndef fchdir
14174   (void) fchdir;
14175 #endif
14176
14177   ;
14178   return 0;
14179 }
14180 _ACEOF
14181 rm -f conftest.$ac_objext
14182 if { (ac_try="$ac_compile"
14183 case "(($ac_try" in
14184   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14185   *) ac_try_echo=$ac_try;;
14186 esac
14187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14188 $as_echo "$ac_try_echo") >&5
14189   (eval "$ac_compile") 2>conftest.er1
14190   ac_status=$?
14191   grep -v '^ *+' conftest.er1 >conftest.err
14192   rm -f conftest.er1
14193   cat conftest.err >&5
14194   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); } && {
14196          test -z "$ac_c_werror_flag" ||
14197          test ! -s conftest.err
14198        } && test -s conftest.$ac_objext; then
14199   ac_cv_have_decl_fchdir=yes
14200 else
14201   $as_echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14203
14204         ac_cv_have_decl_fchdir=no
14205 fi
14206
14207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 fi
14209 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fchdir" >&5
14210 $as_echo "$ac_cv_have_decl_fchdir" >&6; }
14211 if test "x$ac_cv_have_decl_fchdir" = x""yes; then
14212
14213 cat >>confdefs.h <<_ACEOF
14214 #define HAVE_DECL_FCHDIR 1
14215 _ACEOF
14216
14217
14218 else
14219   cat >>confdefs.h <<_ACEOF
14220 #define HAVE_DECL_FCHDIR 0
14221 _ACEOF
14222
14223
14224 fi
14225
14226
14227
14228
14229
14230   GNULIB_FCNTL=0;
14231   GNULIB_OPEN=0;
14232   GNULIB_OPENAT=0;
14233     HAVE_FCNTL=1;
14234   HAVE_OPENAT=1;
14235   REPLACE_FCNTL=0;
14236   REPLACE_OPEN=0;
14237   REPLACE_OPENAT=0;
14238
14239
14240
14241   { $as_echo "$as_me:$LINENO: checking for promoted mode_t type" >&5
14242 $as_echo_n "checking for promoted mode_t type... " >&6; }
14243 if test "${gl_cv_promoted_mode_t+set}" = set; then
14244   $as_echo_n "(cached) " >&6
14245 else
14246
14247                 cat >conftest.$ac_ext <<_ACEOF
14248 /* confdefs.h.  */
14249 _ACEOF
14250 cat confdefs.h >>conftest.$ac_ext
14251 cat >>conftest.$ac_ext <<_ACEOF
14252 /* end confdefs.h.  */
14253 #include <sys/types.h>
14254 int
14255 main ()
14256 {
14257 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
14258   ;
14259   return 0;
14260 }
14261 _ACEOF
14262 rm -f conftest.$ac_objext
14263 if { (ac_try="$ac_compile"
14264 case "(($ac_try" in
14265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14266   *) ac_try_echo=$ac_try;;
14267 esac
14268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14269 $as_echo "$ac_try_echo") >&5
14270   (eval "$ac_compile") 2>conftest.er1
14271   ac_status=$?
14272   grep -v '^ *+' conftest.er1 >conftest.err
14273   rm -f conftest.er1
14274   cat conftest.err >&5
14275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14276   (exit $ac_status); } && {
14277          test -z "$ac_c_werror_flag" ||
14278          test ! -s conftest.err
14279        } && test -s conftest.$ac_objext; then
14280   gl_cv_promoted_mode_t='int'
14281 else
14282   $as_echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14284
14285         gl_cv_promoted_mode_t='mode_t'
14286 fi
14287
14288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14289
14290 fi
14291 { $as_echo "$as_me:$LINENO: result: $gl_cv_promoted_mode_t" >&5
14292 $as_echo "$gl_cv_promoted_mode_t" >&6; }
14293
14294 cat >>confdefs.h <<_ACEOF
14295 #define PROMOTED_MODE_T $gl_cv_promoted_mode_t
14296 _ACEOF
14297
14298
14299
14300   GNULIB_DPRINTF=0;
14301   GNULIB_FCLOSE=0;
14302   GNULIB_FFLUSH=0;
14303   GNULIB_FOPEN=0;
14304   GNULIB_FPRINTF=0;
14305   GNULIB_FPRINTF_POSIX=0;
14306   GNULIB_FPURGE=0;
14307   GNULIB_FPUTC=0;
14308   GNULIB_FPUTS=0;
14309   GNULIB_FREOPEN=0;
14310   GNULIB_FSEEK=0;
14311   GNULIB_FSEEKO=0;
14312   GNULIB_FTELL=0;
14313   GNULIB_FTELLO=0;
14314   GNULIB_FWRITE=0;
14315   GNULIB_GETDELIM=0;
14316   GNULIB_GETLINE=0;
14317   GNULIB_OBSTACK_PRINTF=0;
14318   GNULIB_OBSTACK_PRINTF_POSIX=0;
14319   GNULIB_PERROR=0;
14320   GNULIB_POPEN=0;
14321   GNULIB_PRINTF=0;
14322   GNULIB_PRINTF_POSIX=0;
14323   GNULIB_PUTC=0;
14324   GNULIB_PUTCHAR=0;
14325   GNULIB_PUTS=0;
14326   GNULIB_REMOVE=0;
14327   GNULIB_RENAME=0;
14328   GNULIB_RENAMEAT=0;
14329   GNULIB_SNPRINTF=0;
14330   GNULIB_SPRINTF_POSIX=0;
14331   GNULIB_STDIO_H_SIGPIPE=0;
14332   GNULIB_TMPFILE=0;
14333   GNULIB_VASPRINTF=0;
14334   GNULIB_VDPRINTF=0;
14335   GNULIB_VFPRINTF=0;
14336   GNULIB_VFPRINTF_POSIX=0;
14337   GNULIB_VPRINTF=0;
14338   GNULIB_VPRINTF_POSIX=0;
14339   GNULIB_VSNPRINTF=0;
14340   GNULIB_VSPRINTF_POSIX=0;
14341     HAVE_DECL_FPURGE=1;
14342   HAVE_DECL_FSEEKO=1;
14343   HAVE_DECL_FTELLO=1;
14344   HAVE_DECL_GETDELIM=1;
14345   HAVE_DECL_GETLINE=1;
14346   HAVE_DECL_OBSTACK_PRINTF=1;
14347   HAVE_DECL_SNPRINTF=1;
14348   HAVE_DECL_VSNPRINTF=1;
14349   HAVE_DPRINTF=1;
14350   HAVE_FSEEKO=1;
14351   HAVE_FTELLO=1;
14352   HAVE_RENAMEAT=1;
14353   HAVE_VASPRINTF=1;
14354   HAVE_VDPRINTF=1;
14355   REPLACE_DPRINTF=0;
14356   REPLACE_FCLOSE=0;
14357   REPLACE_FFLUSH=0;
14358   REPLACE_FOPEN=0;
14359   REPLACE_FPRINTF=0;
14360   REPLACE_FPURGE=0;
14361   REPLACE_FREOPEN=0;
14362   REPLACE_FSEEK=0;
14363   REPLACE_FSEEKO=0;
14364   REPLACE_FTELL=0;
14365   REPLACE_FTELLO=0;
14366   REPLACE_GETDELIM=0;
14367   REPLACE_GETLINE=0;
14368   REPLACE_OBSTACK_PRINTF=0;
14369   REPLACE_PERROR=0;
14370   REPLACE_POPEN=0;
14371   REPLACE_PRINTF=0;
14372   REPLACE_REMOVE=0;
14373   REPLACE_RENAME=0;
14374   REPLACE_RENAMEAT=0;
14375   REPLACE_SNPRINTF=0;
14376   REPLACE_SPRINTF=0;
14377   REPLACE_STDIO_WRITE_FUNCS=0;
14378   REPLACE_TMPFILE=0;
14379   REPLACE_VASPRINTF=0;
14380   REPLACE_VDPRINTF=0;
14381   REPLACE_VFPRINTF=0;
14382   REPLACE_VPRINTF=0;
14383   REPLACE_VSNPRINTF=0;
14384   REPLACE_VSPRINTF=0;
14385
14386
14387
14388   { $as_echo "$as_me:$LINENO: checking for working fcntl.h" >&5
14389 $as_echo_n "checking for working fcntl.h... " >&6; }
14390 if test "${gl_cv_header_working_fcntl_h+set}" = set; then
14391   $as_echo_n "(cached) " >&6
14392 else
14393   if test "$cross_compiling" = yes; then
14394   gl_cv_header_working_fcntl_h=cross-compiling
14395 else
14396   cat >conftest.$ac_ext <<_ACEOF
14397 /* confdefs.h.  */
14398 _ACEOF
14399 cat confdefs.h >>conftest.$ac_ext
14400 cat >>conftest.$ac_ext <<_ACEOF
14401 /* end confdefs.h.  */
14402 #include <sys/types.h>
14403            #include <sys/stat.h>
14404            #include <unistd.h>
14405            #include <fcntl.h>
14406            #ifndef O_NOATIME
14407             #define O_NOATIME 0
14408            #endif
14409            #ifndef O_NOFOLLOW
14410             #define O_NOFOLLOW 0
14411            #endif
14412            static int const constants[] =
14413             {
14414               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
14415               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
14416             };
14417
14418 int
14419 main ()
14420 {
14421
14422             int result = !constants;
14423             {
14424               static char const sym[] = "conftest.sym";
14425               if (symlink (".", sym) != 0)
14426                 result |= 2;
14427               else
14428                 {
14429                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
14430                   if (fd >= 0)
14431                     {
14432                       close (fd);
14433                       result |= 4;
14434                     }
14435                 }
14436               unlink (sym);
14437             }
14438             {
14439               static char const file[] = "confdefs.h";
14440               int fd = open (file, O_RDONLY | O_NOATIME);
14441               if (fd < 0)
14442                 result |= 8;
14443               else
14444                 {
14445                   struct stat st0;
14446                   if (fstat (fd, &st0) != 0)
14447                     result |= 16;
14448                   else
14449                     {
14450                       char c;
14451                       sleep (1);
14452                       if (read (fd, &c, 1) != 1)
14453                         result |= 24;
14454                       else
14455                         {
14456                           if (close (fd) != 0)
14457                             result |= 32;
14458                           else
14459                             {
14460                               struct stat st1;
14461                               if (stat (file, &st1) != 0)
14462                                 result |= 40;
14463                               else
14464                                 if (st0.st_atime != st1.st_atime)
14465                                   result |= 64;
14466                             }
14467                         }
14468                     }
14469                 }
14470             }
14471             return result;
14472   ;
14473   return 0;
14474 }
14475 _ACEOF
14476 rm -f conftest$ac_exeext
14477 if { (ac_try="$ac_link"
14478 case "(($ac_try" in
14479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14480   *) ac_try_echo=$ac_try;;
14481 esac
14482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14483 $as_echo "$ac_try_echo") >&5
14484   (eval "$ac_link") 2>&5
14485   ac_status=$?
14486   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14487   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14488   { (case "(($ac_try" in
14489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14490   *) ac_try_echo=$ac_try;;
14491 esac
14492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14493 $as_echo "$ac_try_echo") >&5
14494   (eval "$ac_try") 2>&5
14495   ac_status=$?
14496   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14497   (exit $ac_status); }; }; then
14498   gl_cv_header_working_fcntl_h=yes
14499 else
14500   $as_echo "$as_me: program exited with status $ac_status" >&5
14501 $as_echo "$as_me: failed program was:" >&5
14502 sed 's/^/| /' conftest.$ac_ext >&5
14503
14504 ( exit $ac_status )
14505 case $? in #(
14506         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
14507         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
14508         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
14509          *) gl_cv_header_working_fcntl_h='no';;
14510         esac
14511 fi
14512 rm -rf conftest.dSYM
14513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14514 fi
14515
14516
14517 fi
14518 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_fcntl_h" >&5
14519 $as_echo "$gl_cv_header_working_fcntl_h" >&6; }
14520
14521   case $gl_cv_header_working_fcntl_h in #(
14522   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
14523   *) ac_val=1;;
14524   esac
14525
14526 cat >>confdefs.h <<_ACEOF
14527 #define HAVE_WORKING_O_NOATIME $ac_val
14528 _ACEOF
14529
14530
14531   case $gl_cv_header_working_fcntl_h in #(
14532   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
14533   *) ac_val=1;;
14534   esac
14535
14536 cat >>confdefs.h <<_ACEOF
14537 #define HAVE_WORKING_O_NOFOLLOW $ac_val
14538 _ACEOF
14539
14540
14541
14542
14543
14544
14545    { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
14546 $as_echo_n "checking for mbstate_t... " >&6; }
14547 if test "${ac_cv_type_mbstate_t+set}" = set; then
14548   $as_echo_n "(cached) " >&6
14549 else
14550   cat >conftest.$ac_ext <<_ACEOF
14551 /* confdefs.h.  */
14552 _ACEOF
14553 cat confdefs.h >>conftest.$ac_ext
14554 cat >>conftest.$ac_ext <<_ACEOF
14555 /* end confdefs.h.  */
14556 $ac_includes_default
14557 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
14558    <wchar.h>.
14559    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
14560    included before <wchar.h>.  */
14561 #include <stddef.h>
14562 #include <stdio.h>
14563 #include <time.h>
14564 #include <wchar.h>
14565 int
14566 main ()
14567 {
14568 mbstate_t x; return sizeof x;
14569   ;
14570   return 0;
14571 }
14572 _ACEOF
14573 rm -f conftest.$ac_objext
14574 if { (ac_try="$ac_compile"
14575 case "(($ac_try" in
14576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577   *) ac_try_echo=$ac_try;;
14578 esac
14579 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14580 $as_echo "$ac_try_echo") >&5
14581   (eval "$ac_compile") 2>conftest.er1
14582   ac_status=$?
14583   grep -v '^ *+' conftest.er1 >conftest.err
14584   rm -f conftest.er1
14585   cat conftest.err >&5
14586   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14587   (exit $ac_status); } && {
14588          test -z "$ac_c_werror_flag" ||
14589          test ! -s conftest.err
14590        } && test -s conftest.$ac_objext; then
14591   ac_cv_type_mbstate_t=yes
14592 else
14593   $as_echo "$as_me: failed program was:" >&5
14594 sed 's/^/| /' conftest.$ac_ext >&5
14595
14596         ac_cv_type_mbstate_t=no
14597 fi
14598
14599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14600 fi
14601 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
14602 $as_echo "$ac_cv_type_mbstate_t" >&6; }
14603    if test $ac_cv_type_mbstate_t = yes; then
14604
14605 cat >>confdefs.h <<\_ACEOF
14606 #define HAVE_MBSTATE_T 1
14607 _ACEOF
14608
14609    else
14610
14611 cat >>confdefs.h <<\_ACEOF
14612 #define mbstate_t int
14613 _ACEOF
14614
14615    fi
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640   { $as_echo "$as_me:$LINENO: checking for fseeko" >&5
14641 $as_echo_n "checking for fseeko... " >&6; }
14642 if test "${gl_cv_func_fseeko+set}" = set; then
14643   $as_echo_n "(cached) " >&6
14644 else
14645
14646       cat >conftest.$ac_ext <<_ACEOF
14647 /* confdefs.h.  */
14648 _ACEOF
14649 cat confdefs.h >>conftest.$ac_ext
14650 cat >>conftest.$ac_ext <<_ACEOF
14651 /* end confdefs.h.  */
14652 #include <stdio.h>
14653
14654 int
14655 main ()
14656 {
14657 fseeko (stdin, 0, 0);
14658   ;
14659   return 0;
14660 }
14661 _ACEOF
14662 rm -f conftest.$ac_objext conftest$ac_exeext
14663 if { (ac_try="$ac_link"
14664 case "(($ac_try" in
14665   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14666   *) ac_try_echo=$ac_try;;
14667 esac
14668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14669 $as_echo "$ac_try_echo") >&5
14670   (eval "$ac_link") 2>conftest.er1
14671   ac_status=$?
14672   grep -v '^ *+' conftest.er1 >conftest.err
14673   rm -f conftest.er1
14674   cat conftest.err >&5
14675   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676   (exit $ac_status); } && {
14677          test -z "$ac_c_werror_flag" ||
14678          test ! -s conftest.err
14679        } && test -s conftest$ac_exeext && {
14680          test "$cross_compiling" = yes ||
14681          $as_test_x conftest$ac_exeext
14682        }; then
14683   gl_cv_func_fseeko=yes
14684 else
14685   $as_echo "$as_me: failed program was:" >&5
14686 sed 's/^/| /' conftest.$ac_ext >&5
14687
14688         gl_cv_func_fseeko=no
14689 fi
14690
14691 rm -rf conftest.dSYM
14692 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14693       conftest$ac_exeext conftest.$ac_ext
14694
14695 fi
14696 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fseeko" >&5
14697 $as_echo "$gl_cv_func_fseeko" >&6; }
14698
14699
14700     { $as_echo "$as_me:$LINENO: checking whether stdin defaults to large file offsets" >&5
14701 $as_echo_n "checking whether stdin defaults to large file offsets... " >&6; }
14702 if test "${gl_cv_var_stdin_large_offset+set}" = set; then
14703   $as_echo_n "(cached) " >&6
14704 else
14705   cat >conftest.$ac_ext <<_ACEOF
14706 /* confdefs.h.  */
14707 _ACEOF
14708 cat confdefs.h >>conftest.$ac_ext
14709 cat >>conftest.$ac_ext <<_ACEOF
14710 /* end confdefs.h.  */
14711 #include <stdio.h>
14712 int
14713 main ()
14714 {
14715 #if defined __SL64 && defined __SCLE /* cygwin */
14716   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
14717      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
14718      it is easier to do a version check than building a runtime test.  */
14719 # include <cygwin/version.h>
14720 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
14721   choke me
14722 # endif
14723 #endif
14724   ;
14725   return 0;
14726 }
14727 _ACEOF
14728 rm -f conftest.$ac_objext conftest$ac_exeext
14729 if { (ac_try="$ac_link"
14730 case "(($ac_try" in
14731   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14732   *) ac_try_echo=$ac_try;;
14733 esac
14734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14735 $as_echo "$ac_try_echo") >&5
14736   (eval "$ac_link") 2>conftest.er1
14737   ac_status=$?
14738   grep -v '^ *+' conftest.er1 >conftest.err
14739   rm -f conftest.er1
14740   cat conftest.err >&5
14741   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14742   (exit $ac_status); } && {
14743          test -z "$ac_c_werror_flag" ||
14744          test ! -s conftest.err
14745        } && test -s conftest$ac_exeext && {
14746          test "$cross_compiling" = yes ||
14747          $as_test_x conftest$ac_exeext
14748        }; then
14749   gl_cv_var_stdin_large_offset=yes
14750 else
14751   $as_echo "$as_me: failed program was:" >&5
14752 sed 's/^/| /' conftest.$ac_ext >&5
14753
14754         gl_cv_var_stdin_large_offset=no
14755 fi
14756
14757 rm -rf conftest.dSYM
14758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14759       conftest$ac_exeext conftest.$ac_ext
14760 fi
14761 { $as_echo "$as_me:$LINENO: result: $gl_cv_var_stdin_large_offset" >&5
14762 $as_echo "$gl_cv_var_stdin_large_offset" >&6; }
14763
14764 { $as_echo "$as_me:$LINENO: checking whether fseeko is declared" >&5
14765 $as_echo_n "checking whether fseeko is declared... " >&6; }
14766 if test "${ac_cv_have_decl_fseeko+set}" = set; then
14767   $as_echo_n "(cached) " >&6
14768 else
14769   cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h.  */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h.  */
14775 $ac_includes_default
14776 int
14777 main ()
14778 {
14779 #ifndef fseeko
14780   (void) fseeko;
14781 #endif
14782
14783   ;
14784   return 0;
14785 }
14786 _ACEOF
14787 rm -f conftest.$ac_objext
14788 if { (ac_try="$ac_compile"
14789 case "(($ac_try" in
14790   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791   *) ac_try_echo=$ac_try;;
14792 esac
14793 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14794 $as_echo "$ac_try_echo") >&5
14795   (eval "$ac_compile") 2>conftest.er1
14796   ac_status=$?
14797   grep -v '^ *+' conftest.er1 >conftest.err
14798   rm -f conftest.er1
14799   cat conftest.err >&5
14800   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801   (exit $ac_status); } && {
14802          test -z "$ac_c_werror_flag" ||
14803          test ! -s conftest.err
14804        } && test -s conftest.$ac_objext; then
14805   ac_cv_have_decl_fseeko=yes
14806 else
14807   $as_echo "$as_me: failed program was:" >&5
14808 sed 's/^/| /' conftest.$ac_ext >&5
14809
14810         ac_cv_have_decl_fseeko=no
14811 fi
14812
14813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14814 fi
14815 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fseeko" >&5
14816 $as_echo "$ac_cv_have_decl_fseeko" >&6; }
14817 if test "x$ac_cv_have_decl_fseeko" = x""yes; then
14818
14819 cat >>confdefs.h <<_ACEOF
14820 #define HAVE_DECL_FSEEKO 1
14821 _ACEOF
14822
14823
14824 else
14825   cat >>confdefs.h <<_ACEOF
14826 #define HAVE_DECL_FSEEKO 0
14827 _ACEOF
14828
14829
14830 fi
14831
14832
14833
14834
14835
14836    { $as_echo "$as_me:$LINENO: checking whether getcwd (NULL, 0) allocates memory for result" >&5
14837 $as_echo_n "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
14838 if test "${gl_cv_func_getcwd_null+set}" = set; then
14839   $as_echo_n "(cached) " >&6
14840 else
14841   if test "$cross_compiling" = yes; then
14842
14843        case "$host_os" in
14844                                # Guess yes on glibc systems.
14845          *-gnu*)               gl_cv_func_getcwd_null="guessing yes";;
14846                                # Guess yes on Cygwin.
14847          cygwin*)              gl_cv_func_getcwd_null="guessing yes";;
14848                                # Guess yes on mingw.
14849          mingw*)               gl_cv_func_getcwd_null="guessing yes";;
14850                                # If we don't know, assume the worst.
14851          *)                    gl_cv_func_getcwd_null="guessing no";;
14852        esac
14853
14854 else
14855   cat >conftest.$ac_ext <<_ACEOF
14856 /* confdefs.h.  */
14857 _ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h.  */
14861
14862 #        include <unistd.h>
14863 #        ifndef getcwd
14864          char *getcwd ();
14865 #        endif
14866
14867 int
14868 main ()
14869 {
14870
14871 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
14872 /* mingw cwd does not start with '/', but getcwd does allocate.  */
14873 #else
14874            if (chdir ("/") != 0)
14875              return 1;
14876            else
14877              {
14878                char *f = getcwd (NULL, 0);
14879                if (! f)
14880                  return 2;
14881                if (f[0] != '/')
14882                  return 3;
14883                if (f[1] != '\0')
14884                  return 4;
14885                return 0;
14886              }
14887 #endif
14888
14889   ;
14890   return 0;
14891 }
14892 _ACEOF
14893 rm -f conftest$ac_exeext
14894 if { (ac_try="$ac_link"
14895 case "(($ac_try" in
14896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897   *) ac_try_echo=$ac_try;;
14898 esac
14899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14900 $as_echo "$ac_try_echo") >&5
14901   (eval "$ac_link") 2>&5
14902   ac_status=$?
14903   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14904   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14905   { (case "(($ac_try" in
14906   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14907   *) ac_try_echo=$ac_try;;
14908 esac
14909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14910 $as_echo "$ac_try_echo") >&5
14911   (eval "$ac_try") 2>&5
14912   ac_status=$?
14913   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14914   (exit $ac_status); }; }; then
14915   gl_cv_func_getcwd_null=yes
14916 else
14917   $as_echo "$as_me: program exited with status $ac_status" >&5
14918 $as_echo "$as_me: failed program was:" >&5
14919 sed 's/^/| /' conftest.$ac_ext >&5
14920
14921 ( exit $ac_status )
14922 gl_cv_func_getcwd_null=no
14923 fi
14924 rm -rf conftest.dSYM
14925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14926 fi
14927
14928
14929 fi
14930 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_null" >&5
14931 $as_echo "$gl_cv_func_getcwd_null" >&6; }
14932
14933 { $as_echo "$as_me:$LINENO: checking whether getcwd is declared" >&5
14934 $as_echo_n "checking whether getcwd is declared... " >&6; }
14935 if test "${ac_cv_have_decl_getcwd+set}" = set; then
14936   $as_echo_n "(cached) " >&6
14937 else
14938   cat >conftest.$ac_ext <<_ACEOF
14939 /* confdefs.h.  */
14940 _ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h.  */
14944 $ac_includes_default
14945 int
14946 main ()
14947 {
14948 #ifndef getcwd
14949   (void) getcwd;
14950 #endif
14951
14952   ;
14953   return 0;
14954 }
14955 _ACEOF
14956 rm -f conftest.$ac_objext
14957 if { (ac_try="$ac_compile"
14958 case "(($ac_try" in
14959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14960   *) ac_try_echo=$ac_try;;
14961 esac
14962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14963 $as_echo "$ac_try_echo") >&5
14964   (eval "$ac_compile") 2>conftest.er1
14965   ac_status=$?
14966   grep -v '^ *+' conftest.er1 >conftest.err
14967   rm -f conftest.er1
14968   cat conftest.err >&5
14969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970   (exit $ac_status); } && {
14971          test -z "$ac_c_werror_flag" ||
14972          test ! -s conftest.err
14973        } && test -s conftest.$ac_objext; then
14974   ac_cv_have_decl_getcwd=yes
14975 else
14976   $as_echo "$as_me: failed program was:" >&5
14977 sed 's/^/| /' conftest.$ac_ext >&5
14978
14979         ac_cv_have_decl_getcwd=no
14980 fi
14981
14982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14983 fi
14984 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getcwd" >&5
14985 $as_echo "$ac_cv_have_decl_getcwd" >&6; }
14986 if test "x$ac_cv_have_decl_getcwd" = x""yes; then
14987
14988 cat >>confdefs.h <<_ACEOF
14989 #define HAVE_DECL_GETCWD 1
14990 _ACEOF
14991
14992
14993 else
14994   cat >>confdefs.h <<_ACEOF
14995 #define HAVE_DECL_GETCWD 0
14996 _ACEOF
14997
14998
14999 fi
15000
15001
15002 { $as_echo "$as_me:$LINENO: checking whether getdelim is declared" >&5
15003 $as_echo_n "checking whether getdelim is declared... " >&6; }
15004 if test "${ac_cv_have_decl_getdelim+set}" = set; then
15005   $as_echo_n "(cached) " >&6
15006 else
15007   cat >conftest.$ac_ext <<_ACEOF
15008 /* confdefs.h.  */
15009 _ACEOF
15010 cat confdefs.h >>conftest.$ac_ext
15011 cat >>conftest.$ac_ext <<_ACEOF
15012 /* end confdefs.h.  */
15013 $ac_includes_default
15014 int
15015 main ()
15016 {
15017 #ifndef getdelim
15018   (void) getdelim;
15019 #endif
15020
15021   ;
15022   return 0;
15023 }
15024 _ACEOF
15025 rm -f conftest.$ac_objext
15026 if { (ac_try="$ac_compile"
15027 case "(($ac_try" in
15028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15029   *) ac_try_echo=$ac_try;;
15030 esac
15031 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15032 $as_echo "$ac_try_echo") >&5
15033   (eval "$ac_compile") 2>conftest.er1
15034   ac_status=$?
15035   grep -v '^ *+' conftest.er1 >conftest.err
15036   rm -f conftest.er1
15037   cat conftest.err >&5
15038   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039   (exit $ac_status); } && {
15040          test -z "$ac_c_werror_flag" ||
15041          test ! -s conftest.err
15042        } && test -s conftest.$ac_objext; then
15043   ac_cv_have_decl_getdelim=yes
15044 else
15045   $as_echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.$ac_ext >&5
15047
15048         ac_cv_have_decl_getdelim=no
15049 fi
15050
15051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15052 fi
15053 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getdelim" >&5
15054 $as_echo "$ac_cv_have_decl_getdelim" >&6; }
15055 if test "x$ac_cv_have_decl_getdelim" = x""yes; then
15056
15057 cat >>confdefs.h <<_ACEOF
15058 #define HAVE_DECL_GETDELIM 1
15059 _ACEOF
15060
15061
15062 else
15063   cat >>confdefs.h <<_ACEOF
15064 #define HAVE_DECL_GETDELIM 0
15065 _ACEOF
15066
15067
15068 fi
15069
15070
15071
15072
15073
15074
15075 { $as_echo "$as_me:$LINENO: checking whether getline is declared" >&5
15076 $as_echo_n "checking whether getline is declared... " >&6; }
15077 if test "${ac_cv_have_decl_getline+set}" = set; then
15078   $as_echo_n "(cached) " >&6
15079 else
15080   cat >conftest.$ac_ext <<_ACEOF
15081 /* confdefs.h.  */
15082 _ACEOF
15083 cat confdefs.h >>conftest.$ac_ext
15084 cat >>conftest.$ac_ext <<_ACEOF
15085 /* end confdefs.h.  */
15086 $ac_includes_default
15087 int
15088 main ()
15089 {
15090 #ifndef getline
15091   (void) getline;
15092 #endif
15093
15094   ;
15095   return 0;
15096 }
15097 _ACEOF
15098 rm -f conftest.$ac_objext
15099 if { (ac_try="$ac_compile"
15100 case "(($ac_try" in
15101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15102   *) ac_try_echo=$ac_try;;
15103 esac
15104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15105 $as_echo "$ac_try_echo") >&5
15106   (eval "$ac_compile") 2>conftest.er1
15107   ac_status=$?
15108   grep -v '^ *+' conftest.er1 >conftest.err
15109   rm -f conftest.er1
15110   cat conftest.err >&5
15111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15112   (exit $ac_status); } && {
15113          test -z "$ac_c_werror_flag" ||
15114          test ! -s conftest.err
15115        } && test -s conftest.$ac_objext; then
15116   ac_cv_have_decl_getline=yes
15117 else
15118   $as_echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15120
15121         ac_cv_have_decl_getline=no
15122 fi
15123
15124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15125 fi
15126 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getline" >&5
15127 $as_echo "$ac_cv_have_decl_getline" >&6; }
15128 if test "x$ac_cv_have_decl_getline" = x""yes; then
15129
15130 cat >>confdefs.h <<_ACEOF
15131 #define HAVE_DECL_GETLINE 1
15132 _ACEOF
15133
15134
15135 else
15136   cat >>confdefs.h <<_ACEOF
15137 #define HAVE_DECL_GETLINE 0
15138 _ACEOF
15139
15140
15141 fi
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164      if test $gl_cv_have_include_next = yes; then
15165        gl_cv_next_getopt_h='<'getopt.h'>'
15166      else
15167        { $as_echo "$as_me:$LINENO: checking absolute name of <getopt.h>" >&5
15168 $as_echo_n "checking absolute name of <getopt.h>... " >&6; }
15169 if test "${gl_cv_next_getopt_h+set}" = set; then
15170   $as_echo_n "(cached) " >&6
15171 else
15172
15173              if test $ac_cv_header_getopt_h = yes; then
15174
15175
15176                cat >conftest.$ac_ext <<_ACEOF
15177 /* confdefs.h.  */
15178 _ACEOF
15179 cat confdefs.h >>conftest.$ac_ext
15180 cat >>conftest.$ac_ext <<_ACEOF
15181 /* end confdefs.h.  */
15182 #include <getopt.h>
15183
15184 _ACEOF
15185                                                                                                                         case "$host_os" in
15186                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
15187                  *)    gl_absname_cpp="$ac_cpp" ;;
15188                esac
15189                                                             gl_cv_next_getopt_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15190                   sed -n '\#/getopt.h#{
15191                     s#.*"\(.*/getopt.h\)".*#\1#
15192                     s#^/[^/]#//&#
15193                     p
15194                     q
15195                   }'`'"'
15196           else
15197                gl_cv_next_getopt_h='<'getopt.h'>'
15198              fi
15199
15200
15201 fi
15202 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_getopt_h" >&5
15203 $as_echo "$gl_cv_next_getopt_h" >&6; }
15204      fi
15205      NEXT_GETOPT_H=$gl_cv_next_getopt_h
15206
15207      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15208        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15209        gl_next_as_first_directive='<'getopt.h'>'
15210      else
15211        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15212        gl_next_as_first_directive=$gl_cv_next_getopt_h
15213      fi
15214      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
15215
15216
15217
15218
15219   if test $ac_cv_header_getopt_h = yes; then
15220     HAVE_GETOPT_H=1
15221   else
15222     HAVE_GETOPT_H=0
15223   fi
15224
15225
15226   gl_replace_getopt=
15227
15228     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15229
15230 for ac_header in getopt.h
15231 do
15232 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15233 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15234   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15235 $as_echo_n "checking for $ac_header... " >&6; }
15236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15237   $as_echo_n "(cached) " >&6
15238 fi
15239 ac_res=`eval 'as_val=${'$as_ac_Header'}
15240                  $as_echo "$as_val"'`
15241                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15242 $as_echo "$ac_res" >&6; }
15243 else
15244   # Is the header compilable?
15245 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15246 $as_echo_n "checking $ac_header usability... " >&6; }
15247 cat >conftest.$ac_ext <<_ACEOF
15248 /* confdefs.h.  */
15249 _ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h.  */
15253 $ac_includes_default
15254 #include <$ac_header>
15255 _ACEOF
15256 rm -f conftest.$ac_objext
15257 if { (ac_try="$ac_compile"
15258 case "(($ac_try" in
15259   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15260   *) ac_try_echo=$ac_try;;
15261 esac
15262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15263 $as_echo "$ac_try_echo") >&5
15264   (eval "$ac_compile") 2>conftest.er1
15265   ac_status=$?
15266   grep -v '^ *+' conftest.er1 >conftest.err
15267   rm -f conftest.er1
15268   cat conftest.err >&5
15269   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270   (exit $ac_status); } && {
15271          test -z "$ac_c_werror_flag" ||
15272          test ! -s conftest.err
15273        } && test -s conftest.$ac_objext; then
15274   ac_header_compiler=yes
15275 else
15276   $as_echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15278
15279         ac_header_compiler=no
15280 fi
15281
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15284 $as_echo "$ac_header_compiler" >&6; }
15285
15286 # Is the header present?
15287 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15288 $as_echo_n "checking $ac_header presence... " >&6; }
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h.  */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h.  */
15295 #include <$ac_header>
15296 _ACEOF
15297 if { (ac_try="$ac_cpp conftest.$ac_ext"
15298 case "(($ac_try" in
15299   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300   *) ac_try_echo=$ac_try;;
15301 esac
15302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15303 $as_echo "$ac_try_echo") >&5
15304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15305   ac_status=$?
15306   grep -v '^ *+' conftest.er1 >conftest.err
15307   rm -f conftest.er1
15308   cat conftest.err >&5
15309   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15310   (exit $ac_status); } >/dev/null && {
15311          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15312          test ! -s conftest.err
15313        }; then
15314   ac_header_preproc=yes
15315 else
15316   $as_echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15318
15319   ac_header_preproc=no
15320 fi
15321
15322 rm -f conftest.err conftest.$ac_ext
15323 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15324 $as_echo "$ac_header_preproc" >&6; }
15325
15326 # So?  What about this header?
15327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15328   yes:no: )
15329     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15330 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15331     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15332 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15333     ac_header_preproc=yes
15334     ;;
15335   no:yes:* )
15336     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15337 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15338     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15339 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15340     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15341 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15342     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15343 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15344     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15345 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15346     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15347 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15348     ( cat <<\_ASBOX
15349 ## ------------------------------ ##
15350 ## Report this to bug-tar@gnu.org ##
15351 ## ------------------------------ ##
15352 _ASBOX
15353      ) | sed "s/^/$as_me: WARNING:     /" >&2
15354     ;;
15355 esac
15356 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15357 $as_echo_n "checking for $ac_header... " >&6; }
15358 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15359   $as_echo_n "(cached) " >&6
15360 else
15361   eval "$as_ac_Header=\$ac_header_preproc"
15362 fi
15363 ac_res=`eval 'as_val=${'$as_ac_Header'}
15364                  $as_echo "$as_val"'`
15365                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15366 $as_echo "$ac_res" >&6; }
15367
15368 fi
15369 as_val=`eval 'as_val=${'$as_ac_Header'}
15370                  $as_echo "$as_val"'`
15371    if test "x$as_val" = x""yes; then
15372   cat >>confdefs.h <<_ACEOF
15373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15374 _ACEOF
15375
15376 else
15377   gl_replace_getopt=yes
15378 fi
15379
15380 done
15381
15382   fi
15383
15384     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15385
15386 for ac_func in getopt_long_only
15387 do
15388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15389 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
15390 $as_echo_n "checking for $ac_func... " >&6; }
15391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15392   $as_echo_n "(cached) " >&6
15393 else
15394   cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h.  */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h.  */
15400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
15402 #define $ac_func innocuous_$ac_func
15403
15404 /* System header to define __stub macros and hopefully few prototypes,
15405     which can conflict with char $ac_func (); below.
15406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15407     <limits.h> exists even on freestanding compilers.  */
15408
15409 #ifdef __STDC__
15410 # include <limits.h>
15411 #else
15412 # include <assert.h>
15413 #endif
15414
15415 #undef $ac_func
15416
15417 /* Override any GCC internal prototype to avoid an error.
15418    Use char because int might match the return type of a GCC
15419    builtin and then its argument prototype would still apply.  */
15420 #ifdef __cplusplus
15421 extern "C"
15422 #endif
15423 char $ac_func ();
15424 /* The GNU C library defines this for functions which it implements
15425     to always fail with ENOSYS.  Some functions are actually named
15426     something starting with __ and the normal name is an alias.  */
15427 #if defined __stub_$ac_func || defined __stub___$ac_func
15428 choke me
15429 #endif
15430
15431 int
15432 main ()
15433 {
15434 return $ac_func ();
15435   ;
15436   return 0;
15437 }
15438 _ACEOF
15439 rm -f conftest.$ac_objext conftest$ac_exeext
15440 if { (ac_try="$ac_link"
15441 case "(($ac_try" in
15442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443   *) ac_try_echo=$ac_try;;
15444 esac
15445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15446 $as_echo "$ac_try_echo") >&5
15447   (eval "$ac_link") 2>conftest.er1
15448   ac_status=$?
15449   grep -v '^ *+' conftest.er1 >conftest.err
15450   rm -f conftest.er1
15451   cat conftest.err >&5
15452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453   (exit $ac_status); } && {
15454          test -z "$ac_c_werror_flag" ||
15455          test ! -s conftest.err
15456        } && test -s conftest$ac_exeext && {
15457          test "$cross_compiling" = yes ||
15458          $as_test_x conftest$ac_exeext
15459        }; then
15460   eval "$as_ac_var=yes"
15461 else
15462   $as_echo "$as_me: failed program was:" >&5
15463 sed 's/^/| /' conftest.$ac_ext >&5
15464
15465         eval "$as_ac_var=no"
15466 fi
15467
15468 rm -rf conftest.dSYM
15469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15470       conftest$ac_exeext conftest.$ac_ext
15471 fi
15472 ac_res=`eval 'as_val=${'$as_ac_var'}
15473                  $as_echo "$as_val"'`
15474                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15475 $as_echo "$ac_res" >&6; }
15476 as_val=`eval 'as_val=${'$as_ac_var'}
15477                  $as_echo "$as_val"'`
15478    if test "x$as_val" = x""yes; then
15479   cat >>confdefs.h <<_ACEOF
15480 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15481 _ACEOF
15482
15483 else
15484   gl_replace_getopt=yes
15485 fi
15486 done
15487
15488   fi
15489
15490                     if test -z "$gl_replace_getopt"; then
15491     { $as_echo "$as_me:$LINENO: checking whether getopt is POSIX compatible" >&5
15492 $as_echo_n "checking whether getopt is POSIX compatible... " >&6; }
15493 if test "${gl_cv_func_getopt_posix+set}" = set; then
15494   $as_echo_n "(cached) " >&6
15495 else
15496
15497                                                                         cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h.  */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h.  */
15503 #include <unistd.h>
15504 int
15505 main ()
15506 {
15507 int *p = &optreset; return optreset;
15508   ;
15509   return 0;
15510 }
15511 _ACEOF
15512 rm -f conftest.$ac_objext
15513 if { (ac_try="$ac_compile"
15514 case "(($ac_try" in
15515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516   *) ac_try_echo=$ac_try;;
15517 esac
15518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15519 $as_echo "$ac_try_echo") >&5
15520   (eval "$ac_compile") 2>conftest.er1
15521   ac_status=$?
15522   grep -v '^ *+' conftest.er1 >conftest.err
15523   rm -f conftest.er1
15524   cat conftest.err >&5
15525   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15526   (exit $ac_status); } && {
15527          test -z "$ac_c_werror_flag" ||
15528          test ! -s conftest.err
15529        } && test -s conftest.$ac_objext; then
15530   gl_optind_min=1
15531 else
15532   $as_echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15534
15535         cat >conftest.$ac_ext <<_ACEOF
15536 /* confdefs.h.  */
15537 _ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h.  */
15541 #include <getopt.h>
15542 int
15543 main ()
15544 {
15545 return !getopt_clip;
15546   ;
15547   return 0;
15548 }
15549 _ACEOF
15550 rm -f conftest.$ac_objext
15551 if { (ac_try="$ac_compile"
15552 case "(($ac_try" in
15553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554   *) ac_try_echo=$ac_try;;
15555 esac
15556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15557 $as_echo "$ac_try_echo") >&5
15558   (eval "$ac_compile") 2>conftest.er1
15559   ac_status=$?
15560   grep -v '^ *+' conftest.er1 >conftest.err
15561   rm -f conftest.er1
15562   cat conftest.err >&5
15563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564   (exit $ac_status); } && {
15565          test -z "$ac_c_werror_flag" ||
15566          test ! -s conftest.err
15567        } && test -s conftest.$ac_objext; then
15568   gl_optind_min=1
15569 else
15570   $as_echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573         gl_optind_min=0
15574 fi
15575
15576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15577 fi
15578
15579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15580
15581                 gl_save_CPPFLAGS=$CPPFLAGS
15582         CPPFLAGS="$CPPFLAGS -DOPTIND_MIN=$gl_optind_min"
15583         if test "$cross_compiling" = yes; then
15584   case "$host_os" in
15585              mingw*)         gl_cv_func_getopt_posix="guessing no";;
15586              darwin* | aix*) gl_cv_func_getopt_posix="guessing no";;
15587              *)              gl_cv_func_getopt_posix="guessing yes";;
15588            esac
15589
15590 else
15591   cat >conftest.$ac_ext <<_ACEOF
15592 /* confdefs.h.  */
15593 _ACEOF
15594 cat confdefs.h >>conftest.$ac_ext
15595 cat >>conftest.$ac_ext <<_ACEOF
15596 /* end confdefs.h.  */
15597
15598 #include <unistd.h>
15599 #include <stdlib.h>
15600 #include <string.h>
15601
15602 int
15603 main ()
15604 {
15605   {
15606     int argc = 0;
15607     char *argv[10];
15608     int c;
15609
15610     argv[argc++] = "program";
15611     argv[argc++] = "-a";
15612     argv[argc++] = "foo";
15613     argv[argc++] = "bar";
15614     argv[argc] = NULL;
15615     optind = OPTIND_MIN;
15616     opterr = 0;
15617
15618     c = getopt (argc, argv, "ab");
15619     if (!(c == 'a'))
15620       return 1;
15621     c = getopt (argc, argv, "ab");
15622     if (!(c == -1))
15623       return 2;
15624     if (!(optind == 2))
15625       return 3;
15626   }
15627   /* Some internal state exists at this point.  */
15628   {
15629     int argc = 0;
15630     char *argv[10];
15631     int c;
15632
15633     argv[argc++] = "program";
15634     argv[argc++] = "donald";
15635     argv[argc++] = "-p";
15636     argv[argc++] = "billy";
15637     argv[argc++] = "duck";
15638     argv[argc++] = "-a";
15639     argv[argc++] = "bar";
15640     argv[argc] = NULL;
15641     optind = OPTIND_MIN;
15642     opterr = 0;
15643
15644     c = getopt (argc, argv, "+abp:q:");
15645     if (!(c == -1))
15646       return 4;
15647     if (!(strcmp (argv[0], "program") == 0))
15648       return 5;
15649     if (!(strcmp (argv[1], "donald") == 0))
15650       return 6;
15651     if (!(strcmp (argv[2], "-p") == 0))
15652       return 7;
15653     if (!(strcmp (argv[3], "billy") == 0))
15654       return 8;
15655     if (!(strcmp (argv[4], "duck") == 0))
15656       return 9;
15657     if (!(strcmp (argv[5], "-a") == 0))
15658       return 10;
15659     if (!(strcmp (argv[6], "bar") == 0))
15660       return 11;
15661     if (!(optind == 1))
15662       return 12;
15663   }
15664   /* Detect MacOS 10.5, AIX 7.1 bug.  */
15665   {
15666     char *argv[3] = { "program", "-ab", NULL };
15667     optind = OPTIND_MIN;
15668     opterr = 0;
15669     if (getopt (2, argv, "ab:") != 'a')
15670       return 13;
15671     if (getopt (2, argv, "ab:") != '?')
15672       return 14;
15673     if (optopt != 'b')
15674       return 15;
15675     if (optind != 2)
15676       return 16;
15677   }
15678
15679   return 0;
15680 }
15681
15682 _ACEOF
15683 rm -f conftest$ac_exeext
15684 if { (ac_try="$ac_link"
15685 case "(($ac_try" in
15686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15687   *) ac_try_echo=$ac_try;;
15688 esac
15689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15690 $as_echo "$ac_try_echo") >&5
15691   (eval "$ac_link") 2>&5
15692   ac_status=$?
15693   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15695   { (case "(($ac_try" in
15696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697   *) ac_try_echo=$ac_try;;
15698 esac
15699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15700 $as_echo "$ac_try_echo") >&5
15701   (eval "$ac_try") 2>&5
15702   ac_status=$?
15703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15704   (exit $ac_status); }; }; then
15705   gl_cv_func_getopt_posix=yes
15706 else
15707   $as_echo "$as_me: program exited with status $ac_status" >&5
15708 $as_echo "$as_me: failed program was:" >&5
15709 sed 's/^/| /' conftest.$ac_ext >&5
15710
15711 ( exit $ac_status )
15712 gl_cv_func_getopt_posix=no
15713 fi
15714 rm -rf conftest.dSYM
15715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15716 fi
15717
15718
15719         CPPFLAGS=$gl_save_CPPFLAGS
15720
15721 fi
15722 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_posix" >&5
15723 $as_echo "$gl_cv_func_getopt_posix" >&6; }
15724     case "$gl_cv_func_getopt_posix" in
15725       *no) gl_replace_getopt=yes ;;
15726     esac
15727   fi
15728
15729   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
15730     { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
15731 $as_echo_n "checking for working GNU getopt function... " >&6; }
15732 if test "${gl_cv_func_getopt_gnu+set}" = set; then
15733   $as_echo_n "(cached) " >&6
15734 else
15735   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
15736        # optstring is necessary for programs like m4 that have POSIX-mandated
15737        # semantics for supporting options interspersed with files.
15738        # Also, since getopt_long is a GNU extension, we require optind=0.
15739        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
15740        # so take care to revert to the correct (non-)export state.
15741        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
15742        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
15743          xx) gl_had_POSIXLY_CORRECT=exported ;;
15744          x)  gl_had_POSIXLY_CORRECT=yes      ;;
15745          *)  gl_had_POSIXLY_CORRECT=         ;;
15746        esac
15747        POSIXLY_CORRECT=1
15748        export POSIXLY_CORRECT
15749        if test "$cross_compiling" = yes; then
15750            case $host_os:$ac_cv_have_decl_optreset in
15751            *-gnu*:* | mingw*:*) gl_cv_func_getopt_gnu=no;;
15752            *:yes)               gl_cv_func_getopt_gnu=no;;
15753            *)                   gl_cv_func_getopt_gnu=yes;;
15754          esac
15755
15756 else
15757   cat >conftest.$ac_ext <<_ACEOF
15758 /* confdefs.h.  */
15759 _ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h.  */
15763 #include <getopt.h>
15764                            #include <stddef.h>
15765                            #include <string.h>
15766
15767 int
15768 main ()
15769 {
15770
15771              int result = 0;
15772              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
15773                 and fails on MacOS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
15774                 OSF/1 5.1, Solaris 10.  */
15775              {
15776                char *myargv[3];
15777                myargv[0] = "conftest";
15778                myargv[1] = "-+";
15779                myargv[2] = 0;
15780                opterr = 0;
15781                if (getopt (2, myargv, "+a") != '?')
15782                  result |= 1;
15783              }
15784              /* This code succeeds on glibc 2.8, mingw,
15785                 and fails on MacOS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
15786                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
15787              {
15788                char *argv[] = { "program", "-p", "foo", "bar", NULL };
15789
15790                optind = 1;
15791                if (getopt (4, argv, "p::") != 'p')
15792                  result |= 2;
15793                else if (optarg != NULL)
15794                  result |= 4;
15795                else if (getopt (4, argv, "p::") != -1)
15796                  result |= 6;
15797                else if (optind != 2)
15798                  result |= 8;
15799              }
15800              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
15801              {
15802                char *argv[] = { "program", "foo", "-p", NULL };
15803                optind = 0;
15804                if (getopt (3, argv, "-p") != 1)
15805                  result |= 16;
15806                else if (getopt (3, argv, "-p") != 'p')
15807                  result |= 32;
15808              }
15809              /* This code fails on glibc 2.11.  */
15810              {
15811                char *argv[] = { "program", "-b", "-a", NULL };
15812                optind = opterr = 0;
15813                if (getopt (3, argv, "+:a:b") != 'b')
15814                  result |= 64;
15815                else if (getopt (3, argv, "+:a:b") != ':')
15816                  result |= 64;
15817              }
15818              return result;
15819
15820   ;
15821   return 0;
15822 }
15823 _ACEOF
15824 rm -f conftest$ac_exeext
15825 if { (ac_try="$ac_link"
15826 case "(($ac_try" in
15827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828   *) ac_try_echo=$ac_try;;
15829 esac
15830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15831 $as_echo "$ac_try_echo") >&5
15832   (eval "$ac_link") 2>&5
15833   ac_status=$?
15834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15835   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15836   { (case "(($ac_try" in
15837   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838   *) ac_try_echo=$ac_try;;
15839 esac
15840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15841 $as_echo "$ac_try_echo") >&5
15842   (eval "$ac_try") 2>&5
15843   ac_status=$?
15844   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845   (exit $ac_status); }; }; then
15846   gl_cv_func_getopt_gnu=yes
15847 else
15848   $as_echo "$as_me: program exited with status $ac_status" >&5
15849 $as_echo "$as_me: failed program was:" >&5
15850 sed 's/^/| /' conftest.$ac_ext >&5
15851
15852 ( exit $ac_status )
15853 gl_cv_func_getopt_gnu=no
15854 fi
15855 rm -rf conftest.dSYM
15856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15857 fi
15858
15859
15860        case $gl_had_POSIXLY_CORRECT in
15861          exported) ;;
15862          yes) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; }; POSIXLY_CORRECT=1 ;;
15863          *) $as_unset POSIXLY_CORRECT || test "${POSIXLY_CORRECT+set}" != set || { POSIXLY_CORRECT=; export POSIXLY_CORRECT; } ;;
15864        esac
15865
15866 fi
15867 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getopt_gnu" >&5
15868 $as_echo "$gl_cv_func_getopt_gnu" >&6; }
15869     if test "$gl_cv_func_getopt_gnu" = "no"; then
15870       gl_replace_getopt=yes
15871     fi
15872   fi
15873
15874
15875
15876
15877
15878
15879   if test -n "$gl_replace_getopt"; then
15880
15881
15882
15883   GETOPT_H=getopt.h
15884
15885 cat >>confdefs.h <<\_ACEOF
15886 #define __GETOPT_PREFIX rpl_
15887 _ACEOF
15888
15889
15890
15891     GNULIB_UNISTD_H_GETOPT=1
15892
15893
15894
15895
15896
15897
15898
15899
15900   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920 fi
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932   GNULIB_GETTIMEOFDAY=0;
15933     HAVE_GETTIMEOFDAY=1;
15934   HAVE_STRUCT_TIMEVAL=1;
15935   HAVE_SYS_TIME_H=1;
15936   REPLACE_GETTIMEOFDAY=0;
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961      if test $gl_cv_have_include_next = yes; then
15962        gl_cv_next_sys_time_h='<'sys/time.h'>'
15963      else
15964        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/time.h>" >&5
15965 $as_echo_n "checking absolute name of <sys/time.h>... " >&6; }
15966 if test "${gl_cv_next_sys_time_h+set}" = set; then
15967   $as_echo_n "(cached) " >&6
15968 else
15969
15970              if test $ac_cv_header_sys_time_h = yes; then
15971
15972
15973                cat >conftest.$ac_ext <<_ACEOF
15974 /* confdefs.h.  */
15975 _ACEOF
15976 cat confdefs.h >>conftest.$ac_ext
15977 cat >>conftest.$ac_ext <<_ACEOF
15978 /* end confdefs.h.  */
15979 #include <sys/time.h>
15980
15981 _ACEOF
15982                                                                                                                         case "$host_os" in
15983                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
15984                  *)    gl_absname_cpp="$ac_cpp" ;;
15985                esac
15986                                                             gl_cv_next_sys_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15987                   sed -n '\#/sys/time.h#{
15988                     s#.*"\(.*/sys/time.h\)".*#\1#
15989                     s#^/[^/]#//&#
15990                     p
15991                     q
15992                   }'`'"'
15993           else
15994                gl_cv_next_sys_time_h='<'sys/time.h'>'
15995              fi
15996
15997
15998 fi
15999 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_time_h" >&5
16000 $as_echo "$gl_cv_next_sys_time_h" >&6; }
16001      fi
16002      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
16003
16004      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16005        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16006        gl_next_as_first_directive='<'sys/time.h'>'
16007      else
16008        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16009        gl_next_as_first_directive=$gl_cv_next_sys_time_h
16010      fi
16011      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
16012
16013
16014
16015
16016
16017   if test $ac_cv_header_sys_time_h != yes; then
16018     HAVE_SYS_TIME_H=0
16019   fi
16020
16021   { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
16022 $as_echo_n "checking for struct timeval... " >&6; }
16023 if test "${gl_cv_sys_struct_timeval+set}" = set; then
16024   $as_echo_n "(cached) " >&6
16025 else
16026   cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h.  */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h.  */
16032 #if HAVE_SYS_TIME_H
16033              #include <sys/time.h>
16034             #endif
16035             #include <time.h>
16036
16037 int
16038 main ()
16039 {
16040 static struct timeval x; x.tv_sec = x.tv_usec;
16041   ;
16042   return 0;
16043 }
16044 _ACEOF
16045 rm -f conftest.$ac_objext
16046 if { (ac_try="$ac_compile"
16047 case "(($ac_try" in
16048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16049   *) ac_try_echo=$ac_try;;
16050 esac
16051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16052 $as_echo "$ac_try_echo") >&5
16053   (eval "$ac_compile") 2>conftest.er1
16054   ac_status=$?
16055   grep -v '^ *+' conftest.er1 >conftest.err
16056   rm -f conftest.er1
16057   cat conftest.err >&5
16058   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059   (exit $ac_status); } && {
16060          test -z "$ac_c_werror_flag" ||
16061          test ! -s conftest.err
16062        } && test -s conftest.$ac_objext; then
16063   gl_cv_sys_struct_timeval=yes
16064 else
16065   $as_echo "$as_me: failed program was:" >&5
16066 sed 's/^/| /' conftest.$ac_ext >&5
16067
16068         gl_cv_sys_struct_timeval=no
16069 fi
16070
16071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16072 fi
16073 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timeval" >&5
16074 $as_echo "$gl_cv_sys_struct_timeval" >&6; }
16075   if test $gl_cv_sys_struct_timeval != yes; then
16076     HAVE_STRUCT_TIMEVAL=0
16077   fi
16078
16079
16080
16081   for gl_func in gettimeofday; do
16082     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
16083     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
16084 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
16085 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
16086   $as_echo_n "(cached) " >&6
16087 else
16088   cat >conftest.$ac_ext <<_ACEOF
16089 /* confdefs.h.  */
16090 _ACEOF
16091 cat confdefs.h >>conftest.$ac_ext
16092 cat >>conftest.$ac_ext <<_ACEOF
16093 /* end confdefs.h.  */
16094
16095 #if HAVE_SYS_TIME_H
16096 # include <sys/time.h>
16097 #endif
16098 #include <time.h>
16099
16100 int
16101 main ()
16102 {
16103 #undef $gl_func
16104   (void) $gl_func;
16105   ;
16106   return 0;
16107 }
16108 _ACEOF
16109 rm -f conftest.$ac_objext
16110 if { (ac_try="$ac_compile"
16111 case "(($ac_try" in
16112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113   *) ac_try_echo=$ac_try;;
16114 esac
16115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16116 $as_echo "$ac_try_echo") >&5
16117   (eval "$ac_compile") 2>conftest.er1
16118   ac_status=$?
16119   grep -v '^ *+' conftest.er1 >conftest.err
16120   rm -f conftest.er1
16121   cat conftest.err >&5
16122   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16123   (exit $ac_status); } && {
16124          test -z "$ac_c_werror_flag" ||
16125          test ! -s conftest.err
16126        } && test -s conftest.$ac_objext; then
16127   eval "$as_gl_Symbol=yes"
16128 else
16129   $as_echo "$as_me: failed program was:" >&5
16130 sed 's/^/| /' conftest.$ac_ext >&5
16131
16132         eval "$as_gl_Symbol=no"
16133 fi
16134
16135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16136 fi
16137 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
16138                  $as_echo "$as_val"'`
16139                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16140 $as_echo "$ac_res" >&6; }
16141      as_val=`eval 'as_val=${'$as_gl_Symbol'}
16142                  $as_echo "$as_val"'`
16143    if test "x$as_val" = x""yes; then
16144   cat >>confdefs.h <<_ACEOF
16145 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
16146 _ACEOF
16147
16148                      eval ac_cv_have_decl_$gl_func=yes
16149 fi
16150
16151       done
16152
16153
16154
16155
16156
16157 { $as_echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5
16158 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
16159 if test "${ac_cv_header_stdbool_h+set}" = set; then
16160   $as_echo_n "(cached) " >&6
16161 else
16162   cat >conftest.$ac_ext <<_ACEOF
16163 /* confdefs.h.  */
16164 _ACEOF
16165 cat confdefs.h >>conftest.$ac_ext
16166 cat >>conftest.$ac_ext <<_ACEOF
16167 /* end confdefs.h.  */
16168
16169              #include <stdbool.h>
16170              #ifndef bool
16171               "error: bool is not defined"
16172              #endif
16173              #ifndef false
16174               "error: false is not defined"
16175              #endif
16176              #if false
16177               "error: false is not 0"
16178              #endif
16179              #ifndef true
16180               "error: true is not defined"
16181              #endif
16182              #if true != 1
16183               "error: true is not 1"
16184              #endif
16185              #ifndef __bool_true_false_are_defined
16186               "error: __bool_true_false_are_defined is not defined"
16187              #endif
16188
16189              struct s { _Bool s: 1; _Bool t; } s;
16190
16191              char a[true == 1 ? 1 : -1];
16192              char b[false == 0 ? 1 : -1];
16193              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
16194              char d[(bool) 0.5 == true ? 1 : -1];
16195              /* See body of main program for 'e'.  */
16196              char f[(_Bool) 0.0 == false ? 1 : -1];
16197              char g[true];
16198              char h[sizeof (_Bool)];
16199              char i[sizeof s.t];
16200              enum { j = false, k = true, l = false * true, m = true * 256 };
16201              /* The following fails for
16202                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
16203              _Bool n[m];
16204              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
16205              char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
16206              /* Catch a bug in an HP-UX C compiler.  See
16207                 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
16208                 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
16209               */
16210              _Bool q = true;
16211              _Bool *pq = &q;
16212
16213 int
16214 main ()
16215 {
16216
16217              bool e = &s;
16218              *pq |= q;
16219              *pq |= ! q;
16220              /* Refer to every declared value, to avoid compiler optimizations.  */
16221              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
16222                      + !m + !n + !o + !p + !q + !pq);
16223
16224   ;
16225   return 0;
16226 }
16227 _ACEOF
16228 rm -f conftest.$ac_objext
16229 if { (ac_try="$ac_compile"
16230 case "(($ac_try" in
16231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232   *) ac_try_echo=$ac_try;;
16233 esac
16234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16235 $as_echo "$ac_try_echo") >&5
16236   (eval "$ac_compile") 2>conftest.er1
16237   ac_status=$?
16238   grep -v '^ *+' conftest.er1 >conftest.err
16239   rm -f conftest.er1
16240   cat conftest.err >&5
16241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16242   (exit $ac_status); } && {
16243          test -z "$ac_c_werror_flag" ||
16244          test ! -s conftest.err
16245        } && test -s conftest.$ac_objext; then
16246   ac_cv_header_stdbool_h=yes
16247 else
16248   $as_echo "$as_me: failed program was:" >&5
16249 sed 's/^/| /' conftest.$ac_ext >&5
16250
16251         ac_cv_header_stdbool_h=no
16252 fi
16253
16254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16255 fi
16256 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5
16257 $as_echo "$ac_cv_header_stdbool_h" >&6; }
16258    { $as_echo "$as_me:$LINENO: checking for _Bool" >&5
16259 $as_echo_n "checking for _Bool... " >&6; }
16260 if test "${ac_cv_type__Bool+set}" = set; then
16261   $as_echo_n "(cached) " >&6
16262 else
16263   ac_cv_type__Bool=no
16264 cat >conftest.$ac_ext <<_ACEOF
16265 /* confdefs.h.  */
16266 _ACEOF
16267 cat confdefs.h >>conftest.$ac_ext
16268 cat >>conftest.$ac_ext <<_ACEOF
16269 /* end confdefs.h.  */
16270 $ac_includes_default
16271 int
16272 main ()
16273 {
16274 if (sizeof (_Bool))
16275        return 0;
16276   ;
16277   return 0;
16278 }
16279 _ACEOF
16280 rm -f conftest.$ac_objext
16281 if { (ac_try="$ac_compile"
16282 case "(($ac_try" in
16283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16284   *) ac_try_echo=$ac_try;;
16285 esac
16286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16287 $as_echo "$ac_try_echo") >&5
16288   (eval "$ac_compile") 2>conftest.er1
16289   ac_status=$?
16290   grep -v '^ *+' conftest.er1 >conftest.err
16291   rm -f conftest.er1
16292   cat conftest.err >&5
16293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16294   (exit $ac_status); } && {
16295          test -z "$ac_c_werror_flag" ||
16296          test ! -s conftest.err
16297        } && test -s conftest.$ac_objext; then
16298   cat >conftest.$ac_ext <<_ACEOF
16299 /* confdefs.h.  */
16300 _ACEOF
16301 cat confdefs.h >>conftest.$ac_ext
16302 cat >>conftest.$ac_ext <<_ACEOF
16303 /* end confdefs.h.  */
16304 $ac_includes_default
16305 int
16306 main ()
16307 {
16308 if (sizeof ((_Bool)))
16309           return 0;
16310   ;
16311   return 0;
16312 }
16313 _ACEOF
16314 rm -f conftest.$ac_objext
16315 if { (ac_try="$ac_compile"
16316 case "(($ac_try" in
16317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318   *) ac_try_echo=$ac_try;;
16319 esac
16320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16321 $as_echo "$ac_try_echo") >&5
16322   (eval "$ac_compile") 2>conftest.er1
16323   ac_status=$?
16324   grep -v '^ *+' conftest.er1 >conftest.err
16325   rm -f conftest.er1
16326   cat conftest.err >&5
16327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16328   (exit $ac_status); } && {
16329          test -z "$ac_c_werror_flag" ||
16330          test ! -s conftest.err
16331        } && test -s conftest.$ac_objext; then
16332   :
16333 else
16334   $as_echo "$as_me: failed program was:" >&5
16335 sed 's/^/| /' conftest.$ac_ext >&5
16336
16337         ac_cv_type__Bool=yes
16338 fi
16339
16340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16341 else
16342   $as_echo "$as_me: failed program was:" >&5
16343 sed 's/^/| /' conftest.$ac_ext >&5
16344
16345
16346 fi
16347
16348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16349 fi
16350 { $as_echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5
16351 $as_echo "$ac_cv_type__Bool" >&6; }
16352 if test "x$ac_cv_type__Bool" = x""yes; then
16353
16354 cat >>confdefs.h <<_ACEOF
16355 #define HAVE__BOOL 1
16356 _ACEOF
16357
16358
16359 fi
16360
16361
16362
16363
16364
16365   # Define two additional variables used in the Makefile substitution.
16366
16367   if test "$ac_cv_header_stdbool_h" = yes; then
16368     STDBOOL_H=''
16369   else
16370     STDBOOL_H='stdbool.h'
16371   fi
16372
16373
16374   if test "$ac_cv_type__Bool" = yes; then
16375     HAVE__BOOL=1
16376   else
16377     HAVE__BOOL=0
16378   fi
16379
16380
16381
16382   { $as_echo "$as_me:$LINENO: checking for unsigned long long int" >&5
16383 $as_echo_n "checking for unsigned long long int... " >&6; }
16384 if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then
16385   $as_echo_n "(cached) " >&6
16386 else
16387   ac_cv_type_unsigned_long_long_int=yes
16388      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16389        cat >conftest.$ac_ext <<_ACEOF
16390
16391   /* confdefs.h.  */
16392 _ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h.  */
16396 /* For now, do not test the preprocessor; as of 2007 there are too many
16397          implementations with broken preprocessors.  Perhaps this can
16398          be revisited in 2012.  In the meantime, code should not expect
16399          #if to work with literals wider than 32 bits.  */
16400       /* Test literals.  */
16401       long long int ll = 9223372036854775807ll;
16402       long long int nll = -9223372036854775807LL;
16403       unsigned long long int ull = 18446744073709551615ULL;
16404       /* Test constant expressions.   */
16405       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
16406                      ? 1 : -1)];
16407       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
16408                      ? 1 : -1)];
16409       int i = 63;
16410 int
16411 main ()
16412 {
16413 /* Test availability of runtime routines for shift and division.  */
16414       long long int llmax = 9223372036854775807ll;
16415       unsigned long long int ullmax = 18446744073709551615ull;
16416       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
16417               | (llmax / ll) | (llmax % ll)
16418               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
16419               | (ullmax / ull) | (ullmax % ull));
16420   ;
16421   return 0;
16422 }
16423
16424 _ACEOF
16425 rm -f conftest.$ac_objext conftest$ac_exeext
16426 if { (ac_try="$ac_link"
16427 case "(($ac_try" in
16428   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429   *) ac_try_echo=$ac_try;;
16430 esac
16431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16432 $as_echo "$ac_try_echo") >&5
16433   (eval "$ac_link") 2>conftest.er1
16434   ac_status=$?
16435   grep -v '^ *+' conftest.er1 >conftest.err
16436   rm -f conftest.er1
16437   cat conftest.err >&5
16438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439   (exit $ac_status); } && {
16440          test -z "$ac_c_werror_flag" ||
16441          test ! -s conftest.err
16442        } && test -s conftest$ac_exeext && {
16443          test "$cross_compiling" = yes ||
16444          $as_test_x conftest$ac_exeext
16445        }; then
16446   :
16447 else
16448   $as_echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451         ac_cv_type_unsigned_long_long_int=no
16452 fi
16453
16454 rm -rf conftest.dSYM
16455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16456       conftest$ac_exeext conftest.$ac_ext
16457      fi
16458 fi
16459 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long_long_int" >&5
16460 $as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
16461   if test $ac_cv_type_unsigned_long_long_int = yes; then
16462
16463 cat >>confdefs.h <<\_ACEOF
16464 #define HAVE_UNSIGNED_LONG_LONG_INT 1
16465 _ACEOF
16466
16467   fi
16468
16469
16470
16471   { $as_echo "$as_me:$LINENO: checking for long long int" >&5
16472 $as_echo_n "checking for long long int... " >&6; }
16473 if test "${ac_cv_type_long_long_int+set}" = set; then
16474   $as_echo_n "(cached) " >&6
16475 else
16476   ac_cv_type_long_long_int=yes
16477       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
16478         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
16479         if test $ac_cv_type_long_long_int = yes; then
16480                                         if test "$cross_compiling" = yes; then
16481   :
16482 else
16483   cat >conftest.$ac_ext <<_ACEOF
16484 /* confdefs.h.  */
16485 _ACEOF
16486 cat confdefs.h >>conftest.$ac_ext
16487 cat >>conftest.$ac_ext <<_ACEOF
16488 /* end confdefs.h.  */
16489 #include <limits.h>
16490                  #ifndef LLONG_MAX
16491                  # define HALF \
16492                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
16493                  # define LLONG_MAX (HALF - 1 + HALF)
16494                  #endif
16495 int
16496 main ()
16497 {
16498 long long int n = 1;
16499                  int i;
16500                  for (i = 0; ; i++)
16501                    {
16502                      long long int m = n << i;
16503                      if (m >> i != n)
16504                        return 1;
16505                      if (LLONG_MAX / 2 < m)
16506                        break;
16507                    }
16508                  return 0;
16509   ;
16510   return 0;
16511 }
16512 _ACEOF
16513 rm -f conftest$ac_exeext
16514 if { (ac_try="$ac_link"
16515 case "(($ac_try" in
16516   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16517   *) ac_try_echo=$ac_try;;
16518 esac
16519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16520 $as_echo "$ac_try_echo") >&5
16521   (eval "$ac_link") 2>&5
16522   ac_status=$?
16523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16524   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16525   { (case "(($ac_try" in
16526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16527   *) ac_try_echo=$ac_try;;
16528 esac
16529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16530 $as_echo "$ac_try_echo") >&5
16531   (eval "$ac_try") 2>&5
16532   ac_status=$?
16533   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534   (exit $ac_status); }; }; then
16535   :
16536 else
16537   $as_echo "$as_me: program exited with status $ac_status" >&5
16538 $as_echo "$as_me: failed program was:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16540
16541 ( exit $ac_status )
16542 ac_cv_type_long_long_int=no
16543 fi
16544 rm -rf conftest.dSYM
16545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16546 fi
16547
16548
16549         fi
16550       fi
16551 fi
16552 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_long_long_int" >&5
16553 $as_echo "$ac_cv_type_long_long_int" >&6; }
16554   if test $ac_cv_type_long_long_int = yes; then
16555
16556 cat >>confdefs.h <<\_ACEOF
16557 #define HAVE_LONG_LONG_INT 1
16558 _ACEOF
16559
16560   fi
16561
16562
16563
16564
16565
16566
16567     gl_cv_c_multiarch=no
16568   cat >conftest.$ac_ext <<_ACEOF
16569 /* confdefs.h.  */
16570 _ACEOF
16571 cat confdefs.h >>conftest.$ac_ext
16572 cat >>conftest.$ac_ext <<_ACEOF
16573 /* end confdefs.h.  */
16574 #ifndef __APPLE_CC__
16575          not a universal capable compiler
16576         #endif
16577         typedef int dummy;
16578
16579 _ACEOF
16580 rm -f conftest.$ac_objext
16581 if { (ac_try="$ac_compile"
16582 case "(($ac_try" in
16583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584   *) ac_try_echo=$ac_try;;
16585 esac
16586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16587 $as_echo "$ac_try_echo") >&5
16588   (eval "$ac_compile") 2>conftest.er1
16589   ac_status=$?
16590   grep -v '^ *+' conftest.er1 >conftest.err
16591   rm -f conftest.er1
16592   cat conftest.err >&5
16593   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594   (exit $ac_status); } && {
16595          test -z "$ac_c_werror_flag" ||
16596          test ! -s conftest.err
16597        } && test -s conftest.$ac_objext; then
16598
16599                arch=
16600      prev=
16601      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
16602        if test -n "$prev"; then
16603          case $word in
16604            i?86 | x86_64 | ppc | ppc64)
16605              if test -z "$arch" || test "$arch" = "$word"; then
16606                arch="$word"
16607              else
16608                gl_cv_c_multiarch=yes
16609              fi
16610              ;;
16611          esac
16612          prev=
16613        else
16614          if test "x$word" = "x-arch"; then
16615            prev=arch
16616          fi
16617        fi
16618      done
16619
16620 else
16621   $as_echo "$as_me: failed program was:" >&5
16622 sed 's/^/| /' conftest.$ac_ext >&5
16623
16624
16625 fi
16626
16627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16628   if test $gl_cv_c_multiarch = yes; then
16629     APPLE_UNIVERSAL_BUILD=1
16630   else
16631     APPLE_UNIVERSAL_BUILD=0
16632   fi
16633
16634
16635
16636
16637
16638
16639   if test $ac_cv_type_long_long_int = yes; then
16640     HAVE_LONG_LONG_INT=1
16641   else
16642     HAVE_LONG_LONG_INT=0
16643   fi
16644
16645
16646   if test $ac_cv_type_unsigned_long_long_int = yes; then
16647     HAVE_UNSIGNED_LONG_LONG_INT=1
16648   else
16649     HAVE_UNSIGNED_LONG_LONG_INT=0
16650   fi
16651
16652
16653
16654
16655
16656
16657
16658
16659   if test $ac_cv_header_wchar_h = yes; then
16660     HAVE_WCHAR_H=1
16661   else
16662     HAVE_WCHAR_H=0
16663   fi
16664
16665
16666       if test $ac_cv_header_inttypes_h = yes; then
16667     HAVE_INTTYPES_H=1
16668   else
16669     HAVE_INTTYPES_H=0
16670   fi
16671
16672
16673       if test $ac_cv_header_sys_types_h = yes; then
16674     HAVE_SYS_TYPES_H=1
16675   else
16676     HAVE_SYS_TYPES_H=0
16677   fi
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694      if test $gl_cv_have_include_next = yes; then
16695        gl_cv_next_stdint_h='<'stdint.h'>'
16696      else
16697        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
16698 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
16699 if test "${gl_cv_next_stdint_h+set}" = set; then
16700   $as_echo_n "(cached) " >&6
16701 else
16702
16703              if test $ac_cv_header_stdint_h = yes; then
16704
16705
16706                cat >conftest.$ac_ext <<_ACEOF
16707 /* confdefs.h.  */
16708 _ACEOF
16709 cat confdefs.h >>conftest.$ac_ext
16710 cat >>conftest.$ac_ext <<_ACEOF
16711 /* end confdefs.h.  */
16712 #include <stdint.h>
16713
16714 _ACEOF
16715                                                                                                                         case "$host_os" in
16716                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
16717                  *)    gl_absname_cpp="$ac_cpp" ;;
16718                esac
16719                                                             gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16720                   sed -n '\#/stdint.h#{
16721                     s#.*"\(.*/stdint.h\)".*#\1#
16722                     s#^/[^/]#//&#
16723                     p
16724                     q
16725                   }'`'"'
16726           else
16727                gl_cv_next_stdint_h='<'stdint.h'>'
16728              fi
16729
16730
16731 fi
16732 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
16733 $as_echo "$gl_cv_next_stdint_h" >&6; }
16734      fi
16735      NEXT_STDINT_H=$gl_cv_next_stdint_h
16736
16737      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16738        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16739        gl_next_as_first_directive='<'stdint.h'>'
16740      else
16741        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16742        gl_next_as_first_directive=$gl_cv_next_stdint_h
16743      fi
16744      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
16745
16746
16747
16748
16749   if test $ac_cv_header_stdint_h = yes; then
16750     HAVE_STDINT_H=1
16751   else
16752     HAVE_STDINT_H=0
16753   fi
16754
16755
16756     if test $ac_cv_header_stdint_h = yes; then
16757     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
16758 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
16759 if test "${gl_cv_header_working_stdint_h+set}" = set; then
16760   $as_echo_n "(cached) " >&6
16761 else
16762   gl_cv_header_working_stdint_h=no
16763        cat >conftest.$ac_ext <<_ACEOF
16764
16765          /* confdefs.h.  */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h.  */
16770
16771 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16772 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16773 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16774 #include <stdint.h>
16775 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
16776 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
16777 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
16778 #endif
16779
16780
16781   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16782      included before <wchar.h>.  */
16783   #include <stddef.h>
16784   #include <signal.h>
16785   #if HAVE_WCHAR_H
16786   # include <stdio.h>
16787   # include <time.h>
16788   # include <wchar.h>
16789   #endif
16790
16791
16792 #ifdef INT8_MAX
16793 int8_t a1 = INT8_MAX;
16794 int8_t a1min = INT8_MIN;
16795 #endif
16796 #ifdef INT16_MAX
16797 int16_t a2 = INT16_MAX;
16798 int16_t a2min = INT16_MIN;
16799 #endif
16800 #ifdef INT32_MAX
16801 int32_t a3 = INT32_MAX;
16802 int32_t a3min = INT32_MIN;
16803 #endif
16804 #ifdef INT64_MAX
16805 int64_t a4 = INT64_MAX;
16806 int64_t a4min = INT64_MIN;
16807 #endif
16808 #ifdef UINT8_MAX
16809 uint8_t b1 = UINT8_MAX;
16810 #else
16811 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
16812 #endif
16813 #ifdef UINT16_MAX
16814 uint16_t b2 = UINT16_MAX;
16815 #endif
16816 #ifdef UINT32_MAX
16817 uint32_t b3 = UINT32_MAX;
16818 #endif
16819 #ifdef UINT64_MAX
16820 uint64_t b4 = UINT64_MAX;
16821 #endif
16822 int_least8_t c1 = INT8_C (0x7f);
16823 int_least8_t c1max = INT_LEAST8_MAX;
16824 int_least8_t c1min = INT_LEAST8_MIN;
16825 int_least16_t c2 = INT16_C (0x7fff);
16826 int_least16_t c2max = INT_LEAST16_MAX;
16827 int_least16_t c2min = INT_LEAST16_MIN;
16828 int_least32_t c3 = INT32_C (0x7fffffff);
16829 int_least32_t c3max = INT_LEAST32_MAX;
16830 int_least32_t c3min = INT_LEAST32_MIN;
16831 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
16832 int_least64_t c4max = INT_LEAST64_MAX;
16833 int_least64_t c4min = INT_LEAST64_MIN;
16834 uint_least8_t d1 = UINT8_C (0xff);
16835 uint_least8_t d1max = UINT_LEAST8_MAX;
16836 uint_least16_t d2 = UINT16_C (0xffff);
16837 uint_least16_t d2max = UINT_LEAST16_MAX;
16838 uint_least32_t d3 = UINT32_C (0xffffffff);
16839 uint_least32_t d3max = UINT_LEAST32_MAX;
16840 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
16841 uint_least64_t d4max = UINT_LEAST64_MAX;
16842 int_fast8_t e1 = INT_FAST8_MAX;
16843 int_fast8_t e1min = INT_FAST8_MIN;
16844 int_fast16_t e2 = INT_FAST16_MAX;
16845 int_fast16_t e2min = INT_FAST16_MIN;
16846 int_fast32_t e3 = INT_FAST32_MAX;
16847 int_fast32_t e3min = INT_FAST32_MIN;
16848 int_fast64_t e4 = INT_FAST64_MAX;
16849 int_fast64_t e4min = INT_FAST64_MIN;
16850 uint_fast8_t f1 = UINT_FAST8_MAX;
16851 uint_fast16_t f2 = UINT_FAST16_MAX;
16852 uint_fast32_t f3 = UINT_FAST32_MAX;
16853 uint_fast64_t f4 = UINT_FAST64_MAX;
16854 #ifdef INTPTR_MAX
16855 intptr_t g = INTPTR_MAX;
16856 intptr_t gmin = INTPTR_MIN;
16857 #endif
16858 #ifdef UINTPTR_MAX
16859 uintptr_t h = UINTPTR_MAX;
16860 #endif
16861 intmax_t i = INTMAX_MAX;
16862 uintmax_t j = UINTMAX_MAX;
16863
16864 #include <limits.h> /* for CHAR_BIT */
16865 #define TYPE_MINIMUM(t) \
16866   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
16867 #define TYPE_MAXIMUM(t) \
16868   ((t) ((t) 0 < (t) -1 \
16869         ? (t) -1 \
16870         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
16871 struct s {
16872   int check_PTRDIFF:
16873       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
16874       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
16875       ? 1 : -1;
16876   /* Detect bug in FreeBSD 6.0 / ia64.  */
16877   int check_SIG_ATOMIC:
16878       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
16879       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
16880       ? 1 : -1;
16881   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
16882   int check_WCHAR:
16883       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
16884       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
16885       ? 1 : -1;
16886   /* Detect bug in mingw.  */
16887   int check_WINT:
16888       WINT_MIN == TYPE_MINIMUM (wint_t)
16889       && WINT_MAX == TYPE_MAXIMUM (wint_t)
16890       ? 1 : -1;
16891
16892   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
16893   int check_UINT8_C:
16894         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
16895   int check_UINT16_C:
16896         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
16897
16898   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
16899 #ifdef UINT8_MAX
16900   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
16901 #endif
16902 #ifdef UINT16_MAX
16903   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
16904 #endif
16905 #ifdef UINT32_MAX
16906   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
16907 #endif
16908 #ifdef UINT64_MAX
16909   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
16910 #endif
16911   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
16912   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
16913   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
16914   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
16915   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
16916   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
16917   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
16918   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
16919   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
16920   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
16921   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
16922 };
16923
16924 int
16925 main ()
16926 {
16927
16928   ;
16929   return 0;
16930 }
16931 _ACEOF
16932 rm -f conftest.$ac_objext
16933 if { (ac_try="$ac_compile"
16934 case "(($ac_try" in
16935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936   *) ac_try_echo=$ac_try;;
16937 esac
16938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16939 $as_echo "$ac_try_echo") >&5
16940   (eval "$ac_compile") 2>conftest.er1
16941   ac_status=$?
16942   grep -v '^ *+' conftest.er1 >conftest.err
16943   rm -f conftest.er1
16944   cat conftest.err >&5
16945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16946   (exit $ac_status); } && {
16947          test -z "$ac_c_werror_flag" ||
16948          test ! -s conftest.err
16949        } && test -s conftest.$ac_objext; then
16950                                                     if test "$cross_compiling" = yes; then
16951                  gl_cv_header_working_stdint_h=yes
16952
16953 else
16954   cat >conftest.$ac_ext <<_ACEOF
16955
16956             /* confdefs.h.  */
16957 _ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h.  */
16961
16962 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
16963 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
16964 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
16965 #include <stdint.h>
16966
16967
16968   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
16969      included before <wchar.h>.  */
16970   #include <stddef.h>
16971   #include <signal.h>
16972   #if HAVE_WCHAR_H
16973   # include <stdio.h>
16974   # include <time.h>
16975   # include <wchar.h>
16976   #endif
16977
16978
16979 #include <stdio.h>
16980 #include <string.h>
16981 #define MVAL(macro) MVAL1(macro)
16982 #define MVAL1(expression) #expression
16983 static const char *macro_values[] =
16984   {
16985 #ifdef INT8_MAX
16986     MVAL (INT8_MAX),
16987 #endif
16988 #ifdef INT16_MAX
16989     MVAL (INT16_MAX),
16990 #endif
16991 #ifdef INT32_MAX
16992     MVAL (INT32_MAX),
16993 #endif
16994 #ifdef INT64_MAX
16995     MVAL (INT64_MAX),
16996 #endif
16997 #ifdef UINT8_MAX
16998     MVAL (UINT8_MAX),
16999 #endif
17000 #ifdef UINT16_MAX
17001     MVAL (UINT16_MAX),
17002 #endif
17003 #ifdef UINT32_MAX
17004     MVAL (UINT32_MAX),
17005 #endif
17006 #ifdef UINT64_MAX
17007     MVAL (UINT64_MAX),
17008 #endif
17009     NULL
17010   };
17011
17012 int
17013 main ()
17014 {
17015
17016   const char **mv;
17017   for (mv = macro_values; *mv != NULL; mv++)
17018     {
17019       const char *value = *mv;
17020       /* Test whether it looks like a cast expression.  */
17021       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17022           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17023           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17024           || strncmp (value, "((int)"/*)*/, 6) == 0
17025           || strncmp (value, "((signed short)"/*)*/, 15) == 0
17026           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17027         return mv - macro_values + 1;
17028     }
17029   return 0;
17030
17031   ;
17032   return 0;
17033 }
17034 _ACEOF
17035 rm -f conftest$ac_exeext
17036 if { (ac_try="$ac_link"
17037 case "(($ac_try" in
17038   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039   *) ac_try_echo=$ac_try;;
17040 esac
17041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17042 $as_echo "$ac_try_echo") >&5
17043   (eval "$ac_link") 2>&5
17044   ac_status=$?
17045   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17046   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17047   { (case "(($ac_try" in
17048   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049   *) ac_try_echo=$ac_try;;
17050 esac
17051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17052 $as_echo "$ac_try_echo") >&5
17053   (eval "$ac_try") 2>&5
17054   ac_status=$?
17055   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056   (exit $ac_status); }; }; then
17057   gl_cv_header_working_stdint_h=yes
17058 else
17059   $as_echo "$as_me: program exited with status $ac_status" >&5
17060 $as_echo "$as_me: failed program was:" >&5
17061 sed 's/^/| /' conftest.$ac_ext >&5
17062
17063 fi
17064 rm -rf conftest.dSYM
17065 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17066 fi
17067
17068
17069
17070 else
17071   $as_echo "$as_me: failed program was:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17073
17074
17075 fi
17076
17077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17078
17079 fi
17080 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
17081 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
17082   fi
17083   if test "$gl_cv_header_working_stdint_h" = yes; then
17084     STDINT_H=
17085   else
17086
17087
17088 for ac_header in sys/inttypes.h sys/bitypes.h
17089 do
17090 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17091 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17092   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17093 $as_echo_n "checking for $ac_header... " >&6; }
17094 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17095   $as_echo_n "(cached) " >&6
17096 fi
17097 ac_res=`eval 'as_val=${'$as_ac_Header'}
17098                  $as_echo "$as_val"'`
17099                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17100 $as_echo "$ac_res" >&6; }
17101 else
17102   # Is the header compilable?
17103 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17104 $as_echo_n "checking $ac_header usability... " >&6; }
17105 cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h.  */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h.  */
17111 $ac_includes_default
17112 #include <$ac_header>
17113 _ACEOF
17114 rm -f conftest.$ac_objext
17115 if { (ac_try="$ac_compile"
17116 case "(($ac_try" in
17117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17118   *) ac_try_echo=$ac_try;;
17119 esac
17120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17121 $as_echo "$ac_try_echo") >&5
17122   (eval "$ac_compile") 2>conftest.er1
17123   ac_status=$?
17124   grep -v '^ *+' conftest.er1 >conftest.err
17125   rm -f conftest.er1
17126   cat conftest.err >&5
17127   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128   (exit $ac_status); } && {
17129          test -z "$ac_c_werror_flag" ||
17130          test ! -s conftest.err
17131        } && test -s conftest.$ac_objext; then
17132   ac_header_compiler=yes
17133 else
17134   $as_echo "$as_me: failed program was:" >&5
17135 sed 's/^/| /' conftest.$ac_ext >&5
17136
17137         ac_header_compiler=no
17138 fi
17139
17140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17142 $as_echo "$ac_header_compiler" >&6; }
17143
17144 # Is the header present?
17145 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17146 $as_echo_n "checking $ac_header presence... " >&6; }
17147 cat >conftest.$ac_ext <<_ACEOF
17148 /* confdefs.h.  */
17149 _ACEOF
17150 cat confdefs.h >>conftest.$ac_ext
17151 cat >>conftest.$ac_ext <<_ACEOF
17152 /* end confdefs.h.  */
17153 #include <$ac_header>
17154 _ACEOF
17155 if { (ac_try="$ac_cpp conftest.$ac_ext"
17156 case "(($ac_try" in
17157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17158   *) ac_try_echo=$ac_try;;
17159 esac
17160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17161 $as_echo "$ac_try_echo") >&5
17162   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17163   ac_status=$?
17164   grep -v '^ *+' conftest.er1 >conftest.err
17165   rm -f conftest.er1
17166   cat conftest.err >&5
17167   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168   (exit $ac_status); } >/dev/null && {
17169          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17170          test ! -s conftest.err
17171        }; then
17172   ac_header_preproc=yes
17173 else
17174   $as_echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17176
17177   ac_header_preproc=no
17178 fi
17179
17180 rm -f conftest.err conftest.$ac_ext
17181 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17182 $as_echo "$ac_header_preproc" >&6; }
17183
17184 # So?  What about this header?
17185 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17186   yes:no: )
17187     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17188 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17189     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17190 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17191     ac_header_preproc=yes
17192     ;;
17193   no:yes:* )
17194     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17195 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17196     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17197 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17198     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17199 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17200     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17201 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17202     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17203 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17204     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17205 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17206     ( cat <<\_ASBOX
17207 ## ------------------------------ ##
17208 ## Report this to bug-tar@gnu.org ##
17209 ## ------------------------------ ##
17210 _ASBOX
17211      ) | sed "s/^/$as_me: WARNING:     /" >&2
17212     ;;
17213 esac
17214 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17215 $as_echo_n "checking for $ac_header... " >&6; }
17216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17217   $as_echo_n "(cached) " >&6
17218 else
17219   eval "$as_ac_Header=\$ac_header_preproc"
17220 fi
17221 ac_res=`eval 'as_val=${'$as_ac_Header'}
17222                  $as_echo "$as_val"'`
17223                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17224 $as_echo "$ac_res" >&6; }
17225
17226 fi
17227 as_val=`eval 'as_val=${'$as_ac_Header'}
17228                  $as_echo "$as_val"'`
17229    if test "x$as_val" = x""yes; then
17230   cat >>confdefs.h <<_ACEOF
17231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17232 _ACEOF
17233
17234 fi
17235
17236 done
17237
17238     if test $ac_cv_header_sys_inttypes_h = yes; then
17239       HAVE_SYS_INTTYPES_H=1
17240     else
17241       HAVE_SYS_INTTYPES_H=0
17242     fi
17243
17244     if test $ac_cv_header_sys_bitypes_h = yes; then
17245       HAVE_SYS_BITYPES_H=1
17246     else
17247       HAVE_SYS_BITYPES_H=0
17248     fi
17249
17250
17251
17252
17253   if test $APPLE_UNIVERSAL_BUILD = 0; then
17254
17255
17256
17257
17258   for gltype in ptrdiff_t size_t ; do
17259     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
17260 $as_echo_n "checking for bit size of $gltype... " >&6; }
17261 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
17262   $as_echo_n "(cached) " >&6
17263 else
17264   if test "$cross_compiling" = yes; then
17265   # Depending upon the size, compute the lo and hi bounds.
17266 cat >conftest.$ac_ext <<_ACEOF
17267 /* confdefs.h.  */
17268 _ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h.  */
17272
17273   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17274      included before <wchar.h>.  */
17275   #include <stddef.h>
17276   #include <signal.h>
17277   #if HAVE_WCHAR_H
17278   # include <stdio.h>
17279   # include <time.h>
17280   # include <wchar.h>
17281   #endif
17282
17283 #include <limits.h>
17284 int
17285 main ()
17286 {
17287 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
17288 test_array [0] = 0
17289
17290   ;
17291   return 0;
17292 }
17293 _ACEOF
17294 rm -f conftest.$ac_objext
17295 if { (ac_try="$ac_compile"
17296 case "(($ac_try" in
17297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17298   *) ac_try_echo=$ac_try;;
17299 esac
17300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17301 $as_echo "$ac_try_echo") >&5
17302   (eval "$ac_compile") 2>conftest.er1
17303   ac_status=$?
17304   grep -v '^ *+' conftest.er1 >conftest.err
17305   rm -f conftest.er1
17306   cat conftest.err >&5
17307   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17308   (exit $ac_status); } && {
17309          test -z "$ac_c_werror_flag" ||
17310          test ! -s conftest.err
17311        } && test -s conftest.$ac_objext; then
17312   ac_lo=0 ac_mid=0
17313   while :; do
17314     cat >conftest.$ac_ext <<_ACEOF
17315 /* confdefs.h.  */
17316 _ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h.  */
17320
17321   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17322      included before <wchar.h>.  */
17323   #include <stddef.h>
17324   #include <signal.h>
17325   #if HAVE_WCHAR_H
17326   # include <stdio.h>
17327   # include <time.h>
17328   # include <wchar.h>
17329   #endif
17330
17331 #include <limits.h>
17332 int
17333 main ()
17334 {
17335 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17336 test_array [0] = 0
17337
17338   ;
17339   return 0;
17340 }
17341 _ACEOF
17342 rm -f conftest.$ac_objext
17343 if { (ac_try="$ac_compile"
17344 case "(($ac_try" in
17345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17346   *) ac_try_echo=$ac_try;;
17347 esac
17348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17349 $as_echo "$ac_try_echo") >&5
17350   (eval "$ac_compile") 2>conftest.er1
17351   ac_status=$?
17352   grep -v '^ *+' conftest.er1 >conftest.err
17353   rm -f conftest.er1
17354   cat conftest.err >&5
17355   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17356   (exit $ac_status); } && {
17357          test -z "$ac_c_werror_flag" ||
17358          test ! -s conftest.err
17359        } && test -s conftest.$ac_objext; then
17360   ac_hi=$ac_mid; break
17361 else
17362   $as_echo "$as_me: failed program was:" >&5
17363 sed 's/^/| /' conftest.$ac_ext >&5
17364
17365         ac_lo=`expr $ac_mid + 1`
17366                         if test $ac_lo -le $ac_mid; then
17367                           ac_lo= ac_hi=
17368                           break
17369                         fi
17370                         ac_mid=`expr 2 '*' $ac_mid + 1`
17371 fi
17372
17373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17374   done
17375 else
17376   $as_echo "$as_me: failed program was:" >&5
17377 sed 's/^/| /' conftest.$ac_ext >&5
17378
17379         cat >conftest.$ac_ext <<_ACEOF
17380 /* confdefs.h.  */
17381 _ACEOF
17382 cat confdefs.h >>conftest.$ac_ext
17383 cat >>conftest.$ac_ext <<_ACEOF
17384 /* end confdefs.h.  */
17385
17386   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17387      included before <wchar.h>.  */
17388   #include <stddef.h>
17389   #include <signal.h>
17390   #if HAVE_WCHAR_H
17391   # include <stdio.h>
17392   # include <time.h>
17393   # include <wchar.h>
17394   #endif
17395
17396 #include <limits.h>
17397 int
17398 main ()
17399 {
17400 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17401 test_array [0] = 0
17402
17403   ;
17404   return 0;
17405 }
17406 _ACEOF
17407 rm -f conftest.$ac_objext
17408 if { (ac_try="$ac_compile"
17409 case "(($ac_try" in
17410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411   *) ac_try_echo=$ac_try;;
17412 esac
17413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17414 $as_echo "$ac_try_echo") >&5
17415   (eval "$ac_compile") 2>conftest.er1
17416   ac_status=$?
17417   grep -v '^ *+' conftest.er1 >conftest.err
17418   rm -f conftest.er1
17419   cat conftest.err >&5
17420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17421   (exit $ac_status); } && {
17422          test -z "$ac_c_werror_flag" ||
17423          test ! -s conftest.err
17424        } && test -s conftest.$ac_objext; then
17425   ac_hi=-1 ac_mid=-1
17426   while :; do
17427     cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h.  */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h.  */
17433
17434   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17435      included before <wchar.h>.  */
17436   #include <stddef.h>
17437   #include <signal.h>
17438   #if HAVE_WCHAR_H
17439   # include <stdio.h>
17440   # include <time.h>
17441   # include <wchar.h>
17442   #endif
17443
17444 #include <limits.h>
17445 int
17446 main ()
17447 {
17448 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17449 test_array [0] = 0
17450
17451   ;
17452   return 0;
17453 }
17454 _ACEOF
17455 rm -f conftest.$ac_objext
17456 if { (ac_try="$ac_compile"
17457 case "(($ac_try" in
17458   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459   *) ac_try_echo=$ac_try;;
17460 esac
17461 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17462 $as_echo "$ac_try_echo") >&5
17463   (eval "$ac_compile") 2>conftest.er1
17464   ac_status=$?
17465   grep -v '^ *+' conftest.er1 >conftest.err
17466   rm -f conftest.er1
17467   cat conftest.err >&5
17468   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469   (exit $ac_status); } && {
17470          test -z "$ac_c_werror_flag" ||
17471          test ! -s conftest.err
17472        } && test -s conftest.$ac_objext; then
17473   ac_lo=$ac_mid; break
17474 else
17475   $as_echo "$as_me: failed program was:" >&5
17476 sed 's/^/| /' conftest.$ac_ext >&5
17477
17478         ac_hi=`expr '(' $ac_mid ')' - 1`
17479                         if test $ac_mid -le $ac_hi; then
17480                           ac_lo= ac_hi=
17481                           break
17482                         fi
17483                         ac_mid=`expr 2 '*' $ac_mid`
17484 fi
17485
17486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17487   done
17488 else
17489   $as_echo "$as_me: failed program was:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17491
17492         ac_lo= ac_hi=
17493 fi
17494
17495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17496 fi
17497
17498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17499 # Binary search between lo and hi bounds.
17500 while test "x$ac_lo" != "x$ac_hi"; do
17501   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17502   cat >conftest.$ac_ext <<_ACEOF
17503 /* confdefs.h.  */
17504 _ACEOF
17505 cat confdefs.h >>conftest.$ac_ext
17506 cat >>conftest.$ac_ext <<_ACEOF
17507 /* end confdefs.h.  */
17508
17509   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17510      included before <wchar.h>.  */
17511   #include <stddef.h>
17512   #include <signal.h>
17513   #if HAVE_WCHAR_H
17514   # include <stdio.h>
17515   # include <time.h>
17516   # include <wchar.h>
17517   #endif
17518
17519 #include <limits.h>
17520 int
17521 main ()
17522 {
17523 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17524 test_array [0] = 0
17525
17526   ;
17527   return 0;
17528 }
17529 _ACEOF
17530 rm -f conftest.$ac_objext
17531 if { (ac_try="$ac_compile"
17532 case "(($ac_try" in
17533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17534   *) ac_try_echo=$ac_try;;
17535 esac
17536 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17537 $as_echo "$ac_try_echo") >&5
17538   (eval "$ac_compile") 2>conftest.er1
17539   ac_status=$?
17540   grep -v '^ *+' conftest.er1 >conftest.err
17541   rm -f conftest.er1
17542   cat conftest.err >&5
17543   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544   (exit $ac_status); } && {
17545          test -z "$ac_c_werror_flag" ||
17546          test ! -s conftest.err
17547        } && test -s conftest.$ac_objext; then
17548   ac_hi=$ac_mid
17549 else
17550   $as_echo "$as_me: failed program was:" >&5
17551 sed 's/^/| /' conftest.$ac_ext >&5
17552
17553         ac_lo=`expr '(' $ac_mid ')' + 1`
17554 fi
17555
17556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17557 done
17558 case $ac_lo in
17559 ?*) result=$ac_lo;;
17560 '') result=unknown ;;
17561 esac
17562 else
17563   cat >conftest.$ac_ext <<_ACEOF
17564 /* confdefs.h.  */
17565 _ACEOF
17566 cat confdefs.h >>conftest.$ac_ext
17567 cat >>conftest.$ac_ext <<_ACEOF
17568 /* end confdefs.h.  */
17569
17570   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17571      included before <wchar.h>.  */
17572   #include <stddef.h>
17573   #include <signal.h>
17574   #if HAVE_WCHAR_H
17575   # include <stdio.h>
17576   # include <time.h>
17577   # include <wchar.h>
17578   #endif
17579
17580 #include <limits.h>
17581 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17582 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
17583 #include <stdio.h>
17584 #include <stdlib.h>
17585 int
17586 main ()
17587 {
17588
17589   FILE *f = fopen ("conftest.val", "w");
17590   if (! f)
17591     return 1;
17592   if ((sizeof ($gltype) * CHAR_BIT) < 0)
17593     {
17594       long int i = longval ();
17595       if (i != (sizeof ($gltype) * CHAR_BIT))
17596         return 1;
17597       fprintf (f, "%ld", i);
17598     }
17599   else
17600     {
17601       unsigned long int i = ulongval ();
17602       if (i != (sizeof ($gltype) * CHAR_BIT))
17603         return 1;
17604       fprintf (f, "%lu", i);
17605     }
17606   /* Do not output a trailing newline, as this causes \r\n confusion
17607      on some platforms.  */
17608   return ferror (f) || fclose (f) != 0;
17609
17610   ;
17611   return 0;
17612 }
17613 _ACEOF
17614 rm -f conftest$ac_exeext
17615 if { (ac_try="$ac_link"
17616 case "(($ac_try" in
17617   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17618   *) ac_try_echo=$ac_try;;
17619 esac
17620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17621 $as_echo "$ac_try_echo") >&5
17622   (eval "$ac_link") 2>&5
17623   ac_status=$?
17624   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17626   { (case "(($ac_try" in
17627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17628   *) ac_try_echo=$ac_try;;
17629 esac
17630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17631 $as_echo "$ac_try_echo") >&5
17632   (eval "$ac_try") 2>&5
17633   ac_status=$?
17634   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17635   (exit $ac_status); }; }; then
17636   result=`cat conftest.val`
17637 else
17638   $as_echo "$as_me: program exited with status $ac_status" >&5
17639 $as_echo "$as_me: failed program was:" >&5
17640 sed 's/^/| /' conftest.$ac_ext >&5
17641
17642 ( exit $ac_status )
17643 result=unknown
17644 fi
17645 rm -rf conftest.dSYM
17646 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17647 fi
17648 rm -f conftest.val
17649        eval gl_cv_bitsizeof_${gltype}=\$result
17650
17651 fi
17652 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
17653                  $as_echo "$as_val"'`
17654                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17655 $as_echo "$ac_res" >&6; }
17656     eval result=\$gl_cv_bitsizeof_${gltype}
17657     if test $result = unknown; then
17658                                                 result=0
17659     fi
17660     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17661     cat >>confdefs.h <<_ACEOF
17662 #define BITSIZEOF_${GLTYPE} $result
17663 _ACEOF
17664
17665     eval BITSIZEOF_${GLTYPE}=\$result
17666   done
17667
17668
17669   fi
17670
17671
17672
17673
17674
17675   for gltype in sig_atomic_t wchar_t wint_t ; do
17676     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
17677 $as_echo_n "checking for bit size of $gltype... " >&6; }
17678 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
17679   $as_echo_n "(cached) " >&6
17680 else
17681   if test "$cross_compiling" = yes; then
17682   # Depending upon the size, compute the lo and hi bounds.
17683 cat >conftest.$ac_ext <<_ACEOF
17684 /* confdefs.h.  */
17685 _ACEOF
17686 cat confdefs.h >>conftest.$ac_ext
17687 cat >>conftest.$ac_ext <<_ACEOF
17688 /* end confdefs.h.  */
17689
17690   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17691      included before <wchar.h>.  */
17692   #include <stddef.h>
17693   #include <signal.h>
17694   #if HAVE_WCHAR_H
17695   # include <stdio.h>
17696   # include <time.h>
17697   # include <wchar.h>
17698   #endif
17699
17700 #include <limits.h>
17701 int
17702 main ()
17703 {
17704 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
17705 test_array [0] = 0
17706
17707   ;
17708   return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715   *) ac_try_echo=$ac_try;;
17716 esac
17717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17718 $as_echo "$ac_try_echo") >&5
17719   (eval "$ac_compile") 2>conftest.er1
17720   ac_status=$?
17721   grep -v '^ *+' conftest.er1 >conftest.err
17722   rm -f conftest.er1
17723   cat conftest.err >&5
17724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17725   (exit $ac_status); } && {
17726          test -z "$ac_c_werror_flag" ||
17727          test ! -s conftest.err
17728        } && test -s conftest.$ac_objext; then
17729   ac_lo=0 ac_mid=0
17730   while :; do
17731     cat >conftest.$ac_ext <<_ACEOF
17732 /* confdefs.h.  */
17733 _ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h.  */
17737
17738   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17739      included before <wchar.h>.  */
17740   #include <stddef.h>
17741   #include <signal.h>
17742   #if HAVE_WCHAR_H
17743   # include <stdio.h>
17744   # include <time.h>
17745   # include <wchar.h>
17746   #endif
17747
17748 #include <limits.h>
17749 int
17750 main ()
17751 {
17752 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17753 test_array [0] = 0
17754
17755   ;
17756   return 0;
17757 }
17758 _ACEOF
17759 rm -f conftest.$ac_objext
17760 if { (ac_try="$ac_compile"
17761 case "(($ac_try" in
17762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17763   *) ac_try_echo=$ac_try;;
17764 esac
17765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17766 $as_echo "$ac_try_echo") >&5
17767   (eval "$ac_compile") 2>conftest.er1
17768   ac_status=$?
17769   grep -v '^ *+' conftest.er1 >conftest.err
17770   rm -f conftest.er1
17771   cat conftest.err >&5
17772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17773   (exit $ac_status); } && {
17774          test -z "$ac_c_werror_flag" ||
17775          test ! -s conftest.err
17776        } && test -s conftest.$ac_objext; then
17777   ac_hi=$ac_mid; break
17778 else
17779   $as_echo "$as_me: failed program was:" >&5
17780 sed 's/^/| /' conftest.$ac_ext >&5
17781
17782         ac_lo=`expr $ac_mid + 1`
17783                         if test $ac_lo -le $ac_mid; then
17784                           ac_lo= ac_hi=
17785                           break
17786                         fi
17787                         ac_mid=`expr 2 '*' $ac_mid + 1`
17788 fi
17789
17790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17791   done
17792 else
17793   $as_echo "$as_me: failed program was:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17795
17796         cat >conftest.$ac_ext <<_ACEOF
17797 /* confdefs.h.  */
17798 _ACEOF
17799 cat confdefs.h >>conftest.$ac_ext
17800 cat >>conftest.$ac_ext <<_ACEOF
17801 /* end confdefs.h.  */
17802
17803   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17804      included before <wchar.h>.  */
17805   #include <stddef.h>
17806   #include <signal.h>
17807   #if HAVE_WCHAR_H
17808   # include <stdio.h>
17809   # include <time.h>
17810   # include <wchar.h>
17811   #endif
17812
17813 #include <limits.h>
17814 int
17815 main ()
17816 {
17817 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
17818 test_array [0] = 0
17819
17820   ;
17821   return 0;
17822 }
17823 _ACEOF
17824 rm -f conftest.$ac_objext
17825 if { (ac_try="$ac_compile"
17826 case "(($ac_try" in
17827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828   *) ac_try_echo=$ac_try;;
17829 esac
17830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17831 $as_echo "$ac_try_echo") >&5
17832   (eval "$ac_compile") 2>conftest.er1
17833   ac_status=$?
17834   grep -v '^ *+' conftest.er1 >conftest.err
17835   rm -f conftest.er1
17836   cat conftest.err >&5
17837   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838   (exit $ac_status); } && {
17839          test -z "$ac_c_werror_flag" ||
17840          test ! -s conftest.err
17841        } && test -s conftest.$ac_objext; then
17842   ac_hi=-1 ac_mid=-1
17843   while :; do
17844     cat >conftest.$ac_ext <<_ACEOF
17845 /* confdefs.h.  */
17846 _ACEOF
17847 cat confdefs.h >>conftest.$ac_ext
17848 cat >>conftest.$ac_ext <<_ACEOF
17849 /* end confdefs.h.  */
17850
17851   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17852      included before <wchar.h>.  */
17853   #include <stddef.h>
17854   #include <signal.h>
17855   #if HAVE_WCHAR_H
17856   # include <stdio.h>
17857   # include <time.h>
17858   # include <wchar.h>
17859   #endif
17860
17861 #include <limits.h>
17862 int
17863 main ()
17864 {
17865 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
17866 test_array [0] = 0
17867
17868   ;
17869   return 0;
17870 }
17871 _ACEOF
17872 rm -f conftest.$ac_objext
17873 if { (ac_try="$ac_compile"
17874 case "(($ac_try" in
17875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17876   *) ac_try_echo=$ac_try;;
17877 esac
17878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17879 $as_echo "$ac_try_echo") >&5
17880   (eval "$ac_compile") 2>conftest.er1
17881   ac_status=$?
17882   grep -v '^ *+' conftest.er1 >conftest.err
17883   rm -f conftest.er1
17884   cat conftest.err >&5
17885   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886   (exit $ac_status); } && {
17887          test -z "$ac_c_werror_flag" ||
17888          test ! -s conftest.err
17889        } && test -s conftest.$ac_objext; then
17890   ac_lo=$ac_mid; break
17891 else
17892   $as_echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17894
17895         ac_hi=`expr '(' $ac_mid ')' - 1`
17896                         if test $ac_mid -le $ac_hi; then
17897                           ac_lo= ac_hi=
17898                           break
17899                         fi
17900                         ac_mid=`expr 2 '*' $ac_mid`
17901 fi
17902
17903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17904   done
17905 else
17906   $as_echo "$as_me: failed program was:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17908
17909         ac_lo= ac_hi=
17910 fi
17911
17912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17913 fi
17914
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916 # Binary search between lo and hi bounds.
17917 while test "x$ac_lo" != "x$ac_hi"; do
17918   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
17919   cat >conftest.$ac_ext <<_ACEOF
17920 /* confdefs.h.  */
17921 _ACEOF
17922 cat confdefs.h >>conftest.$ac_ext
17923 cat >>conftest.$ac_ext <<_ACEOF
17924 /* end confdefs.h.  */
17925
17926   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17927      included before <wchar.h>.  */
17928   #include <stddef.h>
17929   #include <signal.h>
17930   #if HAVE_WCHAR_H
17931   # include <stdio.h>
17932   # include <time.h>
17933   # include <wchar.h>
17934   #endif
17935
17936 #include <limits.h>
17937 int
17938 main ()
17939 {
17940 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
17941 test_array [0] = 0
17942
17943   ;
17944   return 0;
17945 }
17946 _ACEOF
17947 rm -f conftest.$ac_objext
17948 if { (ac_try="$ac_compile"
17949 case "(($ac_try" in
17950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17951   *) ac_try_echo=$ac_try;;
17952 esac
17953 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17954 $as_echo "$ac_try_echo") >&5
17955   (eval "$ac_compile") 2>conftest.er1
17956   ac_status=$?
17957   grep -v '^ *+' conftest.er1 >conftest.err
17958   rm -f conftest.er1
17959   cat conftest.err >&5
17960   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961   (exit $ac_status); } && {
17962          test -z "$ac_c_werror_flag" ||
17963          test ! -s conftest.err
17964        } && test -s conftest.$ac_objext; then
17965   ac_hi=$ac_mid
17966 else
17967   $as_echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17969
17970         ac_lo=`expr '(' $ac_mid ')' + 1`
17971 fi
17972
17973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17974 done
17975 case $ac_lo in
17976 ?*) result=$ac_lo;;
17977 '') result=unknown ;;
17978 esac
17979 else
17980   cat >conftest.$ac_ext <<_ACEOF
17981 /* confdefs.h.  */
17982 _ACEOF
17983 cat confdefs.h >>conftest.$ac_ext
17984 cat >>conftest.$ac_ext <<_ACEOF
17985 /* end confdefs.h.  */
17986
17987   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17988      included before <wchar.h>.  */
17989   #include <stddef.h>
17990   #include <signal.h>
17991   #if HAVE_WCHAR_H
17992   # include <stdio.h>
17993   # include <time.h>
17994   # include <wchar.h>
17995   #endif
17996
17997 #include <limits.h>
17998 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
17999 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
18000 #include <stdio.h>
18001 #include <stdlib.h>
18002 int
18003 main ()
18004 {
18005
18006   FILE *f = fopen ("conftest.val", "w");
18007   if (! f)
18008     return 1;
18009   if ((sizeof ($gltype) * CHAR_BIT) < 0)
18010     {
18011       long int i = longval ();
18012       if (i != (sizeof ($gltype) * CHAR_BIT))
18013         return 1;
18014       fprintf (f, "%ld", i);
18015     }
18016   else
18017     {
18018       unsigned long int i = ulongval ();
18019       if (i != (sizeof ($gltype) * CHAR_BIT))
18020         return 1;
18021       fprintf (f, "%lu", i);
18022     }
18023   /* Do not output a trailing newline, as this causes \r\n confusion
18024      on some platforms.  */
18025   return ferror (f) || fclose (f) != 0;
18026
18027   ;
18028   return 0;
18029 }
18030 _ACEOF
18031 rm -f conftest$ac_exeext
18032 if { (ac_try="$ac_link"
18033 case "(($ac_try" in
18034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035   *) ac_try_echo=$ac_try;;
18036 esac
18037 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18038 $as_echo "$ac_try_echo") >&5
18039   (eval "$ac_link") 2>&5
18040   ac_status=$?
18041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18042   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18043   { (case "(($ac_try" in
18044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045   *) ac_try_echo=$ac_try;;
18046 esac
18047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18048 $as_echo "$ac_try_echo") >&5
18049   (eval "$ac_try") 2>&5
18050   ac_status=$?
18051   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052   (exit $ac_status); }; }; then
18053   result=`cat conftest.val`
18054 else
18055   $as_echo "$as_me: program exited with status $ac_status" >&5
18056 $as_echo "$as_me: failed program was:" >&5
18057 sed 's/^/| /' conftest.$ac_ext >&5
18058
18059 ( exit $ac_status )
18060 result=unknown
18061 fi
18062 rm -rf conftest.dSYM
18063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18064 fi
18065 rm -f conftest.val
18066        eval gl_cv_bitsizeof_${gltype}=\$result
18067
18068 fi
18069 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
18070                  $as_echo "$as_val"'`
18071                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18072 $as_echo "$ac_res" >&6; }
18073     eval result=\$gl_cv_bitsizeof_${gltype}
18074     if test $result = unknown; then
18075                                                 result=0
18076     fi
18077     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18078     cat >>confdefs.h <<_ACEOF
18079 #define BITSIZEOF_${GLTYPE} $result
18080 _ACEOF
18081
18082     eval BITSIZEOF_${GLTYPE}=\$result
18083   done
18084
18085
18086
18087
18088
18089
18090
18091   for gltype in sig_atomic_t wchar_t wint_t ; do
18092     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
18093 $as_echo_n "checking whether $gltype is signed... " >&6; }
18094 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
18095   $as_echo_n "(cached) " >&6
18096 else
18097   cat >conftest.$ac_ext <<_ACEOF
18098 /* confdefs.h.  */
18099 _ACEOF
18100 cat confdefs.h >>conftest.$ac_ext
18101 cat >>conftest.$ac_ext <<_ACEOF
18102 /* end confdefs.h.  */
18103
18104   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18105      included before <wchar.h>.  */
18106   #include <stddef.h>
18107   #include <signal.h>
18108   #if HAVE_WCHAR_H
18109   # include <stdio.h>
18110   # include <time.h>
18111   # include <wchar.h>
18112   #endif
18113
18114             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
18115 int
18116 main ()
18117 {
18118
18119   ;
18120   return 0;
18121 }
18122 _ACEOF
18123 rm -f conftest.$ac_objext
18124 if { (ac_try="$ac_compile"
18125 case "(($ac_try" in
18126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18127   *) ac_try_echo=$ac_try;;
18128 esac
18129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18130 $as_echo "$ac_try_echo") >&5
18131   (eval "$ac_compile") 2>conftest.er1
18132   ac_status=$?
18133   grep -v '^ *+' conftest.er1 >conftest.err
18134   rm -f conftest.er1
18135   cat conftest.err >&5
18136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137   (exit $ac_status); } && {
18138          test -z "$ac_c_werror_flag" ||
18139          test ! -s conftest.err
18140        } && test -s conftest.$ac_objext; then
18141   result=yes
18142 else
18143   $as_echo "$as_me: failed program was:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18145
18146         result=no
18147 fi
18148
18149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150        eval gl_cv_type_${gltype}_signed=\$result
18151
18152 fi
18153 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
18154                  $as_echo "$as_val"'`
18155                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18156 $as_echo "$ac_res" >&6; }
18157     eval result=\$gl_cv_type_${gltype}_signed
18158     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18159     if test "$result" = yes; then
18160       cat >>confdefs.h <<_ACEOF
18161 #define HAVE_SIGNED_${GLTYPE} 1
18162 _ACEOF
18163
18164       eval HAVE_SIGNED_${GLTYPE}=1
18165     else
18166       eval HAVE_SIGNED_${GLTYPE}=0
18167     fi
18168   done
18169
18170
18171   gl_cv_type_ptrdiff_t_signed=yes
18172   gl_cv_type_size_t_signed=no
18173   if test $APPLE_UNIVERSAL_BUILD = 0; then
18174
18175
18176
18177
18178   for gltype in ptrdiff_t size_t ; do
18179     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
18180 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18181 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
18182   $as_echo_n "(cached) " >&6
18183 else
18184   eval gl_cv_type_${gltype}_suffix=no
18185        eval result=\$gl_cv_type_${gltype}_signed
18186        if test "$result" = yes; then
18187          glsufu=
18188        else
18189          glsufu=u
18190        fi
18191        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18192          case $glsuf in
18193            '')  gltype1='int';;
18194            l)   gltype1='long int';;
18195            ll)  gltype1='long long int';;
18196            i64) gltype1='__int64';;
18197            u)   gltype1='unsigned int';;
18198            ul)  gltype1='unsigned long int';;
18199            ull) gltype1='unsigned long long int';;
18200            ui64)gltype1='unsigned __int64';;
18201          esac
18202          cat >conftest.$ac_ext <<_ACEOF
18203 /* confdefs.h.  */
18204 _ACEOF
18205 cat confdefs.h >>conftest.$ac_ext
18206 cat >>conftest.$ac_ext <<_ACEOF
18207 /* end confdefs.h.  */
18208
18209   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18210      included before <wchar.h>.  */
18211   #include <stddef.h>
18212   #include <signal.h>
18213   #if HAVE_WCHAR_H
18214   # include <stdio.h>
18215   # include <time.h>
18216   # include <wchar.h>
18217   #endif
18218
18219               extern $gltype foo;
18220               extern $gltype1 foo;
18221 int
18222 main ()
18223 {
18224
18225   ;
18226   return 0;
18227 }
18228 _ACEOF
18229 rm -f conftest.$ac_objext
18230 if { (ac_try="$ac_compile"
18231 case "(($ac_try" in
18232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233   *) ac_try_echo=$ac_try;;
18234 esac
18235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18236 $as_echo "$ac_try_echo") >&5
18237   (eval "$ac_compile") 2>conftest.er1
18238   ac_status=$?
18239   grep -v '^ *+' conftest.er1 >conftest.err
18240   rm -f conftest.er1
18241   cat conftest.err >&5
18242   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18243   (exit $ac_status); } && {
18244          test -z "$ac_c_werror_flag" ||
18245          test ! -s conftest.err
18246        } && test -s conftest.$ac_objext; then
18247   eval gl_cv_type_${gltype}_suffix=\$glsuf
18248 else
18249   $as_echo "$as_me: failed program was:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18251
18252
18253 fi
18254
18255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18256          eval result=\$gl_cv_type_${gltype}_suffix
18257          test "$result" != no && break
18258        done
18259 fi
18260 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
18261                  $as_echo "$as_val"'`
18262                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18263 $as_echo "$ac_res" >&6; }
18264     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18265     eval result=\$gl_cv_type_${gltype}_suffix
18266     test "$result" = no && result=
18267     eval ${GLTYPE}_SUFFIX=\$result
18268     cat >>confdefs.h <<_ACEOF
18269 #define ${GLTYPE}_SUFFIX $result
18270 _ACEOF
18271
18272   done
18273
18274
18275   fi
18276
18277
18278
18279
18280
18281   for gltype in sig_atomic_t wchar_t wint_t ; do
18282     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
18283 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
18284 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
18285   $as_echo_n "(cached) " >&6
18286 else
18287   eval gl_cv_type_${gltype}_suffix=no
18288        eval result=\$gl_cv_type_${gltype}_signed
18289        if test "$result" = yes; then
18290          glsufu=
18291        else
18292          glsufu=u
18293        fi
18294        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
18295          case $glsuf in
18296            '')  gltype1='int';;
18297            l)   gltype1='long int';;
18298            ll)  gltype1='long long int';;
18299            i64) gltype1='__int64';;
18300            u)   gltype1='unsigned int';;
18301            ul)  gltype1='unsigned long int';;
18302            ull) gltype1='unsigned long long int';;
18303            ui64)gltype1='unsigned __int64';;
18304          esac
18305          cat >conftest.$ac_ext <<_ACEOF
18306 /* confdefs.h.  */
18307 _ACEOF
18308 cat confdefs.h >>conftest.$ac_ext
18309 cat >>conftest.$ac_ext <<_ACEOF
18310 /* end confdefs.h.  */
18311
18312   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18313      included before <wchar.h>.  */
18314   #include <stddef.h>
18315   #include <signal.h>
18316   #if HAVE_WCHAR_H
18317   # include <stdio.h>
18318   # include <time.h>
18319   # include <wchar.h>
18320   #endif
18321
18322               extern $gltype foo;
18323               extern $gltype1 foo;
18324 int
18325 main ()
18326 {
18327
18328   ;
18329   return 0;
18330 }
18331 _ACEOF
18332 rm -f conftest.$ac_objext
18333 if { (ac_try="$ac_compile"
18334 case "(($ac_try" in
18335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336   *) ac_try_echo=$ac_try;;
18337 esac
18338 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18339 $as_echo "$ac_try_echo") >&5
18340   (eval "$ac_compile") 2>conftest.er1
18341   ac_status=$?
18342   grep -v '^ *+' conftest.er1 >conftest.err
18343   rm -f conftest.er1
18344   cat conftest.err >&5
18345   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346   (exit $ac_status); } && {
18347          test -z "$ac_c_werror_flag" ||
18348          test ! -s conftest.err
18349        } && test -s conftest.$ac_objext; then
18350   eval gl_cv_type_${gltype}_suffix=\$glsuf
18351 else
18352   $as_echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18354
18355
18356 fi
18357
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359          eval result=\$gl_cv_type_${gltype}_suffix
18360          test "$result" != no && break
18361        done
18362 fi
18363 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
18364                  $as_echo "$as_val"'`
18365                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18366 $as_echo "$ac_res" >&6; }
18367     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18368     eval result=\$gl_cv_type_${gltype}_suffix
18369     test "$result" = no && result=
18370     eval ${GLTYPE}_SUFFIX=\$result
18371     cat >>confdefs.h <<_ACEOF
18372 #define ${GLTYPE}_SUFFIX $result
18373 _ACEOF
18374
18375   done
18376
18377
18378
18379     STDINT_H=stdint.h
18380   fi
18381
18382
18383
18384
18385 for ac_header in inttypes.h
18386 do
18387 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18388 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18389   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18390 $as_echo_n "checking for $ac_header... " >&6; }
18391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18392   $as_echo_n "(cached) " >&6
18393 fi
18394 ac_res=`eval 'as_val=${'$as_ac_Header'}
18395                  $as_echo "$as_val"'`
18396                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18397 $as_echo "$ac_res" >&6; }
18398 else
18399   # Is the header compilable?
18400 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
18401 $as_echo_n "checking $ac_header usability... " >&6; }
18402 cat >conftest.$ac_ext <<_ACEOF
18403 /* confdefs.h.  */
18404 _ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h.  */
18408 $ac_includes_default
18409 #include <$ac_header>
18410 _ACEOF
18411 rm -f conftest.$ac_objext
18412 if { (ac_try="$ac_compile"
18413 case "(($ac_try" in
18414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18415   *) ac_try_echo=$ac_try;;
18416 esac
18417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18418 $as_echo "$ac_try_echo") >&5
18419   (eval "$ac_compile") 2>conftest.er1
18420   ac_status=$?
18421   grep -v '^ *+' conftest.er1 >conftest.err
18422   rm -f conftest.er1
18423   cat conftest.err >&5
18424   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18425   (exit $ac_status); } && {
18426          test -z "$ac_c_werror_flag" ||
18427          test ! -s conftest.err
18428        } && test -s conftest.$ac_objext; then
18429   ac_header_compiler=yes
18430 else
18431   $as_echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18433
18434         ac_header_compiler=no
18435 fi
18436
18437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18438 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18439 $as_echo "$ac_header_compiler" >&6; }
18440
18441 # Is the header present?
18442 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
18443 $as_echo_n "checking $ac_header presence... " >&6; }
18444 cat >conftest.$ac_ext <<_ACEOF
18445 /* confdefs.h.  */
18446 _ACEOF
18447 cat confdefs.h >>conftest.$ac_ext
18448 cat >>conftest.$ac_ext <<_ACEOF
18449 /* end confdefs.h.  */
18450 #include <$ac_header>
18451 _ACEOF
18452 if { (ac_try="$ac_cpp conftest.$ac_ext"
18453 case "(($ac_try" in
18454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455   *) ac_try_echo=$ac_try;;
18456 esac
18457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18458 $as_echo "$ac_try_echo") >&5
18459   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18460   ac_status=$?
18461   grep -v '^ *+' conftest.er1 >conftest.err
18462   rm -f conftest.er1
18463   cat conftest.err >&5
18464   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18465   (exit $ac_status); } >/dev/null && {
18466          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18467          test ! -s conftest.err
18468        }; then
18469   ac_header_preproc=yes
18470 else
18471   $as_echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18473
18474   ac_header_preproc=no
18475 fi
18476
18477 rm -f conftest.err conftest.$ac_ext
18478 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18479 $as_echo "$ac_header_preproc" >&6; }
18480
18481 # So?  What about this header?
18482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18483   yes:no: )
18484     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18485 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18486     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18487 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18488     ac_header_preproc=yes
18489     ;;
18490   no:yes:* )
18491     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18492 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18493     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18494 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18495     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18496 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18497     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18498 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18499     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18500 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18501     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18502 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18503     ( cat <<\_ASBOX
18504 ## ------------------------------ ##
18505 ## Report this to bug-tar@gnu.org ##
18506 ## ------------------------------ ##
18507 _ASBOX
18508      ) | sed "s/^/$as_me: WARNING:     /" >&2
18509     ;;
18510 esac
18511 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18512 $as_echo_n "checking for $ac_header... " >&6; }
18513 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18514   $as_echo_n "(cached) " >&6
18515 else
18516   eval "$as_ac_Header=\$ac_header_preproc"
18517 fi
18518 ac_res=`eval 'as_val=${'$as_ac_Header'}
18519                  $as_echo "$as_val"'`
18520                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18521 $as_echo "$ac_res" >&6; }
18522
18523 fi
18524 as_val=`eval 'as_val=${'$as_ac_Header'}
18525                  $as_echo "$as_val"'`
18526    if test "x$as_val" = x""yes; then
18527   cat >>confdefs.h <<_ACEOF
18528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18529 _ACEOF
18530
18531 fi
18532
18533 done
18534
18535   if test $ac_cv_header_inttypes_h = yes; then
18536     { $as_echo "$as_me:$LINENO: checking whether the inttypes.h PRIxNN macros are broken" >&5
18537 $as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; }
18538 if test "${gt_cv_inttypes_pri_broken+set}" = set; then
18539   $as_echo_n "(cached) " >&6
18540 else
18541
18542         cat >conftest.$ac_ext <<_ACEOF
18543 /* confdefs.h.  */
18544 _ACEOF
18545 cat confdefs.h >>conftest.$ac_ext
18546 cat >>conftest.$ac_ext <<_ACEOF
18547 /* end confdefs.h.  */
18548
18549 #include <inttypes.h>
18550 #ifdef PRId32
18551 char *p = PRId32;
18552 #endif
18553
18554 int
18555 main ()
18556 {
18557
18558   ;
18559   return 0;
18560 }
18561 _ACEOF
18562 rm -f conftest.$ac_objext
18563 if { (ac_try="$ac_compile"
18564 case "(($ac_try" in
18565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18566   *) ac_try_echo=$ac_try;;
18567 esac
18568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18569 $as_echo "$ac_try_echo") >&5
18570   (eval "$ac_compile") 2>conftest.er1
18571   ac_status=$?
18572   grep -v '^ *+' conftest.er1 >conftest.err
18573   rm -f conftest.er1
18574   cat conftest.err >&5
18575   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18576   (exit $ac_status); } && {
18577          test -z "$ac_c_werror_flag" ||
18578          test ! -s conftest.err
18579        } && test -s conftest.$ac_objext; then
18580   gt_cv_inttypes_pri_broken=no
18581 else
18582   $as_echo "$as_me: failed program was:" >&5
18583 sed 's/^/| /' conftest.$ac_ext >&5
18584
18585         gt_cv_inttypes_pri_broken=yes
18586 fi
18587
18588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18589
18590 fi
18591 { $as_echo "$as_me:$LINENO: result: $gt_cv_inttypes_pri_broken" >&5
18592 $as_echo "$gt_cv_inttypes_pri_broken" >&6; }
18593   fi
18594   if test "$gt_cv_inttypes_pri_broken" = yes; then
18595
18596 cat >>confdefs.h <<_ACEOF
18597 #define PRI_MACROS_BROKEN 1
18598 _ACEOF
18599
18600     PRI_MACROS_BROKEN=1
18601   else
18602     PRI_MACROS_BROKEN=0
18603   fi
18604
18605
18606
18607
18608 { $as_echo "$as_me:$LINENO: checking whether imaxabs is declared" >&5
18609 $as_echo_n "checking whether imaxabs is declared... " >&6; }
18610 if test "${ac_cv_have_decl_imaxabs+set}" = set; then
18611   $as_echo_n "(cached) " >&6
18612 else
18613   cat >conftest.$ac_ext <<_ACEOF
18614 /* confdefs.h.  */
18615 _ACEOF
18616 cat confdefs.h >>conftest.$ac_ext
18617 cat >>conftest.$ac_ext <<_ACEOF
18618 /* end confdefs.h.  */
18619 $ac_includes_default
18620 int
18621 main ()
18622 {
18623 #ifndef imaxabs
18624   (void) imaxabs;
18625 #endif
18626
18627   ;
18628   return 0;
18629 }
18630 _ACEOF
18631 rm -f conftest.$ac_objext
18632 if { (ac_try="$ac_compile"
18633 case "(($ac_try" in
18634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18635   *) ac_try_echo=$ac_try;;
18636 esac
18637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18638 $as_echo "$ac_try_echo") >&5
18639   (eval "$ac_compile") 2>conftest.er1
18640   ac_status=$?
18641   grep -v '^ *+' conftest.er1 >conftest.err
18642   rm -f conftest.er1
18643   cat conftest.err >&5
18644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645   (exit $ac_status); } && {
18646          test -z "$ac_c_werror_flag" ||
18647          test ! -s conftest.err
18648        } && test -s conftest.$ac_objext; then
18649   ac_cv_have_decl_imaxabs=yes
18650 else
18651   $as_echo "$as_me: failed program was:" >&5
18652 sed 's/^/| /' conftest.$ac_ext >&5
18653
18654         ac_cv_have_decl_imaxabs=no
18655 fi
18656
18657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18658 fi
18659 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxabs" >&5
18660 $as_echo "$ac_cv_have_decl_imaxabs" >&6; }
18661 if test "x$ac_cv_have_decl_imaxabs" = x""yes; then
18662
18663 cat >>confdefs.h <<_ACEOF
18664 #define HAVE_DECL_IMAXABS 1
18665 _ACEOF
18666
18667
18668 else
18669   cat >>confdefs.h <<_ACEOF
18670 #define HAVE_DECL_IMAXABS 0
18671 _ACEOF
18672
18673
18674 fi
18675
18676
18677 { $as_echo "$as_me:$LINENO: checking whether imaxdiv is declared" >&5
18678 $as_echo_n "checking whether imaxdiv is declared... " >&6; }
18679 if test "${ac_cv_have_decl_imaxdiv+set}" = set; then
18680   $as_echo_n "(cached) " >&6
18681 else
18682   cat >conftest.$ac_ext <<_ACEOF
18683 /* confdefs.h.  */
18684 _ACEOF
18685 cat confdefs.h >>conftest.$ac_ext
18686 cat >>conftest.$ac_ext <<_ACEOF
18687 /* end confdefs.h.  */
18688 $ac_includes_default
18689 int
18690 main ()
18691 {
18692 #ifndef imaxdiv
18693   (void) imaxdiv;
18694 #endif
18695
18696   ;
18697   return 0;
18698 }
18699 _ACEOF
18700 rm -f conftest.$ac_objext
18701 if { (ac_try="$ac_compile"
18702 case "(($ac_try" in
18703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18704   *) ac_try_echo=$ac_try;;
18705 esac
18706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18707 $as_echo "$ac_try_echo") >&5
18708   (eval "$ac_compile") 2>conftest.er1
18709   ac_status=$?
18710   grep -v '^ *+' conftest.er1 >conftest.err
18711   rm -f conftest.er1
18712   cat conftest.err >&5
18713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18714   (exit $ac_status); } && {
18715          test -z "$ac_c_werror_flag" ||
18716          test ! -s conftest.err
18717        } && test -s conftest.$ac_objext; then
18718   ac_cv_have_decl_imaxdiv=yes
18719 else
18720   $as_echo "$as_me: failed program was:" >&5
18721 sed 's/^/| /' conftest.$ac_ext >&5
18722
18723         ac_cv_have_decl_imaxdiv=no
18724 fi
18725
18726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18727 fi
18728 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_imaxdiv" >&5
18729 $as_echo "$ac_cv_have_decl_imaxdiv" >&6; }
18730 if test "x$ac_cv_have_decl_imaxdiv" = x""yes; then
18731
18732 cat >>confdefs.h <<_ACEOF
18733 #define HAVE_DECL_IMAXDIV 1
18734 _ACEOF
18735
18736
18737 else
18738   cat >>confdefs.h <<_ACEOF
18739 #define HAVE_DECL_IMAXDIV 0
18740 _ACEOF
18741
18742
18743 fi
18744
18745
18746 { $as_echo "$as_me:$LINENO: checking whether strtoimax is declared" >&5
18747 $as_echo_n "checking whether strtoimax is declared... " >&6; }
18748 if test "${ac_cv_have_decl_strtoimax+set}" = set; then
18749   $as_echo_n "(cached) " >&6
18750 else
18751   cat >conftest.$ac_ext <<_ACEOF
18752 /* confdefs.h.  */
18753 _ACEOF
18754 cat confdefs.h >>conftest.$ac_ext
18755 cat >>conftest.$ac_ext <<_ACEOF
18756 /* end confdefs.h.  */
18757 $ac_includes_default
18758 int
18759 main ()
18760 {
18761 #ifndef strtoimax
18762   (void) strtoimax;
18763 #endif
18764
18765   ;
18766   return 0;
18767 }
18768 _ACEOF
18769 rm -f conftest.$ac_objext
18770 if { (ac_try="$ac_compile"
18771 case "(($ac_try" in
18772   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773   *) ac_try_echo=$ac_try;;
18774 esac
18775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18776 $as_echo "$ac_try_echo") >&5
18777   (eval "$ac_compile") 2>conftest.er1
18778   ac_status=$?
18779   grep -v '^ *+' conftest.er1 >conftest.err
18780   rm -f conftest.er1
18781   cat conftest.err >&5
18782   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783   (exit $ac_status); } && {
18784          test -z "$ac_c_werror_flag" ||
18785          test ! -s conftest.err
18786        } && test -s conftest.$ac_objext; then
18787   ac_cv_have_decl_strtoimax=yes
18788 else
18789   $as_echo "$as_me: failed program was:" >&5
18790 sed 's/^/| /' conftest.$ac_ext >&5
18791
18792         ac_cv_have_decl_strtoimax=no
18793 fi
18794
18795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18796 fi
18797 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoimax" >&5
18798 $as_echo "$ac_cv_have_decl_strtoimax" >&6; }
18799 if test "x$ac_cv_have_decl_strtoimax" = x""yes; then
18800
18801 cat >>confdefs.h <<_ACEOF
18802 #define HAVE_DECL_STRTOIMAX 1
18803 _ACEOF
18804
18805
18806 else
18807   cat >>confdefs.h <<_ACEOF
18808 #define HAVE_DECL_STRTOIMAX 0
18809 _ACEOF
18810
18811
18812 fi
18813
18814
18815 { $as_echo "$as_me:$LINENO: checking whether strtoumax is declared" >&5
18816 $as_echo_n "checking whether strtoumax is declared... " >&6; }
18817 if test "${ac_cv_have_decl_strtoumax+set}" = set; then
18818   $as_echo_n "(cached) " >&6
18819 else
18820   cat >conftest.$ac_ext <<_ACEOF
18821 /* confdefs.h.  */
18822 _ACEOF
18823 cat confdefs.h >>conftest.$ac_ext
18824 cat >>conftest.$ac_ext <<_ACEOF
18825 /* end confdefs.h.  */
18826 $ac_includes_default
18827 int
18828 main ()
18829 {
18830 #ifndef strtoumax
18831   (void) strtoumax;
18832 #endif
18833
18834   ;
18835   return 0;
18836 }
18837 _ACEOF
18838 rm -f conftest.$ac_objext
18839 if { (ac_try="$ac_compile"
18840 case "(($ac_try" in
18841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18842   *) ac_try_echo=$ac_try;;
18843 esac
18844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18845 $as_echo "$ac_try_echo") >&5
18846   (eval "$ac_compile") 2>conftest.er1
18847   ac_status=$?
18848   grep -v '^ *+' conftest.er1 >conftest.err
18849   rm -f conftest.er1
18850   cat conftest.err >&5
18851   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852   (exit $ac_status); } && {
18853          test -z "$ac_c_werror_flag" ||
18854          test ! -s conftest.err
18855        } && test -s conftest.$ac_objext; then
18856   ac_cv_have_decl_strtoumax=yes
18857 else
18858   $as_echo "$as_me: failed program was:" >&5
18859 sed 's/^/| /' conftest.$ac_ext >&5
18860
18861         ac_cv_have_decl_strtoumax=no
18862 fi
18863
18864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18865 fi
18866 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoumax" >&5
18867 $as_echo "$ac_cv_have_decl_strtoumax" >&6; }
18868 if test "x$ac_cv_have_decl_strtoumax" = x""yes; then
18869
18870 cat >>confdefs.h <<_ACEOF
18871 #define HAVE_DECL_STRTOUMAX 1
18872 _ACEOF
18873
18874
18875 else
18876   cat >>confdefs.h <<_ACEOF
18877 #define HAVE_DECL_STRTOUMAX 0
18878 _ACEOF
18879
18880
18881 fi
18882
18883
18884
18885   GNULIB_IMAXABS=0;
18886   GNULIB_IMAXDIV=0;
18887   GNULIB_STRTOIMAX=0;
18888   GNULIB_STRTOUMAX=0;
18889     HAVE_DECL_IMAXABS=1;
18890   HAVE_DECL_IMAXDIV=1;
18891   HAVE_DECL_STRTOIMAX=1;
18892   HAVE_DECL_STRTOUMAX=1;
18893
18894
18895   GNULIB_ISWBLANK=0;
18896   GNULIB_WCTYPE=0;
18897   GNULIB_ISWCTYPE=0;
18898   GNULIB_WCTRANS=0;
18899   GNULIB_TOWCTRANS=0;
18900     HAVE_ISWBLANK=1;
18901   HAVE_WCTYPE_T=1;
18902   HAVE_WCTRANS_T=1;
18903   REPLACE_ISWBLANK=0;
18904
18905
18906
18907
18908   { $as_echo "$as_me:$LINENO: checking for wint_t" >&5
18909 $as_echo_n "checking for wint_t... " >&6; }
18910 if test "${gt_cv_c_wint_t+set}" = set; then
18911   $as_echo_n "(cached) " >&6
18912 else
18913   cat >conftest.$ac_ext <<_ACEOF
18914 /* confdefs.h.  */
18915 _ACEOF
18916 cat confdefs.h >>conftest.$ac_ext
18917 cat >>conftest.$ac_ext <<_ACEOF
18918 /* end confdefs.h.  */
18919
18920 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18921    <wchar.h>.
18922    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
18923    before <wchar.h>.  */
18924 #include <stddef.h>
18925 #include <stdio.h>
18926 #include <time.h>
18927 #include <wchar.h>
18928             wint_t foo = (wchar_t)'\0';
18929 int
18930 main ()
18931 {
18932
18933   ;
18934   return 0;
18935 }
18936 _ACEOF
18937 rm -f conftest.$ac_objext
18938 if { (ac_try="$ac_compile"
18939 case "(($ac_try" in
18940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941   *) ac_try_echo=$ac_try;;
18942 esac
18943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18944 $as_echo "$ac_try_echo") >&5
18945   (eval "$ac_compile") 2>conftest.er1
18946   ac_status=$?
18947   grep -v '^ *+' conftest.er1 >conftest.err
18948   rm -f conftest.er1
18949   cat conftest.err >&5
18950   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18951   (exit $ac_status); } && {
18952          test -z "$ac_c_werror_flag" ||
18953          test ! -s conftest.err
18954        } && test -s conftest.$ac_objext; then
18955   gt_cv_c_wint_t=yes
18956 else
18957   $as_echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18959
18960         gt_cv_c_wint_t=no
18961 fi
18962
18963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18964 fi
18965 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wint_t" >&5
18966 $as_echo "$gt_cv_c_wint_t" >&6; }
18967   if test $gt_cv_c_wint_t = yes; then
18968
18969 cat >>confdefs.h <<\_ACEOF
18970 #define HAVE_WINT_T 1
18971 _ACEOF
18972
18973   fi
18974
18975
18976
18977
18978
18979
18980
18981
18982
18983
18984
18985   if test $ac_cv_func_iswcntrl = yes; then
18986     HAVE_ISWCNTRL=1
18987   else
18988     HAVE_ISWCNTRL=0
18989   fi
18990
18991
18992
18993
18994
18995   if test $gt_cv_c_wint_t = yes; then
18996     HAVE_WINT_T=1
18997   else
18998     HAVE_WINT_T=0
18999   fi
19000
19001
19002
19003
19004
19005
19006
19007
19008
19009
19010
19011
19012
19013
19014
19015
19016      if test $gl_cv_have_include_next = yes; then
19017        gl_cv_next_wctype_h='<'wctype.h'>'
19018      else
19019        { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
19020 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
19021 if test "${gl_cv_next_wctype_h+set}" = set; then
19022   $as_echo_n "(cached) " >&6
19023 else
19024
19025              if test $ac_cv_header_wctype_h = yes; then
19026
19027
19028                cat >conftest.$ac_ext <<_ACEOF
19029 /* confdefs.h.  */
19030 _ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h.  */
19034 #include <wctype.h>
19035
19036 _ACEOF
19037                                                                                                                         case "$host_os" in
19038                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
19039                  *)    gl_absname_cpp="$ac_cpp" ;;
19040                esac
19041                                                             gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19042                   sed -n '\#/wctype.h#{
19043                     s#.*"\(.*/wctype.h\)".*#\1#
19044                     s#^/[^/]#//&#
19045                     p
19046                     q
19047                   }'`'"'
19048           else
19049                gl_cv_next_wctype_h='<'wctype.h'>'
19050              fi
19051
19052
19053 fi
19054 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
19055 $as_echo "$gl_cv_next_wctype_h" >&6; }
19056      fi
19057      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
19058
19059      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19060        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19061        gl_next_as_first_directive='<'wctype.h'>'
19062      else
19063        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19064        gl_next_as_first_directive=$gl_cv_next_wctype_h
19065      fi
19066      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
19067
19068
19069
19070
19071   if test $ac_cv_header_wctype_h = yes; then
19072     if test $ac_cv_func_iswcntrl = yes; then
19073                   { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
19074 $as_echo_n "checking whether iswcntrl works... " >&6; }
19075 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
19076   $as_echo_n "(cached) " >&6
19077 else
19078
19079           if test "$cross_compiling" = yes; then
19080   cat >conftest.$ac_ext <<_ACEOF
19081 /* confdefs.h.  */
19082 _ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h.  */
19086 #include <stdlib.h>
19087                           #if __GNU_LIBRARY__ == 1
19088                           Linux libc5 i18n is broken.
19089                           #endif
19090 int
19091 main ()
19092 {
19093
19094   ;
19095   return 0;
19096 }
19097 _ACEOF
19098 rm -f conftest.$ac_objext
19099 if { (ac_try="$ac_compile"
19100 case "(($ac_try" in
19101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19102   *) ac_try_echo=$ac_try;;
19103 esac
19104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19105 $as_echo "$ac_try_echo") >&5
19106   (eval "$ac_compile") 2>conftest.er1
19107   ac_status=$?
19108   grep -v '^ *+' conftest.er1 >conftest.err
19109   rm -f conftest.er1
19110   cat conftest.err >&5
19111   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112   (exit $ac_status); } && {
19113          test -z "$ac_c_werror_flag" ||
19114          test ! -s conftest.err
19115        } && test -s conftest.$ac_objext; then
19116   gl_cv_func_iswcntrl_works=yes
19117 else
19118   $as_echo "$as_me: failed program was:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19120
19121         gl_cv_func_iswcntrl_works=no
19122 fi
19123
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19125
19126 else
19127   cat >conftest.$ac_ext <<_ACEOF
19128 /* confdefs.h.  */
19129 _ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h.  */
19133
19134                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19135                   included before <wchar.h>.
19136                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19137                   must be included before <wchar.h>.  */
19138                #include <stddef.h>
19139                #include <stdio.h>
19140                #include <time.h>
19141                #include <wchar.h>
19142                #include <wctype.h>
19143                int main () { return iswprint ('x') == 0; }
19144
19145 _ACEOF
19146 rm -f conftest$ac_exeext
19147 if { (ac_try="$ac_link"
19148 case "(($ac_try" in
19149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150   *) ac_try_echo=$ac_try;;
19151 esac
19152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19153 $as_echo "$ac_try_echo") >&5
19154   (eval "$ac_link") 2>&5
19155   ac_status=$?
19156   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19157   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19158   { (case "(($ac_try" in
19159   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160   *) ac_try_echo=$ac_try;;
19161 esac
19162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19163 $as_echo "$ac_try_echo") >&5
19164   (eval "$ac_try") 2>&5
19165   ac_status=$?
19166   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19167   (exit $ac_status); }; }; then
19168   gl_cv_func_iswcntrl_works=yes
19169 else
19170   $as_echo "$as_me: program exited with status $ac_status" >&5
19171 $as_echo "$as_me: failed program was:" >&5
19172 sed 's/^/| /' conftest.$ac_ext >&5
19173
19174 ( exit $ac_status )
19175 gl_cv_func_iswcntrl_works=no
19176 fi
19177 rm -rf conftest.dSYM
19178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19179 fi
19180
19181
19182
19183 fi
19184 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
19185 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
19186     fi
19187     HAVE_WCTYPE_H=1
19188   else
19189     HAVE_WCTYPE_H=0
19190   fi
19191
19192
19193   if test "$gl_cv_func_iswcntrl_works" = no; then
19194     REPLACE_ISWCNTRL=1
19195   else
19196     REPLACE_ISWCNTRL=0
19197   fi
19198
19199
19200   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
19201         :
19202   fi
19203
19204           { $as_echo "$as_me:$LINENO: checking for wctype_t" >&5
19205 $as_echo_n "checking for wctype_t... " >&6; }
19206 if test "${gl_cv_type_wctype_t+set}" = set; then
19207   $as_echo_n "(cached) " >&6
19208 else
19209   cat >conftest.$ac_ext <<_ACEOF
19210 /* confdefs.h.  */
19211 _ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h.  */
19215 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19216                included before <wchar.h>.
19217                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19218                must be included before <wchar.h>.  */
19219             #include <stddef.h>
19220             #include <stdio.h>
19221             #include <time.h>
19222             #include <wchar.h>
19223             #if HAVE_WCTYPE_H
19224             # include <wctype.h>
19225             #endif
19226             wctype_t a;
19227
19228 int
19229 main ()
19230 {
19231
19232   ;
19233   return 0;
19234 }
19235 _ACEOF
19236 rm -f conftest.$ac_objext
19237 if { (ac_try="$ac_compile"
19238 case "(($ac_try" in
19239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240   *) ac_try_echo=$ac_try;;
19241 esac
19242 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19243 $as_echo "$ac_try_echo") >&5
19244   (eval "$ac_compile") 2>conftest.er1
19245   ac_status=$?
19246   grep -v '^ *+' conftest.er1 >conftest.err
19247   rm -f conftest.er1
19248   cat conftest.err >&5
19249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250   (exit $ac_status); } && {
19251          test -z "$ac_c_werror_flag" ||
19252          test ! -s conftest.err
19253        } && test -s conftest.$ac_objext; then
19254   gl_cv_type_wctype_t=yes
19255 else
19256   $as_echo "$as_me: failed program was:" >&5
19257 sed 's/^/| /' conftest.$ac_ext >&5
19258
19259         gl_cv_type_wctype_t=no
19260 fi
19261
19262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19263
19264 fi
19265 { $as_echo "$as_me:$LINENO: result: $gl_cv_type_wctype_t" >&5
19266 $as_echo "$gl_cv_type_wctype_t" >&6; }
19267   if test $gl_cv_type_wctype_t = no; then
19268     HAVE_WCTYPE_T=0
19269   fi
19270
19271       { $as_echo "$as_me:$LINENO: checking for wctrans_t" >&5
19272 $as_echo_n "checking for wctrans_t... " >&6; }
19273 if test "${gl_cv_type_wctrans_t+set}" = set; then
19274   $as_echo_n "(cached) " >&6
19275 else
19276   cat >conftest.$ac_ext <<_ACEOF
19277 /* confdefs.h.  */
19278 _ACEOF
19279 cat confdefs.h >>conftest.$ac_ext
19280 cat >>conftest.$ac_ext <<_ACEOF
19281 /* end confdefs.h.  */
19282 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
19283                included before <wchar.h>.
19284                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
19285                must be included before <wchar.h>.  */
19286             #include <stddef.h>
19287             #include <stdio.h>
19288             #include <time.h>
19289             #include <wchar.h>
19290             #include <wctype.h>
19291             wctrans_t a;
19292
19293 int
19294 main ()
19295 {
19296
19297   ;
19298   return 0;
19299 }
19300 _ACEOF
19301 rm -f conftest.$ac_objext
19302 if { (ac_try="$ac_compile"
19303 case "(($ac_try" in
19304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19305   *) ac_try_echo=$ac_try;;
19306 esac
19307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19308 $as_echo "$ac_try_echo") >&5
19309   (eval "$ac_compile") 2>conftest.er1
19310   ac_status=$?
19311   grep -v '^ *+' conftest.er1 >conftest.err
19312   rm -f conftest.er1
19313   cat conftest.err >&5
19314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19315   (exit $ac_status); } && {
19316          test -z "$ac_c_werror_flag" ||
19317          test ! -s conftest.err
19318        } && test -s conftest.$ac_objext; then
19319   gl_cv_type_wctrans_t=yes
19320 else
19321   $as_echo "$as_me: failed program was:" >&5
19322 sed 's/^/| /' conftest.$ac_ext >&5
19323
19324         gl_cv_type_wctrans_t=no
19325 fi
19326
19327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19328
19329 fi
19330 { $as_echo "$as_me:$LINENO: result: $gl_cv_type_wctrans_t" >&5
19331 $as_echo "$gl_cv_type_wctrans_t" >&6; }
19332   if test $gl_cv_type_wctrans_t = no; then
19333     HAVE_WCTRANS_T=0
19334   fi
19335
19336
19337
19338
19339
19340
19341   for gl_func in wctype iswctype wctrans towctrans     ; do
19342     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
19343     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
19344 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
19345 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
19346   $as_echo_n "(cached) " >&6
19347 else
19348   cat >conftest.$ac_ext <<_ACEOF
19349 /* confdefs.h.  */
19350 _ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h.  */
19354
19355 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
19356    <wchar.h>.
19357    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
19358    included before <wchar.h>.  */
19359 #if !(defined __GLIBC__ && !defined __UCLIBC__)
19360 # include <stddef.h>
19361 # include <stdio.h>
19362 # include <time.h>
19363 # include <wchar.h>
19364 #endif
19365 #include <wctype.h>
19366
19367 int
19368 main ()
19369 {
19370 #undef $gl_func
19371   (void) $gl_func;
19372   ;
19373   return 0;
19374 }
19375 _ACEOF
19376 rm -f conftest.$ac_objext
19377 if { (ac_try="$ac_compile"
19378 case "(($ac_try" in
19379   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19380   *) ac_try_echo=$ac_try;;
19381 esac
19382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19383 $as_echo "$ac_try_echo") >&5
19384   (eval "$ac_compile") 2>conftest.er1
19385   ac_status=$?
19386   grep -v '^ *+' conftest.er1 >conftest.err
19387   rm -f conftest.er1
19388   cat conftest.err >&5
19389   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390   (exit $ac_status); } && {
19391          test -z "$ac_c_werror_flag" ||
19392          test ! -s conftest.err
19393        } && test -s conftest.$ac_objext; then
19394   eval "$as_gl_Symbol=yes"
19395 else
19396   $as_echo "$as_me: failed program was:" >&5
19397 sed 's/^/| /' conftest.$ac_ext >&5
19398
19399         eval "$as_gl_Symbol=no"
19400 fi
19401
19402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19403 fi
19404 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
19405                  $as_echo "$as_val"'`
19406                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19407 $as_echo "$ac_res" >&6; }
19408      as_val=`eval 'as_val=${'$as_gl_Symbol'}
19409                  $as_echo "$as_val"'`
19410    if test "x$as_val" = x""yes; then
19411   cat >>confdefs.h <<_ACEOF
19412 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
19413 _ACEOF
19414
19415                      eval ac_cv_have_decl_$gl_func=yes
19416 fi
19417
19418       done
19419
19420
19421
19422
19423 { $as_echo "$as_me:$LINENO: checking whether iswblank is declared" >&5
19424 $as_echo_n "checking whether iswblank is declared... " >&6; }
19425 if test "${ac_cv_have_decl_iswblank+set}" = set; then
19426   $as_echo_n "(cached) " >&6
19427 else
19428   cat >conftest.$ac_ext <<_ACEOF
19429 /* confdefs.h.  */
19430 _ACEOF
19431 cat confdefs.h >>conftest.$ac_ext
19432 cat >>conftest.$ac_ext <<_ACEOF
19433 /* end confdefs.h.  */
19434 $ac_includes_default
19435 int
19436 main ()
19437 {
19438 #ifndef iswblank
19439   (void) iswblank;
19440 #endif
19441
19442   ;
19443   return 0;
19444 }
19445 _ACEOF
19446 rm -f conftest.$ac_objext
19447 if { (ac_try="$ac_compile"
19448 case "(($ac_try" in
19449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19450   *) ac_try_echo=$ac_try;;
19451 esac
19452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19453 $as_echo "$ac_try_echo") >&5
19454   (eval "$ac_compile") 2>conftest.er1
19455   ac_status=$?
19456   grep -v '^ *+' conftest.er1 >conftest.err
19457   rm -f conftest.er1
19458   cat conftest.err >&5
19459   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19460   (exit $ac_status); } && {
19461          test -z "$ac_c_werror_flag" ||
19462          test ! -s conftest.err
19463        } && test -s conftest.$ac_objext; then
19464   ac_cv_have_decl_iswblank=yes
19465 else
19466   $as_echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19468
19469         ac_cv_have_decl_iswblank=no
19470 fi
19471
19472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19473 fi
19474 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_iswblank" >&5
19475 $as_echo "$ac_cv_have_decl_iswblank" >&6; }
19476 if test "x$ac_cv_have_decl_iswblank" = x""yes; then
19477
19478 cat >>confdefs.h <<_ACEOF
19479 #define HAVE_DECL_ISWBLANK 1
19480 _ACEOF
19481
19482
19483 else
19484   cat >>confdefs.h <<_ACEOF
19485 #define HAVE_DECL_ISWBLANK 0
19486 _ACEOF
19487
19488
19489 fi
19490
19491
19492
19493   GNULIB_NL_LANGINFO=0;
19494     HAVE_NL_LANGINFO=1;
19495   REPLACE_NL_LANGINFO=0;
19496
19497
19498
19499
19500
19501
19502
19503
19504   { $as_echo "$as_me:$LINENO: checking whether lstat correctly handles trailing slash" >&5
19505 $as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
19506 if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then
19507   $as_echo_n "(cached) " >&6
19508 else
19509   rm -f conftest.sym conftest.file
19510      echo >conftest.file
19511      if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
19512        if test "$cross_compiling" = yes; then
19513   # When cross-compiling, be pessimistic so we will end up using the
19514           # replacement version of lstat that checks for trailing slashes and
19515           # calls lstat a second time when necessary.
19516           ac_cv_func_lstat_dereferences_slashed_symlink=no
19517
19518 else
19519   cat >conftest.$ac_ext <<_ACEOF
19520 /* confdefs.h.  */
19521 _ACEOF
19522 cat confdefs.h >>conftest.$ac_ext
19523 cat >>conftest.$ac_ext <<_ACEOF
19524 /* end confdefs.h.  */
19525 $ac_includes_default
19526 int
19527 main ()
19528 {
19529 struct stat sbuf;
19530               /* Linux will dereference the symlink and fail, as required by
19531                  POSIX.  That is better in the sense that it means we will not
19532                  have to compile and use the lstat wrapper.  */
19533               return lstat ("conftest.sym/", &sbuf) == 0;
19534
19535   ;
19536   return 0;
19537 }
19538 _ACEOF
19539 rm -f conftest$ac_exeext
19540 if { (ac_try="$ac_link"
19541 case "(($ac_try" in
19542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19543   *) ac_try_echo=$ac_try;;
19544 esac
19545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19546 $as_echo "$ac_try_echo") >&5
19547   (eval "$ac_link") 2>&5
19548   ac_status=$?
19549   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19550   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19551   { (case "(($ac_try" in
19552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553   *) ac_try_echo=$ac_try;;
19554 esac
19555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19556 $as_echo "$ac_try_echo") >&5
19557   (eval "$ac_try") 2>&5
19558   ac_status=$?
19559   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560   (exit $ac_status); }; }; then
19561   ac_cv_func_lstat_dereferences_slashed_symlink=yes
19562 else
19563   $as_echo "$as_me: program exited with status $ac_status" >&5
19564 $as_echo "$as_me: failed program was:" >&5
19565 sed 's/^/| /' conftest.$ac_ext >&5
19566
19567 ( exit $ac_status )
19568 ac_cv_func_lstat_dereferences_slashed_symlink=no
19569 fi
19570 rm -rf conftest.dSYM
19571 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19572 fi
19573
19574
19575      else
19576        # If the 'ln -s' command failed, then we probably don't even
19577        # have an lstat function.
19578        ac_cv_func_lstat_dereferences_slashed_symlink=no
19579      fi
19580      rm -f conftest.sym conftest.file
19581
19582 fi
19583 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
19584 $as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
19585   test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
19586
19587 cat >>confdefs.h <<_ACEOF
19588 #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
19589 _ACEOF
19590
19591   if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
19592
19593
19594
19595
19596
19597
19598
19599
19600   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
19601
19602   fi
19603
19604
19605
19606
19607     { $as_echo "$as_me:$LINENO: checking whether unlink honors trailing slashes" >&5
19608 $as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
19609 if test "${gl_cv_func_unlink_honors_slashes+set}" = set; then
19610   $as_echo_n "(cached) " >&6
19611 else
19612   touch conftest.file
19613      # Assume that if we have lstat, we can also check symlinks.
19614      if test $ac_cv_func_lstat = yes; then
19615        ln -s conftest.file conftest.lnk
19616      fi
19617      if test "$cross_compiling" = yes; then
19618   gl_cv_func_unlink_honors_slashes="guessing no"
19619 else
19620   cat >conftest.$ac_ext <<_ACEOF
19621 /* confdefs.h.  */
19622 _ACEOF
19623 cat confdefs.h >>conftest.$ac_ext
19624 cat >>conftest.$ac_ext <<_ACEOF
19625 /* end confdefs.h.  */
19626 #include <unistd.h>
19627            #include <errno.h>
19628
19629 int
19630 main ()
19631 {
19632 int result = 0;
19633            if (!unlink ("conftest.file/"))
19634              result |= 1;
19635            else if (errno != ENOTDIR)
19636              result |= 2;
19637 #if HAVE_LSTAT
19638            if (!unlink ("conftest.lnk/"))
19639              result |= 4;
19640            else if (errno != ENOTDIR)
19641              result |= 8;
19642 #endif
19643            return result;
19644
19645   ;
19646   return 0;
19647 }
19648 _ACEOF
19649 rm -f conftest$ac_exeext
19650 if { (ac_try="$ac_link"
19651 case "(($ac_try" in
19652   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653   *) ac_try_echo=$ac_try;;
19654 esac
19655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19656 $as_echo "$ac_try_echo") >&5
19657   (eval "$ac_link") 2>&5
19658   ac_status=$?
19659   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19660   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19661   { (case "(($ac_try" in
19662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663   *) ac_try_echo=$ac_try;;
19664 esac
19665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19666 $as_echo "$ac_try_echo") >&5
19667   (eval "$ac_try") 2>&5
19668   ac_status=$?
19669   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19670   (exit $ac_status); }; }; then
19671   gl_cv_func_unlink_honors_slashes=yes
19672 else
19673   $as_echo "$as_me: program exited with status $ac_status" >&5
19674 $as_echo "$as_me: failed program was:" >&5
19675 sed 's/^/| /' conftest.$ac_ext >&5
19676
19677 ( exit $ac_status )
19678 gl_cv_func_unlink_honors_slashes=no
19679 fi
19680 rm -rf conftest.dSYM
19681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19682 fi
19683
19684
19685      rm -f conftest.file conftest.lnk
19686 fi
19687 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_honors_slashes" >&5
19688 $as_echo "$gl_cv_func_unlink_honors_slashes" >&6; }
19689       { $as_echo "$as_me:$LINENO: checking whether unlink of a parent directory fails as it should" >&5
19690 $as_echo_n "checking whether unlink of a parent directory fails as it should... " >&6; }
19691 if test "${gl_cv_func_unlink_parent_fails+set}" = set; then
19692   $as_echo_n "(cached) " >&6
19693 else
19694   case "$host_os" in
19695        darwin*)
19696                                                       if {
19697               # Use the mktemp program if available. If not available, hide the error
19698               # message.
19699               tmp=`(umask 077 && mktemp -d /tmp/gtXXXXXX) 2>/dev/null` &&
19700               test -n "$tmp" && test -d "$tmp"
19701             } ||
19702             {
19703               # Use a simple mkdir command. It is guaranteed to fail if the directory
19704               # already exists.  $RANDOM is bash specific and expands to empty in shells
19705               # other than bash, ksh and zsh.  Its use does not increase security;
19706               # rather, it minimizes the probability of failure in a very cluttered /tmp
19707               # directory.
19708               tmp=/tmp/gt$$-$RANDOM
19709               (umask 077 && mkdir "$tmp")
19710             }; then
19711            mkdir "$tmp/subdir"
19712            GL_SUBDIR_FOR_UNLINK="$tmp/subdir"
19713            export GL_SUBDIR_FOR_UNLINK
19714            if test "$cross_compiling" = yes; then
19715   gl_cv_func_unlink_parent_fails="guessing no"
19716 else
19717   cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h.  */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h.  */
19723
19724                 #include <stdlib.h>
19725                 #include <unistd.h>
19726                 int main ()
19727                 {
19728                   int result = 0;
19729                   if (chdir (getenv ("GL_SUBDIR_FOR_UNLINK")) != 0)
19730                     result |= 1;
19731                   else if (unlink ("..") == 0)
19732                     result |= 2;
19733                   return result;
19734                 }
19735
19736 _ACEOF
19737 rm -f conftest$ac_exeext
19738 if { (ac_try="$ac_link"
19739 case "(($ac_try" in
19740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741   *) ac_try_echo=$ac_try;;
19742 esac
19743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19744 $as_echo "$ac_try_echo") >&5
19745   (eval "$ac_link") 2>&5
19746   ac_status=$?
19747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19748   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19749   { (case "(($ac_try" in
19750   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751   *) ac_try_echo=$ac_try;;
19752 esac
19753 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19754 $as_echo "$ac_try_echo") >&5
19755   (eval "$ac_try") 2>&5
19756   ac_status=$?
19757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19758   (exit $ac_status); }; }; then
19759   gl_cv_func_unlink_parent_fails=yes
19760 else
19761   $as_echo "$as_me: program exited with status $ac_status" >&5
19762 $as_echo "$as_me: failed program was:" >&5
19763 sed 's/^/| /' conftest.$ac_ext >&5
19764
19765 ( exit $ac_status )
19766 gl_cv_func_unlink_parent_fails=no
19767 fi
19768 rm -rf conftest.dSYM
19769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19770 fi
19771
19772
19773            unset GL_SUBDIR_FOR_UNLINK
19774            rm -rf "$tmp"
19775          else
19776            gl_cv_func_unlink_parent_fails="guessing no"
19777          fi
19778          ;;
19779        *)
19780          gl_cv_func_unlink_parent_fails="guessing yes"
19781          ;;
19782      esac
19783
19784 fi
19785 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_parent_fails" >&5
19786 $as_echo "$gl_cv_func_unlink_parent_fails" >&6; }
19787   case "$gl_cv_func_unlink_parent_fails" in
19788     *no)
19789
19790 cat >>confdefs.h <<\_ACEOF
19791 #define UNLINK_PARENT_BUG 1
19792 _ACEOF
19793
19794       ;;
19795   esac
19796   if test "$gl_cv_func_unlink_honors_slashes" != yes \
19797      || { case "$gl_cv_func_unlink_parent_fails" in
19798             *yes) false;;
19799             *no) true;;
19800           esac
19801         }; then
19802     REPLACE_UNLINK=1
19803
19804
19805
19806
19807
19808
19809
19810
19811   gl_LIBOBJS="$gl_LIBOBJS unlink.$ac_objext"
19812
19813   fi
19814
19815
19816
19817   GNULIB_OPENAT=1
19818
19819
19820   GNULIB_FCHMODAT=1
19821   GNULIB_FSTATAT=1
19822   GNULIB_MKDIRAT=1
19823
19824
19825   GNULIB_FCHOWNAT=1
19826   GNULIB_UNLINKAT=1
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
19880
19881
19882
19883
19884
19885
19886 for ac_func in fchmodat fstatat mkdirat openat unlinkat
19887 do
19888 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19889 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19890 $as_echo_n "checking for $ac_func... " >&6; }
19891 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19892   $as_echo_n "(cached) " >&6
19893 else
19894   cat >conftest.$ac_ext <<_ACEOF
19895 /* confdefs.h.  */
19896 _ACEOF
19897 cat confdefs.h >>conftest.$ac_ext
19898 cat >>conftest.$ac_ext <<_ACEOF
19899 /* end confdefs.h.  */
19900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19901    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19902 #define $ac_func innocuous_$ac_func
19903
19904 /* System header to define __stub macros and hopefully few prototypes,
19905     which can conflict with char $ac_func (); below.
19906     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19907     <limits.h> exists even on freestanding compilers.  */
19908
19909 #ifdef __STDC__
19910 # include <limits.h>
19911 #else
19912 # include <assert.h>
19913 #endif
19914
19915 #undef $ac_func
19916
19917 /* Override any GCC internal prototype to avoid an error.
19918    Use char because int might match the return type of a GCC
19919    builtin and then its argument prototype would still apply.  */
19920 #ifdef __cplusplus
19921 extern "C"
19922 #endif
19923 char $ac_func ();
19924 /* The GNU C library defines this for functions which it implements
19925     to always fail with ENOSYS.  Some functions are actually named
19926     something starting with __ and the normal name is an alias.  */
19927 #if defined __stub_$ac_func || defined __stub___$ac_func
19928 choke me
19929 #endif
19930
19931 int
19932 main ()
19933 {
19934 return $ac_func ();
19935   ;
19936   return 0;
19937 }
19938 _ACEOF
19939 rm -f conftest.$ac_objext conftest$ac_exeext
19940 if { (ac_try="$ac_link"
19941 case "(($ac_try" in
19942   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19943   *) ac_try_echo=$ac_try;;
19944 esac
19945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19946 $as_echo "$ac_try_echo") >&5
19947   (eval "$ac_link") 2>conftest.er1
19948   ac_status=$?
19949   grep -v '^ *+' conftest.er1 >conftest.err
19950   rm -f conftest.er1
19951   cat conftest.err >&5
19952   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19953   (exit $ac_status); } && {
19954          test -z "$ac_c_werror_flag" ||
19955          test ! -s conftest.err
19956        } && test -s conftest$ac_exeext && {
19957          test "$cross_compiling" = yes ||
19958          $as_test_x conftest$ac_exeext
19959        }; then
19960   eval "$as_ac_var=yes"
19961 else
19962   $as_echo "$as_me: failed program was:" >&5
19963 sed 's/^/| /' conftest.$ac_ext >&5
19964
19965         eval "$as_ac_var=no"
19966 fi
19967
19968 rm -rf conftest.dSYM
19969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19970       conftest$ac_exeext conftest.$ac_ext
19971 fi
19972 ac_res=`eval 'as_val=${'$as_ac_var'}
19973                  $as_echo "$as_val"'`
19974                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19975 $as_echo "$ac_res" >&6; }
19976 as_val=`eval 'as_val=${'$as_ac_var'}
19977                  $as_echo "$as_val"'`
19978    if test "x$as_val" = x""yes; then
19979   cat >>confdefs.h <<_ACEOF
19980 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19981 _ACEOF
19982
19983 else
19984
19985     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
19986
19987 fi
19988 done
19989
19990
19991
19992
19993   case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
19994   yes+yes)
19995     # GNU/Hurd has unlinkat, but it has the same bug as unlink.
19996     if test $REPLACE_UNLINK = 1; then
19997
19998
19999
20000
20001
20002
20003
20004
20005   gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
20006
20007       REPLACE_UNLINKAT=1
20008     fi ;;
20009   yes+*)
20010     # Solaris 9 has *at functions, but uniformly mishandles trailing
20011     # slash in all of them.
20012
20013
20014
20015
20016
20017
20018
20019
20020   gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
20021
20022     REPLACE_OPENAT=1
20023
20024
20025
20026
20027
20028
20029
20030
20031   gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
20032
20033     REPLACE_FSTATAT=1
20034
20035
20036
20037
20038
20039
20040
20041
20042   gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
20043
20044     REPLACE_UNLINKAT=1
20045     ;;
20046   *)
20047     HAVE_OPENAT=0
20048     HAVE_UNLINKAT=0 # No known system with unlinkat but not openat
20049     HAVE_FSTATAT=0 # No known system with fstatat but not openat
20050
20051
20052
20053   :
20054 ;;
20055   esac
20056   if test $ac_cv_func_fchmodat != yes; then
20057     HAVE_FCHMODAT=0
20058   fi
20059   if test $ac_cv_func_mkdirat != yes; then
20060     HAVE_MKDIRAT=0
20061   fi
20062
20063
20064
20065   { $as_echo "$as_me:$LINENO: checking for fchownat" >&5
20066 $as_echo_n "checking for fchownat... " >&6; }
20067 if test "${ac_cv_func_fchownat+set}" = set; then
20068   $as_echo_n "(cached) " >&6
20069 else
20070   cat >conftest.$ac_ext <<_ACEOF
20071 /* confdefs.h.  */
20072 _ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h.  */
20076 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
20077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20078 #define fchownat innocuous_fchownat
20079
20080 /* System header to define __stub macros and hopefully few prototypes,
20081     which can conflict with char fchownat (); below.
20082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20083     <limits.h> exists even on freestanding compilers.  */
20084
20085 #ifdef __STDC__
20086 # include <limits.h>
20087 #else
20088 # include <assert.h>
20089 #endif
20090
20091 #undef fchownat
20092
20093 /* Override any GCC internal prototype to avoid an error.
20094    Use char because int might match the return type of a GCC
20095    builtin and then its argument prototype would still apply.  */
20096 #ifdef __cplusplus
20097 extern "C"
20098 #endif
20099 char fchownat ();
20100 /* The GNU C library defines this for functions which it implements
20101     to always fail with ENOSYS.  Some functions are actually named
20102     something starting with __ and the normal name is an alias.  */
20103 #if defined __stub_fchownat || defined __stub___fchownat
20104 choke me
20105 #endif
20106
20107 int
20108 main ()
20109 {
20110 return fchownat ();
20111   ;
20112   return 0;
20113 }
20114 _ACEOF
20115 rm -f conftest.$ac_objext conftest$ac_exeext
20116 if { (ac_try="$ac_link"
20117 case "(($ac_try" in
20118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20119   *) ac_try_echo=$ac_try;;
20120 esac
20121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20122 $as_echo "$ac_try_echo") >&5
20123   (eval "$ac_link") 2>conftest.er1
20124   ac_status=$?
20125   grep -v '^ *+' conftest.er1 >conftest.err
20126   rm -f conftest.er1
20127   cat conftest.err >&5
20128   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129   (exit $ac_status); } && {
20130          test -z "$ac_c_werror_flag" ||
20131          test ! -s conftest.err
20132        } && test -s conftest$ac_exeext && {
20133          test "$cross_compiling" = yes ||
20134          $as_test_x conftest$ac_exeext
20135        }; then
20136   ac_cv_func_fchownat=yes
20137 else
20138   $as_echo "$as_me: failed program was:" >&5
20139 sed 's/^/| /' conftest.$ac_ext >&5
20140
20141         ac_cv_func_fchownat=no
20142 fi
20143
20144 rm -rf conftest.dSYM
20145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20146       conftest$ac_exeext conftest.$ac_ext
20147 fi
20148 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
20149 $as_echo "$ac_cv_func_fchownat" >&6; }
20150 if test "x$ac_cv_func_fchownat" = x""yes; then
20151
20152
20153
20154   { $as_echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
20155 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
20156 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
20157   $as_echo_n "(cached) " >&6
20158 else
20159
20160      gl_dangle=conftest.dangle
20161      # Remove any remnants of a previous test.
20162      rm -f $gl_dangle
20163      # Arrange for deletion of the temporary file this test creates.
20164      ac_clean_files="$ac_clean_files $gl_dangle"
20165      ln -s conftest.no-such $gl_dangle
20166      if test "$cross_compiling" = yes; then
20167   gl_cv_func_fchownat_nofollow_works=no
20168 else
20169   cat >conftest.$ac_ext <<_ACEOF
20170 /* confdefs.h.  */
20171 _ACEOF
20172 cat confdefs.h >>conftest.$ac_ext
20173 cat >>conftest.$ac_ext <<_ACEOF
20174 /* end confdefs.h.  */
20175
20176 #include <fcntl.h>
20177 #include <unistd.h>
20178 #include <stdlib.h>
20179 #include <errno.h>
20180 #include <sys/types.h>
20181 int
20182 main ()
20183 {
20184   return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
20185                     AT_SYMLINK_NOFOLLOW) != 0
20186           && errno == ENOENT);
20187 }
20188
20189 _ACEOF
20190 rm -f conftest$ac_exeext
20191 if { (ac_try="$ac_link"
20192 case "(($ac_try" in
20193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20194   *) ac_try_echo=$ac_try;;
20195 esac
20196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20197 $as_echo "$ac_try_echo") >&5
20198   (eval "$ac_link") 2>&5
20199   ac_status=$?
20200   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20201   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20202   { (case "(($ac_try" in
20203   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20204   *) ac_try_echo=$ac_try;;
20205 esac
20206 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20207 $as_echo "$ac_try_echo") >&5
20208   (eval "$ac_try") 2>&5
20209   ac_status=$?
20210   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20211   (exit $ac_status); }; }; then
20212   gl_cv_func_fchownat_nofollow_works=yes
20213 else
20214   $as_echo "$as_me: program exited with status $ac_status" >&5
20215 $as_echo "$as_me: failed program was:" >&5
20216 sed 's/^/| /' conftest.$ac_ext >&5
20217
20218 ( exit $ac_status )
20219 gl_cv_func_fchownat_nofollow_works=no
20220 fi
20221 rm -rf conftest.dSYM
20222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20223 fi
20224
20225
20226
20227 fi
20228 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
20229 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
20230   if test $gl_cv_func_fchownat_nofollow_works = no; then
20231   REPLACE_FCHOWNAT=1
20232
20233 cat >>confdefs.h <<\_ACEOF
20234 #define FCHOWNAT_NOFOLLOW_BUG 1
20235 _ACEOF
20236
20237
20238 fi
20239
20240
20241
20242
20243
20244   { $as_echo "$as_me:$LINENO: checking whether fchownat works with an empty file name" >&5
20245 $as_echo_n "checking whether fchownat works with an empty file name... " >&6; }
20246 if test "${gl_cv_func_fchownat_empty_filename_works+set}" = set; then
20247   $as_echo_n "(cached) " >&6
20248 else
20249   if test "$cross_compiling" = yes; then
20250   gl_cv_func_fchownat_empty_filename_works="guessing no"
20251 else
20252   cat >conftest.$ac_ext <<_ACEOF
20253 /* confdefs.h.  */
20254 _ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h.  */
20258 #include <unistd.h>
20259             #include <fcntl.h>
20260
20261 int
20262 main ()
20263 {
20264 int fd;
20265             int ret;
20266             if (mkdir ("conftestdir", 0700) < 0)
20267               return 2;
20268             fd = open ("conftestdir", O_RDONLY);
20269             if (fd < 0)
20270               return 3;
20271             ret = fchownat (fd, "", -1, -1, 0);
20272             close (fd);
20273             rmdir ("conftestdir");
20274             return ret == 0;
20275
20276   ;
20277   return 0;
20278 }
20279 _ACEOF
20280 rm -f conftest$ac_exeext
20281 if { (ac_try="$ac_link"
20282 case "(($ac_try" in
20283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20284   *) ac_try_echo=$ac_try;;
20285 esac
20286 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20287 $as_echo "$ac_try_echo") >&5
20288   (eval "$ac_link") 2>&5
20289   ac_status=$?
20290   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20292   { (case "(($ac_try" in
20293   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294   *) ac_try_echo=$ac_try;;
20295 esac
20296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20297 $as_echo "$ac_try_echo") >&5
20298   (eval "$ac_try") 2>&5
20299   ac_status=$?
20300   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301   (exit $ac_status); }; }; then
20302   gl_cv_func_fchownat_empty_filename_works=yes
20303 else
20304   $as_echo "$as_me: program exited with status $ac_status" >&5
20305 $as_echo "$as_me: failed program was:" >&5
20306 sed 's/^/| /' conftest.$ac_ext >&5
20307
20308 ( exit $ac_status )
20309 gl_cv_func_fchownat_empty_filename_works=no
20310 fi
20311 rm -rf conftest.dSYM
20312 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20313 fi
20314
20315
20316
20317 fi
20318 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_empty_filename_works" >&5
20319 $as_echo "$gl_cv_func_fchownat_empty_filename_works" >&6; }
20320   if test "$gl_cv_func_fchownat_empty_filename_works" != yes; then
20321   REPLACE_FCHOWNAT=1
20322
20323 cat >>confdefs.h <<\_ACEOF
20324 #define FCHOWNAT_EMPTY_FILENAME_BUG 1
20325 _ACEOF
20326
20327
20328 fi
20329
20330
20331      if test $REPLACE_CHOWN = 1; then
20332        REPLACE_FCHOWNAT=1
20333      fi
20334 else
20335   HAVE_FCHOWNAT=0
20336 fi
20337
20338   if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then
20339
20340
20341
20342
20343
20344
20345
20346
20347   gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
20348
20349   fi
20350
20351
20352
20353
20354
20355
20356
20357     { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C Library >= 2.1 or uClibc" >&5
20358 $as_echo_n "checking whether we are using the GNU C Library >= 2.1 or uClibc... " >&6; }
20359 if test "${ac_cv_gnu_library_2_1+set}" = set; then
20360   $as_echo_n "(cached) " >&6
20361 else
20362   cat >conftest.$ac_ext <<_ACEOF
20363 /* confdefs.h.  */
20364 _ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h.  */
20368
20369 #include <features.h>
20370 #ifdef __GNU_LIBRARY__
20371  #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
20372   Lucky GNU user
20373  #endif
20374 #endif
20375 #ifdef __UCLIBC__
20376  Lucky user
20377 #endif
20378
20379 _ACEOF
20380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20381   $EGREP "Lucky" >/dev/null 2>&1; then
20382   ac_cv_gnu_library_2_1=yes
20383 else
20384   ac_cv_gnu_library_2_1=no
20385 fi
20386 rm -f conftest*
20387
20388
20389
20390 fi
20391 { $as_echo "$as_me:$LINENO: result: $ac_cv_gnu_library_2_1" >&5
20392 $as_echo "$ac_cv_gnu_library_2_1" >&6; }
20393
20394     GLIBC21="$ac_cv_gnu_library_2_1"
20395
20396
20397
20398
20399
20400   { $as_echo "$as_me:$LINENO: checking whether malloc, realloc, calloc are POSIX compliant" >&5
20401 $as_echo_n "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
20402 if test "${gl_cv_func_malloc_posix+set}" = set; then
20403   $as_echo_n "(cached) " >&6
20404 else
20405
20406                         cat >conftest.$ac_ext <<_ACEOF
20407 /* confdefs.h.  */
20408 _ACEOF
20409 cat confdefs.h >>conftest.$ac_ext
20410 cat >>conftest.$ac_ext <<_ACEOF
20411 /* end confdefs.h.  */
20412
20413 int
20414 main ()
20415 {
20416 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
20417              choke me
20418              #endif
20419
20420   ;
20421   return 0;
20422 }
20423 _ACEOF
20424 rm -f conftest.$ac_objext
20425 if { (ac_try="$ac_compile"
20426 case "(($ac_try" in
20427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428   *) ac_try_echo=$ac_try;;
20429 esac
20430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20431 $as_echo "$ac_try_echo") >&5
20432   (eval "$ac_compile") 2>conftest.er1
20433   ac_status=$?
20434   grep -v '^ *+' conftest.er1 >conftest.err
20435   rm -f conftest.er1
20436   cat conftest.err >&5
20437   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20438   (exit $ac_status); } && {
20439          test -z "$ac_c_werror_flag" ||
20440          test ! -s conftest.err
20441        } && test -s conftest.$ac_objext; then
20442   gl_cv_func_malloc_posix=yes
20443 else
20444   $as_echo "$as_me: failed program was:" >&5
20445 sed 's/^/| /' conftest.$ac_ext >&5
20446
20447         gl_cv_func_malloc_posix=no
20448 fi
20449
20450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20451
20452 fi
20453 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_malloc_posix" >&5
20454 $as_echo "$gl_cv_func_malloc_posix" >&6; }
20455
20456
20457
20458 for ac_header in stdlib.h
20459 do
20460 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20461 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20462   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20463 $as_echo_n "checking for $ac_header... " >&6; }
20464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20465   $as_echo_n "(cached) " >&6
20466 fi
20467 ac_res=`eval 'as_val=${'$as_ac_Header'}
20468                  $as_echo "$as_val"'`
20469                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20470 $as_echo "$ac_res" >&6; }
20471 else
20472   # Is the header compilable?
20473 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20474 $as_echo_n "checking $ac_header usability... " >&6; }
20475 cat >conftest.$ac_ext <<_ACEOF
20476 /* confdefs.h.  */
20477 _ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h.  */
20481 $ac_includes_default
20482 #include <$ac_header>
20483 _ACEOF
20484 rm -f conftest.$ac_objext
20485 if { (ac_try="$ac_compile"
20486 case "(($ac_try" in
20487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20488   *) ac_try_echo=$ac_try;;
20489 esac
20490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20491 $as_echo "$ac_try_echo") >&5
20492   (eval "$ac_compile") 2>conftest.er1
20493   ac_status=$?
20494   grep -v '^ *+' conftest.er1 >conftest.err
20495   rm -f conftest.er1
20496   cat conftest.err >&5
20497   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498   (exit $ac_status); } && {
20499          test -z "$ac_c_werror_flag" ||
20500          test ! -s conftest.err
20501        } && test -s conftest.$ac_objext; then
20502   ac_header_compiler=yes
20503 else
20504   $as_echo "$as_me: failed program was:" >&5
20505 sed 's/^/| /' conftest.$ac_ext >&5
20506
20507         ac_header_compiler=no
20508 fi
20509
20510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20511 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20512 $as_echo "$ac_header_compiler" >&6; }
20513
20514 # Is the header present?
20515 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20516 $as_echo_n "checking $ac_header presence... " >&6; }
20517 cat >conftest.$ac_ext <<_ACEOF
20518 /* confdefs.h.  */
20519 _ACEOF
20520 cat confdefs.h >>conftest.$ac_ext
20521 cat >>conftest.$ac_ext <<_ACEOF
20522 /* end confdefs.h.  */
20523 #include <$ac_header>
20524 _ACEOF
20525 if { (ac_try="$ac_cpp conftest.$ac_ext"
20526 case "(($ac_try" in
20527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20528   *) ac_try_echo=$ac_try;;
20529 esac
20530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20531 $as_echo "$ac_try_echo") >&5
20532   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20533   ac_status=$?
20534   grep -v '^ *+' conftest.er1 >conftest.err
20535   rm -f conftest.er1
20536   cat conftest.err >&5
20537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20538   (exit $ac_status); } >/dev/null && {
20539          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20540          test ! -s conftest.err
20541        }; then
20542   ac_header_preproc=yes
20543 else
20544   $as_echo "$as_me: failed program was:" >&5
20545 sed 's/^/| /' conftest.$ac_ext >&5
20546
20547   ac_header_preproc=no
20548 fi
20549
20550 rm -f conftest.err conftest.$ac_ext
20551 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20552 $as_echo "$ac_header_preproc" >&6; }
20553
20554 # So?  What about this header?
20555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20556   yes:no: )
20557     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20558 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20559     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20560 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20561     ac_header_preproc=yes
20562     ;;
20563   no:yes:* )
20564     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20565 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20566     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20567 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20568     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20569 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20570     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20571 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20572     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20573 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20574     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20575 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20576     ( cat <<\_ASBOX
20577 ## ------------------------------ ##
20578 ## Report this to bug-tar@gnu.org ##
20579 ## ------------------------------ ##
20580 _ASBOX
20581      ) | sed "s/^/$as_me: WARNING:     /" >&2
20582     ;;
20583 esac
20584 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20585 $as_echo_n "checking for $ac_header... " >&6; }
20586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20587   $as_echo_n "(cached) " >&6
20588 else
20589   eval "$as_ac_Header=\$ac_header_preproc"
20590 fi
20591 ac_res=`eval 'as_val=${'$as_ac_Header'}
20592                  $as_echo "$as_val"'`
20593                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20594 $as_echo "$ac_res" >&6; }
20595
20596 fi
20597 as_val=`eval 'as_val=${'$as_ac_Header'}
20598                  $as_echo "$as_val"'`
20599    if test "x$as_val" = x""yes; then
20600   cat >>confdefs.h <<_ACEOF
20601 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20602 _ACEOF
20603
20604 fi
20605
20606 done
20607
20608 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20609 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
20610 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20611   $as_echo_n "(cached) " >&6
20612 else
20613   if test "$cross_compiling" = yes; then
20614   ac_cv_func_malloc_0_nonnull=no
20615 else
20616   cat >conftest.$ac_ext <<_ACEOF
20617 /* confdefs.h.  */
20618 _ACEOF
20619 cat confdefs.h >>conftest.$ac_ext
20620 cat >>conftest.$ac_ext <<_ACEOF
20621 /* end confdefs.h.  */
20622 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
20623 # include <stdlib.h>
20624 #else
20625 char *malloc ();
20626 #endif
20627
20628 int
20629 main ()
20630 {
20631 return ! malloc (0);
20632   ;
20633   return 0;
20634 }
20635 _ACEOF
20636 rm -f conftest$ac_exeext
20637 if { (ac_try="$ac_link"
20638 case "(($ac_try" in
20639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640   *) ac_try_echo=$ac_try;;
20641 esac
20642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20643 $as_echo "$ac_try_echo") >&5
20644   (eval "$ac_link") 2>&5
20645   ac_status=$?
20646   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20648   { (case "(($ac_try" in
20649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20650   *) ac_try_echo=$ac_try;;
20651 esac
20652 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20653 $as_echo "$ac_try_echo") >&5
20654   (eval "$ac_try") 2>&5
20655   ac_status=$?
20656   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20657   (exit $ac_status); }; }; then
20658   ac_cv_func_malloc_0_nonnull=yes
20659 else
20660   $as_echo "$as_me: program exited with status $ac_status" >&5
20661 $as_echo "$as_me: failed program was:" >&5
20662 sed 's/^/| /' conftest.$ac_ext >&5
20663
20664 ( exit $ac_status )
20665 ac_cv_func_malloc_0_nonnull=no
20666 fi
20667 rm -rf conftest.dSYM
20668 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20669 fi
20670
20671
20672 fi
20673 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20674 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
20675 if test $ac_cv_func_malloc_0_nonnull = yes; then
20676   gl_cv_func_malloc_0_nonnull=1
20677 else
20678   gl_cv_func_malloc_0_nonnull=0
20679 fi
20680
20681
20682
20683 cat >>confdefs.h <<_ACEOF
20684 #define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull
20685 _ACEOF
20686
20687
20688
20689
20690
20691
20692
20693
20694
20695   { $as_echo "$as_me:$LINENO: checking for a traditional japanese locale" >&5
20696 $as_echo_n "checking for a traditional japanese locale... " >&6; }
20697 if test "${gt_cv_locale_ja+set}" = set; then
20698   $as_echo_n "(cached) " >&6
20699 else
20700
20701     cat >conftest.$ac_ext <<_ACEOF
20702 /* confdefs.h.  */
20703 _ACEOF
20704 cat confdefs.h >>conftest.$ac_ext
20705 cat >>conftest.$ac_ext <<_ACEOF
20706 /* end confdefs.h.  */
20707
20708 #include <locale.h>
20709 #include <time.h>
20710 #if HAVE_LANGINFO_CODESET
20711 # include <langinfo.h>
20712 #endif
20713 #include <stdlib.h>
20714 #include <string.h>
20715 struct tm t;
20716 char buf[16];
20717 int main ()
20718 {
20719   const char *p;
20720   /* Check whether the given locale name is recognized by the system.  */
20721 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
20722   /* On native Win32, setlocale(category, "") looks at the system settings,
20723      not at the environment variables.  Also, when an encoding suffix such
20724      as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE
20725      category of the locale to "C".  */
20726   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
20727       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
20728     return 1;
20729 #else
20730   if (setlocale (LC_ALL, "") == NULL) return 1;
20731 #endif
20732   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
20733      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
20734      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
20735      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
20736      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
20737      some unit tests fail.
20738      On MirBSD 10, when an unsupported locale is specified, setlocale()
20739      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
20740 #if HAVE_LANGINFO_CODESET
20741   {
20742     const char *cs = nl_langinfo (CODESET);
20743     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
20744         || strcmp (cs, "UTF-8") == 0)
20745       return 1;
20746   }
20747 #endif
20748 #ifdef __CYGWIN__
20749   /* On Cygwin, avoid locale names without encoding suffix, because the
20750      locale_charset() function relies on the encoding suffix.  Note that
20751      LC_ALL is set on the command line.  */
20752   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
20753 #endif
20754   /* Check whether MB_CUR_MAX is > 1.  This excludes the dysfunctional locales
20755      on Cygwin 1.5.x.  */
20756   if (MB_CUR_MAX == 1)
20757     return 1;
20758   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
20759      This excludes the UTF-8 encoding (except on MirBSD).  */
20760   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
20761   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
20762   for (p = buf; *p != '\0'; p++)
20763     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
20764       return 1;
20765   return 0;
20766 }
20767
20768 _ACEOF
20769     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20770   (eval $ac_link) 2>&5
20771   ac_status=$?
20772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20773   (exit $ac_status); } && test -s conftest$ac_exeext; then
20774       case "$host_os" in
20775         # Handle native Windows specially, because there setlocale() interprets
20776         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
20777         # "fr" or "fra" as "French" or "French_France.1252",
20778         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
20779         # "ja" as "Japanese" or "Japanese_Japan.932",
20780         # and similar.
20781         mingw*)
20782           # Note that on native Win32, the Japanese locale is Japanese_Japan.932,
20783           # and CP932 is very different from EUC-JP, so we cannot use it here.
20784           gt_cv_locale_ja=none
20785           ;;
20786         *)
20787           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
20788           # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
20789           # configure script would override the LC_ALL setting. Likewise for
20790           # LC_CTYPE, which is also set at the beginning of the configure script.
20791           # Test for the AIX locale name.
20792           if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20793             gt_cv_locale_ja=ja_JP
20794           else
20795             # Test for the locale name with explicit encoding suffix.
20796             if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20797               gt_cv_locale_ja=ja_JP.EUC-JP
20798             else
20799               # Test for the HP-UX, OSF/1, NetBSD locale name.
20800               if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20801                 gt_cv_locale_ja=ja_JP.eucJP
20802               else
20803                 # Test for the IRIX, FreeBSD locale name.
20804                 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20805                   gt_cv_locale_ja=ja_JP.EUC
20806                 else
20807                   # Test for the Solaris 7 locale name.
20808                   if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20809                     gt_cv_locale_ja=ja
20810                   else
20811                     # Special test for NetBSD 1.6.
20812                     if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
20813                       gt_cv_locale_ja=ja_JP.eucJP
20814                     else
20815                       # None found.
20816                       gt_cv_locale_ja=none
20817                     fi
20818                   fi
20819                 fi
20820               fi
20821             fi
20822           fi
20823           ;;
20824       esac
20825     fi
20826     rm -fr conftest*
20827
20828 fi
20829 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_ja" >&5
20830 $as_echo "$gt_cv_locale_ja" >&6; }
20831   LOCALE_JA=$gt_cv_locale_ja
20832
20833
20834
20835
20836
20837   { $as_echo "$as_me:$LINENO: checking for a transitional chinese locale" >&5
20838 $as_echo_n "checking for a transitional chinese locale... " >&6; }
20839 if test "${gt_cv_locale_zh_CN+set}" = set; then
20840   $as_echo_n "(cached) " >&6
20841 else
20842
20843     cat >conftest.$ac_ext <<_ACEOF
20844 /* confdefs.h.  */
20845 _ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h.  */
20849
20850 #include <locale.h>
20851 #include <stdlib.h>
20852 #include <time.h>
20853 #if HAVE_LANGINFO_CODESET
20854 # include <langinfo.h>
20855 #endif
20856 #include <stdlib.h>
20857 #include <string.h>
20858 struct tm t;
20859 char buf[16];
20860 int main ()
20861 {
20862   const char *p;
20863   /* Check whether the given locale name is recognized by the system.  */
20864 #if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
20865   /* On native Win32, setlocale(category, "") looks at the system settings,
20866      not at the environment variables.  Also, when an encoding suffix such
20867      as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE
20868      category of the locale to "C".  */
20869   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
20870       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
20871     return 1;
20872 #else
20873   if (setlocale (LC_ALL, "") == NULL) return 1;
20874 #endif
20875   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
20876      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
20877      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
20878      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
20879      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
20880      some unit tests fail.
20881      On MirBSD 10, when an unsupported locale is specified, setlocale()
20882      succeeds but then nl_langinfo(CODESET) is "UTF-8".  */
20883 #if HAVE_LANGINFO_CODESET
20884   {
20885     const char *cs = nl_langinfo (CODESET);
20886     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
20887         || strcmp (cs, "UTF-8") == 0)
20888       return 1;
20889   }
20890 #endif
20891 #ifdef __CYGWIN__
20892   /* On Cygwin, avoid locale names without encoding suffix, because the
20893      locale_charset() function relies on the encoding suffix.  Note that
20894      LC_ALL is set on the command line.  */
20895   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
20896 #endif
20897   /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
20898      This excludes the UTF-8 encoding (except on MirBSD).  */
20899   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
20900   if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
20901   for (p = buf; *p != '\0'; p++)
20902     if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
20903       return 1;
20904   /* Check whether a typical GB18030 multibyte sequence is recognized as a
20905      single wide character.  This excludes the GB2312 and GBK encodings.  */
20906   if (mblen ("\203\062\332\066", 5) != 4)
20907     return 1;
20908   return 0;
20909 }
20910
20911 _ACEOF
20912     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20913   (eval $ac_link) 2>&5
20914   ac_status=$?
20915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20916   (exit $ac_status); } && test -s conftest$ac_exeext; then
20917       case "$host_os" in
20918         # Handle native Windows specially, because there setlocale() interprets
20919         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
20920         # "fr" or "fra" as "French" or "French_France.1252",
20921         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
20922         # "ja" as "Japanese" or "Japanese_Japan.932",
20923         # and similar.
20924         mingw*)
20925           # Test for the hypothetical native Win32 locale name.
20926           if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20927             gt_cv_locale_zh_CN=Chinese_China.54936
20928           else
20929             # None found.
20930             gt_cv_locale_zh_CN=none
20931           fi
20932           ;;
20933         *)
20934           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
20935           # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
20936           # configure script would override the LC_ALL setting. Likewise for
20937           # LC_CTYPE, which is also set at the beginning of the configure script.
20938           # Test for the locale name without encoding suffix.
20939           if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20940             gt_cv_locale_zh_CN=zh_CN
20941           else
20942             # Test for the locale name with explicit encoding suffix.
20943             if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
20944               gt_cv_locale_zh_CN=zh_CN.GB18030
20945             else
20946               # None found.
20947               gt_cv_locale_zh_CN=none
20948             fi
20949           fi
20950           ;;
20951       esac
20952     else
20953       # If there was a link error, due to mblen(), the system is so old that
20954       # it certainly doesn't have a chinese locale.
20955       gt_cv_locale_zh_CN=none
20956     fi
20957     rm -fr conftest*
20958
20959 fi
20960 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_zh_CN" >&5
20961 $as_echo "$gt_cv_locale_zh_CN" >&6; }
20962   LOCALE_ZH_CN=$gt_cv_locale_zh_CN
20963
20964
20965
20966
20967   { $as_echo "$as_me:$LINENO: checking for a french Unicode locale" >&5
20968 $as_echo_n "checking for a french Unicode locale... " >&6; }
20969 if test "${gt_cv_locale_fr_utf8+set}" = set; then
20970   $as_echo_n "(cached) " >&6
20971 else
20972
20973     cat >conftest.$ac_ext <<_ACEOF
20974 /* confdefs.h.  */
20975 _ACEOF
20976 cat confdefs.h >>conftest.$ac_ext
20977 cat >>conftest.$ac_ext <<_ACEOF
20978 /* end confdefs.h.  */
20979
20980 #include <locale.h>
20981 #include <time.h>
20982 #if HAVE_LANGINFO_CODESET
20983 # include <langinfo.h>
20984 #endif
20985 #include <stdlib.h>
20986 #include <string.h>
20987 struct tm t;
20988 char buf[16];
20989 int main () {
20990   /* On BeOS and Haiku, locales are not implemented in libc.  Rather, libintl
20991      imitates locale dependent behaviour by looking at the environment
20992      variables, and all locales use the UTF-8 encoding.  */
20993 #if !(defined __BEOS__ || defined __HAIKU__)
20994   /* Check whether the given locale name is recognized by the system.  */
20995 # if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
20996   /* On native Win32, setlocale(category, "") looks at the system settings,
20997      not at the environment variables.  Also, when an encoding suffix such
20998      as ".65001" or ".54936" is speficied, it succeeds but sets the LC_CTYPE
20999      category of the locale to "C".  */
21000   if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
21001       || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
21002     return 1;
21003 # else
21004   if (setlocale (LC_ALL, "") == NULL) return 1;
21005 # endif
21006   /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
21007      On MacOS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
21008      is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
21009      On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
21010      succeeds but then nl_langinfo(CODESET) is "646". In this situation,
21011      some unit tests fail.  */
21012 # if HAVE_LANGINFO_CODESET
21013   {
21014     const char *cs = nl_langinfo (CODESET);
21015     if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
21016       return 1;
21017   }
21018 # endif
21019 # ifdef __CYGWIN__
21020   /* On Cygwin, avoid locale names without encoding suffix, because the
21021      locale_charset() function relies on the encoding suffix.  Note that
21022      LC_ALL is set on the command line.  */
21023   if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
21024 # endif
21025   /* Check whether in the abbreviation of the second month, the second
21026      character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
21027      two bytes long, with UTF-8 encoding.  */
21028   t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
21029   if (strftime (buf, sizeof (buf), "%b", &t) < 4
21030       || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
21031     return 1;
21032 #endif
21033   /* Check whether the decimal separator is a comma.
21034      On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
21035      are nl_langinfo(RADIXCHAR) are both ".".  */
21036   if (localeconv () ->decimal_point[0] != ',') return 1;
21037   return 0;
21038 }
21039
21040 _ACEOF
21041     if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21042   (eval $ac_link) 2>&5
21043   ac_status=$?
21044   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045   (exit $ac_status); } && test -s conftest$ac_exeext; then
21046       case "$host_os" in
21047         # Handle native Windows specially, because there setlocale() interprets
21048         # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
21049         # "fr" or "fra" as "French" or "French_France.1252",
21050         # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
21051         # "ja" as "Japanese" or "Japanese_Japan.932",
21052         # and similar.
21053         mingw*)
21054           # Test for the hypothetical native Win32 locale name.
21055           if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
21056             gt_cv_locale_fr_utf8=French_France.65001
21057           else
21058             # None found.
21059             gt_cv_locale_fr_utf8=none
21060           fi
21061           ;;
21062         *)
21063           # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
21064           # otherwise on MacOS X 10.3.5 the LC_TIME=C from the beginning of the
21065           # configure script would override the LC_ALL setting. Likewise for
21066           # LC_CTYPE, which is also set at the beginning of the configure script.
21067           # Test for the usual locale name.
21068           if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
21069             gt_cv_locale_fr_utf8=fr_FR
21070           else
21071             # Test for the locale name with explicit encoding suffix.
21072             if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
21073               gt_cv_locale_fr_utf8=fr_FR.UTF-8
21074             else
21075               # Test for the Solaris 7 locale name.
21076               if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
21077                 gt_cv_locale_fr_utf8=fr.UTF-8
21078               else
21079                 # None found.
21080                 gt_cv_locale_fr_utf8=none
21081               fi
21082             fi
21083           fi
21084           ;;
21085       esac
21086     fi
21087     rm -fr conftest*
21088
21089 fi
21090 { $as_echo "$as_me:$LINENO: result: $gt_cv_locale_fr_utf8" >&5
21091 $as_echo "$gt_cv_locale_fr_utf8" >&6; }
21092   LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
21093
21094
21095
21096   GNULIB_MEMCHR=0;
21097   GNULIB_MEMMEM=0;
21098   GNULIB_MEMPCPY=0;
21099   GNULIB_MEMRCHR=0;
21100   GNULIB_RAWMEMCHR=0;
21101   GNULIB_STPCPY=0;
21102   GNULIB_STPNCPY=0;
21103   GNULIB_STRCHRNUL=0;
21104   GNULIB_STRDUP=0;
21105   GNULIB_STRNCAT=0;
21106   GNULIB_STRNDUP=0;
21107   GNULIB_STRNLEN=0;
21108   GNULIB_STRPBRK=0;
21109   GNULIB_STRSEP=0;
21110   GNULIB_STRSTR=0;
21111   GNULIB_STRCASESTR=0;
21112   GNULIB_STRTOK_R=0;
21113   GNULIB_MBSLEN=0;
21114   GNULIB_MBSNLEN=0;
21115   GNULIB_MBSCHR=0;
21116   GNULIB_MBSRCHR=0;
21117   GNULIB_MBSSTR=0;
21118   GNULIB_MBSCASECMP=0;
21119   GNULIB_MBSNCASECMP=0;
21120   GNULIB_MBSPCASECMP=0;
21121   GNULIB_MBSCASESTR=0;
21122   GNULIB_MBSCSPN=0;
21123   GNULIB_MBSPBRK=0;
21124   GNULIB_MBSSPN=0;
21125   GNULIB_MBSSEP=0;
21126   GNULIB_MBSTOK_R=0;
21127   GNULIB_STRERROR=0;
21128   GNULIB_STRERROR_R=0;
21129   GNULIB_STRSIGNAL=0;
21130   GNULIB_STRVERSCMP=0;
21131   HAVE_MBSLEN=0;
21132     HAVE_MEMCHR=1;
21133   HAVE_DECL_MEMMEM=1;
21134   HAVE_MEMPCPY=1;
21135   HAVE_DECL_MEMRCHR=1;
21136   HAVE_RAWMEMCHR=1;
21137   HAVE_STPCPY=1;
21138   HAVE_STPNCPY=1;
21139   HAVE_STRCHRNUL=1;
21140   HAVE_DECL_STRDUP=1;
21141   HAVE_DECL_STRNDUP=1;
21142   HAVE_DECL_STRNLEN=1;
21143   HAVE_STRPBRK=1;
21144   HAVE_STRSEP=1;
21145   HAVE_STRCASESTR=1;
21146   HAVE_DECL_STRTOK_R=1;
21147   HAVE_DECL_STRERROR_R=1;
21148   HAVE_DECL_STRSIGNAL=1;
21149   HAVE_STRVERSCMP=1;
21150   REPLACE_MEMCHR=0;
21151   REPLACE_MEMMEM=0;
21152   REPLACE_STPNCPY=0;
21153   REPLACE_STRDUP=0;
21154   REPLACE_STRSTR=0;
21155   REPLACE_STRCASESTR=0;
21156   REPLACE_STRERROR=0;
21157   REPLACE_STRERROR_R=0;
21158   REPLACE_STRNCAT=0;
21159   REPLACE_STRNDUP=0;
21160   REPLACE_STRNLEN=0;
21161   REPLACE_STRSIGNAL=0;
21162   REPLACE_STRTOK_R=0;
21163   UNDEFINE_STRTOK_R=0;
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
21176   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
21177   # irrelevant for anonymous mappings.
21178   { $as_echo "$as_me:$LINENO: checking for mmap" >&5
21179 $as_echo_n "checking for mmap... " >&6; }
21180 if test "${ac_cv_func_mmap+set}" = set; then
21181   $as_echo_n "(cached) " >&6
21182 else
21183   cat >conftest.$ac_ext <<_ACEOF
21184 /* confdefs.h.  */
21185 _ACEOF
21186 cat confdefs.h >>conftest.$ac_ext
21187 cat >>conftest.$ac_ext <<_ACEOF
21188 /* end confdefs.h.  */
21189 /* Define mmap to an innocuous variant, in case <limits.h> declares mmap.
21190    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
21191 #define mmap innocuous_mmap
21192
21193 /* System header to define __stub macros and hopefully few prototypes,
21194     which can conflict with char mmap (); below.
21195     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21196     <limits.h> exists even on freestanding compilers.  */
21197
21198 #ifdef __STDC__
21199 # include <limits.h>
21200 #else
21201 # include <assert.h>
21202 #endif
21203
21204 #undef mmap
21205
21206 /* Override any GCC internal prototype to avoid an error.
21207    Use char because int might match the return type of a GCC
21208    builtin and then its argument prototype would still apply.  */
21209 #ifdef __cplusplus
21210 extern "C"
21211 #endif
21212 char mmap ();
21213 /* The GNU C library defines this for functions which it implements
21214     to always fail with ENOSYS.  Some functions are actually named
21215     something starting with __ and the normal name is an alias.  */
21216 #if defined __stub_mmap || defined __stub___mmap
21217 choke me
21218 #endif
21219
21220 int
21221 main ()
21222 {
21223 return mmap ();
21224   ;
21225   return 0;
21226 }
21227 _ACEOF
21228 rm -f conftest.$ac_objext conftest$ac_exeext
21229 if { (ac_try="$ac_link"
21230 case "(($ac_try" in
21231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232   *) ac_try_echo=$ac_try;;
21233 esac
21234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21235 $as_echo "$ac_try_echo") >&5
21236   (eval "$ac_link") 2>conftest.er1
21237   ac_status=$?
21238   grep -v '^ *+' conftest.er1 >conftest.err
21239   rm -f conftest.er1
21240   cat conftest.err >&5
21241   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21242   (exit $ac_status); } && {
21243          test -z "$ac_c_werror_flag" ||
21244          test ! -s conftest.err
21245        } && test -s conftest$ac_exeext && {
21246          test "$cross_compiling" = yes ||
21247          $as_test_x conftest$ac_exeext
21248        }; then
21249   ac_cv_func_mmap=yes
21250 else
21251   $as_echo "$as_me: failed program was:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21253
21254         ac_cv_func_mmap=no
21255 fi
21256
21257 rm -rf conftest.dSYM
21258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21259       conftest$ac_exeext conftest.$ac_ext
21260 fi
21261 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap" >&5
21262 $as_echo "$ac_cv_func_mmap" >&6; }
21263 if test "x$ac_cv_func_mmap" = x""yes; then
21264   gl_have_mmap=yes
21265 else
21266   gl_have_mmap=no
21267 fi
21268
21269
21270   # Try to allow MAP_ANONYMOUS.
21271   gl_have_mmap_anonymous=no
21272   if test $gl_have_mmap = yes; then
21273     { $as_echo "$as_me:$LINENO: checking for MAP_ANONYMOUS" >&5
21274 $as_echo_n "checking for MAP_ANONYMOUS... " >&6; }
21275     cat >conftest.$ac_ext <<_ACEOF
21276 /* confdefs.h.  */
21277 _ACEOF
21278 cat confdefs.h >>conftest.$ac_ext
21279 cat >>conftest.$ac_ext <<_ACEOF
21280 /* end confdefs.h.  */
21281
21282 #include <sys/mman.h>
21283 #ifdef MAP_ANONYMOUS
21284     I cant identify this map.
21285 #endif
21286
21287 _ACEOF
21288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21289   $EGREP "I cant identify this map." >/dev/null 2>&1; then
21290   gl_have_mmap_anonymous=yes
21291 fi
21292 rm -f conftest*
21293
21294     if test $gl_have_mmap_anonymous != yes; then
21295       cat >conftest.$ac_ext <<_ACEOF
21296 /* confdefs.h.  */
21297 _ACEOF
21298 cat confdefs.h >>conftest.$ac_ext
21299 cat >>conftest.$ac_ext <<_ACEOF
21300 /* end confdefs.h.  */
21301
21302 #include <sys/mman.h>
21303 #ifdef MAP_ANON
21304     I cant identify this map.
21305 #endif
21306
21307 _ACEOF
21308 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21309   $EGREP "I cant identify this map." >/dev/null 2>&1; then
21310
21311 cat >>confdefs.h <<\_ACEOF
21312 #define MAP_ANONYMOUS MAP_ANON
21313 _ACEOF
21314
21315          gl_have_mmap_anonymous=yes
21316 fi
21317 rm -f conftest*
21318
21319     fi
21320     { $as_echo "$as_me:$LINENO: result: $gl_have_mmap_anonymous" >&5
21321 $as_echo "$gl_have_mmap_anonymous" >&6; }
21322     if test $gl_have_mmap_anonymous = yes; then
21323
21324 cat >>confdefs.h <<\_ACEOF
21325 #define HAVE_MAP_ANONYMOUS 1
21326 _ACEOF
21327
21328     fi
21329   fi
21330
21331
21332
21333
21334
21335
21336
21337
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349
21350
21351   if test $ac_cv_func_memchr = yes; then
21352     # Detect platform-specific bugs in some versions of glibc:
21353     # memchr should not dereference anything with length 0
21354     #   http://bugzilla.redhat.com/499689
21355     # memchr should not dereference overestimated length after a match
21356     #   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
21357     #   http://sourceware.org/bugzilla/show_bug.cgi?id=10162
21358     # Assume that memchr works on platforms that lack mprotect.
21359     { $as_echo "$as_me:$LINENO: checking whether memchr works" >&5
21360 $as_echo_n "checking whether memchr works... " >&6; }
21361 if test "${gl_cv_func_memchr_works+set}" = set; then
21362   $as_echo_n "(cached) " >&6
21363 else
21364   if test "$cross_compiling" = yes; then
21365          gl_cv_func_memchr_works="guessing no"
21366 else
21367   cat >conftest.$ac_ext <<_ACEOF
21368 /* confdefs.h.  */
21369 _ACEOF
21370 cat confdefs.h >>conftest.$ac_ext
21371 cat >>conftest.$ac_ext <<_ACEOF
21372 /* end confdefs.h.  */
21373
21374 #include <string.h>
21375 #if HAVE_SYS_MMAN_H
21376 # include <fcntl.h>
21377 # include <unistd.h>
21378 # include <sys/types.h>
21379 # include <sys/mman.h>
21380 # ifndef MAP_FILE
21381 #  define MAP_FILE 0
21382 # endif
21383 #endif
21384
21385 int
21386 main ()
21387 {
21388
21389   int result = 0;
21390   char *fence = NULL;
21391 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
21392 # if HAVE_MAP_ANONYMOUS
21393   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
21394   const int fd = -1;
21395 # else /* !HAVE_MAP_ANONYMOUS */
21396   const int flags = MAP_FILE | MAP_PRIVATE;
21397   int fd = open ("/dev/zero", O_RDONLY, 0666);
21398   if (fd >= 0)
21399 # endif
21400     {
21401       int pagesize = getpagesize ();
21402       char *two_pages =
21403         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
21404                        flags, fd, 0);
21405       if (two_pages != (char *)(-1)
21406           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
21407         fence = two_pages + pagesize;
21408     }
21409 #endif
21410   if (fence)
21411     {
21412       if (memchr (fence, 0, 0))
21413         result |= 1;
21414       strcpy (fence - 9, "12345678");
21415       if (memchr (fence - 9, 0, 79) != fence - 1)
21416         result |= 2;
21417       if (memchr (fence - 1, 0, 3) != fence - 1)
21418         result |= 4;
21419     }
21420   return result;
21421
21422   ;
21423   return 0;
21424 }
21425 _ACEOF
21426 rm -f conftest$ac_exeext
21427 if { (ac_try="$ac_link"
21428 case "(($ac_try" in
21429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21430   *) ac_try_echo=$ac_try;;
21431 esac
21432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21433 $as_echo "$ac_try_echo") >&5
21434   (eval "$ac_link") 2>&5
21435   ac_status=$?
21436   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21437   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21438   { (case "(($ac_try" in
21439   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21440   *) ac_try_echo=$ac_try;;
21441 esac
21442 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21443 $as_echo "$ac_try_echo") >&5
21444   (eval "$ac_try") 2>&5
21445   ac_status=$?
21446   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21447   (exit $ac_status); }; }; then
21448   gl_cv_func_memchr_works=yes
21449 else
21450   $as_echo "$as_me: program exited with status $ac_status" >&5
21451 $as_echo "$as_me: failed program was:" >&5
21452 sed 's/^/| /' conftest.$ac_ext >&5
21453
21454 ( exit $ac_status )
21455 gl_cv_func_memchr_works=no
21456 fi
21457 rm -rf conftest.dSYM
21458 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21459 fi
21460
21461
21462 fi
21463 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_memchr_works" >&5
21464 $as_echo "$gl_cv_func_memchr_works" >&6; }
21465     if test "$gl_cv_func_memchr_works" != yes; then
21466       REPLACE_MEMCHR=1
21467     fi
21468   else
21469     HAVE_MEMCHR=0
21470   fi
21471   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
21472
21473
21474
21475
21476
21477
21478
21479
21480   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
21481
21482
21483
21484 for ac_header in bp-sym.h
21485 do
21486 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21488   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21489 $as_echo_n "checking for $ac_header... " >&6; }
21490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21491   $as_echo_n "(cached) " >&6
21492 fi
21493 ac_res=`eval 'as_val=${'$as_ac_Header'}
21494                  $as_echo "$as_val"'`
21495                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21496 $as_echo "$ac_res" >&6; }
21497 else
21498   # Is the header compilable?
21499 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
21500 $as_echo_n "checking $ac_header usability... " >&6; }
21501 cat >conftest.$ac_ext <<_ACEOF
21502 /* confdefs.h.  */
21503 _ACEOF
21504 cat confdefs.h >>conftest.$ac_ext
21505 cat >>conftest.$ac_ext <<_ACEOF
21506 /* end confdefs.h.  */
21507 $ac_includes_default
21508 #include <$ac_header>
21509 _ACEOF
21510 rm -f conftest.$ac_objext
21511 if { (ac_try="$ac_compile"
21512 case "(($ac_try" in
21513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21514   *) ac_try_echo=$ac_try;;
21515 esac
21516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21517 $as_echo "$ac_try_echo") >&5
21518   (eval "$ac_compile") 2>conftest.er1
21519   ac_status=$?
21520   grep -v '^ *+' conftest.er1 >conftest.err
21521   rm -f conftest.er1
21522   cat conftest.err >&5
21523   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21524   (exit $ac_status); } && {
21525          test -z "$ac_c_werror_flag" ||
21526          test ! -s conftest.err
21527        } && test -s conftest.$ac_objext; then
21528   ac_header_compiler=yes
21529 else
21530   $as_echo "$as_me: failed program was:" >&5
21531 sed 's/^/| /' conftest.$ac_ext >&5
21532
21533         ac_header_compiler=no
21534 fi
21535
21536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21537 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21538 $as_echo "$ac_header_compiler" >&6; }
21539
21540 # Is the header present?
21541 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
21542 $as_echo_n "checking $ac_header presence... " >&6; }
21543 cat >conftest.$ac_ext <<_ACEOF
21544 /* confdefs.h.  */
21545 _ACEOF
21546 cat confdefs.h >>conftest.$ac_ext
21547 cat >>conftest.$ac_ext <<_ACEOF
21548 /* end confdefs.h.  */
21549 #include <$ac_header>
21550 _ACEOF
21551 if { (ac_try="$ac_cpp conftest.$ac_ext"
21552 case "(($ac_try" in
21553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21554   *) ac_try_echo=$ac_try;;
21555 esac
21556 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21557 $as_echo "$ac_try_echo") >&5
21558   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21559   ac_status=$?
21560   grep -v '^ *+' conftest.er1 >conftest.err
21561   rm -f conftest.er1
21562   cat conftest.err >&5
21563   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564   (exit $ac_status); } >/dev/null && {
21565          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21566          test ! -s conftest.err
21567        }; then
21568   ac_header_preproc=yes
21569 else
21570   $as_echo "$as_me: failed program was:" >&5
21571 sed 's/^/| /' conftest.$ac_ext >&5
21572
21573   ac_header_preproc=no
21574 fi
21575
21576 rm -f conftest.err conftest.$ac_ext
21577 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21578 $as_echo "$ac_header_preproc" >&6; }
21579
21580 # So?  What about this header?
21581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21582   yes:no: )
21583     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21584 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21585     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21586 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21587     ac_header_preproc=yes
21588     ;;
21589   no:yes:* )
21590     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21591 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21592     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
21593 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
21594     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21595 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21596     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
21597 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
21598     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21599 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21600     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21601 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21602     ( cat <<\_ASBOX
21603 ## ------------------------------ ##
21604 ## Report this to bug-tar@gnu.org ##
21605 ## ------------------------------ ##
21606 _ASBOX
21607      ) | sed "s/^/$as_me: WARNING:     /" >&2
21608     ;;
21609 esac
21610 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
21611 $as_echo_n "checking for $ac_header... " >&6; }
21612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21613   $as_echo_n "(cached) " >&6
21614 else
21615   eval "$as_ac_Header=\$ac_header_preproc"
21616 fi
21617 ac_res=`eval 'as_val=${'$as_ac_Header'}
21618                  $as_echo "$as_val"'`
21619                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21620 $as_echo "$ac_res" >&6; }
21621
21622 fi
21623 as_val=`eval 'as_val=${'$as_ac_Header'}
21624                  $as_echo "$as_val"'`
21625    if test "x$as_val" = x""yes; then
21626   cat >>confdefs.h <<_ACEOF
21627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21628 _ACEOF
21629
21630 fi
21631
21632 done
21633
21634
21635   fi
21636
21637 { $as_echo "$as_me:$LINENO: checking whether memrchr is declared" >&5
21638 $as_echo_n "checking whether memrchr is declared... " >&6; }
21639 if test "${ac_cv_have_decl_memrchr+set}" = set; then
21640   $as_echo_n "(cached) " >&6
21641 else
21642   cat >conftest.$ac_ext <<_ACEOF
21643 /* confdefs.h.  */
21644 _ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h.  */
21648 $ac_includes_default
21649 int
21650 main ()
21651 {
21652 #ifndef memrchr
21653   (void) memrchr;
21654 #endif
21655
21656   ;
21657   return 0;
21658 }
21659 _ACEOF
21660 rm -f conftest.$ac_objext
21661 if { (ac_try="$ac_compile"
21662 case "(($ac_try" in
21663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21664   *) ac_try_echo=$ac_try;;
21665 esac
21666 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21667 $as_echo "$ac_try_echo") >&5
21668   (eval "$ac_compile") 2>conftest.er1
21669   ac_status=$?
21670   grep -v '^ *+' conftest.er1 >conftest.err
21671   rm -f conftest.er1
21672   cat conftest.err >&5
21673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21674   (exit $ac_status); } && {
21675          test -z "$ac_c_werror_flag" ||
21676          test ! -s conftest.err
21677        } && test -s conftest.$ac_objext; then
21678   ac_cv_have_decl_memrchr=yes
21679 else
21680   $as_echo "$as_me: failed program was:" >&5
21681 sed 's/^/| /' conftest.$ac_ext >&5
21682
21683         ac_cv_have_decl_memrchr=no
21684 fi
21685
21686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21687 fi
21688 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_memrchr" >&5
21689 $as_echo "$ac_cv_have_decl_memrchr" >&6; }
21690 if test "x$ac_cv_have_decl_memrchr" = x""yes; then
21691
21692 cat >>confdefs.h <<_ACEOF
21693 #define HAVE_DECL_MEMRCHR 1
21694 _ACEOF
21695
21696
21697 else
21698   cat >>confdefs.h <<_ACEOF
21699 #define HAVE_DECL_MEMRCHR 0
21700 _ACEOF
21701
21702
21703 fi
21704
21705
21706
21707
21708
21709
21710
21711
21712
21713
21714
21715   GNULIB_MKTIME=0;
21716   GNULIB_NANOSLEEP=0;
21717   GNULIB_STRPTIME=0;
21718   GNULIB_TIMEGM=0;
21719   GNULIB_TIME_R=0;
21720     HAVE_DECL_LOCALTIME_R=1;
21721   HAVE_NANOSLEEP=1;
21722   HAVE_STRPTIME=1;
21723   HAVE_TIMEGM=1;
21724         REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
21725   REPLACE_MKTIME=GNULIB_PORTCHECK;
21726   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
21727   REPLACE_TIMEGM=GNULIB_PORTCHECK;
21728
21729
21730
21731
21732
21733
21734   # parse-datetime.y works with bison only.
21735   : ${YACC='bison -y'}
21736
21737
21738   { $as_echo "$as_me:$LINENO: checking for compound literals" >&5
21739 $as_echo_n "checking for compound literals... " >&6; }
21740 if test "${gl_cv_compound_literals+set}" = set; then
21741   $as_echo_n "(cached) " >&6
21742 else
21743   cat >conftest.$ac_ext <<_ACEOF
21744 /* confdefs.h.  */
21745 _ACEOF
21746 cat confdefs.h >>conftest.$ac_ext
21747 cat >>conftest.$ac_ext <<_ACEOF
21748 /* end confdefs.h.  */
21749 struct s { int i, j; };
21750 int
21751 main ()
21752 {
21753 struct s t = (struct s) { 3, 4 };
21754         if (t.i != 0) return 0;
21755   ;
21756   return 0;
21757 }
21758 _ACEOF
21759 rm -f conftest.$ac_objext
21760 if { (ac_try="$ac_compile"
21761 case "(($ac_try" in
21762   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21763   *) ac_try_echo=$ac_try;;
21764 esac
21765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21766 $as_echo "$ac_try_echo") >&5
21767   (eval "$ac_compile") 2>conftest.er1
21768   ac_status=$?
21769   grep -v '^ *+' conftest.er1 >conftest.err
21770   rm -f conftest.er1
21771   cat conftest.err >&5
21772   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773   (exit $ac_status); } && {
21774          test -z "$ac_c_werror_flag" ||
21775          test ! -s conftest.err
21776        } && test -s conftest.$ac_objext; then
21777   gl_cv_compound_literals=yes
21778 else
21779   $as_echo "$as_me: failed program was:" >&5
21780 sed 's/^/| /' conftest.$ac_ext >&5
21781
21782         gl_cv_compound_literals=no
21783 fi
21784
21785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21786 fi
21787 { $as_echo "$as_me:$LINENO: result: $gl_cv_compound_literals" >&5
21788 $as_echo "$gl_cv_compound_literals" >&6; }
21789   if test $gl_cv_compound_literals = yes; then
21790
21791 cat >>confdefs.h <<\_ACEOF
21792 #define HAVE_COMPOUND_LITERALS 1
21793 _ACEOF
21794
21795   fi
21796
21797 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
21798 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
21799 if test "${ac_cv_struct_tm+set}" = set; then
21800   $as_echo_n "(cached) " >&6
21801 else
21802   cat >conftest.$ac_ext <<_ACEOF
21803 /* confdefs.h.  */
21804 _ACEOF
21805 cat confdefs.h >>conftest.$ac_ext
21806 cat >>conftest.$ac_ext <<_ACEOF
21807 /* end confdefs.h.  */
21808 #include <sys/types.h>
21809 #include <time.h>
21810
21811 int
21812 main ()
21813 {
21814 struct tm tm;
21815                                      int *p = &tm.tm_sec;
21816                                      return !p;
21817   ;
21818   return 0;
21819 }
21820 _ACEOF
21821 rm -f conftest.$ac_objext
21822 if { (ac_try="$ac_compile"
21823 case "(($ac_try" in
21824   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825   *) ac_try_echo=$ac_try;;
21826 esac
21827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21828 $as_echo "$ac_try_echo") >&5
21829   (eval "$ac_compile") 2>conftest.er1
21830   ac_status=$?
21831   grep -v '^ *+' conftest.er1 >conftest.err
21832   rm -f conftest.er1
21833   cat conftest.err >&5
21834   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21835   (exit $ac_status); } && {
21836          test -z "$ac_c_werror_flag" ||
21837          test ! -s conftest.err
21838        } && test -s conftest.$ac_objext; then
21839   ac_cv_struct_tm=time.h
21840 else
21841   $as_echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21843
21844         ac_cv_struct_tm=sys/time.h
21845 fi
21846
21847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21848 fi
21849 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
21850 $as_echo "$ac_cv_struct_tm" >&6; }
21851 if test $ac_cv_struct_tm = sys/time.h; then
21852
21853 cat >>confdefs.h <<\_ACEOF
21854 #define TM_IN_SYS_TIME 1
21855 _ACEOF
21856
21857 fi
21858
21859
21860  { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
21861 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
21862 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
21863   $as_echo_n "(cached) " >&6
21864 else
21865   cat >conftest.$ac_ext <<_ACEOF
21866 /* confdefs.h.  */
21867 _ACEOF
21868 cat confdefs.h >>conftest.$ac_ext
21869 cat >>conftest.$ac_ext <<_ACEOF
21870 /* end confdefs.h.  */
21871 #include <time.h>
21872
21873 int
21874 main ()
21875 {
21876 static struct tm ac_aggr;
21877 if (ac_aggr.tm_gmtoff)
21878 return 0;
21879   ;
21880   return 0;
21881 }
21882 _ACEOF
21883 rm -f conftest.$ac_objext
21884 if { (ac_try="$ac_compile"
21885 case "(($ac_try" in
21886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887   *) ac_try_echo=$ac_try;;
21888 esac
21889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21890 $as_echo "$ac_try_echo") >&5
21891   (eval "$ac_compile") 2>conftest.er1
21892   ac_status=$?
21893   grep -v '^ *+' conftest.er1 >conftest.err
21894   rm -f conftest.er1
21895   cat conftest.err >&5
21896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897   (exit $ac_status); } && {
21898          test -z "$ac_c_werror_flag" ||
21899          test ! -s conftest.err
21900        } && test -s conftest.$ac_objext; then
21901   ac_cv_member_struct_tm_tm_gmtoff=yes
21902 else
21903   $as_echo "$as_me: failed program was:" >&5
21904 sed 's/^/| /' conftest.$ac_ext >&5
21905
21906         cat >conftest.$ac_ext <<_ACEOF
21907 /* confdefs.h.  */
21908 _ACEOF
21909 cat confdefs.h >>conftest.$ac_ext
21910 cat >>conftest.$ac_ext <<_ACEOF
21911 /* end confdefs.h.  */
21912 #include <time.h>
21913
21914 int
21915 main ()
21916 {
21917 static struct tm ac_aggr;
21918 if (sizeof ac_aggr.tm_gmtoff)
21919 return 0;
21920   ;
21921   return 0;
21922 }
21923 _ACEOF
21924 rm -f conftest.$ac_objext
21925 if { (ac_try="$ac_compile"
21926 case "(($ac_try" in
21927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21928   *) ac_try_echo=$ac_try;;
21929 esac
21930 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21931 $as_echo "$ac_try_echo") >&5
21932   (eval "$ac_compile") 2>conftest.er1
21933   ac_status=$?
21934   grep -v '^ *+' conftest.er1 >conftest.err
21935   rm -f conftest.er1
21936   cat conftest.err >&5
21937   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21938   (exit $ac_status); } && {
21939          test -z "$ac_c_werror_flag" ||
21940          test ! -s conftest.err
21941        } && test -s conftest.$ac_objext; then
21942   ac_cv_member_struct_tm_tm_gmtoff=yes
21943 else
21944   $as_echo "$as_me: failed program was:" >&5
21945 sed 's/^/| /' conftest.$ac_ext >&5
21946
21947         ac_cv_member_struct_tm_tm_gmtoff=no
21948 fi
21949
21950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21951 fi
21952
21953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21954 fi
21955 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
21956 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
21957 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then
21958
21959 cat >>confdefs.h <<\_ACEOF
21960 #define HAVE_TM_GMTOFF 1
21961 _ACEOF
21962
21963 fi
21964
21965
21966
21967
21968
21969
21970
21971
21972
21973
21974 { $as_echo "$as_me:$LINENO: checking whether setenv is declared" >&5
21975 $as_echo_n "checking whether setenv is declared... " >&6; }
21976 if test "${ac_cv_have_decl_setenv+set}" = set; then
21977   $as_echo_n "(cached) " >&6
21978 else
21979   cat >conftest.$ac_ext <<_ACEOF
21980 /* confdefs.h.  */
21981 _ACEOF
21982 cat confdefs.h >>conftest.$ac_ext
21983 cat >>conftest.$ac_ext <<_ACEOF
21984 /* end confdefs.h.  */
21985 $ac_includes_default
21986 int
21987 main ()
21988 {
21989 #ifndef setenv
21990   (void) setenv;
21991 #endif
21992
21993   ;
21994   return 0;
21995 }
21996 _ACEOF
21997 rm -f conftest.$ac_objext
21998 if { (ac_try="$ac_compile"
21999 case "(($ac_try" in
22000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22001   *) ac_try_echo=$ac_try;;
22002 esac
22003 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22004 $as_echo "$ac_try_echo") >&5
22005   (eval "$ac_compile") 2>conftest.er1
22006   ac_status=$?
22007   grep -v '^ *+' conftest.er1 >conftest.err
22008   rm -f conftest.er1
22009   cat conftest.err >&5
22010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22011   (exit $ac_status); } && {
22012          test -z "$ac_c_werror_flag" ||
22013          test ! -s conftest.err
22014        } && test -s conftest.$ac_objext; then
22015   ac_cv_have_decl_setenv=yes
22016 else
22017   $as_echo "$as_me: failed program was:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22019
22020         ac_cv_have_decl_setenv=no
22021 fi
22022
22023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22024 fi
22025 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_setenv" >&5
22026 $as_echo "$ac_cv_have_decl_setenv" >&6; }
22027 if test "x$ac_cv_have_decl_setenv" = x""yes; then
22028
22029 cat >>confdefs.h <<_ACEOF
22030 #define HAVE_DECL_SETENV 1
22031 _ACEOF
22032
22033
22034 else
22035   cat >>confdefs.h <<_ACEOF
22036 #define HAVE_DECL_SETENV 0
22037 _ACEOF
22038
22039
22040 fi
22041
22042
22043
22044
22045
22046
22047
22048
22049
22050
22051   if test $ac_cv_have_decl_setenv = no; then
22052     HAVE_DECL_SETENV=0
22053   fi
22054
22055
22056
22057
22058
22059
22060   if test $ac_cv_func_setenv = no; then
22061     HAVE_SETENV=0
22062   else
22063     { $as_echo "$as_me:$LINENO: checking whether setenv validates arguments" >&5
22064 $as_echo_n "checking whether setenv validates arguments... " >&6; }
22065 if test "${gl_cv_func_setenv_works+set}" = set; then
22066   $as_echo_n "(cached) " >&6
22067 else
22068   if test "$cross_compiling" = yes; then
22069   gl_cv_func_setenv_works="guessing no"
22070 else
22071   cat >conftest.$ac_ext <<_ACEOF
22072 /* confdefs.h.  */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h.  */
22077
22078        #include <stdlib.h>
22079        #include <errno.h>
22080        #include <string.h>
22081
22082 int
22083 main ()
22084 {
22085
22086        int result = 0;
22087        {
22088          if (setenv ("", "", 0) != -1)
22089            result |= 1;
22090          else if (errno != EINVAL)
22091            result |= 2;
22092        }
22093        {
22094          if (setenv ("a", "=", 1) != 0)
22095            result |= 4;
22096          else if (strcmp (getenv ("a"), "=") != 0)
22097            result |= 8;
22098        }
22099        return result;
22100
22101   ;
22102   return 0;
22103 }
22104 _ACEOF
22105 rm -f conftest$ac_exeext
22106 if { (ac_try="$ac_link"
22107 case "(($ac_try" in
22108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22109   *) ac_try_echo=$ac_try;;
22110 esac
22111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22112 $as_echo "$ac_try_echo") >&5
22113   (eval "$ac_link") 2>&5
22114   ac_status=$?
22115   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22116   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22117   { (case "(($ac_try" in
22118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22119   *) ac_try_echo=$ac_try;;
22120 esac
22121 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22122 $as_echo "$ac_try_echo") >&5
22123   (eval "$ac_try") 2>&5
22124   ac_status=$?
22125   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22126   (exit $ac_status); }; }; then
22127   gl_cv_func_setenv_works=yes
22128 else
22129   $as_echo "$as_me: program exited with status $ac_status" >&5
22130 $as_echo "$as_me: failed program was:" >&5
22131 sed 's/^/| /' conftest.$ac_ext >&5
22132
22133 ( exit $ac_status )
22134 gl_cv_func_setenv_works=no
22135 fi
22136 rm -rf conftest.dSYM
22137 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22138 fi
22139
22140
22141 fi
22142 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_setenv_works" >&5
22143 $as_echo "$gl_cv_func_setenv_works" >&6; }
22144     if test "$gl_cv_func_setenv_works" != yes; then
22145       REPLACE_SETENV=1
22146
22147
22148
22149
22150
22151
22152
22153
22154   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
22155
22156     fi
22157   fi
22158
22159
22160
22161
22162
22163
22164
22165
22166
22167
22168 for ac_header in search.h
22169 do
22170 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22172   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22173 $as_echo_n "checking for $ac_header... " >&6; }
22174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22175   $as_echo_n "(cached) " >&6
22176 fi
22177 ac_res=`eval 'as_val=${'$as_ac_Header'}
22178                  $as_echo "$as_val"'`
22179                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22180 $as_echo "$ac_res" >&6; }
22181 else
22182   # Is the header compilable?
22183 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22184 $as_echo_n "checking $ac_header usability... " >&6; }
22185 cat >conftest.$ac_ext <<_ACEOF
22186 /* confdefs.h.  */
22187 _ACEOF
22188 cat confdefs.h >>conftest.$ac_ext
22189 cat >>conftest.$ac_ext <<_ACEOF
22190 /* end confdefs.h.  */
22191 $ac_includes_default
22192 #include <$ac_header>
22193 _ACEOF
22194 rm -f conftest.$ac_objext
22195 if { (ac_try="$ac_compile"
22196 case "(($ac_try" in
22197   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198   *) ac_try_echo=$ac_try;;
22199 esac
22200 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22201 $as_echo "$ac_try_echo") >&5
22202   (eval "$ac_compile") 2>conftest.er1
22203   ac_status=$?
22204   grep -v '^ *+' conftest.er1 >conftest.err
22205   rm -f conftest.er1
22206   cat conftest.err >&5
22207   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22208   (exit $ac_status); } && {
22209          test -z "$ac_c_werror_flag" ||
22210          test ! -s conftest.err
22211        } && test -s conftest.$ac_objext; then
22212   ac_header_compiler=yes
22213 else
22214   $as_echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22216
22217         ac_header_compiler=no
22218 fi
22219
22220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22221 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22222 $as_echo "$ac_header_compiler" >&6; }
22223
22224 # Is the header present?
22225 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22226 $as_echo_n "checking $ac_header presence... " >&6; }
22227 cat >conftest.$ac_ext <<_ACEOF
22228 /* confdefs.h.  */
22229 _ACEOF
22230 cat confdefs.h >>conftest.$ac_ext
22231 cat >>conftest.$ac_ext <<_ACEOF
22232 /* end confdefs.h.  */
22233 #include <$ac_header>
22234 _ACEOF
22235 if { (ac_try="$ac_cpp conftest.$ac_ext"
22236 case "(($ac_try" in
22237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22238   *) ac_try_echo=$ac_try;;
22239 esac
22240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22241 $as_echo "$ac_try_echo") >&5
22242   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22243   ac_status=$?
22244   grep -v '^ *+' conftest.er1 >conftest.err
22245   rm -f conftest.er1
22246   cat conftest.err >&5
22247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22248   (exit $ac_status); } >/dev/null && {
22249          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22250          test ! -s conftest.err
22251        }; then
22252   ac_header_preproc=yes
22253 else
22254   $as_echo "$as_me: failed program was:" >&5
22255 sed 's/^/| /' conftest.$ac_ext >&5
22256
22257   ac_header_preproc=no
22258 fi
22259
22260 rm -f conftest.err conftest.$ac_ext
22261 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22262 $as_echo "$ac_header_preproc" >&6; }
22263
22264 # So?  What about this header?
22265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22266   yes:no: )
22267     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22268 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22269     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22270 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22271     ac_header_preproc=yes
22272     ;;
22273   no:yes:* )
22274     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22275 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22276     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
22277 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
22278     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22279 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22280     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
22281 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
22282     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22283 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22284     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22285 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22286     ( cat <<\_ASBOX
22287 ## ------------------------------ ##
22288 ## Report this to bug-tar@gnu.org ##
22289 ## ------------------------------ ##
22290 _ASBOX
22291      ) | sed "s/^/$as_me: WARNING:     /" >&2
22292     ;;
22293 esac
22294 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22295 $as_echo_n "checking for $ac_header... " >&6; }
22296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22297   $as_echo_n "(cached) " >&6
22298 else
22299   eval "$as_ac_Header=\$ac_header_preproc"
22300 fi
22301 ac_res=`eval 'as_val=${'$as_ac_Header'}
22302                  $as_echo "$as_val"'`
22303                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22304 $as_echo "$ac_res" >&6; }
22305
22306 fi
22307 as_val=`eval 'as_val=${'$as_ac_Header'}
22308                  $as_echo "$as_val"'`
22309    if test "x$as_val" = x""yes; then
22310   cat >>confdefs.h <<_ACEOF
22311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22312 _ACEOF
22313
22314 fi
22315
22316 done
22317
22318
22319 for ac_func in tsearch
22320 do
22321 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22322 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
22323 $as_echo_n "checking for $ac_func... " >&6; }
22324 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22325   $as_echo_n "(cached) " >&6
22326 else
22327   cat >conftest.$ac_ext <<_ACEOF
22328 /* confdefs.h.  */
22329 _ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h.  */
22333 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22334    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
22335 #define $ac_func innocuous_$ac_func
22336
22337 /* System header to define __stub macros and hopefully few prototypes,
22338     which can conflict with char $ac_func (); below.
22339     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22340     <limits.h> exists even on freestanding compilers.  */
22341
22342 #ifdef __STDC__
22343 # include <limits.h>
22344 #else
22345 # include <assert.h>
22346 #endif
22347
22348 #undef $ac_func
22349
22350 /* Override any GCC internal prototype to avoid an error.
22351    Use char because int might match the return type of a GCC
22352    builtin and then its argument prototype would still apply.  */
22353 #ifdef __cplusplus
22354 extern "C"
22355 #endif
22356 char $ac_func ();
22357 /* The GNU C library defines this for functions which it implements
22358     to always fail with ENOSYS.  Some functions are actually named
22359     something starting with __ and the normal name is an alias.  */
22360 #if defined __stub_$ac_func || defined __stub___$ac_func
22361 choke me
22362 #endif
22363
22364 int
22365 main ()
22366 {
22367 return $ac_func ();
22368   ;
22369   return 0;
22370 }
22371 _ACEOF
22372 rm -f conftest.$ac_objext conftest$ac_exeext
22373 if { (ac_try="$ac_link"
22374 case "(($ac_try" in
22375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22376   *) ac_try_echo=$ac_try;;
22377 esac
22378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22379 $as_echo "$ac_try_echo") >&5
22380   (eval "$ac_link") 2>conftest.er1
22381   ac_status=$?
22382   grep -v '^ *+' conftest.er1 >conftest.err
22383   rm -f conftest.er1
22384   cat conftest.err >&5
22385   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386   (exit $ac_status); } && {
22387          test -z "$ac_c_werror_flag" ||
22388          test ! -s conftest.err
22389        } && test -s conftest$ac_exeext && {
22390          test "$cross_compiling" = yes ||
22391          $as_test_x conftest$ac_exeext
22392        }; then
22393   eval "$as_ac_var=yes"
22394 else
22395   $as_echo "$as_me: failed program was:" >&5
22396 sed 's/^/| /' conftest.$ac_ext >&5
22397
22398         eval "$as_ac_var=no"
22399 fi
22400
22401 rm -rf conftest.dSYM
22402 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22403       conftest$ac_exeext conftest.$ac_ext
22404 fi
22405 ac_res=`eval 'as_val=${'$as_ac_var'}
22406                  $as_echo "$as_val"'`
22407                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22408 $as_echo "$ac_res" >&6; }
22409 as_val=`eval 'as_val=${'$as_ac_var'}
22410                  $as_echo "$as_val"'`
22411    if test "x$as_val" = x""yes; then
22412   cat >>confdefs.h <<_ACEOF
22413 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22414 _ACEOF
22415
22416 fi
22417 done
22418
22419
22420
22421
22422
22423
22424
22425      { $as_echo "$as_me:$LINENO: checking whether snprintf returns a byte count as in C99" >&5
22426 $as_echo_n "checking whether snprintf returns a byte count as in C99... " >&6; }
22427 if test "${gl_cv_func_snprintf_retval_c99+set}" = set; then
22428   $as_echo_n "(cached) " >&6
22429 else
22430
22431       if test "$cross_compiling" = yes; then
22432
22433          case "$host_os" in
22434                                  # Guess yes on glibc systems.
22435            *-gnu*)               gl_cv_func_snprintf_retval_c99="guessing yes";;
22436                                  # Guess yes on FreeBSD >= 5.
22437            freebsd[1-4]*)        gl_cv_func_snprintf_retval_c99="guessing no";;
22438            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
22439                                  # Guess yes on MacOS X >= 10.3.
22440            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
22441            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
22442                                  # Guess yes on OpenBSD >= 3.9.
22443            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
22444                                  gl_cv_func_snprintf_retval_c99="guessing no";;
22445            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
22446                                  # Guess yes on Solaris >= 2.10.
22447            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
22448            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
22449                                  # Guess yes on AIX >= 4.
22450            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
22451            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
22452                                  # Guess yes on NetBSD >= 3.
22453            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
22454                                  gl_cv_func_snprintf_retval_c99="guessing no";;
22455            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
22456                                  # Guess yes on BeOS.
22457            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
22458                                  # If we don't know, assume the worst.
22459            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
22460          esac
22461
22462 else
22463   cat >conftest.$ac_ext <<_ACEOF
22464 /* confdefs.h.  */
22465 _ACEOF
22466 cat confdefs.h >>conftest.$ac_ext
22467 cat >>conftest.$ac_ext <<_ACEOF
22468 /* end confdefs.h.  */
22469
22470 #include <stdio.h>
22471 #include <string.h>
22472 static char buf[100];
22473 int main ()
22474 {
22475   strcpy (buf, "ABCDEF");
22476   if (snprintf (buf, 3, "%d %d", 4567, 89) != 7)
22477     return 1;
22478   if (snprintf (buf, 0, "%d %d", 4567, 89) != 7)
22479     return 2;
22480   if (snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
22481     return 3;
22482   return 0;
22483 }
22484 _ACEOF
22485 rm -f conftest$ac_exeext
22486 if { (ac_try="$ac_link"
22487 case "(($ac_try" in
22488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22489   *) ac_try_echo=$ac_try;;
22490 esac
22491 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22492 $as_echo "$ac_try_echo") >&5
22493   (eval "$ac_link") 2>&5
22494   ac_status=$?
22495   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22497   { (case "(($ac_try" in
22498   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22499   *) ac_try_echo=$ac_try;;
22500 esac
22501 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22502 $as_echo "$ac_try_echo") >&5
22503   (eval "$ac_try") 2>&5
22504   ac_status=$?
22505   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22506   (exit $ac_status); }; }; then
22507   gl_cv_func_snprintf_retval_c99=yes
22508 else
22509   $as_echo "$as_me: program exited with status $ac_status" >&5
22510 $as_echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22512
22513 ( exit $ac_status )
22514 gl_cv_func_snprintf_retval_c99=no
22515 fi
22516 rm -rf conftest.dSYM
22517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22518 fi
22519
22520
22521
22522 fi
22523 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_retval_c99" >&5
22524 $as_echo "$gl_cv_func_snprintf_retval_c99" >&6; }
22525
22526 { $as_echo "$as_me:$LINENO: checking whether snprintf is declared" >&5
22527 $as_echo_n "checking whether snprintf is declared... " >&6; }
22528 if test "${ac_cv_have_decl_snprintf+set}" = set; then
22529   $as_echo_n "(cached) " >&6
22530 else
22531   cat >conftest.$ac_ext <<_ACEOF
22532 /* confdefs.h.  */
22533 _ACEOF
22534 cat confdefs.h >>conftest.$ac_ext
22535 cat >>conftest.$ac_ext <<_ACEOF
22536 /* end confdefs.h.  */
22537 $ac_includes_default
22538 int
22539 main ()
22540 {
22541 #ifndef snprintf
22542   (void) snprintf;
22543 #endif
22544
22545   ;
22546   return 0;
22547 }
22548 _ACEOF
22549 rm -f conftest.$ac_objext
22550 if { (ac_try="$ac_compile"
22551 case "(($ac_try" in
22552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553   *) ac_try_echo=$ac_try;;
22554 esac
22555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22556 $as_echo "$ac_try_echo") >&5
22557   (eval "$ac_compile") 2>conftest.er1
22558   ac_status=$?
22559   grep -v '^ *+' conftest.er1 >conftest.err
22560   rm -f conftest.er1
22561   cat conftest.err >&5
22562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563   (exit $ac_status); } && {
22564          test -z "$ac_c_werror_flag" ||
22565          test ! -s conftest.err
22566        } && test -s conftest.$ac_objext; then
22567   ac_cv_have_decl_snprintf=yes
22568 else
22569   $as_echo "$as_me: failed program was:" >&5
22570 sed 's/^/| /' conftest.$ac_ext >&5
22571
22572         ac_cv_have_decl_snprintf=no
22573 fi
22574
22575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22576 fi
22577 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_snprintf" >&5
22578 $as_echo "$ac_cv_have_decl_snprintf" >&6; }
22579 if test "x$ac_cv_have_decl_snprintf" = x""yes; then
22580
22581 cat >>confdefs.h <<_ACEOF
22582 #define HAVE_DECL_SNPRINTF 1
22583 _ACEOF
22584
22585
22586 else
22587   cat >>confdefs.h <<_ACEOF
22588 #define HAVE_DECL_SNPRINTF 0
22589 _ACEOF
22590
22591
22592 fi
22593
22594
22595
22596     REPLACE_NULL=0;
22597   HAVE_WCHAR_T=1;
22598   STDDEF_H='';
22599
22600
22601   { $as_echo "$as_me:$LINENO: checking for wchar_t" >&5
22602 $as_echo_n "checking for wchar_t... " >&6; }
22603 if test "${gt_cv_c_wchar_t+set}" = set; then
22604   $as_echo_n "(cached) " >&6
22605 else
22606   cat >conftest.$ac_ext <<_ACEOF
22607 /* confdefs.h.  */
22608 _ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h.  */
22612 #include <stddef.h>
22613             wchar_t foo = (wchar_t)'\0';
22614 int
22615 main ()
22616 {
22617
22618   ;
22619   return 0;
22620 }
22621 _ACEOF
22622 rm -f conftest.$ac_objext
22623 if { (ac_try="$ac_compile"
22624 case "(($ac_try" in
22625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22626   *) ac_try_echo=$ac_try;;
22627 esac
22628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22629 $as_echo "$ac_try_echo") >&5
22630   (eval "$ac_compile") 2>conftest.er1
22631   ac_status=$?
22632   grep -v '^ *+' conftest.er1 >conftest.err
22633   rm -f conftest.er1
22634   cat conftest.err >&5
22635   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22636   (exit $ac_status); } && {
22637          test -z "$ac_c_werror_flag" ||
22638          test ! -s conftest.err
22639        } && test -s conftest.$ac_objext; then
22640   gt_cv_c_wchar_t=yes
22641 else
22642   $as_echo "$as_me: failed program was:" >&5
22643 sed 's/^/| /' conftest.$ac_ext >&5
22644
22645         gt_cv_c_wchar_t=no
22646 fi
22647
22648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22649 fi
22650 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_wchar_t" >&5
22651 $as_echo "$gt_cv_c_wchar_t" >&6; }
22652   if test $gt_cv_c_wchar_t = yes; then
22653
22654 cat >>confdefs.h <<\_ACEOF
22655 #define HAVE_WCHAR_T 1
22656 _ACEOF
22657
22658   fi
22659
22660
22661     HAVE_STRCASECMP=1;
22662   HAVE_DECL_STRNCASECMP=1;
22663
22664
22665
22666 { $as_echo "$as_me:$LINENO: checking whether strdup is declared" >&5
22667 $as_echo_n "checking whether strdup is declared... " >&6; }
22668 if test "${ac_cv_have_decl_strdup+set}" = set; then
22669   $as_echo_n "(cached) " >&6
22670 else
22671   cat >conftest.$ac_ext <<_ACEOF
22672 /* confdefs.h.  */
22673 _ACEOF
22674 cat confdefs.h >>conftest.$ac_ext
22675 cat >>conftest.$ac_ext <<_ACEOF
22676 /* end confdefs.h.  */
22677 $ac_includes_default
22678 int
22679 main ()
22680 {
22681 #ifndef strdup
22682   (void) strdup;
22683 #endif
22684
22685   ;
22686   return 0;
22687 }
22688 _ACEOF
22689 rm -f conftest.$ac_objext
22690 if { (ac_try="$ac_compile"
22691 case "(($ac_try" in
22692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693   *) ac_try_echo=$ac_try;;
22694 esac
22695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22696 $as_echo "$ac_try_echo") >&5
22697   (eval "$ac_compile") 2>conftest.er1
22698   ac_status=$?
22699   grep -v '^ *+' conftest.er1 >conftest.err
22700   rm -f conftest.er1
22701   cat conftest.err >&5
22702   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22703   (exit $ac_status); } && {
22704          test -z "$ac_c_werror_flag" ||
22705          test ! -s conftest.err
22706        } && test -s conftest.$ac_objext; then
22707   ac_cv_have_decl_strdup=yes
22708 else
22709   $as_echo "$as_me: failed program was:" >&5
22710 sed 's/^/| /' conftest.$ac_ext >&5
22711
22712         ac_cv_have_decl_strdup=no
22713 fi
22714
22715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22716 fi
22717 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strdup" >&5
22718 $as_echo "$ac_cv_have_decl_strdup" >&6; }
22719 if test "x$ac_cv_have_decl_strdup" = x""yes; then
22720
22721 cat >>confdefs.h <<_ACEOF
22722 #define HAVE_DECL_STRDUP 1
22723 _ACEOF
22724
22725
22726 else
22727   cat >>confdefs.h <<_ACEOF
22728 #define HAVE_DECL_STRDUP 0
22729 _ACEOF
22730
22731
22732 fi
22733
22734
22735
22736
22737
22738
22739
22740   if test -z "$ERRNO_H"; then
22741     { $as_echo "$as_me:$LINENO: checking for working strerror function" >&5
22742 $as_echo_n "checking for working strerror function... " >&6; }
22743 if test "${gl_cv_func_working_strerror+set}" = set; then
22744   $as_echo_n "(cached) " >&6
22745 else
22746   if test "$cross_compiling" = yes; then
22747            cat >conftest.$ac_ext <<_ACEOF
22748 /* confdefs.h.  */
22749 _ACEOF
22750 cat confdefs.h >>conftest.$ac_ext
22751 cat >>conftest.$ac_ext <<_ACEOF
22752 /* end confdefs.h.  */
22753 #include <string.h>
22754
22755 int
22756 main ()
22757 {
22758 return !*strerror (-2);
22759   ;
22760   return 0;
22761 }
22762 _ACEOF
22763 rm -f conftest.$ac_objext
22764 if { (ac_try="$ac_compile"
22765 case "(($ac_try" in
22766   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22767   *) ac_try_echo=$ac_try;;
22768 esac
22769 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22770 $as_echo "$ac_try_echo") >&5
22771   (eval "$ac_compile") 2>conftest.er1
22772   ac_status=$?
22773   grep -v '^ *+' conftest.er1 >conftest.err
22774   rm -f conftest.er1
22775   cat conftest.err >&5
22776   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777   (exit $ac_status); } && {
22778          test -z "$ac_c_werror_flag" ||
22779          test ! -s conftest.err
22780        } && test -s conftest.$ac_objext; then
22781   gl_cv_func_working_strerror=yes
22782 else
22783   $as_echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22785
22786         gl_cv_func_working_strerror=no
22787 fi
22788
22789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22790
22791 else
22792   cat >conftest.$ac_ext <<_ACEOF
22793 /* confdefs.h.  */
22794 _ACEOF
22795 cat confdefs.h >>conftest.$ac_ext
22796 cat >>conftest.$ac_ext <<_ACEOF
22797 /* end confdefs.h.  */
22798 #include <string.h>
22799
22800 int
22801 main ()
22802 {
22803 return !*strerror (-2);
22804   ;
22805   return 0;
22806 }
22807 _ACEOF
22808 rm -f conftest$ac_exeext
22809 if { (ac_try="$ac_link"
22810 case "(($ac_try" in
22811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22812   *) ac_try_echo=$ac_try;;
22813 esac
22814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22815 $as_echo "$ac_try_echo") >&5
22816   (eval "$ac_link") 2>&5
22817   ac_status=$?
22818   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22820   { (case "(($ac_try" in
22821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22822   *) ac_try_echo=$ac_try;;
22823 esac
22824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22825 $as_echo "$ac_try_echo") >&5
22826   (eval "$ac_try") 2>&5
22827   ac_status=$?
22828   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22829   (exit $ac_status); }; }; then
22830   gl_cv_func_working_strerror=yes
22831 else
22832   $as_echo "$as_me: program exited with status $ac_status" >&5
22833 $as_echo "$as_me: failed program was:" >&5
22834 sed 's/^/| /' conftest.$ac_ext >&5
22835
22836 ( exit $ac_status )
22837 gl_cv_func_working_strerror=no
22838 fi
22839 rm -rf conftest.dSYM
22840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22841 fi
22842
22843
22844
22845 fi
22846 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_strerror" >&5
22847 $as_echo "$gl_cv_func_working_strerror" >&6; }
22848     if test $gl_cv_func_working_strerror = no; then
22849                   REPLACE_STRERROR=1
22850     fi
22851   else
22852             REPLACE_STRERROR=1
22853   fi
22854   if test $REPLACE_STRERROR = 1; then
22855
22856   { $as_echo "$as_me:$LINENO: checking whether strerror is declared" >&5
22857 $as_echo_n "checking whether strerror is declared... " >&6; }
22858 if test "${ac_cv_have_decl_strerror+set}" = set; then
22859   $as_echo_n "(cached) " >&6
22860 else
22861   cat >conftest.$ac_ext <<_ACEOF
22862 /* confdefs.h.  */
22863 _ACEOF
22864 cat confdefs.h >>conftest.$ac_ext
22865 cat >>conftest.$ac_ext <<_ACEOF
22866 /* end confdefs.h.  */
22867 $ac_includes_default
22868 int
22869 main ()
22870 {
22871 #ifndef strerror
22872   (void) strerror;
22873 #endif
22874
22875   ;
22876   return 0;
22877 }
22878 _ACEOF
22879 rm -f conftest.$ac_objext
22880 if { (ac_try="$ac_compile"
22881 case "(($ac_try" in
22882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22883   *) ac_try_echo=$ac_try;;
22884 esac
22885 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22886 $as_echo "$ac_try_echo") >&5
22887   (eval "$ac_compile") 2>conftest.er1
22888   ac_status=$?
22889   grep -v '^ *+' conftest.er1 >conftest.err
22890   rm -f conftest.er1
22891   cat conftest.err >&5
22892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22893   (exit $ac_status); } && {
22894          test -z "$ac_c_werror_flag" ||
22895          test ! -s conftest.err
22896        } && test -s conftest.$ac_objext; then
22897   ac_cv_have_decl_strerror=yes
22898 else
22899   $as_echo "$as_me: failed program was:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22901
22902         ac_cv_have_decl_strerror=no
22903 fi
22904
22905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22906 fi
22907 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror" >&5
22908 $as_echo "$ac_cv_have_decl_strerror" >&6; }
22909 if test "x$ac_cv_have_decl_strerror" = x""yes; then
22910
22911 cat >>confdefs.h <<_ACEOF
22912 #define HAVE_DECL_STRERROR 1
22913 _ACEOF
22914
22915
22916 else
22917   cat >>confdefs.h <<_ACEOF
22918 #define HAVE_DECL_STRERROR 0
22919 _ACEOF
22920
22921
22922 fi
22923
22924
22925
22926
22927
22928
22929
22930
22931   if test $ac_cv_header_sys_socket_h != yes; then
22932
22933 for ac_header in winsock2.h
22934 do
22935 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22937   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22938 $as_echo_n "checking for $ac_header... " >&6; }
22939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22940   $as_echo_n "(cached) " >&6
22941 fi
22942 ac_res=`eval 'as_val=${'$as_ac_Header'}
22943                  $as_echo "$as_val"'`
22944                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22945 $as_echo "$ac_res" >&6; }
22946 else
22947   # Is the header compilable?
22948 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22949 $as_echo_n "checking $ac_header usability... " >&6; }
22950 cat >conftest.$ac_ext <<_ACEOF
22951 /* confdefs.h.  */
22952 _ACEOF
22953 cat confdefs.h >>conftest.$ac_ext
22954 cat >>conftest.$ac_ext <<_ACEOF
22955 /* end confdefs.h.  */
22956 $ac_includes_default
22957 #include <$ac_header>
22958 _ACEOF
22959 rm -f conftest.$ac_objext
22960 if { (ac_try="$ac_compile"
22961 case "(($ac_try" in
22962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22963   *) ac_try_echo=$ac_try;;
22964 esac
22965 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22966 $as_echo "$ac_try_echo") >&5
22967   (eval "$ac_compile") 2>conftest.er1
22968   ac_status=$?
22969   grep -v '^ *+' conftest.er1 >conftest.err
22970   rm -f conftest.er1
22971   cat conftest.err >&5
22972   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22973   (exit $ac_status); } && {
22974          test -z "$ac_c_werror_flag" ||
22975          test ! -s conftest.err
22976        } && test -s conftest.$ac_objext; then
22977   ac_header_compiler=yes
22978 else
22979   $as_echo "$as_me: failed program was:" >&5
22980 sed 's/^/| /' conftest.$ac_ext >&5
22981
22982         ac_header_compiler=no
22983 fi
22984
22985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22986 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22987 $as_echo "$ac_header_compiler" >&6; }
22988
22989 # Is the header present?
22990 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22991 $as_echo_n "checking $ac_header presence... " >&6; }
22992 cat >conftest.$ac_ext <<_ACEOF
22993 /* confdefs.h.  */
22994 _ACEOF
22995 cat confdefs.h >>conftest.$ac_ext
22996 cat >>conftest.$ac_ext <<_ACEOF
22997 /* end confdefs.h.  */
22998 #include <$ac_header>
22999 _ACEOF
23000 if { (ac_try="$ac_cpp conftest.$ac_ext"
23001 case "(($ac_try" in
23002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23003   *) ac_try_echo=$ac_try;;
23004 esac
23005 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23006 $as_echo "$ac_try_echo") >&5
23007   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23008   ac_status=$?
23009   grep -v '^ *+' conftest.er1 >conftest.err
23010   rm -f conftest.er1
23011   cat conftest.err >&5
23012   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23013   (exit $ac_status); } >/dev/null && {
23014          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23015          test ! -s conftest.err
23016        }; then
23017   ac_header_preproc=yes
23018 else
23019   $as_echo "$as_me: failed program was:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23021
23022   ac_header_preproc=no
23023 fi
23024
23025 rm -f conftest.err conftest.$ac_ext
23026 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23027 $as_echo "$ac_header_preproc" >&6; }
23028
23029 # So?  What about this header?
23030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23031   yes:no: )
23032     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23033 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23034     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23035 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23036     ac_header_preproc=yes
23037     ;;
23038   no:yes:* )
23039     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23040 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23041     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
23042 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
23043     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23044 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23045     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
23046 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
23047     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23048 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23049     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23050 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23051     ( cat <<\_ASBOX
23052 ## ------------------------------ ##
23053 ## Report this to bug-tar@gnu.org ##
23054 ## ------------------------------ ##
23055 _ASBOX
23056      ) | sed "s/^/$as_me: WARNING:     /" >&2
23057     ;;
23058 esac
23059 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23060 $as_echo_n "checking for $ac_header... " >&6; }
23061 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23062   $as_echo_n "(cached) " >&6
23063 else
23064   eval "$as_ac_Header=\$ac_header_preproc"
23065 fi
23066 ac_res=`eval 'as_val=${'$as_ac_Header'}
23067                  $as_echo "$as_val"'`
23068                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23069 $as_echo "$ac_res" >&6; }
23070
23071 fi
23072 as_val=`eval 'as_val=${'$as_ac_Header'}
23073                  $as_echo "$as_val"'`
23074    if test "x$as_val" = x""yes; then
23075   cat >>confdefs.h <<_ACEOF
23076 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23077 _ACEOF
23078
23079 fi
23080
23081 done
23082
23083   fi
23084
23085   fi
23086
23087
23088
23089
23090
23091
23092
23093
23094
23095
23096
23097
23098      if test $gl_cv_have_include_next = yes; then
23099        gl_cv_next_string_h='<'string.h'>'
23100      else
23101        { $as_echo "$as_me:$LINENO: checking absolute name of <string.h>" >&5
23102 $as_echo_n "checking absolute name of <string.h>... " >&6; }
23103 if test "${gl_cv_next_string_h+set}" = set; then
23104   $as_echo_n "(cached) " >&6
23105 else
23106
23107                cat >conftest.$ac_ext <<_ACEOF
23108 /* confdefs.h.  */
23109 _ACEOF
23110 cat confdefs.h >>conftest.$ac_ext
23111 cat >>conftest.$ac_ext <<_ACEOF
23112 /* end confdefs.h.  */
23113 #include <string.h>
23114
23115 _ACEOF
23116                                                                                                                         case "$host_os" in
23117                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23118                  *)    gl_absname_cpp="$ac_cpp" ;;
23119                esac
23120                                                             gl_cv_next_string_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23121                   sed -n '\#/string.h#{
23122                     s#.*"\(.*/string.h\)".*#\1#
23123                     s#^/[^/]#//&#
23124                     p
23125                     q
23126                   }'`'"'
23127
23128
23129 fi
23130 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_string_h" >&5
23131 $as_echo "$gl_cv_next_string_h" >&6; }
23132      fi
23133      NEXT_STRING_H=$gl_cv_next_string_h
23134
23135      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23136        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23137        gl_next_as_first_directive='<'string.h'>'
23138      else
23139        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23140        gl_next_as_first_directive=$gl_cv_next_string_h
23141      fi
23142      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
23143
23144
23145
23146
23147
23148
23149
23150
23151
23152
23153
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164
23165
23166
23167   for gl_func in memmem mempcpy memrchr rawmemchr stpcpy stpncpy strchrnul strdup      strncat strndup strnlen strpbrk strsep strcasestr strtok_r strerror_r      strsignal strverscmp; do
23168     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23169     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
23170 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23171 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
23172   $as_echo_n "(cached) " >&6
23173 else
23174   cat >conftest.$ac_ext <<_ACEOF
23175 /* confdefs.h.  */
23176 _ACEOF
23177 cat confdefs.h >>conftest.$ac_ext
23178 cat >>conftest.$ac_ext <<_ACEOF
23179 /* end confdefs.h.  */
23180 #include <string.h>
23181
23182 int
23183 main ()
23184 {
23185 #undef $gl_func
23186   (void) $gl_func;
23187   ;
23188   return 0;
23189 }
23190 _ACEOF
23191 rm -f conftest.$ac_objext
23192 if { (ac_try="$ac_compile"
23193 case "(($ac_try" in
23194   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23195   *) ac_try_echo=$ac_try;;
23196 esac
23197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23198 $as_echo "$ac_try_echo") >&5
23199   (eval "$ac_compile") 2>conftest.er1
23200   ac_status=$?
23201   grep -v '^ *+' conftest.er1 >conftest.err
23202   rm -f conftest.er1
23203   cat conftest.err >&5
23204   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23205   (exit $ac_status); } && {
23206          test -z "$ac_c_werror_flag" ||
23207          test ! -s conftest.err
23208        } && test -s conftest.$ac_objext; then
23209   eval "$as_gl_Symbol=yes"
23210 else
23211   $as_echo "$as_me: failed program was:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23213
23214         eval "$as_gl_Symbol=no"
23215 fi
23216
23217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23218 fi
23219 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
23220                  $as_echo "$as_val"'`
23221                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23222 $as_echo "$ac_res" >&6; }
23223      as_val=`eval 'as_val=${'$as_gl_Symbol'}
23224                  $as_echo "$as_val"'`
23225    if test "x$as_val" = x""yes; then
23226   cat >>confdefs.h <<_ACEOF
23227 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23228 _ACEOF
23229
23230                      eval ac_cv_have_decl_$gl_func=yes
23231 fi
23232
23233       done
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254      if test $gl_cv_have_include_next = yes; then
23255        gl_cv_next_strings_h='<'strings.h'>'
23256      else
23257        { $as_echo "$as_me:$LINENO: checking absolute name of <strings.h>" >&5
23258 $as_echo_n "checking absolute name of <strings.h>... " >&6; }
23259 if test "${gl_cv_next_strings_h+set}" = set; then
23260   $as_echo_n "(cached) " >&6
23261 else
23262
23263              if test $ac_cv_header_strings_h = yes; then
23264
23265
23266                cat >conftest.$ac_ext <<_ACEOF
23267 /* confdefs.h.  */
23268 _ACEOF
23269 cat confdefs.h >>conftest.$ac_ext
23270 cat >>conftest.$ac_ext <<_ACEOF
23271 /* end confdefs.h.  */
23272 #include <strings.h>
23273
23274 _ACEOF
23275                                                                                                                         case "$host_os" in
23276                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23277                  *)    gl_absname_cpp="$ac_cpp" ;;
23278                esac
23279                                                             gl_cv_next_strings_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23280                   sed -n '\#/strings.h#{
23281                     s#.*"\(.*/strings.h\)".*#\1#
23282                     s#^/[^/]#//&#
23283                     p
23284                     q
23285                   }'`'"'
23286           else
23287                gl_cv_next_strings_h='<'strings.h'>'
23288              fi
23289
23290
23291 fi
23292 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_strings_h" >&5
23293 $as_echo "$gl_cv_next_strings_h" >&6; }
23294      fi
23295      NEXT_STRINGS_H=$gl_cv_next_strings_h
23296
23297      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23298        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23299        gl_next_as_first_directive='<'strings.h'>'
23300      else
23301        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23302        gl_next_as_first_directive=$gl_cv_next_strings_h
23303      fi
23304      NEXT_AS_FIRST_DIRECTIVE_STRINGS_H=$gl_next_as_first_directive
23305
23306
23307
23308
23309
23310
23311
23312
23313   for gl_func in strcasecmp strncasecmp; do
23314     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
23315     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
23316 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
23317 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
23318   $as_echo_n "(cached) " >&6
23319 else
23320   cat >conftest.$ac_ext <<_ACEOF
23321 /* confdefs.h.  */
23322 _ACEOF
23323 cat confdefs.h >>conftest.$ac_ext
23324 cat >>conftest.$ac_ext <<_ACEOF
23325 /* end confdefs.h.  */
23326 #include <strings.h>
23327
23328 int
23329 main ()
23330 {
23331 #undef $gl_func
23332   (void) $gl_func;
23333   ;
23334   return 0;
23335 }
23336 _ACEOF
23337 rm -f conftest.$ac_objext
23338 if { (ac_try="$ac_compile"
23339 case "(($ac_try" in
23340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23341   *) ac_try_echo=$ac_try;;
23342 esac
23343 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23344 $as_echo "$ac_try_echo") >&5
23345   (eval "$ac_compile") 2>conftest.er1
23346   ac_status=$?
23347   grep -v '^ *+' conftest.er1 >conftest.err
23348   rm -f conftest.er1
23349   cat conftest.err >&5
23350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351   (exit $ac_status); } && {
23352          test -z "$ac_c_werror_flag" ||
23353          test ! -s conftest.err
23354        } && test -s conftest.$ac_objext; then
23355   eval "$as_gl_Symbol=yes"
23356 else
23357   $as_echo "$as_me: failed program was:" >&5
23358 sed 's/^/| /' conftest.$ac_ext >&5
23359
23360         eval "$as_gl_Symbol=no"
23361 fi
23362
23363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23364 fi
23365 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
23366                  $as_echo "$as_val"'`
23367                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23368 $as_echo "$ac_res" >&6; }
23369      as_val=`eval 'as_val=${'$as_gl_Symbol'}
23370                  $as_echo "$as_val"'`
23371    if test "x$as_val" = x""yes; then
23372   cat >>confdefs.h <<_ACEOF
23373 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
23374 _ACEOF
23375
23376                      eval ac_cv_have_decl_$gl_func=yes
23377 fi
23378
23379       done
23380
23381
23382 { $as_echo "$as_me:$LINENO: checking whether strndup is declared" >&5
23383 $as_echo_n "checking whether strndup is declared... " >&6; }
23384 if test "${ac_cv_have_decl_strndup+set}" = set; then
23385   $as_echo_n "(cached) " >&6
23386 else
23387   cat >conftest.$ac_ext <<_ACEOF
23388 /* confdefs.h.  */
23389 _ACEOF
23390 cat confdefs.h >>conftest.$ac_ext
23391 cat >>conftest.$ac_ext <<_ACEOF
23392 /* end confdefs.h.  */
23393 $ac_includes_default
23394 int
23395 main ()
23396 {
23397 #ifndef strndup
23398   (void) strndup;
23399 #endif
23400
23401   ;
23402   return 0;
23403 }
23404 _ACEOF
23405 rm -f conftest.$ac_objext
23406 if { (ac_try="$ac_compile"
23407 case "(($ac_try" in
23408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23409   *) ac_try_echo=$ac_try;;
23410 esac
23411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23412 $as_echo "$ac_try_echo") >&5
23413   (eval "$ac_compile") 2>conftest.er1
23414   ac_status=$?
23415   grep -v '^ *+' conftest.er1 >conftest.err
23416   rm -f conftest.er1
23417   cat conftest.err >&5
23418   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23419   (exit $ac_status); } && {
23420          test -z "$ac_c_werror_flag" ||
23421          test ! -s conftest.err
23422        } && test -s conftest.$ac_objext; then
23423   ac_cv_have_decl_strndup=yes
23424 else
23425   $as_echo "$as_me: failed program was:" >&5
23426 sed 's/^/| /' conftest.$ac_ext >&5
23427
23428         ac_cv_have_decl_strndup=no
23429 fi
23430
23431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23432 fi
23433 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strndup" >&5
23434 $as_echo "$ac_cv_have_decl_strndup" >&6; }
23435 if test "x$ac_cv_have_decl_strndup" = x""yes; then
23436
23437 cat >>confdefs.h <<_ACEOF
23438 #define HAVE_DECL_STRNDUP 1
23439 _ACEOF
23440
23441
23442 else
23443   cat >>confdefs.h <<_ACEOF
23444 #define HAVE_DECL_STRNDUP 0
23445 _ACEOF
23446
23447
23448 fi
23449
23450
23451
23452
23453 { $as_echo "$as_me:$LINENO: checking whether strnlen is declared" >&5
23454 $as_echo_n "checking whether strnlen is declared... " >&6; }
23455 if test "${ac_cv_have_decl_strnlen+set}" = set; then
23456   $as_echo_n "(cached) " >&6
23457 else
23458   cat >conftest.$ac_ext <<_ACEOF
23459 /* confdefs.h.  */
23460 _ACEOF
23461 cat confdefs.h >>conftest.$ac_ext
23462 cat >>conftest.$ac_ext <<_ACEOF
23463 /* end confdefs.h.  */
23464 $ac_includes_default
23465 int
23466 main ()
23467 {
23468 #ifndef strnlen
23469   (void) strnlen;
23470 #endif
23471
23472   ;
23473   return 0;
23474 }
23475 _ACEOF
23476 rm -f conftest.$ac_objext
23477 if { (ac_try="$ac_compile"
23478 case "(($ac_try" in
23479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23480   *) ac_try_echo=$ac_try;;
23481 esac
23482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23483 $as_echo "$ac_try_echo") >&5
23484   (eval "$ac_compile") 2>conftest.er1
23485   ac_status=$?
23486   grep -v '^ *+' conftest.er1 >conftest.err
23487   rm -f conftest.er1
23488   cat conftest.err >&5
23489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23490   (exit $ac_status); } && {
23491          test -z "$ac_c_werror_flag" ||
23492          test ! -s conftest.err
23493        } && test -s conftest.$ac_objext; then
23494   ac_cv_have_decl_strnlen=yes
23495 else
23496   $as_echo "$as_me: failed program was:" >&5
23497 sed 's/^/| /' conftest.$ac_ext >&5
23498
23499         ac_cv_have_decl_strnlen=no
23500 fi
23501
23502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23503 fi
23504 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strnlen" >&5
23505 $as_echo "$ac_cv_have_decl_strnlen" >&6; }
23506 if test "x$ac_cv_have_decl_strnlen" = x""yes; then
23507
23508 cat >>confdefs.h <<_ACEOF
23509 #define HAVE_DECL_STRNLEN 1
23510 _ACEOF
23511
23512
23513 else
23514   cat >>confdefs.h <<_ACEOF
23515 #define HAVE_DECL_STRNLEN 0
23516 _ACEOF
23517
23518
23519 fi
23520
23521
23522
23523
23524
23525
23526
23527
23528
23529
23530
23531
23532
23533
23534
23535   { $as_echo "$as_me:$LINENO: checking for struct timespec in <time.h>" >&5
23536 $as_echo_n "checking for struct timespec in <time.h>... " >&6; }
23537 if test "${gl_cv_sys_struct_timespec_in_time_h+set}" = set; then
23538   $as_echo_n "(cached) " >&6
23539 else
23540   cat >conftest.$ac_ext <<_ACEOF
23541 /* confdefs.h.  */
23542 _ACEOF
23543 cat confdefs.h >>conftest.$ac_ext
23544 cat >>conftest.$ac_ext <<_ACEOF
23545 /* end confdefs.h.  */
23546 #include <time.h>
23547
23548 int
23549 main ()
23550 {
23551 static struct timespec x; x.tv_sec = x.tv_nsec;
23552   ;
23553   return 0;
23554 }
23555 _ACEOF
23556 rm -f conftest.$ac_objext
23557 if { (ac_try="$ac_compile"
23558 case "(($ac_try" in
23559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23560   *) ac_try_echo=$ac_try;;
23561 esac
23562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23563 $as_echo "$ac_try_echo") >&5
23564   (eval "$ac_compile") 2>conftest.er1
23565   ac_status=$?
23566   grep -v '^ *+' conftest.er1 >conftest.err
23567   rm -f conftest.er1
23568   cat conftest.err >&5
23569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23570   (exit $ac_status); } && {
23571          test -z "$ac_c_werror_flag" ||
23572          test ! -s conftest.err
23573        } && test -s conftest.$ac_objext; then
23574   gl_cv_sys_struct_timespec_in_time_h=yes
23575 else
23576   $as_echo "$as_me: failed program was:" >&5
23577 sed 's/^/| /' conftest.$ac_ext >&5
23578
23579         gl_cv_sys_struct_timespec_in_time_h=no
23580 fi
23581
23582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23583 fi
23584 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
23585 $as_echo "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
23586
23587   TIME_H_DEFINES_STRUCT_TIMESPEC=0
23588   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
23589   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
23590   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
23591     TIME_H_DEFINES_STRUCT_TIMESPEC=1
23592   else
23593     { $as_echo "$as_me:$LINENO: checking for struct timespec in <sys/time.h>" >&5
23594 $as_echo_n "checking for struct timespec in <sys/time.h>... " >&6; }
23595 if test "${gl_cv_sys_struct_timespec_in_sys_time_h+set}" = set; then
23596   $as_echo_n "(cached) " >&6
23597 else
23598   cat >conftest.$ac_ext <<_ACEOF
23599 /* confdefs.h.  */
23600 _ACEOF
23601 cat confdefs.h >>conftest.$ac_ext
23602 cat >>conftest.$ac_ext <<_ACEOF
23603 /* end confdefs.h.  */
23604 #include <sys/time.h>
23605
23606 int
23607 main ()
23608 {
23609 static struct timespec x; x.tv_sec = x.tv_nsec;
23610   ;
23611   return 0;
23612 }
23613 _ACEOF
23614 rm -f conftest.$ac_objext
23615 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
23623   ac_status=$?
23624   grep -v '^ *+' conftest.er1 >conftest.err
23625   rm -f conftest.er1
23626   cat conftest.err >&5
23627   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23628   (exit $ac_status); } && {
23629          test -z "$ac_c_werror_flag" ||
23630          test ! -s conftest.err
23631        } && test -s conftest.$ac_objext; then
23632   gl_cv_sys_struct_timespec_in_sys_time_h=yes
23633 else
23634   $as_echo "$as_me: failed program was:" >&5
23635 sed 's/^/| /' conftest.$ac_ext >&5
23636
23637         gl_cv_sys_struct_timespec_in_sys_time_h=no
23638 fi
23639
23640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23641 fi
23642 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
23643 $as_echo "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
23644     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
23645       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
23646     else
23647       { $as_echo "$as_me:$LINENO: checking for struct timespec in <pthread.h>" >&5
23648 $as_echo_n "checking for struct timespec in <pthread.h>... " >&6; }
23649 if test "${gl_cv_sys_struct_timespec_in_pthread_h+set}" = set; then
23650   $as_echo_n "(cached) " >&6
23651 else
23652   cat >conftest.$ac_ext <<_ACEOF
23653 /* confdefs.h.  */
23654 _ACEOF
23655 cat confdefs.h >>conftest.$ac_ext
23656 cat >>conftest.$ac_ext <<_ACEOF
23657 /* end confdefs.h.  */
23658 #include <pthread.h>
23659
23660 int
23661 main ()
23662 {
23663 static struct timespec x; x.tv_sec = x.tv_nsec;
23664   ;
23665   return 0;
23666 }
23667 _ACEOF
23668 rm -f conftest.$ac_objext
23669 if { (ac_try="$ac_compile"
23670 case "(($ac_try" in
23671   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672   *) ac_try_echo=$ac_try;;
23673 esac
23674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23675 $as_echo "$ac_try_echo") >&5
23676   (eval "$ac_compile") 2>conftest.er1
23677   ac_status=$?
23678   grep -v '^ *+' conftest.er1 >conftest.err
23679   rm -f conftest.er1
23680   cat conftest.err >&5
23681   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23682   (exit $ac_status); } && {
23683          test -z "$ac_c_werror_flag" ||
23684          test ! -s conftest.err
23685        } && test -s conftest.$ac_objext; then
23686   gl_cv_sys_struct_timespec_in_pthread_h=yes
23687 else
23688   $as_echo "$as_me: failed program was:" >&5
23689 sed 's/^/| /' conftest.$ac_ext >&5
23690
23691         gl_cv_sys_struct_timespec_in_pthread_h=no
23692 fi
23693
23694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23695 fi
23696 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
23697 $as_echo "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
23698       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
23699         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
23700       fi
23701     fi
23702   fi
23703
23704
23705
23706
23707
23708
23709
23710
23711
23712
23713
23714
23715
23716
23717
23718      if test $gl_cv_have_include_next = yes; then
23719        gl_cv_next_time_h='<'time.h'>'
23720      else
23721        { $as_echo "$as_me:$LINENO: checking absolute name of <time.h>" >&5
23722 $as_echo_n "checking absolute name of <time.h>... " >&6; }
23723 if test "${gl_cv_next_time_h+set}" = set; then
23724   $as_echo_n "(cached) " >&6
23725 else
23726
23727                cat >conftest.$ac_ext <<_ACEOF
23728 /* confdefs.h.  */
23729 _ACEOF
23730 cat confdefs.h >>conftest.$ac_ext
23731 cat >>conftest.$ac_ext <<_ACEOF
23732 /* end confdefs.h.  */
23733 #include <time.h>
23734
23735 _ACEOF
23736                                                                                                                         case "$host_os" in
23737                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
23738                  *)    gl_absname_cpp="$ac_cpp" ;;
23739                esac
23740                                                             gl_cv_next_time_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
23741                   sed -n '\#/time.h#{
23742                     s#.*"\(.*/time.h\)".*#\1#
23743                     s#^/[^/]#//&#
23744                     p
23745                     q
23746                   }'`'"'
23747
23748
23749 fi
23750 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_time_h" >&5
23751 $as_echo "$gl_cv_next_time_h" >&6; }
23752      fi
23753      NEXT_TIME_H=$gl_cv_next_time_h
23754
23755      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
23756        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
23757        gl_next_as_first_directive='<'time.h'>'
23758      else
23759        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
23760        gl_next_as_first_directive=$gl_cv_next_time_h
23761      fi
23762      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
23763
23764
23765
23766
23767
23768
23769 { $as_echo "$as_me:$LINENO: checking whether localtime_r is declared" >&5
23770 $as_echo_n "checking whether localtime_r is declared... " >&6; }
23771 if test "${ac_cv_have_decl_localtime_r+set}" = set; then
23772   $as_echo_n "(cached) " >&6
23773 else
23774   cat >conftest.$ac_ext <<_ACEOF
23775 /* confdefs.h.  */
23776 _ACEOF
23777 cat confdefs.h >>conftest.$ac_ext
23778 cat >>conftest.$ac_ext <<_ACEOF
23779 /* end confdefs.h.  */
23780 $ac_includes_default
23781 int
23782 main ()
23783 {
23784 #ifndef localtime_r
23785   (void) localtime_r;
23786 #endif
23787
23788   ;
23789   return 0;
23790 }
23791 _ACEOF
23792 rm -f conftest.$ac_objext
23793 if { (ac_try="$ac_compile"
23794 case "(($ac_try" in
23795   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23796   *) ac_try_echo=$ac_try;;
23797 esac
23798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23799 $as_echo "$ac_try_echo") >&5
23800   (eval "$ac_compile") 2>conftest.er1
23801   ac_status=$?
23802   grep -v '^ *+' conftest.er1 >conftest.err
23803   rm -f conftest.er1
23804   cat conftest.err >&5
23805   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806   (exit $ac_status); } && {
23807          test -z "$ac_c_werror_flag" ||
23808          test ! -s conftest.err
23809        } && test -s conftest.$ac_objext; then
23810   ac_cv_have_decl_localtime_r=yes
23811 else
23812   $as_echo "$as_me: failed program was:" >&5
23813 sed 's/^/| /' conftest.$ac_ext >&5
23814
23815         ac_cv_have_decl_localtime_r=no
23816 fi
23817
23818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23819 fi
23820 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_localtime_r" >&5
23821 $as_echo "$ac_cv_have_decl_localtime_r" >&6; }
23822 if test "x$ac_cv_have_decl_localtime_r" = x""yes; then
23823
23824 cat >>confdefs.h <<_ACEOF
23825 #define HAVE_DECL_LOCALTIME_R 1
23826 _ACEOF
23827
23828
23829 else
23830   cat >>confdefs.h <<_ACEOF
23831 #define HAVE_DECL_LOCALTIME_R 0
23832 _ACEOF
23833
23834
23835 fi
23836
23837
23838
23839
23840
23841
23842
23843
23844
23845
23846
23847
23848 gl_libunistring_sed_extract_major='/^[0-9]/{s/^\([0-9]*\).*/\1/p;q;}
23849 i\
23850 0
23851 q
23852 '
23853 gl_libunistring_sed_extract_minor='/^[0-9][0-9]*[.][0-9]/{s/^[0-9]*[.]\([0-9]*\).*/\1/p;q;}
23854 i\
23855 0
23856 q
23857 '
23858 gl_libunistring_sed_extract_subminor='/^[0-9][0-9]*[.][0-9][0-9]*[.][0-9]/{s/^[0-9]*[.][0-9]*[.]\([0-9]*\).*/\1/p;q;}
23859 i\
23860 0
23861 q
23862 '
23863
23864
23865   if test "$HAVE_LIBUNISTRING" = yes; then
23866     LIBUNISTRING_VERSION_MAJOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_major"`
23867     LIBUNISTRING_VERSION_MINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_minor"`
23868     LIBUNISTRING_VERSION_SUBMINOR=`echo "$LIBUNISTRING_VERSION" | sed -n -e "$gl_libunistring_sed_extract_subminor"`
23869   fi
23870
23871 { $as_echo "$as_me:$LINENO: checking whether unsetenv is declared" >&5
23872 $as_echo_n "checking whether unsetenv is declared... " >&6; }
23873 if test "${ac_cv_have_decl_unsetenv+set}" = set; then
23874   $as_echo_n "(cached) " >&6
23875 else
23876   cat >conftest.$ac_ext <<_ACEOF
23877 /* confdefs.h.  */
23878 _ACEOF
23879 cat confdefs.h >>conftest.$ac_ext
23880 cat >>conftest.$ac_ext <<_ACEOF
23881 /* end confdefs.h.  */
23882 $ac_includes_default
23883 int
23884 main ()
23885 {
23886 #ifndef unsetenv
23887   (void) unsetenv;
23888 #endif
23889
23890   ;
23891   return 0;
23892 }
23893 _ACEOF
23894 rm -f conftest.$ac_objext
23895 if { (ac_try="$ac_compile"
23896 case "(($ac_try" in
23897   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23898   *) ac_try_echo=$ac_try;;
23899 esac
23900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23901 $as_echo "$ac_try_echo") >&5
23902   (eval "$ac_compile") 2>conftest.er1
23903   ac_status=$?
23904   grep -v '^ *+' conftest.er1 >conftest.err
23905   rm -f conftest.er1
23906   cat conftest.err >&5
23907   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23908   (exit $ac_status); } && {
23909          test -z "$ac_c_werror_flag" ||
23910          test ! -s conftest.err
23911        } && test -s conftest.$ac_objext; then
23912   ac_cv_have_decl_unsetenv=yes
23913 else
23914   $as_echo "$as_me: failed program was:" >&5
23915 sed 's/^/| /' conftest.$ac_ext >&5
23916
23917         ac_cv_have_decl_unsetenv=no
23918 fi
23919
23920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23921 fi
23922 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_unsetenv" >&5
23923 $as_echo "$ac_cv_have_decl_unsetenv" >&6; }
23924 if test "x$ac_cv_have_decl_unsetenv" = x""yes; then
23925
23926 cat >>confdefs.h <<_ACEOF
23927 #define HAVE_DECL_UNSETENV 1
23928 _ACEOF
23929
23930
23931 else
23932   cat >>confdefs.h <<_ACEOF
23933 #define HAVE_DECL_UNSETENV 0
23934 _ACEOF
23935
23936
23937 fi
23938
23939
23940
23941   { $as_echo "$as_me:$LINENO: checking whether the utimes function works" >&5
23942 $as_echo_n "checking whether the utimes function works... " >&6; }
23943 if test "${gl_cv_func_working_utimes+set}" = set; then
23944   $as_echo_n "(cached) " >&6
23945 else
23946
23947   if test "$cross_compiling" = yes; then
23948   gl_cv_func_working_utimes=no
23949 else
23950   cat >conftest.$ac_ext <<_ACEOF
23951 /* confdefs.h.  */
23952 _ACEOF
23953 cat confdefs.h >>conftest.$ac_ext
23954 cat >>conftest.$ac_ext <<_ACEOF
23955 /* end confdefs.h.  */
23956
23957 #include <sys/types.h>
23958 #include <sys/stat.h>
23959 #include <fcntl.h>
23960 #include <sys/time.h>
23961 #include <time.h>
23962 #include <unistd.h>
23963 #include <stdlib.h>
23964 #include <stdio.h>
23965 #include <utime.h>
23966
23967 static int
23968 inorder (time_t a, time_t b, time_t c)
23969 {
23970   return a <= b && b <= c;
23971 }
23972
23973 int
23974 main ()
23975 {
23976   int result = 0;
23977   char const *file = "conftest.utimes";
23978   static struct timeval timeval[2] = {{9, 10}, {999999, 999999}};
23979
23980   /* Test whether utimes() essentially works.  */
23981   {
23982     struct stat sbuf;
23983     FILE *f = fopen (file, "w");
23984     if (f == NULL)
23985       result |= 1;
23986     else if (fclose (f) != 0)
23987       result |= 1;
23988     else if (utimes (file, timeval) != 0)
23989       result |= 2;
23990     else if (lstat (file, &sbuf) != 0)
23991       result |= 1;
23992     else if (!(sbuf.st_atime == timeval[0].tv_sec
23993                && sbuf.st_mtime == timeval[1].tv_sec))
23994       result |= 4;
23995     if (unlink (file) != 0)
23996       result |= 1;
23997   }
23998
23999   /* Test whether utimes() with a NULL argument sets the file's timestamp
24000      to the current time.  Use 'fstat' as well as 'time' to
24001      determine the "current" time, to accommodate NFS file systems
24002      if there is a time skew between the host and the NFS server.  */
24003   {
24004     int fd = open (file, O_WRONLY|O_CREAT, 0644);
24005     if (fd < 0)
24006       result |= 1;
24007     else
24008       {
24009         time_t t0, t2;
24010         struct stat st0, st1, st2;
24011         if (time (&t0) == (time_t) -1)
24012           result |= 1;
24013         else if (fstat (fd, &st0) != 0)
24014           result |= 1;
24015         else if (utimes (file, timeval) != 0)
24016           result |= 2;
24017         else if (utimes (file, NULL) != 0)
24018           result |= 8;
24019         else if (fstat (fd, &st1) != 0)
24020           result |= 1;
24021         else if (write (fd, "\n", 1) != 1)
24022           result |= 1;
24023         else if (fstat (fd, &st2) != 0)
24024           result |= 1;
24025         else if (time (&t2) == (time_t) -1)
24026           result |= 1;
24027         else
24028           {
24029             int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
24030             int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
24031             if (! (st1.st_atime == st1.st_mtime))
24032               result |= 16;
24033             if (! (m_ok_POSIX || m_ok_NFS))
24034               result |= 32;
24035           }
24036         if (close (fd) != 0)
24037           result |= 1;
24038       }
24039     if (unlink (file) != 0)
24040       result |= 1;
24041   }
24042
24043   /* Test whether utimes() with a NULL argument works on read-only files.  */
24044   {
24045     int fd = open (file, O_WRONLY|O_CREAT, 0444);
24046     if (fd < 0)
24047       result |= 1;
24048     else if (close (fd) != 0)
24049       result |= 1;
24050     else if (utimes (file, NULL) != 0)
24051       result |= 64;
24052     if (unlink (file) != 0)
24053       result |= 1;
24054   }
24055
24056   return result;
24057 }
24058
24059 _ACEOF
24060 rm -f conftest$ac_exeext
24061 if { (ac_try="$ac_link"
24062 case "(($ac_try" in
24063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24064   *) ac_try_echo=$ac_try;;
24065 esac
24066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24067 $as_echo "$ac_try_echo") >&5
24068   (eval "$ac_link") 2>&5
24069   ac_status=$?
24070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24071   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24072   { (case "(($ac_try" in
24073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24074   *) ac_try_echo=$ac_try;;
24075 esac
24076 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24077 $as_echo "$ac_try_echo") >&5
24078   (eval "$ac_try") 2>&5
24079   ac_status=$?
24080   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24081   (exit $ac_status); }; }; then
24082   gl_cv_func_working_utimes=yes
24083 else
24084   $as_echo "$as_me: program exited with status $ac_status" >&5
24085 $as_echo "$as_me: failed program was:" >&5
24086 sed 's/^/| /' conftest.$ac_ext >&5
24087
24088 ( exit $ac_status )
24089 gl_cv_func_working_utimes=no
24090 fi
24091 rm -rf conftest.dSYM
24092 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24093 fi
24094
24095
24096 fi
24097 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_utimes" >&5
24098 $as_echo "$gl_cv_func_working_utimes" >&6; }
24099
24100   if test $gl_cv_func_working_utimes = yes; then
24101
24102 cat >>confdefs.h <<\_ACEOF
24103 #define HAVE_WORKING_UTIMES 1
24104 _ACEOF
24105
24106   fi
24107
24108
24109
24110
24111
24112
24113
24114
24115
24116
24117
24118
24119   { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
24120 $as_echo_n "checking for struct utimbuf... " >&6; }
24121 if test "${gl_cv_sys_struct_utimbuf+set}" = set; then
24122   $as_echo_n "(cached) " >&6
24123 else
24124   cat >conftest.$ac_ext <<_ACEOF
24125 /* confdefs.h.  */
24126 _ACEOF
24127 cat confdefs.h >>conftest.$ac_ext
24128 cat >>conftest.$ac_ext <<_ACEOF
24129 /* end confdefs.h.  */
24130 #if HAVE_SYS_TIME_H
24131              #include <sys/time.h>
24132             #endif
24133             #include <time.h>
24134             #ifdef HAVE_UTIME_H
24135              #include <utime.h>
24136             #endif
24137
24138 int
24139 main ()
24140 {
24141 static struct utimbuf x; x.actime = x.modtime;
24142   ;
24143   return 0;
24144 }
24145 _ACEOF
24146 rm -f conftest.$ac_objext
24147 if { (ac_try="$ac_compile"
24148 case "(($ac_try" in
24149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24150   *) ac_try_echo=$ac_try;;
24151 esac
24152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24153 $as_echo "$ac_try_echo") >&5
24154   (eval "$ac_compile") 2>conftest.er1
24155   ac_status=$?
24156   grep -v '^ *+' conftest.er1 >conftest.err
24157   rm -f conftest.er1
24158   cat conftest.err >&5
24159   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24160   (exit $ac_status); } && {
24161          test -z "$ac_c_werror_flag" ||
24162          test ! -s conftest.err
24163        } && test -s conftest.$ac_objext; then
24164   gl_cv_sys_struct_utimbuf=yes
24165 else
24166   $as_echo "$as_me: failed program was:" >&5
24167 sed 's/^/| /' conftest.$ac_ext >&5
24168
24169         gl_cv_sys_struct_utimbuf=no
24170 fi
24171
24172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24173 fi
24174 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_struct_utimbuf" >&5
24175 $as_echo "$gl_cv_sys_struct_utimbuf" >&6; }
24176
24177   if test $gl_cv_sys_struct_utimbuf = yes; then
24178
24179 cat >>confdefs.h <<\_ACEOF
24180 #define HAVE_STRUCT_UTIMBUF 1
24181 _ACEOF
24182
24183   fi
24184
24185
24186
24187
24188
24189
24190
24191
24192
24193
24194
24195
24196
24197
24198
24199
24200
24201
24202   if test $ac_cv_header_features_h = yes; then
24203     HAVE_FEATURES_H=1
24204   else
24205     HAVE_FEATURES_H=0
24206   fi
24207
24208
24209
24210   { $as_echo "$as_me:$LINENO: checking for inttypes.h" >&5
24211 $as_echo_n "checking for inttypes.h... " >&6; }
24212 if test "${gl_cv_header_inttypes_h+set}" = set; then
24213   $as_echo_n "(cached) " >&6
24214 else
24215   cat >conftest.$ac_ext <<_ACEOF
24216 /* confdefs.h.  */
24217 _ACEOF
24218 cat confdefs.h >>conftest.$ac_ext
24219 cat >>conftest.$ac_ext <<_ACEOF
24220 /* end confdefs.h.  */
24221
24222 #include <sys/types.h>
24223 #include <inttypes.h>
24224
24225 int
24226 main ()
24227 {
24228 uintmax_t i = (uintmax_t) -1; return !i;
24229   ;
24230   return 0;
24231 }
24232 _ACEOF
24233 rm -f conftest.$ac_objext
24234 if { (ac_try="$ac_compile"
24235 case "(($ac_try" in
24236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24237   *) ac_try_echo=$ac_try;;
24238 esac
24239 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24240 $as_echo "$ac_try_echo") >&5
24241   (eval "$ac_compile") 2>conftest.er1
24242   ac_status=$?
24243   grep -v '^ *+' conftest.er1 >conftest.err
24244   rm -f conftest.er1
24245   cat conftest.err >&5
24246   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24247   (exit $ac_status); } && {
24248          test -z "$ac_c_werror_flag" ||
24249          test ! -s conftest.err
24250        } && test -s conftest.$ac_objext; then
24251   gl_cv_header_inttypes_h=yes
24252 else
24253   $as_echo "$as_me: failed program was:" >&5
24254 sed 's/^/| /' conftest.$ac_ext >&5
24255
24256         gl_cv_header_inttypes_h=no
24257 fi
24258
24259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24260 fi
24261 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_inttypes_h" >&5
24262 $as_echo "$gl_cv_header_inttypes_h" >&6; }
24263   if test $gl_cv_header_inttypes_h = yes; then
24264
24265 cat >>confdefs.h <<_ACEOF
24266 #define HAVE_INTTYPES_H_WITH_UINTMAX 1
24267 _ACEOF
24268
24269   fi
24270
24271
24272   { $as_echo "$as_me:$LINENO: checking for stdint.h" >&5
24273 $as_echo_n "checking for stdint.h... " >&6; }
24274 if test "${gl_cv_header_stdint_h+set}" = set; then
24275   $as_echo_n "(cached) " >&6
24276 else
24277   cat >conftest.$ac_ext <<_ACEOF
24278 /* confdefs.h.  */
24279 _ACEOF
24280 cat confdefs.h >>conftest.$ac_ext
24281 cat >>conftest.$ac_ext <<_ACEOF
24282 /* end confdefs.h.  */
24283 #include <sys/types.h>
24284             #include <stdint.h>
24285 int
24286 main ()
24287 {
24288 uintmax_t i = (uintmax_t) -1; return !i;
24289   ;
24290   return 0;
24291 }
24292 _ACEOF
24293 rm -f conftest.$ac_objext
24294 if { (ac_try="$ac_compile"
24295 case "(($ac_try" in
24296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24297   *) ac_try_echo=$ac_try;;
24298 esac
24299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24300 $as_echo "$ac_try_echo") >&5
24301   (eval "$ac_compile") 2>conftest.er1
24302   ac_status=$?
24303   grep -v '^ *+' conftest.er1 >conftest.err
24304   rm -f conftest.er1
24305   cat conftest.err >&5
24306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24307   (exit $ac_status); } && {
24308          test -z "$ac_c_werror_flag" ||
24309          test ! -s conftest.err
24310        } && test -s conftest.$ac_objext; then
24311   gl_cv_header_stdint_h=yes
24312 else
24313   $as_echo "$as_me: failed program was:" >&5
24314 sed 's/^/| /' conftest.$ac_ext >&5
24315
24316         gl_cv_header_stdint_h=no
24317 fi
24318
24319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24320 fi
24321 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_stdint_h" >&5
24322 $as_echo "$gl_cv_header_stdint_h" >&6; }
24323   if test $gl_cv_header_stdint_h = yes; then
24324
24325 cat >>confdefs.h <<_ACEOF
24326 #define HAVE_STDINT_H_WITH_UINTMAX 1
24327 _ACEOF
24328
24329   fi
24330
24331
24332
24333
24334   { $as_echo "$as_me:$LINENO: checking for intmax_t" >&5
24335 $as_echo_n "checking for intmax_t... " >&6; }
24336 if test "${gt_cv_c_intmax_t+set}" = set; then
24337   $as_echo_n "(cached) " >&6
24338 else
24339   cat >conftest.$ac_ext <<_ACEOF
24340 /* confdefs.h.  */
24341 _ACEOF
24342 cat confdefs.h >>conftest.$ac_ext
24343 cat >>conftest.$ac_ext <<_ACEOF
24344 /* end confdefs.h.  */
24345
24346 #include <stddef.h>
24347 #include <stdlib.h>
24348 #if HAVE_STDINT_H_WITH_UINTMAX
24349 #include <stdint.h>
24350 #endif
24351 #if HAVE_INTTYPES_H_WITH_UINTMAX
24352 #include <inttypes.h>
24353 #endif
24354
24355 int
24356 main ()
24357 {
24358 intmax_t x = -1; return !x;
24359   ;
24360   return 0;
24361 }
24362 _ACEOF
24363 rm -f conftest.$ac_objext
24364 if { (ac_try="$ac_compile"
24365 case "(($ac_try" in
24366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24367   *) ac_try_echo=$ac_try;;
24368 esac
24369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24370 $as_echo "$ac_try_echo") >&5
24371   (eval "$ac_compile") 2>conftest.er1
24372   ac_status=$?
24373   grep -v '^ *+' conftest.er1 >conftest.err
24374   rm -f conftest.er1
24375   cat conftest.err >&5
24376   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24377   (exit $ac_status); } && {
24378          test -z "$ac_c_werror_flag" ||
24379          test ! -s conftest.err
24380        } && test -s conftest.$ac_objext; then
24381   gt_cv_c_intmax_t=yes
24382 else
24383   $as_echo "$as_me: failed program was:" >&5
24384 sed 's/^/| /' conftest.$ac_ext >&5
24385
24386         gt_cv_c_intmax_t=no
24387 fi
24388
24389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24390 fi
24391 { $as_echo "$as_me:$LINENO: result: $gt_cv_c_intmax_t" >&5
24392 $as_echo "$gt_cv_c_intmax_t" >&6; }
24393   if test $gt_cv_c_intmax_t = yes; then
24394
24395 cat >>confdefs.h <<\_ACEOF
24396 #define HAVE_INTMAX_T 1
24397 _ACEOF
24398
24399   else
24400
24401     test $ac_cv_type_long_long_int = yes \
24402       && ac_type='long long' \
24403       || ac_type='long'
24404
24405 cat >>confdefs.h <<_ACEOF
24406 #define intmax_t $ac_type
24407 _ACEOF
24408
24409   fi
24410
24411
24412
24413
24414
24415
24416
24417
24418
24419
24420
24421
24422
24423 for ac_func in snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb
24424 do
24425 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24426 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24427 $as_echo_n "checking for $ac_func... " >&6; }
24428 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24429   $as_echo_n "(cached) " >&6
24430 else
24431   cat >conftest.$ac_ext <<_ACEOF
24432 /* confdefs.h.  */
24433 _ACEOF
24434 cat confdefs.h >>conftest.$ac_ext
24435 cat >>conftest.$ac_ext <<_ACEOF
24436 /* end confdefs.h.  */
24437 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24438    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
24439 #define $ac_func innocuous_$ac_func
24440
24441 /* System header to define __stub macros and hopefully few prototypes,
24442     which can conflict with char $ac_func (); below.
24443     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24444     <limits.h> exists even on freestanding compilers.  */
24445
24446 #ifdef __STDC__
24447 # include <limits.h>
24448 #else
24449 # include <assert.h>
24450 #endif
24451
24452 #undef $ac_func
24453
24454 /* Override any GCC internal prototype to avoid an error.
24455    Use char because int might match the return type of a GCC
24456    builtin and then its argument prototype would still apply.  */
24457 #ifdef __cplusplus
24458 extern "C"
24459 #endif
24460 char $ac_func ();
24461 /* The GNU C library defines this for functions which it implements
24462     to always fail with ENOSYS.  Some functions are actually named
24463     something starting with __ and the normal name is an alias.  */
24464 #if defined __stub_$ac_func || defined __stub___$ac_func
24465 choke me
24466 #endif
24467
24468 int
24469 main ()
24470 {
24471 return $ac_func ();
24472   ;
24473   return 0;
24474 }
24475 _ACEOF
24476 rm -f conftest.$ac_objext conftest$ac_exeext
24477 if { (ac_try="$ac_link"
24478 case "(($ac_try" in
24479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24480   *) ac_try_echo=$ac_try;;
24481 esac
24482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24483 $as_echo "$ac_try_echo") >&5
24484   (eval "$ac_link") 2>conftest.er1
24485   ac_status=$?
24486   grep -v '^ *+' conftest.er1 >conftest.err
24487   rm -f conftest.er1
24488   cat conftest.err >&5
24489   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24490   (exit $ac_status); } && {
24491          test -z "$ac_c_werror_flag" ||
24492          test ! -s conftest.err
24493        } && test -s conftest$ac_exeext && {
24494          test "$cross_compiling" = yes ||
24495          $as_test_x conftest$ac_exeext
24496        }; then
24497   eval "$as_ac_var=yes"
24498 else
24499   $as_echo "$as_me: failed program was:" >&5
24500 sed 's/^/| /' conftest.$ac_ext >&5
24501
24502         eval "$as_ac_var=no"
24503 fi
24504
24505 rm -rf conftest.dSYM
24506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24507       conftest$ac_exeext conftest.$ac_ext
24508 fi
24509 ac_res=`eval 'as_val=${'$as_ac_var'}
24510                  $as_echo "$as_val"'`
24511                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24512 $as_echo "$ac_res" >&6; }
24513 as_val=`eval 'as_val=${'$as_ac_var'}
24514                  $as_echo "$as_val"'`
24515    if test "x$as_val" = x""yes; then
24516   cat >>confdefs.h <<_ACEOF
24517 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24518 _ACEOF
24519
24520 fi
24521 done
24522
24523       { $as_echo "$as_me:$LINENO: checking whether _snprintf is declared" >&5
24524 $as_echo_n "checking whether _snprintf is declared... " >&6; }
24525 if test "${ac_cv_have_decl__snprintf+set}" = set; then
24526   $as_echo_n "(cached) " >&6
24527 else
24528   cat >conftest.$ac_ext <<_ACEOF
24529 /* confdefs.h.  */
24530 _ACEOF
24531 cat confdefs.h >>conftest.$ac_ext
24532 cat >>conftest.$ac_ext <<_ACEOF
24533 /* end confdefs.h.  */
24534 #include <stdio.h>
24535
24536 int
24537 main ()
24538 {
24539 #ifndef _snprintf
24540   (void) _snprintf;
24541 #endif
24542
24543   ;
24544   return 0;
24545 }
24546 _ACEOF
24547 rm -f conftest.$ac_objext
24548 if { (ac_try="$ac_compile"
24549 case "(($ac_try" in
24550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24551   *) ac_try_echo=$ac_try;;
24552 esac
24553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24554 $as_echo "$ac_try_echo") >&5
24555   (eval "$ac_compile") 2>conftest.er1
24556   ac_status=$?
24557   grep -v '^ *+' conftest.er1 >conftest.err
24558   rm -f conftest.er1
24559   cat conftest.err >&5
24560   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24561   (exit $ac_status); } && {
24562          test -z "$ac_c_werror_flag" ||
24563          test ! -s conftest.err
24564        } && test -s conftest.$ac_objext; then
24565   ac_cv_have_decl__snprintf=yes
24566 else
24567   $as_echo "$as_me: failed program was:" >&5
24568 sed 's/^/| /' conftest.$ac_ext >&5
24569
24570         ac_cv_have_decl__snprintf=no
24571 fi
24572
24573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24574 fi
24575 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl__snprintf" >&5
24576 $as_echo "$ac_cv_have_decl__snprintf" >&6; }
24577 if test "x$ac_cv_have_decl__snprintf" = x""yes; then
24578
24579 cat >>confdefs.h <<_ACEOF
24580 #define HAVE_DECL__SNPRINTF 1
24581 _ACEOF
24582
24583
24584 else
24585   cat >>confdefs.h <<_ACEOF
24586 #define HAVE_DECL__SNPRINTF 0
24587 _ACEOF
24588
24589
24590 fi
24591
24592
24593
24594   case "$gl_cv_func_snprintf_retval_c99" in
24595     *yes)
24596
24597 cat >>confdefs.h <<\_ACEOF
24598 #define HAVE_SNPRINTF_RETVAL_C99 1
24599 _ACEOF
24600
24601       ;;
24602   esac
24603
24604 { $as_echo "$as_me:$LINENO: checking whether vsnprintf is declared" >&5
24605 $as_echo_n "checking whether vsnprintf is declared... " >&6; }
24606 if test "${ac_cv_have_decl_vsnprintf+set}" = set; then
24607   $as_echo_n "(cached) " >&6
24608 else
24609   cat >conftest.$ac_ext <<_ACEOF
24610 /* confdefs.h.  */
24611 _ACEOF
24612 cat confdefs.h >>conftest.$ac_ext
24613 cat >>conftest.$ac_ext <<_ACEOF
24614 /* end confdefs.h.  */
24615 $ac_includes_default
24616 int
24617 main ()
24618 {
24619 #ifndef vsnprintf
24620   (void) vsnprintf;
24621 #endif
24622
24623   ;
24624   return 0;
24625 }
24626 _ACEOF
24627 rm -f conftest.$ac_objext
24628 if { (ac_try="$ac_compile"
24629 case "(($ac_try" in
24630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24631   *) ac_try_echo=$ac_try;;
24632 esac
24633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24634 $as_echo "$ac_try_echo") >&5
24635   (eval "$ac_compile") 2>conftest.er1
24636   ac_status=$?
24637   grep -v '^ *+' conftest.er1 >conftest.err
24638   rm -f conftest.er1
24639   cat conftest.err >&5
24640   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24641   (exit $ac_status); } && {
24642          test -z "$ac_c_werror_flag" ||
24643          test ! -s conftest.err
24644        } && test -s conftest.$ac_objext; then
24645   ac_cv_have_decl_vsnprintf=yes
24646 else
24647   $as_echo "$as_me: failed program was:" >&5
24648 sed 's/^/| /' conftest.$ac_ext >&5
24649
24650         ac_cv_have_decl_vsnprintf=no
24651 fi
24652
24653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24654 fi
24655 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_vsnprintf" >&5
24656 $as_echo "$ac_cv_have_decl_vsnprintf" >&6; }
24657 if test "x$ac_cv_have_decl_vsnprintf" = x""yes; then
24658
24659 cat >>confdefs.h <<_ACEOF
24660 #define HAVE_DECL_VSNPRINTF 1
24661 _ACEOF
24662
24663
24664 else
24665   cat >>confdefs.h <<_ACEOF
24666 #define HAVE_DECL_VSNPRINTF 0
24667 _ACEOF
24668
24669
24670 fi
24671
24672
24673
24674
24675
24676
24677
24678    if false; then
24679   GL_COND_LIBTOOL_TRUE=
24680   GL_COND_LIBTOOL_FALSE='#'
24681 else
24682   GL_COND_LIBTOOL_TRUE='#'
24683   GL_COND_LIBTOOL_FALSE=
24684 fi
24685
24686   gl_cond_libtool=false
24687   gl_libdeps=
24688   gl_ltlibdeps=
24689   gl_m4_base='m4'
24690
24691
24692
24693
24694
24695
24696
24697
24698
24699   gl_source_base='gnu'
24700   # Code from module alloca:
24701   # Code from module alloca-opt:
24702
24703
24704   if test $ac_cv_func_alloca_works = no; then
24705     :
24706   fi
24707
24708   # Define an additional variable used in the Makefile substitution.
24709   if test $ac_cv_working_alloca_h = yes; then
24710     { $as_echo "$as_me:$LINENO: checking for alloca as a compiler built-in" >&5
24711 $as_echo_n "checking for alloca as a compiler built-in... " >&6; }
24712 if test "${gl_cv_rpl_alloca+set}" = set; then
24713   $as_echo_n "(cached) " >&6
24714 else
24715
24716       cat >conftest.$ac_ext <<_ACEOF
24717 /* confdefs.h.  */
24718 _ACEOF
24719 cat confdefs.h >>conftest.$ac_ext
24720 cat >>conftest.$ac_ext <<_ACEOF
24721 /* end confdefs.h.  */
24722
24723 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
24724         Need own alloca
24725 #endif
24726
24727 _ACEOF
24728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24729   $EGREP "Need own alloca" >/dev/null 2>&1; then
24730   gl_cv_rpl_alloca=yes
24731 else
24732   gl_cv_rpl_alloca=no
24733 fi
24734 rm -f conftest*
24735
24736
24737 fi
24738 { $as_echo "$as_me:$LINENO: result: $gl_cv_rpl_alloca" >&5
24739 $as_echo "$gl_cv_rpl_alloca" >&6; }
24740     if test $gl_cv_rpl_alloca = yes; then
24741
24742 cat >>confdefs.h <<\_ACEOF
24743 #define HAVE_ALLOCA 1
24744 _ACEOF
24745
24746       ALLOCA_H=alloca.h
24747     else
24748                   ALLOCA_H=
24749     fi
24750   else
24751     ALLOCA_H=alloca.h
24752   fi
24753
24754
24755   # Code from module areadlink:
24756   # Code from module areadlinkat:
24757
24758
24759 cat >>confdefs.h <<_ACEOF
24760 #define GNULIB_AREADLINKAT 1
24761 _ACEOF
24762
24763
24764   # Code from module arg-nonnull:
24765   # Code from module argmatch:
24766
24767
24768
24769
24770
24771
24772
24773
24774
24775   gl_LIBOBJS="$gl_LIBOBJS argmatch.$ac_objext"
24776
24777
24778   # Code from module argp:
24779
24780
24781
24782
24783
24784
24785   GETOPT_H=getopt.h
24786
24787 cat >>confdefs.h <<\_ACEOF
24788 #define __GETOPT_PREFIX rpl_
24789 _ACEOF
24790
24791
24792
24793     GNULIB_UNISTD_H_GETOPT=1
24794
24795
24796
24797
24798
24799
24800
24801
24802   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
24803
24804
24805
24806
24807
24808
24809
24810
24811
24812   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
24813
24814
24815
24816
24817
24818
24819
24820
24821
24822   { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
24823 $as_echo_n "checking whether program_invocation_name is declared... " >&6; }
24824 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
24825   $as_echo_n "(cached) " >&6
24826 else
24827   cat >conftest.$ac_ext <<_ACEOF
24828 /* confdefs.h.  */
24829 _ACEOF
24830 cat confdefs.h >>conftest.$ac_ext
24831 cat >>conftest.$ac_ext <<_ACEOF
24832 /* end confdefs.h.  */
24833 #include <errno.h>
24834
24835 int
24836 main ()
24837 {
24838 #ifndef program_invocation_name
24839   (void) program_invocation_name;
24840 #endif
24841
24842   ;
24843   return 0;
24844 }
24845 _ACEOF
24846 rm -f conftest.$ac_objext
24847 if { (ac_try="$ac_compile"
24848 case "(($ac_try" in
24849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24850   *) ac_try_echo=$ac_try;;
24851 esac
24852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24853 $as_echo "$ac_try_echo") >&5
24854   (eval "$ac_compile") 2>conftest.er1
24855   ac_status=$?
24856   grep -v '^ *+' conftest.er1 >conftest.err
24857   rm -f conftest.er1
24858   cat conftest.err >&5
24859   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24860   (exit $ac_status); } && {
24861          test -z "$ac_c_werror_flag" ||
24862          test ! -s conftest.err
24863        } && test -s conftest.$ac_objext; then
24864   ac_cv_have_decl_program_invocation_name=yes
24865 else
24866   $as_echo "$as_me: failed program was:" >&5
24867 sed 's/^/| /' conftest.$ac_ext >&5
24868
24869         ac_cv_have_decl_program_invocation_name=no
24870 fi
24871
24872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24873 fi
24874 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
24875 $as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
24876 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
24877
24878 cat >>confdefs.h <<\_ACEOF
24879 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
24880 _ACEOF
24881
24882 else
24883
24884 cat >>confdefs.h <<\_ACEOF
24885 #define GNULIB_PROGRAM_INVOCATION_NAME 1
24886 _ACEOF
24887
24888 fi
24889
24890   { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
24891 $as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
24892 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
24893   $as_echo_n "(cached) " >&6
24894 else
24895   cat >conftest.$ac_ext <<_ACEOF
24896 /* confdefs.h.  */
24897 _ACEOF
24898 cat confdefs.h >>conftest.$ac_ext
24899 cat >>conftest.$ac_ext <<_ACEOF
24900 /* end confdefs.h.  */
24901 #include <errno.h>
24902
24903 int
24904 main ()
24905 {
24906 #ifndef program_invocation_short_name
24907   (void) program_invocation_short_name;
24908 #endif
24909
24910   ;
24911   return 0;
24912 }
24913 _ACEOF
24914 rm -f conftest.$ac_objext
24915 if { (ac_try="$ac_compile"
24916 case "(($ac_try" in
24917   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24918   *) ac_try_echo=$ac_try;;
24919 esac
24920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24921 $as_echo "$ac_try_echo") >&5
24922   (eval "$ac_compile") 2>conftest.er1
24923   ac_status=$?
24924   grep -v '^ *+' conftest.er1 >conftest.err
24925   rm -f conftest.er1
24926   cat conftest.err >&5
24927   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928   (exit $ac_status); } && {
24929          test -z "$ac_c_werror_flag" ||
24930          test ! -s conftest.err
24931        } && test -s conftest.$ac_objext; then
24932   ac_cv_have_decl_program_invocation_short_name=yes
24933 else
24934   $as_echo "$as_me: failed program was:" >&5
24935 sed 's/^/| /' conftest.$ac_ext >&5
24936
24937         ac_cv_have_decl_program_invocation_short_name=no
24938 fi
24939
24940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24941 fi
24942 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
24943 $as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
24944 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
24945
24946 cat >>confdefs.h <<\_ACEOF
24947 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
24948 _ACEOF
24949
24950 else
24951
24952 cat >>confdefs.h <<\_ACEOF
24953 #define GNULIB_PROGRAM_INVOCATION_SHORT_NAME 1
24954 _ACEOF
24955
24956 fi
24957
24958
24959   # Check if program_invocation_name and program_invocation_short_name
24960   # are defined elsewhere. It is improbable that only one of them will
24961   # be defined and other not, I prefer to stay on the safe side and to
24962   # test each one separately.
24963   { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is defined" >&5
24964 $as_echo_n "checking whether program_invocation_name is defined... " >&6; }
24965   cat >conftest.$ac_ext <<_ACEOF
24966 /* confdefs.h.  */
24967 _ACEOF
24968 cat confdefs.h >>conftest.$ac_ext
24969 cat >>conftest.$ac_ext <<_ACEOF
24970 /* end confdefs.h.  */
24971 #include <argp.h>
24972 int
24973 main ()
24974 {
24975 program_invocation_name = "test";
24976   ;
24977   return 0;
24978 }
24979 _ACEOF
24980 rm -f conftest.$ac_objext conftest$ac_exeext
24981 if { (ac_try="$ac_link"
24982 case "(($ac_try" in
24983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24984   *) ac_try_echo=$ac_try;;
24985 esac
24986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24987 $as_echo "$ac_try_echo") >&5
24988   (eval "$ac_link") 2>conftest.er1
24989   ac_status=$?
24990   grep -v '^ *+' conftest.er1 >conftest.err
24991   rm -f conftest.er1
24992   cat conftest.err >&5
24993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24994   (exit $ac_status); } && {
24995          test -z "$ac_c_werror_flag" ||
24996          test ! -s conftest.err
24997        } && test -s conftest$ac_exeext && {
24998          test "$cross_compiling" = yes ||
24999          $as_test_x conftest$ac_exeext
25000        }; then
25001
25002 cat >>confdefs.h <<\_ACEOF
25003 #define HAVE_PROGRAM_INVOCATION_NAME 1
25004 _ACEOF
25005
25006                   { $as_echo "$as_me:$LINENO: result: yes" >&5
25007 $as_echo "yes" >&6; }
25008 else
25009   $as_echo "$as_me: failed program was:" >&5
25010 sed 's/^/| /' conftest.$ac_ext >&5
25011
25012         { $as_echo "$as_me:$LINENO: result: no" >&5
25013 $as_echo "no" >&6; }
25014 fi
25015
25016 rm -rf conftest.dSYM
25017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25018       conftest$ac_exeext conftest.$ac_ext
25019
25020   { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is defined" >&5
25021 $as_echo_n "checking whether program_invocation_short_name is defined... " >&6; }
25022   cat >conftest.$ac_ext <<_ACEOF
25023 /* confdefs.h.  */
25024 _ACEOF
25025 cat confdefs.h >>conftest.$ac_ext
25026 cat >>conftest.$ac_ext <<_ACEOF
25027 /* end confdefs.h.  */
25028 #include <argp.h>
25029 int
25030 main ()
25031 {
25032 program_invocation_short_name = "test";
25033   ;
25034   return 0;
25035 }
25036 _ACEOF
25037 rm -f conftest.$ac_objext conftest$ac_exeext
25038 if { (ac_try="$ac_link"
25039 case "(($ac_try" in
25040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25041   *) ac_try_echo=$ac_try;;
25042 esac
25043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25044 $as_echo "$ac_try_echo") >&5
25045   (eval "$ac_link") 2>conftest.er1
25046   ac_status=$?
25047   grep -v '^ *+' conftest.er1 >conftest.err
25048   rm -f conftest.er1
25049   cat conftest.err >&5
25050   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25051   (exit $ac_status); } && {
25052          test -z "$ac_c_werror_flag" ||
25053          test ! -s conftest.err
25054        } && test -s conftest$ac_exeext && {
25055          test "$cross_compiling" = yes ||
25056          $as_test_x conftest$ac_exeext
25057        }; then
25058
25059 cat >>confdefs.h <<\_ACEOF
25060 #define HAVE_PROGRAM_INVOCATION_SHORT_NAME 1
25061 _ACEOF
25062
25063                   { $as_echo "$as_me:$LINENO: result: yes" >&5
25064 $as_echo "yes" >&6; }
25065 else
25066   $as_echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25068
25069         { $as_echo "$as_me:$LINENO: result: no" >&5
25070 $as_echo "no" >&6; }
25071 fi
25072
25073 rm -rf conftest.dSYM
25074 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25075       conftest$ac_exeext conftest.$ac_ext
25076
25077
25078
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093
25094
25095
25096
25097
25098
25099
25100
25101
25102
25103
25104
25105
25106
25107
25108
25109
25110
25111
25112
25113
25114
25115
25116
25117
25118
25119
25120
25121
25122
25123
25124
25125
25126
25127
25128
25129
25130
25131
25132
25133
25134
25135
25136
25137
25138
25139
25140
25141
25142
25143
25144
25145
25146
25147
25148   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_error:2:c-format"
25149
25150
25151
25152   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=argp_failure:4:c-format"
25153
25154   # Code from module argp-version-etc:
25155   # Code from module backupfile:
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165   gl_LIBOBJS="$gl_LIBOBJS backupfile.$ac_objext"
25166
25167
25168
25169
25170
25171
25172
25173
25174
25175
25176
25177   # Code from module bitrotate:
25178
25179   # Code from module btowc:
25180
25181
25182
25183
25184
25185
25186
25187
25188
25189
25190
25191   if test $ac_cv_func_btowc = no; then
25192     HAVE_BTOWC=0
25193   else
25194
25195
25196
25197
25198         { $as_echo "$as_me:$LINENO: checking whether btowc(0) is correct" >&5
25199 $as_echo_n "checking whether btowc(0) is correct... " >&6; }
25200 if test "${gl_cv_func_btowc_nul+set}" = set; then
25201   $as_echo_n "(cached) " >&6
25202 else
25203
25204         if test "$cross_compiling" = yes; then
25205
25206            case "$host_os" in
25207                       # Guess no on Cygwin.
25208              cygwin*) gl_cv_func_btowc_nul="guessing no" ;;
25209                       # Guess yes otherwise.
25210              *)       gl_cv_func_btowc_nul="guessing yes" ;;
25211            esac
25212
25213 else
25214   cat >conftest.$ac_ext <<_ACEOF
25215 /* confdefs.h.  */
25216 _ACEOF
25217 cat confdefs.h >>conftest.$ac_ext
25218 cat >>conftest.$ac_ext <<_ACEOF
25219 /* end confdefs.h.  */
25220
25221 #include <string.h>
25222 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25223    <wchar.h>.
25224    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25225    included before <wchar.h>.  */
25226 #include <stddef.h>
25227 #include <stdio.h>
25228 #include <time.h>
25229 #include <wchar.h>
25230 int main ()
25231 {
25232   if (btowc ('\0') != 0)
25233     return 1;
25234   return 0;
25235 }
25236 _ACEOF
25237 rm -f conftest$ac_exeext
25238 if { (ac_try="$ac_link"
25239 case "(($ac_try" in
25240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25241   *) ac_try_echo=$ac_try;;
25242 esac
25243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25244 $as_echo "$ac_try_echo") >&5
25245   (eval "$ac_link") 2>&5
25246   ac_status=$?
25247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25248   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25249   { (case "(($ac_try" in
25250   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25251   *) ac_try_echo=$ac_try;;
25252 esac
25253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25254 $as_echo "$ac_try_echo") >&5
25255   (eval "$ac_try") 2>&5
25256   ac_status=$?
25257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25258   (exit $ac_status); }; }; then
25259   gl_cv_func_btowc_nul=yes
25260 else
25261   $as_echo "$as_me: program exited with status $ac_status" >&5
25262 $as_echo "$as_me: failed program was:" >&5
25263 sed 's/^/| /' conftest.$ac_ext >&5
25264
25265 ( exit $ac_status )
25266 gl_cv_func_btowc_nul=no
25267 fi
25268 rm -rf conftest.dSYM
25269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25270 fi
25271
25272
25273
25274 fi
25275 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_nul" >&5
25276 $as_echo "$gl_cv_func_btowc_nul" >&6; }
25277
25278         { $as_echo "$as_me:$LINENO: checking whether btowc(EOF) is correct" >&5
25279 $as_echo_n "checking whether btowc(EOF) is correct... " >&6; }
25280 if test "${gl_cv_func_btowc_eof+set}" = set; then
25281   $as_echo_n "(cached) " >&6
25282 else
25283
25284                         case "$host_os" in
25285                  # Guess no on IRIX.
25286           irix*) gl_cv_func_btowc_eof="guessing no" ;;
25287                  # Guess yes otherwise.
25288           *)     gl_cv_func_btowc_eof="guessing yes" ;;
25289         esac
25290         if test $LOCALE_FR != none; then
25291           if test "$cross_compiling" = yes; then
25292   :
25293 else
25294   cat >conftest.$ac_ext <<_ACEOF
25295 /* confdefs.h.  */
25296 _ACEOF
25297 cat confdefs.h >>conftest.$ac_ext
25298 cat >>conftest.$ac_ext <<_ACEOF
25299 /* end confdefs.h.  */
25300
25301 #include <locale.h>
25302 #include <string.h>
25303 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
25304    <wchar.h>.
25305    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
25306    included before <wchar.h>.  */
25307 #include <stddef.h>
25308 #include <stdio.h>
25309 #include <time.h>
25310 #include <wchar.h>
25311 int main ()
25312 {
25313   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
25314     {
25315       if (btowc (EOF) != WEOF)
25316         return 1;
25317     }
25318   return 0;
25319 }
25320 _ACEOF
25321 rm -f conftest$ac_exeext
25322 if { (ac_try="$ac_link"
25323 case "(($ac_try" in
25324   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25325   *) ac_try_echo=$ac_try;;
25326 esac
25327 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25328 $as_echo "$ac_try_echo") >&5
25329   (eval "$ac_link") 2>&5
25330   ac_status=$?
25331   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25332   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25333   { (case "(($ac_try" in
25334   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25335   *) ac_try_echo=$ac_try;;
25336 esac
25337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25338 $as_echo "$ac_try_echo") >&5
25339   (eval "$ac_try") 2>&5
25340   ac_status=$?
25341   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342   (exit $ac_status); }; }; then
25343   gl_cv_func_btowc_eof=yes
25344 else
25345   $as_echo "$as_me: program exited with status $ac_status" >&5
25346 $as_echo "$as_me: failed program was:" >&5
25347 sed 's/^/| /' conftest.$ac_ext >&5
25348
25349 ( exit $ac_status )
25350 gl_cv_func_btowc_eof=no
25351 fi
25352 rm -rf conftest.dSYM
25353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25354 fi
25355
25356
25357         fi
25358
25359 fi
25360 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_btowc_eof" >&5
25361 $as_echo "$gl_cv_func_btowc_eof" >&6; }
25362
25363     case "$gl_cv_func_btowc_nul" in
25364       *yes) ;;
25365       *) REPLACE_BTOWC=1 ;;
25366     esac
25367     case "$gl_cv_func_btowc_eof" in
25368       *yes) ;;
25369       *) REPLACE_BTOWC=1 ;;
25370     esac
25371   fi
25372   if test $HAVE_BTOWC = 0 || test $REPLACE_BTOWC = 1; then
25373
25374     :
25375
25376
25377
25378
25379
25380
25381
25382
25383
25384   gl_LIBOBJS="$gl_LIBOBJS btowc.$ac_objext"
25385
25386
25387   :
25388
25389   fi
25390
25391
25392
25393
25394   GNULIB_BTOWC=1
25395
25396
25397
25398 cat >>confdefs.h <<\_ACEOF
25399 #define GNULIB_TEST_BTOWC 1
25400 _ACEOF
25401
25402
25403
25404   # Code from module c++defs:
25405   # Code from module c-ctype:
25406   # Code from module canonicalize-lgpl:
25407
25408
25409   if test $ac_cv_func_canonicalize_file_name = no; then
25410     HAVE_CANONICALIZE_FILE_NAME=0
25411
25412
25413
25414
25415
25416
25417
25418
25419   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
25420
25421     if test $ac_cv_func_realpath = no; then
25422       HAVE_REALPATH=0
25423     elif test "$gl_cv_func_realpath_works" != yes; then
25424       REPLACE_REALPATH=1
25425     fi
25426   elif test "$gl_cv_func_realpath_works" != yes; then
25427
25428
25429
25430
25431
25432
25433
25434
25435   gl_LIBOBJS="$gl_LIBOBJS canonicalize-lgpl.$ac_objext"
25436
25437     REPLACE_REALPATH=1
25438     REPLACE_CANONICALIZE_FILE_NAME=1
25439   fi
25440
25441
25442
25443 cat >>confdefs.h <<_ACEOF
25444 #define GNULIB_CANONICALIZE_LGPL 1
25445 _ACEOF
25446
25447
25448
25449
25450
25451   GNULIB_CANONICALIZE_FILE_NAME=1
25452
25453
25454
25455 cat >>confdefs.h <<\_ACEOF
25456 #define GNULIB_TEST_CANONICALIZE_FILE_NAME 1
25457 _ACEOF
25458
25459
25460
25461
25462
25463
25464   GNULIB_REALPATH=1
25465
25466
25467
25468 cat >>confdefs.h <<\_ACEOF
25469 #define GNULIB_TEST_REALPATH 1
25470 _ACEOF
25471
25472
25473
25474   # Code from module chdir-long:
25475
25476   { $as_echo "$as_me:$LINENO: checking whether this system has an arbitrary file name length limit" >&5
25477 $as_echo_n "checking whether this system has an arbitrary file name length limit... " >&6; }
25478 if test "${gl_cv_have_arbitrary_file_name_length_limit+set}" = set; then
25479   $as_echo_n "(cached) " >&6
25480 else
25481   cat >conftest.$ac_ext <<_ACEOF
25482 /* confdefs.h.  */
25483 _ACEOF
25484 cat confdefs.h >>conftest.$ac_ext
25485 cat >>conftest.$ac_ext <<_ACEOF
25486 /* end confdefs.h.  */
25487 #include <unistd.h>
25488 #include <limits.h>
25489 #if defined PATH_MAX || defined MAXPATHLEN
25490 have_arbitrary_file_name_length_limit
25491 #endif
25492 _ACEOF
25493 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25494   $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1; then
25495   gl_cv_have_arbitrary_file_name_length_limit=yes
25496 else
25497   gl_cv_have_arbitrary_file_name_length_limit=no
25498 fi
25499 rm -f conftest*
25500
25501 fi
25502 { $as_echo "$as_me:$LINENO: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
25503 $as_echo "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
25504
25505   if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
25506
25507
25508
25509
25510
25511
25512
25513
25514   gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
25515
25516
25517
25518   :
25519
25520   fi
25521
25522   # Code from module chown:
25523
25524
25525
25526
25527   GNULIB_CHOWN=1
25528
25529
25530
25531 cat >>confdefs.h <<\_ACEOF
25532 #define GNULIB_TEST_CHOWN 1
25533 _ACEOF
25534
25535
25536
25537   # Code from module clock-time:
25538
25539
25540
25541   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
25542   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
25543
25544   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
25545   # programs in the package would end up linked with that potentially-shared
25546   # library, inducing unnecessary run-time overhead.
25547   LIB_CLOCK_GETTIME=
25548
25549   gl_saved_libs=$LIBS
25550     { $as_echo "$as_me:$LINENO: checking for library containing clock_gettime" >&5
25551 $as_echo_n "checking for library containing clock_gettime... " >&6; }
25552 if test "${ac_cv_search_clock_gettime+set}" = set; then
25553   $as_echo_n "(cached) " >&6
25554 else
25555   ac_func_search_save_LIBS=$LIBS
25556 cat >conftest.$ac_ext <<_ACEOF
25557 /* confdefs.h.  */
25558 _ACEOF
25559 cat confdefs.h >>conftest.$ac_ext
25560 cat >>conftest.$ac_ext <<_ACEOF
25561 /* end confdefs.h.  */
25562
25563 /* Override any GCC internal prototype to avoid an error.
25564    Use char because int might match the return type of a GCC
25565    builtin and then its argument prototype would still apply.  */
25566 #ifdef __cplusplus
25567 extern "C"
25568 #endif
25569 char clock_gettime ();
25570 int
25571 main ()
25572 {
25573 return clock_gettime ();
25574   ;
25575   return 0;
25576 }
25577 _ACEOF
25578 for ac_lib in '' rt posix4; do
25579   if test -z "$ac_lib"; then
25580     ac_res="none required"
25581   else
25582     ac_res=-l$ac_lib
25583     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
25584   fi
25585   rm -f conftest.$ac_objext conftest$ac_exeext
25586 if { (ac_try="$ac_link"
25587 case "(($ac_try" in
25588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25589   *) ac_try_echo=$ac_try;;
25590 esac
25591 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25592 $as_echo "$ac_try_echo") >&5
25593   (eval "$ac_link") 2>conftest.er1
25594   ac_status=$?
25595   grep -v '^ *+' conftest.er1 >conftest.err
25596   rm -f conftest.er1
25597   cat conftest.err >&5
25598   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599   (exit $ac_status); } && {
25600          test -z "$ac_c_werror_flag" ||
25601          test ! -s conftest.err
25602        } && test -s conftest$ac_exeext && {
25603          test "$cross_compiling" = yes ||
25604          $as_test_x conftest$ac_exeext
25605        }; then
25606   ac_cv_search_clock_gettime=$ac_res
25607 else
25608   $as_echo "$as_me: failed program was:" >&5
25609 sed 's/^/| /' conftest.$ac_ext >&5
25610
25611
25612 fi
25613
25614 rm -rf conftest.dSYM
25615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25616       conftest$ac_exeext
25617   if test "${ac_cv_search_clock_gettime+set}" = set; then
25618   break
25619 fi
25620 done
25621 if test "${ac_cv_search_clock_gettime+set}" = set; then
25622   :
25623 else
25624   ac_cv_search_clock_gettime=no
25625 fi
25626 rm conftest.$ac_ext
25627 LIBS=$ac_func_search_save_LIBS
25628 fi
25629 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_clock_gettime" >&5
25630 $as_echo "$ac_cv_search_clock_gettime" >&6; }
25631 ac_res=$ac_cv_search_clock_gettime
25632 if test "$ac_res" != no; then
25633   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25634   test "$ac_cv_search_clock_gettime" = "none required" ||
25635                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
25636 fi
25637
25638
25639
25640 for ac_func in clock_gettime clock_settime
25641 do
25642 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25643 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25644 $as_echo_n "checking for $ac_func... " >&6; }
25645 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25646   $as_echo_n "(cached) " >&6
25647 else
25648   cat >conftest.$ac_ext <<_ACEOF
25649 /* confdefs.h.  */
25650 _ACEOF
25651 cat confdefs.h >>conftest.$ac_ext
25652 cat >>conftest.$ac_ext <<_ACEOF
25653 /* end confdefs.h.  */
25654 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25655    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
25656 #define $ac_func innocuous_$ac_func
25657
25658 /* System header to define __stub macros and hopefully few prototypes,
25659     which can conflict with char $ac_func (); below.
25660     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25661     <limits.h> exists even on freestanding compilers.  */
25662
25663 #ifdef __STDC__
25664 # include <limits.h>
25665 #else
25666 # include <assert.h>
25667 #endif
25668
25669 #undef $ac_func
25670
25671 /* Override any GCC internal prototype to avoid an error.
25672    Use char because int might match the return type of a GCC
25673    builtin and then its argument prototype would still apply.  */
25674 #ifdef __cplusplus
25675 extern "C"
25676 #endif
25677 char $ac_func ();
25678 /* The GNU C library defines this for functions which it implements
25679     to always fail with ENOSYS.  Some functions are actually named
25680     something starting with __ and the normal name is an alias.  */
25681 #if defined __stub_$ac_func || defined __stub___$ac_func
25682 choke me
25683 #endif
25684
25685 int
25686 main ()
25687 {
25688 return $ac_func ();
25689   ;
25690   return 0;
25691 }
25692 _ACEOF
25693 rm -f conftest.$ac_objext conftest$ac_exeext
25694 if { (ac_try="$ac_link"
25695 case "(($ac_try" in
25696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697   *) ac_try_echo=$ac_try;;
25698 esac
25699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25700 $as_echo "$ac_try_echo") >&5
25701   (eval "$ac_link") 2>conftest.er1
25702   ac_status=$?
25703   grep -v '^ *+' conftest.er1 >conftest.err
25704   rm -f conftest.er1
25705   cat conftest.err >&5
25706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707   (exit $ac_status); } && {
25708          test -z "$ac_c_werror_flag" ||
25709          test ! -s conftest.err
25710        } && test -s conftest$ac_exeext && {
25711          test "$cross_compiling" = yes ||
25712          $as_test_x conftest$ac_exeext
25713        }; then
25714   eval "$as_ac_var=yes"
25715 else
25716   $as_echo "$as_me: failed program was:" >&5
25717 sed 's/^/| /' conftest.$ac_ext >&5
25718
25719         eval "$as_ac_var=no"
25720 fi
25721
25722 rm -rf conftest.dSYM
25723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25724       conftest$ac_exeext conftest.$ac_ext
25725 fi
25726 ac_res=`eval 'as_val=${'$as_ac_var'}
25727                  $as_echo "$as_val"'`
25728                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25729 $as_echo "$ac_res" >&6; }
25730 as_val=`eval 'as_val=${'$as_ac_var'}
25731                  $as_echo "$as_val"'`
25732    if test "x$as_val" = x""yes; then
25733   cat >>confdefs.h <<_ACEOF
25734 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25735 _ACEOF
25736
25737 fi
25738 done
25739
25740   LIBS=$gl_saved_libs
25741
25742   # Code from module cloexec:
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752   gl_LIBOBJS="$gl_LIBOBJS cloexec.$ac_objext"
25753
25754
25755
25756
25757 cat >>confdefs.h <<\_ACEOF
25758 #define GNULIB_TEST_CLOEXEC 1
25759 _ACEOF
25760
25761
25762   # Code from module close:
25763
25764
25765
25766
25767
25768
25769   GNULIB_CLOSE=1
25770
25771
25772
25773 cat >>confdefs.h <<\_ACEOF
25774 #define GNULIB_TEST_CLOSE 1
25775 _ACEOF
25776
25777
25778
25779   # Code from module close-hook:
25780   # Code from module close-stream:
25781
25782
25783
25784
25785
25786
25787
25788
25789
25790   gl_LIBOBJS="$gl_LIBOBJS close-stream.$ac_objext"
25791
25792
25793     :
25794
25795
25796
25797 cat >>confdefs.h <<_ACEOF
25798 #define GNULIB_CLOSE_STREAM 1
25799 _ACEOF
25800
25801
25802   # Code from module closeout:
25803
25804
25805
25806
25807
25808
25809
25810
25811
25812   gl_LIBOBJS="$gl_LIBOBJS closeout.$ac_objext"
25813
25814
25815     :
25816
25817   # Code from module configmake:
25818
25819           if test "x$datarootdir" = x; then
25820     datarootdir='${datadir}'
25821
25822   fi
25823     if test "x$docdir" = x; then
25824     docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
25825
25826   fi
25827     if test "x$htmldir" = x; then
25828     htmldir='${docdir}'
25829
25830   fi
25831   if test "x$dvidir" = x; then
25832     dvidir='${docdir}'
25833
25834   fi
25835   if test "x$pdfdir" = x; then
25836     pdfdir='${docdir}'
25837
25838   fi
25839   if test "x$psdir" = x; then
25840     psdir='${docdir}'
25841
25842   fi
25843   if test "x$lispdir" = x; then
25844     lispdir='${datarootdir}/emacs/site-lisp'
25845
25846   fi
25847   if test "x$localedir" = x; then
25848     localedir='${datarootdir}/locale'
25849
25850   fi
25851
25852       pkglibexecdir='${libexecdir}/${PACKAGE}'
25853
25854
25855   # Code from module d-ino:
25856   { $as_echo "$as_me:$LINENO: checking for d_ino member in directory struct" >&5
25857 $as_echo_n "checking for d_ino member in directory struct... " >&6; }
25858 if test "${gl_cv_struct_dirent_d_ino+set}" = set; then
25859   $as_echo_n "(cached) " >&6
25860 else
25861   if test "$cross_compiling" = yes; then
25862   gl_cv_struct_dirent_d_ino=no
25863 else
25864   cat >conftest.$ac_ext <<_ACEOF
25865 /* confdefs.h.  */
25866 _ACEOF
25867 cat confdefs.h >>conftest.$ac_ext
25868 cat >>conftest.$ac_ext <<_ACEOF
25869 /* end confdefs.h.  */
25870 #include <sys/types.h>
25871              #include <sys/stat.h>
25872              #include <dirent.h>
25873
25874 int
25875 main ()
25876 {
25877 DIR *dp = opendir (".");
25878              struct dirent *e;
25879              struct stat st;
25880              if (! dp)
25881                return 1;
25882              e = readdir (dp);
25883              if (! e)
25884                return 2;
25885              if (stat (e->d_name, &st) != 0)
25886                return 3;
25887              if (e->d_ino != st.st_ino)
25888                return 4;
25889              return 0;
25890
25891   ;
25892   return 0;
25893 }
25894 _ACEOF
25895 rm -f conftest$ac_exeext
25896 if { (ac_try="$ac_link"
25897 case "(($ac_try" in
25898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25899   *) ac_try_echo=$ac_try;;
25900 esac
25901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25902 $as_echo "$ac_try_echo") >&5
25903   (eval "$ac_link") 2>&5
25904   ac_status=$?
25905   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25907   { (case "(($ac_try" in
25908   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25909   *) ac_try_echo=$ac_try;;
25910 esac
25911 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25912 $as_echo "$ac_try_echo") >&5
25913   (eval "$ac_try") 2>&5
25914   ac_status=$?
25915   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916   (exit $ac_status); }; }; then
25917   gl_cv_struct_dirent_d_ino=yes
25918 else
25919   $as_echo "$as_me: program exited with status $ac_status" >&5
25920 $as_echo "$as_me: failed program was:" >&5
25921 sed 's/^/| /' conftest.$ac_ext >&5
25922
25923 ( exit $ac_status )
25924 gl_cv_struct_dirent_d_ino=no
25925 fi
25926 rm -rf conftest.dSYM
25927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25928 fi
25929
25930
25931 fi
25932 { $as_echo "$as_me:$LINENO: result: $gl_cv_struct_dirent_d_ino" >&5
25933 $as_echo "$gl_cv_struct_dirent_d_ino" >&6; }
25934    if test $gl_cv_struct_dirent_d_ino = yes; then
25935
25936 cat >>confdefs.h <<\_ACEOF
25937 #define D_INO_IN_DIRENT 1
25938 _ACEOF
25939
25940    fi
25941
25942
25943   # Code from module dirent:
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961      if test $gl_cv_have_include_next = yes; then
25962        gl_cv_next_dirent_h='<'dirent.h'>'
25963      else
25964        { $as_echo "$as_me:$LINENO: checking absolute name of <dirent.h>" >&5
25965 $as_echo_n "checking absolute name of <dirent.h>... " >&6; }
25966 if test "${gl_cv_next_dirent_h+set}" = set; then
25967   $as_echo_n "(cached) " >&6
25968 else
25969
25970              if test $ac_cv_header_dirent_h = yes; then
25971
25972
25973                cat >conftest.$ac_ext <<_ACEOF
25974 /* confdefs.h.  */
25975 _ACEOF
25976 cat confdefs.h >>conftest.$ac_ext
25977 cat >>conftest.$ac_ext <<_ACEOF
25978 /* end confdefs.h.  */
25979 #include <dirent.h>
25980
25981 _ACEOF
25982                                                                                                                         case "$host_os" in
25983                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
25984                  *)    gl_absname_cpp="$ac_cpp" ;;
25985                esac
25986                                                             gl_cv_next_dirent_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
25987                   sed -n '\#/dirent.h#{
25988                     s#.*"\(.*/dirent.h\)".*#\1#
25989                     s#^/[^/]#//&#
25990                     p
25991                     q
25992                   }'`'"'
25993           else
25994                gl_cv_next_dirent_h='<'dirent.h'>'
25995              fi
25996
25997
25998 fi
25999 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_dirent_h" >&5
26000 $as_echo "$gl_cv_next_dirent_h" >&6; }
26001      fi
26002      NEXT_DIRENT_H=$gl_cv_next_dirent_h
26003
26004      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26005        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26006        gl_next_as_first_directive='<'dirent.h'>'
26007      else
26008        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26009        gl_next_as_first_directive=$gl_cv_next_dirent_h
26010      fi
26011      NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022   for gl_func in alphasort dirfd fdopendir scandir; do
26023     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
26024     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
26025 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
26026 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
26027   $as_echo_n "(cached) " >&6
26028 else
26029   cat >conftest.$ac_ext <<_ACEOF
26030 /* confdefs.h.  */
26031 _ACEOF
26032 cat confdefs.h >>conftest.$ac_ext
26033 cat >>conftest.$ac_ext <<_ACEOF
26034 /* end confdefs.h.  */
26035 #include <dirent.h>
26036
26037 int
26038 main ()
26039 {
26040 #undef $gl_func
26041   (void) $gl_func;
26042   ;
26043   return 0;
26044 }
26045 _ACEOF
26046 rm -f conftest.$ac_objext
26047 if { (ac_try="$ac_compile"
26048 case "(($ac_try" in
26049   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26050   *) ac_try_echo=$ac_try;;
26051 esac
26052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26053 $as_echo "$ac_try_echo") >&5
26054   (eval "$ac_compile") 2>conftest.er1
26055   ac_status=$?
26056   grep -v '^ *+' conftest.er1 >conftest.err
26057   rm -f conftest.er1
26058   cat conftest.err >&5
26059   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26060   (exit $ac_status); } && {
26061          test -z "$ac_c_werror_flag" ||
26062          test ! -s conftest.err
26063        } && test -s conftest.$ac_objext; then
26064   eval "$as_gl_Symbol=yes"
26065 else
26066   $as_echo "$as_me: failed program was:" >&5
26067 sed 's/^/| /' conftest.$ac_ext >&5
26068
26069         eval "$as_gl_Symbol=no"
26070 fi
26071
26072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26073 fi
26074 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
26075                  $as_echo "$as_val"'`
26076                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26077 $as_echo "$ac_res" >&6; }
26078      as_val=`eval 'as_val=${'$as_gl_Symbol'}
26079                  $as_echo "$as_val"'`
26080    if test "x$as_val" = x""yes; then
26081   cat >>confdefs.h <<_ACEOF
26082 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
26083 _ACEOF
26084
26085                      eval ac_cv_have_decl_$gl_func=yes
26086 fi
26087
26088       done
26089
26090
26091   # Code from module dirent-safer:
26092
26093
26094
26095
26096
26097
26098
26099
26100
26101
26102
26103
26104
26105
26106
26107   gl_LIBOBJS="$gl_LIBOBJS opendir-safer.$ac_objext"
26108
26109
26110
26111
26112 cat >>confdefs.h <<_ACEOF
26113 #define GNULIB_DIRENT_SAFER 1
26114 _ACEOF
26115
26116
26117   # Code from module dirfd:
26118
26119
26120
26121     :
26122
26123
26124
26125
26126
26127 for ac_func in dirfd
26128 do
26129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26130 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
26131 $as_echo_n "checking for $ac_func... " >&6; }
26132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
26133   $as_echo_n "(cached) " >&6
26134 else
26135   cat >conftest.$ac_ext <<_ACEOF
26136 /* confdefs.h.  */
26137 _ACEOF
26138 cat confdefs.h >>conftest.$ac_ext
26139 cat >>conftest.$ac_ext <<_ACEOF
26140 /* end confdefs.h.  */
26141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26142    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
26143 #define $ac_func innocuous_$ac_func
26144
26145 /* System header to define __stub macros and hopefully few prototypes,
26146     which can conflict with char $ac_func (); below.
26147     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26148     <limits.h> exists even on freestanding compilers.  */
26149
26150 #ifdef __STDC__
26151 # include <limits.h>
26152 #else
26153 # include <assert.h>
26154 #endif
26155
26156 #undef $ac_func
26157
26158 /* Override any GCC internal prototype to avoid an error.
26159    Use char because int might match the return type of a GCC
26160    builtin and then its argument prototype would still apply.  */
26161 #ifdef __cplusplus
26162 extern "C"
26163 #endif
26164 char $ac_func ();
26165 /* The GNU C library defines this for functions which it implements
26166     to always fail with ENOSYS.  Some functions are actually named
26167     something starting with __ and the normal name is an alias.  */
26168 #if defined __stub_$ac_func || defined __stub___$ac_func
26169 choke me
26170 #endif
26171
26172 int
26173 main ()
26174 {
26175 return $ac_func ();
26176   ;
26177   return 0;
26178 }
26179 _ACEOF
26180 rm -f conftest.$ac_objext conftest$ac_exeext
26181 if { (ac_try="$ac_link"
26182 case "(($ac_try" in
26183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26184   *) ac_try_echo=$ac_try;;
26185 esac
26186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26187 $as_echo "$ac_try_echo") >&5
26188   (eval "$ac_link") 2>conftest.er1
26189   ac_status=$?
26190   grep -v '^ *+' conftest.er1 >conftest.err
26191   rm -f conftest.er1
26192   cat conftest.err >&5
26193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26194   (exit $ac_status); } && {
26195          test -z "$ac_c_werror_flag" ||
26196          test ! -s conftest.err
26197        } && test -s conftest$ac_exeext && {
26198          test "$cross_compiling" = yes ||
26199          $as_test_x conftest$ac_exeext
26200        }; then
26201   eval "$as_ac_var=yes"
26202 else
26203   $as_echo "$as_me: failed program was:" >&5
26204 sed 's/^/| /' conftest.$ac_ext >&5
26205
26206         eval "$as_ac_var=no"
26207 fi
26208
26209 rm -rf conftest.dSYM
26210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26211       conftest$ac_exeext conftest.$ac_ext
26212 fi
26213 ac_res=`eval 'as_val=${'$as_ac_var'}
26214                  $as_echo "$as_val"'`
26215                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
26216 $as_echo "$ac_res" >&6; }
26217 as_val=`eval 'as_val=${'$as_ac_var'}
26218                  $as_echo "$as_val"'`
26219    if test "x$as_val" = x""yes; then
26220   cat >>confdefs.h <<_ACEOF
26221 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26222 _ACEOF
26223
26224 fi
26225 done
26226
26227   { $as_echo "$as_me:$LINENO: checking whether dirfd is declared" >&5
26228 $as_echo_n "checking whether dirfd is declared... " >&6; }
26229 if test "${ac_cv_have_decl_dirfd+set}" = set; then
26230   $as_echo_n "(cached) " >&6
26231 else
26232   cat >conftest.$ac_ext <<_ACEOF
26233 /* confdefs.h.  */
26234 _ACEOF
26235 cat confdefs.h >>conftest.$ac_ext
26236 cat >>conftest.$ac_ext <<_ACEOF
26237 /* end confdefs.h.  */
26238 #include <sys/types.h>
26239      #include <dirent.h>
26240
26241 int
26242 main ()
26243 {
26244 #ifndef dirfd
26245   (void) dirfd;
26246 #endif
26247
26248   ;
26249   return 0;
26250 }
26251 _ACEOF
26252 rm -f conftest.$ac_objext
26253 if { (ac_try="$ac_compile"
26254 case "(($ac_try" in
26255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26256   *) ac_try_echo=$ac_try;;
26257 esac
26258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26259 $as_echo "$ac_try_echo") >&5
26260   (eval "$ac_compile") 2>conftest.er1
26261   ac_status=$?
26262   grep -v '^ *+' conftest.er1 >conftest.err
26263   rm -f conftest.er1
26264   cat conftest.err >&5
26265   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26266   (exit $ac_status); } && {
26267          test -z "$ac_c_werror_flag" ||
26268          test ! -s conftest.err
26269        } && test -s conftest.$ac_objext; then
26270   ac_cv_have_decl_dirfd=yes
26271 else
26272   $as_echo "$as_me: failed program was:" >&5
26273 sed 's/^/| /' conftest.$ac_ext >&5
26274
26275         ac_cv_have_decl_dirfd=no
26276 fi
26277
26278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26279 fi
26280 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_dirfd" >&5
26281 $as_echo "$ac_cv_have_decl_dirfd" >&6; }
26282 if test "x$ac_cv_have_decl_dirfd" = x""yes; then
26283
26284 cat >>confdefs.h <<_ACEOF
26285 #define HAVE_DECL_DIRFD 1
26286 _ACEOF
26287
26288
26289 else
26290   cat >>confdefs.h <<_ACEOF
26291 #define HAVE_DECL_DIRFD 0
26292 _ACEOF
26293
26294
26295 fi
26296
26297
26298   if test $ac_cv_have_decl_dirfd = no; then
26299     HAVE_DECL_DIRFD=0
26300   fi
26301
26302   { $as_echo "$as_me:$LINENO: checking whether dirfd is a macro" >&5
26303 $as_echo_n "checking whether dirfd is a macro... " >&6; }
26304 if test "${gl_cv_func_dirfd_macro+set}" = set; then
26305   $as_echo_n "(cached) " >&6
26306 else
26307   cat >conftest.$ac_ext <<_ACEOF
26308 /* confdefs.h.  */
26309 _ACEOF
26310 cat confdefs.h >>conftest.$ac_ext
26311 cat >>conftest.$ac_ext <<_ACEOF
26312 /* end confdefs.h.  */
26313
26314 #include <sys/types.h>
26315 #include <dirent.h>
26316 #ifdef dirfd
26317  dirent_header_defines_dirfd
26318 #endif
26319 _ACEOF
26320 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26321   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1; then
26322   gl_cv_func_dirfd_macro=yes
26323 else
26324   gl_cv_func_dirfd_macro=no
26325 fi
26326 rm -f conftest*
26327
26328 fi
26329 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_dirfd_macro" >&5
26330 $as_echo "$gl_cv_func_dirfd_macro" >&6; }
26331
26332   # Use the replacement only if we have no function or macro with that name.
26333   if test $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro = no,no; then
26334     if test $ac_cv_have_decl_dirfd = yes; then
26335       # If the system declares dirfd already, let's declare rpl_dirfd instead.
26336       REPLACE_DIRFD=1
26337     fi
26338
26339
26340
26341
26342
26343
26344
26345
26346   gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
26347
26348     { $as_echo "$as_me:$LINENO: checking how to get the file descriptor associated with an open DIR*" >&5
26349 $as_echo_n "checking how to get the file descriptor associated with an open DIR*... " >&6; }
26350 if test "${gl_cv_sys_dir_fd_member_name+set}" = set; then
26351   $as_echo_n "(cached) " >&6
26352 else
26353
26354         dirfd_save_CFLAGS=$CFLAGS
26355         for ac_expr in d_fd dd_fd; do
26356
26357           CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
26358           cat >conftest.$ac_ext <<_ACEOF
26359 /* confdefs.h.  */
26360 _ACEOF
26361 cat confdefs.h >>conftest.$ac_ext
26362 cat >>conftest.$ac_ext <<_ACEOF
26363 /* end confdefs.h.  */
26364
26365              #include <sys/types.h>
26366              #include <dirent.h>
26367 int
26368 main ()
26369 {
26370 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
26371   ;
26372   return 0;
26373 }
26374 _ACEOF
26375 rm -f conftest.$ac_objext
26376 if { (ac_try="$ac_compile"
26377 case "(($ac_try" in
26378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26379   *) ac_try_echo=$ac_try;;
26380 esac
26381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26382 $as_echo "$ac_try_echo") >&5
26383   (eval "$ac_compile") 2>conftest.er1
26384   ac_status=$?
26385   grep -v '^ *+' conftest.er1 >conftest.err
26386   rm -f conftest.er1
26387   cat conftest.err >&5
26388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389   (exit $ac_status); } && {
26390          test -z "$ac_c_werror_flag" ||
26391          test ! -s conftest.err
26392        } && test -s conftest.$ac_objext; then
26393   dir_fd_found=yes
26394
26395 else
26396   $as_echo "$as_me: failed program was:" >&5
26397 sed 's/^/| /' conftest.$ac_ext >&5
26398
26399
26400 fi
26401
26402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26403           CFLAGS=$dirfd_save_CFLAGS
26404           test "$dir_fd_found" = yes && break
26405         done
26406         test "$dir_fd_found" = yes || ac_expr=no_such_member
26407
26408         gl_cv_sys_dir_fd_member_name=$ac_expr
26409
26410
26411 fi
26412 { $as_echo "$as_me:$LINENO: result: $gl_cv_sys_dir_fd_member_name" >&5
26413 $as_echo "$gl_cv_sys_dir_fd_member_name" >&6; }
26414     if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
26415
26416 cat >>confdefs.h <<_ACEOF
26417 #define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name
26418 _ACEOF
26419
26420     fi
26421
26422
26423   fi
26424
26425
26426
26427
26428   GNULIB_DIRFD=1
26429
26430
26431
26432 cat >>confdefs.h <<\_ACEOF
26433 #define GNULIB_TEST_DIRFD 1
26434 _ACEOF
26435
26436
26437
26438   # Code from module dirname:
26439
26440
26441
26442
26443
26444
26445
26446
26447
26448
26449   gl_LIBOBJS="$gl_LIBOBJS basename.$ac_objext"
26450
26451
26452
26453
26454
26455
26456
26457
26458
26459   gl_LIBOBJS="$gl_LIBOBJS dirname.$ac_objext"
26460
26461
26462
26463
26464 cat >>confdefs.h <<_ACEOF
26465 #define GNULIB_DIRNAME 1
26466 _ACEOF
26467
26468
26469   # Code from module dirname-lgpl:
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479   gl_LIBOBJS="$gl_LIBOBJS basename-lgpl.$ac_objext"
26480
26481
26482
26483
26484
26485
26486
26487
26488
26489   gl_LIBOBJS="$gl_LIBOBJS dirname-lgpl.$ac_objext"
26490
26491
26492
26493
26494
26495
26496
26497
26498
26499   gl_LIBOBJS="$gl_LIBOBJS stripslash.$ac_objext"
26500
26501
26502
26503
26504
26505   # Code from module dosname:
26506   # Code from module double-slash-root:
26507
26508
26509   { $as_echo "$as_me:$LINENO: checking whether // is distinct from /" >&5
26510 $as_echo_n "checking whether // is distinct from /... " >&6; }
26511 if test "${gl_cv_double_slash_root+set}" = set; then
26512   $as_echo_n "(cached) " >&6
26513 else
26514    if test x"$cross_compiling" = xyes ; then
26515         # When cross-compiling, there is no way to tell whether // is special
26516         # short of a list of hosts.  However, the only known hosts to date
26517         # that have a distinct // are Apollo DomainOS (too old to port to),
26518         # Cygwin, and z/OS.  If anyone knows of another system for which // has
26519         # special semantics and is distinct from /, please report it to
26520         # <bug-gnulib@gnu.org>.
26521         case $host in
26522           *-cygwin | i370-ibm-openedition)
26523             gl_cv_double_slash_root=yes ;;
26524           *)
26525             # Be optimistic and assume that / and // are the same when we
26526             # don't know.
26527             gl_cv_double_slash_root='unknown, assuming no' ;;
26528         esac
26529       else
26530         set x `ls -di / // 2>/dev/null`
26531         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
26532           gl_cv_double_slash_root=no
26533         else
26534           gl_cv_double_slash_root=yes
26535         fi
26536       fi
26537 fi
26538 { $as_echo "$as_me:$LINENO: result: $gl_cv_double_slash_root" >&5
26539 $as_echo "$gl_cv_double_slash_root" >&6; }
26540   if test "$gl_cv_double_slash_root" = yes; then
26541
26542 cat >>confdefs.h <<\_ACEOF
26543 #define DOUBLE_SLASH_IS_DISTINCT_ROOT 1
26544 _ACEOF
26545
26546   fi
26547
26548   # Code from module dup2:
26549
26550
26551
26552
26553
26554
26555
26556
26557
26558
26559
26560   if test $ac_cv_func_dup2 = no; then
26561     HAVE_DUP2=0
26562
26563
26564
26565
26566
26567
26568
26569
26570   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
26571
26572   else
26573     { $as_echo "$as_me:$LINENO: checking whether dup2 works" >&5
26574 $as_echo_n "checking whether dup2 works... " >&6; }
26575 if test "${gl_cv_func_dup2_works+set}" = set; then
26576   $as_echo_n "(cached) " >&6
26577 else
26578   if test "$cross_compiling" = yes; then
26579   case "$host_os" in
26580            mingw*) # on this platform, dup2 always returns 0 for success
26581              gl_cv_func_dup2_works=no;;
26582            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
26583              gl_cv_func_dup2_works=no;;
26584            linux*) # On linux between 2008-07-27 and 2009-05-11, dup2 of a
26585                    # closed fd may yield -EBADF instead of -1 / errno=EBADF.
26586              gl_cv_func_dup2_works=no;;
26587            freebsd*) # on FreeBSD 6.1, dup2(1,1000000) gives EMFILE, not EBADF.
26588              gl_cv_func_dup2_works=no;;
26589            haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
26590              gl_cv_func_dup2_works=no;;
26591            *) gl_cv_func_dup2_works=yes;;
26592          esac
26593 else
26594   cat >conftest.$ac_ext <<_ACEOF
26595
26596          /* confdefs.h.  */
26597 _ACEOF
26598 cat confdefs.h >>conftest.$ac_ext
26599 cat >>conftest.$ac_ext <<_ACEOF
26600 /* end confdefs.h.  */
26601 #include <unistd.h>
26602 #include <fcntl.h>
26603 #include <errno.h>
26604 int
26605 main ()
26606 {
26607 int result = 0;
26608 #if HAVE_FCNTL
26609             if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
26610               result |= 1;
26611 #endif HAVE_FCNTL
26612             if (dup2 (1, 1) == 0)
26613               result |= 2;
26614 #if HAVE_FCNTL
26615             if (fcntl (1, F_GETFD) != FD_CLOEXEC)
26616               result |= 4;
26617 #endif
26618             close (0);
26619             if (dup2 (0, 0) != -1)
26620               result |= 8;
26621             /* Many gnulib modules require POSIX conformance of EBADF.  */
26622             if (dup2 (2, 1000000) == -1 && errno != EBADF)
26623               result |= 16;
26624             return result;
26625
26626   ;
26627   return 0;
26628 }
26629
26630 _ACEOF
26631 rm -f conftest$ac_exeext
26632 if { (ac_try="$ac_link"
26633 case "(($ac_try" in
26634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26635   *) ac_try_echo=$ac_try;;
26636 esac
26637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26638 $as_echo "$ac_try_echo") >&5
26639   (eval "$ac_link") 2>&5
26640   ac_status=$?
26641   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26642   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26643   { (case "(($ac_try" in
26644   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26645   *) ac_try_echo=$ac_try;;
26646 esac
26647 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26648 $as_echo "$ac_try_echo") >&5
26649   (eval "$ac_try") 2>&5
26650   ac_status=$?
26651   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652   (exit $ac_status); }; }; then
26653   gl_cv_func_dup2_works=yes
26654 else
26655   $as_echo "$as_me: program exited with status $ac_status" >&5
26656 $as_echo "$as_me: failed program was:" >&5
26657 sed 's/^/| /' conftest.$ac_ext >&5
26658
26659 ( exit $ac_status )
26660 gl_cv_func_dup2_works=no
26661 fi
26662 rm -rf conftest.dSYM
26663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26664 fi
26665
26666
26667
26668 fi
26669 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_dup2_works" >&5
26670 $as_echo "$gl_cv_func_dup2_works" >&6; }
26671     if test "$gl_cv_func_dup2_works" = no; then
26672
26673
26674   if test $ac_cv_func_dup2 = yes; then
26675     REPLACE_DUP2=1
26676   fi
26677
26678
26679
26680
26681
26682
26683
26684
26685   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
26686
26687
26688     fi
26689   fi
26690
26691
26692
26693
26694   GNULIB_DUP2=1
26695
26696
26697
26698 cat >>confdefs.h <<\_ACEOF
26699 #define GNULIB_TEST_DUP2 1
26700 _ACEOF
26701
26702
26703
26704   # Code from module environ:
26705
26706
26707
26708
26709   GNULIB_ENVIRON=1
26710
26711
26712
26713 cat >>confdefs.h <<\_ACEOF
26714 #define GNULIB_TEST_ENVIRON 1
26715 _ACEOF
26716
26717
26718
26719   # Code from module errno:
26720
26721   # Code from module error:
26722
26723
26724
26725
26726
26727
26728
26729
26730
26731
26732
26733
26734
26735
26736   { $as_echo "$as_me:$LINENO: checking for error_at_line" >&5
26737 $as_echo_n "checking for error_at_line... " >&6; }
26738 if test "${ac_cv_lib_error_at_line+set}" = set; then
26739   $as_echo_n "(cached) " >&6
26740 else
26741   cat >conftest.$ac_ext <<_ACEOF
26742 /* confdefs.h.  */
26743 _ACEOF
26744 cat confdefs.h >>conftest.$ac_ext
26745 cat >>conftest.$ac_ext <<_ACEOF
26746 /* end confdefs.h.  */
26747 #include <error.h>
26748 int
26749 main ()
26750 {
26751 error_at_line (0, 0, "", 0, "an error occurred");
26752   ;
26753   return 0;
26754 }
26755 _ACEOF
26756 rm -f conftest.$ac_objext conftest$ac_exeext
26757 if { (ac_try="$ac_link"
26758 case "(($ac_try" in
26759   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26760   *) ac_try_echo=$ac_try;;
26761 esac
26762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26763 $as_echo "$ac_try_echo") >&5
26764   (eval "$ac_link") 2>conftest.er1
26765   ac_status=$?
26766   grep -v '^ *+' conftest.er1 >conftest.err
26767   rm -f conftest.er1
26768   cat conftest.err >&5
26769   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26770   (exit $ac_status); } && {
26771          test -z "$ac_c_werror_flag" ||
26772          test ! -s conftest.err
26773        } && test -s conftest$ac_exeext && {
26774          test "$cross_compiling" = yes ||
26775          $as_test_x conftest$ac_exeext
26776        }; then
26777   ac_cv_lib_error_at_line=yes
26778 else
26779   $as_echo "$as_me: failed program was:" >&5
26780 sed 's/^/| /' conftest.$ac_ext >&5
26781
26782         ac_cv_lib_error_at_line=no
26783 fi
26784
26785 rm -rf conftest.dSYM
26786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
26787       conftest$ac_exeext conftest.$ac_ext
26788 fi
26789 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
26790 $as_echo "$ac_cv_lib_error_at_line" >&6; }
26791   if test $ac_cv_lib_error_at_line = no; then
26792
26793
26794
26795
26796
26797
26798
26799
26800   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
26801
26802   fi
26803
26804
26805
26806
26807   :
26808
26809
26810
26811
26812   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
26813
26814
26815
26816   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
26817
26818   # Code from module exclude:
26819
26820
26821
26822
26823
26824
26825
26826
26827
26828   gl_LIBOBJS="$gl_LIBOBJS exclude.$ac_objext"
26829
26830
26831   # Code from module exitfail:
26832   # Code from module extensions:
26833   # Code from module fchdir:
26834
26835
26836
26837
26838
26839
26840
26841
26842
26843   if test $ac_cv_have_decl_fchdir = no; then
26844     HAVE_DECL_FCHDIR=0
26845   fi
26846
26847
26848
26849
26850
26851
26852
26853   if test $ac_cv_func_fchdir = no; then
26854     HAVE_FCHDIR=0
26855
26856
26857
26858
26859
26860
26861
26862
26863   gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
26864
26865     :
26866
26867 cat >>confdefs.h <<\_ACEOF
26868 #define REPLACE_FCHDIR 1
26869 _ACEOF
26870
26871                 REPLACE_OPENDIR=1
26872     REPLACE_CLOSEDIR=1
26873     REPLACE_DUP=1
26874
26875
26876   REPLACE_OPEN=1
26877
26878
26879
26880
26881
26882
26883
26884
26885   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
26886
26887
26888
26889
26890   :
26891
26892
26893
26894
26895   REPLACE_CLOSE=1
26896
26897
26898
26899
26900
26901
26902
26903
26904   gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
26905
26906
26907
26908   REPLACE_FCLOSE=1
26909
26910
26911
26912
26913
26914
26915
26916
26917   gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
26918
26919
26920
26921
26922
26923   if test $ac_cv_func_dup2 = yes; then
26924     REPLACE_DUP2=1
26925   fi
26926
26927
26928
26929
26930
26931
26932
26933
26934   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
26935
26936
26937
26938
26939
26940
26941
26942
26943
26944
26945   if test $ac_cv_func_fcntl = no; then
26946     HAVE_FCNTL=0
26947   else
26948     REPLACE_FCNTL=1
26949   fi
26950
26951
26952
26953
26954
26955
26956
26957
26958   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
26959
26960
26961
26962     :
26963
26964     { $as_echo "$as_me:$LINENO: checking whether open can visit directories" >&5
26965 $as_echo_n "checking whether open can visit directories... " >&6; }
26966 if test "${gl_cv_func_open_directory_works+set}" = set; then
26967   $as_echo_n "(cached) " >&6
26968 else
26969   if test "$cross_compiling" = yes; then
26970   gl_cv_func_open_directory_works="guessing no"
26971 else
26972   cat >conftest.$ac_ext <<_ACEOF
26973 /* confdefs.h.  */
26974 _ACEOF
26975 cat confdefs.h >>conftest.$ac_ext
26976 cat >>conftest.$ac_ext <<_ACEOF
26977 /* end confdefs.h.  */
26978 #include <fcntl.h>
26979
26980 int
26981 main ()
26982 {
26983 return open(".", O_RDONLY) < 0;
26984   ;
26985   return 0;
26986 }
26987 _ACEOF
26988 rm -f conftest$ac_exeext
26989 if { (ac_try="$ac_link"
26990 case "(($ac_try" in
26991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26992   *) ac_try_echo=$ac_try;;
26993 esac
26994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26995 $as_echo "$ac_try_echo") >&5
26996   (eval "$ac_link") 2>&5
26997   ac_status=$?
26998   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27000   { (case "(($ac_try" in
27001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27002   *) ac_try_echo=$ac_try;;
27003 esac
27004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27005 $as_echo "$ac_try_echo") >&5
27006   (eval "$ac_try") 2>&5
27007   ac_status=$?
27008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27009   (exit $ac_status); }; }; then
27010   gl_cv_func_open_directory_works=yes
27011 else
27012   $as_echo "$as_me: program exited with status $ac_status" >&5
27013 $as_echo "$as_me: failed program was:" >&5
27014 sed 's/^/| /' conftest.$ac_ext >&5
27015
27016 ( exit $ac_status )
27017 gl_cv_func_open_directory_works=no
27018 fi
27019 rm -rf conftest.dSYM
27020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27021 fi
27022
27023
27024 fi
27025 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_open_directory_works" >&5
27026 $as_echo "$gl_cv_func_open_directory_works" >&6; }
27027     if test "$gl_cv_func_open_directory_works" != yes; then
27028
27029 cat >>confdefs.h <<\_ACEOF
27030 #define REPLACE_OPEN_DIRECTORY 1
27031 _ACEOF
27032
27033       REPLACE_FSTAT=1
27034     fi
27035   fi
27036
27037
27038
27039
27040   GNULIB_FCHDIR=1
27041
27042
27043
27044 cat >>confdefs.h <<\_ACEOF
27045 #define GNULIB_TEST_FCHDIR 1
27046 _ACEOF
27047
27048
27049
27050   # Code from module fclose:
27051
27052
27053
27054
27055
27056   GNULIB_FCLOSE=1
27057
27058
27059
27060 cat >>confdefs.h <<\_ACEOF
27061 #define GNULIB_TEST_FCLOSE 1
27062 _ACEOF
27063
27064
27065
27066   # Code from module fcntl:
27067
27068
27069
27070
27071
27072
27073
27074
27075
27076
27077   if test $ac_cv_func_fcntl = no; then
27078
27079
27080
27081
27082
27083
27084
27085
27086   if test $ac_cv_func_fcntl = no; then
27087     HAVE_FCNTL=0
27088   else
27089     REPLACE_FCNTL=1
27090   fi
27091
27092
27093
27094
27095
27096
27097
27098
27099   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
27100
27101
27102   else
27103             { $as_echo "$as_me:$LINENO: checking whether fcntl handles F_DUPFD correctly" >&5
27104 $as_echo_n "checking whether fcntl handles F_DUPFD correctly... " >&6; }
27105 if test "${gl_cv_func_fcntl_f_dupfd_works+set}" = set; then
27106   $as_echo_n "(cached) " >&6
27107 else
27108   if test "$cross_compiling" = yes; then
27109   # Guess that it works on glibc systems
27110           case $host_os in #((
27111             *-gnu*) gl_cv_func_fcntl_f_dupfd_works="guessing yes";;
27112             *)      gl_cv_func_fcntl_f_dupfd_works="guessing no";;
27113           esac
27114 else
27115   cat >conftest.$ac_ext <<_ACEOF
27116 /* confdefs.h.  */
27117 _ACEOF
27118 cat confdefs.h >>conftest.$ac_ext
27119 cat >>conftest.$ac_ext <<_ACEOF
27120 /* end confdefs.h.  */
27121
27122 #include <fcntl.h>
27123 #include <errno.h>
27124
27125 int
27126 main ()
27127 {
27128 int result = 0;
27129       if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
27130       if (errno != EINVAL) result |= 2;
27131       return result;
27132
27133   ;
27134   return 0;
27135 }
27136 _ACEOF
27137 rm -f conftest$ac_exeext
27138 if { (ac_try="$ac_link"
27139 case "(($ac_try" in
27140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27141   *) ac_try_echo=$ac_try;;
27142 esac
27143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27144 $as_echo "$ac_try_echo") >&5
27145   (eval "$ac_link") 2>&5
27146   ac_status=$?
27147   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27148   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27149   { (case "(($ac_try" in
27150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27151   *) ac_try_echo=$ac_try;;
27152 esac
27153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27154 $as_echo "$ac_try_echo") >&5
27155   (eval "$ac_try") 2>&5
27156   ac_status=$?
27157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27158   (exit $ac_status); }; }; then
27159   gl_cv_func_fcntl_f_dupfd_works=yes
27160 else
27161   $as_echo "$as_me: program exited with status $ac_status" >&5
27162 $as_echo "$as_me: failed program was:" >&5
27163 sed 's/^/| /' conftest.$ac_ext >&5
27164
27165 ( exit $ac_status )
27166 gl_cv_func_fcntl_f_dupfd_works=no
27167 fi
27168 rm -rf conftest.dSYM
27169 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27170 fi
27171
27172
27173 fi
27174 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
27175 $as_echo "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
27176     case $gl_cv_func_fcntl_f_dupfd_works in
27177       *yes) ;;
27178       *)
27179
27180
27181
27182
27183
27184
27185
27186   if test $ac_cv_func_fcntl = no; then
27187     HAVE_FCNTL=0
27188   else
27189     REPLACE_FCNTL=1
27190   fi
27191
27192
27193
27194
27195
27196
27197
27198
27199   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
27200
27201
27202
27203 cat >>confdefs.h <<\_ACEOF
27204 #define FCNTL_DUPFD_BUGGY 1
27205 _ACEOF
27206  ;;
27207     esac
27208
27209         { $as_echo "$as_me:$LINENO: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
27210 $as_echo_n "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
27211 if test "${gl_cv_func_fcntl_f_dupfd_cloexec+set}" = set; then
27212   $as_echo_n "(cached) " >&6
27213 else
27214   cat >conftest.$ac_ext <<_ACEOF
27215 /* confdefs.h.  */
27216 _ACEOF
27217 cat confdefs.h >>conftest.$ac_ext
27218 cat >>conftest.$ac_ext <<_ACEOF
27219 /* end confdefs.h.  */
27220
27221 #include <fcntl.h>
27222 #ifndef F_DUPFD_CLOEXEC
27223 choke me
27224 #endif
27225
27226 int
27227 main ()
27228 {
27229
27230   ;
27231   return 0;
27232 }
27233 _ACEOF
27234 rm -f conftest.$ac_objext
27235 if { (ac_try="$ac_compile"
27236 case "(($ac_try" in
27237   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27238   *) ac_try_echo=$ac_try;;
27239 esac
27240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27241 $as_echo "$ac_try_echo") >&5
27242   (eval "$ac_compile") 2>conftest.er1
27243   ac_status=$?
27244   grep -v '^ *+' conftest.er1 >conftest.err
27245   rm -f conftest.er1
27246   cat conftest.err >&5
27247   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27248   (exit $ac_status); } && {
27249          test -z "$ac_c_werror_flag" ||
27250          test ! -s conftest.err
27251        } && test -s conftest.$ac_objext; then
27252   cat >conftest.$ac_ext <<_ACEOF
27253 /* confdefs.h.  */
27254 _ACEOF
27255 cat confdefs.h >>conftest.$ac_ext
27256 cat >>conftest.$ac_ext <<_ACEOF
27257 /* end confdefs.h.  */
27258
27259 #ifdef __linux__
27260 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
27261    it to support the semantics on older kernels that failed with EINVAL.  */
27262 choke me
27263 #endif
27264
27265 int
27266 main ()
27267 {
27268
27269   ;
27270   return 0;
27271 }
27272 _ACEOF
27273 rm -f conftest.$ac_objext
27274 if { (ac_try="$ac_compile"
27275 case "(($ac_try" in
27276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27277   *) ac_try_echo=$ac_try;;
27278 esac
27279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27280 $as_echo "$ac_try_echo") >&5
27281   (eval "$ac_compile") 2>conftest.er1
27282   ac_status=$?
27283   grep -v '^ *+' conftest.er1 >conftest.err
27284   rm -f conftest.er1
27285   cat conftest.err >&5
27286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27287   (exit $ac_status); } && {
27288          test -z "$ac_c_werror_flag" ||
27289          test ! -s conftest.err
27290        } && test -s conftest.$ac_objext; then
27291   gl_cv_func_fcntl_f_dupfd_cloexec=yes
27292 else
27293   $as_echo "$as_me: failed program was:" >&5
27294 sed 's/^/| /' conftest.$ac_ext >&5
27295
27296         gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
27297 fi
27298
27299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27300 else
27301   $as_echo "$as_me: failed program was:" >&5
27302 sed 's/^/| /' conftest.$ac_ext >&5
27303
27304         gl_cv_func_fcntl_f_dupfd_cloexec=no
27305 fi
27306
27307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27308 fi
27309 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
27310 $as_echo "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
27311     if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
27312
27313
27314
27315
27316
27317
27318
27319
27320   if test $ac_cv_func_fcntl = no; then
27321     HAVE_FCNTL=0
27322   else
27323     REPLACE_FCNTL=1
27324   fi
27325
27326
27327
27328
27329
27330
27331
27332
27333   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
27334
27335
27336           fi
27337   fi
27338
27339
27340
27341
27342   GNULIB_FCNTL=1
27343
27344
27345
27346 cat >>confdefs.h <<\_ACEOF
27347 #define GNULIB_TEST_FCNTL 1
27348 _ACEOF
27349
27350
27351
27352   # Code from module fcntl-h:
27353
27354
27355
27356
27357
27358
27359
27360
27361
27362
27363
27364      if test $gl_cv_have_include_next = yes; then
27365        gl_cv_next_fcntl_h='<'fcntl.h'>'
27366      else
27367        { $as_echo "$as_me:$LINENO: checking absolute name of <fcntl.h>" >&5
27368 $as_echo_n "checking absolute name of <fcntl.h>... " >&6; }
27369 if test "${gl_cv_next_fcntl_h+set}" = set; then
27370   $as_echo_n "(cached) " >&6
27371 else
27372
27373                cat >conftest.$ac_ext <<_ACEOF
27374 /* confdefs.h.  */
27375 _ACEOF
27376 cat confdefs.h >>conftest.$ac_ext
27377 cat >>conftest.$ac_ext <<_ACEOF
27378 /* end confdefs.h.  */
27379 #include <fcntl.h>
27380
27381 _ACEOF
27382                                                                                                                         case "$host_os" in
27383                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
27384                  *)    gl_absname_cpp="$ac_cpp" ;;
27385                esac
27386                                                             gl_cv_next_fcntl_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27387                   sed -n '\#/fcntl.h#{
27388                     s#.*"\(.*/fcntl.h\)".*#\1#
27389                     s#^/[^/]#//&#
27390                     p
27391                     q
27392                   }'`'"'
27393
27394
27395 fi
27396 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_fcntl_h" >&5
27397 $as_echo "$gl_cv_next_fcntl_h" >&6; }
27398      fi
27399      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
27400
27401      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27402        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27403        gl_next_as_first_directive='<'fcntl.h'>'
27404      else
27405        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27406        gl_next_as_first_directive=$gl_cv_next_fcntl_h
27407      fi
27408      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
27409
27410
27411
27412
27413
27414
27415
27416
27417   for gl_func in fcntl openat; do
27418     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
27419     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
27420 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
27421 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
27422   $as_echo_n "(cached) " >&6
27423 else
27424   cat >conftest.$ac_ext <<_ACEOF
27425 /* confdefs.h.  */
27426 _ACEOF
27427 cat confdefs.h >>conftest.$ac_ext
27428 cat >>conftest.$ac_ext <<_ACEOF
27429 /* end confdefs.h.  */
27430 #include <fcntl.h>
27431
27432 int
27433 main ()
27434 {
27435 #undef $gl_func
27436   (void) $gl_func;
27437   ;
27438   return 0;
27439 }
27440 _ACEOF
27441 rm -f conftest.$ac_objext
27442 if { (ac_try="$ac_compile"
27443 case "(($ac_try" in
27444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27445   *) ac_try_echo=$ac_try;;
27446 esac
27447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27448 $as_echo "$ac_try_echo") >&5
27449   (eval "$ac_compile") 2>conftest.er1
27450   ac_status=$?
27451   grep -v '^ *+' conftest.er1 >conftest.err
27452   rm -f conftest.er1
27453   cat conftest.err >&5
27454   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27455   (exit $ac_status); } && {
27456          test -z "$ac_c_werror_flag" ||
27457          test ! -s conftest.err
27458        } && test -s conftest.$ac_objext; then
27459   eval "$as_gl_Symbol=yes"
27460 else
27461   $as_echo "$as_me: failed program was:" >&5
27462 sed 's/^/| /' conftest.$ac_ext >&5
27463
27464         eval "$as_gl_Symbol=no"
27465 fi
27466
27467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27468 fi
27469 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
27470                  $as_echo "$as_val"'`
27471                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
27472 $as_echo "$ac_res" >&6; }
27473      as_val=`eval 'as_val=${'$as_gl_Symbol'}
27474                  $as_echo "$as_val"'`
27475    if test "x$as_val" = x""yes; then
27476   cat >>confdefs.h <<_ACEOF
27477 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
27478 _ACEOF
27479
27480                      eval ac_cv_have_decl_$gl_func=yes
27481 fi
27482
27483       done
27484
27485
27486   # Code from module fdopendir:
27487
27488
27489     { $as_echo "$as_me:$LINENO: checking whether fdopendir is declared" >&5
27490 $as_echo_n "checking whether fdopendir is declared... " >&6; }
27491 if test "${ac_cv_have_decl_fdopendir+set}" = set; then
27492   $as_echo_n "(cached) " >&6
27493 else
27494   cat >conftest.$ac_ext <<_ACEOF
27495 /* confdefs.h.  */
27496 _ACEOF
27497 cat confdefs.h >>conftest.$ac_ext
27498 cat >>conftest.$ac_ext <<_ACEOF
27499 /* end confdefs.h.  */
27500
27501 #include <dirent.h>
27502
27503
27504 int
27505 main ()
27506 {
27507 #ifndef fdopendir
27508   (void) fdopendir;
27509 #endif
27510
27511   ;
27512   return 0;
27513 }
27514 _ACEOF
27515 rm -f conftest.$ac_objext
27516 if { (ac_try="$ac_compile"
27517 case "(($ac_try" in
27518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27519   *) ac_try_echo=$ac_try;;
27520 esac
27521 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27522 $as_echo "$ac_try_echo") >&5
27523   (eval "$ac_compile") 2>conftest.er1
27524   ac_status=$?
27525   grep -v '^ *+' conftest.er1 >conftest.err
27526   rm -f conftest.er1
27527   cat conftest.err >&5
27528   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529   (exit $ac_status); } && {
27530          test -z "$ac_c_werror_flag" ||
27531          test ! -s conftest.err
27532        } && test -s conftest.$ac_objext; then
27533   ac_cv_have_decl_fdopendir=yes
27534 else
27535   $as_echo "$as_me: failed program was:" >&5
27536 sed 's/^/| /' conftest.$ac_ext >&5
27537
27538         ac_cv_have_decl_fdopendir=no
27539 fi
27540
27541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27542 fi
27543 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_fdopendir" >&5
27544 $as_echo "$ac_cv_have_decl_fdopendir" >&6; }
27545 if test "x$ac_cv_have_decl_fdopendir" = x""yes; then
27546
27547 cat >>confdefs.h <<_ACEOF
27548 #define HAVE_DECL_FDOPENDIR 1
27549 _ACEOF
27550
27551
27552 else
27553   cat >>confdefs.h <<_ACEOF
27554 #define HAVE_DECL_FDOPENDIR 0
27555 _ACEOF
27556
27557 HAVE_DECL_FDOPENDIR=0
27558 fi
27559
27560
27561
27562
27563
27564
27565
27566
27567   if test $ac_cv_func_fdopendir = no; then
27568
27569
27570
27571
27572
27573
27574
27575
27576   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
27577
27578
27579
27580
27581
27582
27583
27584
27585
27586   gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
27587
27588
27589     :
27590
27591     HAVE_FDOPENDIR=0
27592   else
27593     { $as_echo "$as_me:$LINENO: checking whether fdopendir works" >&5
27594 $as_echo_n "checking whether fdopendir works... " >&6; }
27595 if test "${gl_cv_func_fdopendir_works+set}" = set; then
27596   $as_echo_n "(cached) " >&6
27597 else
27598   if test "$cross_compiling" = yes; then
27599   gl_cv_func_fdopendir_works="guessing no"
27600 else
27601   cat >conftest.$ac_ext <<_ACEOF
27602 /* confdefs.h.  */
27603 _ACEOF
27604 cat confdefs.h >>conftest.$ac_ext
27605 cat >>conftest.$ac_ext <<_ACEOF
27606 /* end confdefs.h.  */
27607
27608 #include <dirent.h>
27609 #include <fcntl.h>
27610 #include <unistd.h>
27611 #if !HAVE_DECL_FDOPENDIR
27612 extern DIR *fdopendir (int);
27613 #endif
27614
27615 int
27616 main ()
27617 {
27618 int result = 0;
27619      int fd = open ("conftest.c", O_RDONLY);
27620      if (fd < 0) result |= 1;
27621      if (fdopendir (fd)) result |= 2;
27622      if (close (fd)) result |= 4;
27623      return result;
27624   ;
27625   return 0;
27626 }
27627 _ACEOF
27628 rm -f conftest$ac_exeext
27629 if { (ac_try="$ac_link"
27630 case "(($ac_try" in
27631   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27632   *) ac_try_echo=$ac_try;;
27633 esac
27634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27635 $as_echo "$ac_try_echo") >&5
27636   (eval "$ac_link") 2>&5
27637   ac_status=$?
27638   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27639   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27640   { (case "(($ac_try" in
27641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27642   *) ac_try_echo=$ac_try;;
27643 esac
27644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27645 $as_echo "$ac_try_echo") >&5
27646   (eval "$ac_try") 2>&5
27647   ac_status=$?
27648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27649   (exit $ac_status); }; }; then
27650   gl_cv_func_fdopendir_works=yes
27651 else
27652   $as_echo "$as_me: program exited with status $ac_status" >&5
27653 $as_echo "$as_me: failed program was:" >&5
27654 sed 's/^/| /' conftest.$ac_ext >&5
27655
27656 ( exit $ac_status )
27657 gl_cv_func_fdopendir_works=no
27658 fi
27659 rm -rf conftest.dSYM
27660 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27661 fi
27662
27663
27664 fi
27665 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fdopendir_works" >&5
27666 $as_echo "$gl_cv_func_fdopendir_works" >&6; }
27667     if test "$gl_cv_func_fdopendir_works" != yes; then
27668       REPLACE_FDOPENDIR=1
27669
27670     :
27671
27672
27673
27674
27675
27676
27677
27678
27679
27680   gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
27681
27682     fi
27683   fi
27684
27685
27686
27687
27688   GNULIB_FDOPENDIR=1
27689
27690
27691
27692 cat >>confdefs.h <<\_ACEOF
27693 #define GNULIB_TEST_FDOPENDIR 1
27694 _ACEOF
27695
27696
27697
27698
27699
27700 cat >>confdefs.h <<_ACEOF
27701 #define GNULIB_FDOPENDIR 1
27702 _ACEOF
27703
27704
27705   # Code from module fdutimensat:
27706
27707
27708 cat >>confdefs.h <<_ACEOF
27709 #define GNULIB_FDUTIMENSAT 1
27710 _ACEOF
27711
27712
27713   # Code from module fileblocks:
27714
27715   { $as_echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5
27716 $as_echo_n "checking for struct stat.st_blocks... " >&6; }
27717 if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then
27718   $as_echo_n "(cached) " >&6
27719 else
27720   cat >conftest.$ac_ext <<_ACEOF
27721 /* confdefs.h.  */
27722 _ACEOF
27723 cat confdefs.h >>conftest.$ac_ext
27724 cat >>conftest.$ac_ext <<_ACEOF
27725 /* end confdefs.h.  */
27726 $ac_includes_default
27727 int
27728 main ()
27729 {
27730 static struct stat ac_aggr;
27731 if (ac_aggr.st_blocks)
27732 return 0;
27733   ;
27734   return 0;
27735 }
27736 _ACEOF
27737 rm -f conftest.$ac_objext
27738 if { (ac_try="$ac_compile"
27739 case "(($ac_try" in
27740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27741   *) ac_try_echo=$ac_try;;
27742 esac
27743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27744 $as_echo "$ac_try_echo") >&5
27745   (eval "$ac_compile") 2>conftest.er1
27746   ac_status=$?
27747   grep -v '^ *+' conftest.er1 >conftest.err
27748   rm -f conftest.er1
27749   cat conftest.err >&5
27750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27751   (exit $ac_status); } && {
27752          test -z "$ac_c_werror_flag" ||
27753          test ! -s conftest.err
27754        } && test -s conftest.$ac_objext; then
27755   ac_cv_member_struct_stat_st_blocks=yes
27756 else
27757   $as_echo "$as_me: failed program was:" >&5
27758 sed 's/^/| /' conftest.$ac_ext >&5
27759
27760         cat >conftest.$ac_ext <<_ACEOF
27761 /* confdefs.h.  */
27762 _ACEOF
27763 cat confdefs.h >>conftest.$ac_ext
27764 cat >>conftest.$ac_ext <<_ACEOF
27765 /* end confdefs.h.  */
27766 $ac_includes_default
27767 int
27768 main ()
27769 {
27770 static struct stat ac_aggr;
27771 if (sizeof ac_aggr.st_blocks)
27772 return 0;
27773   ;
27774   return 0;
27775 }
27776 _ACEOF
27777 rm -f conftest.$ac_objext
27778 if { (ac_try="$ac_compile"
27779 case "(($ac_try" in
27780   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
27781   *) ac_try_echo=$ac_try;;
27782 esac
27783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
27784 $as_echo "$ac_try_echo") >&5
27785   (eval "$ac_compile") 2>conftest.er1
27786   ac_status=$?
27787   grep -v '^ *+' conftest.er1 >conftest.err
27788   rm -f conftest.er1
27789   cat conftest.err >&5
27790   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
27791   (exit $ac_status); } && {
27792          test -z "$ac_c_werror_flag" ||
27793          test ! -s conftest.err
27794        } && test -s conftest.$ac_objext; then
27795   ac_cv_member_struct_stat_st_blocks=yes
27796 else
27797   $as_echo "$as_me: failed program was:" >&5
27798 sed 's/^/| /' conftest.$ac_ext >&5
27799
27800         ac_cv_member_struct_stat_st_blocks=no
27801 fi
27802
27803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27804 fi
27805
27806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27807 fi
27808 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5
27809 $as_echo "$ac_cv_member_struct_stat_st_blocks" >&6; }
27810 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then
27811
27812 cat >>confdefs.h <<_ACEOF
27813 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
27814 _ACEOF
27815
27816
27817 cat >>confdefs.h <<\_ACEOF
27818 #define HAVE_ST_BLOCKS 1
27819 _ACEOF
27820
27821 else
27822
27823
27824
27825
27826
27827
27828
27829
27830   gl_LIBOBJS="$gl_LIBOBJS fileblocks.$ac_objext"
27831
27832 fi
27833
27834
27835     if test $ac_cv_member_struct_stat_st_blocks = no; then
27836
27837
27838
27839
27840
27841
27842
27843   :
27844
27845   fi
27846
27847   # Code from module filenamecat-lgpl:
27848
27849
27850
27851
27852
27853
27854
27855
27856
27857   gl_LIBOBJS="$gl_LIBOBJS filenamecat-lgpl.$ac_objext"
27858
27859
27860
27861
27862
27863
27864
27865
27866
27867   # Code from module float:
27868
27869
27870
27871   FLOAT_H=
27872   case "$host_os" in
27873     beos* | openbsd* | mirbsd*)
27874       FLOAT_H=float.h
27875
27876
27877
27878
27879
27880
27881
27882
27883      if test $gl_cv_have_include_next = yes; then
27884        gl_cv_next_float_h='<'float.h'>'
27885      else
27886        { $as_echo "$as_me:$LINENO: checking absolute name of <float.h>" >&5
27887 $as_echo_n "checking absolute name of <float.h>... " >&6; }
27888 if test "${gl_cv_next_float_h+set}" = set; then
27889   $as_echo_n "(cached) " >&6
27890 else
27891
27892                cat >conftest.$ac_ext <<_ACEOF
27893 /* confdefs.h.  */
27894 _ACEOF
27895 cat confdefs.h >>conftest.$ac_ext
27896 cat >>conftest.$ac_ext <<_ACEOF
27897 /* end confdefs.h.  */
27898 #include <float.h>
27899
27900 _ACEOF
27901                                                                                                                         case "$host_os" in
27902                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
27903                  *)    gl_absname_cpp="$ac_cpp" ;;
27904                esac
27905                                                             gl_cv_next_float_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27906                   sed -n '\#/float.h#{
27907                     s#.*"\(.*/float.h\)".*#\1#
27908                     s#^/[^/]#//&#
27909                     p
27910                     q
27911                   }'`'"'
27912
27913
27914 fi
27915 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_float_h" >&5
27916 $as_echo "$gl_cv_next_float_h" >&6; }
27917      fi
27918      NEXT_FLOAT_H=$gl_cv_next_float_h
27919
27920      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27921        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27922        gl_next_as_first_directive='<'float.h'>'
27923      else
27924        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27925        gl_next_as_first_directive=$gl_cv_next_float_h
27926      fi
27927      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
27928
27929
27930
27931
27932       ;;
27933   esac
27934
27935
27936   # Code from module fnmatch:
27937
27938
27939
27940
27941
27942   FNMATCH_H=
27943   gl_fnmatch_required_lowercase=`
27944     echo $gl_fnmatch_required | tr '[A-Z]' '[a-z]'
27945   `
27946   gl_fnmatch_cache_var="gl_cv_func_fnmatch_${gl_fnmatch_required_lowercase}"
27947   { $as_echo "$as_me:$LINENO: checking for working $gl_fnmatch_required fnmatch" >&5
27948 $as_echo_n "checking for working $gl_fnmatch_required fnmatch... " >&6; }
27949 if { as_var=$gl_fnmatch_cache_var; eval "test \"\${$as_var+set}\" = set"; }; then
27950   $as_echo_n "(cached) " >&6
27951 else
27952                            if test $gl_fnmatch_required = GNU; then
27953        gl_fnmatch_gnu_start=
27954        gl_fnmatch_gnu_end=
27955      else
27956        gl_fnmatch_gnu_start='#if 0'
27957        gl_fnmatch_gnu_end='#endif'
27958      fi
27959      if test "$cross_compiling" = yes; then
27960   eval "$gl_fnmatch_cache_var=\"guessing no\""
27961 else
27962   cat >conftest.$ac_ext <<_ACEOF
27963 /* confdefs.h.  */
27964 _ACEOF
27965 cat confdefs.h >>conftest.$ac_ext
27966 cat >>conftest.$ac_ext <<_ACEOF
27967 /* end confdefs.h.  */
27968 #include <fnmatch.h>
27969             static int
27970             y (char const *pattern, char const *string, int flags)
27971             {
27972               return fnmatch (pattern, string, flags) == 0;
27973             }
27974             static int
27975             n (char const *pattern, char const *string, int flags)
27976             {
27977               return fnmatch (pattern, string, flags) == FNM_NOMATCH;
27978             }
27979
27980 int
27981 main ()
27982 {
27983 char const *Apat = 'A' < '\\\\' ? "[A-\\\\\\\\]" : "[\\\\\\\\-A]";
27984             char const *apat = 'a' < '\\\\' ? "[a-\\\\\\\\]" : "[\\\\\\\\-a]";
27985             static char const A_1[] = { 'A' - 1, 0 };
27986             static char const A01[] = { 'A' + 1, 0 };
27987             static char const a_1[] = { 'a' - 1, 0 };
27988             static char const a01[] = { 'a' + 1, 0 };
27989             static char const bs_1[] = { '\\\\' - 1, 0 };
27990             static char const bs01[] = { '\\\\' + 1, 0 };
27991             int result = 0;
27992             if (!n ("a*", "", 0))
27993               return 1;
27994             if (!y ("a*", "abc", 0))
27995               return 1;
27996             if (!n ("d*/*1", "d/s/1", FNM_PATHNAME))
27997               return 2;
27998             if (!y ("a\\\\bc", "abc", 0))
27999               return 3;
28000             if (!n ("a\\\\bc", "abc", FNM_NOESCAPE))
28001               return 3;
28002             if (!y ("*x", ".x", 0))
28003               return 4;
28004             if (!n ("*x", ".x", FNM_PERIOD))
28005               return 4;
28006             if (!y (Apat, "\\\\", 0))
28007               return 5;
28008             if (!y (Apat, "A", 0))
28009               return 5;
28010             if (!y (apat, "\\\\", 0))
28011               return 5;
28012             if (!y (apat, "a", 0))
28013               return 5;
28014             if (!(n (Apat, A_1, 0) == ('A' < '\\\\')))
28015               return 5;
28016             if (!(n (apat, a_1, 0) == ('a' < '\\\\')))
28017               return 5;
28018             if (!(y (Apat, A01, 0) == ('A' < '\\\\')))
28019               return 5;
28020             if (!(y (apat, a01, 0) == ('a' < '\\\\')))
28021               return 5;
28022             if (!(y (Apat, bs_1, 0) == ('A' < '\\\\')))
28023               return 5;
28024             if (!(y (apat, bs_1, 0) == ('a' < '\\\\')))
28025               return 5;
28026             if (!(n (Apat, bs01, 0) == ('A' < '\\\\')))
28027               return 5;
28028             if (!(n (apat, bs01, 0) == ('a' < '\\\\')))
28029               return 5;
28030             $gl_fnmatch_gnu_start
28031             if (!y ("xxXX", "xXxX", FNM_CASEFOLD))
28032               result |= 8;
28033             if (!y ("a++(x|yy)b", "a+xyyyyxb", FNM_EXTMATCH))
28034               result |= 16;
28035             if (!n ("d*/*1", "d/s/1", FNM_FILE_NAME))
28036               result |= 32;
28037             if (!y ("*", "x", FNM_FILE_NAME | FNM_LEADING_DIR))
28038               result |= 64;
28039             if (!y ("x*", "x/y/z", FNM_FILE_NAME | FNM_LEADING_DIR))
28040               result |= 64;
28041             if (!y ("*c*", "c/x", FNM_FILE_NAME | FNM_LEADING_DIR))
28042               result |= 64;
28043             $gl_fnmatch_gnu_end
28044             return result;
28045
28046   ;
28047   return 0;
28048 }
28049 _ACEOF
28050 rm -f conftest$ac_exeext
28051 if { (ac_try="$ac_link"
28052 case "(($ac_try" in
28053   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28054   *) ac_try_echo=$ac_try;;
28055 esac
28056 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28057 $as_echo "$ac_try_echo") >&5
28058   (eval "$ac_link") 2>&5
28059   ac_status=$?
28060   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28061   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28062   { (case "(($ac_try" in
28063   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28064   *) ac_try_echo=$ac_try;;
28065 esac
28066 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28067 $as_echo "$ac_try_echo") >&5
28068   (eval "$ac_try") 2>&5
28069   ac_status=$?
28070   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28071   (exit $ac_status); }; }; then
28072   eval "$gl_fnmatch_cache_var=yes"
28073 else
28074   $as_echo "$as_me: program exited with status $ac_status" >&5
28075 $as_echo "$as_me: failed program was:" >&5
28076 sed 's/^/| /' conftest.$ac_ext >&5
28077
28078 ( exit $ac_status )
28079 eval "$gl_fnmatch_cache_var=no"
28080 fi
28081 rm -rf conftest.dSYM
28082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28083 fi
28084
28085
28086
28087 fi
28088 ac_res=`eval 'as_val=${'$gl_fnmatch_cache_var'}
28089                  $as_echo "$as_val"'`
28090                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
28091 $as_echo "$ac_res" >&6; }
28092   eval "gl_fnmatch_result=\"\$$gl_fnmatch_cache_var\""
28093   if test "$gl_fnmatch_result" = yes; then
28094             rm -f "$gl_source_base/fnmatch.h"
28095   else
28096     FNMATCH_H=fnmatch.h
28097
28098
28099
28100
28101
28102
28103
28104
28105   gl_LIBOBJS="$gl_LIBOBJS fnmatch.$ac_objext"
28106
28107
28108 cat >>confdefs.h <<_ACEOF
28109 #define fnmatch ${gl_fnmatch_required_lowercase}_fnmatch
28110 _ACEOF
28111
28112
28113     { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
28114 $as_echo_n "checking whether isblank is declared... " >&6; }
28115 if test "${ac_cv_have_decl_isblank+set}" = set; then
28116   $as_echo_n "(cached) " >&6
28117 else
28118   cat >conftest.$ac_ext <<_ACEOF
28119 /* confdefs.h.  */
28120 _ACEOF
28121 cat confdefs.h >>conftest.$ac_ext
28122 cat >>conftest.$ac_ext <<_ACEOF
28123 /* end confdefs.h.  */
28124 #include <ctype.h>
28125
28126 int
28127 main ()
28128 {
28129 #ifndef isblank
28130   (void) isblank;
28131 #endif
28132
28133   ;
28134   return 0;
28135 }
28136 _ACEOF
28137 rm -f conftest.$ac_objext
28138 if { (ac_try="$ac_compile"
28139 case "(($ac_try" in
28140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28141   *) ac_try_echo=$ac_try;;
28142 esac
28143 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28144 $as_echo "$ac_try_echo") >&5
28145   (eval "$ac_compile") 2>conftest.er1
28146   ac_status=$?
28147   grep -v '^ *+' conftest.er1 >conftest.err
28148   rm -f conftest.er1
28149   cat conftest.err >&5
28150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28151   (exit $ac_status); } && {
28152          test -z "$ac_c_werror_flag" ||
28153          test ! -s conftest.err
28154        } && test -s conftest.$ac_objext; then
28155   ac_cv_have_decl_isblank=yes
28156 else
28157   $as_echo "$as_me: failed program was:" >&5
28158 sed 's/^/| /' conftest.$ac_ext >&5
28159
28160         ac_cv_have_decl_isblank=no
28161 fi
28162
28163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28164 fi
28165 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
28166 $as_echo "$ac_cv_have_decl_isblank" >&6; }
28167 if test "x$ac_cv_have_decl_isblank" = x""yes; then
28168
28169 cat >>confdefs.h <<_ACEOF
28170 #define HAVE_DECL_ISBLANK 1
28171 _ACEOF
28172
28173
28174 else
28175   cat >>confdefs.h <<_ACEOF
28176 #define HAVE_DECL_ISBLANK 0
28177 _ACEOF
28178
28179
28180 fi
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190
28191
28192
28193
28194
28195
28196
28197
28198
28199
28200
28201
28202
28203
28204
28205
28206
28207
28208
28209   fi
28210
28211
28212   # Code from module fnmatch-gnu:
28213
28214
28215
28216
28217
28218   # Code from module fpending:
28219
28220
28221
28222
28223
28224
28225
28226
28227
28228
28229
28230
28231
28232   fp_headers='
28233 #     include <stdio.h>
28234 #     if HAVE_STDIO_EXT_H
28235 #      include <stdio_ext.h>
28236 #     endif
28237 '
28238   { $as_echo "$as_me:$LINENO: checking whether __fpending is declared" >&5
28239 $as_echo_n "checking whether __fpending is declared... " >&6; }
28240 if test "${ac_cv_have_decl___fpending+set}" = set; then
28241   $as_echo_n "(cached) " >&6
28242 else
28243   cat >conftest.$ac_ext <<_ACEOF
28244 /* confdefs.h.  */
28245 _ACEOF
28246 cat confdefs.h >>conftest.$ac_ext
28247 cat >>conftest.$ac_ext <<_ACEOF
28248 /* end confdefs.h.  */
28249 $fp_headers
28250
28251 int
28252 main ()
28253 {
28254 #ifndef __fpending
28255   (void) __fpending;
28256 #endif
28257
28258   ;
28259   return 0;
28260 }
28261 _ACEOF
28262 rm -f conftest.$ac_objext
28263 if { (ac_try="$ac_compile"
28264 case "(($ac_try" in
28265   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28266   *) ac_try_echo=$ac_try;;
28267 esac
28268 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28269 $as_echo "$ac_try_echo") >&5
28270   (eval "$ac_compile") 2>conftest.er1
28271   ac_status=$?
28272   grep -v '^ *+' conftest.er1 >conftest.err
28273   rm -f conftest.er1
28274   cat conftest.err >&5
28275   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28276   (exit $ac_status); } && {
28277          test -z "$ac_c_werror_flag" ||
28278          test ! -s conftest.err
28279        } && test -s conftest.$ac_objext; then
28280   ac_cv_have_decl___fpending=yes
28281 else
28282   $as_echo "$as_me: failed program was:" >&5
28283 sed 's/^/| /' conftest.$ac_ext >&5
28284
28285         ac_cv_have_decl___fpending=no
28286 fi
28287
28288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28289 fi
28290 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___fpending" >&5
28291 $as_echo "$ac_cv_have_decl___fpending" >&6; }
28292 if test "x$ac_cv_have_decl___fpending" = x""yes; then
28293
28294 cat >>confdefs.h <<_ACEOF
28295 #define HAVE_DECL___FPENDING 1
28296 _ACEOF
28297
28298
28299 else
28300   cat >>confdefs.h <<_ACEOF
28301 #define HAVE_DECL___FPENDING 0
28302 _ACEOF
28303
28304
28305 fi
28306
28307
28308   if test $ac_cv_func___fpending = no; then
28309     { $as_echo "$as_me:$LINENO: checking how to determine the number of pending output bytes on a stream" >&5
28310 $as_echo_n "checking how to determine the number of pending output bytes on a stream... " >&6; }
28311 if test "${ac_cv_sys_pending_output_n_bytes+set}" = set; then
28312   $as_echo_n "(cached) " >&6
28313 else
28314
28315         for ac_expr in                                                    \
28316                                                                           \
28317             '# glibc2'                                                    \
28318             'fp->_IO_write_ptr - fp->_IO_write_base'                      \
28319                                                                           \
28320             '# traditional Unix'                                          \
28321             'fp->_ptr - fp->_base'                                        \
28322                                                                           \
28323             '# BSD'                                                       \
28324             'fp->_p - fp->_bf._base'                                      \
28325                                                                           \
28326             '# SCO, Unixware'                                             \
28327             '(fp->__ptr ? fp->__ptr - fp->__base : 0)'                    \
28328                                                                           \
28329             '# QNX'                                                       \
28330             '(fp->_Mode & 0x2000 /*_MWRITE*/ ? fp->_Next - fp->_Buf : 0)' \
28331                                                                           \
28332             '# old glibc?'                                                \
28333             'fp->__bufp - fp->__buffer'                                   \
28334                                                                           \
28335             '# old glibc iostream?'                                       \
28336             'fp->_pptr - fp->_pbase'                                      \
28337                                                                           \
28338             '# emx+gcc'                                                   \
28339             'fp->_ptr - fp->_buffer'                                      \
28340                                                                           \
28341             '# VMS'                                                       \
28342             '(*fp)->_ptr - (*fp)->_base'                                  \
28343                                                                           \
28344             '# e.g., DGUX R4.11; the info is not available'               \
28345             1                                                             \
28346             ; do
28347
28348           # Skip each embedded comment.
28349           case "$ac_expr" in '#'*) continue;; esac
28350
28351           cat >conftest.$ac_ext <<_ACEOF
28352 /* confdefs.h.  */
28353 _ACEOF
28354 cat confdefs.h >>conftest.$ac_ext
28355 cat >>conftest.$ac_ext <<_ACEOF
28356 /* end confdefs.h.  */
28357 #include <stdio.h>
28358 int
28359 main ()
28360 {
28361 FILE *fp = stdin; (void) ($ac_expr);
28362   ;
28363   return 0;
28364 }
28365 _ACEOF
28366 rm -f conftest.$ac_objext
28367 if { (ac_try="$ac_compile"
28368 case "(($ac_try" in
28369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28370   *) ac_try_echo=$ac_try;;
28371 esac
28372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28373 $as_echo "$ac_try_echo") >&5
28374   (eval "$ac_compile") 2>conftest.er1
28375   ac_status=$?
28376   grep -v '^ *+' conftest.er1 >conftest.err
28377   rm -f conftest.er1
28378   cat conftest.err >&5
28379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380   (exit $ac_status); } && {
28381          test -z "$ac_c_werror_flag" ||
28382          test ! -s conftest.err
28383        } && test -s conftest.$ac_objext; then
28384   fp_done=yes
28385
28386 else
28387   $as_echo "$as_me: failed program was:" >&5
28388 sed 's/^/| /' conftest.$ac_ext >&5
28389
28390
28391 fi
28392
28393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28394           test "$fp_done" = yes && break
28395         done
28396
28397         ac_cv_sys_pending_output_n_bytes=$ac_expr
28398
28399
28400 fi
28401 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_pending_output_n_bytes" >&5
28402 $as_echo "$ac_cv_sys_pending_output_n_bytes" >&6; }
28403
28404 cat >>confdefs.h <<_ACEOF
28405 #define PENDING_OUTPUT_N_BYTES $ac_cv_sys_pending_output_n_bytes
28406 _ACEOF
28407
28408
28409
28410
28411
28412
28413
28414
28415
28416   gl_LIBOBJS="$gl_LIBOBJS fpending.$ac_objext"
28417
28418   fi
28419
28420   # Code from module fseeko:
28421
28422
28423
28424
28425
28426
28427
28428
28429
28430   if test $ac_cv_have_decl_fseeko = no; then
28431     HAVE_DECL_FSEEKO=0
28432   fi
28433
28434   if test $gl_cv_func_fseeko = no; then
28435     HAVE_FSEEKO=0
28436
28437
28438
28439   if test $gl_cv_func_fseeko = yes; then
28440     REPLACE_FSEEKO=1
28441   fi
28442
28443
28444
28445
28446
28447
28448
28449
28450   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
28451
28452
28453
28454   else
28455     if test $gl_cv_var_stdin_large_offset = no; then
28456
28457
28458
28459   if test $gl_cv_func_fseeko = yes; then
28460     REPLACE_FSEEKO=1
28461   fi
28462
28463
28464
28465
28466
28467
28468
28469
28470   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
28471
28472
28473
28474     fi
28475   fi
28476
28477
28478
28479
28480   GNULIB_FSEEKO=1
28481
28482
28483
28484 cat >>confdefs.h <<\_ACEOF
28485 #define GNULIB_TEST_FSEEKO 1
28486 _ACEOF
28487
28488
28489
28490   # Code from module full-write:
28491   # Code from module futimens:
28492
28493
28494
28495
28496
28497
28498
28499
28500
28501   if test $ac_cv_func_futimens = no; then
28502     HAVE_FUTIMENS=0
28503
28504
28505
28506
28507
28508
28509
28510
28511   gl_LIBOBJS="$gl_LIBOBJS futimens.$ac_objext"
28512
28513   else
28514     { $as_echo "$as_me:$LINENO: checking whether futimens works" >&5
28515 $as_echo_n "checking whether futimens works... " >&6; }
28516 if test "${gl_cv_func_futimens_works+set}" = set; then
28517   $as_echo_n "(cached) " >&6
28518 else
28519   if test "$cross_compiling" = yes; then
28520   gl_cv_func_futimens_works="guessing no"
28521 else
28522   cat >conftest.$ac_ext <<_ACEOF
28523 /* confdefs.h.  */
28524 _ACEOF
28525 cat confdefs.h >>conftest.$ac_ext
28526 cat >>conftest.$ac_ext <<_ACEOF
28527 /* end confdefs.h.  */
28528
28529 #include <fcntl.h>
28530 #include <sys/stat.h>
28531 #include <unistd.h>
28532 #include <errno.h>
28533
28534 int
28535 main ()
28536 {
28537 struct timespec ts[2] = { { 1, UTIME_OMIT }, { 1, UTIME_NOW } };
28538       int fd = creat ("conftest.file", 0600);
28539       struct stat st;
28540       if (fd < 0) return 1;
28541       errno = 0;
28542       if (futimens (AT_FDCWD, NULL) == 0) return 2;
28543       if (errno != EBADF) return 3;
28544       if (futimens (fd, ts)) return 4;
28545       sleep (1);
28546       ts[0].tv_nsec = UTIME_NOW;
28547       ts[1].tv_nsec = UTIME_OMIT;
28548       if (futimens (fd, ts)) return 5;
28549       if (fstat (fd, &st)) return 6;
28550       if (st.st_ctime < st.st_atime) return 7;
28551
28552   ;
28553   return 0;
28554 }
28555 _ACEOF
28556 rm -f conftest$ac_exeext
28557 if { (ac_try="$ac_link"
28558 case "(($ac_try" in
28559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28560   *) ac_try_echo=$ac_try;;
28561 esac
28562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28563 $as_echo "$ac_try_echo") >&5
28564   (eval "$ac_link") 2>&5
28565   ac_status=$?
28566   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28567   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28568   { (case "(($ac_try" in
28569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28570   *) ac_try_echo=$ac_try;;
28571 esac
28572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28573 $as_echo "$ac_try_echo") >&5
28574   (eval "$ac_try") 2>&5
28575   ac_status=$?
28576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577   (exit $ac_status); }; }; then
28578            cat >conftest.$ac_ext <<_ACEOF
28579 /* confdefs.h.  */
28580 _ACEOF
28581 cat confdefs.h >>conftest.$ac_ext
28582 cat >>conftest.$ac_ext <<_ACEOF
28583 /* end confdefs.h.  */
28584
28585 #ifdef __linux__
28586 /* The Linux kernel added futimens in 2.6.22, but has bugs with UTIME_OMIT
28587    in several file systems as recently as 2.6.32.  Always replace futimens
28588    to support older kernels.  */
28589 choke me
28590 #endif
28591
28592 int
28593 main ()
28594 {
28595
28596   ;
28597   return 0;
28598 }
28599 _ACEOF
28600 rm -f conftest.$ac_objext
28601 if { (ac_try="$ac_compile"
28602 case "(($ac_try" in
28603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28604   *) ac_try_echo=$ac_try;;
28605 esac
28606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28607 $as_echo "$ac_try_echo") >&5
28608   (eval "$ac_compile") 2>conftest.er1
28609   ac_status=$?
28610   grep -v '^ *+' conftest.er1 >conftest.err
28611   rm -f conftest.er1
28612   cat conftest.err >&5
28613   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28614   (exit $ac_status); } && {
28615          test -z "$ac_c_werror_flag" ||
28616          test ! -s conftest.err
28617        } && test -s conftest.$ac_objext; then
28618   gl_cv_func_futimens_works=yes
28619 else
28620   $as_echo "$as_me: failed program was:" >&5
28621 sed 's/^/| /' conftest.$ac_ext >&5
28622
28623         gl_cv_func_futimens_works="needs runtime check"
28624 fi
28625
28626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28627 else
28628   $as_echo "$as_me: program exited with status $ac_status" >&5
28629 $as_echo "$as_me: failed program was:" >&5
28630 sed 's/^/| /' conftest.$ac_ext >&5
28631
28632 ( exit $ac_status )
28633 gl_cv_func_futimens_works=no
28634 fi
28635 rm -rf conftest.dSYM
28636 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28637 fi
28638
28639
28640       rm -f conftest.file
28641 fi
28642 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_futimens_works" >&5
28643 $as_echo "$gl_cv_func_futimens_works" >&6; }
28644     if test "$gl_cv_func_futimens_works" != yes; then
28645       REPLACE_FUTIMENS=1
28646
28647
28648
28649
28650
28651
28652
28653
28654   gl_LIBOBJS="$gl_LIBOBJS futimens.$ac_objext"
28655
28656     fi
28657   fi
28658
28659
28660
28661
28662   GNULIB_FUTIMENS=1
28663
28664
28665
28666 cat >>confdefs.h <<\_ACEOF
28667 #define GNULIB_TEST_FUTIMENS 1
28668 _ACEOF
28669
28670
28671
28672   # Code from module getcwd:
28673
28674
28675
28676
28677   gl_abort_bug=no
28678   case $gl_cv_func_getcwd_null,$host_os in
28679   *,mingw*)
28680     gl_cv_func_getcwd_path_max=yes;;
28681   yes,*)
28682
28683
28684
28685
28686
28687
28688   { $as_echo "$as_me:$LINENO: checking whether getcwd handles long file names properly" >&5
28689 $as_echo_n "checking whether getcwd handles long file names properly... " >&6; }
28690 if test "${gl_cv_func_getcwd_path_max+set}" = set; then
28691   $as_echo_n "(cached) " >&6
28692 else
28693   # Arrange for deletion of the temporary directory this test creates.
28694      ac_clean_files="$ac_clean_files confdir3"
28695      if test "$cross_compiling" = yes; then
28696   gl_cv_func_getcwd_path_max=no
28697 else
28698   cat >conftest.$ac_ext <<_ACEOF
28699 /* confdefs.h.  */
28700 _ACEOF
28701 cat confdefs.h >>conftest.$ac_ext
28702 cat >>conftest.$ac_ext <<_ACEOF
28703 /* end confdefs.h.  */
28704
28705 #include <errno.h>
28706 #include <stdlib.h>
28707 #include <unistd.h>
28708 #include <string.h>
28709 #include <limits.h>
28710 #include <sys/stat.h>
28711 #include <sys/types.h>
28712 #include <fcntl.h>
28713
28714 #ifndef AT_FDCWD
28715 # define AT_FDCWD 0
28716 #endif
28717 #ifdef ENAMETOOLONG
28718 # define is_ENAMETOOLONG(x) ((x) == ENAMETOOLONG)
28719 #else
28720 # define is_ENAMETOOLONG(x) 0
28721 #endif
28722
28723 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
28724 #undef mkdir
28725
28726 #ifndef S_IRWXU
28727 # define S_IRWXU 0700
28728 #endif
28729
28730 /* The length of this name must be 8.  */
28731 #define DIR_NAME "confdir3"
28732 #define DIR_NAME_LEN 8
28733 #define DIR_NAME_SIZE (DIR_NAME_LEN + 1)
28734
28735 /* The length of "../".  */
28736 #define DOTDOTSLASH_LEN 3
28737
28738 /* Leftover bytes in the buffer, to work around library or OS bugs.  */
28739 #define BUF_SLOP 20
28740
28741 int
28742 main ()
28743 {
28744 #ifndef PATH_MAX
28745   /* The Hurd doesn't define this, so getcwd can't exhibit the bug --
28746      at least not on a local file system.  And if we were to start worrying
28747      about remote file systems, we'd have to enable the wrapper function
28748      all of the time, just to be safe.  That's not worth the cost.  */
28749   exit (0);
28750 #elif ((INT_MAX / (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1) \
28751         - DIR_NAME_SIZE - BUF_SLOP) \
28752        <= PATH_MAX)
28753   /* FIXME: Assuming there's a system for which this is true,
28754      this should be done in a compile test.  */
28755   exit (0);
28756 #else
28757   char buf[PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN + 1)
28758            + DIR_NAME_SIZE + BUF_SLOP];
28759   char *cwd = getcwd (buf, PATH_MAX);
28760   size_t initial_cwd_len;
28761   size_t cwd_len;
28762   int fail = 0;
28763   size_t n_chdirs = 0;
28764
28765   if (cwd == NULL)
28766     exit (10);
28767
28768   cwd_len = initial_cwd_len = strlen (cwd);
28769
28770   while (1)
28771     {
28772       size_t dotdot_max = PATH_MAX * (DIR_NAME_SIZE / DOTDOTSLASH_LEN);
28773       char *c = NULL;
28774
28775       cwd_len += DIR_NAME_SIZE;
28776       /* If mkdir or chdir fails, it could be that this system cannot create
28777          any file with an absolute name longer than PATH_MAX, such as cygwin.
28778          If so, leave fail as 0, because the current working directory can't
28779          be too long for getcwd if it can't even be created.  For other
28780          errors, be pessimistic and consider that as a failure, too.  */
28781       if (mkdir (DIR_NAME, S_IRWXU) < 0 || chdir (DIR_NAME) < 0)
28782         {
28783           if (! (errno == ERANGE || is_ENAMETOOLONG (errno)))
28784             fail = 20;
28785           break;
28786         }
28787
28788       if (PATH_MAX <= cwd_len && cwd_len < PATH_MAX + DIR_NAME_SIZE)
28789         {
28790           c = getcwd (buf, PATH_MAX);
28791           if (!c && errno == ENOENT)
28792             {
28793               fail = 11;
28794               break;
28795             }
28796           if (c || ! (errno == ERANGE || is_ENAMETOOLONG (errno)))
28797             {
28798               fail = 21;
28799               break;
28800             }
28801         }
28802
28803       if (dotdot_max <= cwd_len - initial_cwd_len)
28804         {
28805           if (dotdot_max + DIR_NAME_SIZE < cwd_len - initial_cwd_len)
28806             break;
28807           c = getcwd (buf, cwd_len + 1);
28808           if (!c)
28809             {
28810               if (! (errno == ERANGE || errno == ENOENT
28811                      || is_ENAMETOOLONG (errno)))
28812                 {
28813                   fail = 22;
28814                   break;
28815                 }
28816               if (AT_FDCWD || errno == ERANGE || errno == ENOENT)
28817                 {
28818                   fail = 12;
28819                   break;
28820                 }
28821             }
28822         }
28823
28824       if (c && strlen (c) != cwd_len)
28825         {
28826           fail = 23;
28827           break;
28828         }
28829       ++n_chdirs;
28830     }
28831
28832   /* Leaving behind such a deep directory is not polite.
28833      So clean up here, right away, even though the driving
28834      shell script would also clean up.  */
28835   {
28836     size_t i;
28837
28838     /* Try rmdir first, in case the chdir failed.  */
28839     rmdir (DIR_NAME);
28840     for (i = 0; i <= n_chdirs; i++)
28841       {
28842         if (chdir ("..") < 0)
28843           break;
28844         if (rmdir (DIR_NAME) != 0)
28845           break;
28846       }
28847   }
28848
28849   exit (fail);
28850 #endif
28851 }
28852
28853 _ACEOF
28854 rm -f conftest$ac_exeext
28855 if { (ac_try="$ac_link"
28856 case "(($ac_try" in
28857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28858   *) ac_try_echo=$ac_try;;
28859 esac
28860 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28861 $as_echo "$ac_try_echo") >&5
28862   (eval "$ac_link") 2>&5
28863   ac_status=$?
28864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28865   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28866   { (case "(($ac_try" in
28867   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28868   *) ac_try_echo=$ac_try;;
28869 esac
28870 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28871 $as_echo "$ac_try_echo") >&5
28872   (eval "$ac_try") 2>&5
28873   ac_status=$?
28874   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28875   (exit $ac_status); }; }; then
28876   gl_cv_func_getcwd_path_max=yes
28877 else
28878   $as_echo "$as_me: program exited with status $ac_status" >&5
28879 $as_echo "$as_me: failed program was:" >&5
28880 sed 's/^/| /' conftest.$ac_ext >&5
28881
28882 ( exit $ac_status )
28883 case $? in
28884      10|11|12) gl_cv_func_getcwd_path_max='no, but it is partly working';;
28885      *) gl_cv_func_getcwd_path_max=no;;
28886      esac
28887 fi
28888 rm -rf conftest.dSYM
28889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28890 fi
28891
28892
28893
28894 fi
28895 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_path_max" >&5
28896 $as_echo "$gl_cv_func_getcwd_path_max" >&6; }
28897   case $gl_cv_func_getcwd_path_max in
28898   no,*)
28899
28900 cat >>confdefs.h <<\_ACEOF
28901 #define HAVE_PARTLY_WORKING_GETCWD 1
28902 _ACEOF
28903 ;;
28904   esac
28905
28906
28907
28908
28909
28910
28911
28912 for ac_func in getpagesize
28913 do
28914 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
28915 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
28916 $as_echo_n "checking for $ac_func... " >&6; }
28917 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
28918   $as_echo_n "(cached) " >&6
28919 else
28920   cat >conftest.$ac_ext <<_ACEOF
28921 /* confdefs.h.  */
28922 _ACEOF
28923 cat confdefs.h >>conftest.$ac_ext
28924 cat >>conftest.$ac_ext <<_ACEOF
28925 /* end confdefs.h.  */
28926 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
28927    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
28928 #define $ac_func innocuous_$ac_func
28929
28930 /* System header to define __stub macros and hopefully few prototypes,
28931     which can conflict with char $ac_func (); below.
28932     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
28933     <limits.h> exists even on freestanding compilers.  */
28934
28935 #ifdef __STDC__
28936 # include <limits.h>
28937 #else
28938 # include <assert.h>
28939 #endif
28940
28941 #undef $ac_func
28942
28943 /* Override any GCC internal prototype to avoid an error.
28944    Use char because int might match the return type of a GCC
28945    builtin and then its argument prototype would still apply.  */
28946 #ifdef __cplusplus
28947 extern "C"
28948 #endif
28949 char $ac_func ();
28950 /* The GNU C library defines this for functions which it implements
28951     to always fail with ENOSYS.  Some functions are actually named
28952     something starting with __ and the normal name is an alias.  */
28953 #if defined __stub_$ac_func || defined __stub___$ac_func
28954 choke me
28955 #endif
28956
28957 int
28958 main ()
28959 {
28960 return $ac_func ();
28961   ;
28962   return 0;
28963 }
28964 _ACEOF
28965 rm -f conftest.$ac_objext conftest$ac_exeext
28966 if { (ac_try="$ac_link"
28967 case "(($ac_try" in
28968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28969   *) ac_try_echo=$ac_try;;
28970 esac
28971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
28972 $as_echo "$ac_try_echo") >&5
28973   (eval "$ac_link") 2>conftest.er1
28974   ac_status=$?
28975   grep -v '^ *+' conftest.er1 >conftest.err
28976   rm -f conftest.er1
28977   cat conftest.err >&5
28978   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
28979   (exit $ac_status); } && {
28980          test -z "$ac_c_werror_flag" ||
28981          test ! -s conftest.err
28982        } && test -s conftest$ac_exeext && {
28983          test "$cross_compiling" = yes ||
28984          $as_test_x conftest$ac_exeext
28985        }; then
28986   eval "$as_ac_var=yes"
28987 else
28988   $as_echo "$as_me: failed program was:" >&5
28989 sed 's/^/| /' conftest.$ac_ext >&5
28990
28991         eval "$as_ac_var=no"
28992 fi
28993
28994 rm -rf conftest.dSYM
28995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
28996       conftest$ac_exeext conftest.$ac_ext
28997 fi
28998 ac_res=`eval 'as_val=${'$as_ac_var'}
28999                  $as_echo "$as_val"'`
29000                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29001 $as_echo "$ac_res" >&6; }
29002 as_val=`eval 'as_val=${'$as_ac_var'}
29003                  $as_echo "$as_val"'`
29004    if test "x$as_val" = x""yes; then
29005   cat >>confdefs.h <<_ACEOF
29006 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29007 _ACEOF
29008
29009 fi
29010 done
29011
29012   { $as_echo "$as_me:$LINENO: checking whether getcwd aborts when 4k < cwd_length < 16k" >&5
29013 $as_echo_n "checking whether getcwd aborts when 4k < cwd_length < 16k... " >&6; }
29014 if test "${gl_cv_func_getcwd_abort_bug+set}" = set; then
29015   $as_echo_n "(cached) " >&6
29016 else
29017   # Remove any remnants of a previous test.
29018      rm -rf confdir-14B---
29019      # Arrange for deletion of the temporary directory this test creates.
29020      ac_clean_files="$ac_clean_files confdir-14B---"
29021      if test "$cross_compiling" = yes; then
29022   gl_cv_func_getcwd_abort_bug=yes
29023 else
29024   cat >conftest.$ac_ext <<_ACEOF
29025 /* confdefs.h.  */
29026 _ACEOF
29027 cat confdefs.h >>conftest.$ac_ext
29028 cat >>conftest.$ac_ext <<_ACEOF
29029 /* end confdefs.h.  */
29030
29031 #include <stdlib.h>
29032 #include <unistd.h>
29033 #include <limits.h>
29034 #include <string.h>
29035 #include <sys/stat.h>
29036
29037 /* Don't get link errors because mkdir is redefined to rpl_mkdir.  */
29038 #undef mkdir
29039
29040 #ifndef S_IRWXU
29041 # define S_IRWXU 0700
29042 #endif
29043
29044 /* FIXME: skip the run-test altogether on systems without getpagesize.  */
29045 #if ! HAVE_GETPAGESIZE
29046 # define getpagesize() 0
29047 #endif
29048
29049 /* This size is chosen to be larger than PATH_MAX (4k), yet smaller than
29050    the 16kB pagesize on ia64 linux.  Those conditions make the code below
29051    trigger a bug in glibc's getcwd implementation before 2.4.90-10.  */
29052 #define TARGET_LEN (5 * 1024)
29053
29054 int
29055 main ()
29056 {
29057   char const *dir_name = "confdir-14B---";
29058   char *cwd;
29059   size_t initial_cwd_len;
29060   int fail = 0;
29061   size_t desired_depth;
29062   size_t d;
29063
29064   /* The bug is triggered when PATH_MAX < getpagesize (), so skip
29065      this relative expensive and invasive test if that's not true.  */
29066   if (getpagesize () <= PATH_MAX)
29067     return 0;
29068
29069   cwd = getcwd (NULL, 0);
29070   if (cwd == NULL)
29071     return 0;
29072
29073   initial_cwd_len = strlen (cwd);
29074   free (cwd);
29075   desired_depth = ((TARGET_LEN - 1 - initial_cwd_len)
29076                    / (1 + strlen (dir_name)));
29077   for (d = 0; d < desired_depth; d++)
29078     {
29079       if (mkdir (dir_name, S_IRWXU) < 0 || chdir (dir_name) < 0)
29080         {
29081           fail = 3; /* Unable to construct deep hierarchy.  */
29082           break;
29083         }
29084     }
29085
29086   /* If libc has the bug in question, this invocation of getcwd
29087      results in a failed assertion.  */
29088   cwd = getcwd (NULL, 0);
29089   if (cwd == NULL)
29090     fail = 4; /* getcwd failed.  This is ok, and expected.  */
29091   free (cwd);
29092
29093   /* Call rmdir first, in case the above chdir failed.  */
29094   rmdir (dir_name);
29095   while (0 < d--)
29096     {
29097       if (chdir ("..") < 0)
29098         break;
29099       rmdir (dir_name);
29100     }
29101
29102   return 0;
29103 }
29104
29105 _ACEOF
29106 rm -f conftest$ac_exeext
29107 if { (ac_try="$ac_link"
29108 case "(($ac_try" in
29109   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29110   *) ac_try_echo=$ac_try;;
29111 esac
29112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29113 $as_echo "$ac_try_echo") >&5
29114   (eval "$ac_link") 2>&5
29115   ac_status=$?
29116   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29117   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29118   { (case "(($ac_try" in
29119   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29120   *) ac_try_echo=$ac_try;;
29121 esac
29122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29123 $as_echo "$ac_try_echo") >&5
29124   (eval "$ac_try") 2>&5
29125   ac_status=$?
29126   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29127   (exit $ac_status); }; }; then
29128   gl_cv_func_getcwd_abort_bug=no
29129 else
29130   $as_echo "$as_me: program exited with status $ac_status" >&5
29131 $as_echo "$as_me: failed program was:" >&5
29132 sed 's/^/| /' conftest.$ac_ext >&5
29133
29134 ( exit $ac_status )
29135 gl_cv_func_getcwd_abort_bug=yes
29136 fi
29137 rm -rf conftest.dSYM
29138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29139 fi
29140
29141
29142
29143 fi
29144 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_getcwd_abort_bug" >&5
29145 $as_echo "$gl_cv_func_getcwd_abort_bug" >&6; }
29146   if test $gl_cv_func_getcwd_abort_bug = yes; then
29147   gl_abort_bug=yes
29148 fi
29149
29150 ;;
29151   esac
29152
29153   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_path_max,$gl_abort_bug in
29154   *yes,yes,no) ;;
29155   *)
29156     REPLACE_GETCWD=1
29157
29158
29159
29160
29161
29162
29163
29164
29165   gl_LIBOBJS="$gl_LIBOBJS getcwd.$ac_objext"
29166
29167
29168
29169
29170   :
29171 ;;
29172   esac
29173
29174
29175
29176
29177   GNULIB_GETCWD=1
29178
29179
29180
29181 cat >>confdefs.h <<\_ACEOF
29182 #define GNULIB_TEST_GETCWD 1
29183 _ACEOF
29184
29185
29186
29187   # Code from module getdelim:
29188
29189
29190
29191
29192
29193
29194
29195
29196
29197
29198
29199
29200
29201
29202
29203
29204   if test $ac_cv_func_getdelim = yes; then
29205         { $as_echo "$as_me:$LINENO: checking for working getdelim function" >&5
29206 $as_echo_n "checking for working getdelim function... " >&6; }
29207 if test "${gl_cv_func_working_getdelim+set}" = set; then
29208   $as_echo_n "(cached) " >&6
29209 else
29210   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
29211     if test "$cross_compiling" = yes; then
29212         cat >conftest.$ac_ext <<_ACEOF
29213 /* confdefs.h.  */
29214 _ACEOF
29215 cat confdefs.h >>conftest.$ac_ext
29216 cat >>conftest.$ac_ext <<_ACEOF
29217 /* end confdefs.h.  */
29218
29219 #include <features.h>
29220 #ifdef __GNU_LIBRARY__
29221  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
29222   Lucky GNU user
29223  #endif
29224 #endif
29225
29226 _ACEOF
29227 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29228   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
29229   gl_cv_func_working_getdelim=yes
29230 else
29231   gl_cv_func_working_getdelim=no
29232 fi
29233 rm -f conftest*
29234
29235
29236 else
29237   cat >conftest.$ac_ext <<_ACEOF
29238 /* confdefs.h.  */
29239 _ACEOF
29240 cat confdefs.h >>conftest.$ac_ext
29241 cat >>conftest.$ac_ext <<_ACEOF
29242 /* end confdefs.h.  */
29243
29244 #    include <stdio.h>
29245 #    include <stdlib.h>
29246 #    include <string.h>
29247     int main ()
29248     {
29249       FILE *in = fopen ("./conftest.data", "r");
29250       if (!in)
29251         return 1;
29252       {
29253         /* Test result for a NULL buffer and a zero size.
29254            Based on a test program from Karl Heuer.  */
29255         char *line = NULL;
29256         size_t siz = 0;
29257         int len = getdelim (&line, &siz, '\n', in);
29258         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
29259           return 2;
29260       }
29261       {
29262         /* Test result for a NULL buffer and a non-zero size.
29263            This crashes on FreeBSD 8.0.  */
29264         char *line = NULL;
29265         size_t siz = (size_t)(~0) / 4;
29266         if (getdelim (&line, &siz, '\n', in) == -1)
29267           return 3;
29268       }
29269       return 0;
29270     }
29271
29272 _ACEOF
29273 rm -f conftest$ac_exeext
29274 if { (ac_try="$ac_link"
29275 case "(($ac_try" in
29276   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29277   *) ac_try_echo=$ac_try;;
29278 esac
29279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29280 $as_echo "$ac_try_echo") >&5
29281   (eval "$ac_link") 2>&5
29282   ac_status=$?
29283   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29284   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29285   { (case "(($ac_try" in
29286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29287   *) ac_try_echo=$ac_try;;
29288 esac
29289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29290 $as_echo "$ac_try_echo") >&5
29291   (eval "$ac_try") 2>&5
29292   ac_status=$?
29293   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29294   (exit $ac_status); }; }; then
29295   gl_cv_func_working_getdelim=yes
29296 else
29297   $as_echo "$as_me: program exited with status $ac_status" >&5
29298 $as_echo "$as_me: failed program was:" >&5
29299 sed 's/^/| /' conftest.$ac_ext >&5
29300
29301 ( exit $ac_status )
29302 gl_cv_func_working_getdelim=no
29303 fi
29304 rm -rf conftest.dSYM
29305 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29306 fi
29307
29308
29309 fi
29310 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_getdelim" >&5
29311 $as_echo "$gl_cv_func_working_getdelim" >&6; }
29312   else
29313     gl_cv_func_working_getdelim=no
29314   fi
29315
29316   if test $ac_cv_have_decl_getdelim = no; then
29317     HAVE_DECL_GETDELIM=0
29318   fi
29319
29320   if test $gl_cv_func_working_getdelim = no; then
29321     if test $ac_cv_func_getdelim = yes; then
29322       REPLACE_GETDELIM=1
29323     fi
29324
29325
29326
29327
29328
29329
29330
29331
29332   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
29333
29334
29335
29336
29337 for ac_func in flockfile funlockfile
29338 do
29339 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29340 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29341 $as_echo_n "checking for $ac_func... " >&6; }
29342 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29343   $as_echo_n "(cached) " >&6
29344 else
29345   cat >conftest.$ac_ext <<_ACEOF
29346 /* confdefs.h.  */
29347 _ACEOF
29348 cat confdefs.h >>conftest.$ac_ext
29349 cat >>conftest.$ac_ext <<_ACEOF
29350 /* end confdefs.h.  */
29351 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29352    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29353 #define $ac_func innocuous_$ac_func
29354
29355 /* System header to define __stub macros and hopefully few prototypes,
29356     which can conflict with char $ac_func (); below.
29357     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29358     <limits.h> exists even on freestanding compilers.  */
29359
29360 #ifdef __STDC__
29361 # include <limits.h>
29362 #else
29363 # include <assert.h>
29364 #endif
29365
29366 #undef $ac_func
29367
29368 /* Override any GCC internal prototype to avoid an error.
29369    Use char because int might match the return type of a GCC
29370    builtin and then its argument prototype would still apply.  */
29371 #ifdef __cplusplus
29372 extern "C"
29373 #endif
29374 char $ac_func ();
29375 /* The GNU C library defines this for functions which it implements
29376     to always fail with ENOSYS.  Some functions are actually named
29377     something starting with __ and the normal name is an alias.  */
29378 #if defined __stub_$ac_func || defined __stub___$ac_func
29379 choke me
29380 #endif
29381
29382 int
29383 main ()
29384 {
29385 return $ac_func ();
29386   ;
29387   return 0;
29388 }
29389 _ACEOF
29390 rm -f conftest.$ac_objext conftest$ac_exeext
29391 if { (ac_try="$ac_link"
29392 case "(($ac_try" in
29393   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29394   *) ac_try_echo=$ac_try;;
29395 esac
29396 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29397 $as_echo "$ac_try_echo") >&5
29398   (eval "$ac_link") 2>conftest.er1
29399   ac_status=$?
29400   grep -v '^ *+' conftest.er1 >conftest.err
29401   rm -f conftest.er1
29402   cat conftest.err >&5
29403   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29404   (exit $ac_status); } && {
29405          test -z "$ac_c_werror_flag" ||
29406          test ! -s conftest.err
29407        } && test -s conftest$ac_exeext && {
29408          test "$cross_compiling" = yes ||
29409          $as_test_x conftest$ac_exeext
29410        }; then
29411   eval "$as_ac_var=yes"
29412 else
29413   $as_echo "$as_me: failed program was:" >&5
29414 sed 's/^/| /' conftest.$ac_ext >&5
29415
29416         eval "$as_ac_var=no"
29417 fi
29418
29419 rm -rf conftest.dSYM
29420 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29421       conftest$ac_exeext conftest.$ac_ext
29422 fi
29423 ac_res=`eval 'as_val=${'$as_ac_var'}
29424                  $as_echo "$as_val"'`
29425                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
29426 $as_echo "$ac_res" >&6; }
29427 as_val=`eval 'as_val=${'$as_ac_var'}
29428                  $as_echo "$as_val"'`
29429    if test "x$as_val" = x""yes; then
29430   cat >>confdefs.h <<_ACEOF
29431 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
29432 _ACEOF
29433
29434 fi
29435 done
29436
29437   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
29438 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
29439 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
29440   $as_echo_n "(cached) " >&6
29441 else
29442   cat >conftest.$ac_ext <<_ACEOF
29443 /* confdefs.h.  */
29444 _ACEOF
29445 cat confdefs.h >>conftest.$ac_ext
29446 cat >>conftest.$ac_ext <<_ACEOF
29447 /* end confdefs.h.  */
29448 $ac_includes_default
29449 int
29450 main ()
29451 {
29452 #ifndef getc_unlocked
29453   (void) getc_unlocked;
29454 #endif
29455
29456   ;
29457   return 0;
29458 }
29459 _ACEOF
29460 rm -f conftest.$ac_objext
29461 if { (ac_try="$ac_compile"
29462 case "(($ac_try" in
29463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29464   *) ac_try_echo=$ac_try;;
29465 esac
29466 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29467 $as_echo "$ac_try_echo") >&5
29468   (eval "$ac_compile") 2>conftest.er1
29469   ac_status=$?
29470   grep -v '^ *+' conftest.er1 >conftest.err
29471   rm -f conftest.er1
29472   cat conftest.err >&5
29473   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29474   (exit $ac_status); } && {
29475          test -z "$ac_c_werror_flag" ||
29476          test ! -s conftest.err
29477        } && test -s conftest.$ac_objext; then
29478   ac_cv_have_decl_getc_unlocked=yes
29479 else
29480   $as_echo "$as_me: failed program was:" >&5
29481 sed 's/^/| /' conftest.$ac_ext >&5
29482
29483         ac_cv_have_decl_getc_unlocked=no
29484 fi
29485
29486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29487 fi
29488 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
29489 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
29490 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
29491
29492 cat >>confdefs.h <<_ACEOF
29493 #define HAVE_DECL_GETC_UNLOCKED 1
29494 _ACEOF
29495
29496
29497 else
29498   cat >>confdefs.h <<_ACEOF
29499 #define HAVE_DECL_GETC_UNLOCKED 0
29500 _ACEOF
29501
29502
29503 fi
29504
29505
29506
29507   fi
29508
29509
29510
29511
29512   GNULIB_GETDELIM=1
29513
29514
29515
29516 cat >>confdefs.h <<\_ACEOF
29517 #define GNULIB_TEST_GETDELIM 1
29518 _ACEOF
29519
29520
29521
29522   # Code from module getdtablesize:
29523
29524
29525
29526
29527
29528
29529
29530
29531   if test $ac_cv_func_getdtablesize != yes; then
29532     HAVE_GETDTABLESIZE=0
29533
29534
29535
29536
29537
29538
29539
29540
29541   gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
29542
29543   fi
29544
29545
29546
29547
29548   GNULIB_GETDTABLESIZE=1
29549
29550
29551
29552 cat >>confdefs.h <<\_ACEOF
29553 #define GNULIB_TEST_GETDTABLESIZE 1
29554 _ACEOF
29555
29556
29557
29558   # Code from module getline:
29559
29560
29561
29562
29563
29564
29565
29566
29567
29568
29569   gl_getline_needs_run_time_check=no
29570   { $as_echo "$as_me:$LINENO: checking for getline" >&5
29571 $as_echo_n "checking for getline... " >&6; }
29572 if test "${ac_cv_func_getline+set}" = set; then
29573   $as_echo_n "(cached) " >&6
29574 else
29575   cat >conftest.$ac_ext <<_ACEOF
29576 /* confdefs.h.  */
29577 _ACEOF
29578 cat confdefs.h >>conftest.$ac_ext
29579 cat >>conftest.$ac_ext <<_ACEOF
29580 /* end confdefs.h.  */
29581 /* Define getline to an innocuous variant, in case <limits.h> declares getline.
29582    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29583 #define getline innocuous_getline
29584
29585 /* System header to define __stub macros and hopefully few prototypes,
29586     which can conflict with char getline (); below.
29587     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29588     <limits.h> exists even on freestanding compilers.  */
29589
29590 #ifdef __STDC__
29591 # include <limits.h>
29592 #else
29593 # include <assert.h>
29594 #endif
29595
29596 #undef getline
29597
29598 /* Override any GCC internal prototype to avoid an error.
29599    Use char because int might match the return type of a GCC
29600    builtin and then its argument prototype would still apply.  */
29601 #ifdef __cplusplus
29602 extern "C"
29603 #endif
29604 char getline ();
29605 /* The GNU C library defines this for functions which it implements
29606     to always fail with ENOSYS.  Some functions are actually named
29607     something starting with __ and the normal name is an alias.  */
29608 #if defined __stub_getline || defined __stub___getline
29609 choke me
29610 #endif
29611
29612 int
29613 main ()
29614 {
29615 return getline ();
29616   ;
29617   return 0;
29618 }
29619 _ACEOF
29620 rm -f conftest.$ac_objext conftest$ac_exeext
29621 if { (ac_try="$ac_link"
29622 case "(($ac_try" in
29623   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29624   *) ac_try_echo=$ac_try;;
29625 esac
29626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29627 $as_echo "$ac_try_echo") >&5
29628   (eval "$ac_link") 2>conftest.er1
29629   ac_status=$?
29630   grep -v '^ *+' conftest.er1 >conftest.err
29631   rm -f conftest.er1
29632   cat conftest.err >&5
29633   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634   (exit $ac_status); } && {
29635          test -z "$ac_c_werror_flag" ||
29636          test ! -s conftest.err
29637        } && test -s conftest$ac_exeext && {
29638          test "$cross_compiling" = yes ||
29639          $as_test_x conftest$ac_exeext
29640        }; then
29641   ac_cv_func_getline=yes
29642 else
29643   $as_echo "$as_me: failed program was:" >&5
29644 sed 's/^/| /' conftest.$ac_ext >&5
29645
29646         ac_cv_func_getline=no
29647 fi
29648
29649 rm -rf conftest.dSYM
29650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
29651       conftest$ac_exeext conftest.$ac_ext
29652 fi
29653 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getline" >&5
29654 $as_echo "$ac_cv_func_getline" >&6; }
29655 if test "x$ac_cv_func_getline" = x""yes; then
29656                    gl_getline_needs_run_time_check=yes
29657 else
29658   am_cv_func_working_getline=no
29659 fi
29660
29661   if test $gl_getline_needs_run_time_check = yes; then
29662     { $as_echo "$as_me:$LINENO: checking for working getline function" >&5
29663 $as_echo_n "checking for working getline function... " >&6; }
29664 if test "${am_cv_func_working_getline+set}" = set; then
29665   $as_echo_n "(cached) " >&6
29666 else
29667   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
29668     if test "$cross_compiling" = yes; then
29669         cat >conftest.$ac_ext <<_ACEOF
29670 /* confdefs.h.  */
29671 _ACEOF
29672 cat confdefs.h >>conftest.$ac_ext
29673 cat >>conftest.$ac_ext <<_ACEOF
29674 /* end confdefs.h.  */
29675
29676 #include <features.h>
29677 #ifdef __GNU_LIBRARY__
29678  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
29679   Lucky GNU user
29680  #endif
29681 #endif
29682
29683 _ACEOF
29684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29685   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
29686   am_cv_func_working_getline=yes
29687 else
29688   am_cv_func_working_getline=no
29689 fi
29690 rm -f conftest*
29691
29692
29693 else
29694   cat >conftest.$ac_ext <<_ACEOF
29695 /* confdefs.h.  */
29696 _ACEOF
29697 cat confdefs.h >>conftest.$ac_ext
29698 cat >>conftest.$ac_ext <<_ACEOF
29699 /* end confdefs.h.  */
29700
29701 #    include <stdio.h>
29702 #    include <stdlib.h>
29703 #    include <string.h>
29704     int main ()
29705     {
29706       FILE *in = fopen ("./conftest.data", "r");
29707       if (!in)
29708         return 1;
29709       {
29710         /* Test result for a NULL buffer and a zero size.
29711            Based on a test program from Karl Heuer.  */
29712         char *line = NULL;
29713         size_t siz = 0;
29714         int len = getline (&line, &siz, in);
29715         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
29716           return 2;
29717       }
29718       {
29719         /* Test result for a NULL buffer and a non-zero size.
29720            This crashes on FreeBSD 8.0.  */
29721         char *line = NULL;
29722         size_t siz = (size_t)(~0) / 4;
29723         if (getline (&line, &siz, in) == -1)
29724           return 3;
29725       }
29726       return 0;
29727     }
29728
29729 _ACEOF
29730 rm -f conftest$ac_exeext
29731 if { (ac_try="$ac_link"
29732 case "(($ac_try" in
29733   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29734   *) ac_try_echo=$ac_try;;
29735 esac
29736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29737 $as_echo "$ac_try_echo") >&5
29738   (eval "$ac_link") 2>&5
29739   ac_status=$?
29740   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29741   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29742   { (case "(($ac_try" in
29743   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29744   *) ac_try_echo=$ac_try;;
29745 esac
29746 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29747 $as_echo "$ac_try_echo") >&5
29748   (eval "$ac_try") 2>&5
29749   ac_status=$?
29750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29751   (exit $ac_status); }; }; then
29752   am_cv_func_working_getline=yes
29753 else
29754   $as_echo "$as_me: program exited with status $ac_status" >&5
29755 $as_echo "$as_me: failed program was:" >&5
29756 sed 's/^/| /' conftest.$ac_ext >&5
29757
29758 ( exit $ac_status )
29759 am_cv_func_working_getline=no
29760 fi
29761 rm -rf conftest.dSYM
29762 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29763 fi
29764
29765
29766 fi
29767 { $as_echo "$as_me:$LINENO: result: $am_cv_func_working_getline" >&5
29768 $as_echo "$am_cv_func_working_getline" >&6; }
29769   fi
29770
29771   if test $ac_cv_have_decl_getline = no; then
29772     HAVE_DECL_GETLINE=0
29773   fi
29774
29775   if test $am_cv_func_working_getline = no; then
29776                 REPLACE_GETLINE=1
29777
29778
29779
29780
29781
29782
29783
29784
29785   gl_LIBOBJS="$gl_LIBOBJS getline.$ac_objext"
29786
29787
29788
29789
29790
29791
29792
29793
29794
29795
29796
29797
29798
29799
29800
29801
29802
29803
29804
29805   if test $ac_cv_func_getdelim = yes; then
29806         { $as_echo "$as_me:$LINENO: checking for working getdelim function" >&5
29807 $as_echo_n "checking for working getdelim function... " >&6; }
29808 if test "${gl_cv_func_working_getdelim+set}" = set; then
29809   $as_echo_n "(cached) " >&6
29810 else
29811   echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
29812     if test "$cross_compiling" = yes; then
29813         cat >conftest.$ac_ext <<_ACEOF
29814 /* confdefs.h.  */
29815 _ACEOF
29816 cat confdefs.h >>conftest.$ac_ext
29817 cat >>conftest.$ac_ext <<_ACEOF
29818 /* end confdefs.h.  */
29819
29820 #include <features.h>
29821 #ifdef __GNU_LIBRARY__
29822  #if (__GLIBC__ >= 2) && !defined __UCLIBC__
29823   Lucky GNU user
29824  #endif
29825 #endif
29826
29827 _ACEOF
29828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29829   $EGREP "Lucky GNU user" >/dev/null 2>&1; then
29830   gl_cv_func_working_getdelim=yes
29831 else
29832   gl_cv_func_working_getdelim=no
29833 fi
29834 rm -f conftest*
29835
29836
29837 else
29838   cat >conftest.$ac_ext <<_ACEOF
29839 /* confdefs.h.  */
29840 _ACEOF
29841 cat confdefs.h >>conftest.$ac_ext
29842 cat >>conftest.$ac_ext <<_ACEOF
29843 /* end confdefs.h.  */
29844
29845 #    include <stdio.h>
29846 #    include <stdlib.h>
29847 #    include <string.h>
29848     int main ()
29849     {
29850       FILE *in = fopen ("./conftest.data", "r");
29851       if (!in)
29852         return 1;
29853       {
29854         /* Test result for a NULL buffer and a zero size.
29855            Based on a test program from Karl Heuer.  */
29856         char *line = NULL;
29857         size_t siz = 0;
29858         int len = getdelim (&line, &siz, '\n', in);
29859         if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
29860           return 2;
29861       }
29862       {
29863         /* Test result for a NULL buffer and a non-zero size.
29864            This crashes on FreeBSD 8.0.  */
29865         char *line = NULL;
29866         size_t siz = (size_t)(~0) / 4;
29867         if (getdelim (&line, &siz, '\n', in) == -1)
29868           return 3;
29869       }
29870       return 0;
29871     }
29872
29873 _ACEOF
29874 rm -f conftest$ac_exeext
29875 if { (ac_try="$ac_link"
29876 case "(($ac_try" in
29877   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29878   *) ac_try_echo=$ac_try;;
29879 esac
29880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29881 $as_echo "$ac_try_echo") >&5
29882   (eval "$ac_link") 2>&5
29883   ac_status=$?
29884   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29885   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
29886   { (case "(($ac_try" in
29887   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29888   *) ac_try_echo=$ac_try;;
29889 esac
29890 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29891 $as_echo "$ac_try_echo") >&5
29892   (eval "$ac_try") 2>&5
29893   ac_status=$?
29894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
29895   (exit $ac_status); }; }; then
29896   gl_cv_func_working_getdelim=yes
29897 else
29898   $as_echo "$as_me: program exited with status $ac_status" >&5
29899 $as_echo "$as_me: failed program was:" >&5
29900 sed 's/^/| /' conftest.$ac_ext >&5
29901
29902 ( exit $ac_status )
29903 gl_cv_func_working_getdelim=no
29904 fi
29905 rm -rf conftest.dSYM
29906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
29907 fi
29908
29909
29910 fi
29911 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_working_getdelim" >&5
29912 $as_echo "$gl_cv_func_working_getdelim" >&6; }
29913   else
29914     gl_cv_func_working_getdelim=no
29915   fi
29916
29917   if test $ac_cv_have_decl_getdelim = no; then
29918     HAVE_DECL_GETDELIM=0
29919   fi
29920
29921   if test $gl_cv_func_working_getdelim = no; then
29922     if test $ac_cv_func_getdelim = yes; then
29923       REPLACE_GETDELIM=1
29924     fi
29925
29926
29927
29928
29929
29930
29931
29932
29933   gl_LIBOBJS="$gl_LIBOBJS getdelim.$ac_objext"
29934
29935
29936
29937
29938 for ac_func in flockfile funlockfile
29939 do
29940 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
29941 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
29942 $as_echo_n "checking for $ac_func... " >&6; }
29943 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
29944   $as_echo_n "(cached) " >&6
29945 else
29946   cat >conftest.$ac_ext <<_ACEOF
29947 /* confdefs.h.  */
29948 _ACEOF
29949 cat confdefs.h >>conftest.$ac_ext
29950 cat >>conftest.$ac_ext <<_ACEOF
29951 /* end confdefs.h.  */
29952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
29953    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
29954 #define $ac_func innocuous_$ac_func
29955
29956 /* System header to define __stub macros and hopefully few prototypes,
29957     which can conflict with char $ac_func (); below.
29958     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
29959     <limits.h> exists even on freestanding compilers.  */
29960
29961 #ifdef __STDC__
29962 # include <limits.h>
29963 #else
29964 # include <assert.h>
29965 #endif
29966
29967 #undef $ac_func
29968
29969 /* Override any GCC internal prototype to avoid an error.
29970    Use char because int might match the return type of a GCC
29971    builtin and then its argument prototype would still apply.  */
29972 #ifdef __cplusplus
29973 extern "C"
29974 #endif
29975 char $ac_func ();
29976 /* The GNU C library defines this for functions which it implements
29977     to always fail with ENOSYS.  Some functions are actually named
29978     something starting with __ and the normal name is an alias.  */
29979 #if defined __stub_$ac_func || defined __stub___$ac_func
29980 choke me
29981 #endif
29982
29983 int
29984 main ()
29985 {
29986 return $ac_func ();
29987   ;
29988   return 0;
29989 }
29990 _ACEOF
29991 rm -f conftest.$ac_objext conftest$ac_exeext
29992 if { (ac_try="$ac_link"
29993 case "(($ac_try" in
29994   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
29995   *) ac_try_echo=$ac_try;;
29996 esac
29997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
29998 $as_echo "$ac_try_echo") >&5
29999   (eval "$ac_link") 2>conftest.er1
30000   ac_status=$?
30001   grep -v '^ *+' conftest.er1 >conftest.err
30002   rm -f conftest.er1
30003   cat conftest.err >&5
30004   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30005   (exit $ac_status); } && {
30006          test -z "$ac_c_werror_flag" ||
30007          test ! -s conftest.err
30008        } && test -s conftest$ac_exeext && {
30009          test "$cross_compiling" = yes ||
30010          $as_test_x conftest$ac_exeext
30011        }; then
30012   eval "$as_ac_var=yes"
30013 else
30014   $as_echo "$as_me: failed program was:" >&5
30015 sed 's/^/| /' conftest.$ac_ext >&5
30016
30017         eval "$as_ac_var=no"
30018 fi
30019
30020 rm -rf conftest.dSYM
30021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30022       conftest$ac_exeext conftest.$ac_ext
30023 fi
30024 ac_res=`eval 'as_val=${'$as_ac_var'}
30025                  $as_echo "$as_val"'`
30026                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30027 $as_echo "$ac_res" >&6; }
30028 as_val=`eval 'as_val=${'$as_ac_var'}
30029                  $as_echo "$as_val"'`
30030    if test "x$as_val" = x""yes; then
30031   cat >>confdefs.h <<_ACEOF
30032 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30033 _ACEOF
30034
30035 fi
30036 done
30037
30038   { $as_echo "$as_me:$LINENO: checking whether getc_unlocked is declared" >&5
30039 $as_echo_n "checking whether getc_unlocked is declared... " >&6; }
30040 if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then
30041   $as_echo_n "(cached) " >&6
30042 else
30043   cat >conftest.$ac_ext <<_ACEOF
30044 /* confdefs.h.  */
30045 _ACEOF
30046 cat confdefs.h >>conftest.$ac_ext
30047 cat >>conftest.$ac_ext <<_ACEOF
30048 /* end confdefs.h.  */
30049 $ac_includes_default
30050 int
30051 main ()
30052 {
30053 #ifndef getc_unlocked
30054   (void) getc_unlocked;
30055 #endif
30056
30057   ;
30058   return 0;
30059 }
30060 _ACEOF
30061 rm -f conftest.$ac_objext
30062 if { (ac_try="$ac_compile"
30063 case "(($ac_try" in
30064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30065   *) ac_try_echo=$ac_try;;
30066 esac
30067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30068 $as_echo "$ac_try_echo") >&5
30069   (eval "$ac_compile") 2>conftest.er1
30070   ac_status=$?
30071   grep -v '^ *+' conftest.er1 >conftest.err
30072   rm -f conftest.er1
30073   cat conftest.err >&5
30074   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075   (exit $ac_status); } && {
30076          test -z "$ac_c_werror_flag" ||
30077          test ! -s conftest.err
30078        } && test -s conftest.$ac_objext; then
30079   ac_cv_have_decl_getc_unlocked=yes
30080 else
30081   $as_echo "$as_me: failed program was:" >&5
30082 sed 's/^/| /' conftest.$ac_ext >&5
30083
30084         ac_cv_have_decl_getc_unlocked=no
30085 fi
30086
30087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30088 fi
30089 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getc_unlocked" >&5
30090 $as_echo "$ac_cv_have_decl_getc_unlocked" >&6; }
30091 if test "x$ac_cv_have_decl_getc_unlocked" = x""yes; then
30092
30093 cat >>confdefs.h <<_ACEOF
30094 #define HAVE_DECL_GETC_UNLOCKED 1
30095 _ACEOF
30096
30097
30098 else
30099   cat >>confdefs.h <<_ACEOF
30100 #define HAVE_DECL_GETC_UNLOCKED 0
30101 _ACEOF
30102
30103
30104 fi
30105
30106
30107
30108   fi
30109
30110
30111   fi
30112
30113
30114
30115
30116   GNULIB_GETLINE=1
30117
30118
30119
30120 cat >>confdefs.h <<\_ACEOF
30121 #define GNULIB_TEST_GETLINE 1
30122 _ACEOF
30123
30124
30125
30126   # Code from module getopt-gnu:
30127
30128
30129
30130
30131
30132
30133
30134 cat >>confdefs.h <<\_ACEOF
30135 #define GNULIB_TEST_GETOPT_GNU 1
30136 _ACEOF
30137
30138
30139   # Code from module getopt-posix:
30140
30141
30142
30143
30144
30145   if test -n "$gl_replace_getopt"; then
30146
30147
30148
30149   GETOPT_H=getopt.h
30150
30151 cat >>confdefs.h <<\_ACEOF
30152 #define __GETOPT_PREFIX rpl_
30153 _ACEOF
30154
30155
30156
30157     GNULIB_UNISTD_H_GETOPT=1
30158
30159
30160
30161
30162
30163
30164
30165
30166   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
30167
30168
30169
30170
30171
30172
30173
30174
30175
30176   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
30177
30178
30179
30180
30181
30182
30183
30184
30185
30186 fi
30187
30188
30189
30190   # Code from module getpagesize:
30191
30192
30193
30194
30195 for ac_func in getpagesize
30196 do
30197 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30198 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30199 $as_echo_n "checking for $ac_func... " >&6; }
30200 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30201   $as_echo_n "(cached) " >&6
30202 else
30203   cat >conftest.$ac_ext <<_ACEOF
30204 /* confdefs.h.  */
30205 _ACEOF
30206 cat confdefs.h >>conftest.$ac_ext
30207 cat >>conftest.$ac_ext <<_ACEOF
30208 /* end confdefs.h.  */
30209 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30210    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30211 #define $ac_func innocuous_$ac_func
30212
30213 /* System header to define __stub macros and hopefully few prototypes,
30214     which can conflict with char $ac_func (); below.
30215     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30216     <limits.h> exists even on freestanding compilers.  */
30217
30218 #ifdef __STDC__
30219 # include <limits.h>
30220 #else
30221 # include <assert.h>
30222 #endif
30223
30224 #undef $ac_func
30225
30226 /* Override any GCC internal prototype to avoid an error.
30227    Use char because int might match the return type of a GCC
30228    builtin and then its argument prototype would still apply.  */
30229 #ifdef __cplusplus
30230 extern "C"
30231 #endif
30232 char $ac_func ();
30233 /* The GNU C library defines this for functions which it implements
30234     to always fail with ENOSYS.  Some functions are actually named
30235     something starting with __ and the normal name is an alias.  */
30236 #if defined __stub_$ac_func || defined __stub___$ac_func
30237 choke me
30238 #endif
30239
30240 int
30241 main ()
30242 {
30243 return $ac_func ();
30244   ;
30245   return 0;
30246 }
30247 _ACEOF
30248 rm -f conftest.$ac_objext conftest$ac_exeext
30249 if { (ac_try="$ac_link"
30250 case "(($ac_try" in
30251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30252   *) ac_try_echo=$ac_try;;
30253 esac
30254 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30255 $as_echo "$ac_try_echo") >&5
30256   (eval "$ac_link") 2>conftest.er1
30257   ac_status=$?
30258   grep -v '^ *+' conftest.er1 >conftest.err
30259   rm -f conftest.er1
30260   cat conftest.err >&5
30261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30262   (exit $ac_status); } && {
30263          test -z "$ac_c_werror_flag" ||
30264          test ! -s conftest.err
30265        } && test -s conftest$ac_exeext && {
30266          test "$cross_compiling" = yes ||
30267          $as_test_x conftest$ac_exeext
30268        }; then
30269   eval "$as_ac_var=yes"
30270 else
30271   $as_echo "$as_me: failed program was:" >&5
30272 sed 's/^/| /' conftest.$ac_ext >&5
30273
30274         eval "$as_ac_var=no"
30275 fi
30276
30277 rm -rf conftest.dSYM
30278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30279       conftest$ac_exeext conftest.$ac_ext
30280 fi
30281 ac_res=`eval 'as_val=${'$as_ac_var'}
30282                  $as_echo "$as_val"'`
30283                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30284 $as_echo "$ac_res" >&6; }
30285 as_val=`eval 'as_val=${'$as_ac_var'}
30286                  $as_echo "$as_val"'`
30287    if test "x$as_val" = x""yes; then
30288   cat >>confdefs.h <<_ACEOF
30289 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30290 _ACEOF
30291
30292 fi
30293 done
30294
30295   if test $ac_cv_func_getpagesize = no; then
30296     HAVE_GETPAGESIZE=0
30297
30298 for ac_header in OS.h
30299 do
30300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30302   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30303 $as_echo_n "checking for $ac_header... " >&6; }
30304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30305   $as_echo_n "(cached) " >&6
30306 fi
30307 ac_res=`eval 'as_val=${'$as_ac_Header'}
30308                  $as_echo "$as_val"'`
30309                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30310 $as_echo "$ac_res" >&6; }
30311 else
30312   # Is the header compilable?
30313 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30314 $as_echo_n "checking $ac_header usability... " >&6; }
30315 cat >conftest.$ac_ext <<_ACEOF
30316 /* confdefs.h.  */
30317 _ACEOF
30318 cat confdefs.h >>conftest.$ac_ext
30319 cat >>conftest.$ac_ext <<_ACEOF
30320 /* end confdefs.h.  */
30321 $ac_includes_default
30322 #include <$ac_header>
30323 _ACEOF
30324 rm -f conftest.$ac_objext
30325 if { (ac_try="$ac_compile"
30326 case "(($ac_try" in
30327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30328   *) ac_try_echo=$ac_try;;
30329 esac
30330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30331 $as_echo "$ac_try_echo") >&5
30332   (eval "$ac_compile") 2>conftest.er1
30333   ac_status=$?
30334   grep -v '^ *+' conftest.er1 >conftest.err
30335   rm -f conftest.er1
30336   cat conftest.err >&5
30337   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30338   (exit $ac_status); } && {
30339          test -z "$ac_c_werror_flag" ||
30340          test ! -s conftest.err
30341        } && test -s conftest.$ac_objext; then
30342   ac_header_compiler=yes
30343 else
30344   $as_echo "$as_me: failed program was:" >&5
30345 sed 's/^/| /' conftest.$ac_ext >&5
30346
30347         ac_header_compiler=no
30348 fi
30349
30350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30351 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30352 $as_echo "$ac_header_compiler" >&6; }
30353
30354 # Is the header present?
30355 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30356 $as_echo_n "checking $ac_header presence... " >&6; }
30357 cat >conftest.$ac_ext <<_ACEOF
30358 /* confdefs.h.  */
30359 _ACEOF
30360 cat confdefs.h >>conftest.$ac_ext
30361 cat >>conftest.$ac_ext <<_ACEOF
30362 /* end confdefs.h.  */
30363 #include <$ac_header>
30364 _ACEOF
30365 if { (ac_try="$ac_cpp conftest.$ac_ext"
30366 case "(($ac_try" in
30367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30368   *) ac_try_echo=$ac_try;;
30369 esac
30370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30371 $as_echo "$ac_try_echo") >&5
30372   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30373   ac_status=$?
30374   grep -v '^ *+' conftest.er1 >conftest.err
30375   rm -f conftest.er1
30376   cat conftest.err >&5
30377   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30378   (exit $ac_status); } >/dev/null && {
30379          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30380          test ! -s conftest.err
30381        }; then
30382   ac_header_preproc=yes
30383 else
30384   $as_echo "$as_me: failed program was:" >&5
30385 sed 's/^/| /' conftest.$ac_ext >&5
30386
30387   ac_header_preproc=no
30388 fi
30389
30390 rm -f conftest.err conftest.$ac_ext
30391 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30392 $as_echo "$ac_header_preproc" >&6; }
30393
30394 # So?  What about this header?
30395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30396   yes:no: )
30397     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30398 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30399     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30400 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30401     ac_header_preproc=yes
30402     ;;
30403   no:yes:* )
30404     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30405 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30406     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30407 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30408     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30409 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30410     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30411 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30412     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30413 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30414     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30415 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30416     ( cat <<\_ASBOX
30417 ## ------------------------------ ##
30418 ## Report this to bug-tar@gnu.org ##
30419 ## ------------------------------ ##
30420 _ASBOX
30421      ) | sed "s/^/$as_me: WARNING:     /" >&2
30422     ;;
30423 esac
30424 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30425 $as_echo_n "checking for $ac_header... " >&6; }
30426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30427   $as_echo_n "(cached) " >&6
30428 else
30429   eval "$as_ac_Header=\$ac_header_preproc"
30430 fi
30431 ac_res=`eval 'as_val=${'$as_ac_Header'}
30432                  $as_echo "$as_val"'`
30433                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30434 $as_echo "$ac_res" >&6; }
30435
30436 fi
30437 as_val=`eval 'as_val=${'$as_ac_Header'}
30438                  $as_echo "$as_val"'`
30439    if test "x$as_val" = x""yes; then
30440   cat >>confdefs.h <<_ACEOF
30441 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30442 _ACEOF
30443
30444 fi
30445
30446 done
30447
30448     if test $ac_cv_header_OS_h = yes; then
30449       HAVE_OS_H=1
30450     fi
30451
30452 for ac_header in sys/param.h
30453 do
30454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30456   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30457 $as_echo_n "checking for $ac_header... " >&6; }
30458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30459   $as_echo_n "(cached) " >&6
30460 fi
30461 ac_res=`eval 'as_val=${'$as_ac_Header'}
30462                  $as_echo "$as_val"'`
30463                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30464 $as_echo "$ac_res" >&6; }
30465 else
30466   # Is the header compilable?
30467 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30468 $as_echo_n "checking $ac_header usability... " >&6; }
30469 cat >conftest.$ac_ext <<_ACEOF
30470 /* confdefs.h.  */
30471 _ACEOF
30472 cat confdefs.h >>conftest.$ac_ext
30473 cat >>conftest.$ac_ext <<_ACEOF
30474 /* end confdefs.h.  */
30475 $ac_includes_default
30476 #include <$ac_header>
30477 _ACEOF
30478 rm -f conftest.$ac_objext
30479 if { (ac_try="$ac_compile"
30480 case "(($ac_try" in
30481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30482   *) ac_try_echo=$ac_try;;
30483 esac
30484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30485 $as_echo "$ac_try_echo") >&5
30486   (eval "$ac_compile") 2>conftest.er1
30487   ac_status=$?
30488   grep -v '^ *+' conftest.er1 >conftest.err
30489   rm -f conftest.er1
30490   cat conftest.err >&5
30491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30492   (exit $ac_status); } && {
30493          test -z "$ac_c_werror_flag" ||
30494          test ! -s conftest.err
30495        } && test -s conftest.$ac_objext; then
30496   ac_header_compiler=yes
30497 else
30498   $as_echo "$as_me: failed program was:" >&5
30499 sed 's/^/| /' conftest.$ac_ext >&5
30500
30501         ac_header_compiler=no
30502 fi
30503
30504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30505 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30506 $as_echo "$ac_header_compiler" >&6; }
30507
30508 # Is the header present?
30509 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30510 $as_echo_n "checking $ac_header presence... " >&6; }
30511 cat >conftest.$ac_ext <<_ACEOF
30512 /* confdefs.h.  */
30513 _ACEOF
30514 cat confdefs.h >>conftest.$ac_ext
30515 cat >>conftest.$ac_ext <<_ACEOF
30516 /* end confdefs.h.  */
30517 #include <$ac_header>
30518 _ACEOF
30519 if { (ac_try="$ac_cpp conftest.$ac_ext"
30520 case "(($ac_try" in
30521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30522   *) ac_try_echo=$ac_try;;
30523 esac
30524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30525 $as_echo "$ac_try_echo") >&5
30526   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30527   ac_status=$?
30528   grep -v '^ *+' conftest.er1 >conftest.err
30529   rm -f conftest.er1
30530   cat conftest.err >&5
30531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532   (exit $ac_status); } >/dev/null && {
30533          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30534          test ! -s conftest.err
30535        }; then
30536   ac_header_preproc=yes
30537 else
30538   $as_echo "$as_me: failed program was:" >&5
30539 sed 's/^/| /' conftest.$ac_ext >&5
30540
30541   ac_header_preproc=no
30542 fi
30543
30544 rm -f conftest.err conftest.$ac_ext
30545 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30546 $as_echo "$ac_header_preproc" >&6; }
30547
30548 # So?  What about this header?
30549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30550   yes:no: )
30551     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30552 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30553     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30554 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30555     ac_header_preproc=yes
30556     ;;
30557   no:yes:* )
30558     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30559 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30560     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30561 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30562     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30563 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30564     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30565 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30566     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30567 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30568     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30569 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30570     ( cat <<\_ASBOX
30571 ## ------------------------------ ##
30572 ## Report this to bug-tar@gnu.org ##
30573 ## ------------------------------ ##
30574 _ASBOX
30575      ) | sed "s/^/$as_me: WARNING:     /" >&2
30576     ;;
30577 esac
30578 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30579 $as_echo_n "checking for $ac_header... " >&6; }
30580 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30581   $as_echo_n "(cached) " >&6
30582 else
30583   eval "$as_ac_Header=\$ac_header_preproc"
30584 fi
30585 ac_res=`eval 'as_val=${'$as_ac_Header'}
30586                  $as_echo "$as_val"'`
30587                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30588 $as_echo "$ac_res" >&6; }
30589
30590 fi
30591 as_val=`eval 'as_val=${'$as_ac_Header'}
30592                  $as_echo "$as_val"'`
30593    if test "x$as_val" = x""yes; then
30594   cat >>confdefs.h <<_ACEOF
30595 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30596 _ACEOF
30597
30598 fi
30599
30600 done
30601
30602     if test $ac_cv_header_sys_param_h = yes; then
30603       HAVE_SYS_PARAM_H=1
30604     fi
30605   fi
30606   case "$host_os" in
30607     mingw*)
30608       REPLACE_GETPAGESIZE=1
30609
30610
30611
30612
30613
30614
30615
30616
30617   gl_LIBOBJS="$gl_LIBOBJS getpagesize.$ac_objext"
30618
30619       ;;
30620   esac
30621       { $as_echo "$as_me:$LINENO: checking whether getpagesize is declared" >&5
30622 $as_echo_n "checking whether getpagesize is declared... " >&6; }
30623 if test "${ac_cv_have_decl_getpagesize+set}" = set; then
30624   $as_echo_n "(cached) " >&6
30625 else
30626   cat >conftest.$ac_ext <<_ACEOF
30627 /* confdefs.h.  */
30628 _ACEOF
30629 cat confdefs.h >>conftest.$ac_ext
30630 cat >>conftest.$ac_ext <<_ACEOF
30631 /* end confdefs.h.  */
30632 $ac_includes_default
30633 int
30634 main ()
30635 {
30636 #ifndef getpagesize
30637   (void) getpagesize;
30638 #endif
30639
30640   ;
30641   return 0;
30642 }
30643 _ACEOF
30644 rm -f conftest.$ac_objext
30645 if { (ac_try="$ac_compile"
30646 case "(($ac_try" in
30647   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30648   *) ac_try_echo=$ac_try;;
30649 esac
30650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30651 $as_echo "$ac_try_echo") >&5
30652   (eval "$ac_compile") 2>conftest.er1
30653   ac_status=$?
30654   grep -v '^ *+' conftest.er1 >conftest.err
30655   rm -f conftest.er1
30656   cat conftest.err >&5
30657   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30658   (exit $ac_status); } && {
30659          test -z "$ac_c_werror_flag" ||
30660          test ! -s conftest.err
30661        } && test -s conftest.$ac_objext; then
30662   ac_cv_have_decl_getpagesize=yes
30663 else
30664   $as_echo "$as_me: failed program was:" >&5
30665 sed 's/^/| /' conftest.$ac_ext >&5
30666
30667         ac_cv_have_decl_getpagesize=no
30668 fi
30669
30670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30671 fi
30672 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpagesize" >&5
30673 $as_echo "$ac_cv_have_decl_getpagesize" >&6; }
30674 if test "x$ac_cv_have_decl_getpagesize" = x""yes; then
30675   :
30676 else
30677   HAVE_DECL_GETPAGESIZE=0
30678 fi
30679
30680
30681
30682
30683
30684   GNULIB_GETPAGESIZE=1
30685
30686
30687
30688 cat >>confdefs.h <<\_ACEOF
30689 #define GNULIB_TEST_GETPAGESIZE 1
30690 _ACEOF
30691
30692
30693
30694   # Code from module gettext:
30695
30696   # Code from module gettext-h:
30697
30698
30699   # Code from module gettime:
30700
30701
30702
30703
30704
30705
30706
30707
30708
30709   gl_LIBOBJS="$gl_LIBOBJS gettime.$ac_objext"
30710
30711
30712
30713
30714
30715
30716
30717
30718
30719
30720
30721
30722
30723   # Code from module gettimeofday:
30724
30725
30726
30727
30728
30729
30730
30731
30732
30733
30734
30735   gl_gettimeofday_timezone=void
30736   if test $ac_cv_func_gettimeofday != yes; then
30737     HAVE_GETTIMEOFDAY=0
30738
30739
30740
30741
30742
30743
30744
30745
30746   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
30747
30748
30749
30750 for ac_header in sys/timeb.h
30751 do
30752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30754   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30755 $as_echo_n "checking for $ac_header... " >&6; }
30756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30757   $as_echo_n "(cached) " >&6
30758 fi
30759 ac_res=`eval 'as_val=${'$as_ac_Header'}
30760                  $as_echo "$as_val"'`
30761                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30762 $as_echo "$ac_res" >&6; }
30763 else
30764   # Is the header compilable?
30765 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
30766 $as_echo_n "checking $ac_header usability... " >&6; }
30767 cat >conftest.$ac_ext <<_ACEOF
30768 /* confdefs.h.  */
30769 _ACEOF
30770 cat confdefs.h >>conftest.$ac_ext
30771 cat >>conftest.$ac_ext <<_ACEOF
30772 /* end confdefs.h.  */
30773 $ac_includes_default
30774 #include <$ac_header>
30775 _ACEOF
30776 rm -f conftest.$ac_objext
30777 if { (ac_try="$ac_compile"
30778 case "(($ac_try" in
30779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30780   *) ac_try_echo=$ac_try;;
30781 esac
30782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30783 $as_echo "$ac_try_echo") >&5
30784   (eval "$ac_compile") 2>conftest.er1
30785   ac_status=$?
30786   grep -v '^ *+' conftest.er1 >conftest.err
30787   rm -f conftest.er1
30788   cat conftest.err >&5
30789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30790   (exit $ac_status); } && {
30791          test -z "$ac_c_werror_flag" ||
30792          test ! -s conftest.err
30793        } && test -s conftest.$ac_objext; then
30794   ac_header_compiler=yes
30795 else
30796   $as_echo "$as_me: failed program was:" >&5
30797 sed 's/^/| /' conftest.$ac_ext >&5
30798
30799         ac_header_compiler=no
30800 fi
30801
30802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
30804 $as_echo "$ac_header_compiler" >&6; }
30805
30806 # Is the header present?
30807 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
30808 $as_echo_n "checking $ac_header presence... " >&6; }
30809 cat >conftest.$ac_ext <<_ACEOF
30810 /* confdefs.h.  */
30811 _ACEOF
30812 cat confdefs.h >>conftest.$ac_ext
30813 cat >>conftest.$ac_ext <<_ACEOF
30814 /* end confdefs.h.  */
30815 #include <$ac_header>
30816 _ACEOF
30817 if { (ac_try="$ac_cpp conftest.$ac_ext"
30818 case "(($ac_try" in
30819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30820   *) ac_try_echo=$ac_try;;
30821 esac
30822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30823 $as_echo "$ac_try_echo") >&5
30824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
30825   ac_status=$?
30826   grep -v '^ *+' conftest.er1 >conftest.err
30827   rm -f conftest.er1
30828   cat conftest.err >&5
30829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30830   (exit $ac_status); } >/dev/null && {
30831          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
30832          test ! -s conftest.err
30833        }; then
30834   ac_header_preproc=yes
30835 else
30836   $as_echo "$as_me: failed program was:" >&5
30837 sed 's/^/| /' conftest.$ac_ext >&5
30838
30839   ac_header_preproc=no
30840 fi
30841
30842 rm -f conftest.err conftest.$ac_ext
30843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
30844 $as_echo "$ac_header_preproc" >&6; }
30845
30846 # So?  What about this header?
30847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
30848   yes:no: )
30849     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
30850 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
30851     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
30852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
30853     ac_header_preproc=yes
30854     ;;
30855   no:yes:* )
30856     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
30857 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
30858     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
30859 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
30860     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
30861 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
30862     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
30863 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
30864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
30865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
30866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
30867 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
30868     ( cat <<\_ASBOX
30869 ## ------------------------------ ##
30870 ## Report this to bug-tar@gnu.org ##
30871 ## ------------------------------ ##
30872 _ASBOX
30873      ) | sed "s/^/$as_me: WARNING:     /" >&2
30874     ;;
30875 esac
30876 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
30877 $as_echo_n "checking for $ac_header... " >&6; }
30878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
30879   $as_echo_n "(cached) " >&6
30880 else
30881   eval "$as_ac_Header=\$ac_header_preproc"
30882 fi
30883 ac_res=`eval 'as_val=${'$as_ac_Header'}
30884                  $as_echo "$as_val"'`
30885                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30886 $as_echo "$ac_res" >&6; }
30887
30888 fi
30889 as_val=`eval 'as_val=${'$as_ac_Header'}
30890                  $as_echo "$as_val"'`
30891    if test "x$as_val" = x""yes; then
30892   cat >>confdefs.h <<_ACEOF
30893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30894 _ACEOF
30895
30896 fi
30897
30898 done
30899
30900
30901 for ac_func in _ftime
30902 do
30903 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
30904 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
30905 $as_echo_n "checking for $ac_func... " >&6; }
30906 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
30907   $as_echo_n "(cached) " >&6
30908 else
30909   cat >conftest.$ac_ext <<_ACEOF
30910 /* confdefs.h.  */
30911 _ACEOF
30912 cat confdefs.h >>conftest.$ac_ext
30913 cat >>conftest.$ac_ext <<_ACEOF
30914 /* end confdefs.h.  */
30915 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
30916    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
30917 #define $ac_func innocuous_$ac_func
30918
30919 /* System header to define __stub macros and hopefully few prototypes,
30920     which can conflict with char $ac_func (); below.
30921     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
30922     <limits.h> exists even on freestanding compilers.  */
30923
30924 #ifdef __STDC__
30925 # include <limits.h>
30926 #else
30927 # include <assert.h>
30928 #endif
30929
30930 #undef $ac_func
30931
30932 /* Override any GCC internal prototype to avoid an error.
30933    Use char because int might match the return type of a GCC
30934    builtin and then its argument prototype would still apply.  */
30935 #ifdef __cplusplus
30936 extern "C"
30937 #endif
30938 char $ac_func ();
30939 /* The GNU C library defines this for functions which it implements
30940     to always fail with ENOSYS.  Some functions are actually named
30941     something starting with __ and the normal name is an alias.  */
30942 #if defined __stub_$ac_func || defined __stub___$ac_func
30943 choke me
30944 #endif
30945
30946 int
30947 main ()
30948 {
30949 return $ac_func ();
30950   ;
30951   return 0;
30952 }
30953 _ACEOF
30954 rm -f conftest.$ac_objext conftest$ac_exeext
30955 if { (ac_try="$ac_link"
30956 case "(($ac_try" in
30957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
30958   *) ac_try_echo=$ac_try;;
30959 esac
30960 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
30961 $as_echo "$ac_try_echo") >&5
30962   (eval "$ac_link") 2>conftest.er1
30963   ac_status=$?
30964   grep -v '^ *+' conftest.er1 >conftest.err
30965   rm -f conftest.er1
30966   cat conftest.err >&5
30967   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
30968   (exit $ac_status); } && {
30969          test -z "$ac_c_werror_flag" ||
30970          test ! -s conftest.err
30971        } && test -s conftest$ac_exeext && {
30972          test "$cross_compiling" = yes ||
30973          $as_test_x conftest$ac_exeext
30974        }; then
30975   eval "$as_ac_var=yes"
30976 else
30977   $as_echo "$as_me: failed program was:" >&5
30978 sed 's/^/| /' conftest.$ac_ext >&5
30979
30980         eval "$as_ac_var=no"
30981 fi
30982
30983 rm -rf conftest.dSYM
30984 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
30985       conftest$ac_exeext conftest.$ac_ext
30986 fi
30987 ac_res=`eval 'as_val=${'$as_ac_var'}
30988                  $as_echo "$as_val"'`
30989                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
30990 $as_echo "$ac_res" >&6; }
30991 as_val=`eval 'as_val=${'$as_ac_var'}
30992                  $as_echo "$as_val"'`
30993    if test "x$as_val" = x""yes; then
30994   cat >>confdefs.h <<_ACEOF
30995 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
30996 _ACEOF
30997
30998 fi
30999 done
31000
31001
31002   else
31003
31004
31005
31006  { $as_echo "$as_me:$LINENO: checking whether gettimeofday clobbers localtime buffer" >&5
31007 $as_echo_n "checking whether gettimeofday clobbers localtime buffer... " >&6; }
31008 if test "${gl_cv_func_gettimeofday_clobber+set}" = set; then
31009   $as_echo_n "(cached) " >&6
31010 else
31011   if test "$cross_compiling" = yes; then
31012        gl_cv_func_gettimeofday_clobber=yes
31013 else
31014   cat >conftest.$ac_ext <<_ACEOF
31015 /* confdefs.h.  */
31016 _ACEOF
31017 cat confdefs.h >>conftest.$ac_ext
31018 cat >>conftest.$ac_ext <<_ACEOF
31019 /* end confdefs.h.  */
31020 #include <string.h>
31021           #include <sys/time.h>
31022           #include <time.h>
31023           #include <stdlib.h>
31024
31025 int
31026 main ()
31027 {
31028
31029           time_t t = 0;
31030           struct tm *lt;
31031           struct tm saved_lt;
31032           struct timeval tv;
31033           lt = localtime (&t);
31034           saved_lt = *lt;
31035           gettimeofday (&tv, NULL);
31036           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
31037
31038   ;
31039   return 0;
31040 }
31041 _ACEOF
31042 rm -f conftest$ac_exeext
31043 if { (ac_try="$ac_link"
31044 case "(($ac_try" in
31045   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31046   *) ac_try_echo=$ac_try;;
31047 esac
31048 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31049 $as_echo "$ac_try_echo") >&5
31050   (eval "$ac_link") 2>&5
31051   ac_status=$?
31052   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31053   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31054   { (case "(($ac_try" in
31055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31056   *) ac_try_echo=$ac_try;;
31057 esac
31058 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31059 $as_echo "$ac_try_echo") >&5
31060   (eval "$ac_try") 2>&5
31061   ac_status=$?
31062   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063   (exit $ac_status); }; }; then
31064   gl_cv_func_gettimeofday_clobber=no
31065 else
31066   $as_echo "$as_me: program exited with status $ac_status" >&5
31067 $as_echo "$as_me: failed program was:" >&5
31068 sed 's/^/| /' conftest.$ac_ext >&5
31069
31070 ( exit $ac_status )
31071 gl_cv_func_gettimeofday_clobber=yes
31072 fi
31073 rm -rf conftest.dSYM
31074 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31075 fi
31076
31077
31078 fi
31079 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_clobber" >&5
31080 $as_echo "$gl_cv_func_gettimeofday_clobber" >&6; }
31081
31082  if test $gl_cv_func_gettimeofday_clobber = yes; then
31083    REPLACE_GETTIMEOFDAY=1
31084
31085
31086
31087
31088
31089
31090
31091
31092
31093   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
31094
31095
31096
31097 for ac_header in sys/timeb.h
31098 do
31099 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31101   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31102 $as_echo_n "checking for $ac_header... " >&6; }
31103 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31104   $as_echo_n "(cached) " >&6
31105 fi
31106 ac_res=`eval 'as_val=${'$as_ac_Header'}
31107                  $as_echo "$as_val"'`
31108                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31109 $as_echo "$ac_res" >&6; }
31110 else
31111   # Is the header compilable?
31112 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31113 $as_echo_n "checking $ac_header usability... " >&6; }
31114 cat >conftest.$ac_ext <<_ACEOF
31115 /* confdefs.h.  */
31116 _ACEOF
31117 cat confdefs.h >>conftest.$ac_ext
31118 cat >>conftest.$ac_ext <<_ACEOF
31119 /* end confdefs.h.  */
31120 $ac_includes_default
31121 #include <$ac_header>
31122 _ACEOF
31123 rm -f conftest.$ac_objext
31124 if { (ac_try="$ac_compile"
31125 case "(($ac_try" in
31126   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31127   *) ac_try_echo=$ac_try;;
31128 esac
31129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31130 $as_echo "$ac_try_echo") >&5
31131   (eval "$ac_compile") 2>conftest.er1
31132   ac_status=$?
31133   grep -v '^ *+' conftest.er1 >conftest.err
31134   rm -f conftest.er1
31135   cat conftest.err >&5
31136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31137   (exit $ac_status); } && {
31138          test -z "$ac_c_werror_flag" ||
31139          test ! -s conftest.err
31140        } && test -s conftest.$ac_objext; then
31141   ac_header_compiler=yes
31142 else
31143   $as_echo "$as_me: failed program was:" >&5
31144 sed 's/^/| /' conftest.$ac_ext >&5
31145
31146         ac_header_compiler=no
31147 fi
31148
31149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31150 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31151 $as_echo "$ac_header_compiler" >&6; }
31152
31153 # Is the header present?
31154 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31155 $as_echo_n "checking $ac_header presence... " >&6; }
31156 cat >conftest.$ac_ext <<_ACEOF
31157 /* confdefs.h.  */
31158 _ACEOF
31159 cat confdefs.h >>conftest.$ac_ext
31160 cat >>conftest.$ac_ext <<_ACEOF
31161 /* end confdefs.h.  */
31162 #include <$ac_header>
31163 _ACEOF
31164 if { (ac_try="$ac_cpp conftest.$ac_ext"
31165 case "(($ac_try" in
31166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31167   *) ac_try_echo=$ac_try;;
31168 esac
31169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31170 $as_echo "$ac_try_echo") >&5
31171   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31172   ac_status=$?
31173   grep -v '^ *+' conftest.er1 >conftest.err
31174   rm -f conftest.er1
31175   cat conftest.err >&5
31176   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31177   (exit $ac_status); } >/dev/null && {
31178          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31179          test ! -s conftest.err
31180        }; then
31181   ac_header_preproc=yes
31182 else
31183   $as_echo "$as_me: failed program was:" >&5
31184 sed 's/^/| /' conftest.$ac_ext >&5
31185
31186   ac_header_preproc=no
31187 fi
31188
31189 rm -f conftest.err conftest.$ac_ext
31190 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31191 $as_echo "$ac_header_preproc" >&6; }
31192
31193 # So?  What about this header?
31194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31195   yes:no: )
31196     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31197 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31198     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31199 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31200     ac_header_preproc=yes
31201     ;;
31202   no:yes:* )
31203     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31204 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31205     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31206 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31207     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31208 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31209     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31210 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31211     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31212 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31214 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31215     ( cat <<\_ASBOX
31216 ## ------------------------------ ##
31217 ## Report this to bug-tar@gnu.org ##
31218 ## ------------------------------ ##
31219 _ASBOX
31220      ) | sed "s/^/$as_me: WARNING:     /" >&2
31221     ;;
31222 esac
31223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31224 $as_echo_n "checking for $ac_header... " >&6; }
31225 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31226   $as_echo_n "(cached) " >&6
31227 else
31228   eval "$as_ac_Header=\$ac_header_preproc"
31229 fi
31230 ac_res=`eval 'as_val=${'$as_ac_Header'}
31231                  $as_echo "$as_val"'`
31232                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31233 $as_echo "$ac_res" >&6; }
31234
31235 fi
31236 as_val=`eval 'as_val=${'$as_ac_Header'}
31237                  $as_echo "$as_val"'`
31238    if test "x$as_val" = x""yes; then
31239   cat >>confdefs.h <<_ACEOF
31240 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31241 _ACEOF
31242
31243 fi
31244
31245 done
31246
31247
31248 for ac_func in _ftime
31249 do
31250 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31251 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31252 $as_echo_n "checking for $ac_func... " >&6; }
31253 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31254   $as_echo_n "(cached) " >&6
31255 else
31256   cat >conftest.$ac_ext <<_ACEOF
31257 /* confdefs.h.  */
31258 _ACEOF
31259 cat confdefs.h >>conftest.$ac_ext
31260 cat >>conftest.$ac_ext <<_ACEOF
31261 /* end confdefs.h.  */
31262 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31263    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31264 #define $ac_func innocuous_$ac_func
31265
31266 /* System header to define __stub macros and hopefully few prototypes,
31267     which can conflict with char $ac_func (); below.
31268     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31269     <limits.h> exists even on freestanding compilers.  */
31270
31271 #ifdef __STDC__
31272 # include <limits.h>
31273 #else
31274 # include <assert.h>
31275 #endif
31276
31277 #undef $ac_func
31278
31279 /* Override any GCC internal prototype to avoid an error.
31280    Use char because int might match the return type of a GCC
31281    builtin and then its argument prototype would still apply.  */
31282 #ifdef __cplusplus
31283 extern "C"
31284 #endif
31285 char $ac_func ();
31286 /* The GNU C library defines this for functions which it implements
31287     to always fail with ENOSYS.  Some functions are actually named
31288     something starting with __ and the normal name is an alias.  */
31289 #if defined __stub_$ac_func || defined __stub___$ac_func
31290 choke me
31291 #endif
31292
31293 int
31294 main ()
31295 {
31296 return $ac_func ();
31297   ;
31298   return 0;
31299 }
31300 _ACEOF
31301 rm -f conftest.$ac_objext conftest$ac_exeext
31302 if { (ac_try="$ac_link"
31303 case "(($ac_try" in
31304   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31305   *) ac_try_echo=$ac_try;;
31306 esac
31307 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31308 $as_echo "$ac_try_echo") >&5
31309   (eval "$ac_link") 2>conftest.er1
31310   ac_status=$?
31311   grep -v '^ *+' conftest.er1 >conftest.err
31312   rm -f conftest.er1
31313   cat conftest.err >&5
31314   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31315   (exit $ac_status); } && {
31316          test -z "$ac_c_werror_flag" ||
31317          test ! -s conftest.err
31318        } && test -s conftest$ac_exeext && {
31319          test "$cross_compiling" = yes ||
31320          $as_test_x conftest$ac_exeext
31321        }; then
31322   eval "$as_ac_var=yes"
31323 else
31324   $as_echo "$as_me: failed program was:" >&5
31325 sed 's/^/| /' conftest.$ac_ext >&5
31326
31327         eval "$as_ac_var=no"
31328 fi
31329
31330 rm -rf conftest.dSYM
31331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31332       conftest$ac_exeext conftest.$ac_ext
31333 fi
31334 ac_res=`eval 'as_val=${'$as_ac_var'}
31335                  $as_echo "$as_val"'`
31336                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31337 $as_echo "$ac_res" >&6; }
31338 as_val=`eval 'as_val=${'$as_ac_var'}
31339                  $as_echo "$as_val"'`
31340    if test "x$as_val" = x""yes; then
31341   cat >>confdefs.h <<_ACEOF
31342 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31343 _ACEOF
31344
31345 fi
31346 done
31347
31348
31349
31350 cat >>confdefs.h <<\_ACEOF
31351 #define gmtime rpl_gmtime
31352 _ACEOF
31353
31354
31355 cat >>confdefs.h <<\_ACEOF
31356 #define localtime rpl_localtime
31357 _ACEOF
31358
31359
31360
31361 cat >>confdefs.h <<\_ACEOF
31362 #define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1
31363 _ACEOF
31364
31365  fi
31366
31367     { $as_echo "$as_me:$LINENO: checking for gettimeofday with POSIX signature" >&5
31368 $as_echo_n "checking for gettimeofday with POSIX signature... " >&6; }
31369 if test "${gl_cv_func_gettimeofday_posix_signature+set}" = set; then
31370   $as_echo_n "(cached) " >&6
31371 else
31372   cat >conftest.$ac_ext <<_ACEOF
31373 /* confdefs.h.  */
31374 _ACEOF
31375 cat confdefs.h >>conftest.$ac_ext
31376 cat >>conftest.$ac_ext <<_ACEOF
31377 /* end confdefs.h.  */
31378 #include <sys/time.h>
31379               struct timeval c;
31380               int gettimeofday (struct timeval *restrict, void *restrict);
31381
31382 int
31383 main ()
31384 {
31385 /* glibc uses struct timezone * rather than the POSIX void *
31386                  if _GNU_SOURCE is defined.  However, since the only portable
31387                  use of gettimeofday uses NULL as the second parameter, and
31388                  since the glibc definition is actually more typesafe, it is
31389                  not worth wrapping this to get a compliant signature.  */
31390               int (*f) (struct timeval *restrict, void *restrict)
31391                 = gettimeofday;
31392               int x = f (&c, 0);
31393               return !(x | c.tv_sec | c.tv_usec);
31394
31395   ;
31396   return 0;
31397 }
31398 _ACEOF
31399 rm -f conftest.$ac_objext
31400 if { (ac_try="$ac_compile"
31401 case "(($ac_try" in
31402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31403   *) ac_try_echo=$ac_try;;
31404 esac
31405 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31406 $as_echo "$ac_try_echo") >&5
31407   (eval "$ac_compile") 2>conftest.er1
31408   ac_status=$?
31409   grep -v '^ *+' conftest.er1 >conftest.err
31410   rm -f conftest.er1
31411   cat conftest.err >&5
31412   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31413   (exit $ac_status); } && {
31414          test -z "$ac_c_werror_flag" ||
31415          test ! -s conftest.err
31416        } && test -s conftest.$ac_objext; then
31417   gl_cv_func_gettimeofday_posix_signature=yes
31418 else
31419   $as_echo "$as_me: failed program was:" >&5
31420 sed 's/^/| /' conftest.$ac_ext >&5
31421
31422         cat >conftest.$ac_ext <<_ACEOF
31423 /* confdefs.h.  */
31424 _ACEOF
31425 cat confdefs.h >>conftest.$ac_ext
31426 cat >>conftest.$ac_ext <<_ACEOF
31427 /* end confdefs.h.  */
31428 #include <sys/time.h>
31429 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
31430
31431 int
31432 main ()
31433 {
31434
31435   ;
31436   return 0;
31437 }
31438 _ACEOF
31439 rm -f conftest.$ac_objext
31440 if { (ac_try="$ac_compile"
31441 case "(($ac_try" in
31442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31443   *) ac_try_echo=$ac_try;;
31444 esac
31445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31446 $as_echo "$ac_try_echo") >&5
31447   (eval "$ac_compile") 2>conftest.er1
31448   ac_status=$?
31449   grep -v '^ *+' conftest.er1 >conftest.err
31450   rm -f conftest.er1
31451   cat conftest.err >&5
31452   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31453   (exit $ac_status); } && {
31454          test -z "$ac_c_werror_flag" ||
31455          test ! -s conftest.err
31456        } && test -s conftest.$ac_objext; then
31457   gl_cv_func_gettimeofday_posix_signature=almost
31458 else
31459   $as_echo "$as_me: failed program was:" >&5
31460 sed 's/^/| /' conftest.$ac_ext >&5
31461
31462         gl_cv_func_gettimeofday_posix_signature=no
31463 fi
31464
31465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31466 fi
31467
31468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31469 fi
31470 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gettimeofday_posix_signature" >&5
31471 $as_echo "$gl_cv_func_gettimeofday_posix_signature" >&6; }
31472     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
31473       gl_gettimeofday_timezone='struct timezone'
31474     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
31475       REPLACE_GETTIMEOFDAY=1
31476
31477
31478
31479
31480
31481
31482
31483
31484   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
31485
31486
31487
31488 for ac_header in sys/timeb.h
31489 do
31490 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31492   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31493 $as_echo_n "checking for $ac_header... " >&6; }
31494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31495   $as_echo_n "(cached) " >&6
31496 fi
31497 ac_res=`eval 'as_val=${'$as_ac_Header'}
31498                  $as_echo "$as_val"'`
31499                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31500 $as_echo "$ac_res" >&6; }
31501 else
31502   # Is the header compilable?
31503 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
31504 $as_echo_n "checking $ac_header usability... " >&6; }
31505 cat >conftest.$ac_ext <<_ACEOF
31506 /* confdefs.h.  */
31507 _ACEOF
31508 cat confdefs.h >>conftest.$ac_ext
31509 cat >>conftest.$ac_ext <<_ACEOF
31510 /* end confdefs.h.  */
31511 $ac_includes_default
31512 #include <$ac_header>
31513 _ACEOF
31514 rm -f conftest.$ac_objext
31515 if { (ac_try="$ac_compile"
31516 case "(($ac_try" in
31517   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31518   *) ac_try_echo=$ac_try;;
31519 esac
31520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31521 $as_echo "$ac_try_echo") >&5
31522   (eval "$ac_compile") 2>conftest.er1
31523   ac_status=$?
31524   grep -v '^ *+' conftest.er1 >conftest.err
31525   rm -f conftest.er1
31526   cat conftest.err >&5
31527   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528   (exit $ac_status); } && {
31529          test -z "$ac_c_werror_flag" ||
31530          test ! -s conftest.err
31531        } && test -s conftest.$ac_objext; then
31532   ac_header_compiler=yes
31533 else
31534   $as_echo "$as_me: failed program was:" >&5
31535 sed 's/^/| /' conftest.$ac_ext >&5
31536
31537         ac_header_compiler=no
31538 fi
31539
31540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31541 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31542 $as_echo "$ac_header_compiler" >&6; }
31543
31544 # Is the header present?
31545 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
31546 $as_echo_n "checking $ac_header presence... " >&6; }
31547 cat >conftest.$ac_ext <<_ACEOF
31548 /* confdefs.h.  */
31549 _ACEOF
31550 cat confdefs.h >>conftest.$ac_ext
31551 cat >>conftest.$ac_ext <<_ACEOF
31552 /* end confdefs.h.  */
31553 #include <$ac_header>
31554 _ACEOF
31555 if { (ac_try="$ac_cpp conftest.$ac_ext"
31556 case "(($ac_try" in
31557   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31558   *) ac_try_echo=$ac_try;;
31559 esac
31560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31561 $as_echo "$ac_try_echo") >&5
31562   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
31563   ac_status=$?
31564   grep -v '^ *+' conftest.er1 >conftest.err
31565   rm -f conftest.er1
31566   cat conftest.err >&5
31567   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31568   (exit $ac_status); } >/dev/null && {
31569          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
31570          test ! -s conftest.err
31571        }; then
31572   ac_header_preproc=yes
31573 else
31574   $as_echo "$as_me: failed program was:" >&5
31575 sed 's/^/| /' conftest.$ac_ext >&5
31576
31577   ac_header_preproc=no
31578 fi
31579
31580 rm -f conftest.err conftest.$ac_ext
31581 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31582 $as_echo "$ac_header_preproc" >&6; }
31583
31584 # So?  What about this header?
31585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31586   yes:no: )
31587     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31588 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31589     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31590 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31591     ac_header_preproc=yes
31592     ;;
31593   no:yes:* )
31594     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31595 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31596     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
31597 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
31598     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31599 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31600     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
31601 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
31602     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31603 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31604     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31605 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31606     ( cat <<\_ASBOX
31607 ## ------------------------------ ##
31608 ## Report this to bug-tar@gnu.org ##
31609 ## ------------------------------ ##
31610 _ASBOX
31611      ) | sed "s/^/$as_me: WARNING:     /" >&2
31612     ;;
31613 esac
31614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
31615 $as_echo_n "checking for $ac_header... " >&6; }
31616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
31617   $as_echo_n "(cached) " >&6
31618 else
31619   eval "$as_ac_Header=\$ac_header_preproc"
31620 fi
31621 ac_res=`eval 'as_val=${'$as_ac_Header'}
31622                  $as_echo "$as_val"'`
31623                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31624 $as_echo "$ac_res" >&6; }
31625
31626 fi
31627 as_val=`eval 'as_val=${'$as_ac_Header'}
31628                  $as_echo "$as_val"'`
31629    if test "x$as_val" = x""yes; then
31630   cat >>confdefs.h <<_ACEOF
31631 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31632 _ACEOF
31633
31634 fi
31635
31636 done
31637
31638
31639 for ac_func in _ftime
31640 do
31641 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31642 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
31643 $as_echo_n "checking for $ac_func... " >&6; }
31644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
31645   $as_echo_n "(cached) " >&6
31646 else
31647   cat >conftest.$ac_ext <<_ACEOF
31648 /* confdefs.h.  */
31649 _ACEOF
31650 cat confdefs.h >>conftest.$ac_ext
31651 cat >>conftest.$ac_ext <<_ACEOF
31652 /* end confdefs.h.  */
31653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
31654    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
31655 #define $ac_func innocuous_$ac_func
31656
31657 /* System header to define __stub macros and hopefully few prototypes,
31658     which can conflict with char $ac_func (); below.
31659     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
31660     <limits.h> exists even on freestanding compilers.  */
31661
31662 #ifdef __STDC__
31663 # include <limits.h>
31664 #else
31665 # include <assert.h>
31666 #endif
31667
31668 #undef $ac_func
31669
31670 /* Override any GCC internal prototype to avoid an error.
31671    Use char because int might match the return type of a GCC
31672    builtin and then its argument prototype would still apply.  */
31673 #ifdef __cplusplus
31674 extern "C"
31675 #endif
31676 char $ac_func ();
31677 /* The GNU C library defines this for functions which it implements
31678     to always fail with ENOSYS.  Some functions are actually named
31679     something starting with __ and the normal name is an alias.  */
31680 #if defined __stub_$ac_func || defined __stub___$ac_func
31681 choke me
31682 #endif
31683
31684 int
31685 main ()
31686 {
31687 return $ac_func ();
31688   ;
31689   return 0;
31690 }
31691 _ACEOF
31692 rm -f conftest.$ac_objext conftest$ac_exeext
31693 if { (ac_try="$ac_link"
31694 case "(($ac_try" in
31695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31696   *) ac_try_echo=$ac_try;;
31697 esac
31698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31699 $as_echo "$ac_try_echo") >&5
31700   (eval "$ac_link") 2>conftest.er1
31701   ac_status=$?
31702   grep -v '^ *+' conftest.er1 >conftest.err
31703   rm -f conftest.er1
31704   cat conftest.err >&5
31705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31706   (exit $ac_status); } && {
31707          test -z "$ac_c_werror_flag" ||
31708          test ! -s conftest.err
31709        } && test -s conftest$ac_exeext && {
31710          test "$cross_compiling" = yes ||
31711          $as_test_x conftest$ac_exeext
31712        }; then
31713   eval "$as_ac_var=yes"
31714 else
31715   $as_echo "$as_me: failed program was:" >&5
31716 sed 's/^/| /' conftest.$ac_ext >&5
31717
31718         eval "$as_ac_var=no"
31719 fi
31720
31721 rm -rf conftest.dSYM
31722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
31723       conftest$ac_exeext conftest.$ac_ext
31724 fi
31725 ac_res=`eval 'as_val=${'$as_ac_var'}
31726                  $as_echo "$as_val"'`
31727                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
31728 $as_echo "$ac_res" >&6; }
31729 as_val=`eval 'as_val=${'$as_ac_var'}
31730                  $as_echo "$as_val"'`
31731    if test "x$as_val" = x""yes; then
31732   cat >>confdefs.h <<_ACEOF
31733 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31734 _ACEOF
31735
31736 fi
31737 done
31738
31739
31740     fi
31741   fi
31742
31743 cat >>confdefs.h <<_ACEOF
31744 #define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone
31745 _ACEOF
31746
31747
31748
31749
31750
31751   GNULIB_GETTIMEOFDAY=1
31752
31753
31754
31755 cat >>confdefs.h <<\_ACEOF
31756 #define GNULIB_TEST_GETTIMEOFDAY 1
31757 _ACEOF
31758
31759
31760
31761   # Code from module gitlog-to-changelog:
31762   # Code from module hash:
31763
31764
31765
31766
31767
31768
31769
31770
31771
31772   gl_LIBOBJS="$gl_LIBOBJS hash.$ac_objext"
31773
31774
31775
31776
31777   # Code from module havelib:
31778   # Code from module human:
31779
31780
31781
31782
31783
31784
31785
31786
31787
31788   gl_LIBOBJS="$gl_LIBOBJS human.$ac_objext"
31789
31790
31791     :
31792
31793   # Code from module include_next:
31794   # Code from module inline:
31795
31796
31797   { $as_echo "$as_me:$LINENO: checking whether the compiler generally respects inline" >&5
31798 $as_echo_n "checking whether the compiler generally respects inline... " >&6; }
31799 if test "${gl_cv_c_inline_effective+set}" = set; then
31800   $as_echo_n "(cached) " >&6
31801 else
31802   if test $ac_cv_c_inline = no; then
31803        gl_cv_c_inline_effective=no
31804      else
31805                                           cat >conftest.$ac_ext <<_ACEOF
31806 /* confdefs.h.  */
31807 _ACEOF
31808 cat confdefs.h >>conftest.$ac_ext
31809 cat >>conftest.$ac_ext <<_ACEOF
31810 /* end confdefs.h.  */
31811
31812 int
31813 main ()
31814 {
31815 #ifdef __NO_INLINE__
31816                #error "inline is not effective"
31817              #endif
31818   ;
31819   return 0;
31820 }
31821 _ACEOF
31822 rm -f conftest.$ac_objext
31823 if { (ac_try="$ac_compile"
31824 case "(($ac_try" in
31825   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
31826   *) ac_try_echo=$ac_try;;
31827 esac
31828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
31829 $as_echo "$ac_try_echo") >&5
31830   (eval "$ac_compile") 2>conftest.er1
31831   ac_status=$?
31832   grep -v '^ *+' conftest.er1 >conftest.err
31833   rm -f conftest.er1
31834   cat conftest.err >&5
31835   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
31836   (exit $ac_status); } && {
31837          test -z "$ac_c_werror_flag" ||
31838          test ! -s conftest.err
31839        } && test -s conftest.$ac_objext; then
31840   gl_cv_c_inline_effective=yes
31841 else
31842   $as_echo "$as_me: failed program was:" >&5
31843 sed 's/^/| /' conftest.$ac_ext >&5
31844
31845         gl_cv_c_inline_effective=no
31846 fi
31847
31848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31849      fi
31850
31851 fi
31852 { $as_echo "$as_me:$LINENO: result: $gl_cv_c_inline_effective" >&5
31853 $as_echo "$gl_cv_c_inline_effective" >&6; }
31854   if test $gl_cv_c_inline_effective = yes; then
31855
31856 cat >>confdefs.h <<\_ACEOF
31857 #define HAVE_INLINE 1
31858 _ACEOF
31859
31860   fi
31861
31862   # Code from module intprops:
31863   # Code from module inttostr:
31864
31865
31866
31867   :
31868
31869   :
31870   :
31871   :
31872   :
31873
31874   # Code from module inttypes:
31875
31876
31877
31878
31879
31880
31881
31882
31883
31884
31885
31886
31887
31888
31889
31890
31891
31892
31893
31894
31895
31896
31897
31898
31899
31900
31901               { $as_echo "$as_me:$LINENO: checking whether inttypes.h conforms to C99" >&5
31902 $as_echo_n "checking whether inttypes.h conforms to C99... " >&6; }
31903 if test "${gl_cv_header_working_inttypes_h+set}" = set; then
31904   $as_echo_n "(cached) " >&6
31905 else
31906   gl_cv_header_working_inttypes_h=no
31907      if test "$gl_cv_header_working_stdint_h" = yes \
31908         && test $ac_cv_header_inttypes_h = yes \
31909         && test "$ac_cv_have_decl_imaxabs" = yes \
31910         && test "$ac_cv_have_decl_imaxdiv" = yes \
31911         && test "$ac_cv_have_decl_strtoimax" = yes \
31912         && test "$ac_cv_have_decl_strtoumax" = yes; then
31913        cat >conftest.$ac_ext <<_ACEOF
31914
31915          /* confdefs.h.  */
31916 _ACEOF
31917 cat confdefs.h >>conftest.$ac_ext
31918 cat >>conftest.$ac_ext <<_ACEOF
31919 /* end confdefs.h.  */
31920
31921 #include <stddef.h>
31922 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
31923 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
31924 #define __STDC_FORMAT_MACROS 1 /* to make it work also in C++ mode */
31925 #define _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H /* work if build isn't clean */
31926 #include <inttypes.h>
31927
31928 /* No need to duplicate the tests of stdint.m4; they are subsumed by
31929    $gl_cv_header_working_stdint_h = yes.  */
31930
31931 /* Tests for macros supposed to be defined in inttypes.h.  */
31932
31933 const char *k = /* implicit string concatenation */
31934 #ifdef INT8_MAX
31935   PRId8 PRIi8
31936 #endif
31937 #ifdef UINT8_MAX
31938   PRIo8 PRIu8 PRIx8 PRIX8
31939 #endif
31940 #ifdef INT16_MAX
31941   PRId16 PRIi16
31942 #endif
31943 #ifdef UINT16_MAX
31944   PRIo16 PRIu16 PRIx16 PRIX16
31945 #endif
31946 #ifdef INT32_MAX
31947   PRId32 PRIi32
31948 #endif
31949 #ifdef UINT32_MAX
31950   PRIo32 PRIu32 PRIx32 PRIX32
31951 #endif
31952 #ifdef INT64_MAX
31953   PRId64 PRIi64
31954 #endif
31955 #ifdef UINT64_MAX
31956   PRIo64 PRIu64 PRIx64 PRIX64
31957 #endif
31958   PRIdLEAST8 PRIiLEAST8 PRIoLEAST8 PRIuLEAST8 PRIxLEAST8 PRIXLEAST8
31959   PRIdLEAST16 PRIiLEAST16 PRIoLEAST16 PRIuLEAST16 PRIxLEAST16 PRIXLEAST16
31960   PRIdLEAST32 PRIiLEAST32 PRIoLEAST32 PRIuLEAST32 PRIxLEAST32 PRIXLEAST32
31961   PRIdLEAST64 PRIiLEAST64
31962   PRIoLEAST64 PRIuLEAST64 PRIxLEAST64 PRIXLEAST64
31963   PRIdFAST8 PRIiFAST8 PRIoFAST8 PRIuFAST8 PRIxFAST8 PRIXFAST8
31964   PRIdFAST16 PRIiFAST16 PRIoFAST16 PRIuFAST16 PRIxFAST16 PRIXFAST16
31965   PRIdFAST32 PRIiFAST32 PRIoFAST32 PRIuFAST32 PRIxFAST32 PRIXFAST32
31966   PRIdFAST64 PRIiFAST64
31967   PRIoFAST64 PRIuFAST64 PRIxFAST64 PRIXFAST64
31968   PRIdMAX PRIiMAX PRIoMAX PRIuMAX PRIxMAX PRIXMAX
31969 #ifdef INTPTR_MAX
31970   PRIdPTR PRIiPTR
31971 #endif
31972 #ifdef UINTPTR_MAX
31973   PRIoPTR PRIuPTR PRIxPTR PRIXPTR
31974 #endif
31975   ;
31976 const char *l = /* implicit string concatenation */
31977 #ifdef INT8_MAX
31978   SCNd8 SCNi8
31979 #endif
31980 #ifdef UINT8_MAX
31981   SCNo8 SCNu8 SCNx8
31982 #endif
31983 #ifdef INT16_MAX
31984   SCNd16 SCNi16
31985 #endif
31986 #ifdef UINT16_MAX
31987   SCNo16 SCNu16 SCNx16
31988 #endif
31989 #ifdef INT32_MAX
31990   SCNd32 SCNi32
31991 #endif
31992 #ifdef UINT32_MAX
31993   SCNo32 SCNu32 SCNx32
31994 #endif
31995 #ifdef INT64_MAX
31996   SCNd64 SCNi64
31997 #endif
31998 #ifdef UINT64_MAX
31999   SCNo64 SCNu64 SCNx64
32000 #endif
32001   SCNdLEAST8 SCNiLEAST8 SCNoLEAST8 SCNuLEAST8 SCNxLEAST8
32002   SCNdLEAST16 SCNiLEAST16 SCNoLEAST16 SCNuLEAST16 SCNxLEAST16
32003   SCNdLEAST32 SCNiLEAST32 SCNoLEAST32 SCNuLEAST32 SCNxLEAST32
32004   SCNdLEAST64 SCNiLEAST64
32005   SCNoLEAST64 SCNuLEAST64 SCNxLEAST64
32006   SCNdFAST8 SCNiFAST8 SCNoFAST8 SCNuFAST8 SCNxFAST8
32007   SCNdFAST16 SCNiFAST16 SCNoFAST16 SCNuFAST16 SCNxFAST16
32008   SCNdFAST32 SCNiFAST32 SCNoFAST32 SCNuFAST32 SCNxFAST32
32009   SCNdFAST64 SCNiFAST64
32010   SCNoFAST64 SCNuFAST64 SCNxFAST64
32011   SCNdMAX SCNiMAX SCNoMAX SCNuMAX SCNxMAX
32012 #ifdef INTPTR_MAX
32013   SCNdPTR SCNiPTR
32014 #endif
32015 #ifdef UINTPTR_MAX
32016   SCNoPTR SCNuPTR SCNxPTR
32017 #endif
32018   ;
32019
32020 int
32021 main ()
32022 {
32023
32024   ;
32025   return 0;
32026 }
32027 _ACEOF
32028 rm -f conftest.$ac_objext
32029 if { (ac_try="$ac_compile"
32030 case "(($ac_try" in
32031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32032   *) ac_try_echo=$ac_try;;
32033 esac
32034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32035 $as_echo "$ac_try_echo") >&5
32036   (eval "$ac_compile") 2>conftest.er1
32037   ac_status=$?
32038   grep -v '^ *+' conftest.er1 >conftest.err
32039   rm -f conftest.er1
32040   cat conftest.err >&5
32041   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32042   (exit $ac_status); } && {
32043          test -z "$ac_c_werror_flag" ||
32044          test ! -s conftest.err
32045        } && test -s conftest.$ac_objext; then
32046   gl_cv_header_working_inttypes_h=yes
32047 else
32048   $as_echo "$as_me: failed program was:" >&5
32049 sed 's/^/| /' conftest.$ac_ext >&5
32050
32051
32052 fi
32053
32054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32055      fi
32056 fi
32057 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_inttypes_h" >&5
32058 $as_echo "$gl_cv_header_working_inttypes_h" >&6; }
32059
32060
32061
32062
32063
32064
32065
32066
32067
32068
32069
32070
32071
32072
32073
32074
32075      if test $gl_cv_have_include_next = yes; then
32076        gl_cv_next_inttypes_h='<'inttypes.h'>'
32077      else
32078        { $as_echo "$as_me:$LINENO: checking absolute name of <inttypes.h>" >&5
32079 $as_echo_n "checking absolute name of <inttypes.h>... " >&6; }
32080 if test "${gl_cv_next_inttypes_h+set}" = set; then
32081   $as_echo_n "(cached) " >&6
32082 else
32083
32084              if test $ac_cv_header_inttypes_h = yes; then
32085
32086
32087                cat >conftest.$ac_ext <<_ACEOF
32088 /* confdefs.h.  */
32089 _ACEOF
32090 cat confdefs.h >>conftest.$ac_ext
32091 cat >>conftest.$ac_ext <<_ACEOF
32092 /* end confdefs.h.  */
32093 #include <inttypes.h>
32094
32095 _ACEOF
32096                                                                                                                         case "$host_os" in
32097                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
32098                  *)    gl_absname_cpp="$ac_cpp" ;;
32099                esac
32100                                                             gl_cv_next_inttypes_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32101                   sed -n '\#/inttypes.h#{
32102                     s#.*"\(.*/inttypes.h\)".*#\1#
32103                     s#^/[^/]#//&#
32104                     p
32105                     q
32106                   }'`'"'
32107           else
32108                gl_cv_next_inttypes_h='<'inttypes.h'>'
32109              fi
32110
32111
32112 fi
32113 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_inttypes_h" >&5
32114 $as_echo "$gl_cv_next_inttypes_h" >&6; }
32115      fi
32116      NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
32117
32118      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32119        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32120        gl_next_as_first_directive='<'inttypes.h'>'
32121      else
32122        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32123        gl_next_as_first_directive=$gl_cv_next_inttypes_h
32124      fi
32125      NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
32126
32127
32128
32129
32130
32131
32132
32133
32134 cat >>confdefs.h <<\_ACEOF
32135 #define GL_TRIGGER_STDC_LIMIT_MACROS 1
32136 _ACEOF
32137
32138
32139
32140
32141   PRIPTR_PREFIX=
32142   if test -n "$STDINT_H"; then
32143         PRIPTR_PREFIX='"l"'
32144   else
32145         for glpfx in '' l ll I64; do
32146       case $glpfx in
32147         '')  gltype1='int';;
32148         l)   gltype1='long int';;
32149         ll)  gltype1='long long int';;
32150         I64) gltype1='__int64';;
32151       esac
32152       cat >conftest.$ac_ext <<_ACEOF
32153 /* confdefs.h.  */
32154 _ACEOF
32155 cat confdefs.h >>conftest.$ac_ext
32156 cat >>conftest.$ac_ext <<_ACEOF
32157 /* end confdefs.h.  */
32158 #include <stdint.h>
32159            extern intptr_t foo;
32160            extern $gltype1 foo;
32161 int
32162 main ()
32163 {
32164
32165   ;
32166   return 0;
32167 }
32168 _ACEOF
32169 rm -f conftest.$ac_objext
32170 if { (ac_try="$ac_compile"
32171 case "(($ac_try" in
32172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32173   *) ac_try_echo=$ac_try;;
32174 esac
32175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32176 $as_echo "$ac_try_echo") >&5
32177   (eval "$ac_compile") 2>conftest.er1
32178   ac_status=$?
32179   grep -v '^ *+' conftest.er1 >conftest.err
32180   rm -f conftest.er1
32181   cat conftest.err >&5
32182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32183   (exit $ac_status); } && {
32184          test -z "$ac_c_werror_flag" ||
32185          test ! -s conftest.err
32186        } && test -s conftest.$ac_objext; then
32187   PRIPTR_PREFIX='"'$glpfx'"'
32188 else
32189   $as_echo "$as_me: failed program was:" >&5
32190 sed 's/^/| /' conftest.$ac_ext >&5
32191
32192
32193 fi
32194
32195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32196       test -n "$PRIPTR_PREFIX" && break
32197     done
32198   fi
32199
32200
32201   if test "$ac_cv_have_decl_imaxabs" = yes; then
32202     HAVE_DECL_IMAXABS=1
32203   else
32204     HAVE_DECL_IMAXABS=0
32205   fi
32206
32207   if test "$ac_cv_have_decl_imaxdiv" = yes; then
32208     HAVE_DECL_IMAXDIV=1
32209   else
32210     HAVE_DECL_IMAXDIV=0
32211   fi
32212
32213   if test "$ac_cv_have_decl_strtoimax" = yes; then
32214     HAVE_DECL_STRTOIMAX=1
32215   else
32216     HAVE_DECL_STRTOIMAX=0
32217   fi
32218
32219   if test "$ac_cv_have_decl_strtoumax" = yes; then
32220     HAVE_DECL_STRTOUMAX=1
32221   else
32222     HAVE_DECL_STRTOUMAX=0
32223   fi
32224
32225
32226   { $as_echo "$as_me:$LINENO: checking whether INT32_MAX < INTMAX_MAX" >&5
32227 $as_echo_n "checking whether INT32_MAX < INTMAX_MAX... " >&6; }
32228 if test "${gl_cv_test_INT32_MAX_LT_INTMAX_MAX+set}" = set; then
32229   $as_echo_n "(cached) " >&6
32230 else
32231   cat >conftest.$ac_ext <<_ACEOF
32232 /* confdefs.h.  */
32233 _ACEOF
32234 cat confdefs.h >>conftest.$ac_ext
32235 cat >>conftest.$ac_ext <<_ACEOF
32236 /* end confdefs.h.  */
32237 /* Work also in C++ mode.  */
32238             #define __STDC_LIMIT_MACROS 1
32239
32240             /* Work if build is not clean.  */
32241             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
32242
32243             #include <limits.h>
32244             #if HAVE_STDINT_H
32245              #include <stdint.h>
32246             #endif
32247
32248             #if defined INT32_MAX && defined INTMAX_MAX
32249              #define CONDITION (INT32_MAX < INTMAX_MAX)
32250             #elif HAVE_LONG_LONG_INT
32251              #define CONDITION (sizeof (int) < sizeof (long long int))
32252             #else
32253              #define CONDITION 0
32254             #endif
32255             int test[CONDITION ? 1 : -1];
32256 int
32257 main ()
32258 {
32259
32260   ;
32261   return 0;
32262 }
32263 _ACEOF
32264 rm -f conftest.$ac_objext
32265 if { (ac_try="$ac_compile"
32266 case "(($ac_try" in
32267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32268   *) ac_try_echo=$ac_try;;
32269 esac
32270 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32271 $as_echo "$ac_try_echo") >&5
32272   (eval "$ac_compile") 2>conftest.er1
32273   ac_status=$?
32274   grep -v '^ *+' conftest.er1 >conftest.err
32275   rm -f conftest.er1
32276   cat conftest.err >&5
32277   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32278   (exit $ac_status); } && {
32279          test -z "$ac_c_werror_flag" ||
32280          test ! -s conftest.err
32281        } && test -s conftest.$ac_objext; then
32282   gl_cv_test_INT32_MAX_LT_INTMAX_MAX=yes
32283 else
32284   $as_echo "$as_me: failed program was:" >&5
32285 sed 's/^/| /' conftest.$ac_ext >&5
32286
32287         gl_cv_test_INT32_MAX_LT_INTMAX_MAX=no
32288 fi
32289
32290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32291 fi
32292 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&5
32293 $as_echo "$gl_cv_test_INT32_MAX_LT_INTMAX_MAX" >&6; }
32294   if test $gl_cv_test_INT32_MAX_LT_INTMAX_MAX = yes; then
32295     INT32_MAX_LT_INTMAX_MAX=1;
32296   else
32297     INT32_MAX_LT_INTMAX_MAX=0;
32298   fi
32299
32300
32301   if test $APPLE_UNIVERSAL_BUILD = 0; then
32302
32303   { $as_echo "$as_me:$LINENO: checking whether INT64_MAX == LONG_MAX" >&5
32304 $as_echo_n "checking whether INT64_MAX == LONG_MAX... " >&6; }
32305 if test "${gl_cv_test_INT64_MAX_EQ_LONG_MAX+set}" = set; then
32306   $as_echo_n "(cached) " >&6
32307 else
32308   cat >conftest.$ac_ext <<_ACEOF
32309 /* confdefs.h.  */
32310 _ACEOF
32311 cat confdefs.h >>conftest.$ac_ext
32312 cat >>conftest.$ac_ext <<_ACEOF
32313 /* end confdefs.h.  */
32314 /* Work also in C++ mode.  */
32315             #define __STDC_LIMIT_MACROS 1
32316
32317             /* Work if build is not clean.  */
32318             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
32319
32320             #include <limits.h>
32321             #if HAVE_STDINT_H
32322              #include <stdint.h>
32323             #endif
32324
32325             #if defined INT64_MAX
32326              #define CONDITION (INT64_MAX == LONG_MAX)
32327             #elif HAVE_LONG_LONG_INT
32328              #define CONDITION (sizeof (long long int) == sizeof (long int))
32329             #else
32330              #define CONDITION 0
32331             #endif
32332             int test[CONDITION ? 1 : -1];
32333 int
32334 main ()
32335 {
32336
32337   ;
32338   return 0;
32339 }
32340 _ACEOF
32341 rm -f conftest.$ac_objext
32342 if { (ac_try="$ac_compile"
32343 case "(($ac_try" in
32344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32345   *) ac_try_echo=$ac_try;;
32346 esac
32347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32348 $as_echo "$ac_try_echo") >&5
32349   (eval "$ac_compile") 2>conftest.er1
32350   ac_status=$?
32351   grep -v '^ *+' conftest.er1 >conftest.err
32352   rm -f conftest.er1
32353   cat conftest.err >&5
32354   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32355   (exit $ac_status); } && {
32356          test -z "$ac_c_werror_flag" ||
32357          test ! -s conftest.err
32358        } && test -s conftest.$ac_objext; then
32359   gl_cv_test_INT64_MAX_EQ_LONG_MAX=yes
32360 else
32361   $as_echo "$as_me: failed program was:" >&5
32362 sed 's/^/| /' conftest.$ac_ext >&5
32363
32364         gl_cv_test_INT64_MAX_EQ_LONG_MAX=no
32365 fi
32366
32367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32368 fi
32369 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&5
32370 $as_echo "$gl_cv_test_INT64_MAX_EQ_LONG_MAX" >&6; }
32371   if test $gl_cv_test_INT64_MAX_EQ_LONG_MAX = yes; then
32372     INT64_MAX_EQ_LONG_MAX=1;
32373   else
32374     INT64_MAX_EQ_LONG_MAX=0;
32375   fi
32376
32377
32378   else
32379     INT64_MAX_EQ_LONG_MAX=-1
32380   fi
32381
32382   { $as_echo "$as_me:$LINENO: checking whether UINT32_MAX < UINTMAX_MAX" >&5
32383 $as_echo_n "checking whether UINT32_MAX < UINTMAX_MAX... " >&6; }
32384 if test "${gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX+set}" = set; then
32385   $as_echo_n "(cached) " >&6
32386 else
32387   cat >conftest.$ac_ext <<_ACEOF
32388 /* confdefs.h.  */
32389 _ACEOF
32390 cat confdefs.h >>conftest.$ac_ext
32391 cat >>conftest.$ac_ext <<_ACEOF
32392 /* end confdefs.h.  */
32393 /* Work also in C++ mode.  */
32394             #define __STDC_LIMIT_MACROS 1
32395
32396             /* Work if build is not clean.  */
32397             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
32398
32399             #include <limits.h>
32400             #if HAVE_STDINT_H
32401              #include <stdint.h>
32402             #endif
32403
32404             #if defined UINT32_MAX && defined UINTMAX_MAX
32405              #define CONDITION (UINT32_MAX < UINTMAX_MAX)
32406             #elif HAVE_LONG_LONG_INT
32407              #define CONDITION (sizeof (unsigned int) < sizeof (unsigned long long int))
32408             #else
32409              #define CONDITION 0
32410             #endif
32411             int test[CONDITION ? 1 : -1];
32412 int
32413 main ()
32414 {
32415
32416   ;
32417   return 0;
32418 }
32419 _ACEOF
32420 rm -f conftest.$ac_objext
32421 if { (ac_try="$ac_compile"
32422 case "(($ac_try" in
32423   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32424   *) ac_try_echo=$ac_try;;
32425 esac
32426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32427 $as_echo "$ac_try_echo") >&5
32428   (eval "$ac_compile") 2>conftest.er1
32429   ac_status=$?
32430   grep -v '^ *+' conftest.er1 >conftest.err
32431   rm -f conftest.er1
32432   cat conftest.err >&5
32433   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32434   (exit $ac_status); } && {
32435          test -z "$ac_c_werror_flag" ||
32436          test ! -s conftest.err
32437        } && test -s conftest.$ac_objext; then
32438   gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=yes
32439 else
32440   $as_echo "$as_me: failed program was:" >&5
32441 sed 's/^/| /' conftest.$ac_ext >&5
32442
32443         gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX=no
32444 fi
32445
32446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32447 fi
32448 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&5
32449 $as_echo "$gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX" >&6; }
32450   if test $gl_cv_test_UINT32_MAX_LT_UINTMAX_MAX = yes; then
32451     UINT32_MAX_LT_UINTMAX_MAX=1;
32452   else
32453     UINT32_MAX_LT_UINTMAX_MAX=0;
32454   fi
32455
32456
32457   if test $APPLE_UNIVERSAL_BUILD = 0; then
32458
32459   { $as_echo "$as_me:$LINENO: checking whether UINT64_MAX == ULONG_MAX" >&5
32460 $as_echo_n "checking whether UINT64_MAX == ULONG_MAX... " >&6; }
32461 if test "${gl_cv_test_UINT64_MAX_EQ_ULONG_MAX+set}" = set; then
32462   $as_echo_n "(cached) " >&6
32463 else
32464   cat >conftest.$ac_ext <<_ACEOF
32465 /* confdefs.h.  */
32466 _ACEOF
32467 cat confdefs.h >>conftest.$ac_ext
32468 cat >>conftest.$ac_ext <<_ACEOF
32469 /* end confdefs.h.  */
32470 /* Work also in C++ mode.  */
32471             #define __STDC_LIMIT_MACROS 1
32472
32473             /* Work if build is not clean.  */
32474             #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H
32475
32476             #include <limits.h>
32477             #if HAVE_STDINT_H
32478              #include <stdint.h>
32479             #endif
32480
32481             #if defined UINT64_MAX
32482              #define CONDITION (UINT64_MAX == ULONG_MAX)
32483             #elif HAVE_LONG_LONG_INT
32484              #define CONDITION (sizeof (unsigned long long int) == sizeof (unsigned long int))
32485             #else
32486              #define CONDITION 0
32487             #endif
32488             int test[CONDITION ? 1 : -1];
32489 int
32490 main ()
32491 {
32492
32493   ;
32494   return 0;
32495 }
32496 _ACEOF
32497 rm -f conftest.$ac_objext
32498 if { (ac_try="$ac_compile"
32499 case "(($ac_try" in
32500   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32501   *) ac_try_echo=$ac_try;;
32502 esac
32503 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32504 $as_echo "$ac_try_echo") >&5
32505   (eval "$ac_compile") 2>conftest.er1
32506   ac_status=$?
32507   grep -v '^ *+' conftest.er1 >conftest.err
32508   rm -f conftest.er1
32509   cat conftest.err >&5
32510   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32511   (exit $ac_status); } && {
32512          test -z "$ac_c_werror_flag" ||
32513          test ! -s conftest.err
32514        } && test -s conftest.$ac_objext; then
32515   gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=yes
32516 else
32517   $as_echo "$as_me: failed program was:" >&5
32518 sed 's/^/| /' conftest.$ac_ext >&5
32519
32520         gl_cv_test_UINT64_MAX_EQ_ULONG_MAX=no
32521 fi
32522
32523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32524 fi
32525 { $as_echo "$as_me:$LINENO: result: $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&5
32526 $as_echo "$gl_cv_test_UINT64_MAX_EQ_ULONG_MAX" >&6; }
32527   if test $gl_cv_test_UINT64_MAX_EQ_ULONG_MAX = yes; then
32528     UINT64_MAX_EQ_ULONG_MAX=1;
32529   else
32530     UINT64_MAX_EQ_ULONG_MAX=0;
32531   fi
32532
32533
32534   else
32535     UINT64_MAX_EQ_ULONG_MAX=-1
32536   fi
32537
32538
32539
32540
32541
32542
32543   for gl_func in imaxabs imaxdiv strtoimax strtoumax; do
32544     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32545     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
32546 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32547 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
32548   $as_echo_n "(cached) " >&6
32549 else
32550   cat >conftest.$ac_ext <<_ACEOF
32551 /* confdefs.h.  */
32552 _ACEOF
32553 cat confdefs.h >>conftest.$ac_ext
32554 cat >>conftest.$ac_ext <<_ACEOF
32555 /* end confdefs.h.  */
32556 #include <inttypes.h>
32557
32558 int
32559 main ()
32560 {
32561 #undef $gl_func
32562   (void) $gl_func;
32563   ;
32564   return 0;
32565 }
32566 _ACEOF
32567 rm -f conftest.$ac_objext
32568 if { (ac_try="$ac_compile"
32569 case "(($ac_try" in
32570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32571   *) ac_try_echo=$ac_try;;
32572 esac
32573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32574 $as_echo "$ac_try_echo") >&5
32575   (eval "$ac_compile") 2>conftest.er1
32576   ac_status=$?
32577   grep -v '^ *+' conftest.er1 >conftest.err
32578   rm -f conftest.er1
32579   cat conftest.err >&5
32580   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32581   (exit $ac_status); } && {
32582          test -z "$ac_c_werror_flag" ||
32583          test ! -s conftest.err
32584        } && test -s conftest.$ac_objext; then
32585   eval "$as_gl_Symbol=yes"
32586 else
32587   $as_echo "$as_me: failed program was:" >&5
32588 sed 's/^/| /' conftest.$ac_ext >&5
32589
32590         eval "$as_gl_Symbol=no"
32591 fi
32592
32593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32594 fi
32595 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
32596                  $as_echo "$as_val"'`
32597                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
32598 $as_echo "$ac_res" >&6; }
32599      as_val=`eval 'as_val=${'$as_gl_Symbol'}
32600                  $as_echo "$as_val"'`
32601    if test "x$as_val" = x""yes; then
32602   cat >>confdefs.h <<_ACEOF
32603 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
32604 _ACEOF
32605
32606                      eval ac_cv_have_decl_$gl_func=yes
32607 fi
32608
32609       done
32610
32611
32612   # Code from module iswblank:
32613
32614
32615
32616
32617
32618
32619
32620
32621
32622
32623
32624
32625
32626
32627   if test $ac_cv_func_iswblank = no; then
32628     HAVE_ISWBLANK=0
32629     if test $ac_cv_have_decl_iswblank = yes; then
32630       REPLACE_ISWBLANK=1
32631     fi
32632   fi
32633   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
32634         :
32635   else
32636     if test $HAVE_ISWBLANK = 0 || test $REPLACE_ISWBLANK = 1; then
32637
32638
32639
32640
32641
32642
32643
32644
32645   gl_LIBOBJS="$gl_LIBOBJS iswblank.$ac_objext"
32646
32647     fi
32648   fi
32649
32650
32651
32652
32653
32654   GNULIB_ISWBLANK=1
32655
32656
32657
32658 cat >>confdefs.h <<\_ACEOF
32659 #define GNULIB_TEST_ISWBLANK 1
32660 _ACEOF
32661
32662
32663
32664   # Code from module langinfo:
32665
32666
32667
32668
32669
32670
32671
32672
32673
32674
32675
32676
32677
32678
32679
32680
32681
32682
32683
32684      if test $gl_cv_have_include_next = yes; then
32685        gl_cv_next_langinfo_h='<'langinfo.h'>'
32686      else
32687        { $as_echo "$as_me:$LINENO: checking absolute name of <langinfo.h>" >&5
32688 $as_echo_n "checking absolute name of <langinfo.h>... " >&6; }
32689 if test "${gl_cv_next_langinfo_h+set}" = set; then
32690   $as_echo_n "(cached) " >&6
32691 else
32692
32693              if test $ac_cv_header_langinfo_h = yes; then
32694
32695
32696                cat >conftest.$ac_ext <<_ACEOF
32697 /* confdefs.h.  */
32698 _ACEOF
32699 cat confdefs.h >>conftest.$ac_ext
32700 cat >>conftest.$ac_ext <<_ACEOF
32701 /* end confdefs.h.  */
32702 #include <langinfo.h>
32703
32704 _ACEOF
32705                                                                                                                         case "$host_os" in
32706                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
32707                  *)    gl_absname_cpp="$ac_cpp" ;;
32708                esac
32709                                                             gl_cv_next_langinfo_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
32710                   sed -n '\#/langinfo.h#{
32711                     s#.*"\(.*/langinfo.h\)".*#\1#
32712                     s#^/[^/]#//&#
32713                     p
32714                     q
32715                   }'`'"'
32716           else
32717                gl_cv_next_langinfo_h='<'langinfo.h'>'
32718              fi
32719
32720
32721 fi
32722 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_langinfo_h" >&5
32723 $as_echo "$gl_cv_next_langinfo_h" >&6; }
32724      fi
32725      NEXT_LANGINFO_H=$gl_cv_next_langinfo_h
32726
32727      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
32728        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
32729        gl_next_as_first_directive='<'langinfo.h'>'
32730      else
32731        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
32732        gl_next_as_first_directive=$gl_cv_next_langinfo_h
32733      fi
32734      NEXT_AS_FIRST_DIRECTIVE_LANGINFO_H=$gl_next_as_first_directive
32735
32736
32737
32738
32739
32740     HAVE_LANGINFO_CODESET=0
32741   HAVE_LANGINFO_T_FMT_AMPM=0
32742   HAVE_LANGINFO_ERA=0
32743   HAVE_LANGINFO_YESEXPR=0
32744
32745
32746
32747
32748
32749
32750   if test $ac_cv_header_langinfo_h = yes; then
32751     HAVE_LANGINFO_H=1
32752             { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines CODESET" >&5
32753 $as_echo_n "checking whether langinfo.h defines CODESET... " >&6; }
32754 if test "${gl_cv_header_langinfo_codeset+set}" = set; then
32755   $as_echo_n "(cached) " >&6
32756 else
32757   cat >conftest.$ac_ext <<_ACEOF
32758 /* confdefs.h.  */
32759 _ACEOF
32760 cat confdefs.h >>conftest.$ac_ext
32761 cat >>conftest.$ac_ext <<_ACEOF
32762 /* end confdefs.h.  */
32763 #include <langinfo.h>
32764 int a = CODESET;
32765
32766 int
32767 main ()
32768 {
32769
32770   ;
32771   return 0;
32772 }
32773 _ACEOF
32774 rm -f conftest.$ac_objext
32775 if { (ac_try="$ac_compile"
32776 case "(($ac_try" in
32777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32778   *) ac_try_echo=$ac_try;;
32779 esac
32780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32781 $as_echo "$ac_try_echo") >&5
32782   (eval "$ac_compile") 2>conftest.er1
32783   ac_status=$?
32784   grep -v '^ *+' conftest.er1 >conftest.err
32785   rm -f conftest.er1
32786   cat conftest.err >&5
32787   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32788   (exit $ac_status); } && {
32789          test -z "$ac_c_werror_flag" ||
32790          test ! -s conftest.err
32791        } && test -s conftest.$ac_objext; then
32792   gl_cv_header_langinfo_codeset=yes
32793 else
32794   $as_echo "$as_me: failed program was:" >&5
32795 sed 's/^/| /' conftest.$ac_ext >&5
32796
32797         gl_cv_header_langinfo_codeset=no
32798 fi
32799
32800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32801
32802 fi
32803 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_codeset" >&5
32804 $as_echo "$gl_cv_header_langinfo_codeset" >&6; }
32805     if test $gl_cv_header_langinfo_codeset = yes; then
32806       HAVE_LANGINFO_CODESET=1
32807     fi
32808     { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines T_FMT_AMPM" >&5
32809 $as_echo_n "checking whether langinfo.h defines T_FMT_AMPM... " >&6; }
32810 if test "${gl_cv_header_langinfo_t_fmt_ampm+set}" = set; then
32811   $as_echo_n "(cached) " >&6
32812 else
32813   cat >conftest.$ac_ext <<_ACEOF
32814 /* confdefs.h.  */
32815 _ACEOF
32816 cat confdefs.h >>conftest.$ac_ext
32817 cat >>conftest.$ac_ext <<_ACEOF
32818 /* end confdefs.h.  */
32819 #include <langinfo.h>
32820 int a = T_FMT_AMPM;
32821
32822 int
32823 main ()
32824 {
32825
32826   ;
32827   return 0;
32828 }
32829 _ACEOF
32830 rm -f conftest.$ac_objext
32831 if { (ac_try="$ac_compile"
32832 case "(($ac_try" in
32833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32834   *) ac_try_echo=$ac_try;;
32835 esac
32836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32837 $as_echo "$ac_try_echo") >&5
32838   (eval "$ac_compile") 2>conftest.er1
32839   ac_status=$?
32840   grep -v '^ *+' conftest.er1 >conftest.err
32841   rm -f conftest.er1
32842   cat conftest.err >&5
32843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844   (exit $ac_status); } && {
32845          test -z "$ac_c_werror_flag" ||
32846          test ! -s conftest.err
32847        } && test -s conftest.$ac_objext; then
32848   gl_cv_header_langinfo_t_fmt_ampm=yes
32849 else
32850   $as_echo "$as_me: failed program was:" >&5
32851 sed 's/^/| /' conftest.$ac_ext >&5
32852
32853         gl_cv_header_langinfo_t_fmt_ampm=no
32854 fi
32855
32856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32857
32858 fi
32859 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_t_fmt_ampm" >&5
32860 $as_echo "$gl_cv_header_langinfo_t_fmt_ampm" >&6; }
32861     if test $gl_cv_header_langinfo_t_fmt_ampm = yes; then
32862       HAVE_LANGINFO_T_FMT_AMPM=1
32863     fi
32864     { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines ERA" >&5
32865 $as_echo_n "checking whether langinfo.h defines ERA... " >&6; }
32866 if test "${gl_cv_header_langinfo_era+set}" = set; then
32867   $as_echo_n "(cached) " >&6
32868 else
32869   cat >conftest.$ac_ext <<_ACEOF
32870 /* confdefs.h.  */
32871 _ACEOF
32872 cat confdefs.h >>conftest.$ac_ext
32873 cat >>conftest.$ac_ext <<_ACEOF
32874 /* end confdefs.h.  */
32875 #include <langinfo.h>
32876 int a = ERA;
32877
32878 int
32879 main ()
32880 {
32881
32882   ;
32883   return 0;
32884 }
32885 _ACEOF
32886 rm -f conftest.$ac_objext
32887 if { (ac_try="$ac_compile"
32888 case "(($ac_try" in
32889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
32890   *) ac_try_echo=$ac_try;;
32891 esac
32892 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
32893 $as_echo "$ac_try_echo") >&5
32894   (eval "$ac_compile") 2>conftest.er1
32895   ac_status=$?
32896   grep -v '^ *+' conftest.er1 >conftest.err
32897   rm -f conftest.er1
32898   cat conftest.err >&5
32899   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32900   (exit $ac_status); } && {
32901          test -z "$ac_c_werror_flag" ||
32902          test ! -s conftest.err
32903        } && test -s conftest.$ac_objext; then
32904   gl_cv_header_langinfo_era=yes
32905 else
32906   $as_echo "$as_me: failed program was:" >&5
32907 sed 's/^/| /' conftest.$ac_ext >&5
32908
32909         gl_cv_header_langinfo_era=no
32910 fi
32911
32912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32913
32914 fi
32915 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_era" >&5
32916 $as_echo "$gl_cv_header_langinfo_era" >&6; }
32917     if test $gl_cv_header_langinfo_era = yes; then
32918       HAVE_LANGINFO_ERA=1
32919     fi
32920     { $as_echo "$as_me:$LINENO: checking whether langinfo.h defines YESEXPR" >&5
32921 $as_echo_n "checking whether langinfo.h defines YESEXPR... " >&6; }
32922 if test "${gl_cv_header_langinfo_yesexpr+set}" = set; then
32923   $as_echo_n "(cached) " >&6
32924 else
32925   cat >conftest.$ac_ext <<_ACEOF
32926 /* confdefs.h.  */
32927 _ACEOF
32928 cat confdefs.h >>conftest.$ac_ext
32929 cat >>conftest.$ac_ext <<_ACEOF
32930 /* end confdefs.h.  */
32931 #include <langinfo.h>
32932 int a = YESEXPR;
32933
32934 int
32935 main ()
32936 {
32937
32938   ;
32939   return 0;
32940 }
32941 _ACEOF
32942 rm -f conftest.$ac_objext
32943 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
32951   ac_status=$?
32952   grep -v '^ *+' conftest.er1 >conftest.err
32953   rm -f conftest.er1
32954   cat conftest.err >&5
32955   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
32956   (exit $ac_status); } && {
32957          test -z "$ac_c_werror_flag" ||
32958          test ! -s conftest.err
32959        } && test -s conftest.$ac_objext; then
32960   gl_cv_header_langinfo_yesexpr=yes
32961 else
32962   $as_echo "$as_me: failed program was:" >&5
32963 sed 's/^/| /' conftest.$ac_ext >&5
32964
32965         gl_cv_header_langinfo_yesexpr=no
32966 fi
32967
32968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32969
32970 fi
32971 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_langinfo_yesexpr" >&5
32972 $as_echo "$gl_cv_header_langinfo_yesexpr" >&6; }
32973     if test $gl_cv_header_langinfo_yesexpr = yes; then
32974       HAVE_LANGINFO_YESEXPR=1
32975     fi
32976   else
32977     HAVE_LANGINFO_H=0
32978   fi
32979
32980
32981
32982
32983
32984
32985
32986
32987   for gl_func in nl_langinfo; do
32988     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
32989     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
32990 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
32991 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
32992   $as_echo_n "(cached) " >&6
32993 else
32994   cat >conftest.$ac_ext <<_ACEOF
32995 /* confdefs.h.  */
32996 _ACEOF
32997 cat confdefs.h >>conftest.$ac_ext
32998 cat >>conftest.$ac_ext <<_ACEOF
32999 /* end confdefs.h.  */
33000 #include <langinfo.h>
33001
33002 int
33003 main ()
33004 {
33005 #undef $gl_func
33006   (void) $gl_func;
33007   ;
33008   return 0;
33009 }
33010 _ACEOF
33011 rm -f conftest.$ac_objext
33012 if { (ac_try="$ac_compile"
33013 case "(($ac_try" in
33014   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33015   *) ac_try_echo=$ac_try;;
33016 esac
33017 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33018 $as_echo "$ac_try_echo") >&5
33019   (eval "$ac_compile") 2>conftest.er1
33020   ac_status=$?
33021   grep -v '^ *+' conftest.er1 >conftest.err
33022   rm -f conftest.er1
33023   cat conftest.err >&5
33024   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33025   (exit $ac_status); } && {
33026          test -z "$ac_c_werror_flag" ||
33027          test ! -s conftest.err
33028        } && test -s conftest.$ac_objext; then
33029   eval "$as_gl_Symbol=yes"
33030 else
33031   $as_echo "$as_me: failed program was:" >&5
33032 sed 's/^/| /' conftest.$ac_ext >&5
33033
33034         eval "$as_gl_Symbol=no"
33035 fi
33036
33037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33038 fi
33039 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
33040                  $as_echo "$as_val"'`
33041                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33042 $as_echo "$ac_res" >&6; }
33043      as_val=`eval 'as_val=${'$as_gl_Symbol'}
33044                  $as_echo "$as_val"'`
33045    if test "x$as_val" = x""yes; then
33046   cat >>confdefs.h <<_ACEOF
33047 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
33048 _ACEOF
33049
33050                      eval ac_cv_have_decl_$gl_func=yes
33051 fi
33052
33053       done
33054
33055
33056   # Code from module lchown:
33057
33058
33059
33060
33061
33062
33063
33064
33065
33066
33067
33068
33069
33070
33071
33072
33073
33074
33075 for ac_func in lchown
33076 do
33077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
33078 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
33079 $as_echo_n "checking for $ac_func... " >&6; }
33080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
33081   $as_echo_n "(cached) " >&6
33082 else
33083   cat >conftest.$ac_ext <<_ACEOF
33084 /* confdefs.h.  */
33085 _ACEOF
33086 cat confdefs.h >>conftest.$ac_ext
33087 cat >>conftest.$ac_ext <<_ACEOF
33088 /* end confdefs.h.  */
33089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
33090    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
33091 #define $ac_func innocuous_$ac_func
33092
33093 /* System header to define __stub macros and hopefully few prototypes,
33094     which can conflict with char $ac_func (); below.
33095     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
33096     <limits.h> exists even on freestanding compilers.  */
33097
33098 #ifdef __STDC__
33099 # include <limits.h>
33100 #else
33101 # include <assert.h>
33102 #endif
33103
33104 #undef $ac_func
33105
33106 /* Override any GCC internal prototype to avoid an error.
33107    Use char because int might match the return type of a GCC
33108    builtin and then its argument prototype would still apply.  */
33109 #ifdef __cplusplus
33110 extern "C"
33111 #endif
33112 char $ac_func ();
33113 /* The GNU C library defines this for functions which it implements
33114     to always fail with ENOSYS.  Some functions are actually named
33115     something starting with __ and the normal name is an alias.  */
33116 #if defined __stub_$ac_func || defined __stub___$ac_func
33117 choke me
33118 #endif
33119
33120 int
33121 main ()
33122 {
33123 return $ac_func ();
33124   ;
33125   return 0;
33126 }
33127 _ACEOF
33128 rm -f conftest.$ac_objext conftest$ac_exeext
33129 if { (ac_try="$ac_link"
33130 case "(($ac_try" in
33131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33132   *) ac_try_echo=$ac_try;;
33133 esac
33134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33135 $as_echo "$ac_try_echo") >&5
33136   (eval "$ac_link") 2>conftest.er1
33137   ac_status=$?
33138   grep -v '^ *+' conftest.er1 >conftest.err
33139   rm -f conftest.er1
33140   cat conftest.err >&5
33141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33142   (exit $ac_status); } && {
33143          test -z "$ac_c_werror_flag" ||
33144          test ! -s conftest.err
33145        } && test -s conftest$ac_exeext && {
33146          test "$cross_compiling" = yes ||
33147          $as_test_x conftest$ac_exeext
33148        }; then
33149   eval "$as_ac_var=yes"
33150 else
33151   $as_echo "$as_me: failed program was:" >&5
33152 sed 's/^/| /' conftest.$ac_ext >&5
33153
33154         eval "$as_ac_var=no"
33155 fi
33156
33157 rm -rf conftest.dSYM
33158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33159       conftest$ac_exeext conftest.$ac_ext
33160 fi
33161 ac_res=`eval 'as_val=${'$as_ac_var'}
33162                  $as_echo "$as_val"'`
33163                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33164 $as_echo "$ac_res" >&6; }
33165 as_val=`eval 'as_val=${'$as_ac_var'}
33166                  $as_echo "$as_val"'`
33167    if test "x$as_val" = x""yes; then
33168   cat >>confdefs.h <<_ACEOF
33169 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
33170 _ACEOF
33171
33172 else
33173
33174     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
33175
33176 fi
33177 done
33178
33179
33180   if test $ac_cv_func_lchown = no; then
33181     HAVE_LCHOWN=0
33182   elif test "$gl_cv_func_chown_slash_works" != yes \
33183       || test "$gl_cv_func_chown_ctime_works" != yes; then
33184
33185
33186
33187
33188
33189
33190
33191
33192   gl_LIBOBJS="$gl_LIBOBJS lchown.$ac_objext"
33193
33194     REPLACE_LCHOWN=1
33195   fi
33196
33197
33198
33199
33200   GNULIB_LCHOWN=1
33201
33202
33203
33204 cat >>confdefs.h <<\_ACEOF
33205 #define GNULIB_TEST_LCHOWN 1
33206 _ACEOF
33207
33208
33209
33210   # Code from module link:
33211
33212
33213
33214
33215
33216
33217
33218
33219   if test $ac_cv_func_link = no; then
33220     HAVE_LINK=0
33221
33222
33223
33224
33225
33226
33227
33228
33229   gl_LIBOBJS="$gl_LIBOBJS link.$ac_objext"
33230
33231   else
33232     { $as_echo "$as_me:$LINENO: checking whether link handles trailing slash correctly" >&5
33233 $as_echo_n "checking whether link handles trailing slash correctly... " >&6; }
33234 if test "${gl_cv_func_link_works+set}" = set; then
33235   $as_echo_n "(cached) " >&6
33236 else
33237   touch conftest.a
33238        # Assume that if we have lstat, we can also check symlinks.
33239        if test $ac_cv_func_lstat = yes; then
33240          ln -s conftest.a conftest.lnk
33241        fi
33242        if test "$cross_compiling" = yes; then
33243   gl_cv_func_link_works="guessing no"
33244 else
33245   cat >conftest.$ac_ext <<_ACEOF
33246 /* confdefs.h.  */
33247 _ACEOF
33248 cat confdefs.h >>conftest.$ac_ext
33249 cat >>conftest.$ac_ext <<_ACEOF
33250 /* end confdefs.h.  */
33251 #include <unistd.h>
33252
33253 int
33254 main ()
33255 {
33256 int result = 0;
33257              if (!link ("conftest.a", "conftest.b/"))
33258                result |= 1;
33259 #if HAVE_LSTAT
33260              if (!link ("conftest.lnk/", "conftest.b"))
33261                result |= 2;
33262 #endif
33263              return result;
33264
33265   ;
33266   return 0;
33267 }
33268 _ACEOF
33269 rm -f conftest$ac_exeext
33270 if { (ac_try="$ac_link"
33271 case "(($ac_try" in
33272   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33273   *) ac_try_echo=$ac_try;;
33274 esac
33275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33276 $as_echo "$ac_try_echo") >&5
33277   (eval "$ac_link") 2>&5
33278   ac_status=$?
33279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33280   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33281   { (case "(($ac_try" in
33282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33283   *) ac_try_echo=$ac_try;;
33284 esac
33285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33286 $as_echo "$ac_try_echo") >&5
33287   (eval "$ac_try") 2>&5
33288   ac_status=$?
33289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33290   (exit $ac_status); }; }; then
33291   gl_cv_func_link_works=yes
33292 else
33293   $as_echo "$as_me: program exited with status $ac_status" >&5
33294 $as_echo "$as_me: failed program was:" >&5
33295 sed 's/^/| /' conftest.$ac_ext >&5
33296
33297 ( exit $ac_status )
33298 gl_cv_func_link_works=no
33299 fi
33300 rm -rf conftest.dSYM
33301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33302 fi
33303
33304
33305        rm -f conftest.a conftest.b conftest.lnk
33306 fi
33307 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_link_works" >&5
33308 $as_echo "$gl_cv_func_link_works" >&6; }
33309     if test "$gl_cv_func_link_works" != yes; then
33310       REPLACE_LINK=1
33311
33312
33313
33314
33315
33316
33317
33318
33319   gl_LIBOBJS="$gl_LIBOBJS link.$ac_objext"
33320
33321     fi
33322   fi
33323
33324
33325
33326
33327   GNULIB_LINK=1
33328
33329
33330
33331 cat >>confdefs.h <<\_ACEOF
33332 #define GNULIB_TEST_LINK 1
33333 _ACEOF
33334
33335
33336
33337   # Code from module link-follow:
33338
33339
33340
33341
33342
33343
33344           gl_link_follows_symlinks=0 # assume GNU behavior
33345   if test $ac_cv_func_readlink = yes; then
33346                 { $as_echo "$as_me:$LINENO: checking for __xpg4" >&5
33347 $as_echo_n "checking for __xpg4... " >&6; }
33348 if test "${gl_cv_have___xpg4+set}" = set; then
33349   $as_echo_n "(cached) " >&6
33350 else
33351   cat >conftest.$ac_ext <<_ACEOF
33352 /* confdefs.h.  */
33353 _ACEOF
33354 cat confdefs.h >>conftest.$ac_ext
33355 cat >>conftest.$ac_ext <<_ACEOF
33356 /* end confdefs.h.  */
33357 extern int __xpg4;
33358 int
33359 main ()
33360 {
33361 return __xpg4;
33362   ;
33363   return 0;
33364 }
33365 _ACEOF
33366 rm -f conftest.$ac_objext conftest$ac_exeext
33367 if { (ac_try="$ac_link"
33368 case "(($ac_try" in
33369   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33370   *) ac_try_echo=$ac_try;;
33371 esac
33372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33373 $as_echo "$ac_try_echo") >&5
33374   (eval "$ac_link") 2>conftest.er1
33375   ac_status=$?
33376   grep -v '^ *+' conftest.er1 >conftest.err
33377   rm -f conftest.er1
33378   cat conftest.err >&5
33379   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33380   (exit $ac_status); } && {
33381          test -z "$ac_c_werror_flag" ||
33382          test ! -s conftest.err
33383        } && test -s conftest$ac_exeext && {
33384          test "$cross_compiling" = yes ||
33385          $as_test_x conftest$ac_exeext
33386        }; then
33387   gl_cv_have___xpg4=yes
33388 else
33389   $as_echo "$as_me: failed program was:" >&5
33390 sed 's/^/| /' conftest.$ac_ext >&5
33391
33392         gl_cv_have___xpg4=no
33393 fi
33394
33395 rm -rf conftest.dSYM
33396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33397       conftest$ac_exeext conftest.$ac_ext
33398
33399 fi
33400 { $as_echo "$as_me:$LINENO: result: $gl_cv_have___xpg4" >&5
33401 $as_echo "$gl_cv_have___xpg4" >&6; }
33402     if test $gl_cv_have___xpg4 = yes; then
33403       gl_link_follows_symlinks=-1
33404     else
33405       { $as_echo "$as_me:$LINENO: checking whether link(2) dereferences a symlink" >&5
33406 $as_echo_n "checking whether link(2) dereferences a symlink... " >&6; }
33407 if test "${gl_cv_func_link_follows_symlink+set}" = set; then
33408   $as_echo_n "(cached) " >&6
33409 else
33410
33411          # Create a regular file.
33412          echo > conftest.file
33413          if test "$cross_compiling" = yes; then
33414              gl_cv_func_link_follows_symlink=unknown
33415 else
33416   cat >conftest.$ac_ext <<_ACEOF
33417 /* confdefs.h.  */
33418 _ACEOF
33419 cat confdefs.h >>conftest.$ac_ext
33420 cat >>conftest.$ac_ext <<_ACEOF
33421 /* end confdefs.h.  */
33422
33423 #       include <sys/types.h>
33424 #       include <sys/stat.h>
33425 #       include <unistd.h>
33426 #       include <stdlib.h>
33427
33428 #       define SAME_INODE(Stat_buf_1, Stat_buf_2) \
33429           ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \
33430            && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev)
33431
33432         int
33433         main ()
33434         {
33435           const char *file = "conftest.file";
33436           const char *sym = "conftest.sym";
33437           const char *hard = "conftest.hard";
33438           struct stat sb_file, sb_hard;
33439
33440           /* Create a symlink to the regular file. */
33441           if (symlink (file, sym))
33442             return 2;
33443
33444           /* Create a hard link to that symlink.  */
33445           if (link (sym, hard))
33446             return 3;
33447
33448           if (lstat (hard, &sb_hard))
33449             return 4;
33450           if (lstat (file, &sb_file))
33451             return 5;
33452
33453           /* If the dev/inode of hard and file are the same, then
33454              the link call followed the symlink.  */
33455           return SAME_INODE (sb_hard, sb_file) ? 1 : 0;
33456         }
33457
33458 _ACEOF
33459 rm -f conftest$ac_exeext
33460 if { (ac_try="$ac_link"
33461 case "(($ac_try" in
33462   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33463   *) ac_try_echo=$ac_try;;
33464 esac
33465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33466 $as_echo "$ac_try_echo") >&5
33467   (eval "$ac_link") 2>&5
33468   ac_status=$?
33469   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33470   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33471   { (case "(($ac_try" in
33472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33473   *) ac_try_echo=$ac_try;;
33474 esac
33475 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33476 $as_echo "$ac_try_echo") >&5
33477   (eval "$ac_try") 2>&5
33478   ac_status=$?
33479   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33480   (exit $ac_status); }; }; then
33481   gl_cv_func_link_follows_symlink=no
33482 else
33483   $as_echo "$as_me: program exited with status $ac_status" >&5
33484 $as_echo "$as_me: failed program was:" >&5
33485 sed 's/^/| /' conftest.$ac_ext >&5
33486
33487 ( exit $ac_status )
33488            gl_cv_func_link_follows_symlink=yes
33489 fi
33490 rm -rf conftest.dSYM
33491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33492 fi
33493
33494
33495          rm -f conftest.file conftest.sym conftest.hard
33496
33497 fi
33498 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_link_follows_symlink" >&5
33499 $as_echo "$gl_cv_func_link_follows_symlink" >&6; }
33500       case $gl_cv_func_link_follows_symlink in
33501         yes) gl_link_follows_symlinks=1 ;;
33502         no) ;; # already defaulted to 0
33503         *) gl_link_follows_symlinks=-2 ;;
33504       esac
33505     fi
33506   fi
33507
33508 cat >>confdefs.h <<_ACEOF
33509 #define LINK_FOLLOWS_SYMLINKS $gl_link_follows_symlinks
33510 _ACEOF
33511
33512
33513   # Code from module linkat:
33514
33515
33516
33517
33518
33519
33520
33521
33522
33523
33524
33525
33526
33527
33528
33529
33530
33531
33532
33533
33534   if test $ac_cv_func_linkat = no; then
33535     HAVE_LINKAT=0
33536
33537
33538
33539
33540
33541
33542
33543
33544   gl_LIBOBJS="$gl_LIBOBJS linkat.$ac_objext"
33545
33546
33547
33548
33549
33550
33551
33552
33553
33554   gl_LIBOBJS="$gl_LIBOBJS at-func2.$ac_objext"
33555
33556   else
33557     { $as_echo "$as_me:$LINENO: checking whether linkat(,AT_SYMLINK_FOLLOW) works" >&5
33558 $as_echo_n "checking whether linkat(,AT_SYMLINK_FOLLOW) works... " >&6; }
33559 if test "${gl_cv_func_linkat_follow+set}" = set; then
33560   $as_echo_n "(cached) " >&6
33561 else
33562   rm -rf conftest.f1 conftest.f2
33563        touch conftest.f1
33564        cat >conftest.$ac_ext <<_ACEOF
33565 /* confdefs.h.  */
33566 _ACEOF
33567 cat confdefs.h >>conftest.$ac_ext
33568 cat >>conftest.$ac_ext <<_ACEOF
33569 /* end confdefs.h.  */
33570
33571 #include <fcntl.h>
33572 #include <unistd.h>
33573 #ifdef __linux__
33574 /* Linux added linkat in 2.6.16, but did not add AT_SYMLINK_FOLLOW
33575    until 2.6.18.  Always replace linkat to support older kernels.  */
33576 choke me
33577 #endif
33578
33579 int
33580 main ()
33581 {
33582 return linkat (AT_FDCWD, "conftest.f1", AT_FDCWD, "conftest.f2",
33583                     AT_SYMLINK_FOLLOW);
33584   ;
33585   return 0;
33586 }
33587 _ACEOF
33588 rm -f conftest.$ac_objext
33589 if { (ac_try="$ac_compile"
33590 case "(($ac_try" in
33591   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33592   *) ac_try_echo=$ac_try;;
33593 esac
33594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33595 $as_echo "$ac_try_echo") >&5
33596   (eval "$ac_compile") 2>conftest.er1
33597   ac_status=$?
33598   grep -v '^ *+' conftest.er1 >conftest.err
33599   rm -f conftest.er1
33600   cat conftest.err >&5
33601   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33602   (exit $ac_status); } && {
33603          test -z "$ac_c_werror_flag" ||
33604          test ! -s conftest.err
33605        } && test -s conftest.$ac_objext; then
33606   gl_cv_func_linkat_follow=yes
33607 else
33608   $as_echo "$as_me: failed program was:" >&5
33609 sed 's/^/| /' conftest.$ac_ext >&5
33610
33611         gl_cv_func_linkat_follow="need runtime check"
33612 fi
33613
33614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33615        rm -rf conftest.f1 conftest.f2
33616 fi
33617 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_linkat_follow" >&5
33618 $as_echo "$gl_cv_func_linkat_follow" >&6; }
33619     { $as_echo "$as_me:$LINENO: checking whether linkat handles trailing slash correctly" >&5
33620 $as_echo_n "checking whether linkat handles trailing slash correctly... " >&6; }
33621 if test "${gl_cv_func_linkat_slash+set}" = set; then
33622   $as_echo_n "(cached) " >&6
33623 else
33624   rm -rf conftest.a conftest.b conftest.c conftest.d
33625        if test "$cross_compiling" = yes; then
33626   # Guess yes on glibc systems, no otherwise.
33627           case "$host_os" in
33628             *-gnu*) gl_cv_func_linkat_slash="guessing yes";;
33629             *)      gl_cv_func_linkat_slash="guessing no";;
33630           esac
33631
33632 else
33633   cat >conftest.$ac_ext <<_ACEOF
33634 /* confdefs.h.  */
33635 _ACEOF
33636 cat confdefs.h >>conftest.$ac_ext
33637 cat >>conftest.$ac_ext <<_ACEOF
33638 /* end confdefs.h.  */
33639 #include <unistd.h>
33640               #include <fcntl.h>
33641               #include <errno.h>
33642               #include <stdio.h>
33643
33644 int
33645 main ()
33646 {
33647 int result;
33648               int fd;
33649               /* Create a regular file.  */
33650               fd = open ("conftest.a", O_CREAT | O_EXCL | O_WRONLY, 0600);
33651               if (fd < 0)
33652                 return 1;
33653               if (write (fd, "hello", 5) < 5)
33654                 return 2;
33655               if (close (fd) < 0)
33656                 return 3;
33657               /* Test whether hard links are supported on the current
33658                  device.  */
33659               if (linkat (AT_FDCWD, "conftest.a", AT_FDCWD, "conftest.b",
33660                           AT_SYMLINK_FOLLOW) < 0)
33661                 return 0;
33662               result = 0;
33663               /* Test whether a trailing "/" is treated like "/.".  */
33664               if (linkat (AT_FDCWD, "conftest.a/", AT_FDCWD, "conftest.c",
33665                           AT_SYMLINK_FOLLOW) == 0)
33666                 result |= 4;
33667               if (linkat (AT_FDCWD, "conftest.a", AT_FDCWD, "conftest.d/",
33668                           AT_SYMLINK_FOLLOW) == 0)
33669                 result |= 8;
33670               return result;
33671
33672   ;
33673   return 0;
33674 }
33675 _ACEOF
33676 rm -f conftest$ac_exeext
33677 if { (ac_try="$ac_link"
33678 case "(($ac_try" in
33679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33680   *) ac_try_echo=$ac_try;;
33681 esac
33682 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33683 $as_echo "$ac_try_echo") >&5
33684   (eval "$ac_link") 2>&5
33685   ac_status=$?
33686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33687   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
33688   { (case "(($ac_try" in
33689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33690   *) ac_try_echo=$ac_try;;
33691 esac
33692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33693 $as_echo "$ac_try_echo") >&5
33694   (eval "$ac_try") 2>&5
33695   ac_status=$?
33696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33697   (exit $ac_status); }; }; then
33698   gl_cv_func_linkat_slash=yes
33699 else
33700   $as_echo "$as_me: program exited with status $ac_status" >&5
33701 $as_echo "$as_me: failed program was:" >&5
33702 sed 's/^/| /' conftest.$ac_ext >&5
33703
33704 ( exit $ac_status )
33705 gl_cv_func_linkat_slash=no
33706 fi
33707 rm -rf conftest.dSYM
33708 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
33709 fi
33710
33711
33712        rm -rf conftest.a conftest.b conftest.c conftest.d
33713 fi
33714 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_linkat_slash" >&5
33715 $as_echo "$gl_cv_func_linkat_slash" >&6; }
33716     case "$gl_cv_func_linkat_slash" in
33717       *yes) gl_linkat_slash_bug=0 ;;
33718       *)    gl_linkat_slash_bug=1 ;;
33719     esac
33720     if test "$gl_cv_func_linkat_follow" != yes \
33721        || test $gl_linkat_slash_bug = 1; then
33722       REPLACE_LINKAT=1
33723
33724
33725
33726
33727
33728
33729
33730
33731   gl_LIBOBJS="$gl_LIBOBJS linkat.$ac_objext"
33732
33733
33734 cat >>confdefs.h <<_ACEOF
33735 #define LINKAT_TRAILING_SLASH_BUG $gl_linkat_slash_bug
33736 _ACEOF
33737
33738     fi
33739   fi
33740
33741
33742
33743
33744   GNULIB_LINKAT=1
33745
33746
33747
33748 cat >>confdefs.h <<\_ACEOF
33749 #define GNULIB_TEST_LINKAT 1
33750 _ACEOF
33751
33752
33753
33754   # Code from module localcharset:
33755
33756
33757
33758
33759
33760
33761
33762
33763
33764
33765
33766   LOCALCHARSET_TESTS_ENVIRONMENT="CHARSETALIASDIR=\"\$(top_builddir)/$gl_source_base\""
33767
33768   # Code from module lseek:
33769
33770
33771
33772   { $as_echo "$as_me:$LINENO: checking whether lseek detects pipes" >&5
33773 $as_echo_n "checking whether lseek detects pipes... " >&6; }
33774 if test "${gl_cv_func_lseek_pipe+set}" = set; then
33775   $as_echo_n "(cached) " >&6
33776 else
33777   if test $cross_compiling = no; then
33778        cat >conftest.$ac_ext <<_ACEOF
33779 /* confdefs.h.  */
33780 _ACEOF
33781 cat confdefs.h >>conftest.$ac_ext
33782 cat >>conftest.$ac_ext <<_ACEOF
33783 /* end confdefs.h.  */
33784
33785 #include <sys/types.h> /* for off_t */
33786 #include <stdio.h> /* for SEEK_CUR */
33787 #include <unistd.h>
33788 int
33789 main ()
33790 {
33791
33792   /* Exit with success only if stdin is seekable.  */
33793   return lseek (0, (off_t)0, SEEK_CUR) < 0;
33794
33795   ;
33796   return 0;
33797 }
33798 _ACEOF
33799 rm -f conftest.$ac_objext conftest$ac_exeext
33800 if { (ac_try="$ac_link"
33801 case "(($ac_try" in
33802   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33803   *) ac_try_echo=$ac_try;;
33804 esac
33805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33806 $as_echo "$ac_try_echo") >&5
33807   (eval "$ac_link") 2>conftest.er1
33808   ac_status=$?
33809   grep -v '^ *+' conftest.er1 >conftest.err
33810   rm -f conftest.er1
33811   cat conftest.err >&5
33812   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33813   (exit $ac_status); } && {
33814          test -z "$ac_c_werror_flag" ||
33815          test ! -s conftest.err
33816        } && test -s conftest$ac_exeext && {
33817          test "$cross_compiling" = yes ||
33818          $as_test_x conftest$ac_exeext
33819        }; then
33820   if test -s conftest$ac_exeext \
33821              && ./conftest$ac_exeext < conftest.$ac_ext \
33822              && test 1 = "`echo hi \
33823                | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
33824             gl_cv_func_lseek_pipe=yes
33825           else
33826             gl_cv_func_lseek_pipe=no
33827           fi
33828 else
33829   $as_echo "$as_me: failed program was:" >&5
33830 sed 's/^/| /' conftest.$ac_ext >&5
33831
33832         gl_cv_func_lseek_pipe=no
33833 fi
33834
33835 rm -rf conftest.dSYM
33836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
33837       conftest$ac_exeext conftest.$ac_ext
33838      else
33839        cat >conftest.$ac_ext <<_ACEOF
33840 /* confdefs.h.  */
33841 _ACEOF
33842 cat confdefs.h >>conftest.$ac_ext
33843 cat >>conftest.$ac_ext <<_ACEOF
33844 /* end confdefs.h.  */
33845
33846 #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) || defined __BEOS__
33847 /* mingw and BeOS mistakenly return 0 when trying to seek on pipes.  */
33848   Choke me.
33849 #endif
33850 _ACEOF
33851 rm -f conftest.$ac_objext
33852 if { (ac_try="$ac_compile"
33853 case "(($ac_try" in
33854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33855   *) ac_try_echo=$ac_try;;
33856 esac
33857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33858 $as_echo "$ac_try_echo") >&5
33859   (eval "$ac_compile") 2>conftest.er1
33860   ac_status=$?
33861   grep -v '^ *+' conftest.er1 >conftest.err
33862   rm -f conftest.er1
33863   cat conftest.err >&5
33864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33865   (exit $ac_status); } && {
33866          test -z "$ac_c_werror_flag" ||
33867          test ! -s conftest.err
33868        } && test -s conftest.$ac_objext; then
33869   gl_cv_func_lseek_pipe=yes
33870 else
33871   $as_echo "$as_me: failed program was:" >&5
33872 sed 's/^/| /' conftest.$ac_ext >&5
33873
33874         gl_cv_func_lseek_pipe=no
33875 fi
33876
33877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33878      fi
33879 fi
33880 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_lseek_pipe" >&5
33881 $as_echo "$gl_cv_func_lseek_pipe" >&6; }
33882   if test $gl_cv_func_lseek_pipe = no; then
33883
33884
33885
33886
33887
33888
33889
33890
33891
33892   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
33893
33894
33895   REPLACE_LSEEK=1
33896
33897 cat >>confdefs.h <<\_ACEOF
33898 #define LSEEK_PIPE_BROKEN 1
33899 _ACEOF
33900
33901
33902   fi
33903
33904
33905
33906
33907   GNULIB_LSEEK=1
33908
33909
33910
33911 cat >>confdefs.h <<\_ACEOF
33912 #define GNULIB_TEST_LSEEK 1
33913 _ACEOF
33914
33915
33916
33917   # Code from module lstat:
33918
33919
33920
33921
33922
33923
33924
33925
33926   if test $ac_cv_func_lstat = yes; then
33927
33928     if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then
33929             REPLACE_LSTAT=1
33930     fi
33931     # Prerequisites of lib/lstat.c.
33932
33933   else
33934     HAVE_LSTAT=0
33935   fi
33936
33937
33938
33939
33940   GNULIB_LSTAT=1
33941
33942
33943
33944 cat >>confdefs.h <<\_ACEOF
33945 #define GNULIB_TEST_LSTAT 1
33946 _ACEOF
33947
33948
33949
33950   # Code from module malloc-gnu:
33951
33952
33953
33954 for ac_header in stdlib.h
33955 do
33956 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33958   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
33959 $as_echo_n "checking for $ac_header... " >&6; }
33960 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
33961   $as_echo_n "(cached) " >&6
33962 fi
33963 ac_res=`eval 'as_val=${'$as_ac_Header'}
33964                  $as_echo "$as_val"'`
33965                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
33966 $as_echo "$ac_res" >&6; }
33967 else
33968   # Is the header compilable?
33969 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
33970 $as_echo_n "checking $ac_header usability... " >&6; }
33971 cat >conftest.$ac_ext <<_ACEOF
33972 /* confdefs.h.  */
33973 _ACEOF
33974 cat confdefs.h >>conftest.$ac_ext
33975 cat >>conftest.$ac_ext <<_ACEOF
33976 /* end confdefs.h.  */
33977 $ac_includes_default
33978 #include <$ac_header>
33979 _ACEOF
33980 rm -f conftest.$ac_objext
33981 if { (ac_try="$ac_compile"
33982 case "(($ac_try" in
33983   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
33984   *) ac_try_echo=$ac_try;;
33985 esac
33986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
33987 $as_echo "$ac_try_echo") >&5
33988   (eval "$ac_compile") 2>conftest.er1
33989   ac_status=$?
33990   grep -v '^ *+' conftest.er1 >conftest.err
33991   rm -f conftest.er1
33992   cat conftest.err >&5
33993   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
33994   (exit $ac_status); } && {
33995          test -z "$ac_c_werror_flag" ||
33996          test ! -s conftest.err
33997        } && test -s conftest.$ac_objext; then
33998   ac_header_compiler=yes
33999 else
34000   $as_echo "$as_me: failed program was:" >&5
34001 sed 's/^/| /' conftest.$ac_ext >&5
34002
34003         ac_header_compiler=no
34004 fi
34005
34006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34007 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
34008 $as_echo "$ac_header_compiler" >&6; }
34009
34010 # Is the header present?
34011 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
34012 $as_echo_n "checking $ac_header presence... " >&6; }
34013 cat >conftest.$ac_ext <<_ACEOF
34014 /* confdefs.h.  */
34015 _ACEOF
34016 cat confdefs.h >>conftest.$ac_ext
34017 cat >>conftest.$ac_ext <<_ACEOF
34018 /* end confdefs.h.  */
34019 #include <$ac_header>
34020 _ACEOF
34021 if { (ac_try="$ac_cpp conftest.$ac_ext"
34022 case "(($ac_try" in
34023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34024   *) ac_try_echo=$ac_try;;
34025 esac
34026 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34027 $as_echo "$ac_try_echo") >&5
34028   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
34029   ac_status=$?
34030   grep -v '^ *+' conftest.er1 >conftest.err
34031   rm -f conftest.er1
34032   cat conftest.err >&5
34033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34034   (exit $ac_status); } >/dev/null && {
34035          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
34036          test ! -s conftest.err
34037        }; then
34038   ac_header_preproc=yes
34039 else
34040   $as_echo "$as_me: failed program was:" >&5
34041 sed 's/^/| /' conftest.$ac_ext >&5
34042
34043   ac_header_preproc=no
34044 fi
34045
34046 rm -f conftest.err conftest.$ac_ext
34047 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
34048 $as_echo "$ac_header_preproc" >&6; }
34049
34050 # So?  What about this header?
34051 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
34052   yes:no: )
34053     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
34054 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
34055     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
34056 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
34057     ac_header_preproc=yes
34058     ;;
34059   no:yes:* )
34060     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
34061 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
34062     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
34063 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
34064     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
34065 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
34066     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
34067 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
34068     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
34069 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
34070     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
34071 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
34072     ( cat <<\_ASBOX
34073 ## ------------------------------ ##
34074 ## Report this to bug-tar@gnu.org ##
34075 ## ------------------------------ ##
34076 _ASBOX
34077      ) | sed "s/^/$as_me: WARNING:     /" >&2
34078     ;;
34079 esac
34080 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
34081 $as_echo_n "checking for $ac_header... " >&6; }
34082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
34083   $as_echo_n "(cached) " >&6
34084 else
34085   eval "$as_ac_Header=\$ac_header_preproc"
34086 fi
34087 ac_res=`eval 'as_val=${'$as_ac_Header'}
34088                  $as_echo "$as_val"'`
34089                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
34090 $as_echo "$ac_res" >&6; }
34091
34092 fi
34093 as_val=`eval 'as_val=${'$as_ac_Header'}
34094                  $as_echo "$as_val"'`
34095    if test "x$as_val" = x""yes; then
34096   cat >>confdefs.h <<_ACEOF
34097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34098 _ACEOF
34099
34100 fi
34101
34102 done
34103
34104 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
34105 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
34106 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
34107   $as_echo_n "(cached) " >&6
34108 else
34109   if test "$cross_compiling" = yes; then
34110   ac_cv_func_malloc_0_nonnull=no
34111 else
34112   cat >conftest.$ac_ext <<_ACEOF
34113 /* confdefs.h.  */
34114 _ACEOF
34115 cat confdefs.h >>conftest.$ac_ext
34116 cat >>conftest.$ac_ext <<_ACEOF
34117 /* end confdefs.h.  */
34118 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
34119 # include <stdlib.h>
34120 #else
34121 char *malloc ();
34122 #endif
34123
34124 int
34125 main ()
34126 {
34127 return ! malloc (0);
34128   ;
34129   return 0;
34130 }
34131 _ACEOF
34132 rm -f conftest$ac_exeext
34133 if { (ac_try="$ac_link"
34134 case "(($ac_try" in
34135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34136   *) ac_try_echo=$ac_try;;
34137 esac
34138 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34139 $as_echo "$ac_try_echo") >&5
34140   (eval "$ac_link") 2>&5
34141   ac_status=$?
34142   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34143   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34144   { (case "(($ac_try" in
34145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34146   *) ac_try_echo=$ac_try;;
34147 esac
34148 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34149 $as_echo "$ac_try_echo") >&5
34150   (eval "$ac_try") 2>&5
34151   ac_status=$?
34152   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34153   (exit $ac_status); }; }; then
34154   ac_cv_func_malloc_0_nonnull=yes
34155 else
34156   $as_echo "$as_me: program exited with status $ac_status" >&5
34157 $as_echo "$as_me: failed program was:" >&5
34158 sed 's/^/| /' conftest.$ac_ext >&5
34159
34160 ( exit $ac_status )
34161 ac_cv_func_malloc_0_nonnull=no
34162 fi
34163 rm -rf conftest.dSYM
34164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34165 fi
34166
34167
34168 fi
34169 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
34170 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
34171 if test $ac_cv_func_malloc_0_nonnull = yes; then
34172
34173 cat >>confdefs.h <<\_ACEOF
34174 #define HAVE_MALLOC_GNU 1
34175 _ACEOF
34176
34177 else
34178   cat >>confdefs.h <<\_ACEOF
34179 #define HAVE_MALLOC_GNU 0
34180 _ACEOF
34181
34182
34183
34184
34185
34186
34187
34188
34189
34190
34191   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
34192
34193   REPLACE_MALLOC=1
34194
34195
34196 fi
34197
34198
34199
34200
34201
34202 cat >>confdefs.h <<_ACEOF
34203 #define GNULIB_MALLOC_GNU 1
34204 _ACEOF
34205
34206
34207   # Code from module malloc-posix:
34208
34209
34210
34211   if test $gl_cv_func_malloc_posix = yes; then
34212
34213 cat >>confdefs.h <<\_ACEOF
34214 #define HAVE_MALLOC_POSIX 1
34215 _ACEOF
34216
34217   else
34218
34219
34220
34221
34222
34223
34224
34225
34226
34227   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
34228
34229   REPLACE_MALLOC=1
34230
34231   fi
34232
34233
34234
34235
34236   GNULIB_MALLOC_POSIX=1
34237
34238
34239
34240 cat >>confdefs.h <<\_ACEOF
34241 #define GNULIB_TEST_MALLOC_POSIX 1
34242 _ACEOF
34243
34244
34245
34246   # Code from module malloca:
34247
34248
34249
34250
34251   # Code from module mbchar:
34252
34253
34254
34255
34256   # Code from module mbrtowc:
34257
34258
34259
34260
34261
34262
34263
34264
34265
34266
34267
34268
34269
34270
34271
34272
34273
34274
34275
34276
34277   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
34278
34279
34280
34281      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
34282 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
34283 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
34284   $as_echo_n "(cached) " >&6
34285 else
34286
34287                   case "$host_os" in
34288                      # Guess no on AIX and OSF/1.
34289         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
34290                      # Guess yes otherwise.
34291         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
34292       esac
34293       if test $LOCALE_JA != none; then
34294         if test "$cross_compiling" = yes; then
34295   :
34296 else
34297   cat >conftest.$ac_ext <<_ACEOF
34298 /* confdefs.h.  */
34299 _ACEOF
34300 cat confdefs.h >>conftest.$ac_ext
34301 cat >>conftest.$ac_ext <<_ACEOF
34302 /* end confdefs.h.  */
34303
34304 #include <locale.h>
34305 #include <string.h>
34306 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34307    <wchar.h>.
34308    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34309    included before <wchar.h>.  */
34310 #include <stddef.h>
34311 #include <stdio.h>
34312 #include <time.h>
34313 #include <wchar.h>
34314 int main ()
34315 {
34316   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
34317     {
34318       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
34319       mbstate_t state;
34320       wchar_t wc;
34321
34322       memset (&state, '\0', sizeof (mbstate_t));
34323       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
34324         if (mbsinit (&state))
34325           return 1;
34326     }
34327   return 0;
34328 }
34329 _ACEOF
34330 rm -f conftest$ac_exeext
34331 if { (ac_try="$ac_link"
34332 case "(($ac_try" in
34333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34334   *) ac_try_echo=$ac_try;;
34335 esac
34336 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34337 $as_echo "$ac_try_echo") >&5
34338   (eval "$ac_link") 2>&5
34339   ac_status=$?
34340   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34341   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
34349   ac_status=$?
34350   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34351   (exit $ac_status); }; }; then
34352   gl_cv_func_mbrtowc_incomplete_state=yes
34353 else
34354   $as_echo "$as_me: program exited with status $ac_status" >&5
34355 $as_echo "$as_me: failed program was:" >&5
34356 sed 's/^/| /' conftest.$ac_ext >&5
34357
34358 ( exit $ac_status )
34359 gl_cv_func_mbrtowc_incomplete_state=no
34360 fi
34361 rm -rf conftest.dSYM
34362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34363 fi
34364
34365
34366       fi
34367
34368 fi
34369 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
34370 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
34371
34372
34373
34374
34375      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
34376 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
34377 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
34378   $as_echo_n "(cached) " >&6
34379 else
34380
34381                   case "$host_os" in
34382                     # Guess no on Solaris 8.
34383         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
34384                     # Guess yes otherwise.
34385         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
34386       esac
34387       if test $LOCALE_ZH_CN != none; then
34388         if test "$cross_compiling" = yes; then
34389   :
34390 else
34391   cat >conftest.$ac_ext <<_ACEOF
34392 /* confdefs.h.  */
34393 _ACEOF
34394 cat confdefs.h >>conftest.$ac_ext
34395 cat >>conftest.$ac_ext <<_ACEOF
34396 /* end confdefs.h.  */
34397
34398 #include <locale.h>
34399 #include <stdlib.h>
34400 #include <string.h>
34401 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34402    <wchar.h>.
34403    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34404    included before <wchar.h>.  */
34405 #include <stddef.h>
34406 #include <stdio.h>
34407 #include <time.h>
34408 #include <wchar.h>
34409 int main ()
34410 {
34411   /* This fails on Solaris 8:
34412      mbrtowc returns 2, and sets wc to 0x00F0.
34413      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
34414   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
34415     {
34416       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
34417       mbstate_t state;
34418       wchar_t wc;
34419
34420       memset (&state, '\0', sizeof (mbstate_t));
34421       if (mbrtowc (&wc, input + 3, 6, &state) != 4
34422           && mbtowc (&wc, input + 3, 6) == 4)
34423         return 1;
34424     }
34425   return 0;
34426 }
34427 _ACEOF
34428 rm -f conftest$ac_exeext
34429 if { (ac_try="$ac_link"
34430 case "(($ac_try" in
34431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34432   *) ac_try_echo=$ac_try;;
34433 esac
34434 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34435 $as_echo "$ac_try_echo") >&5
34436   (eval "$ac_link") 2>&5
34437   ac_status=$?
34438   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34439   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34440   { (case "(($ac_try" in
34441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34442   *) ac_try_echo=$ac_try;;
34443 esac
34444 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34445 $as_echo "$ac_try_echo") >&5
34446   (eval "$ac_try") 2>&5
34447   ac_status=$?
34448   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34449   (exit $ac_status); }; }; then
34450   gl_cv_func_mbrtowc_sanitycheck=yes
34451 else
34452   $as_echo "$as_me: program exited with status $ac_status" >&5
34453 $as_echo "$as_me: failed program was:" >&5
34454 sed 's/^/| /' conftest.$ac_ext >&5
34455
34456 ( exit $ac_status )
34457 gl_cv_func_mbrtowc_sanitycheck=no
34458 fi
34459 rm -rf conftest.dSYM
34460 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34461 fi
34462
34463
34464       fi
34465
34466 fi
34467 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
34468 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
34469
34470     REPLACE_MBSTATE_T=0
34471     case "$gl_cv_func_mbrtowc_incomplete_state" in
34472       *yes) ;;
34473       *) REPLACE_MBSTATE_T=1 ;;
34474     esac
34475     case "$gl_cv_func_mbrtowc_sanitycheck" in
34476       *yes) ;;
34477       *) REPLACE_MBSTATE_T=1 ;;
34478     esac
34479   else
34480     REPLACE_MBSTATE_T=1
34481   fi
34482   if test $REPLACE_MBSTATE_T = 1; then
34483
34484     :
34485
34486   fi
34487
34488
34489
34490
34491
34492
34493
34494
34495   if test $ac_cv_func_mbrtowc = no; then
34496     HAVE_MBRTOWC=0
34497   else
34498     if test $REPLACE_MBSTATE_T = 1; then
34499       REPLACE_MBRTOWC=1
34500     else
34501
34502
34503
34504      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL pwc argument" >&5
34505 $as_echo_n "checking whether mbrtowc handles a NULL pwc argument... " >&6; }
34506 if test "${gl_cv_func_mbrtowc_null_arg1+set}" = set; then
34507   $as_echo_n "(cached) " >&6
34508 else
34509
34510                   case "$host_os" in
34511                   # Guess no on Solaris.
34512         solaris*) gl_cv_func_mbrtowc_null_arg1="guessing no" ;;
34513                   # Guess yes otherwise.
34514         *)        gl_cv_func_mbrtowc_null_arg1="guessing yes" ;;
34515       esac
34516       if test $LOCALE_FR_UTF8 != none; then
34517         if test "$cross_compiling" = yes; then
34518   :
34519 else
34520   cat >conftest.$ac_ext <<_ACEOF
34521 /* confdefs.h.  */
34522 _ACEOF
34523 cat confdefs.h >>conftest.$ac_ext
34524 cat >>conftest.$ac_ext <<_ACEOF
34525 /* end confdefs.h.  */
34526
34527 #include <locale.h>
34528 #include <stdlib.h>
34529 #include <string.h>
34530 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34531    <wchar.h>.
34532    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34533    included before <wchar.h>.  */
34534 #include <stddef.h>
34535 #include <stdio.h>
34536 #include <time.h>
34537 #include <wchar.h>
34538 int main ()
34539 {
34540   int result = 0;
34541
34542   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
34543     {
34544       char input[] = "\303\237er";
34545       mbstate_t state;
34546       wchar_t wc;
34547       size_t ret;
34548
34549       memset (&state, '\0', sizeof (mbstate_t));
34550       wc = (wchar_t) 0xBADFACE;
34551       ret = mbrtowc (&wc, input, 5, &state);
34552       if (ret != 2)
34553         result |= 1;
34554       if (!mbsinit (&state))
34555         result |= 2;
34556
34557       memset (&state, '\0', sizeof (mbstate_t));
34558       ret = mbrtowc (NULL, input, 5, &state);
34559       if (ret != 2) /* Solaris 7 fails here: ret is -1.  */
34560         result |= 4;
34561       if (!mbsinit (&state))
34562         result |= 8;
34563     }
34564   return result;
34565 }
34566 _ACEOF
34567 rm -f conftest$ac_exeext
34568 if { (ac_try="$ac_link"
34569 case "(($ac_try" in
34570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34571   *) ac_try_echo=$ac_try;;
34572 esac
34573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34574 $as_echo "$ac_try_echo") >&5
34575   (eval "$ac_link") 2>&5
34576   ac_status=$?
34577   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34578   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34579   { (case "(($ac_try" in
34580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34581   *) ac_try_echo=$ac_try;;
34582 esac
34583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34584 $as_echo "$ac_try_echo") >&5
34585   (eval "$ac_try") 2>&5
34586   ac_status=$?
34587   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34588   (exit $ac_status); }; }; then
34589   gl_cv_func_mbrtowc_null_arg1=yes
34590 else
34591   $as_echo "$as_me: program exited with status $ac_status" >&5
34592 $as_echo "$as_me: failed program was:" >&5
34593 sed 's/^/| /' conftest.$ac_ext >&5
34594
34595 ( exit $ac_status )
34596 gl_cv_func_mbrtowc_null_arg1=no
34597 fi
34598 rm -rf conftest.dSYM
34599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34600 fi
34601
34602
34603       fi
34604
34605 fi
34606 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg1" >&5
34607 $as_echo "$gl_cv_func_mbrtowc_null_arg1" >&6; }
34608
34609
34610
34611
34612      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles a NULL string argument" >&5
34613 $as_echo_n "checking whether mbrtowc handles a NULL string argument... " >&6; }
34614 if test "${gl_cv_func_mbrtowc_null_arg2+set}" = set; then
34615   $as_echo_n "(cached) " >&6
34616 else
34617
34618                   case "$host_os" in
34619               # Guess no on OSF/1.
34620         osf*) gl_cv_func_mbrtowc_null_arg2="guessing no" ;;
34621               # Guess yes otherwise.
34622         *)    gl_cv_func_mbrtowc_null_arg2="guessing yes" ;;
34623       esac
34624       if test $LOCALE_FR_UTF8 != none; then
34625         if test "$cross_compiling" = yes; then
34626   :
34627 else
34628   cat >conftest.$ac_ext <<_ACEOF
34629 /* confdefs.h.  */
34630 _ACEOF
34631 cat confdefs.h >>conftest.$ac_ext
34632 cat >>conftest.$ac_ext <<_ACEOF
34633 /* end confdefs.h.  */
34634
34635 #include <locale.h>
34636 #include <string.h>
34637 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34638    <wchar.h>.
34639    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34640    included before <wchar.h>.  */
34641 #include <stddef.h>
34642 #include <stdio.h>
34643 #include <time.h>
34644 #include <wchar.h>
34645 int main ()
34646 {
34647   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
34648     {
34649       mbstate_t state;
34650       wchar_t wc;
34651       int ret;
34652
34653       memset (&state, '\0', sizeof (mbstate_t));
34654       wc = (wchar_t) 0xBADFACE;
34655       mbrtowc (&wc, NULL, 5, &state);
34656       /* Check that wc was not modified.  */
34657       if (wc != (wchar_t) 0xBADFACE)
34658         return 1;
34659     }
34660   return 0;
34661 }
34662 _ACEOF
34663 rm -f conftest$ac_exeext
34664 if { (ac_try="$ac_link"
34665 case "(($ac_try" in
34666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34667   *) ac_try_echo=$ac_try;;
34668 esac
34669 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34670 $as_echo "$ac_try_echo") >&5
34671   (eval "$ac_link") 2>&5
34672   ac_status=$?
34673   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34674   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34675   { (case "(($ac_try" in
34676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34677   *) ac_try_echo=$ac_try;;
34678 esac
34679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34680 $as_echo "$ac_try_echo") >&5
34681   (eval "$ac_try") 2>&5
34682   ac_status=$?
34683   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34684   (exit $ac_status); }; }; then
34685   gl_cv_func_mbrtowc_null_arg2=yes
34686 else
34687   $as_echo "$as_me: program exited with status $ac_status" >&5
34688 $as_echo "$as_me: failed program was:" >&5
34689 sed 's/^/| /' conftest.$ac_ext >&5
34690
34691 ( exit $ac_status )
34692 gl_cv_func_mbrtowc_null_arg2=no
34693 fi
34694 rm -rf conftest.dSYM
34695 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34696 fi
34697
34698
34699       fi
34700
34701 fi
34702 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_null_arg2" >&5
34703 $as_echo "$gl_cv_func_mbrtowc_null_arg2" >&6; }
34704
34705
34706
34707
34708
34709
34710   { $as_echo "$as_me:$LINENO: checking whether mbrtowc has a correct return value" >&5
34711 $as_echo_n "checking whether mbrtowc has a correct return value... " >&6; }
34712 if test "${gl_cv_func_mbrtowc_retval+set}" = set; then
34713   $as_echo_n "(cached) " >&6
34714 else
34715
34716                   case "$host_os" in
34717                                    # Guess no on HP-UX, Solaris, native Windows.
34718         hpux* | solaris* | mingw*) gl_cv_func_mbrtowc_retval="guessing no" ;;
34719                                    # Guess yes otherwise.
34720         *)                         gl_cv_func_mbrtowc_retval="guessing yes" ;;
34721       esac
34722       if test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none \
34723          || { case "$host_os" in mingw*) true;; *) false;; esac; }; then
34724         if test "$cross_compiling" = yes; then
34725   :
34726 else
34727   cat >conftest.$ac_ext <<_ACEOF
34728 /* confdefs.h.  */
34729 _ACEOF
34730 cat confdefs.h >>conftest.$ac_ext
34731 cat >>conftest.$ac_ext <<_ACEOF
34732 /* end confdefs.h.  */
34733
34734 #include <locale.h>
34735 #include <string.h>
34736 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34737    <wchar.h>.
34738    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34739    included before <wchar.h>.  */
34740 #include <stddef.h>
34741 #include <stdio.h>
34742 #include <time.h>
34743 #include <wchar.h>
34744 int main ()
34745 {
34746   int result = 0;
34747   int found_some_locale = 0;
34748   /* This fails on Solaris.  */
34749   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
34750     {
34751       char input[] = "B\303\274\303\237er"; /* "Büßer" */
34752       mbstate_t state;
34753       wchar_t wc;
34754
34755       memset (&state, '\0', sizeof (mbstate_t));
34756       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
34757         {
34758           input[1] = '\0';
34759           if (mbrtowc (&wc, input + 2, 5, &state) != 1)
34760             result |= 1;
34761         }
34762       found_some_locale = 1;
34763     }
34764   /* This fails on HP-UX 11.11.  */
34765   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
34766     {
34767       char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
34768       mbstate_t state;
34769       wchar_t wc;
34770
34771       memset (&state, '\0', sizeof (mbstate_t));
34772       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
34773         {
34774           input[1] = '\0';
34775           if (mbrtowc (&wc, input + 2, 5, &state) != 2)
34776             result |= 2;
34777         }
34778       found_some_locale = 1;
34779     }
34780   /* This fails on native Windows.  */
34781   if (setlocale (LC_ALL, "Japanese_Japan.932") != NULL)
34782     {
34783       char input[] = "<\223\372\226\173\214\352>"; /* "<日本語>" */
34784       mbstate_t state;
34785       wchar_t wc;
34786
34787       memset (&state, '\0', sizeof (mbstate_t));
34788       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
34789         {
34790           input[3] = '\0';
34791           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
34792             result |= 4;
34793         }
34794       found_some_locale = 1;
34795     }
34796   if (setlocale (LC_ALL, "Chinese_Taiwan.950") != NULL)
34797     {
34798       char input[] = "<\244\351\245\273\273\171>"; /* "<日本語>" */
34799       mbstate_t state;
34800       wchar_t wc;
34801
34802       memset (&state, '\0', sizeof (mbstate_t));
34803       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
34804         {
34805           input[3] = '\0';
34806           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
34807             result |= 8;
34808         }
34809       found_some_locale = 1;
34810     }
34811   if (setlocale (LC_ALL, "Chinese_China.936") != NULL)
34812     {
34813       char input[] = "<\310\325\261\276\325\132>"; /* "<日本語>" */
34814       mbstate_t state;
34815       wchar_t wc;
34816
34817       memset (&state, '\0', sizeof (mbstate_t));
34818       if (mbrtowc (&wc, input + 3, 1, &state) == (size_t)(-2))
34819         {
34820           input[3] = '\0';
34821           if (mbrtowc (&wc, input + 4, 4, &state) != 1)
34822             result |= 16;
34823         }
34824       found_some_locale = 1;
34825     }
34826   return (found_some_locale ? result : 77);
34827 }
34828 _ACEOF
34829 rm -f conftest$ac_exeext
34830 if { (ac_try="$ac_link"
34831 case "(($ac_try" in
34832   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34833   *) ac_try_echo=$ac_try;;
34834 esac
34835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34836 $as_echo "$ac_try_echo") >&5
34837   (eval "$ac_link") 2>&5
34838   ac_status=$?
34839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34840   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34841   { (case "(($ac_try" in
34842   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34843   *) ac_try_echo=$ac_try;;
34844 esac
34845 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34846 $as_echo "$ac_try_echo") >&5
34847   (eval "$ac_try") 2>&5
34848   ac_status=$?
34849   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34850   (exit $ac_status); }; }; then
34851   gl_cv_func_mbrtowc_retval=yes
34852 else
34853   $as_echo "$as_me: program exited with status $ac_status" >&5
34854 $as_echo "$as_me: failed program was:" >&5
34855 sed 's/^/| /' conftest.$ac_ext >&5
34856
34857 ( exit $ac_status )
34858 if test $? != 77; then
34859              gl_cv_func_mbrtowc_retval=no
34860            fi
34861
34862 fi
34863 rm -rf conftest.dSYM
34864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34865 fi
34866
34867
34868       fi
34869
34870 fi
34871 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_retval" >&5
34872 $as_echo "$gl_cv_func_mbrtowc_retval" >&6; }
34873
34874
34875
34876
34877      { $as_echo "$as_me:$LINENO: checking whether mbrtowc returns 0 when parsing a NUL character" >&5
34878 $as_echo_n "checking whether mbrtowc returns 0 when parsing a NUL character... " >&6; }
34879 if test "${gl_cv_func_mbrtowc_nul_retval+set}" = set; then
34880   $as_echo_n "(cached) " >&6
34881 else
34882
34883                   case "$host_os" in
34884                        # Guess no on Solaris 8 and 9.
34885         solaris2.[89]) gl_cv_func_mbrtowc_nul_retval="guessing no" ;;
34886                        # Guess yes otherwise.
34887         *)             gl_cv_func_mbrtowc_nul_retval="guessing yes" ;;
34888       esac
34889       if test $LOCALE_ZH_CN != none; then
34890         if test "$cross_compiling" = yes; then
34891   :
34892 else
34893   cat >conftest.$ac_ext <<_ACEOF
34894 /* confdefs.h.  */
34895 _ACEOF
34896 cat confdefs.h >>conftest.$ac_ext
34897 cat >>conftest.$ac_ext <<_ACEOF
34898 /* end confdefs.h.  */
34899
34900 #include <locale.h>
34901 #include <string.h>
34902 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
34903    <wchar.h>.
34904    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
34905    included before <wchar.h>.  */
34906 #include <stddef.h>
34907 #include <stdio.h>
34908 #include <time.h>
34909 #include <wchar.h>
34910 int main ()
34911 {
34912   /* This fails on Solaris 8 and 9.  */
34913   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
34914     {
34915       mbstate_t state;
34916       wchar_t wc;
34917
34918       memset (&state, '\0', sizeof (mbstate_t));
34919       if (mbrtowc (&wc, "", 1, &state) != 0)
34920         return 1;
34921     }
34922   return 0;
34923 }
34924 _ACEOF
34925 rm -f conftest$ac_exeext
34926 if { (ac_try="$ac_link"
34927 case "(($ac_try" in
34928   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34929   *) ac_try_echo=$ac_try;;
34930 esac
34931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34932 $as_echo "$ac_try_echo") >&5
34933   (eval "$ac_link") 2>&5
34934   ac_status=$?
34935   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34936   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
34937   { (case "(($ac_try" in
34938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
34939   *) ac_try_echo=$ac_try;;
34940 esac
34941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
34942 $as_echo "$ac_try_echo") >&5
34943   (eval "$ac_try") 2>&5
34944   ac_status=$?
34945   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
34946   (exit $ac_status); }; }; then
34947   gl_cv_func_mbrtowc_nul_retval=yes
34948 else
34949   $as_echo "$as_me: program exited with status $ac_status" >&5
34950 $as_echo "$as_me: failed program was:" >&5
34951 sed 's/^/| /' conftest.$ac_ext >&5
34952
34953 ( exit $ac_status )
34954 gl_cv_func_mbrtowc_nul_retval=no
34955 fi
34956 rm -rf conftest.dSYM
34957 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
34958 fi
34959
34960
34961       fi
34962
34963 fi
34964 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_nul_retval" >&5
34965 $as_echo "$gl_cv_func_mbrtowc_nul_retval" >&6; }
34966
34967       case "$gl_cv_func_mbrtowc_null_arg1" in
34968         *yes) ;;
34969         *)
34970 cat >>confdefs.h <<\_ACEOF
34971 #define MBRTOWC_NULL_ARG1_BUG 1
34972 _ACEOF
34973
34974            REPLACE_MBRTOWC=1
34975            ;;
34976       esac
34977       case "$gl_cv_func_mbrtowc_null_arg2" in
34978         *yes) ;;
34979         *)
34980 cat >>confdefs.h <<\_ACEOF
34981 #define MBRTOWC_NULL_ARG2_BUG 1
34982 _ACEOF
34983
34984            REPLACE_MBRTOWC=1
34985            ;;
34986       esac
34987       case "$gl_cv_func_mbrtowc_retval" in
34988         *yes) ;;
34989         *)
34990 cat >>confdefs.h <<\_ACEOF
34991 #define MBRTOWC_RETVAL_BUG 1
34992 _ACEOF
34993
34994            REPLACE_MBRTOWC=1
34995            ;;
34996       esac
34997       case "$gl_cv_func_mbrtowc_nul_retval" in
34998         *yes) ;;
34999         *)
35000 cat >>confdefs.h <<\_ACEOF
35001 #define MBRTOWC_NUL_RETVAL_BUG 1
35002 _ACEOF
35003
35004            REPLACE_MBRTOWC=1
35005            ;;
35006       esac
35007     fi
35008   fi
35009   if test $HAVE_MBRTOWC = 0 || test $REPLACE_MBRTOWC = 1; then
35010
35011     :
35012
35013
35014
35015
35016
35017
35018
35019
35020
35021   gl_LIBOBJS="$gl_LIBOBJS mbrtowc.$ac_objext"
35022
35023
35024   :
35025
35026   fi
35027
35028
35029
35030
35031   GNULIB_MBRTOWC=1
35032
35033
35034
35035 cat >>confdefs.h <<\_ACEOF
35036 #define GNULIB_TEST_MBRTOWC 1
35037 _ACEOF
35038
35039
35040
35041   # Code from module mbscasecmp:
35042
35043
35044
35045   GNULIB_MBSCASECMP=1
35046
35047
35048
35049 cat >>confdefs.h <<\_ACEOF
35050 #define GNULIB_TEST_MBSCASECMP 1
35051 _ACEOF
35052
35053
35054
35055   # Code from module mbsinit:
35056
35057
35058
35059
35060
35061
35062
35063
35064
35065
35066
35067
35068
35069
35070
35071
35072
35073
35074
35075
35076
35077   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
35078
35079
35080
35081      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
35082 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
35083 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
35084   $as_echo_n "(cached) " >&6
35085 else
35086
35087                   case "$host_os" in
35088                      # Guess no on AIX and OSF/1.
35089         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
35090                      # Guess yes otherwise.
35091         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
35092       esac
35093       if test $LOCALE_JA != none; then
35094         if test "$cross_compiling" = yes; then
35095   :
35096 else
35097   cat >conftest.$ac_ext <<_ACEOF
35098 /* confdefs.h.  */
35099 _ACEOF
35100 cat confdefs.h >>conftest.$ac_ext
35101 cat >>conftest.$ac_ext <<_ACEOF
35102 /* end confdefs.h.  */
35103
35104 #include <locale.h>
35105 #include <string.h>
35106 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35107    <wchar.h>.
35108    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35109    included before <wchar.h>.  */
35110 #include <stddef.h>
35111 #include <stdio.h>
35112 #include <time.h>
35113 #include <wchar.h>
35114 int main ()
35115 {
35116   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
35117     {
35118       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
35119       mbstate_t state;
35120       wchar_t wc;
35121
35122       memset (&state, '\0', sizeof (mbstate_t));
35123       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
35124         if (mbsinit (&state))
35125           return 1;
35126     }
35127   return 0;
35128 }
35129 _ACEOF
35130 rm -f conftest$ac_exeext
35131 if { (ac_try="$ac_link"
35132 case "(($ac_try" in
35133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35134   *) ac_try_echo=$ac_try;;
35135 esac
35136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35137 $as_echo "$ac_try_echo") >&5
35138   (eval "$ac_link") 2>&5
35139   ac_status=$?
35140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35141   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35142   { (case "(($ac_try" in
35143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35144   *) ac_try_echo=$ac_try;;
35145 esac
35146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35147 $as_echo "$ac_try_echo") >&5
35148   (eval "$ac_try") 2>&5
35149   ac_status=$?
35150   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35151   (exit $ac_status); }; }; then
35152   gl_cv_func_mbrtowc_incomplete_state=yes
35153 else
35154   $as_echo "$as_me: program exited with status $ac_status" >&5
35155 $as_echo "$as_me: failed program was:" >&5
35156 sed 's/^/| /' conftest.$ac_ext >&5
35157
35158 ( exit $ac_status )
35159 gl_cv_func_mbrtowc_incomplete_state=no
35160 fi
35161 rm -rf conftest.dSYM
35162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35163 fi
35164
35165
35166       fi
35167
35168 fi
35169 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
35170 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
35171
35172
35173
35174
35175      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
35176 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
35177 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
35178   $as_echo_n "(cached) " >&6
35179 else
35180
35181                   case "$host_os" in
35182                     # Guess no on Solaris 8.
35183         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
35184                     # Guess yes otherwise.
35185         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
35186       esac
35187       if test $LOCALE_ZH_CN != none; then
35188         if test "$cross_compiling" = yes; then
35189   :
35190 else
35191   cat >conftest.$ac_ext <<_ACEOF
35192 /* confdefs.h.  */
35193 _ACEOF
35194 cat confdefs.h >>conftest.$ac_ext
35195 cat >>conftest.$ac_ext <<_ACEOF
35196 /* end confdefs.h.  */
35197
35198 #include <locale.h>
35199 #include <stdlib.h>
35200 #include <string.h>
35201 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35202    <wchar.h>.
35203    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35204    included before <wchar.h>.  */
35205 #include <stddef.h>
35206 #include <stdio.h>
35207 #include <time.h>
35208 #include <wchar.h>
35209 int main ()
35210 {
35211   /* This fails on Solaris 8:
35212      mbrtowc returns 2, and sets wc to 0x00F0.
35213      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
35214   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
35215     {
35216       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
35217       mbstate_t state;
35218       wchar_t wc;
35219
35220       memset (&state, '\0', sizeof (mbstate_t));
35221       if (mbrtowc (&wc, input + 3, 6, &state) != 4
35222           && mbtowc (&wc, input + 3, 6) == 4)
35223         return 1;
35224     }
35225   return 0;
35226 }
35227 _ACEOF
35228 rm -f conftest$ac_exeext
35229 if { (ac_try="$ac_link"
35230 case "(($ac_try" in
35231   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35232   *) ac_try_echo=$ac_try;;
35233 esac
35234 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35235 $as_echo "$ac_try_echo") >&5
35236   (eval "$ac_link") 2>&5
35237   ac_status=$?
35238   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35239   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35240   { (case "(($ac_try" in
35241   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35242   *) ac_try_echo=$ac_try;;
35243 esac
35244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35245 $as_echo "$ac_try_echo") >&5
35246   (eval "$ac_try") 2>&5
35247   ac_status=$?
35248   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35249   (exit $ac_status); }; }; then
35250   gl_cv_func_mbrtowc_sanitycheck=yes
35251 else
35252   $as_echo "$as_me: program exited with status $ac_status" >&5
35253 $as_echo "$as_me: failed program was:" >&5
35254 sed 's/^/| /' conftest.$ac_ext >&5
35255
35256 ( exit $ac_status )
35257 gl_cv_func_mbrtowc_sanitycheck=no
35258 fi
35259 rm -rf conftest.dSYM
35260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35261 fi
35262
35263
35264       fi
35265
35266 fi
35267 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
35268 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
35269
35270     REPLACE_MBSTATE_T=0
35271     case "$gl_cv_func_mbrtowc_incomplete_state" in
35272       *yes) ;;
35273       *) REPLACE_MBSTATE_T=1 ;;
35274     esac
35275     case "$gl_cv_func_mbrtowc_sanitycheck" in
35276       *yes) ;;
35277       *) REPLACE_MBSTATE_T=1 ;;
35278     esac
35279   else
35280     REPLACE_MBSTATE_T=1
35281   fi
35282   if test $REPLACE_MBSTATE_T = 1; then
35283
35284     :
35285
35286   fi
35287
35288
35289
35290
35291
35292
35293
35294
35295   if test $ac_cv_func_mbsinit = no; then
35296     HAVE_MBSINIT=0
35297   else
35298     if test $REPLACE_MBSTATE_T = 1; then
35299       REPLACE_MBSINIT=1
35300     else
35301                         case "$host_os" in
35302         mingw*) REPLACE_MBSINIT=1 ;;
35303       esac
35304     fi
35305   fi
35306   if test $HAVE_MBSINIT = 0 || test $REPLACE_MBSINIT = 1; then
35307
35308     :
35309
35310
35311
35312
35313
35314
35315
35316
35317
35318   gl_LIBOBJS="$gl_LIBOBJS mbsinit.$ac_objext"
35319
35320
35321   :
35322
35323   fi
35324
35325
35326
35327
35328   GNULIB_MBSINIT=1
35329
35330
35331
35332 cat >>confdefs.h <<\_ACEOF
35333 #define GNULIB_TEST_MBSINIT 1
35334 _ACEOF
35335
35336
35337
35338   # Code from module mbsrtowcs:
35339
35340
35341
35342
35343
35344
35345
35346
35347
35348
35349
35350
35351
35352
35353
35354
35355
35356
35357
35358
35359   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
35360
35361
35362
35363      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
35364 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
35365 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
35366   $as_echo_n "(cached) " >&6
35367 else
35368
35369                   case "$host_os" in
35370                      # Guess no on AIX and OSF/1.
35371         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
35372                      # Guess yes otherwise.
35373         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
35374       esac
35375       if test $LOCALE_JA != none; then
35376         if test "$cross_compiling" = yes; then
35377   :
35378 else
35379   cat >conftest.$ac_ext <<_ACEOF
35380 /* confdefs.h.  */
35381 _ACEOF
35382 cat confdefs.h >>conftest.$ac_ext
35383 cat >>conftest.$ac_ext <<_ACEOF
35384 /* end confdefs.h.  */
35385
35386 #include <locale.h>
35387 #include <string.h>
35388 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35389    <wchar.h>.
35390    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35391    included before <wchar.h>.  */
35392 #include <stddef.h>
35393 #include <stdio.h>
35394 #include <time.h>
35395 #include <wchar.h>
35396 int main ()
35397 {
35398   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
35399     {
35400       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
35401       mbstate_t state;
35402       wchar_t wc;
35403
35404       memset (&state, '\0', sizeof (mbstate_t));
35405       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
35406         if (mbsinit (&state))
35407           return 1;
35408     }
35409   return 0;
35410 }
35411 _ACEOF
35412 rm -f conftest$ac_exeext
35413 if { (ac_try="$ac_link"
35414 case "(($ac_try" in
35415   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35416   *) ac_try_echo=$ac_try;;
35417 esac
35418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35419 $as_echo "$ac_try_echo") >&5
35420   (eval "$ac_link") 2>&5
35421   ac_status=$?
35422   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35423   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35424   { (case "(($ac_try" in
35425   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35426   *) ac_try_echo=$ac_try;;
35427 esac
35428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35429 $as_echo "$ac_try_echo") >&5
35430   (eval "$ac_try") 2>&5
35431   ac_status=$?
35432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35433   (exit $ac_status); }; }; then
35434   gl_cv_func_mbrtowc_incomplete_state=yes
35435 else
35436   $as_echo "$as_me: program exited with status $ac_status" >&5
35437 $as_echo "$as_me: failed program was:" >&5
35438 sed 's/^/| /' conftest.$ac_ext >&5
35439
35440 ( exit $ac_status )
35441 gl_cv_func_mbrtowc_incomplete_state=no
35442 fi
35443 rm -rf conftest.dSYM
35444 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35445 fi
35446
35447
35448       fi
35449
35450 fi
35451 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
35452 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
35453
35454
35455
35456
35457      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
35458 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
35459 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
35460   $as_echo_n "(cached) " >&6
35461 else
35462
35463                   case "$host_os" in
35464                     # Guess no on Solaris 8.
35465         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
35466                     # Guess yes otherwise.
35467         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
35468       esac
35469       if test $LOCALE_ZH_CN != none; then
35470         if test "$cross_compiling" = yes; then
35471   :
35472 else
35473   cat >conftest.$ac_ext <<_ACEOF
35474 /* confdefs.h.  */
35475 _ACEOF
35476 cat confdefs.h >>conftest.$ac_ext
35477 cat >>conftest.$ac_ext <<_ACEOF
35478 /* end confdefs.h.  */
35479
35480 #include <locale.h>
35481 #include <stdlib.h>
35482 #include <string.h>
35483 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35484    <wchar.h>.
35485    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35486    included before <wchar.h>.  */
35487 #include <stddef.h>
35488 #include <stdio.h>
35489 #include <time.h>
35490 #include <wchar.h>
35491 int main ()
35492 {
35493   /* This fails on Solaris 8:
35494      mbrtowc returns 2, and sets wc to 0x00F0.
35495      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
35496   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
35497     {
35498       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
35499       mbstate_t state;
35500       wchar_t wc;
35501
35502       memset (&state, '\0', sizeof (mbstate_t));
35503       if (mbrtowc (&wc, input + 3, 6, &state) != 4
35504           && mbtowc (&wc, input + 3, 6) == 4)
35505         return 1;
35506     }
35507   return 0;
35508 }
35509 _ACEOF
35510 rm -f conftest$ac_exeext
35511 if { (ac_try="$ac_link"
35512 case "(($ac_try" in
35513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35514   *) ac_try_echo=$ac_try;;
35515 esac
35516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35517 $as_echo "$ac_try_echo") >&5
35518   (eval "$ac_link") 2>&5
35519   ac_status=$?
35520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35521   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35522   { (case "(($ac_try" in
35523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35524   *) ac_try_echo=$ac_try;;
35525 esac
35526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35527 $as_echo "$ac_try_echo") >&5
35528   (eval "$ac_try") 2>&5
35529   ac_status=$?
35530   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35531   (exit $ac_status); }; }; then
35532   gl_cv_func_mbrtowc_sanitycheck=yes
35533 else
35534   $as_echo "$as_me: program exited with status $ac_status" >&5
35535 $as_echo "$as_me: failed program was:" >&5
35536 sed 's/^/| /' conftest.$ac_ext >&5
35537
35538 ( exit $ac_status )
35539 gl_cv_func_mbrtowc_sanitycheck=no
35540 fi
35541 rm -rf conftest.dSYM
35542 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35543 fi
35544
35545
35546       fi
35547
35548 fi
35549 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
35550 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
35551
35552     REPLACE_MBSTATE_T=0
35553     case "$gl_cv_func_mbrtowc_incomplete_state" in
35554       *yes) ;;
35555       *) REPLACE_MBSTATE_T=1 ;;
35556     esac
35557     case "$gl_cv_func_mbrtowc_sanitycheck" in
35558       *yes) ;;
35559       *) REPLACE_MBSTATE_T=1 ;;
35560     esac
35561   else
35562     REPLACE_MBSTATE_T=1
35563   fi
35564   if test $REPLACE_MBSTATE_T = 1; then
35565
35566     :
35567
35568   fi
35569
35570
35571
35572
35573
35574
35575
35576
35577   if test $ac_cv_func_mbsrtowcs = no; then
35578     HAVE_MBSRTOWCS=0
35579   else
35580     if test $REPLACE_MBSTATE_T = 1; then
35581       REPLACE_MBSRTOWCS=1
35582     else
35583
35584
35585
35586
35587
35588
35589      { $as_echo "$as_me:$LINENO: checking whether mbsrtowcs works" >&5
35590 $as_echo_n "checking whether mbsrtowcs works... " >&6; }
35591 if test "${gl_cv_func_mbsrtowcs_works+set}" = set; then
35592   $as_echo_n "(cached) " >&6
35593 else
35594
35595                   case "$host_os" in
35596                                    # Guess no on HP-UX, Solaris, mingw.
35597         hpux* | solaris* | mingw*) gl_cv_func_mbsrtowcs_works="guessing no" ;;
35598                                    # Guess yes otherwise.
35599         *)                         gl_cv_func_mbsrtowcs_works="guessing yes" ;;
35600       esac
35601       if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
35602         if test "$cross_compiling" = yes; then
35603   :
35604 else
35605   cat >conftest.$ac_ext <<_ACEOF
35606 /* confdefs.h.  */
35607 _ACEOF
35608 cat confdefs.h >>conftest.$ac_ext
35609 cat >>conftest.$ac_ext <<_ACEOF
35610 /* end confdefs.h.  */
35611
35612 #include <locale.h>
35613 #include <string.h>
35614 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
35615    <wchar.h>.
35616    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
35617    included before <wchar.h>.  */
35618 #include <stddef.h>
35619 #include <stdio.h>
35620 #include <time.h>
35621 #include <wchar.h>
35622 int main ()
35623 {
35624   int result = 0;
35625   /* Test whether the function supports a NULL destination argument.
35626      This fails on native Windows.  */
35627   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
35628     {
35629       const char input[] = "\337er";
35630       const char *src = input;
35631       mbstate_t state;
35632
35633       memset (&state, '\0', sizeof (mbstate_t));
35634       if (mbsrtowcs (NULL, &src, 1, &state) != 3
35635           || src != input)
35636         result |= 1;
35637     }
35638   /* Test whether the function works when started with a conversion state
35639      in non-initial state.  This fails on HP-UX 11.11 and Solaris 10.  */
35640   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
35641     {
35642       const char input[] = "B\303\274\303\237er";
35643       mbstate_t state;
35644
35645       memset (&state, '\0', sizeof (mbstate_t));
35646       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
35647         if (!mbsinit (&state))
35648           {
35649             const char *src = input + 2;
35650             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
35651               result |= 2;
35652           }
35653     }
35654   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
35655     {
35656       const char input[] = "<\306\374\313\334\270\354>";
35657       mbstate_t state;
35658
35659       memset (&state, '\0', sizeof (mbstate_t));
35660       if (mbrtowc (NULL, input + 3, 1, &state) == (size_t)(-2))
35661         if (!mbsinit (&state))
35662           {
35663             const char *src = input + 4;
35664             if (mbsrtowcs (NULL, &src, 10, &state) != 3)
35665               result |= 4;
35666           }
35667     }
35668   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
35669     {
35670       const char input[] = "B\250\271\201\060\211\070er";
35671       mbstate_t state;
35672
35673       memset (&state, '\0', sizeof (mbstate_t));
35674       if (mbrtowc (NULL, input + 1, 1, &state) == (size_t)(-2))
35675         if (!mbsinit (&state))
35676           {
35677             const char *src = input + 2;
35678             if (mbsrtowcs (NULL, &src, 10, &state) != 4)
35679               result |= 8;
35680           }
35681     }
35682   return result;
35683 }
35684 _ACEOF
35685 rm -f conftest$ac_exeext
35686 if { (ac_try="$ac_link"
35687 case "(($ac_try" in
35688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35689   *) ac_try_echo=$ac_try;;
35690 esac
35691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35692 $as_echo "$ac_try_echo") >&5
35693   (eval "$ac_link") 2>&5
35694   ac_status=$?
35695   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35696   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
35697   { (case "(($ac_try" in
35698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35699   *) ac_try_echo=$ac_try;;
35700 esac
35701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35702 $as_echo "$ac_try_echo") >&5
35703   (eval "$ac_try") 2>&5
35704   ac_status=$?
35705   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35706   (exit $ac_status); }; }; then
35707   gl_cv_func_mbsrtowcs_works=yes
35708 else
35709   $as_echo "$as_me: program exited with status $ac_status" >&5
35710 $as_echo "$as_me: failed program was:" >&5
35711 sed 's/^/| /' conftest.$ac_ext >&5
35712
35713 ( exit $ac_status )
35714 gl_cv_func_mbsrtowcs_works=no
35715 fi
35716 rm -rf conftest.dSYM
35717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
35718 fi
35719
35720
35721       fi
35722
35723 fi
35724 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbsrtowcs_works" >&5
35725 $as_echo "$gl_cv_func_mbsrtowcs_works" >&6; }
35726
35727       case "$gl_cv_func_mbsrtowcs_works" in
35728         *yes) ;;
35729         *) REPLACE_MBSRTOWCS=1 ;;
35730       esac
35731     fi
35732   fi
35733   if test $HAVE_MBSRTOWCS = 0 || test $REPLACE_MBSRTOWCS = 1; then
35734
35735     :
35736
35737
35738
35739
35740
35741
35742
35743
35744
35745   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs.$ac_objext"
35746
35747
35748
35749
35750
35751
35752
35753
35754
35755   gl_LIBOBJS="$gl_LIBOBJS mbsrtowcs-state.$ac_objext"
35756
35757
35758   :
35759
35760   fi
35761
35762
35763
35764
35765   GNULIB_MBSRTOWCS=1
35766
35767
35768
35769 cat >>confdefs.h <<\_ACEOF
35770 #define GNULIB_TEST_MBSRTOWCS 1
35771 _ACEOF
35772
35773
35774
35775   # Code from module mbtowc:
35776
35777
35778
35779   if false; then
35780     REPLACE_MBTOWC=1
35781   fi
35782   if test $REPLACE_MBTOWC = 1; then
35783
35784
35785
35786
35787
35788
35789
35790
35791   gl_LIBOBJS="$gl_LIBOBJS mbtowc.$ac_objext"
35792
35793
35794   :
35795
35796   fi
35797
35798
35799
35800
35801   GNULIB_MBTOWC=1
35802
35803
35804
35805 cat >>confdefs.h <<\_ACEOF
35806 #define GNULIB_TEST_MBTOWC 1
35807 _ACEOF
35808
35809
35810
35811   # Code from module mbuiter:
35812
35813
35814
35815   :
35816
35817   # Code from module memchr:
35818
35819
35820
35821
35822   GNULIB_MEMCHR=1
35823
35824
35825
35826 cat >>confdefs.h <<\_ACEOF
35827 #define GNULIB_TEST_MEMCHR 1
35828 _ACEOF
35829
35830
35831
35832   # Code from module mempcpy:
35833
35834
35835
35836
35837
35838
35839
35840
35841
35842
35843
35844
35845
35846
35847
35848 for ac_func in mempcpy
35849 do
35850 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35851 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35852 $as_echo_n "checking for $ac_func... " >&6; }
35853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
35854   $as_echo_n "(cached) " >&6
35855 else
35856   cat >conftest.$ac_ext <<_ACEOF
35857 /* confdefs.h.  */
35858 _ACEOF
35859 cat confdefs.h >>conftest.$ac_ext
35860 cat >>conftest.$ac_ext <<_ACEOF
35861 /* end confdefs.h.  */
35862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
35863    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
35864 #define $ac_func innocuous_$ac_func
35865
35866 /* System header to define __stub macros and hopefully few prototypes,
35867     which can conflict with char $ac_func (); below.
35868     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
35869     <limits.h> exists even on freestanding compilers.  */
35870
35871 #ifdef __STDC__
35872 # include <limits.h>
35873 #else
35874 # include <assert.h>
35875 #endif
35876
35877 #undef $ac_func
35878
35879 /* Override any GCC internal prototype to avoid an error.
35880    Use char because int might match the return type of a GCC
35881    builtin and then its argument prototype would still apply.  */
35882 #ifdef __cplusplus
35883 extern "C"
35884 #endif
35885 char $ac_func ();
35886 /* The GNU C library defines this for functions which it implements
35887     to always fail with ENOSYS.  Some functions are actually named
35888     something starting with __ and the normal name is an alias.  */
35889 #if defined __stub_$ac_func || defined __stub___$ac_func
35890 choke me
35891 #endif
35892
35893 int
35894 main ()
35895 {
35896 return $ac_func ();
35897   ;
35898   return 0;
35899 }
35900 _ACEOF
35901 rm -f conftest.$ac_objext conftest$ac_exeext
35902 if { (ac_try="$ac_link"
35903 case "(($ac_try" in
35904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
35905   *) ac_try_echo=$ac_try;;
35906 esac
35907 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
35908 $as_echo "$ac_try_echo") >&5
35909   (eval "$ac_link") 2>conftest.er1
35910   ac_status=$?
35911   grep -v '^ *+' conftest.er1 >conftest.err
35912   rm -f conftest.er1
35913   cat conftest.err >&5
35914   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
35915   (exit $ac_status); } && {
35916          test -z "$ac_c_werror_flag" ||
35917          test ! -s conftest.err
35918        } && test -s conftest$ac_exeext && {
35919          test "$cross_compiling" = yes ||
35920          $as_test_x conftest$ac_exeext
35921        }; then
35922   eval "$as_ac_var=yes"
35923 else
35924   $as_echo "$as_me: failed program was:" >&5
35925 sed 's/^/| /' conftest.$ac_ext >&5
35926
35927         eval "$as_ac_var=no"
35928 fi
35929
35930 rm -rf conftest.dSYM
35931 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
35932       conftest$ac_exeext conftest.$ac_ext
35933 fi
35934 ac_res=`eval 'as_val=${'$as_ac_var'}
35935                  $as_echo "$as_val"'`
35936                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
35937 $as_echo "$ac_res" >&6; }
35938 as_val=`eval 'as_val=${'$as_ac_var'}
35939                  $as_echo "$as_val"'`
35940    if test "x$as_val" = x""yes; then
35941   cat >>confdefs.h <<_ACEOF
35942 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
35943 _ACEOF
35944
35945 else
35946
35947     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
35948
35949 fi
35950 done
35951
35952
35953   if test $ac_cv_func_mempcpy = no; then
35954     HAVE_MEMPCPY=0
35955
35956   :
35957
35958   fi
35959
35960
35961
35962
35963   GNULIB_MEMPCPY=1
35964
35965
35966
35967 cat >>confdefs.h <<\_ACEOF
35968 #define GNULIB_TEST_MEMPCPY 1
35969 _ACEOF
35970
35971
35972
35973   # Code from module memrchr:
35974
35975
35976
35977
35978
35979
35980
35981
35982   if test $ac_cv_have_decl_memrchr = no; then
35983     HAVE_DECL_MEMRCHR=0
35984   fi
35985
35986
35987
35988
35989
35990
35991
35992
35993
35994
35995 for ac_func in memrchr
35996 do
35997 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
35998 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
35999 $as_echo_n "checking for $ac_func... " >&6; }
36000 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36001   $as_echo_n "(cached) " >&6
36002 else
36003   cat >conftest.$ac_ext <<_ACEOF
36004 /* confdefs.h.  */
36005 _ACEOF
36006 cat confdefs.h >>conftest.$ac_ext
36007 cat >>conftest.$ac_ext <<_ACEOF
36008 /* end confdefs.h.  */
36009 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36010    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36011 #define $ac_func innocuous_$ac_func
36012
36013 /* System header to define __stub macros and hopefully few prototypes,
36014     which can conflict with char $ac_func (); below.
36015     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36016     <limits.h> exists even on freestanding compilers.  */
36017
36018 #ifdef __STDC__
36019 # include <limits.h>
36020 #else
36021 # include <assert.h>
36022 #endif
36023
36024 #undef $ac_func
36025
36026 /* Override any GCC internal prototype to avoid an error.
36027    Use char because int might match the return type of a GCC
36028    builtin and then its argument prototype would still apply.  */
36029 #ifdef __cplusplus
36030 extern "C"
36031 #endif
36032 char $ac_func ();
36033 /* The GNU C library defines this for functions which it implements
36034     to always fail with ENOSYS.  Some functions are actually named
36035     something starting with __ and the normal name is an alias.  */
36036 #if defined __stub_$ac_func || defined __stub___$ac_func
36037 choke me
36038 #endif
36039
36040 int
36041 main ()
36042 {
36043 return $ac_func ();
36044   ;
36045   return 0;
36046 }
36047 _ACEOF
36048 rm -f conftest.$ac_objext conftest$ac_exeext
36049 if { (ac_try="$ac_link"
36050 case "(($ac_try" in
36051   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36052   *) ac_try_echo=$ac_try;;
36053 esac
36054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36055 $as_echo "$ac_try_echo") >&5
36056   (eval "$ac_link") 2>conftest.er1
36057   ac_status=$?
36058   grep -v '^ *+' conftest.er1 >conftest.err
36059   rm -f conftest.er1
36060   cat conftest.err >&5
36061   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36062   (exit $ac_status); } && {
36063          test -z "$ac_c_werror_flag" ||
36064          test ! -s conftest.err
36065        } && test -s conftest$ac_exeext && {
36066          test "$cross_compiling" = yes ||
36067          $as_test_x conftest$ac_exeext
36068        }; then
36069   eval "$as_ac_var=yes"
36070 else
36071   $as_echo "$as_me: failed program was:" >&5
36072 sed 's/^/| /' conftest.$ac_ext >&5
36073
36074         eval "$as_ac_var=no"
36075 fi
36076
36077 rm -rf conftest.dSYM
36078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36079       conftest$ac_exeext conftest.$ac_ext
36080 fi
36081 ac_res=`eval 'as_val=${'$as_ac_var'}
36082                  $as_echo "$as_val"'`
36083                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36084 $as_echo "$ac_res" >&6; }
36085 as_val=`eval 'as_val=${'$as_ac_var'}
36086                  $as_echo "$as_val"'`
36087    if test "x$as_val" = x""yes; then
36088   cat >>confdefs.h <<_ACEOF
36089 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36090 _ACEOF
36091
36092 else
36093
36094     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
36095
36096 fi
36097 done
36098
36099
36100   if test $ac_cv_func_memrchr = no; then
36101     :
36102   fi
36103
36104
36105
36106
36107   GNULIB_MEMRCHR=1
36108
36109
36110
36111 cat >>confdefs.h <<\_ACEOF
36112 #define GNULIB_TEST_MEMRCHR 1
36113 _ACEOF
36114
36115
36116
36117   # Code from module mkdir:
36118
36119
36120
36121
36122
36123
36124
36125   { $as_echo "$as_me:$LINENO: checking whether mkdir handles trailing slash" >&5
36126 $as_echo_n "checking whether mkdir handles trailing slash... " >&6; }
36127 if test "${gl_cv_func_mkdir_trailing_slash_works+set}" = set; then
36128   $as_echo_n "(cached) " >&6
36129 else
36130   rm -rf conftest.dir
36131       if test "$cross_compiling" = yes; then
36132   gl_cv_func_mkdir_trailing_slash_works="guessing no"
36133 else
36134   cat >conftest.$ac_ext <<_ACEOF
36135 /* confdefs.h.  */
36136 _ACEOF
36137 cat confdefs.h >>conftest.$ac_ext
36138 cat >>conftest.$ac_ext <<_ACEOF
36139 /* end confdefs.h.  */
36140
36141 #       include <sys/types.h>
36142 #       include <sys/stat.h>
36143
36144 int
36145 main ()
36146 {
36147 return mkdir ("conftest.dir/", 0700);
36148   ;
36149   return 0;
36150 }
36151 _ACEOF
36152 rm -f conftest$ac_exeext
36153 if { (ac_try="$ac_link"
36154 case "(($ac_try" in
36155   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36156   *) ac_try_echo=$ac_try;;
36157 esac
36158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36159 $as_echo "$ac_try_echo") >&5
36160   (eval "$ac_link") 2>&5
36161   ac_status=$?
36162   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36163   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36164   { (case "(($ac_try" in
36165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36166   *) ac_try_echo=$ac_try;;
36167 esac
36168 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36169 $as_echo "$ac_try_echo") >&5
36170   (eval "$ac_try") 2>&5
36171   ac_status=$?
36172   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36173   (exit $ac_status); }; }; then
36174   gl_cv_func_mkdir_trailing_slash_works=yes
36175 else
36176   $as_echo "$as_me: program exited with status $ac_status" >&5
36177 $as_echo "$as_me: failed program was:" >&5
36178 sed 's/^/| /' conftest.$ac_ext >&5
36179
36180 ( exit $ac_status )
36181 gl_cv_func_mkdir_trailing_slash_works=no
36182 fi
36183 rm -rf conftest.dSYM
36184 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36185 fi
36186
36187
36188     rm -rf conftest.dir
36189
36190
36191 fi
36192 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_slash_works" >&5
36193 $as_echo "$gl_cv_func_mkdir_trailing_slash_works" >&6; }
36194   if test "$gl_cv_func_mkdir_trailing_slash_works" != yes; then
36195     REPLACE_MKDIR=1
36196
36197
36198
36199
36200
36201
36202
36203
36204   gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
36205
36206   fi
36207
36208   { $as_echo "$as_me:$LINENO: checking whether mkdir handles trailing dot" >&5
36209 $as_echo_n "checking whether mkdir handles trailing dot... " >&6; }
36210 if test "${gl_cv_func_mkdir_trailing_dot_works+set}" = set; then
36211   $as_echo_n "(cached) " >&6
36212 else
36213   rm -rf conftest.dir
36214       if test "$cross_compiling" = yes; then
36215   gl_cv_func_mkdir_trailing_dot_works="guessing no"
36216 else
36217   cat >conftest.$ac_ext <<_ACEOF
36218 /* confdefs.h.  */
36219 _ACEOF
36220 cat confdefs.h >>conftest.$ac_ext
36221 cat >>conftest.$ac_ext <<_ACEOF
36222 /* end confdefs.h.  */
36223
36224 #       include <sys/types.h>
36225 #       include <sys/stat.h>
36226
36227 int
36228 main ()
36229 {
36230 return !mkdir ("conftest.dir/./", 0700);
36231   ;
36232   return 0;
36233 }
36234 _ACEOF
36235 rm -f conftest$ac_exeext
36236 if { (ac_try="$ac_link"
36237 case "(($ac_try" in
36238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36239   *) ac_try_echo=$ac_try;;
36240 esac
36241 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36242 $as_echo "$ac_try_echo") >&5
36243   (eval "$ac_link") 2>&5
36244   ac_status=$?
36245   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36246   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36247   { (case "(($ac_try" in
36248   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36249   *) ac_try_echo=$ac_try;;
36250 esac
36251 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36252 $as_echo "$ac_try_echo") >&5
36253   (eval "$ac_try") 2>&5
36254   ac_status=$?
36255   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36256   (exit $ac_status); }; }; then
36257   gl_cv_func_mkdir_trailing_dot_works=yes
36258 else
36259   $as_echo "$as_me: program exited with status $ac_status" >&5
36260 $as_echo "$as_me: failed program was:" >&5
36261 sed 's/^/| /' conftest.$ac_ext >&5
36262
36263 ( exit $ac_status )
36264 gl_cv_func_mkdir_trailing_dot_works=no
36265 fi
36266 rm -rf conftest.dSYM
36267 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36268 fi
36269
36270
36271     rm -rf conftest.dir
36272
36273
36274 fi
36275 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkdir_trailing_dot_works" >&5
36276 $as_echo "$gl_cv_func_mkdir_trailing_dot_works" >&6; }
36277   if test "$gl_cv_func_mkdir_trailing_dot_works" != yes; then
36278     REPLACE_MKDIR=1
36279
36280
36281
36282
36283
36284
36285
36286
36287   gl_LIBOBJS="$gl_LIBOBJS mkdir.$ac_objext"
36288
36289
36290 cat >>confdefs.h <<\_ACEOF
36291 #define FUNC_MKDIR_DOT_BUG 1
36292 _ACEOF
36293
36294   fi
36295
36296   # Code from module mkdtemp:
36297
36298
36299
36300
36301
36302
36303
36304
36305
36306
36307
36308 for ac_func in mkdtemp
36309 do
36310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
36311 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
36312 $as_echo_n "checking for $ac_func... " >&6; }
36313 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
36314   $as_echo_n "(cached) " >&6
36315 else
36316   cat >conftest.$ac_ext <<_ACEOF
36317 /* confdefs.h.  */
36318 _ACEOF
36319 cat confdefs.h >>conftest.$ac_ext
36320 cat >>conftest.$ac_ext <<_ACEOF
36321 /* end confdefs.h.  */
36322 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
36323    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
36324 #define $ac_func innocuous_$ac_func
36325
36326 /* System header to define __stub macros and hopefully few prototypes,
36327     which can conflict with char $ac_func (); below.
36328     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
36329     <limits.h> exists even on freestanding compilers.  */
36330
36331 #ifdef __STDC__
36332 # include <limits.h>
36333 #else
36334 # include <assert.h>
36335 #endif
36336
36337 #undef $ac_func
36338
36339 /* Override any GCC internal prototype to avoid an error.
36340    Use char because int might match the return type of a GCC
36341    builtin and then its argument prototype would still apply.  */
36342 #ifdef __cplusplus
36343 extern "C"
36344 #endif
36345 char $ac_func ();
36346 /* The GNU C library defines this for functions which it implements
36347     to always fail with ENOSYS.  Some functions are actually named
36348     something starting with __ and the normal name is an alias.  */
36349 #if defined __stub_$ac_func || defined __stub___$ac_func
36350 choke me
36351 #endif
36352
36353 int
36354 main ()
36355 {
36356 return $ac_func ();
36357   ;
36358   return 0;
36359 }
36360 _ACEOF
36361 rm -f conftest.$ac_objext conftest$ac_exeext
36362 if { (ac_try="$ac_link"
36363 case "(($ac_try" in
36364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36365   *) ac_try_echo=$ac_try;;
36366 esac
36367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36368 $as_echo "$ac_try_echo") >&5
36369   (eval "$ac_link") 2>conftest.er1
36370   ac_status=$?
36371   grep -v '^ *+' conftest.er1 >conftest.err
36372   rm -f conftest.er1
36373   cat conftest.err >&5
36374   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36375   (exit $ac_status); } && {
36376          test -z "$ac_c_werror_flag" ||
36377          test ! -s conftest.err
36378        } && test -s conftest$ac_exeext && {
36379          test "$cross_compiling" = yes ||
36380          $as_test_x conftest$ac_exeext
36381        }; then
36382   eval "$as_ac_var=yes"
36383 else
36384   $as_echo "$as_me: failed program was:" >&5
36385 sed 's/^/| /' conftest.$ac_ext >&5
36386
36387         eval "$as_ac_var=no"
36388 fi
36389
36390 rm -rf conftest.dSYM
36391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
36392       conftest$ac_exeext conftest.$ac_ext
36393 fi
36394 ac_res=`eval 'as_val=${'$as_ac_var'}
36395                  $as_echo "$as_val"'`
36396                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
36397 $as_echo "$ac_res" >&6; }
36398 as_val=`eval 'as_val=${'$as_ac_var'}
36399                  $as_echo "$as_val"'`
36400    if test "x$as_val" = x""yes; then
36401   cat >>confdefs.h <<_ACEOF
36402 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
36403 _ACEOF
36404
36405 else
36406
36407     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
36408
36409 fi
36410 done
36411
36412
36413   if test $ac_cv_func_mkdtemp = no; then
36414     HAVE_MKDTEMP=0
36415     :
36416
36417   fi
36418
36419
36420
36421
36422   GNULIB_MKDTEMP=1
36423
36424
36425
36426 cat >>confdefs.h <<\_ACEOF
36427 #define GNULIB_TEST_MKDTEMP 1
36428 _ACEOF
36429
36430
36431
36432   # Code from module mkfifo:
36433
36434
36435
36436
36437
36438
36439
36440
36441   if test $ac_cv_func_mkfifo = no; then
36442     HAVE_MKFIFO=0
36443
36444
36445
36446
36447
36448
36449
36450
36451   gl_LIBOBJS="$gl_LIBOBJS mkfifo.$ac_objext"
36452
36453   else
36454
36455
36456
36457
36458
36459
36460     { $as_echo "$as_me:$LINENO: checking whether mkfifo rejects trailing slashes" >&5
36461 $as_echo_n "checking whether mkfifo rejects trailing slashes... " >&6; }
36462 if test "${gl_cv_func_mkfifo_works+set}" = set; then
36463   $as_echo_n "(cached) " >&6
36464 else
36465   # Assume that if we have lstat, we can also check symlinks.
36466        if test $ac_cv_func_lstat = yes; then
36467          ln -s conftest.tmp conftest.lnk
36468        fi
36469        if test "$cross_compiling" = yes; then
36470   gl_cv_func_mkfifo_works="guessing no"
36471 else
36472   cat >conftest.$ac_ext <<_ACEOF
36473 /* confdefs.h.  */
36474 _ACEOF
36475 cat confdefs.h >>conftest.$ac_ext
36476 cat >>conftest.$ac_ext <<_ACEOF
36477 /* end confdefs.h.  */
36478 #include <sys/stat.h>
36479
36480 int
36481 main ()
36482 {
36483 int result = 0;
36484              if (!mkfifo ("conftest.tmp/", 0600))
36485                result |= 1;
36486 #if HAVE_LSTAT
36487              if (!mkfifo ("conftest.lnk/", 0600))
36488                result |= 2;
36489 #endif
36490              return result;
36491
36492   ;
36493   return 0;
36494 }
36495 _ACEOF
36496 rm -f conftest$ac_exeext
36497 if { (ac_try="$ac_link"
36498 case "(($ac_try" in
36499   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36500   *) ac_try_echo=$ac_try;;
36501 esac
36502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36503 $as_echo "$ac_try_echo") >&5
36504   (eval "$ac_link") 2>&5
36505   ac_status=$?
36506   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36507   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36508   { (case "(($ac_try" in
36509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36510   *) ac_try_echo=$ac_try;;
36511 esac
36512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36513 $as_echo "$ac_try_echo") >&5
36514   (eval "$ac_try") 2>&5
36515   ac_status=$?
36516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36517   (exit $ac_status); }; }; then
36518   gl_cv_func_mkfifo_works=yes
36519 else
36520   $as_echo "$as_me: program exited with status $ac_status" >&5
36521 $as_echo "$as_me: failed program was:" >&5
36522 sed 's/^/| /' conftest.$ac_ext >&5
36523
36524 ( exit $ac_status )
36525 gl_cv_func_mkfifo_works=no
36526 fi
36527 rm -rf conftest.dSYM
36528 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36529 fi
36530
36531
36532        rm -f conftest.tmp conftest.lnk
36533 fi
36534 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mkfifo_works" >&5
36535 $as_echo "$gl_cv_func_mkfifo_works" >&6; }
36536     if test "$gl_cv_func_mkfifo_works" != yes; then
36537
36538 cat >>confdefs.h <<\_ACEOF
36539 #define MKFIFO_TRAILING_SLASH_BUG 1
36540 _ACEOF
36541
36542       REPLACE_MKFIFO=1
36543
36544
36545
36546
36547
36548
36549
36550
36551   gl_LIBOBJS="$gl_LIBOBJS mkfifo.$ac_objext"
36552
36553     fi
36554   fi
36555
36556
36557
36558
36559   GNULIB_MKFIFO=1
36560
36561
36562
36563 cat >>confdefs.h <<\_ACEOF
36564 #define GNULIB_TEST_MKFIFO 1
36565 _ACEOF
36566
36567
36568
36569   # Code from module mkfifoat:
36570
36571
36572
36573
36574
36575
36576
36577
36578
36579
36580
36581
36582   if test $ac_cv_func_mkfifoat = no; then
36583     # No known system has mkfifoat but not mknodat
36584     HAVE_MKFIFOAT=0
36585     HAVE_MKNODAT=0
36586
36587
36588
36589
36590
36591
36592
36593
36594   gl_LIBOBJS="$gl_LIBOBJS mkfifoat.$ac_objext"
36595
36596
36597
36598
36599
36600
36601
36602
36603
36604   gl_LIBOBJS="$gl_LIBOBJS mknodat.$ac_objext"
36605
36606   fi
36607
36608
36609
36610
36611   GNULIB_MKFIFOAT=1
36612
36613
36614
36615 cat >>confdefs.h <<\_ACEOF
36616 #define GNULIB_TEST_MKFIFOAT 1
36617 _ACEOF
36618
36619
36620
36621
36622
36623
36624   GNULIB_MKNODAT=1
36625
36626
36627
36628 cat >>confdefs.h <<\_ACEOF
36629 #define GNULIB_TEST_MKNODAT 1
36630 _ACEOF
36631
36632
36633
36634   # Code from module mknod:
36635
36636
36637
36638
36639
36640
36641
36642
36643
36644
36645   if test $ac_cv_func_mknod = no; then
36646     HAVE_MKNOD=0
36647
36648
36649
36650
36651
36652
36653
36654
36655   gl_LIBOBJS="$gl_LIBOBJS mknod.$ac_objext"
36656
36657   else
36658         { $as_echo "$as_me:$LINENO: checking whether mknod can create fifo without root privileges" >&5
36659 $as_echo_n "checking whether mknod can create fifo without root privileges... " >&6; }
36660 if test "${gl_cv_func_mknod_works+set}" = set; then
36661   $as_echo_n "(cached) " >&6
36662 else
36663   if test "$cross_compiling" = yes; then
36664   gl_cv_func_mknod_works="guessing no"
36665 else
36666   cat >conftest.$ac_ext <<_ACEOF
36667 /* confdefs.h.  */
36668 _ACEOF
36669 cat confdefs.h >>conftest.$ac_ext
36670 cat >>conftest.$ac_ext <<_ACEOF
36671 /* end confdefs.h.  */
36672 #include <sys/stat.h>
36673              #include <unistd.h>
36674
36675 int
36676 main ()
36677 {
36678 /* Indeterminate for super-user, assume no.  Why are you running
36679          configure as root, anyway?  */
36680       if (!geteuid ()) return 99;
36681       if (mknod ("conftest.fifo", S_IFIFO | 0600, 0)) return 2;
36682   ;
36683   return 0;
36684 }
36685 _ACEOF
36686 rm -f conftest$ac_exeext
36687 if { (ac_try="$ac_link"
36688 case "(($ac_try" in
36689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36690   *) ac_try_echo=$ac_try;;
36691 esac
36692 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36693 $as_echo "$ac_try_echo") >&5
36694   (eval "$ac_link") 2>&5
36695   ac_status=$?
36696   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36697   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
36698   { (case "(($ac_try" in
36699   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
36700   *) ac_try_echo=$ac_try;;
36701 esac
36702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
36703 $as_echo "$ac_try_echo") >&5
36704   (eval "$ac_try") 2>&5
36705   ac_status=$?
36706   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
36707   (exit $ac_status); }; }; then
36708   gl_cv_func_mknod_works=yes
36709 else
36710   $as_echo "$as_me: program exited with status $ac_status" >&5
36711 $as_echo "$as_me: failed program was:" >&5
36712 sed 's/^/| /' conftest.$ac_ext >&5
36713
36714 ( exit $ac_status )
36715 if test $? = 99 && test x"$FORCE_UNSAFE_CONFIGURE" = x; then
36716             { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
36717 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36718 { { $as_echo "$as_me:$LINENO: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
36719 See \`config.log' for more details." >&5
36720 $as_echo "$as_me: error: you should not run configure as root (set FORCE_UNSAFE_CONFIGURE=1 in environment to bypass this check)
36721 See \`config.log' for more details." >&2;}
36722    { (exit 1); exit 1; }; }; }
36723           fi
36724           gl_cv_func_mknod_works=no
36725 fi
36726 rm -rf conftest.dSYM
36727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
36728 fi
36729
36730
36731        rm -f conftest.fifo
36732 fi
36733 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mknod_works" >&5
36734 $as_echo "$gl_cv_func_mknod_works" >&6; }
36735     if test "$gl_cv_func_mknod_works" != yes; then
36736
36737 cat >>confdefs.h <<\_ACEOF
36738 #define MKNOD_FIFO_BUG 1
36739 _ACEOF
36740
36741     fi
36742         if test $REPLACE_MKFIFO = 1 || test "$gl_cv_func_mknod_works" != yes; then
36743       REPLACE_MKNOD=1
36744
36745
36746
36747
36748
36749
36750
36751
36752   gl_LIBOBJS="$gl_LIBOBJS mknod.$ac_objext"
36753
36754     fi
36755   fi
36756
36757
36758
36759
36760   GNULIB_MKNOD=1
36761
36762
36763
36764 cat >>confdefs.h <<\_ACEOF
36765 #define GNULIB_TEST_MKNOD 1
36766 _ACEOF
36767
36768
36769
36770   # Code from module mktime:
36771
36772
36773
36774
36775
36776
36777
36778
36779
36780
36781
36782
36783
36784
36785
36786 if test $APPLE_UNIVERSAL_BUILD = 1; then
36787   # A universal build on Apple MacOS X platforms.
36788   # The test result would be 'yes' in 32-bit mode and 'no' in 64-bit mode.
36789   # But we need a configuration result that is valid in both modes.
36790   ac_cv_func_working_mktime=no
36791 fi
36792 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
36793 $as_echo_n "checking for working mktime... " >&6; }
36794 if test "${ac_cv_func_working_mktime+set}" = set; then
36795   $as_echo_n "(cached) " >&6
36796 else
36797   if test "$cross_compiling" = yes; then
36798   ac_cv_func_working_mktime=no
36799 else
36800   cat >conftest.$ac_ext <<_ACEOF
36801 /* confdefs.h.  */
36802 _ACEOF
36803 cat confdefs.h >>conftest.$ac_ext
36804 cat >>conftest.$ac_ext <<_ACEOF
36805 /* end confdefs.h.  */
36806 /* Test program from Paul Eggert and Tony Leneis.  */
36807 #include <limits.h>
36808 #include <stdlib.h>
36809 #include <time.h>
36810
36811 #ifdef HAVE_UNISTD_H
36812 # include <unistd.h>
36813 #endif
36814
36815 #ifndef HAVE_ALARM
36816 # define alarm(X) /* empty */
36817 #endif
36818
36819 /* Work around redefinition to rpl_putenv by other config tests.  */
36820 #undef putenv
36821
36822 static time_t time_t_max;
36823 static time_t time_t_min;
36824
36825 /* Values we'll use to set the TZ environment variable.  */
36826 static char *tz_strings[] = {
36827   (char *) 0, "TZ=GMT0", "TZ=JST-9",
36828   "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
36829 };
36830 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
36831
36832 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
36833    Based on a problem report from Andreas Jaeger.  */
36834 static int
36835 spring_forward_gap ()
36836 {
36837   /* glibc (up to about 1998-10-07) failed this test. */
36838   struct tm tm;
36839
36840   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
36841      instead of "TZ=America/Vancouver" in order to detect the bug even
36842      on systems that don't support the Olson extension, or don't have the
36843      full zoneinfo tables installed.  */
36844   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
36845
36846   tm.tm_year = 98;
36847   tm.tm_mon = 3;
36848   tm.tm_mday = 5;
36849   tm.tm_hour = 2;
36850   tm.tm_min = 0;
36851   tm.tm_sec = 0;
36852   tm.tm_isdst = -1;
36853   return mktime (&tm) != (time_t) -1;
36854 }
36855
36856 static int
36857 mktime_test1 (time_t now)
36858 {
36859   struct tm *lt;
36860   return ! (lt = localtime (&now)) || mktime (lt) == now;
36861 }
36862
36863 static int
36864 mktime_test (time_t now)
36865 {
36866   return (mktime_test1 (now)
36867           && mktime_test1 ((time_t) (time_t_max - now))
36868           && mktime_test1 ((time_t) (time_t_min + now)));
36869 }
36870
36871 static int
36872 irix_6_4_bug ()
36873 {
36874   /* Based on code from Ariel Faigon.  */
36875   struct tm tm;
36876   tm.tm_year = 96;
36877   tm.tm_mon = 3;
36878   tm.tm_mday = 0;
36879   tm.tm_hour = 0;
36880   tm.tm_min = 0;
36881   tm.tm_sec = 0;
36882   tm.tm_isdst = -1;
36883   mktime (&tm);
36884   return tm.tm_mon == 2 && tm.tm_mday == 31;
36885 }
36886
36887 static int
36888 bigtime_test (int j)
36889 {
36890   struct tm tm;
36891   time_t now;
36892   tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
36893   now = mktime (&tm);
36894   if (now != (time_t) -1)
36895     {
36896       struct tm *lt = localtime (&now);
36897       if (! (lt
36898              && lt->tm_year == tm.tm_year
36899              && lt->tm_mon == tm.tm_mon
36900              && lt->tm_mday == tm.tm_mday
36901              && lt->tm_hour == tm.tm_hour
36902              && lt->tm_min == tm.tm_min
36903              && lt->tm_sec == tm.tm_sec
36904              && lt->tm_yday == tm.tm_yday
36905              && lt->tm_wday == tm.tm_wday
36906              && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
36907                   == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
36908         return 0;
36909     }
36910   return 1;
36911 }
36912
36913 static int
36914 year_2050_test ()
36915 {
36916   /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
36917      ignoring leap seconds.  */
36918   unsigned long int answer = 2527315200UL;
36919
36920   struct tm tm;
36921   time_t t;
36922   tm.tm_year = 2050 - 1900;
36923   tm.tm_mon = 2 - 1;
36924   tm.tm_mday = 1;
36925   tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
36926   tm.tm_isdst = -1;
36927
36928   /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
36929      instead of "TZ=America/Vancouver" in order to detect the bug even
36930      on systems that don't support the Olson extension, or don't have the
36931      full zoneinfo tables installed.  */
36932   putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
36933
36934   t = mktime (&tm);
36935
36936   /* Check that the result is either a failure, or close enough
36937      to the correct answer that we can assume the discrepancy is
36938      due to leap seconds.  */
36939   return (t == (time_t) -1
36940           || (0 < t && answer - 120 <= t && t <= answer + 120));
36941 }
36942
36943 int
36944 main ()
36945 {
36946   int result = 0;
36947   time_t t, delta;
36948   int i, j;
36949   int time_t_signed_magnitude = (time_t) ~ (time_t) 0 < (time_t) -1;
36950   int time_t_signed = ! ((time_t) 0 < (time_t) -1);
36951
36952   /* This test makes some buggy mktime implementations loop.
36953      Give up after 60 seconds; a mktime slower than that
36954      isn't worth using anyway.  */
36955   alarm (60);
36956
36957   time_t_max = (! time_t_signed
36958                 ? (time_t) -1
36959                 : ((((time_t) 1 << (sizeof (time_t) * CHAR_BIT - 2)) - 1)
36960                    * 2 + 1));
36961   time_t_min = (! time_t_signed
36962                 ? (time_t) 0
36963                 : time_t_signed_magnitude
36964                 ? ~ (time_t) 0
36965                 : ~ time_t_max);
36966
36967   delta = time_t_max / 997; /* a suitable prime number */
36968   for (i = 0; i < N_STRINGS; i++)
36969     {
36970       if (tz_strings[i])
36971         putenv (tz_strings[i]);
36972
36973       for (t = 0; t <= time_t_max - delta; t += delta)
36974         if (! mktime_test (t))
36975           result |= 1;
36976       if (! (mktime_test ((time_t) 1)
36977              && mktime_test ((time_t) (60 * 60))
36978              && mktime_test ((time_t) (60 * 60 * 24))))
36979         result |= 2;
36980
36981       for (j = 1; ; j <<= 1)
36982         if (! bigtime_test (j))
36983           result |= 4;
36984         else if (INT_MAX / 2 < j)
36985           break;
36986       if (! bigtime_test (INT_MAX))
36987         result |= 8;
36988     }
36989   if (! irix_6_4_bug ())
36990     result |= 16;
36991   if (! spring_forward_gap ())
36992     result |= 32;
36993   if (! year_2050_test ())
36994     result |= 64;
36995   return result;
36996 }
36997 _ACEOF
36998 rm -f conftest$ac_exeext
36999 if { (ac_try="$ac_link"
37000 case "(($ac_try" in
37001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37002   *) ac_try_echo=$ac_try;;
37003 esac
37004 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37005 $as_echo "$ac_try_echo") >&5
37006   (eval "$ac_link") 2>&5
37007   ac_status=$?
37008   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37009   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37010   { (case "(($ac_try" in
37011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37012   *) ac_try_echo=$ac_try;;
37013 esac
37014 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37015 $as_echo "$ac_try_echo") >&5
37016   (eval "$ac_try") 2>&5
37017   ac_status=$?
37018   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37019   (exit $ac_status); }; }; then
37020   ac_cv_func_working_mktime=yes
37021 else
37022   $as_echo "$as_me: program exited with status $ac_status" >&5
37023 $as_echo "$as_me: failed program was:" >&5
37024 sed 's/^/| /' conftest.$ac_ext >&5
37025
37026 ( exit $ac_status )
37027 ac_cv_func_working_mktime=no
37028 fi
37029 rm -rf conftest.dSYM
37030 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37031 fi
37032
37033
37034 fi
37035 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
37036 $as_echo "$ac_cv_func_working_mktime" >&6; }
37037 if test $ac_cv_func_working_mktime = no; then
37038
37039
37040
37041
37042
37043
37044
37045
37046   gl_LIBOBJS="$gl_LIBOBJS mktime.$ac_objext"
37047
37048 fi
37049
37050     if test $ac_cv_func_working_mktime = no; then
37051     REPLACE_MKTIME=1
37052
37053
37054
37055   else
37056     REPLACE_MKTIME=0
37057   fi
37058
37059
37060
37061
37062   GNULIB_MKTIME=1
37063
37064
37065
37066 cat >>confdefs.h <<\_ACEOF
37067 #define GNULIB_TEST_MKTIME 1
37068 _ACEOF
37069
37070
37071
37072   # Code from module modechange:
37073
37074
37075
37076
37077
37078
37079
37080
37081
37082   gl_LIBOBJS="$gl_LIBOBJS modechange.$ac_objext"
37083
37084
37085   # Code from module multiarch:
37086
37087   # Code from module nl_langinfo:
37088
37089
37090
37091
37092
37093
37094
37095
37096
37097      if test $ac_cv_func_nl_langinfo = yes; then
37098     # On Irix 6.5, YESEXPR is defined, but nl_langinfo(YESEXPR) is broken.
37099     { $as_echo "$as_me:$LINENO: checking whether YESEXPR works" >&5
37100 $as_echo_n "checking whether YESEXPR works... " >&6; }
37101 if test "${gl_cv_func_nl_langinfo_yesexpr_works+set}" = set; then
37102   $as_echo_n "(cached) " >&6
37103 else
37104   if test "$cross_compiling" = yes; then
37105
37106          case "$host_os" in
37107                    # Guess no on irix systems.
37108            irix*)  gl_cv_func_nl_langinfo_yesexpr_works="guessing no";;
37109                    # Guess yes elsewhere.
37110            *)      gl_cv_func_nl_langinfo_yesexpr_works="guessing yes";;
37111          esac
37112
37113 else
37114   cat >conftest.$ac_ext <<_ACEOF
37115 /* confdefs.h.  */
37116 _ACEOF
37117 cat confdefs.h >>conftest.$ac_ext
37118 cat >>conftest.$ac_ext <<_ACEOF
37119 /* end confdefs.h.  */
37120 #include <langinfo.h>
37121
37122 int
37123 main ()
37124 {
37125 return !*nl_langinfo(YESEXPR);
37126
37127   ;
37128   return 0;
37129 }
37130 _ACEOF
37131 rm -f conftest$ac_exeext
37132 if { (ac_try="$ac_link"
37133 case "(($ac_try" in
37134   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37135   *) ac_try_echo=$ac_try;;
37136 esac
37137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37138 $as_echo "$ac_try_echo") >&5
37139   (eval "$ac_link") 2>&5
37140   ac_status=$?
37141   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37142   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37143   { (case "(($ac_try" in
37144   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37145   *) ac_try_echo=$ac_try;;
37146 esac
37147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37148 $as_echo "$ac_try_echo") >&5
37149   (eval "$ac_try") 2>&5
37150   ac_status=$?
37151   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37152   (exit $ac_status); }; }; then
37153   gl_cv_func_nl_langinfo_yesexpr_works=yes
37154 else
37155   $as_echo "$as_me: program exited with status $ac_status" >&5
37156 $as_echo "$as_me: failed program was:" >&5
37157 sed 's/^/| /' conftest.$ac_ext >&5
37158
37159 ( exit $ac_status )
37160 gl_cv_func_nl_langinfo_yesexpr_works=no
37161 fi
37162 rm -rf conftest.dSYM
37163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37164 fi
37165
37166
37167
37168 fi
37169 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_nl_langinfo_yesexpr_works" >&5
37170 $as_echo "$gl_cv_func_nl_langinfo_yesexpr_works" >&6; }
37171     case $gl_cv_func_nl_langinfo_yesexpr_works in
37172       *yes) FUNC_NL_LANGINFO_YESEXPR_WORKS=1 ;;
37173       *)    FUNC_NL_LANGINFO_YESEXPR_WORKS=0 ;;
37174     esac
37175
37176 cat >>confdefs.h <<_ACEOF
37177 #define FUNC_NL_LANGINFO_YESEXPR_WORKS $FUNC_NL_LANGINFO_YESEXPR_WORKS
37178 _ACEOF
37179
37180     if test $HAVE_LANGINFO_CODESET = 1 && test $HAVE_LANGINFO_ERA = 1 \
37181         && test $FUNC_NL_LANGINFO_YESEXPR_WORKS = 1; then
37182       :
37183     else
37184       REPLACE_NL_LANGINFO=1
37185
37186 cat >>confdefs.h <<\_ACEOF
37187 #define REPLACE_NL_LANGINFO 1
37188 _ACEOF
37189
37190
37191
37192
37193
37194
37195
37196
37197
37198   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
37199
37200     fi
37201   else
37202     HAVE_NL_LANGINFO=0
37203
37204
37205
37206
37207
37208
37209
37210
37211   gl_LIBOBJS="$gl_LIBOBJS nl_langinfo.$ac_objext"
37212
37213   fi
37214
37215
37216
37217
37218   GNULIB_NL_LANGINFO=1
37219
37220
37221
37222 cat >>confdefs.h <<\_ACEOF
37223 #define GNULIB_TEST_NL_LANGINFO 1
37224 _ACEOF
37225
37226
37227
37228   # Code from module obstack:
37229
37230
37231
37232
37233
37234
37235
37236
37237
37238
37239
37240
37241 { $as_echo "$as_me:$LINENO: checking for obstacks" >&5
37242 $as_echo_n "checking for obstacks... " >&6; }
37243 if test "${ac_cv_func_obstack+set}" = set; then
37244   $as_echo_n "(cached) " >&6
37245 else
37246   cat >conftest.$ac_ext <<_ACEOF
37247 /* confdefs.h.  */
37248 _ACEOF
37249 cat confdefs.h >>conftest.$ac_ext
37250 cat >>conftest.$ac_ext <<_ACEOF
37251 /* end confdefs.h.  */
37252 $ac_includes_default
37253                       #include "obstack.h"
37254 int
37255 main ()
37256 {
37257 struct obstack mem;
37258                        #define obstack_chunk_alloc malloc
37259                        #define obstack_chunk_free free
37260                        obstack_init (&mem);
37261                        obstack_free (&mem, 0);
37262   ;
37263   return 0;
37264 }
37265 _ACEOF
37266 rm -f conftest.$ac_objext conftest$ac_exeext
37267 if { (ac_try="$ac_link"
37268 case "(($ac_try" in
37269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37270   *) ac_try_echo=$ac_try;;
37271 esac
37272 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37273 $as_echo "$ac_try_echo") >&5
37274   (eval "$ac_link") 2>conftest.er1
37275   ac_status=$?
37276   grep -v '^ *+' conftest.er1 >conftest.err
37277   rm -f conftest.er1
37278   cat conftest.err >&5
37279   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37280   (exit $ac_status); } && {
37281          test -z "$ac_c_werror_flag" ||
37282          test ! -s conftest.err
37283        } && test -s conftest$ac_exeext && {
37284          test "$cross_compiling" = yes ||
37285          $as_test_x conftest$ac_exeext
37286        }; then
37287   ac_cv_func_obstack=yes
37288 else
37289   $as_echo "$as_me: failed program was:" >&5
37290 sed 's/^/| /' conftest.$ac_ext >&5
37291
37292         ac_cv_func_obstack=no
37293 fi
37294
37295 rm -rf conftest.dSYM
37296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37297       conftest$ac_exeext conftest.$ac_ext
37298 fi
37299 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_obstack" >&5
37300 $as_echo "$ac_cv_func_obstack" >&6; }
37301 if test $ac_cv_func_obstack = yes; then
37302
37303 cat >>confdefs.h <<\_ACEOF
37304 #define HAVE_OBSTACK 1
37305 _ACEOF
37306
37307 else
37308
37309
37310
37311
37312
37313
37314
37315
37316   gl_LIBOBJS="$gl_LIBOBJS obstack.$ac_objext"
37317
37318 fi
37319
37320     # Code from module open:
37321
37322
37323   case "$host_os" in
37324     mingw* | pw*)
37325
37326
37327   REPLACE_OPEN=1
37328
37329
37330
37331
37332
37333
37334
37335
37336   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
37337
37338
37339
37340
37341   :
37342
37343
37344       ;;
37345     *)
37346
37347
37348
37349
37350
37351
37352       { $as_echo "$as_me:$LINENO: checking whether open recognizes a trailing slash" >&5
37353 $as_echo_n "checking whether open recognizes a trailing slash... " >&6; }
37354 if test "${gl_cv_func_open_slash+set}" = set; then
37355   $as_echo_n "(cached) " >&6
37356 else
37357   # Assume that if we have lstat, we can also check symlinks.
37358           if test $ac_cv_func_lstat = yes; then
37359             touch conftest.tmp
37360             ln -s conftest.tmp conftest.lnk
37361           fi
37362           if test "$cross_compiling" = yes; then
37363
37364              case "$host_os" in
37365                freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
37366                  gl_cv_func_open_slash="guessing no" ;;
37367                *)
37368                  gl_cv_func_open_slash="guessing yes" ;;
37369              esac
37370
37371 else
37372   cat >conftest.$ac_ext <<_ACEOF
37373 /* confdefs.h.  */
37374 _ACEOF
37375 cat confdefs.h >>conftest.$ac_ext
37376 cat >>conftest.$ac_ext <<_ACEOF
37377 /* end confdefs.h.  */
37378
37379 #include <fcntl.h>
37380 #if HAVE_UNISTD_H
37381 # include <unistd.h>
37382 #endif
37383 int main ()
37384 {
37385   int result = 0;
37386 #if HAVE_LSTAT
37387   if (open ("conftest.lnk/", O_RDONLY) != -1)
37388     result |= 1;
37389 #endif
37390   if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
37391     result |= 2;
37392   return result;
37393 }
37394 _ACEOF
37395 rm -f conftest$ac_exeext
37396 if { (ac_try="$ac_link"
37397 case "(($ac_try" in
37398   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37399   *) ac_try_echo=$ac_try;;
37400 esac
37401 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37402 $as_echo "$ac_try_echo") >&5
37403   (eval "$ac_link") 2>&5
37404   ac_status=$?
37405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37406   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37407   { (case "(($ac_try" in
37408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37409   *) ac_try_echo=$ac_try;;
37410 esac
37411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37412 $as_echo "$ac_try_echo") >&5
37413   (eval "$ac_try") 2>&5
37414   ac_status=$?
37415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37416   (exit $ac_status); }; }; then
37417   gl_cv_func_open_slash=yes
37418 else
37419   $as_echo "$as_me: program exited with status $ac_status" >&5
37420 $as_echo "$as_me: failed program was:" >&5
37421 sed 's/^/| /' conftest.$ac_ext >&5
37422
37423 ( exit $ac_status )
37424 gl_cv_func_open_slash=no
37425 fi
37426 rm -rf conftest.dSYM
37427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37428 fi
37429
37430
37431           rm -f conftest.sl conftest.tmp conftest.lnk
37432
37433 fi
37434 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_open_slash" >&5
37435 $as_echo "$gl_cv_func_open_slash" >&6; }
37436       case "$gl_cv_func_open_slash" in
37437         *no)
37438
37439 cat >>confdefs.h <<\_ACEOF
37440 #define OPEN_TRAILING_SLASH_BUG 1
37441 _ACEOF
37442
37443
37444
37445   REPLACE_OPEN=1
37446
37447
37448
37449
37450
37451
37452
37453
37454   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
37455
37456
37457
37458
37459   :
37460
37461
37462           ;;
37463       esac
37464       ;;
37465   esac
37466
37467
37468
37469
37470   GNULIB_OPEN=1
37471
37472
37473
37474 cat >>confdefs.h <<\_ACEOF
37475 #define GNULIB_TEST_OPEN 1
37476 _ACEOF
37477
37478
37479
37480   # Code from module openat:
37481
37482
37483   GNULIB_OPENAT=1
37484
37485
37486   GNULIB_FCHMODAT=1
37487   GNULIB_FSTATAT=1
37488   GNULIB_MKDIRAT=1
37489
37490
37491   GNULIB_FCHOWNAT=1
37492   GNULIB_UNLINKAT=1
37493
37494
37495
37496
37497
37498
37499
37500
37501
37502   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
37503
37504
37505
37506
37507
37508
37509
37510
37511
37512
37513
37514
37515
37516
37517
37518
37519
37520
37521
37522
37523
37524
37525
37526
37527
37528
37529
37530
37531
37532
37533
37534
37535
37536
37537
37538
37539
37540
37541
37542
37543
37544
37545
37546
37547
37548
37549
37550
37551
37552 for ac_func in fchmodat fstatat mkdirat openat unlinkat
37553 do
37554 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37555 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
37556 $as_echo_n "checking for $ac_func... " >&6; }
37557 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
37558   $as_echo_n "(cached) " >&6
37559 else
37560   cat >conftest.$ac_ext <<_ACEOF
37561 /* confdefs.h.  */
37562 _ACEOF
37563 cat confdefs.h >>conftest.$ac_ext
37564 cat >>conftest.$ac_ext <<_ACEOF
37565 /* end confdefs.h.  */
37566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
37567    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37568 #define $ac_func innocuous_$ac_func
37569
37570 /* System header to define __stub macros and hopefully few prototypes,
37571     which can conflict with char $ac_func (); below.
37572     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37573     <limits.h> exists even on freestanding compilers.  */
37574
37575 #ifdef __STDC__
37576 # include <limits.h>
37577 #else
37578 # include <assert.h>
37579 #endif
37580
37581 #undef $ac_func
37582
37583 /* Override any GCC internal prototype to avoid an error.
37584    Use char because int might match the return type of a GCC
37585    builtin and then its argument prototype would still apply.  */
37586 #ifdef __cplusplus
37587 extern "C"
37588 #endif
37589 char $ac_func ();
37590 /* The GNU C library defines this for functions which it implements
37591     to always fail with ENOSYS.  Some functions are actually named
37592     something starting with __ and the normal name is an alias.  */
37593 #if defined __stub_$ac_func || defined __stub___$ac_func
37594 choke me
37595 #endif
37596
37597 int
37598 main ()
37599 {
37600 return $ac_func ();
37601   ;
37602   return 0;
37603 }
37604 _ACEOF
37605 rm -f conftest.$ac_objext conftest$ac_exeext
37606 if { (ac_try="$ac_link"
37607 case "(($ac_try" in
37608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37609   *) ac_try_echo=$ac_try;;
37610 esac
37611 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37612 $as_echo "$ac_try_echo") >&5
37613   (eval "$ac_link") 2>conftest.er1
37614   ac_status=$?
37615   grep -v '^ *+' conftest.er1 >conftest.err
37616   rm -f conftest.er1
37617   cat conftest.err >&5
37618   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37619   (exit $ac_status); } && {
37620          test -z "$ac_c_werror_flag" ||
37621          test ! -s conftest.err
37622        } && test -s conftest$ac_exeext && {
37623          test "$cross_compiling" = yes ||
37624          $as_test_x conftest$ac_exeext
37625        }; then
37626   eval "$as_ac_var=yes"
37627 else
37628   $as_echo "$as_me: failed program was:" >&5
37629 sed 's/^/| /' conftest.$ac_ext >&5
37630
37631         eval "$as_ac_var=no"
37632 fi
37633
37634 rm -rf conftest.dSYM
37635 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37636       conftest$ac_exeext conftest.$ac_ext
37637 fi
37638 ac_res=`eval 'as_val=${'$as_ac_var'}
37639                  $as_echo "$as_val"'`
37640                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
37641 $as_echo "$ac_res" >&6; }
37642 as_val=`eval 'as_val=${'$as_ac_var'}
37643                  $as_echo "$as_val"'`
37644    if test "x$as_val" = x""yes; then
37645   cat >>confdefs.h <<_ACEOF
37646 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37647 _ACEOF
37648
37649 else
37650
37651     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
37652
37653 fi
37654 done
37655
37656
37657
37658
37659   case $ac_cv_func_openat+$ac_cv_func_lstat_dereferences_slashed_symlink in
37660   yes+yes)
37661     # GNU/Hurd has unlinkat, but it has the same bug as unlink.
37662     if test $REPLACE_UNLINK = 1; then
37663
37664
37665
37666
37667
37668
37669
37670
37671   gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
37672
37673       REPLACE_UNLINKAT=1
37674     fi ;;
37675   yes+*)
37676     # Solaris 9 has *at functions, but uniformly mishandles trailing
37677     # slash in all of them.
37678
37679
37680
37681
37682
37683
37684
37685
37686   gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
37687
37688     REPLACE_OPENAT=1
37689
37690
37691
37692
37693
37694
37695
37696
37697   gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
37698
37699     REPLACE_FSTATAT=1
37700
37701
37702
37703
37704
37705
37706
37707
37708   gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
37709
37710     REPLACE_UNLINKAT=1
37711     ;;
37712   *)
37713     HAVE_OPENAT=0
37714     HAVE_UNLINKAT=0 # No known system with unlinkat but not openat
37715     HAVE_FSTATAT=0 # No known system with fstatat but not openat
37716
37717
37718
37719   :
37720 ;;
37721   esac
37722   if test $ac_cv_func_fchmodat != yes; then
37723     HAVE_FCHMODAT=0
37724   fi
37725   if test $ac_cv_func_mkdirat != yes; then
37726     HAVE_MKDIRAT=0
37727   fi
37728
37729
37730
37731   { $as_echo "$as_me:$LINENO: checking for fchownat" >&5
37732 $as_echo_n "checking for fchownat... " >&6; }
37733 if test "${ac_cv_func_fchownat+set}" = set; then
37734   $as_echo_n "(cached) " >&6
37735 else
37736   cat >conftest.$ac_ext <<_ACEOF
37737 /* confdefs.h.  */
37738 _ACEOF
37739 cat confdefs.h >>conftest.$ac_ext
37740 cat >>conftest.$ac_ext <<_ACEOF
37741 /* end confdefs.h.  */
37742 /* Define fchownat to an innocuous variant, in case <limits.h> declares fchownat.
37743    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
37744 #define fchownat innocuous_fchownat
37745
37746 /* System header to define __stub macros and hopefully few prototypes,
37747     which can conflict with char fchownat (); below.
37748     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
37749     <limits.h> exists even on freestanding compilers.  */
37750
37751 #ifdef __STDC__
37752 # include <limits.h>
37753 #else
37754 # include <assert.h>
37755 #endif
37756
37757 #undef fchownat
37758
37759 /* Override any GCC internal prototype to avoid an error.
37760    Use char because int might match the return type of a GCC
37761    builtin and then its argument prototype would still apply.  */
37762 #ifdef __cplusplus
37763 extern "C"
37764 #endif
37765 char fchownat ();
37766 /* The GNU C library defines this for functions which it implements
37767     to always fail with ENOSYS.  Some functions are actually named
37768     something starting with __ and the normal name is an alias.  */
37769 #if defined __stub_fchownat || defined __stub___fchownat
37770 choke me
37771 #endif
37772
37773 int
37774 main ()
37775 {
37776 return fchownat ();
37777   ;
37778   return 0;
37779 }
37780 _ACEOF
37781 rm -f conftest.$ac_objext conftest$ac_exeext
37782 if { (ac_try="$ac_link"
37783 case "(($ac_try" in
37784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37785   *) ac_try_echo=$ac_try;;
37786 esac
37787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37788 $as_echo "$ac_try_echo") >&5
37789   (eval "$ac_link") 2>conftest.er1
37790   ac_status=$?
37791   grep -v '^ *+' conftest.er1 >conftest.err
37792   rm -f conftest.er1
37793   cat conftest.err >&5
37794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37795   (exit $ac_status); } && {
37796          test -z "$ac_c_werror_flag" ||
37797          test ! -s conftest.err
37798        } && test -s conftest$ac_exeext && {
37799          test "$cross_compiling" = yes ||
37800          $as_test_x conftest$ac_exeext
37801        }; then
37802   ac_cv_func_fchownat=yes
37803 else
37804   $as_echo "$as_me: failed program was:" >&5
37805 sed 's/^/| /' conftest.$ac_ext >&5
37806
37807         ac_cv_func_fchownat=no
37808 fi
37809
37810 rm -rf conftest.dSYM
37811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
37812       conftest$ac_exeext conftest.$ac_ext
37813 fi
37814 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fchownat" >&5
37815 $as_echo "$ac_cv_func_fchownat" >&6; }
37816 if test "x$ac_cv_func_fchownat" = x""yes; then
37817
37818
37819
37820   { $as_echo "$as_me:$LINENO: checking whether fchownat works with AT_SYMLINK_NOFOLLOW" >&5
37821 $as_echo_n "checking whether fchownat works with AT_SYMLINK_NOFOLLOW... " >&6; }
37822 if test "${gl_cv_func_fchownat_nofollow_works+set}" = set; then
37823   $as_echo_n "(cached) " >&6
37824 else
37825
37826      gl_dangle=conftest.dangle
37827      # Remove any remnants of a previous test.
37828      rm -f $gl_dangle
37829      # Arrange for deletion of the temporary file this test creates.
37830      ac_clean_files="$ac_clean_files $gl_dangle"
37831      ln -s conftest.no-such $gl_dangle
37832      if test "$cross_compiling" = yes; then
37833   gl_cv_func_fchownat_nofollow_works=no
37834 else
37835   cat >conftest.$ac_ext <<_ACEOF
37836 /* confdefs.h.  */
37837 _ACEOF
37838 cat confdefs.h >>conftest.$ac_ext
37839 cat >>conftest.$ac_ext <<_ACEOF
37840 /* end confdefs.h.  */
37841
37842 #include <fcntl.h>
37843 #include <unistd.h>
37844 #include <stdlib.h>
37845 #include <errno.h>
37846 #include <sys/types.h>
37847 int
37848 main ()
37849 {
37850   return (fchownat (AT_FDCWD, "$gl_dangle", -1, getgid (),
37851                     AT_SYMLINK_NOFOLLOW) != 0
37852           && errno == ENOENT);
37853 }
37854
37855 _ACEOF
37856 rm -f conftest$ac_exeext
37857 if { (ac_try="$ac_link"
37858 case "(($ac_try" in
37859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37860   *) ac_try_echo=$ac_try;;
37861 esac
37862 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37863 $as_echo "$ac_try_echo") >&5
37864   (eval "$ac_link") 2>&5
37865   ac_status=$?
37866   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37867   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37868   { (case "(($ac_try" in
37869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37870   *) ac_try_echo=$ac_try;;
37871 esac
37872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37873 $as_echo "$ac_try_echo") >&5
37874   (eval "$ac_try") 2>&5
37875   ac_status=$?
37876   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37877   (exit $ac_status); }; }; then
37878   gl_cv_func_fchownat_nofollow_works=yes
37879 else
37880   $as_echo "$as_me: program exited with status $ac_status" >&5
37881 $as_echo "$as_me: failed program was:" >&5
37882 sed 's/^/| /' conftest.$ac_ext >&5
37883
37884 ( exit $ac_status )
37885 gl_cv_func_fchownat_nofollow_works=no
37886 fi
37887 rm -rf conftest.dSYM
37888 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37889 fi
37890
37891
37892
37893 fi
37894 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_nofollow_works" >&5
37895 $as_echo "$gl_cv_func_fchownat_nofollow_works" >&6; }
37896   if test $gl_cv_func_fchownat_nofollow_works = no; then
37897   REPLACE_FCHOWNAT=1
37898
37899 cat >>confdefs.h <<\_ACEOF
37900 #define FCHOWNAT_NOFOLLOW_BUG 1
37901 _ACEOF
37902
37903
37904 fi
37905
37906
37907
37908
37909
37910   { $as_echo "$as_me:$LINENO: checking whether fchownat works with an empty file name" >&5
37911 $as_echo_n "checking whether fchownat works with an empty file name... " >&6; }
37912 if test "${gl_cv_func_fchownat_empty_filename_works+set}" = set; then
37913   $as_echo_n "(cached) " >&6
37914 else
37915   if test "$cross_compiling" = yes; then
37916   gl_cv_func_fchownat_empty_filename_works="guessing no"
37917 else
37918   cat >conftest.$ac_ext <<_ACEOF
37919 /* confdefs.h.  */
37920 _ACEOF
37921 cat confdefs.h >>conftest.$ac_ext
37922 cat >>conftest.$ac_ext <<_ACEOF
37923 /* end confdefs.h.  */
37924 #include <unistd.h>
37925             #include <fcntl.h>
37926
37927 int
37928 main ()
37929 {
37930 int fd;
37931             int ret;
37932             if (mkdir ("conftestdir", 0700) < 0)
37933               return 2;
37934             fd = open ("conftestdir", O_RDONLY);
37935             if (fd < 0)
37936               return 3;
37937             ret = fchownat (fd, "", -1, -1, 0);
37938             close (fd);
37939             rmdir ("conftestdir");
37940             return ret == 0;
37941
37942   ;
37943   return 0;
37944 }
37945 _ACEOF
37946 rm -f conftest$ac_exeext
37947 if { (ac_try="$ac_link"
37948 case "(($ac_try" in
37949   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37950   *) ac_try_echo=$ac_try;;
37951 esac
37952 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37953 $as_echo "$ac_try_echo") >&5
37954   (eval "$ac_link") 2>&5
37955   ac_status=$?
37956   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37957   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
37958   { (case "(($ac_try" in
37959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
37960   *) ac_try_echo=$ac_try;;
37961 esac
37962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
37963 $as_echo "$ac_try_echo") >&5
37964   (eval "$ac_try") 2>&5
37965   ac_status=$?
37966   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
37967   (exit $ac_status); }; }; then
37968   gl_cv_func_fchownat_empty_filename_works=yes
37969 else
37970   $as_echo "$as_me: program exited with status $ac_status" >&5
37971 $as_echo "$as_me: failed program was:" >&5
37972 sed 's/^/| /' conftest.$ac_ext >&5
37973
37974 ( exit $ac_status )
37975 gl_cv_func_fchownat_empty_filename_works=no
37976 fi
37977 rm -rf conftest.dSYM
37978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
37979 fi
37980
37981
37982
37983 fi
37984 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_fchownat_empty_filename_works" >&5
37985 $as_echo "$gl_cv_func_fchownat_empty_filename_works" >&6; }
37986   if test "$gl_cv_func_fchownat_empty_filename_works" != yes; then
37987   REPLACE_FCHOWNAT=1
37988
37989 cat >>confdefs.h <<\_ACEOF
37990 #define FCHOWNAT_EMPTY_FILENAME_BUG 1
37991 _ACEOF
37992
37993
37994 fi
37995
37996
37997      if test $REPLACE_CHOWN = 1; then
37998        REPLACE_FCHOWNAT=1
37999      fi
38000 else
38001   HAVE_FCHOWNAT=0
38002 fi
38003
38004   if test $HAVE_FCHOWNAT = 0 || test $REPLACE_FCHOWNAT = 1; then
38005
38006
38007
38008
38009
38010
38011
38012
38013   gl_LIBOBJS="$gl_LIBOBJS fchownat.$ac_objext"
38014
38015   fi
38016
38017
38018   # Code from module openat-die:
38019   # Code from module parse-datetime:
38020
38021
38022
38023
38024
38025
38026   { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
38027 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
38028 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
38029   $as_echo_n "(cached) " >&6
38030 else
38031   cat >conftest.$ac_ext <<_ACEOF
38032 /* confdefs.h.  */
38033 _ACEOF
38034 cat confdefs.h >>conftest.$ac_ext
38035 cat >>conftest.$ac_ext <<_ACEOF
38036 /* end confdefs.h.  */
38037 #include <sys/types.h>
38038 #include <$ac_cv_struct_tm>
38039
38040
38041 int
38042 main ()
38043 {
38044 static struct tm ac_aggr;
38045 if (ac_aggr.tm_zone)
38046 return 0;
38047   ;
38048   return 0;
38049 }
38050 _ACEOF
38051 rm -f conftest.$ac_objext
38052 if { (ac_try="$ac_compile"
38053 case "(($ac_try" in
38054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38055   *) ac_try_echo=$ac_try;;
38056 esac
38057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38058 $as_echo "$ac_try_echo") >&5
38059   (eval "$ac_compile") 2>conftest.er1
38060   ac_status=$?
38061   grep -v '^ *+' conftest.er1 >conftest.err
38062   rm -f conftest.er1
38063   cat conftest.err >&5
38064   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38065   (exit $ac_status); } && {
38066          test -z "$ac_c_werror_flag" ||
38067          test ! -s conftest.err
38068        } && test -s conftest.$ac_objext; then
38069   ac_cv_member_struct_tm_tm_zone=yes
38070 else
38071   $as_echo "$as_me: failed program was:" >&5
38072 sed 's/^/| /' conftest.$ac_ext >&5
38073
38074         cat >conftest.$ac_ext <<_ACEOF
38075 /* confdefs.h.  */
38076 _ACEOF
38077 cat confdefs.h >>conftest.$ac_ext
38078 cat >>conftest.$ac_ext <<_ACEOF
38079 /* end confdefs.h.  */
38080 #include <sys/types.h>
38081 #include <$ac_cv_struct_tm>
38082
38083
38084 int
38085 main ()
38086 {
38087 static struct tm ac_aggr;
38088 if (sizeof ac_aggr.tm_zone)
38089 return 0;
38090   ;
38091   return 0;
38092 }
38093 _ACEOF
38094 rm -f conftest.$ac_objext
38095 if { (ac_try="$ac_compile"
38096 case "(($ac_try" in
38097   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38098   *) ac_try_echo=$ac_try;;
38099 esac
38100 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38101 $as_echo "$ac_try_echo") >&5
38102   (eval "$ac_compile") 2>conftest.er1
38103   ac_status=$?
38104   grep -v '^ *+' conftest.er1 >conftest.err
38105   rm -f conftest.er1
38106   cat conftest.err >&5
38107   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38108   (exit $ac_status); } && {
38109          test -z "$ac_c_werror_flag" ||
38110          test ! -s conftest.err
38111        } && test -s conftest.$ac_objext; then
38112   ac_cv_member_struct_tm_tm_zone=yes
38113 else
38114   $as_echo "$as_me: failed program was:" >&5
38115 sed 's/^/| /' conftest.$ac_ext >&5
38116
38117         ac_cv_member_struct_tm_tm_zone=no
38118 fi
38119
38120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38121 fi
38122
38123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38124 fi
38125 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
38126 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
38127 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then
38128
38129 cat >>confdefs.h <<_ACEOF
38130 #define HAVE_STRUCT_TM_TM_ZONE 1
38131 _ACEOF
38132
38133
38134 fi
38135
38136 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
38137
38138 cat >>confdefs.h <<\_ACEOF
38139 #define HAVE_TM_ZONE 1
38140 _ACEOF
38141
38142 else
38143   { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
38144 $as_echo_n "checking whether tzname is declared... " >&6; }
38145 if test "${ac_cv_have_decl_tzname+set}" = set; then
38146   $as_echo_n "(cached) " >&6
38147 else
38148   cat >conftest.$ac_ext <<_ACEOF
38149 /* confdefs.h.  */
38150 _ACEOF
38151 cat confdefs.h >>conftest.$ac_ext
38152 cat >>conftest.$ac_ext <<_ACEOF
38153 /* end confdefs.h.  */
38154 #include <time.h>
38155
38156 int
38157 main ()
38158 {
38159 #ifndef tzname
38160   (void) tzname;
38161 #endif
38162
38163   ;
38164   return 0;
38165 }
38166 _ACEOF
38167 rm -f conftest.$ac_objext
38168 if { (ac_try="$ac_compile"
38169 case "(($ac_try" in
38170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38171   *) ac_try_echo=$ac_try;;
38172 esac
38173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38174 $as_echo "$ac_try_echo") >&5
38175   (eval "$ac_compile") 2>conftest.er1
38176   ac_status=$?
38177   grep -v '^ *+' conftest.er1 >conftest.err
38178   rm -f conftest.er1
38179   cat conftest.err >&5
38180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38181   (exit $ac_status); } && {
38182          test -z "$ac_c_werror_flag" ||
38183          test ! -s conftest.err
38184        } && test -s conftest.$ac_objext; then
38185   ac_cv_have_decl_tzname=yes
38186 else
38187   $as_echo "$as_me: failed program was:" >&5
38188 sed 's/^/| /' conftest.$ac_ext >&5
38189
38190         ac_cv_have_decl_tzname=no
38191 fi
38192
38193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38194 fi
38195 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
38196 $as_echo "$ac_cv_have_decl_tzname" >&6; }
38197 if test "x$ac_cv_have_decl_tzname" = x""yes; then
38198
38199 cat >>confdefs.h <<_ACEOF
38200 #define HAVE_DECL_TZNAME 1
38201 _ACEOF
38202
38203
38204 else
38205   cat >>confdefs.h <<_ACEOF
38206 #define HAVE_DECL_TZNAME 0
38207 _ACEOF
38208
38209
38210 fi
38211
38212
38213   { $as_echo "$as_me:$LINENO: checking for tzname" >&5
38214 $as_echo_n "checking for tzname... " >&6; }
38215 if test "${ac_cv_var_tzname+set}" = set; then
38216   $as_echo_n "(cached) " >&6
38217 else
38218   cat >conftest.$ac_ext <<_ACEOF
38219 /* confdefs.h.  */
38220 _ACEOF
38221 cat confdefs.h >>conftest.$ac_ext
38222 cat >>conftest.$ac_ext <<_ACEOF
38223 /* end confdefs.h.  */
38224 #include <time.h>
38225 #if !HAVE_DECL_TZNAME
38226 extern char *tzname[];
38227 #endif
38228
38229 int
38230 main ()
38231 {
38232 return tzname[0][0];
38233   ;
38234   return 0;
38235 }
38236 _ACEOF
38237 rm -f conftest.$ac_objext conftest$ac_exeext
38238 if { (ac_try="$ac_link"
38239 case "(($ac_try" in
38240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38241   *) ac_try_echo=$ac_try;;
38242 esac
38243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38244 $as_echo "$ac_try_echo") >&5
38245   (eval "$ac_link") 2>conftest.er1
38246   ac_status=$?
38247   grep -v '^ *+' conftest.er1 >conftest.err
38248   rm -f conftest.er1
38249   cat conftest.err >&5
38250   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38251   (exit $ac_status); } && {
38252          test -z "$ac_c_werror_flag" ||
38253          test ! -s conftest.err
38254        } && test -s conftest$ac_exeext && {
38255          test "$cross_compiling" = yes ||
38256          $as_test_x conftest$ac_exeext
38257        }; then
38258   ac_cv_var_tzname=yes
38259 else
38260   $as_echo "$as_me: failed program was:" >&5
38261 sed 's/^/| /' conftest.$ac_ext >&5
38262
38263         ac_cv_var_tzname=no
38264 fi
38265
38266 rm -rf conftest.dSYM
38267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38268       conftest$ac_exeext conftest.$ac_ext
38269 fi
38270 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
38271 $as_echo "$ac_cv_var_tzname" >&6; }
38272   if test $ac_cv_var_tzname = yes; then
38273
38274 cat >>confdefs.h <<\_ACEOF
38275 #define HAVE_TZNAME 1
38276 _ACEOF
38277
38278   fi
38279 fi
38280
38281
38282
38283   cat >conftest.$ac_ext <<_ACEOF
38284 /* confdefs.h.  */
38285 _ACEOF
38286 cat confdefs.h >>conftest.$ac_ext
38287 cat >>conftest.$ac_ext <<_ACEOF
38288 /* end confdefs.h.  */
38289
38290 #include <time.h> /* for time_t */
38291 #include <limits.h> /* for CHAR_BIT, LONG_MIN, LONG_MAX */
38292 #define TYPE_MINIMUM(t) \
38293   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
38294 #define TYPE_MAXIMUM(t) \
38295   ((t) ((t) 0 < (t) -1 \
38296         ? (t) -1 \
38297         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
38298 typedef int verify_min[2 * (LONG_MIN <= TYPE_MINIMUM (time_t)) - 1];
38299 typedef int verify_max[2 * (TYPE_MAXIMUM (time_t) <= LONG_MAX) - 1];
38300
38301 _ACEOF
38302 rm -f conftest.$ac_objext
38303 if { (ac_try="$ac_compile"
38304 case "(($ac_try" in
38305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38306   *) ac_try_echo=$ac_try;;
38307 esac
38308 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38309 $as_echo "$ac_try_echo") >&5
38310   (eval "$ac_compile") 2>conftest.er1
38311   ac_status=$?
38312   grep -v '^ *+' conftest.er1 >conftest.err
38313   rm -f conftest.er1
38314   cat conftest.err >&5
38315   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38316   (exit $ac_status); } && {
38317          test -z "$ac_c_werror_flag" ||
38318          test ! -s conftest.err
38319        } && test -s conftest.$ac_objext; then
38320
38321 cat >>confdefs.h <<\_ACEOF
38322 #define TIME_T_FITS_IN_LONG_INT 1
38323 _ACEOF
38324
38325
38326 else
38327   $as_echo "$as_me: failed program was:" >&5
38328 sed 's/^/| /' conftest.$ac_ext >&5
38329
38330
38331 fi
38332
38333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38334
38335   # Code from module pathmax:
38336
38337
38338
38339
38340
38341
38342
38343
38344
38345
38346
38347
38348
38349
38350   # Code from module priv-set:
38351
38352
38353
38354 for ac_func in getppriv
38355 do
38356 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38357 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38358 $as_echo_n "checking for $ac_func... " >&6; }
38359 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38360   $as_echo_n "(cached) " >&6
38361 else
38362   cat >conftest.$ac_ext <<_ACEOF
38363 /* confdefs.h.  */
38364 _ACEOF
38365 cat confdefs.h >>conftest.$ac_ext
38366 cat >>conftest.$ac_ext <<_ACEOF
38367 /* end confdefs.h.  */
38368 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38369    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38370 #define $ac_func innocuous_$ac_func
38371
38372 /* System header to define __stub macros and hopefully few prototypes,
38373     which can conflict with char $ac_func (); below.
38374     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38375     <limits.h> exists even on freestanding compilers.  */
38376
38377 #ifdef __STDC__
38378 # include <limits.h>
38379 #else
38380 # include <assert.h>
38381 #endif
38382
38383 #undef $ac_func
38384
38385 /* Override any GCC internal prototype to avoid an error.
38386    Use char because int might match the return type of a GCC
38387    builtin and then its argument prototype would still apply.  */
38388 #ifdef __cplusplus
38389 extern "C"
38390 #endif
38391 char $ac_func ();
38392 /* The GNU C library defines this for functions which it implements
38393     to always fail with ENOSYS.  Some functions are actually named
38394     something starting with __ and the normal name is an alias.  */
38395 #if defined __stub_$ac_func || defined __stub___$ac_func
38396 choke me
38397 #endif
38398
38399 int
38400 main ()
38401 {
38402 return $ac_func ();
38403   ;
38404   return 0;
38405 }
38406 _ACEOF
38407 rm -f conftest.$ac_objext conftest$ac_exeext
38408 if { (ac_try="$ac_link"
38409 case "(($ac_try" in
38410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38411   *) ac_try_echo=$ac_try;;
38412 esac
38413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38414 $as_echo "$ac_try_echo") >&5
38415   (eval "$ac_link") 2>conftest.er1
38416   ac_status=$?
38417   grep -v '^ *+' conftest.er1 >conftest.err
38418   rm -f conftest.er1
38419   cat conftest.err >&5
38420   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38421   (exit $ac_status); } && {
38422          test -z "$ac_c_werror_flag" ||
38423          test ! -s conftest.err
38424        } && test -s conftest$ac_exeext && {
38425          test "$cross_compiling" = yes ||
38426          $as_test_x conftest$ac_exeext
38427        }; then
38428   eval "$as_ac_var=yes"
38429 else
38430   $as_echo "$as_me: failed program was:" >&5
38431 sed 's/^/| /' conftest.$ac_ext >&5
38432
38433         eval "$as_ac_var=no"
38434 fi
38435
38436 rm -rf conftest.dSYM
38437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38438       conftest$ac_exeext conftest.$ac_ext
38439 fi
38440 ac_res=`eval 'as_val=${'$as_ac_var'}
38441                  $as_echo "$as_val"'`
38442                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38443 $as_echo "$ac_res" >&6; }
38444 as_val=`eval 'as_val=${'$as_ac_var'}
38445                  $as_echo "$as_val"'`
38446    if test "x$as_val" = x""yes; then
38447   cat >>confdefs.h <<_ACEOF
38448 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38449 _ACEOF
38450
38451 fi
38452 done
38453
38454
38455
38456
38457
38458
38459
38460
38461   # Code from module progname:
38462   { $as_echo "$as_me:$LINENO: checking whether program_invocation_name is declared" >&5
38463 $as_echo_n "checking whether program_invocation_name is declared... " >&6; }
38464 if test "${ac_cv_have_decl_program_invocation_name+set}" = set; then
38465   $as_echo_n "(cached) " >&6
38466 else
38467   cat >conftest.$ac_ext <<_ACEOF
38468 /* confdefs.h.  */
38469 _ACEOF
38470 cat confdefs.h >>conftest.$ac_ext
38471 cat >>conftest.$ac_ext <<_ACEOF
38472 /* end confdefs.h.  */
38473 #include <errno.h>
38474
38475 int
38476 main ()
38477 {
38478 #ifndef program_invocation_name
38479   (void) program_invocation_name;
38480 #endif
38481
38482   ;
38483   return 0;
38484 }
38485 _ACEOF
38486 rm -f conftest.$ac_objext
38487 if { (ac_try="$ac_compile"
38488 case "(($ac_try" in
38489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38490   *) ac_try_echo=$ac_try;;
38491 esac
38492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38493 $as_echo "$ac_try_echo") >&5
38494   (eval "$ac_compile") 2>conftest.er1
38495   ac_status=$?
38496   grep -v '^ *+' conftest.er1 >conftest.err
38497   rm -f conftest.er1
38498   cat conftest.err >&5
38499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38500   (exit $ac_status); } && {
38501          test -z "$ac_c_werror_flag" ||
38502          test ! -s conftest.err
38503        } && test -s conftest.$ac_objext; then
38504   ac_cv_have_decl_program_invocation_name=yes
38505 else
38506   $as_echo "$as_me: failed program was:" >&5
38507 sed 's/^/| /' conftest.$ac_ext >&5
38508
38509         ac_cv_have_decl_program_invocation_name=no
38510 fi
38511
38512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38513 fi
38514 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_name" >&5
38515 $as_echo "$ac_cv_have_decl_program_invocation_name" >&6; }
38516 if test "x$ac_cv_have_decl_program_invocation_name" = x""yes; then
38517
38518 cat >>confdefs.h <<_ACEOF
38519 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 1
38520 _ACEOF
38521
38522
38523 else
38524   cat >>confdefs.h <<_ACEOF
38525 #define HAVE_DECL_PROGRAM_INVOCATION_NAME 0
38526 _ACEOF
38527
38528
38529 fi
38530
38531
38532   { $as_echo "$as_me:$LINENO: checking whether program_invocation_short_name is declared" >&5
38533 $as_echo_n "checking whether program_invocation_short_name is declared... " >&6; }
38534 if test "${ac_cv_have_decl_program_invocation_short_name+set}" = set; then
38535   $as_echo_n "(cached) " >&6
38536 else
38537   cat >conftest.$ac_ext <<_ACEOF
38538 /* confdefs.h.  */
38539 _ACEOF
38540 cat confdefs.h >>conftest.$ac_ext
38541 cat >>conftest.$ac_ext <<_ACEOF
38542 /* end confdefs.h.  */
38543 #include <errno.h>
38544
38545 int
38546 main ()
38547 {
38548 #ifndef program_invocation_short_name
38549   (void) program_invocation_short_name;
38550 #endif
38551
38552   ;
38553   return 0;
38554 }
38555 _ACEOF
38556 rm -f conftest.$ac_objext
38557 if { (ac_try="$ac_compile"
38558 case "(($ac_try" in
38559   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38560   *) ac_try_echo=$ac_try;;
38561 esac
38562 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38563 $as_echo "$ac_try_echo") >&5
38564   (eval "$ac_compile") 2>conftest.er1
38565   ac_status=$?
38566   grep -v '^ *+' conftest.er1 >conftest.err
38567   rm -f conftest.er1
38568   cat conftest.err >&5
38569   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38570   (exit $ac_status); } && {
38571          test -z "$ac_c_werror_flag" ||
38572          test ! -s conftest.err
38573        } && test -s conftest.$ac_objext; then
38574   ac_cv_have_decl_program_invocation_short_name=yes
38575 else
38576   $as_echo "$as_me: failed program was:" >&5
38577 sed 's/^/| /' conftest.$ac_ext >&5
38578
38579         ac_cv_have_decl_program_invocation_short_name=no
38580 fi
38581
38582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38583 fi
38584 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_program_invocation_short_name" >&5
38585 $as_echo "$ac_cv_have_decl_program_invocation_short_name" >&6; }
38586 if test "x$ac_cv_have_decl_program_invocation_short_name" = x""yes; then
38587
38588 cat >>confdefs.h <<_ACEOF
38589 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 1
38590 _ACEOF
38591
38592
38593 else
38594   cat >>confdefs.h <<_ACEOF
38595 #define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME 0
38596 _ACEOF
38597
38598
38599 fi
38600
38601
38602   # Code from module quote:
38603
38604
38605
38606
38607
38608
38609
38610
38611
38612   gl_LIBOBJS="$gl_LIBOBJS quote.$ac_objext"
38613
38614
38615
38616   # Code from module quotearg:
38617
38618
38619
38620
38621
38622
38623
38624
38625
38626   gl_LIBOBJS="$gl_LIBOBJS quotearg.$ac_objext"
38627
38628
38629   # Code from module quotearg-simple:
38630   # Code from module rawmemchr:
38631
38632
38633
38634
38635
38636
38637
38638
38639
38640
38641
38642
38643
38644 for ac_func in rawmemchr
38645 do
38646 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
38647 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
38648 $as_echo_n "checking for $ac_func... " >&6; }
38649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
38650   $as_echo_n "(cached) " >&6
38651 else
38652   cat >conftest.$ac_ext <<_ACEOF
38653 /* confdefs.h.  */
38654 _ACEOF
38655 cat confdefs.h >>conftest.$ac_ext
38656 cat >>conftest.$ac_ext <<_ACEOF
38657 /* end confdefs.h.  */
38658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
38659    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
38660 #define $ac_func innocuous_$ac_func
38661
38662 /* System header to define __stub macros and hopefully few prototypes,
38663     which can conflict with char $ac_func (); below.
38664     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
38665     <limits.h> exists even on freestanding compilers.  */
38666
38667 #ifdef __STDC__
38668 # include <limits.h>
38669 #else
38670 # include <assert.h>
38671 #endif
38672
38673 #undef $ac_func
38674
38675 /* Override any GCC internal prototype to avoid an error.
38676    Use char because int might match the return type of a GCC
38677    builtin and then its argument prototype would still apply.  */
38678 #ifdef __cplusplus
38679 extern "C"
38680 #endif
38681 char $ac_func ();
38682 /* The GNU C library defines this for functions which it implements
38683     to always fail with ENOSYS.  Some functions are actually named
38684     something starting with __ and the normal name is an alias.  */
38685 #if defined __stub_$ac_func || defined __stub___$ac_func
38686 choke me
38687 #endif
38688
38689 int
38690 main ()
38691 {
38692 return $ac_func ();
38693   ;
38694   return 0;
38695 }
38696 _ACEOF
38697 rm -f conftest.$ac_objext conftest$ac_exeext
38698 if { (ac_try="$ac_link"
38699 case "(($ac_try" in
38700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38701   *) ac_try_echo=$ac_try;;
38702 esac
38703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38704 $as_echo "$ac_try_echo") >&5
38705   (eval "$ac_link") 2>conftest.er1
38706   ac_status=$?
38707   grep -v '^ *+' conftest.er1 >conftest.err
38708   rm -f conftest.er1
38709   cat conftest.err >&5
38710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38711   (exit $ac_status); } && {
38712          test -z "$ac_c_werror_flag" ||
38713          test ! -s conftest.err
38714        } && test -s conftest$ac_exeext && {
38715          test "$cross_compiling" = yes ||
38716          $as_test_x conftest$ac_exeext
38717        }; then
38718   eval "$as_ac_var=yes"
38719 else
38720   $as_echo "$as_me: failed program was:" >&5
38721 sed 's/^/| /' conftest.$ac_ext >&5
38722
38723         eval "$as_ac_var=no"
38724 fi
38725
38726 rm -rf conftest.dSYM
38727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
38728       conftest$ac_exeext conftest.$ac_ext
38729 fi
38730 ac_res=`eval 'as_val=${'$as_ac_var'}
38731                  $as_echo "$as_val"'`
38732                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
38733 $as_echo "$ac_res" >&6; }
38734 as_val=`eval 'as_val=${'$as_ac_var'}
38735                  $as_echo "$as_val"'`
38736    if test "x$as_val" = x""yes; then
38737   cat >>confdefs.h <<_ACEOF
38738 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
38739 _ACEOF
38740
38741 else
38742
38743     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
38744
38745 fi
38746 done
38747
38748
38749   if test $ac_cv_func_rawmemchr = no; then
38750     HAVE_RAWMEMCHR=0
38751     :
38752   fi
38753
38754
38755
38756
38757   GNULIB_RAWMEMCHR=1
38758
38759
38760
38761 cat >>confdefs.h <<\_ACEOF
38762 #define GNULIB_TEST_RAWMEMCHR 1
38763 _ACEOF
38764
38765
38766
38767   # Code from module readlink:
38768
38769
38770
38771
38772
38773
38774
38775
38776   if test $ac_cv_func_readlink = no; then
38777     HAVE_READLINK=0
38778
38779
38780
38781
38782
38783
38784
38785
38786   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
38787
38788
38789   :
38790
38791   else
38792     { $as_echo "$as_me:$LINENO: checking whether readlink signature is correct" >&5
38793 $as_echo_n "checking whether readlink signature is correct... " >&6; }
38794 if test "${gl_cv_decl_readlink_works+set}" = set; then
38795   $as_echo_n "(cached) " >&6
38796 else
38797   cat >conftest.$ac_ext <<_ACEOF
38798 /* confdefs.h.  */
38799 _ACEOF
38800 cat confdefs.h >>conftest.$ac_ext
38801 cat >>conftest.$ac_ext <<_ACEOF
38802 /* end confdefs.h.  */
38803 #include <unistd.h>
38804       /* Cause compilation failure if original declaration has wrong type.  */
38805       ssize_t readlink (const char *, char *, size_t);
38806 int
38807 main ()
38808 {
38809
38810   ;
38811   return 0;
38812 }
38813 _ACEOF
38814 rm -f conftest.$ac_objext
38815 if { (ac_try="$ac_compile"
38816 case "(($ac_try" in
38817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38818   *) ac_try_echo=$ac_try;;
38819 esac
38820 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38821 $as_echo "$ac_try_echo") >&5
38822   (eval "$ac_compile") 2>conftest.er1
38823   ac_status=$?
38824   grep -v '^ *+' conftest.er1 >conftest.err
38825   rm -f conftest.er1
38826   cat conftest.err >&5
38827   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38828   (exit $ac_status); } && {
38829          test -z "$ac_c_werror_flag" ||
38830          test ! -s conftest.err
38831        } && test -s conftest.$ac_objext; then
38832   gl_cv_decl_readlink_works=yes
38833 else
38834   $as_echo "$as_me: failed program was:" >&5
38835 sed 's/^/| /' conftest.$ac_ext >&5
38836
38837         gl_cv_decl_readlink_works=no
38838 fi
38839
38840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38841 fi
38842 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_readlink_works" >&5
38843 $as_echo "$gl_cv_decl_readlink_works" >&6; }
38844             { $as_echo "$as_me:$LINENO: checking whether readlink handles trailing slash correctly" >&5
38845 $as_echo_n "checking whether readlink handles trailing slash correctly... " >&6; }
38846 if test "${gl_cv_func_readlink_works+set}" = set; then
38847   $as_echo_n "(cached) " >&6
38848 else
38849   # We have readlink, so assume ln -s works.
38850        ln -s conftest.no-such conftest.link
38851        ln -s conftest.link conftest.lnk2
38852        if test "$cross_compiling" = yes; then
38853   gl_cv_func_readlink_works="guessing no"
38854 else
38855   cat >conftest.$ac_ext <<_ACEOF
38856 /* confdefs.h.  */
38857 _ACEOF
38858 cat confdefs.h >>conftest.$ac_ext
38859 cat >>conftest.$ac_ext <<_ACEOF
38860 /* end confdefs.h.  */
38861 #include <unistd.h>
38862
38863 int
38864 main ()
38865 {
38866 char buf[20];
38867       return readlink ("conftest.lnk2/", buf, sizeof buf) != -1;
38868   ;
38869   return 0;
38870 }
38871 _ACEOF
38872 rm -f conftest$ac_exeext
38873 if { (ac_try="$ac_link"
38874 case "(($ac_try" in
38875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38876   *) ac_try_echo=$ac_try;;
38877 esac
38878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38879 $as_echo "$ac_try_echo") >&5
38880   (eval "$ac_link") 2>&5
38881   ac_status=$?
38882   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38883   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
38884   { (case "(($ac_try" in
38885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
38886   *) ac_try_echo=$ac_try;;
38887 esac
38888 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
38889 $as_echo "$ac_try_echo") >&5
38890   (eval "$ac_try") 2>&5
38891   ac_status=$?
38892   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
38893   (exit $ac_status); }; }; then
38894   gl_cv_func_readlink_works=yes
38895 else
38896   $as_echo "$as_me: program exited with status $ac_status" >&5
38897 $as_echo "$as_me: failed program was:" >&5
38898 sed 's/^/| /' conftest.$ac_ext >&5
38899
38900 ( exit $ac_status )
38901 gl_cv_func_readlink_works=no
38902 fi
38903 rm -rf conftest.dSYM
38904 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
38905 fi
38906
38907
38908       rm -f conftest.link conftest.lnk2
38909 fi
38910 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_readlink_works" >&5
38911 $as_echo "$gl_cv_func_readlink_works" >&6; }
38912     if test "$gl_cv_func_readlink_works" != yes; then
38913
38914 cat >>confdefs.h <<\_ACEOF
38915 #define READLINK_TRAILING_SLASH_BUG 1
38916 _ACEOF
38917
38918       REPLACE_READLINK=1
38919
38920
38921
38922
38923
38924
38925
38926
38927   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
38928
38929     elif test "$gl_cv_decl_readlink_works" != yes; then
38930       REPLACE_READLINK=1
38931
38932
38933
38934
38935
38936
38937
38938
38939   gl_LIBOBJS="$gl_LIBOBJS readlink.$ac_objext"
38940
38941     fi
38942   fi
38943
38944
38945
38946
38947   GNULIB_READLINK=1
38948
38949
38950
38951 cat >>confdefs.h <<\_ACEOF
38952 #define GNULIB_TEST_READLINK 1
38953 _ACEOF
38954
38955
38956
38957   # Code from module readlinkat:
38958
38959
38960
38961
38962
38963
38964
38965
38966
38967
38968   if test $ac_cv_func_readlinkat = no; then
38969     HAVE_READLINKAT=0
38970
38971
38972
38973
38974
38975
38976
38977
38978   gl_LIBOBJS="$gl_LIBOBJS readlinkat.$ac_objext"
38979
38980   fi
38981
38982
38983
38984
38985   GNULIB_READLINKAT=1
38986
38987
38988
38989 cat >>confdefs.h <<\_ACEOF
38990 #define GNULIB_TEST_READLINKAT 1
38991 _ACEOF
38992
38993
38994
38995   # Code from module realloc-posix:
38996
38997
38998
38999   if test $gl_cv_func_malloc_posix = yes; then
39000
39001 cat >>confdefs.h <<\_ACEOF
39002 #define HAVE_REALLOC_POSIX 1
39003 _ACEOF
39004
39005   else
39006
39007
39008
39009
39010
39011
39012
39013
39014
39015   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
39016
39017   REPLACE_REALLOC=1
39018
39019   fi
39020
39021
39022
39023
39024   GNULIB_REALLOC_POSIX=1
39025
39026
39027
39028 cat >>confdefs.h <<\_ACEOF
39029 #define GNULIB_TEST_REALLOC_POSIX 1
39030 _ACEOF
39031
39032
39033
39034   # Code from module regex:
39035
39036
39037 # Check whether --with-included-regex was given.
39038 if test "${with_included_regex+set}" = set; then
39039   withval=$with_included_regex;
39040 fi
39041
39042
39043   case $with_included_regex in #(
39044   yes|no) ac_use_included_regex=$with_included_regex
39045         ;;
39046   '')
39047     # If the system regex support is good enough that it passes the
39048     # following run test, then default to *not* using the included regex.c.
39049     # If cross compiling, assume the test would fail and use the included
39050     # regex.c.
39051     { $as_echo "$as_me:$LINENO: checking for working re_compile_pattern" >&5
39052 $as_echo_n "checking for working re_compile_pattern... " >&6; }
39053 if test "${gl_cv_func_re_compile_pattern_working+set}" = set; then
39054   $as_echo_n "(cached) " >&6
39055 else
39056   if test "$cross_compiling" = yes; then
39057          gl_cv_func_re_compile_pattern_working=no
39058 else
39059   cat >conftest.$ac_ext <<_ACEOF
39060 /* confdefs.h.  */
39061 _ACEOF
39062 cat confdefs.h >>conftest.$ac_ext
39063 cat >>conftest.$ac_ext <<_ACEOF
39064 /* end confdefs.h.  */
39065 $ac_includes_default
39066            #include <locale.h>
39067            #include <limits.h>
39068            #include <regex.h>
39069
39070 int
39071 main ()
39072 {
39073 int result = 0;
39074             static struct re_pattern_buffer regex;
39075             unsigned char folded_chars[UCHAR_MAX + 1];
39076             int i;
39077             const char *s;
39078             struct re_registers regs;
39079
39080             /* http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html
39081                This test needs valgrind to catch the bug on Debian
39082                GNU/Linux 3.1 x86, but it might catch the bug better
39083                on other platforms and it shouldn't hurt to try the
39084                test here.  */
39085             if (setlocale (LC_ALL, "en_US.UTF-8"))
39086               {
39087                 static char const pat[] = "insert into";
39088                 static char const data[] =
39089                   "\xFF\0\x12\xA2\xAA\xC4\xB1,K\x12\xC4\xB1*\xACK";
39090                 re_set_syntax (RE_SYNTAX_GREP | RE_HAT_LISTS_NOT_NEWLINE
39091                                | RE_ICASE);
39092                 memset (&regex, 0, sizeof regex);
39093                 s = re_compile_pattern (pat, sizeof pat - 1, &regex);
39094                 if (s)
39095                   result |= 1;
39096                 else if (re_search (&regex, data, sizeof data - 1,
39097                                     0, sizeof data - 1, &regs)
39098                          != -1)
39099                   result |= 1;
39100                 if (! setlocale (LC_ALL, "C"))
39101                   return 1;
39102               }
39103
39104             /* This test is from glibc bug 3957, reported by Andrew Mackey.  */
39105             re_set_syntax (RE_SYNTAX_EGREP | RE_HAT_LISTS_NOT_NEWLINE);
39106             memset (&regex, 0, sizeof regex);
39107             s = re_compile_pattern ("a[^x]b", 6, &regex);
39108             if (s)
39109               result |= 2;
39110             /* This should fail, but succeeds for glibc-2.5.  */
39111             else if (re_search (&regex, "a\nb", 3, 0, 3, &regs) != -1)
39112               result |= 2;
39113
39114             /* This regular expression is from Spencer ere test number 75
39115                in grep-2.3.  */
39116             re_set_syntax (RE_SYNTAX_POSIX_EGREP);
39117             memset (&regex, 0, sizeof regex);
39118             for (i = 0; i <= UCHAR_MAX; i++)
39119               folded_chars[i] = i;
39120             regex.translate = folded_chars;
39121             s = re_compile_pattern ("a[[:]:]]b\n", 11, &regex);
39122             /* This should fail with _Invalid character class name_ error.  */
39123             if (!s)
39124               result |= 4;
39125
39126             /* Ensure that [b-a] is diagnosed as invalid, when
39127                using RE_NO_EMPTY_RANGES. */
39128             re_set_syntax (RE_SYNTAX_POSIX_EGREP | RE_NO_EMPTY_RANGES);
39129             memset (&regex, 0, sizeof regex);
39130             s = re_compile_pattern ("a[b-a]", 6, &regex);
39131             if (s == 0)
39132               result |= 8;
39133
39134             /* This should succeed, but does not for glibc-2.1.3.  */
39135             memset (&regex, 0, sizeof regex);
39136             s = re_compile_pattern ("{1", 2, &regex);
39137             if (s)
39138               result |= 8;
39139
39140             /* The following example is derived from a problem report
39141                against gawk from Jorge Stolfi <stolfi@ic.unicamp.br>.  */
39142             memset (&regex, 0, sizeof regex);
39143             s = re_compile_pattern ("[an\371]*n", 7, &regex);
39144             if (s)
39145               result |= 8;
39146             /* This should match, but does not for glibc-2.2.1.  */
39147             else if (re_match (&regex, "an", 2, 0, &regs) != 2)
39148               result |= 8;
39149
39150             memset (&regex, 0, sizeof regex);
39151             s = re_compile_pattern ("x", 1, &regex);
39152             if (s)
39153               result |= 8;
39154             /* glibc-2.2.93 does not work with a negative RANGE argument.  */
39155             else if (re_search (&regex, "wxy", 3, 2, -2, &regs) != 1)
39156               result |= 8;
39157
39158             /* The version of regex.c in older versions of gnulib
39159                ignored RE_ICASE.  Detect that problem too.  */
39160             re_set_syntax (RE_SYNTAX_EMACS | RE_ICASE);
39161             memset (&regex, 0, sizeof regex);
39162             s = re_compile_pattern ("x", 1, &regex);
39163             if (s)
39164               result |= 16;
39165             else if (re_search (&regex, "WXY", 3, 0, 3, &regs) < 0)
39166               result |= 16;
39167
39168             /* Catch a bug reported by Vin Shelton in
39169                http://lists.gnu.org/archive/html/bug-coreutils/2007-06/msg00089.html
39170                */
39171             re_set_syntax (RE_SYNTAX_POSIX_BASIC
39172                            & ~RE_CONTEXT_INVALID_DUP
39173                            & ~RE_NO_EMPTY_RANGES);
39174             memset (&regex, 0, sizeof regex);
39175             s = re_compile_pattern ("[[:alnum:]_-]\\\\+$", 16, &regex);
39176             if (s)
39177               result |= 32;
39178
39179             /* REG_STARTEND was added to glibc on 2004-01-15.
39180                Reject older versions.  */
39181             if (! REG_STARTEND)
39182               result |= 64;
39183
39184 #if 0
39185             /* It would be nice to reject hosts whose regoff_t values are too
39186                narrow (including glibc on hosts with 64-bit ptrdiff_t and
39187                32-bit int), but we should wait until glibc implements this
39188                feature.  Otherwise, support for equivalence classes and
39189                multibyte collation symbols would always be broken except
39190                when compiling --without-included-regex.   */
39191             if (sizeof (regoff_t) < sizeof (ptrdiff_t)
39192                 || sizeof (regoff_t) < sizeof (ssize_t))
39193               result |= 64;
39194 #endif
39195
39196             return result;
39197
39198   ;
39199   return 0;
39200 }
39201 _ACEOF
39202 rm -f conftest$ac_exeext
39203 if { (ac_try="$ac_link"
39204 case "(($ac_try" in
39205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39206   *) ac_try_echo=$ac_try;;
39207 esac
39208 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39209 $as_echo "$ac_try_echo") >&5
39210   (eval "$ac_link") 2>&5
39211   ac_status=$?
39212   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39213   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39214   { (case "(($ac_try" in
39215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39216   *) ac_try_echo=$ac_try;;
39217 esac
39218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39219 $as_echo "$ac_try_echo") >&5
39220   (eval "$ac_try") 2>&5
39221   ac_status=$?
39222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39223   (exit $ac_status); }; }; then
39224   gl_cv_func_re_compile_pattern_working=yes
39225 else
39226   $as_echo "$as_me: program exited with status $ac_status" >&5
39227 $as_echo "$as_me: failed program was:" >&5
39228 sed 's/^/| /' conftest.$ac_ext >&5
39229
39230 ( exit $ac_status )
39231 gl_cv_func_re_compile_pattern_working=no
39232 fi
39233 rm -rf conftest.dSYM
39234 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39235 fi
39236
39237
39238 fi
39239 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_re_compile_pattern_working" >&5
39240 $as_echo "$gl_cv_func_re_compile_pattern_working" >&6; }
39241     case $gl_cv_func_re_compile_pattern_working in #(
39242     yes) ac_use_included_regex=no;; #(
39243     no) ac_use_included_regex=yes;;
39244     esac
39245     ;;
39246   *) { { $as_echo "$as_me:$LINENO: error: Invalid value for --with-included-regex: $with_included_regex" >&5
39247 $as_echo "$as_me: error: Invalid value for --with-included-regex: $with_included_regex" >&2;}
39248    { (exit 1); exit 1; }; }
39249     ;;
39250   esac
39251
39252   if test $ac_use_included_regex = yes; then
39253
39254 cat >>confdefs.h <<\_ACEOF
39255 #define _REGEX_LARGE_OFFSETS 1
39256 _ACEOF
39257
39258
39259 cat >>confdefs.h <<\_ACEOF
39260 #define re_syntax_options rpl_re_syntax_options
39261 _ACEOF
39262
39263
39264 cat >>confdefs.h <<\_ACEOF
39265 #define re_set_syntax rpl_re_set_syntax
39266 _ACEOF
39267
39268
39269 cat >>confdefs.h <<\_ACEOF
39270 #define re_compile_pattern rpl_re_compile_pattern
39271 _ACEOF
39272
39273
39274 cat >>confdefs.h <<\_ACEOF
39275 #define re_compile_fastmap rpl_re_compile_fastmap
39276 _ACEOF
39277
39278
39279 cat >>confdefs.h <<\_ACEOF
39280 #define re_search rpl_re_search
39281 _ACEOF
39282
39283
39284 cat >>confdefs.h <<\_ACEOF
39285 #define re_search_2 rpl_re_search_2
39286 _ACEOF
39287
39288
39289 cat >>confdefs.h <<\_ACEOF
39290 #define re_match rpl_re_match
39291 _ACEOF
39292
39293
39294 cat >>confdefs.h <<\_ACEOF
39295 #define re_match_2 rpl_re_match_2
39296 _ACEOF
39297
39298
39299 cat >>confdefs.h <<\_ACEOF
39300 #define re_set_registers rpl_re_set_registers
39301 _ACEOF
39302
39303
39304 cat >>confdefs.h <<\_ACEOF
39305 #define re_comp rpl_re_comp
39306 _ACEOF
39307
39308
39309 cat >>confdefs.h <<\_ACEOF
39310 #define re_exec rpl_re_exec
39311 _ACEOF
39312
39313
39314 cat >>confdefs.h <<\_ACEOF
39315 #define regcomp rpl_regcomp
39316 _ACEOF
39317
39318
39319 cat >>confdefs.h <<\_ACEOF
39320 #define regexec rpl_regexec
39321 _ACEOF
39322
39323
39324 cat >>confdefs.h <<\_ACEOF
39325 #define regerror rpl_regerror
39326 _ACEOF
39327
39328
39329 cat >>confdefs.h <<\_ACEOF
39330 #define regfree rpl_regfree
39331 _ACEOF
39332
39333
39334
39335
39336
39337
39338
39339
39340
39341   gl_LIBOBJS="$gl_LIBOBJS regex.$ac_objext"
39342
39343
39344
39345
39346
39347
39348
39349 for ac_header in libintl.h
39350 do
39351 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39353   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39354 $as_echo_n "checking for $ac_header... " >&6; }
39355 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39356   $as_echo_n "(cached) " >&6
39357 fi
39358 ac_res=`eval 'as_val=${'$as_ac_Header'}
39359                  $as_echo "$as_val"'`
39360                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39361 $as_echo "$ac_res" >&6; }
39362 else
39363   # Is the header compilable?
39364 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
39365 $as_echo_n "checking $ac_header usability... " >&6; }
39366 cat >conftest.$ac_ext <<_ACEOF
39367 /* confdefs.h.  */
39368 _ACEOF
39369 cat confdefs.h >>conftest.$ac_ext
39370 cat >>conftest.$ac_ext <<_ACEOF
39371 /* end confdefs.h.  */
39372 $ac_includes_default
39373 #include <$ac_header>
39374 _ACEOF
39375 rm -f conftest.$ac_objext
39376 if { (ac_try="$ac_compile"
39377 case "(($ac_try" in
39378   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39379   *) ac_try_echo=$ac_try;;
39380 esac
39381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39382 $as_echo "$ac_try_echo") >&5
39383   (eval "$ac_compile") 2>conftest.er1
39384   ac_status=$?
39385   grep -v '^ *+' conftest.er1 >conftest.err
39386   rm -f conftest.er1
39387   cat conftest.err >&5
39388   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39389   (exit $ac_status); } && {
39390          test -z "$ac_c_werror_flag" ||
39391          test ! -s conftest.err
39392        } && test -s conftest.$ac_objext; then
39393   ac_header_compiler=yes
39394 else
39395   $as_echo "$as_me: failed program was:" >&5
39396 sed 's/^/| /' conftest.$ac_ext >&5
39397
39398         ac_header_compiler=no
39399 fi
39400
39401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39402 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
39403 $as_echo "$ac_header_compiler" >&6; }
39404
39405 # Is the header present?
39406 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
39407 $as_echo_n "checking $ac_header presence... " >&6; }
39408 cat >conftest.$ac_ext <<_ACEOF
39409 /* confdefs.h.  */
39410 _ACEOF
39411 cat confdefs.h >>conftest.$ac_ext
39412 cat >>conftest.$ac_ext <<_ACEOF
39413 /* end confdefs.h.  */
39414 #include <$ac_header>
39415 _ACEOF
39416 if { (ac_try="$ac_cpp conftest.$ac_ext"
39417 case "(($ac_try" in
39418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39419   *) ac_try_echo=$ac_try;;
39420 esac
39421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39422 $as_echo "$ac_try_echo") >&5
39423   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
39424   ac_status=$?
39425   grep -v '^ *+' conftest.er1 >conftest.err
39426   rm -f conftest.er1
39427   cat conftest.err >&5
39428   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39429   (exit $ac_status); } >/dev/null && {
39430          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
39431          test ! -s conftest.err
39432        }; then
39433   ac_header_preproc=yes
39434 else
39435   $as_echo "$as_me: failed program was:" >&5
39436 sed 's/^/| /' conftest.$ac_ext >&5
39437
39438   ac_header_preproc=no
39439 fi
39440
39441 rm -f conftest.err conftest.$ac_ext
39442 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
39443 $as_echo "$ac_header_preproc" >&6; }
39444
39445 # So?  What about this header?
39446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
39447   yes:no: )
39448     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
39449 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
39450     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
39451 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
39452     ac_header_preproc=yes
39453     ;;
39454   no:yes:* )
39455     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
39456 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
39457     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
39458 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
39459     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
39460 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
39461     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
39462 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
39463     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
39464 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
39465     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
39466 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
39467     ( cat <<\_ASBOX
39468 ## ------------------------------ ##
39469 ## Report this to bug-tar@gnu.org ##
39470 ## ------------------------------ ##
39471 _ASBOX
39472      ) | sed "s/^/$as_me: WARNING:     /" >&2
39473     ;;
39474 esac
39475 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
39476 $as_echo_n "checking for $ac_header... " >&6; }
39477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
39478   $as_echo_n "(cached) " >&6
39479 else
39480   eval "$as_ac_Header=\$ac_header_preproc"
39481 fi
39482 ac_res=`eval 'as_val=${'$as_ac_Header'}
39483                  $as_echo "$as_val"'`
39484                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
39485 $as_echo "$ac_res" >&6; }
39486
39487 fi
39488 as_val=`eval 'as_val=${'$as_ac_Header'}
39489                  $as_echo "$as_val"'`
39490    if test "x$as_val" = x""yes; then
39491   cat >>confdefs.h <<_ACEOF
39492 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39493 _ACEOF
39494
39495 fi
39496
39497 done
39498
39499
39500
39501
39502
39503
39504
39505
39506
39507
39508
39509   { $as_echo "$as_me:$LINENO: checking whether isblank is declared" >&5
39510 $as_echo_n "checking whether isblank is declared... " >&6; }
39511 if test "${ac_cv_have_decl_isblank+set}" = set; then
39512   $as_echo_n "(cached) " >&6
39513 else
39514   cat >conftest.$ac_ext <<_ACEOF
39515 /* confdefs.h.  */
39516 _ACEOF
39517 cat confdefs.h >>conftest.$ac_ext
39518 cat >>conftest.$ac_ext <<_ACEOF
39519 /* end confdefs.h.  */
39520 #include <ctype.h>
39521
39522 int
39523 main ()
39524 {
39525 #ifndef isblank
39526   (void) isblank;
39527 #endif
39528
39529   ;
39530   return 0;
39531 }
39532 _ACEOF
39533 rm -f conftest.$ac_objext
39534 if { (ac_try="$ac_compile"
39535 case "(($ac_try" in
39536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39537   *) ac_try_echo=$ac_try;;
39538 esac
39539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39540 $as_echo "$ac_try_echo") >&5
39541   (eval "$ac_compile") 2>conftest.er1
39542   ac_status=$?
39543   grep -v '^ *+' conftest.er1 >conftest.err
39544   rm -f conftest.er1
39545   cat conftest.err >&5
39546   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39547   (exit $ac_status); } && {
39548          test -z "$ac_c_werror_flag" ||
39549          test ! -s conftest.err
39550        } && test -s conftest.$ac_objext; then
39551   ac_cv_have_decl_isblank=yes
39552 else
39553   $as_echo "$as_me: failed program was:" >&5
39554 sed 's/^/| /' conftest.$ac_ext >&5
39555
39556         ac_cv_have_decl_isblank=no
39557 fi
39558
39559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39560 fi
39561 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_isblank" >&5
39562 $as_echo "$ac_cv_have_decl_isblank" >&6; }
39563 if test "x$ac_cv_have_decl_isblank" = x""yes; then
39564
39565 cat >>confdefs.h <<_ACEOF
39566 #define HAVE_DECL_ISBLANK 1
39567 _ACEOF
39568
39569
39570 else
39571   cat >>confdefs.h <<_ACEOF
39572 #define HAVE_DECL_ISBLANK 0
39573 _ACEOF
39574
39575
39576 fi
39577
39578
39579
39580   fi
39581
39582   # Code from module rename:
39583
39584
39585
39586
39587
39588
39589
39590
39591
39592
39593                 { $as_echo "$as_me:$LINENO: checking whether rename honors trailing slash on destination" >&5
39594 $as_echo_n "checking whether rename honors trailing slash on destination... " >&6; }
39595 if test "${gl_cv_func_rename_slash_dst_works+set}" = set; then
39596   $as_echo_n "(cached) " >&6
39597 else
39598   rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
39599     touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
39600       { { $as_echo "$as_me:$LINENO: error: cannot create temporary files" >&5
39601 $as_echo "$as_me: error: cannot create temporary files" >&2;}
39602    { (exit 1); exit 1; }; }
39603     # Assume that if we have lstat, we can also check symlinks.
39604     if test $ac_cv_func_lstat = yes; then
39605       ln -s conftest.f conftest.lnk
39606     fi
39607     if test "$cross_compiling" = yes; then
39608         gl_cv_func_rename_slash_dst_works="guessing no"
39609 else
39610   cat >conftest.$ac_ext <<_ACEOF
39611 /* confdefs.h.  */
39612 _ACEOF
39613 cat confdefs.h >>conftest.$ac_ext
39614 cat >>conftest.$ac_ext <<_ACEOF
39615 /* end confdefs.h.  */
39616
39617 #        include <stdio.h>
39618 #        include <stdlib.h>
39619
39620 int
39621 main ()
39622 {
39623 int result = 0;
39624            if (rename ("conftest.f1", "conftest.f2/") == 0)
39625              result |= 1;
39626            if (rename ("conftest.d1", "conftest.d2/") != 0)
39627              result |= 2;
39628 #if HAVE_LSTAT
39629            if (rename ("conftest.f", "conftest.lnk/") == 0)
39630              result |= 4;
39631 #endif
39632            return result;
39633
39634   ;
39635   return 0;
39636 }
39637 _ACEOF
39638 rm -f conftest$ac_exeext
39639 if { (ac_try="$ac_link"
39640 case "(($ac_try" in
39641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39642   *) ac_try_echo=$ac_try;;
39643 esac
39644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39645 $as_echo "$ac_try_echo") >&5
39646   (eval "$ac_link") 2>&5
39647   ac_status=$?
39648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39650   { (case "(($ac_try" in
39651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39652   *) ac_try_echo=$ac_try;;
39653 esac
39654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39655 $as_echo "$ac_try_echo") >&5
39656   (eval "$ac_try") 2>&5
39657   ac_status=$?
39658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39659   (exit $ac_status); }; }; then
39660   gl_cv_func_rename_slash_dst_works=yes
39661 else
39662   $as_echo "$as_me: program exited with status $ac_status" >&5
39663 $as_echo "$as_me: failed program was:" >&5
39664 sed 's/^/| /' conftest.$ac_ext >&5
39665
39666 ( exit $ac_status )
39667 gl_cv_func_rename_slash_dst_works=no
39668 fi
39669 rm -rf conftest.dSYM
39670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39671 fi
39672
39673
39674     rm -rf conftest.f conftest.f1 conftest.f2 conftest.d1 conftest.d2 conftest.lnk
39675
39676 fi
39677 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_slash_dst_works" >&5
39678 $as_echo "$gl_cv_func_rename_slash_dst_works" >&6; }
39679   if test "x$gl_cv_func_rename_slash_dst_works" != xyes; then
39680
39681
39682
39683
39684
39685
39686
39687
39688   gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
39689
39690     REPLACE_RENAME=1
39691
39692 cat >>confdefs.h <<\_ACEOF
39693 #define RENAME_TRAILING_SLASH_DEST_BUG 1
39694 _ACEOF
39695
39696   fi
39697
39698             { $as_echo "$as_me:$LINENO: checking whether rename honors trailing slash on source" >&5
39699 $as_echo_n "checking whether rename honors trailing slash on source... " >&6; }
39700 if test "${gl_cv_func_rename_slash_src_works+set}" = set; then
39701   $as_echo_n "(cached) " >&6
39702 else
39703   rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
39704     touch conftest.f && touch conftest.f1 && mkdir conftest.d1 ||
39705       { { $as_echo "$as_me:$LINENO: error: cannot create temporary files" >&5
39706 $as_echo "$as_me: error: cannot create temporary files" >&2;}
39707    { (exit 1); exit 1; }; }
39708     # Assume that if we have lstat, we can also check symlinks.
39709     if test $ac_cv_func_lstat = yes; then
39710       ln -s conftest.f conftest.lnk
39711     fi
39712     if test "$cross_compiling" = yes; then
39713         gl_cv_func_rename_slash_src_works="guessing no"
39714 else
39715   cat >conftest.$ac_ext <<_ACEOF
39716 /* confdefs.h.  */
39717 _ACEOF
39718 cat confdefs.h >>conftest.$ac_ext
39719 cat >>conftest.$ac_ext <<_ACEOF
39720 /* end confdefs.h.  */
39721
39722 #        include <stdio.h>
39723 #        include <stdlib.h>
39724
39725 int
39726 main ()
39727 {
39728 int result = 0;
39729            if (rename ("conftest.f1/", "conftest.d3") == 0)
39730              result |= 1;
39731            if (rename ("conftest.d1/", "conftest.d2") != 0)
39732              result |= 2;
39733 #if HAVE_LSTAT
39734            if (rename ("conftest.lnk/", "conftest.f") == 0)
39735              result |= 4;
39736 #endif
39737            return result;
39738
39739   ;
39740   return 0;
39741 }
39742 _ACEOF
39743 rm -f conftest$ac_exeext
39744 if { (ac_try="$ac_link"
39745 case "(($ac_try" in
39746   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39747   *) ac_try_echo=$ac_try;;
39748 esac
39749 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39750 $as_echo "$ac_try_echo") >&5
39751   (eval "$ac_link") 2>&5
39752   ac_status=$?
39753   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39754   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39755   { (case "(($ac_try" in
39756   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39757   *) ac_try_echo=$ac_try;;
39758 esac
39759 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39760 $as_echo "$ac_try_echo") >&5
39761   (eval "$ac_try") 2>&5
39762   ac_status=$?
39763   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39764   (exit $ac_status); }; }; then
39765   gl_cv_func_rename_slash_src_works=yes
39766 else
39767   $as_echo "$as_me: program exited with status $ac_status" >&5
39768 $as_echo "$as_me: failed program was:" >&5
39769 sed 's/^/| /' conftest.$ac_ext >&5
39770
39771 ( exit $ac_status )
39772 gl_cv_func_rename_slash_src_works=no
39773 fi
39774 rm -rf conftest.dSYM
39775 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39776 fi
39777
39778
39779     rm -rf conftest.f conftest.f1 conftest.d1 conftest.d2 conftest.d3 conftest.lnk
39780
39781 fi
39782 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_slash_src_works" >&5
39783 $as_echo "$gl_cv_func_rename_slash_src_works" >&6; }
39784   if test "x$gl_cv_func_rename_slash_src_works" != xyes; then
39785
39786
39787
39788
39789
39790
39791
39792
39793   gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
39794
39795     REPLACE_RENAME=1
39796
39797 cat >>confdefs.h <<\_ACEOF
39798 #define RENAME_TRAILING_SLASH_SOURCE_BUG 1
39799 _ACEOF
39800
39801   fi
39802
39803         { $as_echo "$as_me:$LINENO: checking whether rename manages hard links correctly" >&5
39804 $as_echo_n "checking whether rename manages hard links correctly... " >&6; }
39805 if test "${gl_cv_func_rename_link_works+set}" = set; then
39806   $as_echo_n "(cached) " >&6
39807 else
39808   rm -rf conftest.f conftest.f1
39809     if touch conftest.f && ln conftest.f conftest.f1 &&
39810         set x `ls -i conftest.f conftest.f1` && test "" = ""; then
39811       if test "$cross_compiling" = yes; then
39812           gl_cv_func_rename_link_works="guessing no"
39813 else
39814   cat >conftest.$ac_ext <<_ACEOF
39815 /* confdefs.h.  */
39816 _ACEOF
39817 cat confdefs.h >>conftest.$ac_ext
39818 cat >>conftest.$ac_ext <<_ACEOF
39819 /* end confdefs.h.  */
39820
39821 #          include <stdio.h>
39822 #          include <stdlib.h>
39823 #          include <unistd.h>
39824
39825 int
39826 main ()
39827 {
39828 int result = 0;
39829              if (rename ("conftest.f", "conftest.f1"))
39830                result |= 1;
39831              if (unlink ("conftest.f1"))
39832                result |= 2;
39833              if (rename ("conftest.f", "conftest.f"))
39834                result |= 4;
39835              if (rename ("conftest.f1", "conftest.f1") == 0)
39836                result |= 8;
39837              return result;
39838
39839   ;
39840   return 0;
39841 }
39842 _ACEOF
39843 rm -f conftest$ac_exeext
39844 if { (ac_try="$ac_link"
39845 case "(($ac_try" in
39846   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39847   *) ac_try_echo=$ac_try;;
39848 esac
39849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39850 $as_echo "$ac_try_echo") >&5
39851   (eval "$ac_link") 2>&5
39852   ac_status=$?
39853   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39854   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39855   { (case "(($ac_try" in
39856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39857   *) ac_try_echo=$ac_try;;
39858 esac
39859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39860 $as_echo "$ac_try_echo") >&5
39861   (eval "$ac_try") 2>&5
39862   ac_status=$?
39863   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39864   (exit $ac_status); }; }; then
39865   gl_cv_func_rename_link_works=yes
39866 else
39867   $as_echo "$as_me: program exited with status $ac_status" >&5
39868 $as_echo "$as_me: failed program was:" >&5
39869 sed 's/^/| /' conftest.$ac_ext >&5
39870
39871 ( exit $ac_status )
39872 gl_cv_func_rename_link_works=no
39873 fi
39874 rm -rf conftest.dSYM
39875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39876 fi
39877
39878
39879     else
39880       gl_cv_func_rename_link_works="guessing no"
39881     fi
39882     rm -rf conftest.f conftest.f1
39883
39884 fi
39885 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_link_works" >&5
39886 $as_echo "$gl_cv_func_rename_link_works" >&6; }
39887   if test "x$gl_cv_func_rename_link_works" != xyes; then
39888
39889
39890
39891
39892
39893
39894
39895
39896   gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
39897
39898     REPLACE_RENAME=1
39899
39900 cat >>confdefs.h <<\_ACEOF
39901 #define RENAME_HARD_LINK_BUG 1
39902 _ACEOF
39903
39904   fi
39905
39906           { $as_echo "$as_me:$LINENO: checking whether rename manages existing destinations correctly" >&5
39907 $as_echo_n "checking whether rename manages existing destinations correctly... " >&6; }
39908 if test "${gl_cv_func_rename_dest_works+set}" = set; then
39909   $as_echo_n "(cached) " >&6
39910 else
39911   rm -rf conftest.f conftest.d1 conftest.d2
39912     touch conftest.f && mkdir conftest.d1 conftest.d2 ||
39913       { { $as_echo "$as_me:$LINENO: error: cannot create temporary files" >&5
39914 $as_echo "$as_me: error: cannot create temporary files" >&2;}
39915    { (exit 1); exit 1; }; }
39916     if test "$cross_compiling" = yes; then
39917         gl_cv_func_rename_dest_works="guessing no"
39918 else
39919   cat >conftest.$ac_ext <<_ACEOF
39920 /* confdefs.h.  */
39921 _ACEOF
39922 cat confdefs.h >>conftest.$ac_ext
39923 cat >>conftest.$ac_ext <<_ACEOF
39924 /* end confdefs.h.  */
39925
39926 #        include <stdio.h>
39927 #        include <stdlib.h>
39928
39929 int
39930 main ()
39931 {
39932 int result = 0;
39933            if (rename ("conftest.d1", "conftest.d2") != 0)
39934              result |= 1;
39935            if (rename ("conftest.d2", "conftest.f") == 0)
39936              result |= 2;
39937            return result;
39938
39939   ;
39940   return 0;
39941 }
39942 _ACEOF
39943 rm -f conftest$ac_exeext
39944 if { (ac_try="$ac_link"
39945 case "(($ac_try" in
39946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39947   *) ac_try_echo=$ac_try;;
39948 esac
39949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39950 $as_echo "$ac_try_echo") >&5
39951   (eval "$ac_link") 2>&5
39952   ac_status=$?
39953   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39954   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
39955   { (case "(($ac_try" in
39956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
39957   *) ac_try_echo=$ac_try;;
39958 esac
39959 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
39960 $as_echo "$ac_try_echo") >&5
39961   (eval "$ac_try") 2>&5
39962   ac_status=$?
39963   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
39964   (exit $ac_status); }; }; then
39965   gl_cv_func_rename_dest_works=yes
39966 else
39967   $as_echo "$as_me: program exited with status $ac_status" >&5
39968 $as_echo "$as_me: failed program was:" >&5
39969 sed 's/^/| /' conftest.$ac_ext >&5
39970
39971 ( exit $ac_status )
39972 gl_cv_func_rename_dest_works=no
39973 fi
39974 rm -rf conftest.dSYM
39975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
39976 fi
39977
39978
39979     rm -rf conftest.f conftest.d1 conftest.d2
39980
39981 fi
39982 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rename_dest_works" >&5
39983 $as_echo "$gl_cv_func_rename_dest_works" >&6; }
39984   if test "x$gl_cv_func_rename_dest_works" != xyes; then
39985
39986
39987
39988
39989
39990
39991
39992
39993   gl_LIBOBJS="$gl_LIBOBJS rename.$ac_objext"
39994
39995     REPLACE_RENAME=1
39996
39997 cat >>confdefs.h <<\_ACEOF
39998 #define RENAME_DEST_EXISTS_BUG 1
39999 _ACEOF
40000
40001   fi
40002
40003
40004
40005
40006   GNULIB_RENAME=1
40007
40008
40009
40010 cat >>confdefs.h <<\_ACEOF
40011 #define GNULIB_TEST_RENAME 1
40012 _ACEOF
40013
40014
40015
40016   # Code from module renameat:
40017
40018
40019
40020
40021
40022
40023
40024
40025
40026
40027
40028   if test $ac_cv_func_renameat = no; then
40029     HAVE_RENAMEAT=0
40030
40031
40032
40033
40034
40035
40036
40037
40038   gl_LIBOBJS="$gl_LIBOBJS renameat.$ac_objext"
40039
40040
40041
40042
40043
40044
40045
40046
40047
40048   gl_LIBOBJS="$gl_LIBOBJS at-func2.$ac_objext"
40049
40050   elif test $REPLACE_RENAME = 1; then
40051         REPLACE_RENAMEAT=1
40052
40053
40054
40055
40056
40057
40058
40059
40060   gl_LIBOBJS="$gl_LIBOBJS renameat.$ac_objext"
40061
40062
40063
40064
40065
40066
40067
40068
40069
40070   gl_LIBOBJS="$gl_LIBOBJS at-func2.$ac_objext"
40071
40072   fi
40073
40074
40075
40076
40077   GNULIB_RENAMEAT=1
40078
40079
40080
40081 cat >>confdefs.h <<\_ACEOF
40082 #define GNULIB_TEST_RENAMEAT 1
40083 _ACEOF
40084
40085
40086
40087   # Code from module rmdir:
40088
40089
40090     { $as_echo "$as_me:$LINENO: checking whether rmdir works" >&5
40091 $as_echo_n "checking whether rmdir works... " >&6; }
40092 if test "${gl_cv_func_rmdir_works+set}" = set; then
40093   $as_echo_n "(cached) " >&6
40094 else
40095   mkdir conftest.dir
40096      touch conftest.file
40097      if test "$cross_compiling" = yes; then
40098   gl_cv_func_rmdir_works="guessing no"
40099 else
40100   cat >conftest.$ac_ext <<_ACEOF
40101 /* confdefs.h.  */
40102 _ACEOF
40103 cat confdefs.h >>conftest.$ac_ext
40104 cat >>conftest.$ac_ext <<_ACEOF
40105 /* end confdefs.h.  */
40106 #include <stdio.h>
40107            #include <errno.h>
40108            #include <unistd.h>
40109
40110 int
40111 main ()
40112 {
40113 int result = 0;
40114       if (!rmdir ("conftest.file/"))
40115         result |= 1;
40116       else if (errno != ENOTDIR)
40117         result |= 2;
40118       if (!rmdir ("conftest.dir/./"))
40119         result |= 4;
40120       return result;
40121
40122   ;
40123   return 0;
40124 }
40125 _ACEOF
40126 rm -f conftest$ac_exeext
40127 if { (ac_try="$ac_link"
40128 case "(($ac_try" in
40129   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40130   *) ac_try_echo=$ac_try;;
40131 esac
40132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40133 $as_echo "$ac_try_echo") >&5
40134   (eval "$ac_link") 2>&5
40135   ac_status=$?
40136   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40137   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40138   { (case "(($ac_try" in
40139   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40140   *) ac_try_echo=$ac_try;;
40141 esac
40142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40143 $as_echo "$ac_try_echo") >&5
40144   (eval "$ac_try") 2>&5
40145   ac_status=$?
40146   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40147   (exit $ac_status); }; }; then
40148   gl_cv_func_rmdir_works=yes
40149 else
40150   $as_echo "$as_me: program exited with status $ac_status" >&5
40151 $as_echo "$as_me: failed program was:" >&5
40152 sed 's/^/| /' conftest.$ac_ext >&5
40153
40154 ( exit $ac_status )
40155 gl_cv_func_rmdir_works=no
40156 fi
40157 rm -rf conftest.dSYM
40158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40159 fi
40160
40161
40162      rm -rf conftest.dir conftest.file
40163 fi
40164 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_rmdir_works" >&5
40165 $as_echo "$gl_cv_func_rmdir_works" >&6; }
40166   if test x"$gl_cv_func_rmdir_works" != xyes; then
40167     REPLACE_RMDIR=1
40168
40169
40170
40171
40172
40173
40174
40175
40176   gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
40177
40178   fi
40179
40180
40181
40182
40183   GNULIB_RMDIR=1
40184
40185
40186
40187 cat >>confdefs.h <<\_ACEOF
40188 #define GNULIB_TEST_RMDIR 1
40189 _ACEOF
40190
40191
40192
40193   # Code from module rpmatch:
40194
40195
40196
40197
40198
40199
40200
40201
40202
40203
40204
40205
40206
40207 for ac_func in rpmatch
40208 do
40209 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40210 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
40211 $as_echo_n "checking for $ac_func... " >&6; }
40212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
40213   $as_echo_n "(cached) " >&6
40214 else
40215   cat >conftest.$ac_ext <<_ACEOF
40216 /* confdefs.h.  */
40217 _ACEOF
40218 cat confdefs.h >>conftest.$ac_ext
40219 cat >>conftest.$ac_ext <<_ACEOF
40220 /* end confdefs.h.  */
40221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
40222    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
40223 #define $ac_func innocuous_$ac_func
40224
40225 /* System header to define __stub macros and hopefully few prototypes,
40226     which can conflict with char $ac_func (); below.
40227     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
40228     <limits.h> exists even on freestanding compilers.  */
40229
40230 #ifdef __STDC__
40231 # include <limits.h>
40232 #else
40233 # include <assert.h>
40234 #endif
40235
40236 #undef $ac_func
40237
40238 /* Override any GCC internal prototype to avoid an error.
40239    Use char because int might match the return type of a GCC
40240    builtin and then its argument prototype would still apply.  */
40241 #ifdef __cplusplus
40242 extern "C"
40243 #endif
40244 char $ac_func ();
40245 /* The GNU C library defines this for functions which it implements
40246     to always fail with ENOSYS.  Some functions are actually named
40247     something starting with __ and the normal name is an alias.  */
40248 #if defined __stub_$ac_func || defined __stub___$ac_func
40249 choke me
40250 #endif
40251
40252 int
40253 main ()
40254 {
40255 return $ac_func ();
40256   ;
40257   return 0;
40258 }
40259 _ACEOF
40260 rm -f conftest.$ac_objext conftest$ac_exeext
40261 if { (ac_try="$ac_link"
40262 case "(($ac_try" in
40263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40264   *) ac_try_echo=$ac_try;;
40265 esac
40266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40267 $as_echo "$ac_try_echo") >&5
40268   (eval "$ac_link") 2>conftest.er1
40269   ac_status=$?
40270   grep -v '^ *+' conftest.er1 >conftest.err
40271   rm -f conftest.er1
40272   cat conftest.err >&5
40273   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40274   (exit $ac_status); } && {
40275          test -z "$ac_c_werror_flag" ||
40276          test ! -s conftest.err
40277        } && test -s conftest$ac_exeext && {
40278          test "$cross_compiling" = yes ||
40279          $as_test_x conftest$ac_exeext
40280        }; then
40281   eval "$as_ac_var=yes"
40282 else
40283   $as_echo "$as_me: failed program was:" >&5
40284 sed 's/^/| /' conftest.$ac_ext >&5
40285
40286         eval "$as_ac_var=no"
40287 fi
40288
40289 rm -rf conftest.dSYM
40290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40291       conftest$ac_exeext conftest.$ac_ext
40292 fi
40293 ac_res=`eval 'as_val=${'$as_ac_var'}
40294                  $as_echo "$as_val"'`
40295                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40296 $as_echo "$ac_res" >&6; }
40297 as_val=`eval 'as_val=${'$as_ac_var'}
40298                  $as_echo "$as_val"'`
40299    if test "x$as_val" = x""yes; then
40300   cat >>confdefs.h <<_ACEOF
40301 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40302 _ACEOF
40303
40304 else
40305
40306     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
40307
40308 fi
40309 done
40310
40311
40312   if test $ac_cv_func_rpmatch = no; then
40313     HAVE_RPMATCH=0
40314
40315   { $as_echo "$as_me:$LINENO: checking for nl_langinfo and YESEXPR" >&5
40316 $as_echo_n "checking for nl_langinfo and YESEXPR... " >&6; }
40317 if test "${gl_cv_langinfo_yesexpr+set}" = set; then
40318   $as_echo_n "(cached) " >&6
40319 else
40320   cat >conftest.$ac_ext <<_ACEOF
40321 /* confdefs.h.  */
40322 _ACEOF
40323 cat confdefs.h >>conftest.$ac_ext
40324 cat >>conftest.$ac_ext <<_ACEOF
40325 /* end confdefs.h.  */
40326 #include <langinfo.h>
40327 int
40328 main ()
40329 {
40330 char* cs = nl_langinfo(YESEXPR); return !cs;
40331   ;
40332   return 0;
40333 }
40334 _ACEOF
40335 rm -f conftest.$ac_objext conftest$ac_exeext
40336 if { (ac_try="$ac_link"
40337 case "(($ac_try" in
40338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40339   *) ac_try_echo=$ac_try;;
40340 esac
40341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40342 $as_echo "$ac_try_echo") >&5
40343   (eval "$ac_link") 2>conftest.er1
40344   ac_status=$?
40345   grep -v '^ *+' conftest.er1 >conftest.err
40346   rm -f conftest.er1
40347   cat conftest.err >&5
40348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40349   (exit $ac_status); } && {
40350          test -z "$ac_c_werror_flag" ||
40351          test ! -s conftest.err
40352        } && test -s conftest$ac_exeext && {
40353          test "$cross_compiling" = yes ||
40354          $as_test_x conftest$ac_exeext
40355        }; then
40356   gl_cv_langinfo_yesexpr=yes
40357 else
40358   $as_echo "$as_me: failed program was:" >&5
40359 sed 's/^/| /' conftest.$ac_ext >&5
40360
40361         gl_cv_langinfo_yesexpr=no
40362 fi
40363
40364 rm -rf conftest.dSYM
40365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
40366       conftest$ac_exeext conftest.$ac_ext
40367
40368 fi
40369 { $as_echo "$as_me:$LINENO: result: $gl_cv_langinfo_yesexpr" >&5
40370 $as_echo "$gl_cv_langinfo_yesexpr" >&6; }
40371   if test $gl_cv_langinfo_yesexpr = yes; then
40372
40373 cat >>confdefs.h <<\_ACEOF
40374 #define HAVE_LANGINFO_YESEXPR 1
40375 _ACEOF
40376
40377   fi
40378
40379   fi
40380
40381
40382
40383
40384   GNULIB_RPMATCH=1
40385
40386
40387
40388 cat >>confdefs.h <<\_ACEOF
40389 #define GNULIB_TEST_RPMATCH 1
40390 _ACEOF
40391
40392
40393
40394   # Code from module safe-read:
40395
40396
40397
40398
40399
40400
40401
40402
40403
40404   gl_LIBOBJS="$gl_LIBOBJS safe-read.$ac_objext"
40405
40406
40407
40408
40409
40410
40411   # Code from module safe-write:
40412
40413
40414
40415
40416
40417
40418
40419
40420
40421   gl_LIBOBJS="$gl_LIBOBJS safe-write.$ac_objext"
40422
40423
40424
40425
40426
40427
40428
40429
40430   # Code from module same-inode:
40431   # Code from module save-cwd:
40432
40433
40434
40435
40436
40437
40438
40439
40440
40441   gl_LIBOBJS="$gl_LIBOBJS save-cwd.$ac_objext"
40442
40443
40444
40445
40446
40447
40448
40449
40450   # Code from module savedir:
40451
40452
40453
40454
40455
40456
40457
40458
40459
40460   gl_LIBOBJS="$gl_LIBOBJS savedir.$ac_objext"
40461
40462
40463   # Code from module setenv:
40464
40465
40466   if test $HAVE_SETENV$REPLACE_SETENV != 10; then
40467
40468
40469
40470
40471
40472
40473
40474
40475   gl_LIBOBJS="$gl_LIBOBJS setenv.$ac_objext"
40476
40477   fi
40478
40479
40480
40481
40482   GNULIB_SETENV=1
40483
40484
40485
40486 cat >>confdefs.h <<\_ACEOF
40487 #define GNULIB_TEST_SETENV 1
40488 _ACEOF
40489
40490
40491
40492   # Code from module size_max:
40493
40494
40495 for ac_header in stdint.h
40496 do
40497 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40499   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40500 $as_echo_n "checking for $ac_header... " >&6; }
40501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40502   $as_echo_n "(cached) " >&6
40503 fi
40504 ac_res=`eval 'as_val=${'$as_ac_Header'}
40505                  $as_echo "$as_val"'`
40506                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40507 $as_echo "$ac_res" >&6; }
40508 else
40509   # Is the header compilable?
40510 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
40511 $as_echo_n "checking $ac_header usability... " >&6; }
40512 cat >conftest.$ac_ext <<_ACEOF
40513 /* confdefs.h.  */
40514 _ACEOF
40515 cat confdefs.h >>conftest.$ac_ext
40516 cat >>conftest.$ac_ext <<_ACEOF
40517 /* end confdefs.h.  */
40518 $ac_includes_default
40519 #include <$ac_header>
40520 _ACEOF
40521 rm -f conftest.$ac_objext
40522 if { (ac_try="$ac_compile"
40523 case "(($ac_try" in
40524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40525   *) ac_try_echo=$ac_try;;
40526 esac
40527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40528 $as_echo "$ac_try_echo") >&5
40529   (eval "$ac_compile") 2>conftest.er1
40530   ac_status=$?
40531   grep -v '^ *+' conftest.er1 >conftest.err
40532   rm -f conftest.er1
40533   cat conftest.err >&5
40534   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40535   (exit $ac_status); } && {
40536          test -z "$ac_c_werror_flag" ||
40537          test ! -s conftest.err
40538        } && test -s conftest.$ac_objext; then
40539   ac_header_compiler=yes
40540 else
40541   $as_echo "$as_me: failed program was:" >&5
40542 sed 's/^/| /' conftest.$ac_ext >&5
40543
40544         ac_header_compiler=no
40545 fi
40546
40547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40548 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
40549 $as_echo "$ac_header_compiler" >&6; }
40550
40551 # Is the header present?
40552 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
40553 $as_echo_n "checking $ac_header presence... " >&6; }
40554 cat >conftest.$ac_ext <<_ACEOF
40555 /* confdefs.h.  */
40556 _ACEOF
40557 cat confdefs.h >>conftest.$ac_ext
40558 cat >>conftest.$ac_ext <<_ACEOF
40559 /* end confdefs.h.  */
40560 #include <$ac_header>
40561 _ACEOF
40562 if { (ac_try="$ac_cpp conftest.$ac_ext"
40563 case "(($ac_try" in
40564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40565   *) ac_try_echo=$ac_try;;
40566 esac
40567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40568 $as_echo "$ac_try_echo") >&5
40569   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
40570   ac_status=$?
40571   grep -v '^ *+' conftest.er1 >conftest.err
40572   rm -f conftest.er1
40573   cat conftest.err >&5
40574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40575   (exit $ac_status); } >/dev/null && {
40576          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
40577          test ! -s conftest.err
40578        }; then
40579   ac_header_preproc=yes
40580 else
40581   $as_echo "$as_me: failed program was:" >&5
40582 sed 's/^/| /' conftest.$ac_ext >&5
40583
40584   ac_header_preproc=no
40585 fi
40586
40587 rm -f conftest.err conftest.$ac_ext
40588 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
40589 $as_echo "$ac_header_preproc" >&6; }
40590
40591 # So?  What about this header?
40592 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
40593   yes:no: )
40594     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
40595 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
40596     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
40597 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
40598     ac_header_preproc=yes
40599     ;;
40600   no:yes:* )
40601     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
40602 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
40603     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
40604 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
40605     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
40606 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
40607     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
40608 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
40609     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
40610 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
40611     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
40612 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
40613     ( cat <<\_ASBOX
40614 ## ------------------------------ ##
40615 ## Report this to bug-tar@gnu.org ##
40616 ## ------------------------------ ##
40617 _ASBOX
40618      ) | sed "s/^/$as_me: WARNING:     /" >&2
40619     ;;
40620 esac
40621 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
40622 $as_echo_n "checking for $ac_header... " >&6; }
40623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
40624   $as_echo_n "(cached) " >&6
40625 else
40626   eval "$as_ac_Header=\$ac_header_preproc"
40627 fi
40628 ac_res=`eval 'as_val=${'$as_ac_Header'}
40629                  $as_echo "$as_val"'`
40630                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
40631 $as_echo "$ac_res" >&6; }
40632
40633 fi
40634 as_val=`eval 'as_val=${'$as_ac_Header'}
40635                  $as_echo "$as_val"'`
40636    if test "x$as_val" = x""yes; then
40637   cat >>confdefs.h <<_ACEOF
40638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40639 _ACEOF
40640
40641 fi
40642
40643 done
40644
40645     { $as_echo "$as_me:$LINENO: checking for SIZE_MAX" >&5
40646 $as_echo_n "checking for SIZE_MAX... " >&6; }
40647 if test "${gl_cv_size_max+set}" = set; then
40648   $as_echo_n "(cached) " >&6
40649 else
40650
40651     gl_cv_size_max=
40652     cat >conftest.$ac_ext <<_ACEOF
40653 /* confdefs.h.  */
40654 _ACEOF
40655 cat confdefs.h >>conftest.$ac_ext
40656 cat >>conftest.$ac_ext <<_ACEOF
40657 /* end confdefs.h.  */
40658
40659 #include <limits.h>
40660 #if HAVE_STDINT_H
40661 #include <stdint.h>
40662 #endif
40663 #ifdef SIZE_MAX
40664 Found it
40665 #endif
40666
40667 _ACEOF
40668 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40669   $EGREP "Found it" >/dev/null 2>&1; then
40670   gl_cv_size_max=yes
40671 fi
40672 rm -f conftest*
40673
40674     if test -z "$gl_cv_size_max"; then
40675                         if test "$cross_compiling" = yes; then
40676   # Depending upon the size, compute the lo and hi bounds.
40677 cat >conftest.$ac_ext <<_ACEOF
40678 /* confdefs.h.  */
40679 _ACEOF
40680 cat confdefs.h >>conftest.$ac_ext
40681 cat >>conftest.$ac_ext <<_ACEOF
40682 /* end confdefs.h.  */
40683 #include <stddef.h>
40684 #include <limits.h>
40685 int
40686 main ()
40687 {
40688 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= 0)];
40689 test_array [0] = 0
40690
40691   ;
40692   return 0;
40693 }
40694 _ACEOF
40695 rm -f conftest.$ac_objext
40696 if { (ac_try="$ac_compile"
40697 case "(($ac_try" in
40698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40699   *) ac_try_echo=$ac_try;;
40700 esac
40701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40702 $as_echo "$ac_try_echo") >&5
40703   (eval "$ac_compile") 2>conftest.er1
40704   ac_status=$?
40705   grep -v '^ *+' conftest.er1 >conftest.err
40706   rm -f conftest.er1
40707   cat conftest.err >&5
40708   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40709   (exit $ac_status); } && {
40710          test -z "$ac_c_werror_flag" ||
40711          test ! -s conftest.err
40712        } && test -s conftest.$ac_objext; then
40713   ac_lo=0 ac_mid=0
40714   while :; do
40715     cat >conftest.$ac_ext <<_ACEOF
40716 /* confdefs.h.  */
40717 _ACEOF
40718 cat confdefs.h >>conftest.$ac_ext
40719 cat >>conftest.$ac_ext <<_ACEOF
40720 /* end confdefs.h.  */
40721 #include <stddef.h>
40722 #include <limits.h>
40723 int
40724 main ()
40725 {
40726 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
40727 test_array [0] = 0
40728
40729   ;
40730   return 0;
40731 }
40732 _ACEOF
40733 rm -f conftest.$ac_objext
40734 if { (ac_try="$ac_compile"
40735 case "(($ac_try" in
40736   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40737   *) ac_try_echo=$ac_try;;
40738 esac
40739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40740 $as_echo "$ac_try_echo") >&5
40741   (eval "$ac_compile") 2>conftest.er1
40742   ac_status=$?
40743   grep -v '^ *+' conftest.er1 >conftest.err
40744   rm -f conftest.er1
40745   cat conftest.err >&5
40746   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40747   (exit $ac_status); } && {
40748          test -z "$ac_c_werror_flag" ||
40749          test ! -s conftest.err
40750        } && test -s conftest.$ac_objext; then
40751   ac_hi=$ac_mid; break
40752 else
40753   $as_echo "$as_me: failed program was:" >&5
40754 sed 's/^/| /' conftest.$ac_ext >&5
40755
40756         ac_lo=`expr $ac_mid + 1`
40757                         if test $ac_lo -le $ac_mid; then
40758                           ac_lo= ac_hi=
40759                           break
40760                         fi
40761                         ac_mid=`expr 2 '*' $ac_mid + 1`
40762 fi
40763
40764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40765   done
40766 else
40767   $as_echo "$as_me: failed program was:" >&5
40768 sed 's/^/| /' conftest.$ac_ext >&5
40769
40770         cat >conftest.$ac_ext <<_ACEOF
40771 /* confdefs.h.  */
40772 _ACEOF
40773 cat confdefs.h >>conftest.$ac_ext
40774 cat >>conftest.$ac_ext <<_ACEOF
40775 /* end confdefs.h.  */
40776 #include <stddef.h>
40777 #include <limits.h>
40778 int
40779 main ()
40780 {
40781 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) < 0)];
40782 test_array [0] = 0
40783
40784   ;
40785   return 0;
40786 }
40787 _ACEOF
40788 rm -f conftest.$ac_objext
40789 if { (ac_try="$ac_compile"
40790 case "(($ac_try" in
40791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40792   *) ac_try_echo=$ac_try;;
40793 esac
40794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40795 $as_echo "$ac_try_echo") >&5
40796   (eval "$ac_compile") 2>conftest.er1
40797   ac_status=$?
40798   grep -v '^ *+' conftest.er1 >conftest.err
40799   rm -f conftest.er1
40800   cat conftest.err >&5
40801   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40802   (exit $ac_status); } && {
40803          test -z "$ac_c_werror_flag" ||
40804          test ! -s conftest.err
40805        } && test -s conftest.$ac_objext; then
40806   ac_hi=-1 ac_mid=-1
40807   while :; do
40808     cat >conftest.$ac_ext <<_ACEOF
40809 /* confdefs.h.  */
40810 _ACEOF
40811 cat confdefs.h >>conftest.$ac_ext
40812 cat >>conftest.$ac_ext <<_ACEOF
40813 /* end confdefs.h.  */
40814 #include <stddef.h>
40815 #include <limits.h>
40816 int
40817 main ()
40818 {
40819 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) >= $ac_mid)];
40820 test_array [0] = 0
40821
40822   ;
40823   return 0;
40824 }
40825 _ACEOF
40826 rm -f conftest.$ac_objext
40827 if { (ac_try="$ac_compile"
40828 case "(($ac_try" in
40829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40830   *) ac_try_echo=$ac_try;;
40831 esac
40832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40833 $as_echo "$ac_try_echo") >&5
40834   (eval "$ac_compile") 2>conftest.er1
40835   ac_status=$?
40836   grep -v '^ *+' conftest.er1 >conftest.err
40837   rm -f conftest.er1
40838   cat conftest.err >&5
40839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40840   (exit $ac_status); } && {
40841          test -z "$ac_c_werror_flag" ||
40842          test ! -s conftest.err
40843        } && test -s conftest.$ac_objext; then
40844   ac_lo=$ac_mid; break
40845 else
40846   $as_echo "$as_me: failed program was:" >&5
40847 sed 's/^/| /' conftest.$ac_ext >&5
40848
40849         ac_hi=`expr '(' $ac_mid ')' - 1`
40850                         if test $ac_mid -le $ac_hi; then
40851                           ac_lo= ac_hi=
40852                           break
40853                         fi
40854                         ac_mid=`expr 2 '*' $ac_mid`
40855 fi
40856
40857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40858   done
40859 else
40860   $as_echo "$as_me: failed program was:" >&5
40861 sed 's/^/| /' conftest.$ac_ext >&5
40862
40863         ac_lo= ac_hi=
40864 fi
40865
40866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40867 fi
40868
40869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40870 # Binary search between lo and hi bounds.
40871 while test "x$ac_lo" != "x$ac_hi"; do
40872   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
40873   cat >conftest.$ac_ext <<_ACEOF
40874 /* confdefs.h.  */
40875 _ACEOF
40876 cat confdefs.h >>conftest.$ac_ext
40877 cat >>conftest.$ac_ext <<_ACEOF
40878 /* end confdefs.h.  */
40879 #include <stddef.h>
40880 #include <limits.h>
40881 int
40882 main ()
40883 {
40884 static int test_array [1 - 2 * !((sizeof (size_t) * CHAR_BIT - 1) <= $ac_mid)];
40885 test_array [0] = 0
40886
40887   ;
40888   return 0;
40889 }
40890 _ACEOF
40891 rm -f conftest.$ac_objext
40892 if { (ac_try="$ac_compile"
40893 case "(($ac_try" in
40894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40895   *) ac_try_echo=$ac_try;;
40896 esac
40897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40898 $as_echo "$ac_try_echo") >&5
40899   (eval "$ac_compile") 2>conftest.er1
40900   ac_status=$?
40901   grep -v '^ *+' conftest.er1 >conftest.err
40902   rm -f conftest.er1
40903   cat conftest.err >&5
40904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40905   (exit $ac_status); } && {
40906          test -z "$ac_c_werror_flag" ||
40907          test ! -s conftest.err
40908        } && test -s conftest.$ac_objext; then
40909   ac_hi=$ac_mid
40910 else
40911   $as_echo "$as_me: failed program was:" >&5
40912 sed 's/^/| /' conftest.$ac_ext >&5
40913
40914         ac_lo=`expr '(' $ac_mid ')' + 1`
40915 fi
40916
40917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40918 done
40919 case $ac_lo in
40920 ?*) size_t_bits_minus_1=$ac_lo;;
40921 '') size_t_bits_minus_1= ;;
40922 esac
40923 else
40924   cat >conftest.$ac_ext <<_ACEOF
40925 /* confdefs.h.  */
40926 _ACEOF
40927 cat confdefs.h >>conftest.$ac_ext
40928 cat >>conftest.$ac_ext <<_ACEOF
40929 /* end confdefs.h.  */
40930 #include <stddef.h>
40931 #include <limits.h>
40932 static long int longval () { return sizeof (size_t) * CHAR_BIT - 1; }
40933 static unsigned long int ulongval () { return sizeof (size_t) * CHAR_BIT - 1; }
40934 #include <stdio.h>
40935 #include <stdlib.h>
40936 int
40937 main ()
40938 {
40939
40940   FILE *f = fopen ("conftest.val", "w");
40941   if (! f)
40942     return 1;
40943   if ((sizeof (size_t) * CHAR_BIT - 1) < 0)
40944     {
40945       long int i = longval ();
40946       if (i != (sizeof (size_t) * CHAR_BIT - 1))
40947         return 1;
40948       fprintf (f, "%ld", i);
40949     }
40950   else
40951     {
40952       unsigned long int i = ulongval ();
40953       if (i != (sizeof (size_t) * CHAR_BIT - 1))
40954         return 1;
40955       fprintf (f, "%lu", i);
40956     }
40957   /* Do not output a trailing newline, as this causes \r\n confusion
40958      on some platforms.  */
40959   return ferror (f) || fclose (f) != 0;
40960
40961   ;
40962   return 0;
40963 }
40964 _ACEOF
40965 rm -f conftest$ac_exeext
40966 if { (ac_try="$ac_link"
40967 case "(($ac_try" in
40968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40969   *) ac_try_echo=$ac_try;;
40970 esac
40971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40972 $as_echo "$ac_try_echo") >&5
40973   (eval "$ac_link") 2>&5
40974   ac_status=$?
40975   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40976   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
40977   { (case "(($ac_try" in
40978   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
40979   *) ac_try_echo=$ac_try;;
40980 esac
40981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
40982 $as_echo "$ac_try_echo") >&5
40983   (eval "$ac_try") 2>&5
40984   ac_status=$?
40985   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
40986   (exit $ac_status); }; }; then
40987   size_t_bits_minus_1=`cat conftest.val`
40988 else
40989   $as_echo "$as_me: program exited with status $ac_status" >&5
40990 $as_echo "$as_me: failed program was:" >&5
40991 sed 's/^/| /' conftest.$ac_ext >&5
40992
40993 ( exit $ac_status )
40994 size_t_bits_minus_1=
40995 fi
40996 rm -rf conftest.dSYM
40997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
40998 fi
40999 rm -f conftest.val
41000       if test "$cross_compiling" = yes; then
41001   # Depending upon the size, compute the lo and hi bounds.
41002 cat >conftest.$ac_ext <<_ACEOF
41003 /* confdefs.h.  */
41004 _ACEOF
41005 cat confdefs.h >>conftest.$ac_ext
41006 cat >>conftest.$ac_ext <<_ACEOF
41007 /* end confdefs.h.  */
41008 #include <stddef.h>
41009 int
41010 main ()
41011 {
41012 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= 0)];
41013 test_array [0] = 0
41014
41015   ;
41016   return 0;
41017 }
41018 _ACEOF
41019 rm -f conftest.$ac_objext
41020 if { (ac_try="$ac_compile"
41021 case "(($ac_try" in
41022   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41023   *) ac_try_echo=$ac_try;;
41024 esac
41025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41026 $as_echo "$ac_try_echo") >&5
41027   (eval "$ac_compile") 2>conftest.er1
41028   ac_status=$?
41029   grep -v '^ *+' conftest.er1 >conftest.err
41030   rm -f conftest.er1
41031   cat conftest.err >&5
41032   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41033   (exit $ac_status); } && {
41034          test -z "$ac_c_werror_flag" ||
41035          test ! -s conftest.err
41036        } && test -s conftest.$ac_objext; then
41037   ac_lo=0 ac_mid=0
41038   while :; do
41039     cat >conftest.$ac_ext <<_ACEOF
41040 /* confdefs.h.  */
41041 _ACEOF
41042 cat confdefs.h >>conftest.$ac_ext
41043 cat >>conftest.$ac_ext <<_ACEOF
41044 /* end confdefs.h.  */
41045 #include <stddef.h>
41046 int
41047 main ()
41048 {
41049 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
41050 test_array [0] = 0
41051
41052   ;
41053   return 0;
41054 }
41055 _ACEOF
41056 rm -f conftest.$ac_objext
41057 if { (ac_try="$ac_compile"
41058 case "(($ac_try" in
41059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41060   *) ac_try_echo=$ac_try;;
41061 esac
41062 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41063 $as_echo "$ac_try_echo") >&5
41064   (eval "$ac_compile") 2>conftest.er1
41065   ac_status=$?
41066   grep -v '^ *+' conftest.er1 >conftest.err
41067   rm -f conftest.er1
41068   cat conftest.err >&5
41069   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41070   (exit $ac_status); } && {
41071          test -z "$ac_c_werror_flag" ||
41072          test ! -s conftest.err
41073        } && test -s conftest.$ac_objext; then
41074   ac_hi=$ac_mid; break
41075 else
41076   $as_echo "$as_me: failed program was:" >&5
41077 sed 's/^/| /' conftest.$ac_ext >&5
41078
41079         ac_lo=`expr $ac_mid + 1`
41080                         if test $ac_lo -le $ac_mid; then
41081                           ac_lo= ac_hi=
41082                           break
41083                         fi
41084                         ac_mid=`expr 2 '*' $ac_mid + 1`
41085 fi
41086
41087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41088   done
41089 else
41090   $as_echo "$as_me: failed program was:" >&5
41091 sed 's/^/| /' conftest.$ac_ext >&5
41092
41093         cat >conftest.$ac_ext <<_ACEOF
41094 /* confdefs.h.  */
41095 _ACEOF
41096 cat confdefs.h >>conftest.$ac_ext
41097 cat >>conftest.$ac_ext <<_ACEOF
41098 /* end confdefs.h.  */
41099 #include <stddef.h>
41100 int
41101 main ()
41102 {
41103 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) < 0)];
41104 test_array [0] = 0
41105
41106   ;
41107   return 0;
41108 }
41109 _ACEOF
41110 rm -f conftest.$ac_objext
41111 if { (ac_try="$ac_compile"
41112 case "(($ac_try" in
41113   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41114   *) ac_try_echo=$ac_try;;
41115 esac
41116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41117 $as_echo "$ac_try_echo") >&5
41118   (eval "$ac_compile") 2>conftest.er1
41119   ac_status=$?
41120   grep -v '^ *+' conftest.er1 >conftest.err
41121   rm -f conftest.er1
41122   cat conftest.err >&5
41123   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41124   (exit $ac_status); } && {
41125          test -z "$ac_c_werror_flag" ||
41126          test ! -s conftest.err
41127        } && test -s conftest.$ac_objext; then
41128   ac_hi=-1 ac_mid=-1
41129   while :; do
41130     cat >conftest.$ac_ext <<_ACEOF
41131 /* confdefs.h.  */
41132 _ACEOF
41133 cat confdefs.h >>conftest.$ac_ext
41134 cat >>conftest.$ac_ext <<_ACEOF
41135 /* end confdefs.h.  */
41136 #include <stddef.h>
41137 int
41138 main ()
41139 {
41140 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) >= $ac_mid)];
41141 test_array [0] = 0
41142
41143   ;
41144   return 0;
41145 }
41146 _ACEOF
41147 rm -f conftest.$ac_objext
41148 if { (ac_try="$ac_compile"
41149 case "(($ac_try" in
41150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41151   *) ac_try_echo=$ac_try;;
41152 esac
41153 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41154 $as_echo "$ac_try_echo") >&5
41155   (eval "$ac_compile") 2>conftest.er1
41156   ac_status=$?
41157   grep -v '^ *+' conftest.er1 >conftest.err
41158   rm -f conftest.er1
41159   cat conftest.err >&5
41160   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41161   (exit $ac_status); } && {
41162          test -z "$ac_c_werror_flag" ||
41163          test ! -s conftest.err
41164        } && test -s conftest.$ac_objext; then
41165   ac_lo=$ac_mid; break
41166 else
41167   $as_echo "$as_me: failed program was:" >&5
41168 sed 's/^/| /' conftest.$ac_ext >&5
41169
41170         ac_hi=`expr '(' $ac_mid ')' - 1`
41171                         if test $ac_mid -le $ac_hi; then
41172                           ac_lo= ac_hi=
41173                           break
41174                         fi
41175                         ac_mid=`expr 2 '*' $ac_mid`
41176 fi
41177
41178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41179   done
41180 else
41181   $as_echo "$as_me: failed program was:" >&5
41182 sed 's/^/| /' conftest.$ac_ext >&5
41183
41184         ac_lo= ac_hi=
41185 fi
41186
41187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41188 fi
41189
41190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41191 # Binary search between lo and hi bounds.
41192 while test "x$ac_lo" != "x$ac_hi"; do
41193   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
41194   cat >conftest.$ac_ext <<_ACEOF
41195 /* confdefs.h.  */
41196 _ACEOF
41197 cat confdefs.h >>conftest.$ac_ext
41198 cat >>conftest.$ac_ext <<_ACEOF
41199 /* end confdefs.h.  */
41200 #include <stddef.h>
41201 int
41202 main ()
41203 {
41204 static int test_array [1 - 2 * !((sizeof (size_t) <= sizeof (unsigned int)) <= $ac_mid)];
41205 test_array [0] = 0
41206
41207   ;
41208   return 0;
41209 }
41210 _ACEOF
41211 rm -f conftest.$ac_objext
41212 if { (ac_try="$ac_compile"
41213 case "(($ac_try" in
41214   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41215   *) ac_try_echo=$ac_try;;
41216 esac
41217 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41218 $as_echo "$ac_try_echo") >&5
41219   (eval "$ac_compile") 2>conftest.er1
41220   ac_status=$?
41221   grep -v '^ *+' conftest.er1 >conftest.err
41222   rm -f conftest.er1
41223   cat conftest.err >&5
41224   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41225   (exit $ac_status); } && {
41226          test -z "$ac_c_werror_flag" ||
41227          test ! -s conftest.err
41228        } && test -s conftest.$ac_objext; then
41229   ac_hi=$ac_mid
41230 else
41231   $as_echo "$as_me: failed program was:" >&5
41232 sed 's/^/| /' conftest.$ac_ext >&5
41233
41234         ac_lo=`expr '(' $ac_mid ')' + 1`
41235 fi
41236
41237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41238 done
41239 case $ac_lo in
41240 ?*) fits_in_uint=$ac_lo;;
41241 '') fits_in_uint= ;;
41242 esac
41243 else
41244   cat >conftest.$ac_ext <<_ACEOF
41245 /* confdefs.h.  */
41246 _ACEOF
41247 cat confdefs.h >>conftest.$ac_ext
41248 cat >>conftest.$ac_ext <<_ACEOF
41249 /* end confdefs.h.  */
41250 #include <stddef.h>
41251 static long int longval () { return sizeof (size_t) <= sizeof (unsigned int); }
41252 static unsigned long int ulongval () { return sizeof (size_t) <= sizeof (unsigned int); }
41253 #include <stdio.h>
41254 #include <stdlib.h>
41255 int
41256 main ()
41257 {
41258
41259   FILE *f = fopen ("conftest.val", "w");
41260   if (! f)
41261     return 1;
41262   if ((sizeof (size_t) <= sizeof (unsigned int)) < 0)
41263     {
41264       long int i = longval ();
41265       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
41266         return 1;
41267       fprintf (f, "%ld", i);
41268     }
41269   else
41270     {
41271       unsigned long int i = ulongval ();
41272       if (i != (sizeof (size_t) <= sizeof (unsigned int)))
41273         return 1;
41274       fprintf (f, "%lu", i);
41275     }
41276   /* Do not output a trailing newline, as this causes \r\n confusion
41277      on some platforms.  */
41278   return ferror (f) || fclose (f) != 0;
41279
41280   ;
41281   return 0;
41282 }
41283 _ACEOF
41284 rm -f conftest$ac_exeext
41285 if { (ac_try="$ac_link"
41286 case "(($ac_try" in
41287   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41288   *) ac_try_echo=$ac_try;;
41289 esac
41290 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41291 $as_echo "$ac_try_echo") >&5
41292   (eval "$ac_link") 2>&5
41293   ac_status=$?
41294   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41295   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41296   { (case "(($ac_try" in
41297   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41298   *) ac_try_echo=$ac_try;;
41299 esac
41300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41301 $as_echo "$ac_try_echo") >&5
41302   (eval "$ac_try") 2>&5
41303   ac_status=$?
41304   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41305   (exit $ac_status); }; }; then
41306   fits_in_uint=`cat conftest.val`
41307 else
41308   $as_echo "$as_me: program exited with status $ac_status" >&5
41309 $as_echo "$as_me: failed program was:" >&5
41310 sed 's/^/| /' conftest.$ac_ext >&5
41311
41312 ( exit $ac_status )
41313 fits_in_uint=
41314 fi
41315 rm -rf conftest.dSYM
41316 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41317 fi
41318 rm -f conftest.val
41319       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
41320         if test $fits_in_uint = 1; then
41321                               cat >conftest.$ac_ext <<_ACEOF
41322 /* confdefs.h.  */
41323 _ACEOF
41324 cat confdefs.h >>conftest.$ac_ext
41325 cat >>conftest.$ac_ext <<_ACEOF
41326 /* end confdefs.h.  */
41327 #include <stddef.h>
41328                  extern size_t foo;
41329                  extern unsigned long foo;
41330
41331 int
41332 main ()
41333 {
41334
41335   ;
41336   return 0;
41337 }
41338 _ACEOF
41339 rm -f conftest.$ac_objext
41340 if { (ac_try="$ac_compile"
41341 case "(($ac_try" in
41342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41343   *) ac_try_echo=$ac_try;;
41344 esac
41345 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41346 $as_echo "$ac_try_echo") >&5
41347   (eval "$ac_compile") 2>conftest.er1
41348   ac_status=$?
41349   grep -v '^ *+' conftest.er1 >conftest.err
41350   rm -f conftest.er1
41351   cat conftest.err >&5
41352   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41353   (exit $ac_status); } && {
41354          test -z "$ac_c_werror_flag" ||
41355          test ! -s conftest.err
41356        } && test -s conftest.$ac_objext; then
41357   fits_in_uint=0
41358 else
41359   $as_echo "$as_me: failed program was:" >&5
41360 sed 's/^/| /' conftest.$ac_ext >&5
41361
41362
41363 fi
41364
41365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41366         fi
41367                                 if test $fits_in_uint = 1; then
41368           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
41369         else
41370           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
41371         fi
41372       else
41373                 gl_cv_size_max='((size_t)~(size_t)0)'
41374       fi
41375     fi
41376
41377 fi
41378 { $as_echo "$as_me:$LINENO: result: $gl_cv_size_max" >&5
41379 $as_echo "$gl_cv_size_max" >&6; }
41380   if test "$gl_cv_size_max" != yes; then
41381
41382 cat >>confdefs.h <<_ACEOF
41383 #define SIZE_MAX $gl_cv_size_max
41384 _ACEOF
41385
41386   fi
41387
41388
41389
41390   # Code from module sleep:
41391
41392
41393             { $as_echo "$as_me:$LINENO: checking whether sleep is declared" >&5
41394 $as_echo_n "checking whether sleep is declared... " >&6; }
41395 if test "${ac_cv_have_decl_sleep+set}" = set; then
41396   $as_echo_n "(cached) " >&6
41397 else
41398   cat >conftest.$ac_ext <<_ACEOF
41399 /* confdefs.h.  */
41400 _ACEOF
41401 cat confdefs.h >>conftest.$ac_ext
41402 cat >>conftest.$ac_ext <<_ACEOF
41403 /* end confdefs.h.  */
41404 #include <unistd.h>
41405
41406 int
41407 main ()
41408 {
41409 #ifndef sleep
41410   (void) sleep;
41411 #endif
41412
41413   ;
41414   return 0;
41415 }
41416 _ACEOF
41417 rm -f conftest.$ac_objext
41418 if { (ac_try="$ac_compile"
41419 case "(($ac_try" in
41420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41421   *) ac_try_echo=$ac_try;;
41422 esac
41423 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41424 $as_echo "$ac_try_echo") >&5
41425   (eval "$ac_compile") 2>conftest.er1
41426   ac_status=$?
41427   grep -v '^ *+' conftest.er1 >conftest.err
41428   rm -f conftest.er1
41429   cat conftest.err >&5
41430   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41431   (exit $ac_status); } && {
41432          test -z "$ac_c_werror_flag" ||
41433          test ! -s conftest.err
41434        } && test -s conftest.$ac_objext; then
41435   ac_cv_have_decl_sleep=yes
41436 else
41437   $as_echo "$as_me: failed program was:" >&5
41438 sed 's/^/| /' conftest.$ac_ext >&5
41439
41440         ac_cv_have_decl_sleep=no
41441 fi
41442
41443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41444 fi
41445 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sleep" >&5
41446 $as_echo "$ac_cv_have_decl_sleep" >&6; }
41447 if test "x$ac_cv_have_decl_sleep" = x""yes; then
41448
41449 cat >>confdefs.h <<_ACEOF
41450 #define HAVE_DECL_SLEEP 1
41451 _ACEOF
41452
41453
41454 else
41455   cat >>confdefs.h <<_ACEOF
41456 #define HAVE_DECL_SLEEP 0
41457 _ACEOF
41458
41459
41460 fi
41461
41462
41463
41464
41465
41466
41467
41468
41469   if test $ac_cv_have_decl_sleep != yes; then
41470     HAVE_SLEEP=0
41471
41472
41473
41474
41475
41476
41477
41478
41479   gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
41480
41481   else
41482         { $as_echo "$as_me:$LINENO: checking for working sleep" >&5
41483 $as_echo_n "checking for working sleep... " >&6; }
41484 if test "${gl_cv_func_sleep_works+set}" = set; then
41485   $as_echo_n "(cached) " >&6
41486 else
41487   if test "$cross_compiling" = yes; then
41488   gl_cv_func_sleep_works="guessing no"
41489 else
41490   cat >conftest.$ac_ext <<_ACEOF
41491 /* confdefs.h.  */
41492 _ACEOF
41493 cat confdefs.h >>conftest.$ac_ext
41494 cat >>conftest.$ac_ext <<_ACEOF
41495 /* end confdefs.h.  */
41496
41497 #include <errno.h>
41498 #include <unistd.h>
41499 #include <signal.h>
41500 static void
41501 handle_alarm (int sig)
41502 {
41503   if (sig != SIGALRM)
41504     _exit (2);
41505 }
41506
41507 int
41508 main ()
41509 {
41510
41511     /* Failure to compile this test due to missing alarm is okay,
41512        since all such platforms (mingw) also lack sleep.  */
41513     unsigned int pentecost = 50 * 24 * 60 * 60; /* 50 days.  */
41514     unsigned int remaining;
41515     signal (SIGALRM, handle_alarm);
41516     alarm (1);
41517     remaining = sleep (pentecost);
41518     if (remaining > pentecost)
41519       return 3;
41520     if (remaining <= pentecost - 10)
41521       return 4;
41522     return 0;
41523
41524   ;
41525   return 0;
41526 }
41527 _ACEOF
41528 rm -f conftest$ac_exeext
41529 if { (ac_try="$ac_link"
41530 case "(($ac_try" in
41531   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41532   *) ac_try_echo=$ac_try;;
41533 esac
41534 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41535 $as_echo "$ac_try_echo") >&5
41536   (eval "$ac_link") 2>&5
41537   ac_status=$?
41538   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41539   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41540   { (case "(($ac_try" in
41541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41542   *) ac_try_echo=$ac_try;;
41543 esac
41544 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41545 $as_echo "$ac_try_echo") >&5
41546   (eval "$ac_try") 2>&5
41547   ac_status=$?
41548   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41549   (exit $ac_status); }; }; then
41550   gl_cv_func_sleep_works=yes
41551 else
41552   $as_echo "$as_me: program exited with status $ac_status" >&5
41553 $as_echo "$as_me: failed program was:" >&5
41554 sed 's/^/| /' conftest.$ac_ext >&5
41555
41556 ( exit $ac_status )
41557 gl_cv_func_sleep_works=no
41558 fi
41559 rm -rf conftest.dSYM
41560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41561 fi
41562
41563
41564 fi
41565 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_sleep_works" >&5
41566 $as_echo "$gl_cv_func_sleep_works" >&6; }
41567     if test "$gl_cv_func_sleep_works" != yes; then
41568       REPLACE_SLEEP=1
41569
41570
41571
41572
41573
41574
41575
41576
41577   gl_LIBOBJS="$gl_LIBOBJS sleep.$ac_objext"
41578
41579     fi
41580   fi
41581
41582
41583
41584
41585   GNULIB_SLEEP=1
41586
41587
41588
41589 cat >>confdefs.h <<\_ACEOF
41590 #define GNULIB_TEST_SLEEP 1
41591 _ACEOF
41592
41593
41594
41595   # Code from module snprintf:
41596
41597
41598   gl_cv_func_snprintf_usable=no
41599
41600 for ac_func in snprintf
41601 do
41602 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41603 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
41604 $as_echo_n "checking for $ac_func... " >&6; }
41605 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
41606   $as_echo_n "(cached) " >&6
41607 else
41608   cat >conftest.$ac_ext <<_ACEOF
41609 /* confdefs.h.  */
41610 _ACEOF
41611 cat confdefs.h >>conftest.$ac_ext
41612 cat >>conftest.$ac_ext <<_ACEOF
41613 /* end confdefs.h.  */
41614 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
41615    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
41616 #define $ac_func innocuous_$ac_func
41617
41618 /* System header to define __stub macros and hopefully few prototypes,
41619     which can conflict with char $ac_func (); below.
41620     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
41621     <limits.h> exists even on freestanding compilers.  */
41622
41623 #ifdef __STDC__
41624 # include <limits.h>
41625 #else
41626 # include <assert.h>
41627 #endif
41628
41629 #undef $ac_func
41630
41631 /* Override any GCC internal prototype to avoid an error.
41632    Use char because int might match the return type of a GCC
41633    builtin and then its argument prototype would still apply.  */
41634 #ifdef __cplusplus
41635 extern "C"
41636 #endif
41637 char $ac_func ();
41638 /* The GNU C library defines this for functions which it implements
41639     to always fail with ENOSYS.  Some functions are actually named
41640     something starting with __ and the normal name is an alias.  */
41641 #if defined __stub_$ac_func || defined __stub___$ac_func
41642 choke me
41643 #endif
41644
41645 int
41646 main ()
41647 {
41648 return $ac_func ();
41649   ;
41650   return 0;
41651 }
41652 _ACEOF
41653 rm -f conftest.$ac_objext conftest$ac_exeext
41654 if { (ac_try="$ac_link"
41655 case "(($ac_try" in
41656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41657   *) ac_try_echo=$ac_try;;
41658 esac
41659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41660 $as_echo "$ac_try_echo") >&5
41661   (eval "$ac_link") 2>conftest.er1
41662   ac_status=$?
41663   grep -v '^ *+' conftest.er1 >conftest.err
41664   rm -f conftest.er1
41665   cat conftest.err >&5
41666   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41667   (exit $ac_status); } && {
41668          test -z "$ac_c_werror_flag" ||
41669          test ! -s conftest.err
41670        } && test -s conftest$ac_exeext && {
41671          test "$cross_compiling" = yes ||
41672          $as_test_x conftest$ac_exeext
41673        }; then
41674   eval "$as_ac_var=yes"
41675 else
41676   $as_echo "$as_me: failed program was:" >&5
41677 sed 's/^/| /' conftest.$ac_ext >&5
41678
41679         eval "$as_ac_var=no"
41680 fi
41681
41682 rm -rf conftest.dSYM
41683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
41684       conftest$ac_exeext conftest.$ac_ext
41685 fi
41686 ac_res=`eval 'as_val=${'$as_ac_var'}
41687                  $as_echo "$as_val"'`
41688                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
41689 $as_echo "$ac_res" >&6; }
41690 as_val=`eval 'as_val=${'$as_ac_var'}
41691                  $as_echo "$as_val"'`
41692    if test "x$as_val" = x""yes; then
41693   cat >>confdefs.h <<_ACEOF
41694 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41695 _ACEOF
41696
41697 fi
41698 done
41699
41700   if test $ac_cv_func_snprintf = yes; then
41701
41702
41703   { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
41704 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
41705 if test "${gl_cv_func_snprintf_size1+set}" = set; then
41706   $as_echo_n "(cached) " >&6
41707 else
41708
41709       if test "$cross_compiling" = yes; then
41710   gl_cv_func_snprintf_size1="guessing yes"
41711 else
41712   cat >conftest.$ac_ext <<_ACEOF
41713 /* confdefs.h.  */
41714 _ACEOF
41715 cat confdefs.h >>conftest.$ac_ext
41716 cat >>conftest.$ac_ext <<_ACEOF
41717 /* end confdefs.h.  */
41718
41719 #include <stdio.h>
41720 int main()
41721 {
41722   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
41723   snprintf (buf, 1, "%d", 12345);
41724   return buf[1] != 'E';
41725 }
41726 _ACEOF
41727 rm -f conftest$ac_exeext
41728 if { (ac_try="$ac_link"
41729 case "(($ac_try" in
41730   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41731   *) ac_try_echo=$ac_try;;
41732 esac
41733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41734 $as_echo "$ac_try_echo") >&5
41735   (eval "$ac_link") 2>&5
41736   ac_status=$?
41737   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41738   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41739   { (case "(($ac_try" in
41740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41741   *) ac_try_echo=$ac_try;;
41742 esac
41743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41744 $as_echo "$ac_try_echo") >&5
41745   (eval "$ac_try") 2>&5
41746   ac_status=$?
41747   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41748   (exit $ac_status); }; }; then
41749   gl_cv_func_snprintf_size1=yes
41750 else
41751   $as_echo "$as_me: program exited with status $ac_status" >&5
41752 $as_echo "$as_me: failed program was:" >&5
41753 sed 's/^/| /' conftest.$ac_ext >&5
41754
41755 ( exit $ac_status )
41756 gl_cv_func_snprintf_size1=no
41757 fi
41758 rm -rf conftest.dSYM
41759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41760 fi
41761
41762
41763
41764 fi
41765 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
41766 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
41767
41768     case "$gl_cv_func_snprintf_size1" in
41769       *yes)
41770
41771         case "$gl_cv_func_snprintf_retval_c99" in
41772           *yes)
41773             gl_cv_func_snprintf_usable=yes
41774             ;;
41775         esac
41776         ;;
41777     esac
41778   fi
41779   if test $gl_cv_func_snprintf_usable = no; then
41780
41781
41782
41783
41784
41785
41786
41787
41788
41789
41790   gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
41791
41792   if test $ac_cv_func_snprintf = yes; then
41793     REPLACE_SNPRINTF=1
41794   fi
41795   :
41796
41797   fi
41798
41799
41800
41801
41802   if test $ac_cv_have_decl_snprintf = no; then
41803     HAVE_DECL_SNPRINTF=0
41804   fi
41805
41806
41807
41808
41809   GNULIB_SNPRINTF=1
41810
41811
41812
41813 cat >>confdefs.h <<\_ACEOF
41814 #define GNULIB_TEST_SNPRINTF 1
41815 _ACEOF
41816
41817
41818
41819
41820
41821 cat >>confdefs.h <<_ACEOF
41822 #define GNULIB_SNPRINTF 1
41823 _ACEOF
41824
41825
41826   # Code from module ssize_t:
41827
41828   { $as_echo "$as_me:$LINENO: checking for ssize_t" >&5
41829 $as_echo_n "checking for ssize_t... " >&6; }
41830 if test "${gt_cv_ssize_t+set}" = set; then
41831   $as_echo_n "(cached) " >&6
41832 else
41833   cat >conftest.$ac_ext <<_ACEOF
41834 /* confdefs.h.  */
41835 _ACEOF
41836 cat confdefs.h >>conftest.$ac_ext
41837 cat >>conftest.$ac_ext <<_ACEOF
41838 /* end confdefs.h.  */
41839 #include <sys/types.h>
41840 int
41841 main ()
41842 {
41843 int x = sizeof (ssize_t *) + sizeof (ssize_t);
41844             return !x;
41845   ;
41846   return 0;
41847 }
41848 _ACEOF
41849 rm -f conftest.$ac_objext
41850 if { (ac_try="$ac_compile"
41851 case "(($ac_try" in
41852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41853   *) ac_try_echo=$ac_try;;
41854 esac
41855 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41856 $as_echo "$ac_try_echo") >&5
41857   (eval "$ac_compile") 2>conftest.er1
41858   ac_status=$?
41859   grep -v '^ *+' conftest.er1 >conftest.err
41860   rm -f conftest.er1
41861   cat conftest.err >&5
41862   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41863   (exit $ac_status); } && {
41864          test -z "$ac_c_werror_flag" ||
41865          test ! -s conftest.err
41866        } && test -s conftest.$ac_objext; then
41867   gt_cv_ssize_t=yes
41868 else
41869   $as_echo "$as_me: failed program was:" >&5
41870 sed 's/^/| /' conftest.$ac_ext >&5
41871
41872         gt_cv_ssize_t=no
41873 fi
41874
41875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41876 fi
41877 { $as_echo "$as_me:$LINENO: result: $gt_cv_ssize_t" >&5
41878 $as_echo "$gt_cv_ssize_t" >&6; }
41879   if test $gt_cv_ssize_t = no; then
41880
41881 cat >>confdefs.h <<\_ACEOF
41882 #define ssize_t int
41883 _ACEOF
41884
41885   fi
41886
41887   # Code from module stat:
41888
41889
41890
41891
41892
41893
41894
41895
41896     { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on directories" >&5
41897 $as_echo_n "checking whether stat handles trailing slashes on directories... " >&6; }
41898 if test "${gl_cv_func_stat_dir_slash+set}" = set; then
41899   $as_echo_n "(cached) " >&6
41900 else
41901   if test "$cross_compiling" = yes; then
41902   case $host_os in
41903             mingw*) gl_cv_func_stat_dir_slash="guessing no";;
41904             *) gl_cv_func_stat_dir_slash="guessing yes";;
41905           esac
41906 else
41907   cat >conftest.$ac_ext <<_ACEOF
41908 /* confdefs.h.  */
41909 _ACEOF
41910 cat confdefs.h >>conftest.$ac_ext
41911 cat >>conftest.$ac_ext <<_ACEOF
41912 /* end confdefs.h.  */
41913 #include <sys/stat.h>
41914
41915 int
41916 main ()
41917 {
41918 struct stat st; return stat (".", &st) != stat ("./", &st);
41919   ;
41920   return 0;
41921 }
41922 _ACEOF
41923 rm -f conftest$ac_exeext
41924 if { (ac_try="$ac_link"
41925 case "(($ac_try" in
41926   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41927   *) ac_try_echo=$ac_try;;
41928 esac
41929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41930 $as_echo "$ac_try_echo") >&5
41931   (eval "$ac_link") 2>&5
41932   ac_status=$?
41933   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41934   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
41935   { (case "(($ac_try" in
41936   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
41937   *) ac_try_echo=$ac_try;;
41938 esac
41939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
41940 $as_echo "$ac_try_echo") >&5
41941   (eval "$ac_try") 2>&5
41942   ac_status=$?
41943   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
41944   (exit $ac_status); }; }; then
41945   gl_cv_func_stat_dir_slash=yes
41946 else
41947   $as_echo "$as_me: program exited with status $ac_status" >&5
41948 $as_echo "$as_me: failed program was:" >&5
41949 sed 's/^/| /' conftest.$ac_ext >&5
41950
41951 ( exit $ac_status )
41952 gl_cv_func_stat_dir_slash=no
41953 fi
41954 rm -rf conftest.dSYM
41955 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
41956 fi
41957
41958
41959 fi
41960 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_dir_slash" >&5
41961 $as_echo "$gl_cv_func_stat_dir_slash" >&6; }
41962       { $as_echo "$as_me:$LINENO: checking whether stat handles trailing slashes on files" >&5
41963 $as_echo_n "checking whether stat handles trailing slashes on files... " >&6; }
41964 if test "${gl_cv_func_stat_file_slash+set}" = set; then
41965   $as_echo_n "(cached) " >&6
41966 else
41967   touch conftest.tmp
41968        # Assume that if we have lstat, we can also check symlinks.
41969        if test $ac_cv_func_lstat = yes; then
41970          ln -s conftest.tmp conftest.lnk
41971        fi
41972        if test "$cross_compiling" = yes; then
41973   gl_cv_func_stat_file_slash="guessing no"
41974 else
41975   cat >conftest.$ac_ext <<_ACEOF
41976 /* confdefs.h.  */
41977 _ACEOF
41978 cat confdefs.h >>conftest.$ac_ext
41979 cat >>conftest.$ac_ext <<_ACEOF
41980 /* end confdefs.h.  */
41981 #include <sys/stat.h>
41982
41983 int
41984 main ()
41985 {
41986 int result = 0;
41987       struct stat st;
41988       if (!stat ("conftest.tmp/", &st))
41989         result |= 1;
41990 #if HAVE_LSTAT
41991       if (!stat ("conftest.lnk/", &st))
41992         result |= 2;
41993 #endif
41994       return result;
41995
41996   ;
41997   return 0;
41998 }
41999 _ACEOF
42000 rm -f conftest$ac_exeext
42001 if { (ac_try="$ac_link"
42002 case "(($ac_try" in
42003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42004   *) ac_try_echo=$ac_try;;
42005 esac
42006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42007 $as_echo "$ac_try_echo") >&5
42008   (eval "$ac_link") 2>&5
42009   ac_status=$?
42010   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42011   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
42012   { (case "(($ac_try" in
42013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42014   *) ac_try_echo=$ac_try;;
42015 esac
42016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42017 $as_echo "$ac_try_echo") >&5
42018   (eval "$ac_try") 2>&5
42019   ac_status=$?
42020   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42021   (exit $ac_status); }; }; then
42022   gl_cv_func_stat_file_slash=yes
42023 else
42024   $as_echo "$as_me: program exited with status $ac_status" >&5
42025 $as_echo "$as_me: failed program was:" >&5
42026 sed 's/^/| /' conftest.$ac_ext >&5
42027
42028 ( exit $ac_status )
42029 gl_cv_func_stat_file_slash=no
42030 fi
42031 rm -rf conftest.dSYM
42032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
42033 fi
42034
42035
42036        rm -f conftest.tmp conftest.lnk
42037 fi
42038 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_stat_file_slash" >&5
42039 $as_echo "$gl_cv_func_stat_file_slash" >&6; }
42040   case $gl_cv_func_stat_dir_slash in
42041     *no) REPLACE_STAT=1
42042
42043 cat >>confdefs.h <<\_ACEOF
42044 #define REPLACE_FUNC_STAT_DIR 1
42045 _ACEOF
42046 ;;
42047   esac
42048   case $gl_cv_func_stat_file_slash in
42049     *no) REPLACE_STAT=1
42050
42051 cat >>confdefs.h <<\_ACEOF
42052 #define REPLACE_FUNC_STAT_FILE 1
42053 _ACEOF
42054 ;;
42055   esac
42056   if test $REPLACE_STAT = 1; then
42057
42058
42059
42060
42061
42062
42063
42064
42065   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
42066
42067
42068   fi
42069
42070
42071
42072
42073   GNULIB_STAT=1
42074
42075
42076
42077 cat >>confdefs.h <<\_ACEOF
42078 #define GNULIB_TEST_STAT 1
42079 _ACEOF
42080
42081
42082
42083   # Code from module stat-macros:
42084   # Code from module stat-time:
42085
42086
42087
42088
42089
42090
42091
42092
42093
42094
42095   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.tv_nsec" >&5
42096 $as_echo_n "checking for struct stat.st_atim.tv_nsec... " >&6; }
42097 if test "${ac_cv_member_struct_stat_st_atim_tv_nsec+set}" = set; then
42098   $as_echo_n "(cached) " >&6
42099 else
42100   cat >conftest.$ac_ext <<_ACEOF
42101 /* confdefs.h.  */
42102 _ACEOF
42103 cat confdefs.h >>conftest.$ac_ext
42104 cat >>conftest.$ac_ext <<_ACEOF
42105 /* end confdefs.h.  */
42106 #include <sys/types.h>
42107      #include <sys/stat.h>
42108
42109 int
42110 main ()
42111 {
42112 static struct stat ac_aggr;
42113 if (ac_aggr.st_atim.tv_nsec)
42114 return 0;
42115   ;
42116   return 0;
42117 }
42118 _ACEOF
42119 rm -f conftest.$ac_objext
42120 if { (ac_try="$ac_compile"
42121 case "(($ac_try" in
42122   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42123   *) ac_try_echo=$ac_try;;
42124 esac
42125 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42126 $as_echo "$ac_try_echo") >&5
42127   (eval "$ac_compile") 2>conftest.er1
42128   ac_status=$?
42129   grep -v '^ *+' conftest.er1 >conftest.err
42130   rm -f conftest.er1
42131   cat conftest.err >&5
42132   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42133   (exit $ac_status); } && {
42134          test -z "$ac_c_werror_flag" ||
42135          test ! -s conftest.err
42136        } && test -s conftest.$ac_objext; then
42137   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
42138 else
42139   $as_echo "$as_me: failed program was:" >&5
42140 sed 's/^/| /' conftest.$ac_ext >&5
42141
42142         cat >conftest.$ac_ext <<_ACEOF
42143 /* confdefs.h.  */
42144 _ACEOF
42145 cat confdefs.h >>conftest.$ac_ext
42146 cat >>conftest.$ac_ext <<_ACEOF
42147 /* end confdefs.h.  */
42148 #include <sys/types.h>
42149      #include <sys/stat.h>
42150
42151 int
42152 main ()
42153 {
42154 static struct stat ac_aggr;
42155 if (sizeof ac_aggr.st_atim.tv_nsec)
42156 return 0;
42157   ;
42158   return 0;
42159 }
42160 _ACEOF
42161 rm -f conftest.$ac_objext
42162 if { (ac_try="$ac_compile"
42163 case "(($ac_try" in
42164   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42165   *) ac_try_echo=$ac_try;;
42166 esac
42167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42168 $as_echo "$ac_try_echo") >&5
42169   (eval "$ac_compile") 2>conftest.er1
42170   ac_status=$?
42171   grep -v '^ *+' conftest.er1 >conftest.err
42172   rm -f conftest.er1
42173   cat conftest.err >&5
42174   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42175   (exit $ac_status); } && {
42176          test -z "$ac_c_werror_flag" ||
42177          test ! -s conftest.err
42178        } && test -s conftest.$ac_objext; then
42179   ac_cv_member_struct_stat_st_atim_tv_nsec=yes
42180 else
42181   $as_echo "$as_me: failed program was:" >&5
42182 sed 's/^/| /' conftest.$ac_ext >&5
42183
42184         ac_cv_member_struct_stat_st_atim_tv_nsec=no
42185 fi
42186
42187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42188 fi
42189
42190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42191 fi
42192 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_tv_nsec" >&5
42193 $as_echo "$ac_cv_member_struct_stat_st_atim_tv_nsec" >&6; }
42194 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = x""yes; then
42195
42196 cat >>confdefs.h <<_ACEOF
42197 #define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1
42198 _ACEOF
42199
42200 { $as_echo "$as_me:$LINENO: checking whether struct stat.st_atim is of type struct timespec" >&5
42201 $as_echo_n "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
42202 if test "${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+set}" = set; then
42203   $as_echo_n "(cached) " >&6
42204 else
42205   cat >conftest.$ac_ext <<_ACEOF
42206 /* confdefs.h.  */
42207 _ACEOF
42208 cat confdefs.h >>conftest.$ac_ext
42209 cat >>conftest.$ac_ext <<_ACEOF
42210 /* end confdefs.h.  */
42211
42212             #include <sys/types.h>
42213             #include <sys/stat.h>
42214             #if HAVE_SYS_TIME_H
42215             # include <sys/time.h>
42216             #endif
42217             #include <time.h>
42218             struct timespec ts;
42219             struct stat st;
42220
42221 int
42222 main ()
42223 {
42224
42225             st.st_atim = ts;
42226
42227   ;
42228   return 0;
42229 }
42230 _ACEOF
42231 rm -f conftest.$ac_objext
42232 if { (ac_try="$ac_compile"
42233 case "(($ac_try" in
42234   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42235   *) ac_try_echo=$ac_try;;
42236 esac
42237 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42238 $as_echo "$ac_try_echo") >&5
42239   (eval "$ac_compile") 2>conftest.er1
42240   ac_status=$?
42241   grep -v '^ *+' conftest.er1 >conftest.err
42242   rm -f conftest.er1
42243   cat conftest.err >&5
42244   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42245   (exit $ac_status); } && {
42246          test -z "$ac_c_werror_flag" ||
42247          test ! -s conftest.err
42248        } && test -s conftest.$ac_objext; then
42249   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
42250 else
42251   $as_echo "$as_me: failed program was:" >&5
42252 sed 's/^/| /' conftest.$ac_ext >&5
42253
42254         ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
42255 fi
42256
42257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42258 fi
42259 { $as_echo "$as_me:$LINENO: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
42260 $as_echo "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
42261      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
42262
42263 cat >>confdefs.h <<\_ACEOF
42264 #define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1
42265 _ACEOF
42266
42267      fi
42268 else
42269   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimespec.tv_nsec" >&5
42270 $as_echo_n "checking for struct stat.st_atimespec.tv_nsec... " >&6; }
42271 if test "${ac_cv_member_struct_stat_st_atimespec_tv_nsec+set}" = set; then
42272   $as_echo_n "(cached) " >&6
42273 else
42274   cat >conftest.$ac_ext <<_ACEOF
42275 /* confdefs.h.  */
42276 _ACEOF
42277 cat confdefs.h >>conftest.$ac_ext
42278 cat >>conftest.$ac_ext <<_ACEOF
42279 /* end confdefs.h.  */
42280 #include <sys/types.h>
42281         #include <sys/stat.h>
42282
42283 int
42284 main ()
42285 {
42286 static struct stat ac_aggr;
42287 if (ac_aggr.st_atimespec.tv_nsec)
42288 return 0;
42289   ;
42290   return 0;
42291 }
42292 _ACEOF
42293 rm -f conftest.$ac_objext
42294 if { (ac_try="$ac_compile"
42295 case "(($ac_try" in
42296   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42297   *) ac_try_echo=$ac_try;;
42298 esac
42299 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42300 $as_echo "$ac_try_echo") >&5
42301   (eval "$ac_compile") 2>conftest.er1
42302   ac_status=$?
42303   grep -v '^ *+' conftest.er1 >conftest.err
42304   rm -f conftest.er1
42305   cat conftest.err >&5
42306   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42307   (exit $ac_status); } && {
42308          test -z "$ac_c_werror_flag" ||
42309          test ! -s conftest.err
42310        } && test -s conftest.$ac_objext; then
42311   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
42312 else
42313   $as_echo "$as_me: failed program was:" >&5
42314 sed 's/^/| /' conftest.$ac_ext >&5
42315
42316         cat >conftest.$ac_ext <<_ACEOF
42317 /* confdefs.h.  */
42318 _ACEOF
42319 cat confdefs.h >>conftest.$ac_ext
42320 cat >>conftest.$ac_ext <<_ACEOF
42321 /* end confdefs.h.  */
42322 #include <sys/types.h>
42323         #include <sys/stat.h>
42324
42325 int
42326 main ()
42327 {
42328 static struct stat ac_aggr;
42329 if (sizeof ac_aggr.st_atimespec.tv_nsec)
42330 return 0;
42331   ;
42332   return 0;
42333 }
42334 _ACEOF
42335 rm -f conftest.$ac_objext
42336 if { (ac_try="$ac_compile"
42337 case "(($ac_try" in
42338   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42339   *) ac_try_echo=$ac_try;;
42340 esac
42341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42342 $as_echo "$ac_try_echo") >&5
42343   (eval "$ac_compile") 2>conftest.er1
42344   ac_status=$?
42345   grep -v '^ *+' conftest.er1 >conftest.err
42346   rm -f conftest.er1
42347   cat conftest.err >&5
42348   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42349   (exit $ac_status); } && {
42350          test -z "$ac_c_werror_flag" ||
42351          test ! -s conftest.err
42352        } && test -s conftest.$ac_objext; then
42353   ac_cv_member_struct_stat_st_atimespec_tv_nsec=yes
42354 else
42355   $as_echo "$as_me: failed program was:" >&5
42356 sed 's/^/| /' conftest.$ac_ext >&5
42357
42358         ac_cv_member_struct_stat_st_atimespec_tv_nsec=no
42359 fi
42360
42361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42362 fi
42363
42364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42365 fi
42366 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&5
42367 $as_echo "$ac_cv_member_struct_stat_st_atimespec_tv_nsec" >&6; }
42368 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = x""yes; then
42369
42370 cat >>confdefs.h <<_ACEOF
42371 #define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1
42372 _ACEOF
42373
42374
42375 else
42376   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5
42377 $as_echo_n "checking for struct stat.st_atimensec... " >&6; }
42378 if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then
42379   $as_echo_n "(cached) " >&6
42380 else
42381   cat >conftest.$ac_ext <<_ACEOF
42382 /* confdefs.h.  */
42383 _ACEOF
42384 cat confdefs.h >>conftest.$ac_ext
42385 cat >>conftest.$ac_ext <<_ACEOF
42386 /* end confdefs.h.  */
42387 #include <sys/types.h>
42388            #include <sys/stat.h>
42389
42390 int
42391 main ()
42392 {
42393 static struct stat ac_aggr;
42394 if (ac_aggr.st_atimensec)
42395 return 0;
42396   ;
42397   return 0;
42398 }
42399 _ACEOF
42400 rm -f conftest.$ac_objext
42401 if { (ac_try="$ac_compile"
42402 case "(($ac_try" in
42403   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42404   *) ac_try_echo=$ac_try;;
42405 esac
42406 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42407 $as_echo "$ac_try_echo") >&5
42408   (eval "$ac_compile") 2>conftest.er1
42409   ac_status=$?
42410   grep -v '^ *+' conftest.er1 >conftest.err
42411   rm -f conftest.er1
42412   cat conftest.err >&5
42413   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42414   (exit $ac_status); } && {
42415          test -z "$ac_c_werror_flag" ||
42416          test ! -s conftest.err
42417        } && test -s conftest.$ac_objext; then
42418   ac_cv_member_struct_stat_st_atimensec=yes
42419 else
42420   $as_echo "$as_me: failed program was:" >&5
42421 sed 's/^/| /' conftest.$ac_ext >&5
42422
42423         cat >conftest.$ac_ext <<_ACEOF
42424 /* confdefs.h.  */
42425 _ACEOF
42426 cat confdefs.h >>conftest.$ac_ext
42427 cat >>conftest.$ac_ext <<_ACEOF
42428 /* end confdefs.h.  */
42429 #include <sys/types.h>
42430            #include <sys/stat.h>
42431
42432 int
42433 main ()
42434 {
42435 static struct stat ac_aggr;
42436 if (sizeof ac_aggr.st_atimensec)
42437 return 0;
42438   ;
42439   return 0;
42440 }
42441 _ACEOF
42442 rm -f conftest.$ac_objext
42443 if { (ac_try="$ac_compile"
42444 case "(($ac_try" in
42445   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42446   *) ac_try_echo=$ac_try;;
42447 esac
42448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42449 $as_echo "$ac_try_echo") >&5
42450   (eval "$ac_compile") 2>conftest.er1
42451   ac_status=$?
42452   grep -v '^ *+' conftest.er1 >conftest.err
42453   rm -f conftest.er1
42454   cat conftest.err >&5
42455   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42456   (exit $ac_status); } && {
42457          test -z "$ac_c_werror_flag" ||
42458          test ! -s conftest.err
42459        } && test -s conftest.$ac_objext; then
42460   ac_cv_member_struct_stat_st_atimensec=yes
42461 else
42462   $as_echo "$as_me: failed program was:" >&5
42463 sed 's/^/| /' conftest.$ac_ext >&5
42464
42465         ac_cv_member_struct_stat_st_atimensec=no
42466 fi
42467
42468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42469 fi
42470
42471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42472 fi
42473 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5
42474 $as_echo "$ac_cv_member_struct_stat_st_atimensec" >&6; }
42475 if test "x$ac_cv_member_struct_stat_st_atimensec" = x""yes; then
42476
42477 cat >>confdefs.h <<_ACEOF
42478 #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1
42479 _ACEOF
42480
42481
42482 else
42483   { $as_echo "$as_me:$LINENO: checking for struct stat.st_atim.st__tim.tv_nsec" >&5
42484 $as_echo_n "checking for struct stat.st_atim.st__tim.tv_nsec... " >&6; }
42485 if test "${ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec+set}" = set; then
42486   $as_echo_n "(cached) " >&6
42487 else
42488   cat >conftest.$ac_ext <<_ACEOF
42489 /* confdefs.h.  */
42490 _ACEOF
42491 cat confdefs.h >>conftest.$ac_ext
42492 cat >>conftest.$ac_ext <<_ACEOF
42493 /* end confdefs.h.  */
42494 #include <sys/types.h>
42495               #include <sys/stat.h>
42496
42497 int
42498 main ()
42499 {
42500 static struct stat ac_aggr;
42501 if (ac_aggr.st_atim.st__tim.tv_nsec)
42502 return 0;
42503   ;
42504   return 0;
42505 }
42506 _ACEOF
42507 rm -f conftest.$ac_objext
42508 if { (ac_try="$ac_compile"
42509 case "(($ac_try" in
42510   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42511   *) ac_try_echo=$ac_try;;
42512 esac
42513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42514 $as_echo "$ac_try_echo") >&5
42515   (eval "$ac_compile") 2>conftest.er1
42516   ac_status=$?
42517   grep -v '^ *+' conftest.er1 >conftest.err
42518   rm -f conftest.er1
42519   cat conftest.err >&5
42520   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42521   (exit $ac_status); } && {
42522          test -z "$ac_c_werror_flag" ||
42523          test ! -s conftest.err
42524        } && test -s conftest.$ac_objext; then
42525   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
42526 else
42527   $as_echo "$as_me: failed program was:" >&5
42528 sed 's/^/| /' conftest.$ac_ext >&5
42529
42530         cat >conftest.$ac_ext <<_ACEOF
42531 /* confdefs.h.  */
42532 _ACEOF
42533 cat confdefs.h >>conftest.$ac_ext
42534 cat >>conftest.$ac_ext <<_ACEOF
42535 /* end confdefs.h.  */
42536 #include <sys/types.h>
42537               #include <sys/stat.h>
42538
42539 int
42540 main ()
42541 {
42542 static struct stat ac_aggr;
42543 if (sizeof ac_aggr.st_atim.st__tim.tv_nsec)
42544 return 0;
42545   ;
42546   return 0;
42547 }
42548 _ACEOF
42549 rm -f conftest.$ac_objext
42550 if { (ac_try="$ac_compile"
42551 case "(($ac_try" in
42552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42553   *) ac_try_echo=$ac_try;;
42554 esac
42555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42556 $as_echo "$ac_try_echo") >&5
42557   (eval "$ac_compile") 2>conftest.er1
42558   ac_status=$?
42559   grep -v '^ *+' conftest.er1 >conftest.err
42560   rm -f conftest.er1
42561   cat conftest.err >&5
42562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42563   (exit $ac_status); } && {
42564          test -z "$ac_c_werror_flag" ||
42565          test ! -s conftest.err
42566        } && test -s conftest.$ac_objext; then
42567   ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=yes
42568 else
42569   $as_echo "$as_me: failed program was:" >&5
42570 sed 's/^/| /' conftest.$ac_ext >&5
42571
42572         ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec=no
42573 fi
42574
42575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42576 fi
42577
42578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42579 fi
42580 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&5
42581 $as_echo "$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" >&6; }
42582 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = x""yes; then
42583
42584 cat >>confdefs.h <<_ACEOF
42585 #define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1
42586 _ACEOF
42587
42588
42589 fi
42590
42591 fi
42592
42593 fi
42594
42595 fi
42596
42597
42598
42599
42600
42601
42602
42603
42604
42605
42606
42607   { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimespec.tv_nsec" >&5
42608 $as_echo_n "checking for struct stat.st_birthtimespec.tv_nsec... " >&6; }
42609 if test "${ac_cv_member_struct_stat_st_birthtimespec_tv_nsec+set}" = set; then
42610   $as_echo_n "(cached) " >&6
42611 else
42612   cat >conftest.$ac_ext <<_ACEOF
42613 /* confdefs.h.  */
42614 _ACEOF
42615 cat confdefs.h >>conftest.$ac_ext
42616 cat >>conftest.$ac_ext <<_ACEOF
42617 /* end confdefs.h.  */
42618 #include <sys/types.h>
42619      #include <sys/stat.h>
42620
42621 int
42622 main ()
42623 {
42624 static struct stat ac_aggr;
42625 if (ac_aggr.st_birthtimespec.tv_nsec)
42626 return 0;
42627   ;
42628   return 0;
42629 }
42630 _ACEOF
42631 rm -f conftest.$ac_objext
42632 if { (ac_try="$ac_compile"
42633 case "(($ac_try" in
42634   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42635   *) ac_try_echo=$ac_try;;
42636 esac
42637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42638 $as_echo "$ac_try_echo") >&5
42639   (eval "$ac_compile") 2>conftest.er1
42640   ac_status=$?
42641   grep -v '^ *+' conftest.er1 >conftest.err
42642   rm -f conftest.er1
42643   cat conftest.err >&5
42644   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42645   (exit $ac_status); } && {
42646          test -z "$ac_c_werror_flag" ||
42647          test ! -s conftest.err
42648        } && test -s conftest.$ac_objext; then
42649   ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
42650 else
42651   $as_echo "$as_me: failed program was:" >&5
42652 sed 's/^/| /' conftest.$ac_ext >&5
42653
42654         cat >conftest.$ac_ext <<_ACEOF
42655 /* confdefs.h.  */
42656 _ACEOF
42657 cat confdefs.h >>conftest.$ac_ext
42658 cat >>conftest.$ac_ext <<_ACEOF
42659 /* end confdefs.h.  */
42660 #include <sys/types.h>
42661      #include <sys/stat.h>
42662
42663 int
42664 main ()
42665 {
42666 static struct stat ac_aggr;
42667 if (sizeof ac_aggr.st_birthtimespec.tv_nsec)
42668 return 0;
42669   ;
42670   return 0;
42671 }
42672 _ACEOF
42673 rm -f conftest.$ac_objext
42674 if { (ac_try="$ac_compile"
42675 case "(($ac_try" in
42676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42677   *) ac_try_echo=$ac_try;;
42678 esac
42679 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42680 $as_echo "$ac_try_echo") >&5
42681   (eval "$ac_compile") 2>conftest.er1
42682   ac_status=$?
42683   grep -v '^ *+' conftest.er1 >conftest.err
42684   rm -f conftest.er1
42685   cat conftest.err >&5
42686   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42687   (exit $ac_status); } && {
42688          test -z "$ac_c_werror_flag" ||
42689          test ! -s conftest.err
42690        } && test -s conftest.$ac_objext; then
42691   ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=yes
42692 else
42693   $as_echo "$as_me: failed program was:" >&5
42694 sed 's/^/| /' conftest.$ac_ext >&5
42695
42696         ac_cv_member_struct_stat_st_birthtimespec_tv_nsec=no
42697 fi
42698
42699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42700 fi
42701
42702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42703 fi
42704 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&5
42705 $as_echo "$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" >&6; }
42706 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = x""yes; then
42707
42708 cat >>confdefs.h <<_ACEOF
42709 #define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1
42710 _ACEOF
42711
42712
42713 else
42714   { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtimensec" >&5
42715 $as_echo_n "checking for struct stat.st_birthtimensec... " >&6; }
42716 if test "${ac_cv_member_struct_stat_st_birthtimensec+set}" = set; then
42717   $as_echo_n "(cached) " >&6
42718 else
42719   cat >conftest.$ac_ext <<_ACEOF
42720 /* confdefs.h.  */
42721 _ACEOF
42722 cat confdefs.h >>conftest.$ac_ext
42723 cat >>conftest.$ac_ext <<_ACEOF
42724 /* end confdefs.h.  */
42725 #include <sys/types.h>
42726         #include <sys/stat.h>
42727
42728 int
42729 main ()
42730 {
42731 static struct stat ac_aggr;
42732 if (ac_aggr.st_birthtimensec)
42733 return 0;
42734   ;
42735   return 0;
42736 }
42737 _ACEOF
42738 rm -f conftest.$ac_objext
42739 if { (ac_try="$ac_compile"
42740 case "(($ac_try" in
42741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42742   *) ac_try_echo=$ac_try;;
42743 esac
42744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42745 $as_echo "$ac_try_echo") >&5
42746   (eval "$ac_compile") 2>conftest.er1
42747   ac_status=$?
42748   grep -v '^ *+' conftest.er1 >conftest.err
42749   rm -f conftest.er1
42750   cat conftest.err >&5
42751   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42752   (exit $ac_status); } && {
42753          test -z "$ac_c_werror_flag" ||
42754          test ! -s conftest.err
42755        } && test -s conftest.$ac_objext; then
42756   ac_cv_member_struct_stat_st_birthtimensec=yes
42757 else
42758   $as_echo "$as_me: failed program was:" >&5
42759 sed 's/^/| /' conftest.$ac_ext >&5
42760
42761         cat >conftest.$ac_ext <<_ACEOF
42762 /* confdefs.h.  */
42763 _ACEOF
42764 cat confdefs.h >>conftest.$ac_ext
42765 cat >>conftest.$ac_ext <<_ACEOF
42766 /* end confdefs.h.  */
42767 #include <sys/types.h>
42768         #include <sys/stat.h>
42769
42770 int
42771 main ()
42772 {
42773 static struct stat ac_aggr;
42774 if (sizeof ac_aggr.st_birthtimensec)
42775 return 0;
42776   ;
42777   return 0;
42778 }
42779 _ACEOF
42780 rm -f conftest.$ac_objext
42781 if { (ac_try="$ac_compile"
42782 case "(($ac_try" in
42783   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42784   *) ac_try_echo=$ac_try;;
42785 esac
42786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42787 $as_echo "$ac_try_echo") >&5
42788   (eval "$ac_compile") 2>conftest.er1
42789   ac_status=$?
42790   grep -v '^ *+' conftest.er1 >conftest.err
42791   rm -f conftest.er1
42792   cat conftest.err >&5
42793   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42794   (exit $ac_status); } && {
42795          test -z "$ac_c_werror_flag" ||
42796          test ! -s conftest.err
42797        } && test -s conftest.$ac_objext; then
42798   ac_cv_member_struct_stat_st_birthtimensec=yes
42799 else
42800   $as_echo "$as_me: failed program was:" >&5
42801 sed 's/^/| /' conftest.$ac_ext >&5
42802
42803         ac_cv_member_struct_stat_st_birthtimensec=no
42804 fi
42805
42806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42807 fi
42808
42809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42810 fi
42811 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtimensec" >&5
42812 $as_echo "$ac_cv_member_struct_stat_st_birthtimensec" >&6; }
42813 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = x""yes; then
42814
42815 cat >>confdefs.h <<_ACEOF
42816 #define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1
42817 _ACEOF
42818
42819
42820 else
42821   { $as_echo "$as_me:$LINENO: checking for struct stat.st_birthtim.tv_nsec" >&5
42822 $as_echo_n "checking for struct stat.st_birthtim.tv_nsec... " >&6; }
42823 if test "${ac_cv_member_struct_stat_st_birthtim_tv_nsec+set}" = set; then
42824   $as_echo_n "(cached) " >&6
42825 else
42826   cat >conftest.$ac_ext <<_ACEOF
42827 /* confdefs.h.  */
42828 _ACEOF
42829 cat confdefs.h >>conftest.$ac_ext
42830 cat >>conftest.$ac_ext <<_ACEOF
42831 /* end confdefs.h.  */
42832 #include <sys/types.h>
42833           #include <sys/stat.h>
42834
42835 int
42836 main ()
42837 {
42838 static struct stat ac_aggr;
42839 if (ac_aggr.st_birthtim.tv_nsec)
42840 return 0;
42841   ;
42842   return 0;
42843 }
42844 _ACEOF
42845 rm -f conftest.$ac_objext
42846 if { (ac_try="$ac_compile"
42847 case "(($ac_try" in
42848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42849   *) ac_try_echo=$ac_try;;
42850 esac
42851 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42852 $as_echo "$ac_try_echo") >&5
42853   (eval "$ac_compile") 2>conftest.er1
42854   ac_status=$?
42855   grep -v '^ *+' conftest.er1 >conftest.err
42856   rm -f conftest.er1
42857   cat conftest.err >&5
42858   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42859   (exit $ac_status); } && {
42860          test -z "$ac_c_werror_flag" ||
42861          test ! -s conftest.err
42862        } && test -s conftest.$ac_objext; then
42863   ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
42864 else
42865   $as_echo "$as_me: failed program was:" >&5
42866 sed 's/^/| /' conftest.$ac_ext >&5
42867
42868         cat >conftest.$ac_ext <<_ACEOF
42869 /* confdefs.h.  */
42870 _ACEOF
42871 cat confdefs.h >>conftest.$ac_ext
42872 cat >>conftest.$ac_ext <<_ACEOF
42873 /* end confdefs.h.  */
42874 #include <sys/types.h>
42875           #include <sys/stat.h>
42876
42877 int
42878 main ()
42879 {
42880 static struct stat ac_aggr;
42881 if (sizeof ac_aggr.st_birthtim.tv_nsec)
42882 return 0;
42883   ;
42884   return 0;
42885 }
42886 _ACEOF
42887 rm -f conftest.$ac_objext
42888 if { (ac_try="$ac_compile"
42889 case "(($ac_try" in
42890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42891   *) ac_try_echo=$ac_try;;
42892 esac
42893 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42894 $as_echo "$ac_try_echo") >&5
42895   (eval "$ac_compile") 2>conftest.er1
42896   ac_status=$?
42897   grep -v '^ *+' conftest.er1 >conftest.err
42898   rm -f conftest.er1
42899   cat conftest.err >&5
42900   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42901   (exit $ac_status); } && {
42902          test -z "$ac_c_werror_flag" ||
42903          test ! -s conftest.err
42904        } && test -s conftest.$ac_objext; then
42905   ac_cv_member_struct_stat_st_birthtim_tv_nsec=yes
42906 else
42907   $as_echo "$as_me: failed program was:" >&5
42908 sed 's/^/| /' conftest.$ac_ext >&5
42909
42910         ac_cv_member_struct_stat_st_birthtim_tv_nsec=no
42911 fi
42912
42913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42914 fi
42915
42916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42917 fi
42918 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&5
42919 $as_echo "$ac_cv_member_struct_stat_st_birthtim_tv_nsec" >&6; }
42920 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = x""yes; then
42921
42922 cat >>confdefs.h <<_ACEOF
42923 #define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1
42924 _ACEOF
42925
42926
42927 fi
42928
42929 fi
42930
42931 fi
42932
42933
42934   # Code from module stdarg:
42935
42936   STDARG_H='';
42937   NEXT_STDARG_H='<stdarg.h>';
42938   { $as_echo "$as_me:$LINENO: checking for va_copy" >&5
42939 $as_echo_n "checking for va_copy... " >&6; }
42940   if test "${gl_cv_func_va_copy+set}" = set; then
42941   $as_echo_n "(cached) " >&6
42942 else
42943
42944     cat >conftest.$ac_ext <<_ACEOF
42945 /* confdefs.h.  */
42946 _ACEOF
42947 cat confdefs.h >>conftest.$ac_ext
42948 cat >>conftest.$ac_ext <<_ACEOF
42949 /* end confdefs.h.  */
42950 #include <stdarg.h>
42951 int
42952 main ()
42953 {
42954
42955 #ifndef va_copy
42956 void (*func) (va_list, va_list) = va_copy;
42957 #endif
42958
42959   ;
42960   return 0;
42961 }
42962 _ACEOF
42963 rm -f conftest.$ac_objext
42964 if { (ac_try="$ac_compile"
42965 case "(($ac_try" in
42966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
42967   *) ac_try_echo=$ac_try;;
42968 esac
42969 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
42970 $as_echo "$ac_try_echo") >&5
42971   (eval "$ac_compile") 2>conftest.er1
42972   ac_status=$?
42973   grep -v '^ *+' conftest.er1 >conftest.err
42974   rm -f conftest.er1
42975   cat conftest.err >&5
42976   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
42977   (exit $ac_status); } && {
42978          test -z "$ac_c_werror_flag" ||
42979          test ! -s conftest.err
42980        } && test -s conftest.$ac_objext; then
42981   gl_cv_func_va_copy=yes
42982 else
42983   $as_echo "$as_me: failed program was:" >&5
42984 sed 's/^/| /' conftest.$ac_ext >&5
42985
42986         gl_cv_func_va_copy=no
42987 fi
42988
42989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42990 fi
42991
42992   { $as_echo "$as_me:$LINENO: result: $gl_cv_func_va_copy" >&5
42993 $as_echo "$gl_cv_func_va_copy" >&6; }
42994   if test $gl_cv_func_va_copy = no; then
42995                                     cat >conftest.$ac_ext <<_ACEOF
42996 /* confdefs.h.  */
42997 _ACEOF
42998 cat confdefs.h >>conftest.$ac_ext
42999 cat >>conftest.$ac_ext <<_ACEOF
43000 /* end confdefs.h.  */
43001 #if defined _AIX && !defined __GNUC__
43002         AIX vaccine
43003        #endif
43004
43005 _ACEOF
43006 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43007   $EGREP "vaccine" >/dev/null 2>&1; then
43008   gl_aixcc=yes
43009 else
43010   gl_aixcc=no
43011 fi
43012 rm -f conftest*
43013
43014     if test $gl_aixcc = yes; then
43015             STDARG_H=stdarg.h
43016
43017
43018
43019
43020
43021
43022
43023
43024      if test $gl_cv_have_include_next = yes; then
43025        gl_cv_next_stdarg_h='<'stdarg.h'>'
43026      else
43027        { $as_echo "$as_me:$LINENO: checking absolute name of <stdarg.h>" >&5
43028 $as_echo_n "checking absolute name of <stdarg.h>... " >&6; }
43029 if test "${gl_cv_next_stdarg_h+set}" = set; then
43030   $as_echo_n "(cached) " >&6
43031 else
43032
43033                cat >conftest.$ac_ext <<_ACEOF
43034 /* confdefs.h.  */
43035 _ACEOF
43036 cat confdefs.h >>conftest.$ac_ext
43037 cat >>conftest.$ac_ext <<_ACEOF
43038 /* end confdefs.h.  */
43039 #include <stdarg.h>
43040
43041 _ACEOF
43042                                                                                                                         case "$host_os" in
43043                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
43044                  *)    gl_absname_cpp="$ac_cpp" ;;
43045                esac
43046                                                             gl_cv_next_stdarg_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43047                   sed -n '\#/stdarg.h#{
43048                     s#.*"\(.*/stdarg.h\)".*#\1#
43049                     s#^/[^/]#//&#
43050                     p
43051                     q
43052                   }'`'"'
43053
43054
43055 fi
43056 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdarg_h" >&5
43057 $as_echo "$gl_cv_next_stdarg_h" >&6; }
43058      fi
43059      NEXT_STDARG_H=$gl_cv_next_stdarg_h
43060
43061      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43062        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43063        gl_next_as_first_directive='<'stdarg.h'>'
43064      else
43065        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43066        gl_next_as_first_directive=$gl_cv_next_stdarg_h
43067      fi
43068      NEXT_AS_FIRST_DIRECTIVE_STDARG_H=$gl_next_as_first_directive
43069
43070
43071
43072
43073             if test "$gl_cv_next_stdarg_h" = '""'; then
43074         gl_cv_next_stdarg_h='"///usr/include/stdarg.h"'
43075         NEXT_STDARG_H="$gl_cv_next_stdarg_h"
43076       fi
43077     else
43078
43079   saved_as_echo_n="$as_echo_n"
43080   as_echo_n=':'
43081   if test "${gl_cv_func___va_copy+set}" = set; then
43082   $as_echo_n "(cached) " >&6
43083 else
43084
43085         cat >conftest.$ac_ext <<_ACEOF
43086 /* confdefs.h.  */
43087 _ACEOF
43088 cat confdefs.h >>conftest.$ac_ext
43089 cat >>conftest.$ac_ext <<_ACEOF
43090 /* end confdefs.h.  */
43091 #include <stdarg.h>
43092 int
43093 main ()
43094 {
43095
43096 #ifndef __va_copy
43097 error, bail out
43098 #endif
43099
43100   ;
43101   return 0;
43102 }
43103 _ACEOF
43104 rm -f conftest.$ac_objext
43105 if { (ac_try="$ac_compile"
43106 case "(($ac_try" in
43107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43108   *) ac_try_echo=$ac_try;;
43109 esac
43110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43111 $as_echo "$ac_try_echo") >&5
43112   (eval "$ac_compile") 2>conftest.er1
43113   ac_status=$?
43114   grep -v '^ *+' conftest.er1 >conftest.err
43115   rm -f conftest.er1
43116   cat conftest.err >&5
43117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43118   (exit $ac_status); } && {
43119          test -z "$ac_c_werror_flag" ||
43120          test ! -s conftest.err
43121        } && test -s conftest.$ac_objext; then
43122   gl_cv_func___va_copy=yes
43123 else
43124   $as_echo "$as_me: failed program was:" >&5
43125 sed 's/^/| /' conftest.$ac_ext >&5
43126
43127         gl_cv_func___va_copy=no
43128 fi
43129
43130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43131 fi
43132
43133   as_echo_n="$saved_as_echo_n"
43134
43135       if test $gl_cv_func___va_copy = yes; then
43136
43137 cat >>confdefs.h <<\_ACEOF
43138 #define va_copy __va_copy
43139 _ACEOF
43140
43141       else
43142
43143
43144
43145 cat >>confdefs.h <<\_ACEOF
43146 #define va_copy gl_va_copy
43147 _ACEOF
43148
43149       fi
43150     fi
43151   fi
43152
43153   # Code from module stdbool:
43154
43155
43156
43157   # Define two additional variables used in the Makefile substitution.
43158
43159   if test "$ac_cv_header_stdbool_h" = yes; then
43160     STDBOOL_H=''
43161   else
43162     STDBOOL_H='stdbool.h'
43163   fi
43164
43165
43166   if test "$ac_cv_type__Bool" = yes; then
43167     HAVE__BOOL=1
43168   else
43169     HAVE__BOOL=0
43170   fi
43171
43172
43173   # Code from module stddef:
43174
43175
43176
43177   if test $gt_cv_c_wchar_t = no; then
43178     HAVE_WCHAR_T=0
43179     STDDEF_H=stddef.h
43180   fi
43181   { $as_echo "$as_me:$LINENO: checking whether NULL can be used in arbitrary expressions" >&5
43182 $as_echo_n "checking whether NULL can be used in arbitrary expressions... " >&6; }
43183 if test "${gl_cv_decl_null_works+set}" = set; then
43184   $as_echo_n "(cached) " >&6
43185 else
43186   cat >conftest.$ac_ext <<_ACEOF
43187 /* confdefs.h.  */
43188 _ACEOF
43189 cat confdefs.h >>conftest.$ac_ext
43190 cat >>conftest.$ac_ext <<_ACEOF
43191 /* end confdefs.h.  */
43192 #include <stddef.h>
43193       int test[2 * (sizeof NULL == sizeof (void *)) -1];
43194
43195 int
43196 main ()
43197 {
43198
43199   ;
43200   return 0;
43201 }
43202 _ACEOF
43203 rm -f conftest.$ac_objext
43204 if { (ac_try="$ac_compile"
43205 case "(($ac_try" in
43206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43207   *) ac_try_echo=$ac_try;;
43208 esac
43209 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43210 $as_echo "$ac_try_echo") >&5
43211   (eval "$ac_compile") 2>conftest.er1
43212   ac_status=$?
43213   grep -v '^ *+' conftest.er1 >conftest.err
43214   rm -f conftest.er1
43215   cat conftest.err >&5
43216   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43217   (exit $ac_status); } && {
43218          test -z "$ac_c_werror_flag" ||
43219          test ! -s conftest.err
43220        } && test -s conftest.$ac_objext; then
43221   gl_cv_decl_null_works=yes
43222 else
43223   $as_echo "$as_me: failed program was:" >&5
43224 sed 's/^/| /' conftest.$ac_ext >&5
43225
43226         gl_cv_decl_null_works=no
43227 fi
43228
43229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43230 fi
43231 { $as_echo "$as_me:$LINENO: result: $gl_cv_decl_null_works" >&5
43232 $as_echo "$gl_cv_decl_null_works" >&6; }
43233   if test $gl_cv_decl_null_works = no; then
43234     REPLACE_NULL=1
43235     STDDEF_H=stddef.h
43236   fi
43237   if test -n "$STDDEF_H"; then
43238
43239
43240
43241
43242
43243
43244
43245
43246      if test $gl_cv_have_include_next = yes; then
43247        gl_cv_next_stddef_h='<'stddef.h'>'
43248      else
43249        { $as_echo "$as_me:$LINENO: checking absolute name of <stddef.h>" >&5
43250 $as_echo_n "checking absolute name of <stddef.h>... " >&6; }
43251 if test "${gl_cv_next_stddef_h+set}" = set; then
43252   $as_echo_n "(cached) " >&6
43253 else
43254
43255                cat >conftest.$ac_ext <<_ACEOF
43256 /* confdefs.h.  */
43257 _ACEOF
43258 cat confdefs.h >>conftest.$ac_ext
43259 cat >>conftest.$ac_ext <<_ACEOF
43260 /* end confdefs.h.  */
43261 #include <stddef.h>
43262
43263 _ACEOF
43264                                                                                                                         case "$host_os" in
43265                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
43266                  *)    gl_absname_cpp="$ac_cpp" ;;
43267                esac
43268                                                             gl_cv_next_stddef_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43269                   sed -n '\#/stddef.h#{
43270                     s#.*"\(.*/stddef.h\)".*#\1#
43271                     s#^/[^/]#//&#
43272                     p
43273                     q
43274                   }'`'"'
43275
43276
43277 fi
43278 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stddef_h" >&5
43279 $as_echo "$gl_cv_next_stddef_h" >&6; }
43280      fi
43281      NEXT_STDDEF_H=$gl_cv_next_stddef_h
43282
43283      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43284        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43285        gl_next_as_first_directive='<'stddef.h'>'
43286      else
43287        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43288        gl_next_as_first_directive=$gl_cv_next_stddef_h
43289      fi
43290      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
43291
43292
43293
43294
43295   fi
43296
43297   # Code from module stdint:
43298
43299
43300
43301   if test $ac_cv_type_long_long_int = yes; then
43302     HAVE_LONG_LONG_INT=1
43303   else
43304     HAVE_LONG_LONG_INT=0
43305   fi
43306
43307
43308   if test $ac_cv_type_unsigned_long_long_int = yes; then
43309     HAVE_UNSIGNED_LONG_LONG_INT=1
43310   else
43311     HAVE_UNSIGNED_LONG_LONG_INT=0
43312   fi
43313
43314
43315
43316
43317
43318
43319
43320
43321   if test $ac_cv_header_wchar_h = yes; then
43322     HAVE_WCHAR_H=1
43323   else
43324     HAVE_WCHAR_H=0
43325   fi
43326
43327
43328       if test $ac_cv_header_inttypes_h = yes; then
43329     HAVE_INTTYPES_H=1
43330   else
43331     HAVE_INTTYPES_H=0
43332   fi
43333
43334
43335       if test $ac_cv_header_sys_types_h = yes; then
43336     HAVE_SYS_TYPES_H=1
43337   else
43338     HAVE_SYS_TYPES_H=0
43339   fi
43340
43341
43342
43343
43344
43345
43346
43347
43348
43349
43350
43351
43352
43353
43354
43355
43356      if test $gl_cv_have_include_next = yes; then
43357        gl_cv_next_stdint_h='<'stdint.h'>'
43358      else
43359        { $as_echo "$as_me:$LINENO: checking absolute name of <stdint.h>" >&5
43360 $as_echo_n "checking absolute name of <stdint.h>... " >&6; }
43361 if test "${gl_cv_next_stdint_h+set}" = set; then
43362   $as_echo_n "(cached) " >&6
43363 else
43364
43365              if test $ac_cv_header_stdint_h = yes; then
43366
43367
43368                cat >conftest.$ac_ext <<_ACEOF
43369 /* confdefs.h.  */
43370 _ACEOF
43371 cat confdefs.h >>conftest.$ac_ext
43372 cat >>conftest.$ac_ext <<_ACEOF
43373 /* end confdefs.h.  */
43374 #include <stdint.h>
43375
43376 _ACEOF
43377                                                                                                                         case "$host_os" in
43378                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
43379                  *)    gl_absname_cpp="$ac_cpp" ;;
43380                esac
43381                                                             gl_cv_next_stdint_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
43382                   sed -n '\#/stdint.h#{
43383                     s#.*"\(.*/stdint.h\)".*#\1#
43384                     s#^/[^/]#//&#
43385                     p
43386                     q
43387                   }'`'"'
43388           else
43389                gl_cv_next_stdint_h='<'stdint.h'>'
43390              fi
43391
43392
43393 fi
43394 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdint_h" >&5
43395 $as_echo "$gl_cv_next_stdint_h" >&6; }
43396      fi
43397      NEXT_STDINT_H=$gl_cv_next_stdint_h
43398
43399      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
43400        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
43401        gl_next_as_first_directive='<'stdint.h'>'
43402      else
43403        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
43404        gl_next_as_first_directive=$gl_cv_next_stdint_h
43405      fi
43406      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
43407
43408
43409
43410
43411   if test $ac_cv_header_stdint_h = yes; then
43412     HAVE_STDINT_H=1
43413   else
43414     HAVE_STDINT_H=0
43415   fi
43416
43417
43418     if test $ac_cv_header_stdint_h = yes; then
43419     { $as_echo "$as_me:$LINENO: checking whether stdint.h conforms to C99" >&5
43420 $as_echo_n "checking whether stdint.h conforms to C99... " >&6; }
43421 if test "${gl_cv_header_working_stdint_h+set}" = set; then
43422   $as_echo_n "(cached) " >&6
43423 else
43424   gl_cv_header_working_stdint_h=no
43425        cat >conftest.$ac_ext <<_ACEOF
43426
43427          /* confdefs.h.  */
43428 _ACEOF
43429 cat confdefs.h >>conftest.$ac_ext
43430 cat >>conftest.$ac_ext <<_ACEOF
43431 /* end confdefs.h.  */
43432
43433 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
43434 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
43435 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
43436 #include <stdint.h>
43437 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
43438 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
43439 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
43440 #endif
43441
43442
43443   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43444      included before <wchar.h>.  */
43445   #include <stddef.h>
43446   #include <signal.h>
43447   #if HAVE_WCHAR_H
43448   # include <stdio.h>
43449   # include <time.h>
43450   # include <wchar.h>
43451   #endif
43452
43453
43454 #ifdef INT8_MAX
43455 int8_t a1 = INT8_MAX;
43456 int8_t a1min = INT8_MIN;
43457 #endif
43458 #ifdef INT16_MAX
43459 int16_t a2 = INT16_MAX;
43460 int16_t a2min = INT16_MIN;
43461 #endif
43462 #ifdef INT32_MAX
43463 int32_t a3 = INT32_MAX;
43464 int32_t a3min = INT32_MIN;
43465 #endif
43466 #ifdef INT64_MAX
43467 int64_t a4 = INT64_MAX;
43468 int64_t a4min = INT64_MIN;
43469 #endif
43470 #ifdef UINT8_MAX
43471 uint8_t b1 = UINT8_MAX;
43472 #else
43473 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
43474 #endif
43475 #ifdef UINT16_MAX
43476 uint16_t b2 = UINT16_MAX;
43477 #endif
43478 #ifdef UINT32_MAX
43479 uint32_t b3 = UINT32_MAX;
43480 #endif
43481 #ifdef UINT64_MAX
43482 uint64_t b4 = UINT64_MAX;
43483 #endif
43484 int_least8_t c1 = INT8_C (0x7f);
43485 int_least8_t c1max = INT_LEAST8_MAX;
43486 int_least8_t c1min = INT_LEAST8_MIN;
43487 int_least16_t c2 = INT16_C (0x7fff);
43488 int_least16_t c2max = INT_LEAST16_MAX;
43489 int_least16_t c2min = INT_LEAST16_MIN;
43490 int_least32_t c3 = INT32_C (0x7fffffff);
43491 int_least32_t c3max = INT_LEAST32_MAX;
43492 int_least32_t c3min = INT_LEAST32_MIN;
43493 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
43494 int_least64_t c4max = INT_LEAST64_MAX;
43495 int_least64_t c4min = INT_LEAST64_MIN;
43496 uint_least8_t d1 = UINT8_C (0xff);
43497 uint_least8_t d1max = UINT_LEAST8_MAX;
43498 uint_least16_t d2 = UINT16_C (0xffff);
43499 uint_least16_t d2max = UINT_LEAST16_MAX;
43500 uint_least32_t d3 = UINT32_C (0xffffffff);
43501 uint_least32_t d3max = UINT_LEAST32_MAX;
43502 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
43503 uint_least64_t d4max = UINT_LEAST64_MAX;
43504 int_fast8_t e1 = INT_FAST8_MAX;
43505 int_fast8_t e1min = INT_FAST8_MIN;
43506 int_fast16_t e2 = INT_FAST16_MAX;
43507 int_fast16_t e2min = INT_FAST16_MIN;
43508 int_fast32_t e3 = INT_FAST32_MAX;
43509 int_fast32_t e3min = INT_FAST32_MIN;
43510 int_fast64_t e4 = INT_FAST64_MAX;
43511 int_fast64_t e4min = INT_FAST64_MIN;
43512 uint_fast8_t f1 = UINT_FAST8_MAX;
43513 uint_fast16_t f2 = UINT_FAST16_MAX;
43514 uint_fast32_t f3 = UINT_FAST32_MAX;
43515 uint_fast64_t f4 = UINT_FAST64_MAX;
43516 #ifdef INTPTR_MAX
43517 intptr_t g = INTPTR_MAX;
43518 intptr_t gmin = INTPTR_MIN;
43519 #endif
43520 #ifdef UINTPTR_MAX
43521 uintptr_t h = UINTPTR_MAX;
43522 #endif
43523 intmax_t i = INTMAX_MAX;
43524 uintmax_t j = UINTMAX_MAX;
43525
43526 #include <limits.h> /* for CHAR_BIT */
43527 #define TYPE_MINIMUM(t) \
43528   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
43529 #define TYPE_MAXIMUM(t) \
43530   ((t) ((t) 0 < (t) -1 \
43531         ? (t) -1 \
43532         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
43533 struct s {
43534   int check_PTRDIFF:
43535       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
43536       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
43537       ? 1 : -1;
43538   /* Detect bug in FreeBSD 6.0 / ia64.  */
43539   int check_SIG_ATOMIC:
43540       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
43541       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
43542       ? 1 : -1;
43543   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
43544   int check_WCHAR:
43545       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
43546       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
43547       ? 1 : -1;
43548   /* Detect bug in mingw.  */
43549   int check_WINT:
43550       WINT_MIN == TYPE_MINIMUM (wint_t)
43551       && WINT_MAX == TYPE_MAXIMUM (wint_t)
43552       ? 1 : -1;
43553
43554   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
43555   int check_UINT8_C:
43556         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
43557   int check_UINT16_C:
43558         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
43559
43560   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
43561 #ifdef UINT8_MAX
43562   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
43563 #endif
43564 #ifdef UINT16_MAX
43565   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
43566 #endif
43567 #ifdef UINT32_MAX
43568   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
43569 #endif
43570 #ifdef UINT64_MAX
43571   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
43572 #endif
43573   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
43574   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
43575   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
43576   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
43577   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
43578   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
43579   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
43580   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
43581   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
43582   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
43583   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
43584 };
43585
43586 int
43587 main ()
43588 {
43589
43590   ;
43591   return 0;
43592 }
43593 _ACEOF
43594 rm -f conftest.$ac_objext
43595 if { (ac_try="$ac_compile"
43596 case "(($ac_try" in
43597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43598   *) ac_try_echo=$ac_try;;
43599 esac
43600 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43601 $as_echo "$ac_try_echo") >&5
43602   (eval "$ac_compile") 2>conftest.er1
43603   ac_status=$?
43604   grep -v '^ *+' conftest.er1 >conftest.err
43605   rm -f conftest.er1
43606   cat conftest.err >&5
43607   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43608   (exit $ac_status); } && {
43609          test -z "$ac_c_werror_flag" ||
43610          test ! -s conftest.err
43611        } && test -s conftest.$ac_objext; then
43612                                                     if test "$cross_compiling" = yes; then
43613                  gl_cv_header_working_stdint_h=yes
43614
43615 else
43616   cat >conftest.$ac_ext <<_ACEOF
43617
43618             /* confdefs.h.  */
43619 _ACEOF
43620 cat confdefs.h >>conftest.$ac_ext
43621 cat >>conftest.$ac_ext <<_ACEOF
43622 /* end confdefs.h.  */
43623
43624 #define __STDC_LIMIT_MACROS 1 /* to make it work also in C++ mode */
43625 #define __STDC_CONSTANT_MACROS 1 /* to make it work also in C++ mode */
43626 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
43627 #include <stdint.h>
43628
43629
43630   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43631      included before <wchar.h>.  */
43632   #include <stddef.h>
43633   #include <signal.h>
43634   #if HAVE_WCHAR_H
43635   # include <stdio.h>
43636   # include <time.h>
43637   # include <wchar.h>
43638   #endif
43639
43640
43641 #include <stdio.h>
43642 #include <string.h>
43643 #define MVAL(macro) MVAL1(macro)
43644 #define MVAL1(expression) #expression
43645 static const char *macro_values[] =
43646   {
43647 #ifdef INT8_MAX
43648     MVAL (INT8_MAX),
43649 #endif
43650 #ifdef INT16_MAX
43651     MVAL (INT16_MAX),
43652 #endif
43653 #ifdef INT32_MAX
43654     MVAL (INT32_MAX),
43655 #endif
43656 #ifdef INT64_MAX
43657     MVAL (INT64_MAX),
43658 #endif
43659 #ifdef UINT8_MAX
43660     MVAL (UINT8_MAX),
43661 #endif
43662 #ifdef UINT16_MAX
43663     MVAL (UINT16_MAX),
43664 #endif
43665 #ifdef UINT32_MAX
43666     MVAL (UINT32_MAX),
43667 #endif
43668 #ifdef UINT64_MAX
43669     MVAL (UINT64_MAX),
43670 #endif
43671     NULL
43672   };
43673
43674 int
43675 main ()
43676 {
43677
43678   const char **mv;
43679   for (mv = macro_values; *mv != NULL; mv++)
43680     {
43681       const char *value = *mv;
43682       /* Test whether it looks like a cast expression.  */
43683       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
43684           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
43685           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
43686           || strncmp (value, "((int)"/*)*/, 6) == 0
43687           || strncmp (value, "((signed short)"/*)*/, 15) == 0
43688           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
43689         return mv - macro_values + 1;
43690     }
43691   return 0;
43692
43693   ;
43694   return 0;
43695 }
43696 _ACEOF
43697 rm -f conftest$ac_exeext
43698 if { (ac_try="$ac_link"
43699 case "(($ac_try" in
43700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43701   *) ac_try_echo=$ac_try;;
43702 esac
43703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43704 $as_echo "$ac_try_echo") >&5
43705   (eval "$ac_link") 2>&5
43706   ac_status=$?
43707   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43708   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
43709   { (case "(($ac_try" in
43710   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43711   *) ac_try_echo=$ac_try;;
43712 esac
43713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43714 $as_echo "$ac_try_echo") >&5
43715   (eval "$ac_try") 2>&5
43716   ac_status=$?
43717   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43718   (exit $ac_status); }; }; then
43719   gl_cv_header_working_stdint_h=yes
43720 else
43721   $as_echo "$as_me: program exited with status $ac_status" >&5
43722 $as_echo "$as_me: failed program was:" >&5
43723 sed 's/^/| /' conftest.$ac_ext >&5
43724
43725 fi
43726 rm -rf conftest.dSYM
43727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
43728 fi
43729
43730
43731
43732 else
43733   $as_echo "$as_me: failed program was:" >&5
43734 sed 's/^/| /' conftest.$ac_ext >&5
43735
43736
43737 fi
43738
43739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43740
43741 fi
43742 { $as_echo "$as_me:$LINENO: result: $gl_cv_header_working_stdint_h" >&5
43743 $as_echo "$gl_cv_header_working_stdint_h" >&6; }
43744   fi
43745   if test "$gl_cv_header_working_stdint_h" = yes; then
43746     STDINT_H=
43747   else
43748
43749
43750 for ac_header in sys/inttypes.h sys/bitypes.h
43751 do
43752 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43754   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43755 $as_echo_n "checking for $ac_header... " >&6; }
43756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43757   $as_echo_n "(cached) " >&6
43758 fi
43759 ac_res=`eval 'as_val=${'$as_ac_Header'}
43760                  $as_echo "$as_val"'`
43761                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43762 $as_echo "$ac_res" >&6; }
43763 else
43764   # Is the header compilable?
43765 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
43766 $as_echo_n "checking $ac_header usability... " >&6; }
43767 cat >conftest.$ac_ext <<_ACEOF
43768 /* confdefs.h.  */
43769 _ACEOF
43770 cat confdefs.h >>conftest.$ac_ext
43771 cat >>conftest.$ac_ext <<_ACEOF
43772 /* end confdefs.h.  */
43773 $ac_includes_default
43774 #include <$ac_header>
43775 _ACEOF
43776 rm -f conftest.$ac_objext
43777 if { (ac_try="$ac_compile"
43778 case "(($ac_try" in
43779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43780   *) ac_try_echo=$ac_try;;
43781 esac
43782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43783 $as_echo "$ac_try_echo") >&5
43784   (eval "$ac_compile") 2>conftest.er1
43785   ac_status=$?
43786   grep -v '^ *+' conftest.er1 >conftest.err
43787   rm -f conftest.er1
43788   cat conftest.err >&5
43789   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43790   (exit $ac_status); } && {
43791          test -z "$ac_c_werror_flag" ||
43792          test ! -s conftest.err
43793        } && test -s conftest.$ac_objext; then
43794   ac_header_compiler=yes
43795 else
43796   $as_echo "$as_me: failed program was:" >&5
43797 sed 's/^/| /' conftest.$ac_ext >&5
43798
43799         ac_header_compiler=no
43800 fi
43801
43802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
43804 $as_echo "$ac_header_compiler" >&6; }
43805
43806 # Is the header present?
43807 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
43808 $as_echo_n "checking $ac_header presence... " >&6; }
43809 cat >conftest.$ac_ext <<_ACEOF
43810 /* confdefs.h.  */
43811 _ACEOF
43812 cat confdefs.h >>conftest.$ac_ext
43813 cat >>conftest.$ac_ext <<_ACEOF
43814 /* end confdefs.h.  */
43815 #include <$ac_header>
43816 _ACEOF
43817 if { (ac_try="$ac_cpp conftest.$ac_ext"
43818 case "(($ac_try" in
43819   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43820   *) ac_try_echo=$ac_try;;
43821 esac
43822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43823 $as_echo "$ac_try_echo") >&5
43824   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
43825   ac_status=$?
43826   grep -v '^ *+' conftest.er1 >conftest.err
43827   rm -f conftest.er1
43828   cat conftest.err >&5
43829   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43830   (exit $ac_status); } >/dev/null && {
43831          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
43832          test ! -s conftest.err
43833        }; then
43834   ac_header_preproc=yes
43835 else
43836   $as_echo "$as_me: failed program was:" >&5
43837 sed 's/^/| /' conftest.$ac_ext >&5
43838
43839   ac_header_preproc=no
43840 fi
43841
43842 rm -f conftest.err conftest.$ac_ext
43843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
43844 $as_echo "$ac_header_preproc" >&6; }
43845
43846 # So?  What about this header?
43847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
43848   yes:no: )
43849     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
43850 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
43851     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
43852 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
43853     ac_header_preproc=yes
43854     ;;
43855   no:yes:* )
43856     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
43857 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
43858     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
43859 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
43860     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
43861 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
43862     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
43863 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
43864     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
43865 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
43866     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
43867 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
43868     ( cat <<\_ASBOX
43869 ## ------------------------------ ##
43870 ## Report this to bug-tar@gnu.org ##
43871 ## ------------------------------ ##
43872 _ASBOX
43873      ) | sed "s/^/$as_me: WARNING:     /" >&2
43874     ;;
43875 esac
43876 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
43877 $as_echo_n "checking for $ac_header... " >&6; }
43878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
43879   $as_echo_n "(cached) " >&6
43880 else
43881   eval "$as_ac_Header=\$ac_header_preproc"
43882 fi
43883 ac_res=`eval 'as_val=${'$as_ac_Header'}
43884                  $as_echo "$as_val"'`
43885                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
43886 $as_echo "$ac_res" >&6; }
43887
43888 fi
43889 as_val=`eval 'as_val=${'$as_ac_Header'}
43890                  $as_echo "$as_val"'`
43891    if test "x$as_val" = x""yes; then
43892   cat >>confdefs.h <<_ACEOF
43893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43894 _ACEOF
43895
43896 fi
43897
43898 done
43899
43900     if test $ac_cv_header_sys_inttypes_h = yes; then
43901       HAVE_SYS_INTTYPES_H=1
43902     else
43903       HAVE_SYS_INTTYPES_H=0
43904     fi
43905
43906     if test $ac_cv_header_sys_bitypes_h = yes; then
43907       HAVE_SYS_BITYPES_H=1
43908     else
43909       HAVE_SYS_BITYPES_H=0
43910     fi
43911
43912
43913
43914
43915   if test $APPLE_UNIVERSAL_BUILD = 0; then
43916
43917
43918
43919
43920   for gltype in ptrdiff_t size_t ; do
43921     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
43922 $as_echo_n "checking for bit size of $gltype... " >&6; }
43923 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
43924   $as_echo_n "(cached) " >&6
43925 else
43926   if test "$cross_compiling" = yes; then
43927   # Depending upon the size, compute the lo and hi bounds.
43928 cat >conftest.$ac_ext <<_ACEOF
43929 /* confdefs.h.  */
43930 _ACEOF
43931 cat confdefs.h >>conftest.$ac_ext
43932 cat >>conftest.$ac_ext <<_ACEOF
43933 /* end confdefs.h.  */
43934
43935   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43936      included before <wchar.h>.  */
43937   #include <stddef.h>
43938   #include <signal.h>
43939   #if HAVE_WCHAR_H
43940   # include <stdio.h>
43941   # include <time.h>
43942   # include <wchar.h>
43943   #endif
43944
43945 #include <limits.h>
43946 int
43947 main ()
43948 {
43949 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
43950 test_array [0] = 0
43951
43952   ;
43953   return 0;
43954 }
43955 _ACEOF
43956 rm -f conftest.$ac_objext
43957 if { (ac_try="$ac_compile"
43958 case "(($ac_try" in
43959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
43960   *) ac_try_echo=$ac_try;;
43961 esac
43962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
43963 $as_echo "$ac_try_echo") >&5
43964   (eval "$ac_compile") 2>conftest.er1
43965   ac_status=$?
43966   grep -v '^ *+' conftest.er1 >conftest.err
43967   rm -f conftest.er1
43968   cat conftest.err >&5
43969   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
43970   (exit $ac_status); } && {
43971          test -z "$ac_c_werror_flag" ||
43972          test ! -s conftest.err
43973        } && test -s conftest.$ac_objext; then
43974   ac_lo=0 ac_mid=0
43975   while :; do
43976     cat >conftest.$ac_ext <<_ACEOF
43977 /* confdefs.h.  */
43978 _ACEOF
43979 cat confdefs.h >>conftest.$ac_ext
43980 cat >>conftest.$ac_ext <<_ACEOF
43981 /* end confdefs.h.  */
43982
43983   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
43984      included before <wchar.h>.  */
43985   #include <stddef.h>
43986   #include <signal.h>
43987   #if HAVE_WCHAR_H
43988   # include <stdio.h>
43989   # include <time.h>
43990   # include <wchar.h>
43991   #endif
43992
43993 #include <limits.h>
43994 int
43995 main ()
43996 {
43997 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
43998 test_array [0] = 0
43999
44000   ;
44001   return 0;
44002 }
44003 _ACEOF
44004 rm -f conftest.$ac_objext
44005 if { (ac_try="$ac_compile"
44006 case "(($ac_try" in
44007   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44008   *) ac_try_echo=$ac_try;;
44009 esac
44010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44011 $as_echo "$ac_try_echo") >&5
44012   (eval "$ac_compile") 2>conftest.er1
44013   ac_status=$?
44014   grep -v '^ *+' conftest.er1 >conftest.err
44015   rm -f conftest.er1
44016   cat conftest.err >&5
44017   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44018   (exit $ac_status); } && {
44019          test -z "$ac_c_werror_flag" ||
44020          test ! -s conftest.err
44021        } && test -s conftest.$ac_objext; then
44022   ac_hi=$ac_mid; break
44023 else
44024   $as_echo "$as_me: failed program was:" >&5
44025 sed 's/^/| /' conftest.$ac_ext >&5
44026
44027         ac_lo=`expr $ac_mid + 1`
44028                         if test $ac_lo -le $ac_mid; then
44029                           ac_lo= ac_hi=
44030                           break
44031                         fi
44032                         ac_mid=`expr 2 '*' $ac_mid + 1`
44033 fi
44034
44035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44036   done
44037 else
44038   $as_echo "$as_me: failed program was:" >&5
44039 sed 's/^/| /' conftest.$ac_ext >&5
44040
44041         cat >conftest.$ac_ext <<_ACEOF
44042 /* confdefs.h.  */
44043 _ACEOF
44044 cat confdefs.h >>conftest.$ac_ext
44045 cat >>conftest.$ac_ext <<_ACEOF
44046 /* end confdefs.h.  */
44047
44048   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44049      included before <wchar.h>.  */
44050   #include <stddef.h>
44051   #include <signal.h>
44052   #if HAVE_WCHAR_H
44053   # include <stdio.h>
44054   # include <time.h>
44055   # include <wchar.h>
44056   #endif
44057
44058 #include <limits.h>
44059 int
44060 main ()
44061 {
44062 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
44063 test_array [0] = 0
44064
44065   ;
44066   return 0;
44067 }
44068 _ACEOF
44069 rm -f conftest.$ac_objext
44070 if { (ac_try="$ac_compile"
44071 case "(($ac_try" in
44072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44073   *) ac_try_echo=$ac_try;;
44074 esac
44075 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44076 $as_echo "$ac_try_echo") >&5
44077   (eval "$ac_compile") 2>conftest.er1
44078   ac_status=$?
44079   grep -v '^ *+' conftest.er1 >conftest.err
44080   rm -f conftest.er1
44081   cat conftest.err >&5
44082   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44083   (exit $ac_status); } && {
44084          test -z "$ac_c_werror_flag" ||
44085          test ! -s conftest.err
44086        } && test -s conftest.$ac_objext; then
44087   ac_hi=-1 ac_mid=-1
44088   while :; do
44089     cat >conftest.$ac_ext <<_ACEOF
44090 /* confdefs.h.  */
44091 _ACEOF
44092 cat confdefs.h >>conftest.$ac_ext
44093 cat >>conftest.$ac_ext <<_ACEOF
44094 /* end confdefs.h.  */
44095
44096   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44097      included before <wchar.h>.  */
44098   #include <stddef.h>
44099   #include <signal.h>
44100   #if HAVE_WCHAR_H
44101   # include <stdio.h>
44102   # include <time.h>
44103   # include <wchar.h>
44104   #endif
44105
44106 #include <limits.h>
44107 int
44108 main ()
44109 {
44110 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
44111 test_array [0] = 0
44112
44113   ;
44114   return 0;
44115 }
44116 _ACEOF
44117 rm -f conftest.$ac_objext
44118 if { (ac_try="$ac_compile"
44119 case "(($ac_try" in
44120   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44121   *) ac_try_echo=$ac_try;;
44122 esac
44123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44124 $as_echo "$ac_try_echo") >&5
44125   (eval "$ac_compile") 2>conftest.er1
44126   ac_status=$?
44127   grep -v '^ *+' conftest.er1 >conftest.err
44128   rm -f conftest.er1
44129   cat conftest.err >&5
44130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44131   (exit $ac_status); } && {
44132          test -z "$ac_c_werror_flag" ||
44133          test ! -s conftest.err
44134        } && test -s conftest.$ac_objext; then
44135   ac_lo=$ac_mid; break
44136 else
44137   $as_echo "$as_me: failed program was:" >&5
44138 sed 's/^/| /' conftest.$ac_ext >&5
44139
44140         ac_hi=`expr '(' $ac_mid ')' - 1`
44141                         if test $ac_mid -le $ac_hi; then
44142                           ac_lo= ac_hi=
44143                           break
44144                         fi
44145                         ac_mid=`expr 2 '*' $ac_mid`
44146 fi
44147
44148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44149   done
44150 else
44151   $as_echo "$as_me: failed program was:" >&5
44152 sed 's/^/| /' conftest.$ac_ext >&5
44153
44154         ac_lo= ac_hi=
44155 fi
44156
44157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44158 fi
44159
44160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44161 # Binary search between lo and hi bounds.
44162 while test "x$ac_lo" != "x$ac_hi"; do
44163   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
44164   cat >conftest.$ac_ext <<_ACEOF
44165 /* confdefs.h.  */
44166 _ACEOF
44167 cat confdefs.h >>conftest.$ac_ext
44168 cat >>conftest.$ac_ext <<_ACEOF
44169 /* end confdefs.h.  */
44170
44171   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44172      included before <wchar.h>.  */
44173   #include <stddef.h>
44174   #include <signal.h>
44175   #if HAVE_WCHAR_H
44176   # include <stdio.h>
44177   # include <time.h>
44178   # include <wchar.h>
44179   #endif
44180
44181 #include <limits.h>
44182 int
44183 main ()
44184 {
44185 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
44186 test_array [0] = 0
44187
44188   ;
44189   return 0;
44190 }
44191 _ACEOF
44192 rm -f conftest.$ac_objext
44193 if { (ac_try="$ac_compile"
44194 case "(($ac_try" in
44195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44196   *) ac_try_echo=$ac_try;;
44197 esac
44198 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44199 $as_echo "$ac_try_echo") >&5
44200   (eval "$ac_compile") 2>conftest.er1
44201   ac_status=$?
44202   grep -v '^ *+' conftest.er1 >conftest.err
44203   rm -f conftest.er1
44204   cat conftest.err >&5
44205   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44206   (exit $ac_status); } && {
44207          test -z "$ac_c_werror_flag" ||
44208          test ! -s conftest.err
44209        } && test -s conftest.$ac_objext; then
44210   ac_hi=$ac_mid
44211 else
44212   $as_echo "$as_me: failed program was:" >&5
44213 sed 's/^/| /' conftest.$ac_ext >&5
44214
44215         ac_lo=`expr '(' $ac_mid ')' + 1`
44216 fi
44217
44218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44219 done
44220 case $ac_lo in
44221 ?*) result=$ac_lo;;
44222 '') result=unknown ;;
44223 esac
44224 else
44225   cat >conftest.$ac_ext <<_ACEOF
44226 /* confdefs.h.  */
44227 _ACEOF
44228 cat confdefs.h >>conftest.$ac_ext
44229 cat >>conftest.$ac_ext <<_ACEOF
44230 /* end confdefs.h.  */
44231
44232   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44233      included before <wchar.h>.  */
44234   #include <stddef.h>
44235   #include <signal.h>
44236   #if HAVE_WCHAR_H
44237   # include <stdio.h>
44238   # include <time.h>
44239   # include <wchar.h>
44240   #endif
44241
44242 #include <limits.h>
44243 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
44244 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
44245 #include <stdio.h>
44246 #include <stdlib.h>
44247 int
44248 main ()
44249 {
44250
44251   FILE *f = fopen ("conftest.val", "w");
44252   if (! f)
44253     return 1;
44254   if ((sizeof ($gltype) * CHAR_BIT) < 0)
44255     {
44256       long int i = longval ();
44257       if (i != (sizeof ($gltype) * CHAR_BIT))
44258         return 1;
44259       fprintf (f, "%ld", i);
44260     }
44261   else
44262     {
44263       unsigned long int i = ulongval ();
44264       if (i != (sizeof ($gltype) * CHAR_BIT))
44265         return 1;
44266       fprintf (f, "%lu", i);
44267     }
44268   /* Do not output a trailing newline, as this causes \r\n confusion
44269      on some platforms.  */
44270   return ferror (f) || fclose (f) != 0;
44271
44272   ;
44273   return 0;
44274 }
44275 _ACEOF
44276 rm -f conftest$ac_exeext
44277 if { (ac_try="$ac_link"
44278 case "(($ac_try" in
44279   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44280   *) ac_try_echo=$ac_try;;
44281 esac
44282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44283 $as_echo "$ac_try_echo") >&5
44284   (eval "$ac_link") 2>&5
44285   ac_status=$?
44286   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44288   { (case "(($ac_try" in
44289   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44290   *) ac_try_echo=$ac_try;;
44291 esac
44292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44293 $as_echo "$ac_try_echo") >&5
44294   (eval "$ac_try") 2>&5
44295   ac_status=$?
44296   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44297   (exit $ac_status); }; }; then
44298   result=`cat conftest.val`
44299 else
44300   $as_echo "$as_me: program exited with status $ac_status" >&5
44301 $as_echo "$as_me: failed program was:" >&5
44302 sed 's/^/| /' conftest.$ac_ext >&5
44303
44304 ( exit $ac_status )
44305 result=unknown
44306 fi
44307 rm -rf conftest.dSYM
44308 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44309 fi
44310 rm -f conftest.val
44311        eval gl_cv_bitsizeof_${gltype}=\$result
44312
44313 fi
44314 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
44315                  $as_echo "$as_val"'`
44316                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44317 $as_echo "$ac_res" >&6; }
44318     eval result=\$gl_cv_bitsizeof_${gltype}
44319     if test $result = unknown; then
44320                                                 result=0
44321     fi
44322     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
44323     cat >>confdefs.h <<_ACEOF
44324 #define BITSIZEOF_${GLTYPE} $result
44325 _ACEOF
44326
44327     eval BITSIZEOF_${GLTYPE}=\$result
44328   done
44329
44330
44331   fi
44332
44333
44334
44335
44336
44337   for gltype in sig_atomic_t wchar_t wint_t ; do
44338     { $as_echo "$as_me:$LINENO: checking for bit size of $gltype" >&5
44339 $as_echo_n "checking for bit size of $gltype... " >&6; }
44340 if { as_var=gl_cv_bitsizeof_${gltype}; eval "test \"\${$as_var+set}\" = set"; }; then
44341   $as_echo_n "(cached) " >&6
44342 else
44343   if test "$cross_compiling" = yes; then
44344   # Depending upon the size, compute the lo and hi bounds.
44345 cat >conftest.$ac_ext <<_ACEOF
44346 /* confdefs.h.  */
44347 _ACEOF
44348 cat confdefs.h >>conftest.$ac_ext
44349 cat >>conftest.$ac_ext <<_ACEOF
44350 /* end confdefs.h.  */
44351
44352   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44353      included before <wchar.h>.  */
44354   #include <stddef.h>
44355   #include <signal.h>
44356   #if HAVE_WCHAR_H
44357   # include <stdio.h>
44358   # include <time.h>
44359   # include <wchar.h>
44360   #endif
44361
44362 #include <limits.h>
44363 int
44364 main ()
44365 {
44366 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= 0)];
44367 test_array [0] = 0
44368
44369   ;
44370   return 0;
44371 }
44372 _ACEOF
44373 rm -f conftest.$ac_objext
44374 if { (ac_try="$ac_compile"
44375 case "(($ac_try" in
44376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44377   *) ac_try_echo=$ac_try;;
44378 esac
44379 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44380 $as_echo "$ac_try_echo") >&5
44381   (eval "$ac_compile") 2>conftest.er1
44382   ac_status=$?
44383   grep -v '^ *+' conftest.er1 >conftest.err
44384   rm -f conftest.er1
44385   cat conftest.err >&5
44386   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44387   (exit $ac_status); } && {
44388          test -z "$ac_c_werror_flag" ||
44389          test ! -s conftest.err
44390        } && test -s conftest.$ac_objext; then
44391   ac_lo=0 ac_mid=0
44392   while :; do
44393     cat >conftest.$ac_ext <<_ACEOF
44394 /* confdefs.h.  */
44395 _ACEOF
44396 cat confdefs.h >>conftest.$ac_ext
44397 cat >>conftest.$ac_ext <<_ACEOF
44398 /* end confdefs.h.  */
44399
44400   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44401      included before <wchar.h>.  */
44402   #include <stddef.h>
44403   #include <signal.h>
44404   #if HAVE_WCHAR_H
44405   # include <stdio.h>
44406   # include <time.h>
44407   # include <wchar.h>
44408   #endif
44409
44410 #include <limits.h>
44411 int
44412 main ()
44413 {
44414 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
44415 test_array [0] = 0
44416
44417   ;
44418   return 0;
44419 }
44420 _ACEOF
44421 rm -f conftest.$ac_objext
44422 if { (ac_try="$ac_compile"
44423 case "(($ac_try" in
44424   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44425   *) ac_try_echo=$ac_try;;
44426 esac
44427 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44428 $as_echo "$ac_try_echo") >&5
44429   (eval "$ac_compile") 2>conftest.er1
44430   ac_status=$?
44431   grep -v '^ *+' conftest.er1 >conftest.err
44432   rm -f conftest.er1
44433   cat conftest.err >&5
44434   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44435   (exit $ac_status); } && {
44436          test -z "$ac_c_werror_flag" ||
44437          test ! -s conftest.err
44438        } && test -s conftest.$ac_objext; then
44439   ac_hi=$ac_mid; break
44440 else
44441   $as_echo "$as_me: failed program was:" >&5
44442 sed 's/^/| /' conftest.$ac_ext >&5
44443
44444         ac_lo=`expr $ac_mid + 1`
44445                         if test $ac_lo -le $ac_mid; then
44446                           ac_lo= ac_hi=
44447                           break
44448                         fi
44449                         ac_mid=`expr 2 '*' $ac_mid + 1`
44450 fi
44451
44452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44453   done
44454 else
44455   $as_echo "$as_me: failed program was:" >&5
44456 sed 's/^/| /' conftest.$ac_ext >&5
44457
44458         cat >conftest.$ac_ext <<_ACEOF
44459 /* confdefs.h.  */
44460 _ACEOF
44461 cat confdefs.h >>conftest.$ac_ext
44462 cat >>conftest.$ac_ext <<_ACEOF
44463 /* end confdefs.h.  */
44464
44465   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44466      included before <wchar.h>.  */
44467   #include <stddef.h>
44468   #include <signal.h>
44469   #if HAVE_WCHAR_H
44470   # include <stdio.h>
44471   # include <time.h>
44472   # include <wchar.h>
44473   #endif
44474
44475 #include <limits.h>
44476 int
44477 main ()
44478 {
44479 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) < 0)];
44480 test_array [0] = 0
44481
44482   ;
44483   return 0;
44484 }
44485 _ACEOF
44486 rm -f conftest.$ac_objext
44487 if { (ac_try="$ac_compile"
44488 case "(($ac_try" in
44489   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44490   *) ac_try_echo=$ac_try;;
44491 esac
44492 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44493 $as_echo "$ac_try_echo") >&5
44494   (eval "$ac_compile") 2>conftest.er1
44495   ac_status=$?
44496   grep -v '^ *+' conftest.er1 >conftest.err
44497   rm -f conftest.er1
44498   cat conftest.err >&5
44499   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44500   (exit $ac_status); } && {
44501          test -z "$ac_c_werror_flag" ||
44502          test ! -s conftest.err
44503        } && test -s conftest.$ac_objext; then
44504   ac_hi=-1 ac_mid=-1
44505   while :; do
44506     cat >conftest.$ac_ext <<_ACEOF
44507 /* confdefs.h.  */
44508 _ACEOF
44509 cat confdefs.h >>conftest.$ac_ext
44510 cat >>conftest.$ac_ext <<_ACEOF
44511 /* end confdefs.h.  */
44512
44513   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44514      included before <wchar.h>.  */
44515   #include <stddef.h>
44516   #include <signal.h>
44517   #if HAVE_WCHAR_H
44518   # include <stdio.h>
44519   # include <time.h>
44520   # include <wchar.h>
44521   #endif
44522
44523 #include <limits.h>
44524 int
44525 main ()
44526 {
44527 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) >= $ac_mid)];
44528 test_array [0] = 0
44529
44530   ;
44531   return 0;
44532 }
44533 _ACEOF
44534 rm -f conftest.$ac_objext
44535 if { (ac_try="$ac_compile"
44536 case "(($ac_try" in
44537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44538   *) ac_try_echo=$ac_try;;
44539 esac
44540 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44541 $as_echo "$ac_try_echo") >&5
44542   (eval "$ac_compile") 2>conftest.er1
44543   ac_status=$?
44544   grep -v '^ *+' conftest.er1 >conftest.err
44545   rm -f conftest.er1
44546   cat conftest.err >&5
44547   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44548   (exit $ac_status); } && {
44549          test -z "$ac_c_werror_flag" ||
44550          test ! -s conftest.err
44551        } && test -s conftest.$ac_objext; then
44552   ac_lo=$ac_mid; break
44553 else
44554   $as_echo "$as_me: failed program was:" >&5
44555 sed 's/^/| /' conftest.$ac_ext >&5
44556
44557         ac_hi=`expr '(' $ac_mid ')' - 1`
44558                         if test $ac_mid -le $ac_hi; then
44559                           ac_lo= ac_hi=
44560                           break
44561                         fi
44562                         ac_mid=`expr 2 '*' $ac_mid`
44563 fi
44564
44565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44566   done
44567 else
44568   $as_echo "$as_me: failed program was:" >&5
44569 sed 's/^/| /' conftest.$ac_ext >&5
44570
44571         ac_lo= ac_hi=
44572 fi
44573
44574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44575 fi
44576
44577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44578 # Binary search between lo and hi bounds.
44579 while test "x$ac_lo" != "x$ac_hi"; do
44580   ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
44581   cat >conftest.$ac_ext <<_ACEOF
44582 /* confdefs.h.  */
44583 _ACEOF
44584 cat confdefs.h >>conftest.$ac_ext
44585 cat >>conftest.$ac_ext <<_ACEOF
44586 /* end confdefs.h.  */
44587
44588   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44589      included before <wchar.h>.  */
44590   #include <stddef.h>
44591   #include <signal.h>
44592   #if HAVE_WCHAR_H
44593   # include <stdio.h>
44594   # include <time.h>
44595   # include <wchar.h>
44596   #endif
44597
44598 #include <limits.h>
44599 int
44600 main ()
44601 {
44602 static int test_array [1 - 2 * !((sizeof ($gltype) * CHAR_BIT) <= $ac_mid)];
44603 test_array [0] = 0
44604
44605   ;
44606   return 0;
44607 }
44608 _ACEOF
44609 rm -f conftest.$ac_objext
44610 if { (ac_try="$ac_compile"
44611 case "(($ac_try" in
44612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44613   *) ac_try_echo=$ac_try;;
44614 esac
44615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44616 $as_echo "$ac_try_echo") >&5
44617   (eval "$ac_compile") 2>conftest.er1
44618   ac_status=$?
44619   grep -v '^ *+' conftest.er1 >conftest.err
44620   rm -f conftest.er1
44621   cat conftest.err >&5
44622   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44623   (exit $ac_status); } && {
44624          test -z "$ac_c_werror_flag" ||
44625          test ! -s conftest.err
44626        } && test -s conftest.$ac_objext; then
44627   ac_hi=$ac_mid
44628 else
44629   $as_echo "$as_me: failed program was:" >&5
44630 sed 's/^/| /' conftest.$ac_ext >&5
44631
44632         ac_lo=`expr '(' $ac_mid ')' + 1`
44633 fi
44634
44635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44636 done
44637 case $ac_lo in
44638 ?*) result=$ac_lo;;
44639 '') result=unknown ;;
44640 esac
44641 else
44642   cat >conftest.$ac_ext <<_ACEOF
44643 /* confdefs.h.  */
44644 _ACEOF
44645 cat confdefs.h >>conftest.$ac_ext
44646 cat >>conftest.$ac_ext <<_ACEOF
44647 /* end confdefs.h.  */
44648
44649   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44650      included before <wchar.h>.  */
44651   #include <stddef.h>
44652   #include <signal.h>
44653   #if HAVE_WCHAR_H
44654   # include <stdio.h>
44655   # include <time.h>
44656   # include <wchar.h>
44657   #endif
44658
44659 #include <limits.h>
44660 static long int longval () { return sizeof ($gltype) * CHAR_BIT; }
44661 static unsigned long int ulongval () { return sizeof ($gltype) * CHAR_BIT; }
44662 #include <stdio.h>
44663 #include <stdlib.h>
44664 int
44665 main ()
44666 {
44667
44668   FILE *f = fopen ("conftest.val", "w");
44669   if (! f)
44670     return 1;
44671   if ((sizeof ($gltype) * CHAR_BIT) < 0)
44672     {
44673       long int i = longval ();
44674       if (i != (sizeof ($gltype) * CHAR_BIT))
44675         return 1;
44676       fprintf (f, "%ld", i);
44677     }
44678   else
44679     {
44680       unsigned long int i = ulongval ();
44681       if (i != (sizeof ($gltype) * CHAR_BIT))
44682         return 1;
44683       fprintf (f, "%lu", i);
44684     }
44685   /* Do not output a trailing newline, as this causes \r\n confusion
44686      on some platforms.  */
44687   return ferror (f) || fclose (f) != 0;
44688
44689   ;
44690   return 0;
44691 }
44692 _ACEOF
44693 rm -f conftest$ac_exeext
44694 if { (ac_try="$ac_link"
44695 case "(($ac_try" in
44696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44697   *) ac_try_echo=$ac_try;;
44698 esac
44699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44700 $as_echo "$ac_try_echo") >&5
44701   (eval "$ac_link") 2>&5
44702   ac_status=$?
44703   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44704   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
44705   { (case "(($ac_try" in
44706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44707   *) ac_try_echo=$ac_try;;
44708 esac
44709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44710 $as_echo "$ac_try_echo") >&5
44711   (eval "$ac_try") 2>&5
44712   ac_status=$?
44713   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44714   (exit $ac_status); }; }; then
44715   result=`cat conftest.val`
44716 else
44717   $as_echo "$as_me: program exited with status $ac_status" >&5
44718 $as_echo "$as_me: failed program was:" >&5
44719 sed 's/^/| /' conftest.$ac_ext >&5
44720
44721 ( exit $ac_status )
44722 result=unknown
44723 fi
44724 rm -rf conftest.dSYM
44725 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
44726 fi
44727 rm -f conftest.val
44728        eval gl_cv_bitsizeof_${gltype}=\$result
44729
44730 fi
44731 ac_res=`eval 'as_val=${'gl_cv_bitsizeof_${gltype}'}
44732                  $as_echo "$as_val"'`
44733                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44734 $as_echo "$ac_res" >&6; }
44735     eval result=\$gl_cv_bitsizeof_${gltype}
44736     if test $result = unknown; then
44737                                                 result=0
44738     fi
44739     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
44740     cat >>confdefs.h <<_ACEOF
44741 #define BITSIZEOF_${GLTYPE} $result
44742 _ACEOF
44743
44744     eval BITSIZEOF_${GLTYPE}=\$result
44745   done
44746
44747
44748
44749
44750
44751
44752
44753   for gltype in sig_atomic_t wchar_t wint_t ; do
44754     { $as_echo "$as_me:$LINENO: checking whether $gltype is signed" >&5
44755 $as_echo_n "checking whether $gltype is signed... " >&6; }
44756 if { as_var=gl_cv_type_${gltype}_signed; eval "test \"\${$as_var+set}\" = set"; }; then
44757   $as_echo_n "(cached) " >&6
44758 else
44759   cat >conftest.$ac_ext <<_ACEOF
44760 /* confdefs.h.  */
44761 _ACEOF
44762 cat confdefs.h >>conftest.$ac_ext
44763 cat >>conftest.$ac_ext <<_ACEOF
44764 /* end confdefs.h.  */
44765
44766   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44767      included before <wchar.h>.  */
44768   #include <stddef.h>
44769   #include <signal.h>
44770   #if HAVE_WCHAR_H
44771   # include <stdio.h>
44772   # include <time.h>
44773   # include <wchar.h>
44774   #endif
44775
44776             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
44777 int
44778 main ()
44779 {
44780
44781   ;
44782   return 0;
44783 }
44784 _ACEOF
44785 rm -f conftest.$ac_objext
44786 if { (ac_try="$ac_compile"
44787 case "(($ac_try" in
44788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44789   *) ac_try_echo=$ac_try;;
44790 esac
44791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44792 $as_echo "$ac_try_echo") >&5
44793   (eval "$ac_compile") 2>conftest.er1
44794   ac_status=$?
44795   grep -v '^ *+' conftest.er1 >conftest.err
44796   rm -f conftest.er1
44797   cat conftest.err >&5
44798   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44799   (exit $ac_status); } && {
44800          test -z "$ac_c_werror_flag" ||
44801          test ! -s conftest.err
44802        } && test -s conftest.$ac_objext; then
44803   result=yes
44804 else
44805   $as_echo "$as_me: failed program was:" >&5
44806 sed 's/^/| /' conftest.$ac_ext >&5
44807
44808         result=no
44809 fi
44810
44811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44812        eval gl_cv_type_${gltype}_signed=\$result
44813
44814 fi
44815 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_signed'}
44816                  $as_echo "$as_val"'`
44817                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44818 $as_echo "$ac_res" >&6; }
44819     eval result=\$gl_cv_type_${gltype}_signed
44820     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
44821     if test "$result" = yes; then
44822       cat >>confdefs.h <<_ACEOF
44823 #define HAVE_SIGNED_${GLTYPE} 1
44824 _ACEOF
44825
44826       eval HAVE_SIGNED_${GLTYPE}=1
44827     else
44828       eval HAVE_SIGNED_${GLTYPE}=0
44829     fi
44830   done
44831
44832
44833   gl_cv_type_ptrdiff_t_signed=yes
44834   gl_cv_type_size_t_signed=no
44835   if test $APPLE_UNIVERSAL_BUILD = 0; then
44836
44837
44838
44839
44840   for gltype in ptrdiff_t size_t ; do
44841     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
44842 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
44843 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
44844   $as_echo_n "(cached) " >&6
44845 else
44846   eval gl_cv_type_${gltype}_suffix=no
44847        eval result=\$gl_cv_type_${gltype}_signed
44848        if test "$result" = yes; then
44849          glsufu=
44850        else
44851          glsufu=u
44852        fi
44853        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
44854          case $glsuf in
44855            '')  gltype1='int';;
44856            l)   gltype1='long int';;
44857            ll)  gltype1='long long int';;
44858            i64) gltype1='__int64';;
44859            u)   gltype1='unsigned int';;
44860            ul)  gltype1='unsigned long int';;
44861            ull) gltype1='unsigned long long int';;
44862            ui64)gltype1='unsigned __int64';;
44863          esac
44864          cat >conftest.$ac_ext <<_ACEOF
44865 /* confdefs.h.  */
44866 _ACEOF
44867 cat confdefs.h >>conftest.$ac_ext
44868 cat >>conftest.$ac_ext <<_ACEOF
44869 /* end confdefs.h.  */
44870
44871   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44872      included before <wchar.h>.  */
44873   #include <stddef.h>
44874   #include <signal.h>
44875   #if HAVE_WCHAR_H
44876   # include <stdio.h>
44877   # include <time.h>
44878   # include <wchar.h>
44879   #endif
44880
44881               extern $gltype foo;
44882               extern $gltype1 foo;
44883 int
44884 main ()
44885 {
44886
44887   ;
44888   return 0;
44889 }
44890 _ACEOF
44891 rm -f conftest.$ac_objext
44892 if { (ac_try="$ac_compile"
44893 case "(($ac_try" in
44894   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44895   *) ac_try_echo=$ac_try;;
44896 esac
44897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
44898 $as_echo "$ac_try_echo") >&5
44899   (eval "$ac_compile") 2>conftest.er1
44900   ac_status=$?
44901   grep -v '^ *+' conftest.er1 >conftest.err
44902   rm -f conftest.er1
44903   cat conftest.err >&5
44904   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
44905   (exit $ac_status); } && {
44906          test -z "$ac_c_werror_flag" ||
44907          test ! -s conftest.err
44908        } && test -s conftest.$ac_objext; then
44909   eval gl_cv_type_${gltype}_suffix=\$glsuf
44910 else
44911   $as_echo "$as_me: failed program was:" >&5
44912 sed 's/^/| /' conftest.$ac_ext >&5
44913
44914
44915 fi
44916
44917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
44918          eval result=\$gl_cv_type_${gltype}_suffix
44919          test "$result" != no && break
44920        done
44921 fi
44922 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
44923                  $as_echo "$as_val"'`
44924                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
44925 $as_echo "$ac_res" >&6; }
44926     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
44927     eval result=\$gl_cv_type_${gltype}_suffix
44928     test "$result" = no && result=
44929     eval ${GLTYPE}_SUFFIX=\$result
44930     cat >>confdefs.h <<_ACEOF
44931 #define ${GLTYPE}_SUFFIX $result
44932 _ACEOF
44933
44934   done
44935
44936
44937   fi
44938
44939
44940
44941
44942
44943   for gltype in sig_atomic_t wchar_t wint_t ; do
44944     { $as_echo "$as_me:$LINENO: checking for $gltype integer literal suffix" >&5
44945 $as_echo_n "checking for $gltype integer literal suffix... " >&6; }
44946 if { as_var=gl_cv_type_${gltype}_suffix; eval "test \"\${$as_var+set}\" = set"; }; then
44947   $as_echo_n "(cached) " >&6
44948 else
44949   eval gl_cv_type_${gltype}_suffix=no
44950        eval result=\$gl_cv_type_${gltype}_signed
44951        if test "$result" = yes; then
44952          glsufu=
44953        else
44954          glsufu=u
44955        fi
44956        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
44957          case $glsuf in
44958            '')  gltype1='int';;
44959            l)   gltype1='long int';;
44960            ll)  gltype1='long long int';;
44961            i64) gltype1='__int64';;
44962            u)   gltype1='unsigned int';;
44963            ul)  gltype1='unsigned long int';;
44964            ull) gltype1='unsigned long long int';;
44965            ui64)gltype1='unsigned __int64';;
44966          esac
44967          cat >conftest.$ac_ext <<_ACEOF
44968 /* confdefs.h.  */
44969 _ACEOF
44970 cat confdefs.h >>conftest.$ac_ext
44971 cat >>conftest.$ac_ext <<_ACEOF
44972 /* end confdefs.h.  */
44973
44974   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
44975      included before <wchar.h>.  */
44976   #include <stddef.h>
44977   #include <signal.h>
44978   #if HAVE_WCHAR_H
44979   # include <stdio.h>
44980   # include <time.h>
44981   # include <wchar.h>
44982   #endif
44983
44984               extern $gltype foo;
44985               extern $gltype1 foo;
44986 int
44987 main ()
44988 {
44989
44990   ;
44991   return 0;
44992 }
44993 _ACEOF
44994 rm -f conftest.$ac_objext
44995 if { (ac_try="$ac_compile"
44996 case "(($ac_try" in
44997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
44998   *) ac_try_echo=$ac_try;;
44999 esac
45000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45001 $as_echo "$ac_try_echo") >&5
45002   (eval "$ac_compile") 2>conftest.er1
45003   ac_status=$?
45004   grep -v '^ *+' conftest.er1 >conftest.err
45005   rm -f conftest.er1
45006   cat conftest.err >&5
45007   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45008   (exit $ac_status); } && {
45009          test -z "$ac_c_werror_flag" ||
45010          test ! -s conftest.err
45011        } && test -s conftest.$ac_objext; then
45012   eval gl_cv_type_${gltype}_suffix=\$glsuf
45013 else
45014   $as_echo "$as_me: failed program was:" >&5
45015 sed 's/^/| /' conftest.$ac_ext >&5
45016
45017
45018 fi
45019
45020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45021          eval result=\$gl_cv_type_${gltype}_suffix
45022          test "$result" != no && break
45023        done
45024 fi
45025 ac_res=`eval 'as_val=${'gl_cv_type_${gltype}_suffix'}
45026                  $as_echo "$as_val"'`
45027                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45028 $as_echo "$ac_res" >&6; }
45029     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
45030     eval result=\$gl_cv_type_${gltype}_suffix
45031     test "$result" = no && result=
45032     eval ${GLTYPE}_SUFFIX=\$result
45033     cat >>confdefs.h <<_ACEOF
45034 #define ${GLTYPE}_SUFFIX $result
45035 _ACEOF
45036
45037   done
45038
45039
45040
45041     STDINT_H=stdint.h
45042   fi
45043
45044
45045   # Code from module stdio:
45046
45047
45048
45049
45050
45051
45052
45053
45054
45055
45056
45057      if test $gl_cv_have_include_next = yes; then
45058        gl_cv_next_stdio_h='<'stdio.h'>'
45059      else
45060        { $as_echo "$as_me:$LINENO: checking absolute name of <stdio.h>" >&5
45061 $as_echo_n "checking absolute name of <stdio.h>... " >&6; }
45062 if test "${gl_cv_next_stdio_h+set}" = set; then
45063   $as_echo_n "(cached) " >&6
45064 else
45065
45066                cat >conftest.$ac_ext <<_ACEOF
45067 /* confdefs.h.  */
45068 _ACEOF
45069 cat confdefs.h >>conftest.$ac_ext
45070 cat >>conftest.$ac_ext <<_ACEOF
45071 /* end confdefs.h.  */
45072 #include <stdio.h>
45073
45074 _ACEOF
45075                                                                                                                         case "$host_os" in
45076                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
45077                  *)    gl_absname_cpp="$ac_cpp" ;;
45078                esac
45079                                                             gl_cv_next_stdio_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45080                   sed -n '\#/stdio.h#{
45081                     s#.*"\(.*/stdio.h\)".*#\1#
45082                     s#^/[^/]#//&#
45083                     p
45084                     q
45085                   }'`'"'
45086
45087
45088 fi
45089 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdio_h" >&5
45090 $as_echo "$gl_cv_next_stdio_h" >&6; }
45091      fi
45092      NEXT_STDIO_H=$gl_cv_next_stdio_h
45093
45094      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45095        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45096        gl_next_as_first_directive='<'stdio.h'>'
45097      else
45098        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45099        gl_next_as_first_directive=$gl_cv_next_stdio_h
45100      fi
45101      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
45102
45103
45104
45105
45106       GNULIB_FPRINTF=1
45107   GNULIB_PRINTF=1
45108   GNULIB_VFPRINTF=1
45109   GNULIB_VPRINTF=1
45110   GNULIB_FPUTC=1
45111   GNULIB_PUTC=1
45112   GNULIB_PUTCHAR=1
45113   GNULIB_FPUTS=1
45114   GNULIB_PUTS=1
45115   GNULIB_FWRITE=1
45116
45117
45118
45119
45120
45121
45122
45123
45124
45125
45126
45127
45128
45129
45130
45131   for gl_func in dprintf fpurge fseeko ftello getdelim getline popen renameat     snprintf tmpfile vdprintf vsnprintf; do
45132     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
45133     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
45134 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
45135 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
45136   $as_echo_n "(cached) " >&6
45137 else
45138   cat >conftest.$ac_ext <<_ACEOF
45139 /* confdefs.h.  */
45140 _ACEOF
45141 cat confdefs.h >>conftest.$ac_ext
45142 cat >>conftest.$ac_ext <<_ACEOF
45143 /* end confdefs.h.  */
45144 #include <stdio.h>
45145
45146 int
45147 main ()
45148 {
45149 #undef $gl_func
45150   (void) $gl_func;
45151   ;
45152   return 0;
45153 }
45154 _ACEOF
45155 rm -f conftest.$ac_objext
45156 if { (ac_try="$ac_compile"
45157 case "(($ac_try" in
45158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45159   *) ac_try_echo=$ac_try;;
45160 esac
45161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45162 $as_echo "$ac_try_echo") >&5
45163   (eval "$ac_compile") 2>conftest.er1
45164   ac_status=$?
45165   grep -v '^ *+' conftest.er1 >conftest.err
45166   rm -f conftest.er1
45167   cat conftest.err >&5
45168   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45169   (exit $ac_status); } && {
45170          test -z "$ac_c_werror_flag" ||
45171          test ! -s conftest.err
45172        } && test -s conftest.$ac_objext; then
45173   eval "$as_gl_Symbol=yes"
45174 else
45175   $as_echo "$as_me: failed program was:" >&5
45176 sed 's/^/| /' conftest.$ac_ext >&5
45177
45178         eval "$as_gl_Symbol=no"
45179 fi
45180
45181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45182 fi
45183 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
45184                  $as_echo "$as_val"'`
45185                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45186 $as_echo "$ac_res" >&6; }
45187      as_val=`eval 'as_val=${'$as_gl_Symbol'}
45188                  $as_echo "$as_val"'`
45189    if test "x$as_val" = x""yes; then
45190   cat >>confdefs.h <<_ACEOF
45191 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
45192 _ACEOF
45193
45194                      eval ac_cv_have_decl_$gl_func=yes
45195 fi
45196
45197       done
45198
45199
45200   # Code from module stdlib:
45201
45202
45203
45204
45205
45206
45207
45208
45209
45210
45211      if test $gl_cv_have_include_next = yes; then
45212        gl_cv_next_stdlib_h='<'stdlib.h'>'
45213      else
45214        { $as_echo "$as_me:$LINENO: checking absolute name of <stdlib.h>" >&5
45215 $as_echo_n "checking absolute name of <stdlib.h>... " >&6; }
45216 if test "${gl_cv_next_stdlib_h+set}" = set; then
45217   $as_echo_n "(cached) " >&6
45218 else
45219
45220                cat >conftest.$ac_ext <<_ACEOF
45221 /* confdefs.h.  */
45222 _ACEOF
45223 cat confdefs.h >>conftest.$ac_ext
45224 cat >>conftest.$ac_ext <<_ACEOF
45225 /* end confdefs.h.  */
45226 #include <stdlib.h>
45227
45228 _ACEOF
45229                                                                                                                         case "$host_os" in
45230                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
45231                  *)    gl_absname_cpp="$ac_cpp" ;;
45232                esac
45233                                                             gl_cv_next_stdlib_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
45234                   sed -n '\#/stdlib.h#{
45235                     s#.*"\(.*/stdlib.h\)".*#\1#
45236                     s#^/[^/]#//&#
45237                     p
45238                     q
45239                   }'`'"'
45240
45241
45242 fi
45243 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_stdlib_h" >&5
45244 $as_echo "$gl_cv_next_stdlib_h" >&6; }
45245      fi
45246      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
45247
45248      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
45249        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
45250        gl_next_as_first_directive='<'stdlib.h'>'
45251      else
45252        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
45253        gl_next_as_first_directive=$gl_cv_next_stdlib_h
45254      fi
45255      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
45256
45257
45258
45259
45260
45261
45262
45263
45264
45265
45266
45267
45268
45269
45270
45271
45272
45273
45274
45275
45276
45277
45278
45279
45280
45281
45282
45283
45284
45285
45286   for gl_func in _Exit atoll canonicalize_file_name getloadavg getsubopt grantpt mkdtemp     mkostemp mkostemps mkstemp mkstemps ptsname random_r initstat_r srandom_r     setstate_r realpath rpmatch setenv strtod strtoll strtoull unlockpt     unsetenv; do
45287     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
45288     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
45289 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
45290 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
45291   $as_echo_n "(cached) " >&6
45292 else
45293   cat >conftest.$ac_ext <<_ACEOF
45294 /* confdefs.h.  */
45295 _ACEOF
45296 cat confdefs.h >>conftest.$ac_ext
45297 cat >>conftest.$ac_ext <<_ACEOF
45298 /* end confdefs.h.  */
45299 #include <stdlib.h>
45300 #if HAVE_SYS_LOADAVG_H
45301 # include <sys/loadavg.h>
45302 #endif
45303 #if HAVE_RANDOM_H
45304 # include <random.h>
45305 #endif
45306
45307 int
45308 main ()
45309 {
45310 #undef $gl_func
45311   (void) $gl_func;
45312   ;
45313   return 0;
45314 }
45315 _ACEOF
45316 rm -f conftest.$ac_objext
45317 if { (ac_try="$ac_compile"
45318 case "(($ac_try" in
45319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45320   *) ac_try_echo=$ac_try;;
45321 esac
45322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45323 $as_echo "$ac_try_echo") >&5
45324   (eval "$ac_compile") 2>conftest.er1
45325   ac_status=$?
45326   grep -v '^ *+' conftest.er1 >conftest.err
45327   rm -f conftest.er1
45328   cat conftest.err >&5
45329   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45330   (exit $ac_status); } && {
45331          test -z "$ac_c_werror_flag" ||
45332          test ! -s conftest.err
45333        } && test -s conftest.$ac_objext; then
45334   eval "$as_gl_Symbol=yes"
45335 else
45336   $as_echo "$as_me: failed program was:" >&5
45337 sed 's/^/| /' conftest.$ac_ext >&5
45338
45339         eval "$as_gl_Symbol=no"
45340 fi
45341
45342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45343 fi
45344 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
45345                  $as_echo "$as_val"'`
45346                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45347 $as_echo "$ac_res" >&6; }
45348      as_val=`eval 'as_val=${'$as_gl_Symbol'}
45349                  $as_echo "$as_val"'`
45350    if test "x$as_val" = x""yes; then
45351   cat >>confdefs.h <<_ACEOF
45352 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
45353 _ACEOF
45354
45355                      eval ac_cv_have_decl_$gl_func=yes
45356 fi
45357
45358       done
45359
45360
45361   # Code from module stpcpy:
45362
45363
45364
45365
45366
45367
45368
45369
45370
45371
45372
45373
45374
45375
45376
45377 for ac_func in stpcpy
45378 do
45379 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45380 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45381 $as_echo_n "checking for $ac_func... " >&6; }
45382 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45383   $as_echo_n "(cached) " >&6
45384 else
45385   cat >conftest.$ac_ext <<_ACEOF
45386 /* confdefs.h.  */
45387 _ACEOF
45388 cat confdefs.h >>conftest.$ac_ext
45389 cat >>conftest.$ac_ext <<_ACEOF
45390 /* end confdefs.h.  */
45391 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45392    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45393 #define $ac_func innocuous_$ac_func
45394
45395 /* System header to define __stub macros and hopefully few prototypes,
45396     which can conflict with char $ac_func (); below.
45397     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45398     <limits.h> exists even on freestanding compilers.  */
45399
45400 #ifdef __STDC__
45401 # include <limits.h>
45402 #else
45403 # include <assert.h>
45404 #endif
45405
45406 #undef $ac_func
45407
45408 /* Override any GCC internal prototype to avoid an error.
45409    Use char because int might match the return type of a GCC
45410    builtin and then its argument prototype would still apply.  */
45411 #ifdef __cplusplus
45412 extern "C"
45413 #endif
45414 char $ac_func ();
45415 /* The GNU C library defines this for functions which it implements
45416     to always fail with ENOSYS.  Some functions are actually named
45417     something starting with __ and the normal name is an alias.  */
45418 #if defined __stub_$ac_func || defined __stub___$ac_func
45419 choke me
45420 #endif
45421
45422 int
45423 main ()
45424 {
45425 return $ac_func ();
45426   ;
45427   return 0;
45428 }
45429 _ACEOF
45430 rm -f conftest.$ac_objext conftest$ac_exeext
45431 if { (ac_try="$ac_link"
45432 case "(($ac_try" in
45433   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45434   *) ac_try_echo=$ac_try;;
45435 esac
45436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45437 $as_echo "$ac_try_echo") >&5
45438   (eval "$ac_link") 2>conftest.er1
45439   ac_status=$?
45440   grep -v '^ *+' conftest.er1 >conftest.err
45441   rm -f conftest.er1
45442   cat conftest.err >&5
45443   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45444   (exit $ac_status); } && {
45445          test -z "$ac_c_werror_flag" ||
45446          test ! -s conftest.err
45447        } && test -s conftest$ac_exeext && {
45448          test "$cross_compiling" = yes ||
45449          $as_test_x conftest$ac_exeext
45450        }; then
45451   eval "$as_ac_var=yes"
45452 else
45453   $as_echo "$as_me: failed program was:" >&5
45454 sed 's/^/| /' conftest.$ac_ext >&5
45455
45456         eval "$as_ac_var=no"
45457 fi
45458
45459 rm -rf conftest.dSYM
45460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45461       conftest$ac_exeext conftest.$ac_ext
45462 fi
45463 ac_res=`eval 'as_val=${'$as_ac_var'}
45464                  $as_echo "$as_val"'`
45465                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45466 $as_echo "$ac_res" >&6; }
45467 as_val=`eval 'as_val=${'$as_ac_var'}
45468                  $as_echo "$as_val"'`
45469    if test "x$as_val" = x""yes; then
45470   cat >>confdefs.h <<_ACEOF
45471 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45472 _ACEOF
45473
45474 else
45475
45476     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45477
45478 fi
45479 done
45480
45481
45482   if test $ac_cv_func_stpcpy = no; then
45483     HAVE_STPCPY=0
45484
45485   :
45486
45487   fi
45488
45489
45490
45491
45492   GNULIB_STPCPY=1
45493
45494
45495
45496 cat >>confdefs.h <<\_ACEOF
45497 #define GNULIB_TEST_STPCPY 1
45498 _ACEOF
45499
45500
45501
45502   # Code from module strcase:
45503
45504
45505
45506
45507
45508
45509
45510
45511
45512
45513
45514
45515 for ac_func in strcasecmp
45516 do
45517 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45518 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45519 $as_echo_n "checking for $ac_func... " >&6; }
45520 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45521   $as_echo_n "(cached) " >&6
45522 else
45523   cat >conftest.$ac_ext <<_ACEOF
45524 /* confdefs.h.  */
45525 _ACEOF
45526 cat confdefs.h >>conftest.$ac_ext
45527 cat >>conftest.$ac_ext <<_ACEOF
45528 /* end confdefs.h.  */
45529 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45530    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45531 #define $ac_func innocuous_$ac_func
45532
45533 /* System header to define __stub macros and hopefully few prototypes,
45534     which can conflict with char $ac_func (); below.
45535     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45536     <limits.h> exists even on freestanding compilers.  */
45537
45538 #ifdef __STDC__
45539 # include <limits.h>
45540 #else
45541 # include <assert.h>
45542 #endif
45543
45544 #undef $ac_func
45545
45546 /* Override any GCC internal prototype to avoid an error.
45547    Use char because int might match the return type of a GCC
45548    builtin and then its argument prototype would still apply.  */
45549 #ifdef __cplusplus
45550 extern "C"
45551 #endif
45552 char $ac_func ();
45553 /* The GNU C library defines this for functions which it implements
45554     to always fail with ENOSYS.  Some functions are actually named
45555     something starting with __ and the normal name is an alias.  */
45556 #if defined __stub_$ac_func || defined __stub___$ac_func
45557 choke me
45558 #endif
45559
45560 int
45561 main ()
45562 {
45563 return $ac_func ();
45564   ;
45565   return 0;
45566 }
45567 _ACEOF
45568 rm -f conftest.$ac_objext conftest$ac_exeext
45569 if { (ac_try="$ac_link"
45570 case "(($ac_try" in
45571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45572   *) ac_try_echo=$ac_try;;
45573 esac
45574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45575 $as_echo "$ac_try_echo") >&5
45576   (eval "$ac_link") 2>conftest.er1
45577   ac_status=$?
45578   grep -v '^ *+' conftest.er1 >conftest.err
45579   rm -f conftest.er1
45580   cat conftest.err >&5
45581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45582   (exit $ac_status); } && {
45583          test -z "$ac_c_werror_flag" ||
45584          test ! -s conftest.err
45585        } && test -s conftest$ac_exeext && {
45586          test "$cross_compiling" = yes ||
45587          $as_test_x conftest$ac_exeext
45588        }; then
45589   eval "$as_ac_var=yes"
45590 else
45591   $as_echo "$as_me: failed program was:" >&5
45592 sed 's/^/| /' conftest.$ac_ext >&5
45593
45594         eval "$as_ac_var=no"
45595 fi
45596
45597 rm -rf conftest.dSYM
45598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45599       conftest$ac_exeext conftest.$ac_ext
45600 fi
45601 ac_res=`eval 'as_val=${'$as_ac_var'}
45602                  $as_echo "$as_val"'`
45603                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45604 $as_echo "$ac_res" >&6; }
45605 as_val=`eval 'as_val=${'$as_ac_var'}
45606                  $as_echo "$as_val"'`
45607    if test "x$as_val" = x""yes; then
45608   cat >>confdefs.h <<_ACEOF
45609 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45610 _ACEOF
45611
45612 else
45613
45614     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45615
45616 fi
45617 done
45618
45619
45620   if test $ac_cv_func_strcasecmp = no; then
45621     HAVE_STRCASECMP=0
45622
45623   :
45624
45625   fi
45626
45627
45628
45629
45630
45631
45632
45633
45634
45635
45636
45637
45638 for ac_func in strncasecmp
45639 do
45640 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45641 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45642 $as_echo_n "checking for $ac_func... " >&6; }
45643 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45644   $as_echo_n "(cached) " >&6
45645 else
45646   cat >conftest.$ac_ext <<_ACEOF
45647 /* confdefs.h.  */
45648 _ACEOF
45649 cat confdefs.h >>conftest.$ac_ext
45650 cat >>conftest.$ac_ext <<_ACEOF
45651 /* end confdefs.h.  */
45652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45653    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45654 #define $ac_func innocuous_$ac_func
45655
45656 /* System header to define __stub macros and hopefully few prototypes,
45657     which can conflict with char $ac_func (); below.
45658     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45659     <limits.h> exists even on freestanding compilers.  */
45660
45661 #ifdef __STDC__
45662 # include <limits.h>
45663 #else
45664 # include <assert.h>
45665 #endif
45666
45667 #undef $ac_func
45668
45669 /* Override any GCC internal prototype to avoid an error.
45670    Use char because int might match the return type of a GCC
45671    builtin and then its argument prototype would still apply.  */
45672 #ifdef __cplusplus
45673 extern "C"
45674 #endif
45675 char $ac_func ();
45676 /* The GNU C library defines this for functions which it implements
45677     to always fail with ENOSYS.  Some functions are actually named
45678     something starting with __ and the normal name is an alias.  */
45679 #if defined __stub_$ac_func || defined __stub___$ac_func
45680 choke me
45681 #endif
45682
45683 int
45684 main ()
45685 {
45686 return $ac_func ();
45687   ;
45688   return 0;
45689 }
45690 _ACEOF
45691 rm -f conftest.$ac_objext conftest$ac_exeext
45692 if { (ac_try="$ac_link"
45693 case "(($ac_try" in
45694   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45695   *) ac_try_echo=$ac_try;;
45696 esac
45697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45698 $as_echo "$ac_try_echo") >&5
45699   (eval "$ac_link") 2>conftest.er1
45700   ac_status=$?
45701   grep -v '^ *+' conftest.er1 >conftest.err
45702   rm -f conftest.er1
45703   cat conftest.err >&5
45704   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45705   (exit $ac_status); } && {
45706          test -z "$ac_c_werror_flag" ||
45707          test ! -s conftest.err
45708        } && test -s conftest$ac_exeext && {
45709          test "$cross_compiling" = yes ||
45710          $as_test_x conftest$ac_exeext
45711        }; then
45712   eval "$as_ac_var=yes"
45713 else
45714   $as_echo "$as_me: failed program was:" >&5
45715 sed 's/^/| /' conftest.$ac_ext >&5
45716
45717         eval "$as_ac_var=no"
45718 fi
45719
45720 rm -rf conftest.dSYM
45721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45722       conftest$ac_exeext conftest.$ac_ext
45723 fi
45724 ac_res=`eval 'as_val=${'$as_ac_var'}
45725                  $as_echo "$as_val"'`
45726                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45727 $as_echo "$ac_res" >&6; }
45728 as_val=`eval 'as_val=${'$as_ac_var'}
45729                  $as_echo "$as_val"'`
45730    if test "x$as_val" = x""yes; then
45731   cat >>confdefs.h <<_ACEOF
45732 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45733 _ACEOF
45734
45735 else
45736
45737     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45738
45739 fi
45740 done
45741
45742
45743   if test $ac_cv_func_strncasecmp = no; then
45744
45745   :
45746
45747   fi
45748   { $as_echo "$as_me:$LINENO: checking whether strncasecmp is declared" >&5
45749 $as_echo_n "checking whether strncasecmp is declared... " >&6; }
45750 if test "${ac_cv_have_decl_strncasecmp+set}" = set; then
45751   $as_echo_n "(cached) " >&6
45752 else
45753   cat >conftest.$ac_ext <<_ACEOF
45754 /* confdefs.h.  */
45755 _ACEOF
45756 cat confdefs.h >>conftest.$ac_ext
45757 cat >>conftest.$ac_ext <<_ACEOF
45758 /* end confdefs.h.  */
45759 $ac_includes_default
45760 int
45761 main ()
45762 {
45763 #ifndef strncasecmp
45764   (void) strncasecmp;
45765 #endif
45766
45767   ;
45768   return 0;
45769 }
45770 _ACEOF
45771 rm -f conftest.$ac_objext
45772 if { (ac_try="$ac_compile"
45773 case "(($ac_try" in
45774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45775   *) ac_try_echo=$ac_try;;
45776 esac
45777 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45778 $as_echo "$ac_try_echo") >&5
45779   (eval "$ac_compile") 2>conftest.er1
45780   ac_status=$?
45781   grep -v '^ *+' conftest.er1 >conftest.err
45782   rm -f conftest.er1
45783   cat conftest.err >&5
45784   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45785   (exit $ac_status); } && {
45786          test -z "$ac_c_werror_flag" ||
45787          test ! -s conftest.err
45788        } && test -s conftest.$ac_objext; then
45789   ac_cv_have_decl_strncasecmp=yes
45790 else
45791   $as_echo "$as_me: failed program was:" >&5
45792 sed 's/^/| /' conftest.$ac_ext >&5
45793
45794         ac_cv_have_decl_strncasecmp=no
45795 fi
45796
45797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
45798 fi
45799 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strncasecmp" >&5
45800 $as_echo "$ac_cv_have_decl_strncasecmp" >&6; }
45801 if test "x$ac_cv_have_decl_strncasecmp" = x""yes; then
45802
45803 cat >>confdefs.h <<_ACEOF
45804 #define HAVE_DECL_STRNCASECMP 1
45805 _ACEOF
45806
45807
45808 else
45809   cat >>confdefs.h <<_ACEOF
45810 #define HAVE_DECL_STRNCASECMP 0
45811 _ACEOF
45812
45813
45814 fi
45815
45816
45817   if test $ac_cv_have_decl_strncasecmp = no; then
45818     HAVE_DECL_STRNCASECMP=0
45819   fi
45820
45821
45822   # Code from module strchrnul:
45823
45824
45825
45826
45827
45828
45829
45830
45831
45832
45833
45834
45835
45836 for ac_func in strchrnul
45837 do
45838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
45839 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
45840 $as_echo_n "checking for $ac_func... " >&6; }
45841 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
45842   $as_echo_n "(cached) " >&6
45843 else
45844   cat >conftest.$ac_ext <<_ACEOF
45845 /* confdefs.h.  */
45846 _ACEOF
45847 cat confdefs.h >>conftest.$ac_ext
45848 cat >>conftest.$ac_ext <<_ACEOF
45849 /* end confdefs.h.  */
45850 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
45851    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
45852 #define $ac_func innocuous_$ac_func
45853
45854 /* System header to define __stub macros and hopefully few prototypes,
45855     which can conflict with char $ac_func (); below.
45856     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
45857     <limits.h> exists even on freestanding compilers.  */
45858
45859 #ifdef __STDC__
45860 # include <limits.h>
45861 #else
45862 # include <assert.h>
45863 #endif
45864
45865 #undef $ac_func
45866
45867 /* Override any GCC internal prototype to avoid an error.
45868    Use char because int might match the return type of a GCC
45869    builtin and then its argument prototype would still apply.  */
45870 #ifdef __cplusplus
45871 extern "C"
45872 #endif
45873 char $ac_func ();
45874 /* The GNU C library defines this for functions which it implements
45875     to always fail with ENOSYS.  Some functions are actually named
45876     something starting with __ and the normal name is an alias.  */
45877 #if defined __stub_$ac_func || defined __stub___$ac_func
45878 choke me
45879 #endif
45880
45881 int
45882 main ()
45883 {
45884 return $ac_func ();
45885   ;
45886   return 0;
45887 }
45888 _ACEOF
45889 rm -f conftest.$ac_objext conftest$ac_exeext
45890 if { (ac_try="$ac_link"
45891 case "(($ac_try" in
45892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
45893   *) ac_try_echo=$ac_try;;
45894 esac
45895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
45896 $as_echo "$ac_try_echo") >&5
45897   (eval "$ac_link") 2>conftest.er1
45898   ac_status=$?
45899   grep -v '^ *+' conftest.er1 >conftest.err
45900   rm -f conftest.er1
45901   cat conftest.err >&5
45902   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
45903   (exit $ac_status); } && {
45904          test -z "$ac_c_werror_flag" ||
45905          test ! -s conftest.err
45906        } && test -s conftest$ac_exeext && {
45907          test "$cross_compiling" = yes ||
45908          $as_test_x conftest$ac_exeext
45909        }; then
45910   eval "$as_ac_var=yes"
45911 else
45912   $as_echo "$as_me: failed program was:" >&5
45913 sed 's/^/| /' conftest.$ac_ext >&5
45914
45915         eval "$as_ac_var=no"
45916 fi
45917
45918 rm -rf conftest.dSYM
45919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
45920       conftest$ac_exeext conftest.$ac_ext
45921 fi
45922 ac_res=`eval 'as_val=${'$as_ac_var'}
45923                  $as_echo "$as_val"'`
45924                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
45925 $as_echo "$ac_res" >&6; }
45926 as_val=`eval 'as_val=${'$as_ac_var'}
45927                  $as_echo "$as_val"'`
45928    if test "x$as_val" = x""yes; then
45929   cat >>confdefs.h <<_ACEOF
45930 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
45931 _ACEOF
45932
45933 else
45934
45935     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
45936
45937 fi
45938 done
45939
45940
45941   if test $ac_cv_func_strchrnul = no; then
45942     HAVE_STRCHRNUL=0
45943     :
45944   fi
45945
45946
45947
45948
45949   GNULIB_STRCHRNUL=1
45950
45951
45952
45953 cat >>confdefs.h <<\_ACEOF
45954 #define GNULIB_TEST_STRCHRNUL 1
45955 _ACEOF
45956
45957
45958
45959   # Code from module strdup-posix:
45960
45961
45962
45963
45964
45965
45966
45967
45968
45969   if test $ac_cv_func_strdup = yes; then
45970     if test $gl_cv_func_malloc_posix != yes; then
45971       REPLACE_STRDUP=1
45972
45973
45974
45975
45976
45977
45978
45979
45980   gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
45981
45982       :
45983     fi
45984   else
45985
45986
45987
45988
45989
45990
45991
45992
45993   gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
45994
45995     :
45996   fi
45997
45998
45999
46000
46001   if test $ac_cv_have_decl_strdup = no; then
46002     HAVE_DECL_STRDUP=0
46003   fi
46004
46005
46006
46007
46008   GNULIB_STRDUP=1
46009
46010
46011
46012 cat >>confdefs.h <<\_ACEOF
46013 #define GNULIB_TEST_STRDUP 1
46014 _ACEOF
46015
46016
46017
46018   # Code from module streq:
46019   # Code from module strerror:
46020
46021
46022   if test $REPLACE_STRERROR = 1; then
46023
46024
46025
46026
46027
46028
46029
46030
46031   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
46032
46033
46034 cat >>confdefs.h <<_ACEOF
46035 #define REPLACE_STRERROR $REPLACE_STRERROR
46036 _ACEOF
46037
46038   fi
46039
46040
46041
46042
46043   GNULIB_STRERROR=1
46044
46045
46046
46047 cat >>confdefs.h <<\_ACEOF
46048 #define GNULIB_TEST_STRERROR 1
46049 _ACEOF
46050
46051
46052
46053   # Code from module string:
46054
46055
46056
46057   # Code from module strings:
46058
46059
46060
46061   # Code from module strndup:
46062
46063
46064
46065
46066
46067
46068
46069
46070
46071
46072
46073
46074
46075
46076   if test $ac_cv_have_decl_strndup = no; then
46077     HAVE_DECL_STRNDUP=0
46078   fi
46079
46080   if test $ac_cv_func_strndup = yes; then
46081     # AIX 4.3.3, AIX 5.1 have a function that fails to add the terminating '\0'.
46082     { $as_echo "$as_me:$LINENO: checking for working strndup" >&5
46083 $as_echo_n "checking for working strndup... " >&6; }
46084 if test "${gl_cv_func_strndup_works+set}" = set; then
46085   $as_echo_n "(cached) " >&6
46086 else
46087   if test "$cross_compiling" = yes; then
46088
46089           case $host_os in
46090             aix | aix[3-6]*) gl_cv_func_strndup_works="guessing no";;
46091             *)               gl_cv_func_strndup_works="guessing yes";;
46092           esac
46093
46094 else
46095   cat >conftest.$ac_ext <<_ACEOF
46096
46097          /* confdefs.h.  */
46098 _ACEOF
46099 cat confdefs.h >>conftest.$ac_ext
46100 cat >>conftest.$ac_ext <<_ACEOF
46101 /* end confdefs.h.  */
46102 #include <string.h>
46103                            #include <stdlib.h>
46104 int
46105 main ()
46106 {
46107
46108 #ifndef HAVE_DECL_STRNDUP
46109   extern char *strndup (const char *, size_t);
46110 #endif
46111   char *s;
46112   s = strndup ("some longer string", 15);
46113   free (s);
46114   s = strndup ("shorter string", 13);
46115   return s[13] != '\0';
46116   ;
46117   return 0;
46118 }
46119 _ACEOF
46120 rm -f conftest$ac_exeext
46121 if { (ac_try="$ac_link"
46122 case "(($ac_try" in
46123   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46124   *) ac_try_echo=$ac_try;;
46125 esac
46126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46127 $as_echo "$ac_try_echo") >&5
46128   (eval "$ac_link") 2>&5
46129   ac_status=$?
46130   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46131   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46132   { (case "(($ac_try" in
46133   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46134   *) ac_try_echo=$ac_try;;
46135 esac
46136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46137 $as_echo "$ac_try_echo") >&5
46138   (eval "$ac_try") 2>&5
46139   ac_status=$?
46140   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46141   (exit $ac_status); }; }; then
46142   gl_cv_func_strndup_works=yes
46143 else
46144   $as_echo "$as_me: program exited with status $ac_status" >&5
46145 $as_echo "$as_me: failed program was:" >&5
46146 sed 's/^/| /' conftest.$ac_ext >&5
46147
46148 ( exit $ac_status )
46149 gl_cv_func_strndup_works=no
46150 fi
46151 rm -rf conftest.dSYM
46152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46153 fi
46154
46155
46156 fi
46157 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strndup_works" >&5
46158 $as_echo "$gl_cv_func_strndup_works" >&6; }
46159     case $gl_cv_func_strndup_works in
46160       *no)
46161         REPLACE_STRNDUP=1
46162
46163
46164
46165
46166
46167
46168
46169
46170   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
46171
46172         ;;
46173     esac
46174   else
46175
46176
46177
46178
46179
46180
46181
46182
46183   gl_LIBOBJS="$gl_LIBOBJS strndup.$ac_objext"
46184
46185   fi
46186
46187
46188
46189
46190   GNULIB_STRNDUP=1
46191
46192
46193
46194 cat >>confdefs.h <<\_ACEOF
46195 #define GNULIB_TEST_STRNDUP 1
46196 _ACEOF
46197
46198
46199
46200   # Code from module strnlen:
46201
46202
46203
46204
46205
46206
46207
46208
46209
46210   if test $ac_cv_have_decl_strnlen = no; then
46211     HAVE_DECL_STRNLEN=0
46212   else
46213     { $as_echo "$as_me:$LINENO: checking for working strnlen" >&5
46214 $as_echo_n "checking for working strnlen... " >&6; }
46215 if test "${ac_cv_func_strnlen_working+set}" = set; then
46216   $as_echo_n "(cached) " >&6
46217 else
46218   if test "$cross_compiling" = yes; then
46219   ac_cv_func_strnlen_working=no
46220 else
46221   cat >conftest.$ac_ext <<_ACEOF
46222 /* confdefs.h.  */
46223 _ACEOF
46224 cat confdefs.h >>conftest.$ac_ext
46225 cat >>conftest.$ac_ext <<_ACEOF
46226 /* end confdefs.h.  */
46227 $ac_includes_default
46228 int
46229 main ()
46230 {
46231
46232 #define S "foobar"
46233 #define S_LEN (sizeof S - 1)
46234
46235   /* At least one implementation is buggy: that of AIX 4.3 would
46236      give strnlen (S, 1) == 3.  */
46237
46238   int i;
46239   for (i = 0; i < S_LEN + 1; ++i)
46240     {
46241       int expected = i <= S_LEN ? i : S_LEN;
46242       if (strnlen (S, i) != expected)
46243         return 1;
46244     }
46245   return 0;
46246
46247   ;
46248   return 0;
46249 }
46250 _ACEOF
46251 rm -f conftest$ac_exeext
46252 if { (ac_try="$ac_link"
46253 case "(($ac_try" in
46254   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46255   *) ac_try_echo=$ac_try;;
46256 esac
46257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46258 $as_echo "$ac_try_echo") >&5
46259   (eval "$ac_link") 2>&5
46260   ac_status=$?
46261   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46262   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
46263   { (case "(($ac_try" in
46264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46265   *) ac_try_echo=$ac_try;;
46266 esac
46267 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46268 $as_echo "$ac_try_echo") >&5
46269   (eval "$ac_try") 2>&5
46270   ac_status=$?
46271   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46272   (exit $ac_status); }; }; then
46273   ac_cv_func_strnlen_working=yes
46274 else
46275   $as_echo "$as_me: program exited with status $ac_status" >&5
46276 $as_echo "$as_me: failed program was:" >&5
46277 sed 's/^/| /' conftest.$ac_ext >&5
46278
46279 ( exit $ac_status )
46280 ac_cv_func_strnlen_working=no
46281 fi
46282 rm -rf conftest.dSYM
46283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
46284 fi
46285
46286
46287 fi
46288 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_strnlen_working" >&5
46289 $as_echo "$ac_cv_func_strnlen_working" >&6; }
46290 test $ac_cv_func_strnlen_working = no &&
46291
46292
46293
46294
46295
46296
46297
46298   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
46299
46300
46301         if test $ac_cv_func_strnlen_working = no; then
46302       REPLACE_STRNLEN=1
46303     fi
46304   fi
46305   if test $HAVE_DECL_STRNLEN = 0 || test $REPLACE_STRNLEN = 1; then
46306
46307
46308
46309
46310
46311
46312
46313
46314   gl_LIBOBJS="$gl_LIBOBJS strnlen.$ac_objext"
46315
46316     :
46317   fi
46318
46319
46320
46321
46322   GNULIB_STRNLEN=1
46323
46324
46325
46326 cat >>confdefs.h <<\_ACEOF
46327 #define GNULIB_TEST_STRNLEN 1
46328 _ACEOF
46329
46330
46331
46332   # Code from module strnlen1:
46333   # Code from module strtoimax:
46334
46335   { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoimax as a macro" >&5
46336 $as_echo_n "checking whether <inttypes.h> defines strtoimax as a macro... " >&6; }
46337 if test "${gl_cv_func_strtoimax_macro+set}" = set; then
46338   $as_echo_n "(cached) " >&6
46339 else
46340   cat >conftest.$ac_ext <<_ACEOF
46341 /* confdefs.h.  */
46342 _ACEOF
46343 cat confdefs.h >>conftest.$ac_ext
46344 cat >>conftest.$ac_ext <<_ACEOF
46345 /* end confdefs.h.  */
46346 #include <inttypes.h>
46347 #ifdef strtoimax
46348  inttypes_h_defines_strtoimax
46349 #endif
46350 _ACEOF
46351 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
46352   $EGREP "inttypes_h_defines_strtoimax" >/dev/null 2>&1; then
46353   gl_cv_func_strtoimax_macro=yes
46354 else
46355   gl_cv_func_strtoimax_macro=no
46356 fi
46357 rm -f conftest*
46358
46359 fi
46360 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strtoimax_macro" >&5
46361 $as_echo "$gl_cv_func_strtoimax_macro" >&6; }
46362
46363   if test "$gl_cv_func_strtoimax_macro" != yes; then
46364
46365
46366
46367
46368
46369
46370
46371
46372
46373 for ac_func in strtoimax
46374 do
46375 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46376 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46377 $as_echo_n "checking for $ac_func... " >&6; }
46378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46379   $as_echo_n "(cached) " >&6
46380 else
46381   cat >conftest.$ac_ext <<_ACEOF
46382 /* confdefs.h.  */
46383 _ACEOF
46384 cat confdefs.h >>conftest.$ac_ext
46385 cat >>conftest.$ac_ext <<_ACEOF
46386 /* end confdefs.h.  */
46387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46388    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46389 #define $ac_func innocuous_$ac_func
46390
46391 /* System header to define __stub macros and hopefully few prototypes,
46392     which can conflict with char $ac_func (); below.
46393     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46394     <limits.h> exists even on freestanding compilers.  */
46395
46396 #ifdef __STDC__
46397 # include <limits.h>
46398 #else
46399 # include <assert.h>
46400 #endif
46401
46402 #undef $ac_func
46403
46404 /* Override any GCC internal prototype to avoid an error.
46405    Use char because int might match the return type of a GCC
46406    builtin and then its argument prototype would still apply.  */
46407 #ifdef __cplusplus
46408 extern "C"
46409 #endif
46410 char $ac_func ();
46411 /* The GNU C library defines this for functions which it implements
46412     to always fail with ENOSYS.  Some functions are actually named
46413     something starting with __ and the normal name is an alias.  */
46414 #if defined __stub_$ac_func || defined __stub___$ac_func
46415 choke me
46416 #endif
46417
46418 int
46419 main ()
46420 {
46421 return $ac_func ();
46422   ;
46423   return 0;
46424 }
46425 _ACEOF
46426 rm -f conftest.$ac_objext conftest$ac_exeext
46427 if { (ac_try="$ac_link"
46428 case "(($ac_try" in
46429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46430   *) ac_try_echo=$ac_try;;
46431 esac
46432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46433 $as_echo "$ac_try_echo") >&5
46434   (eval "$ac_link") 2>conftest.er1
46435   ac_status=$?
46436   grep -v '^ *+' conftest.er1 >conftest.err
46437   rm -f conftest.er1
46438   cat conftest.err >&5
46439   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46440   (exit $ac_status); } && {
46441          test -z "$ac_c_werror_flag" ||
46442          test ! -s conftest.err
46443        } && test -s conftest$ac_exeext && {
46444          test "$cross_compiling" = yes ||
46445          $as_test_x conftest$ac_exeext
46446        }; then
46447   eval "$as_ac_var=yes"
46448 else
46449   $as_echo "$as_me: failed program was:" >&5
46450 sed 's/^/| /' conftest.$ac_ext >&5
46451
46452         eval "$as_ac_var=no"
46453 fi
46454
46455 rm -rf conftest.dSYM
46456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46457       conftest$ac_exeext conftest.$ac_ext
46458 fi
46459 ac_res=`eval 'as_val=${'$as_ac_var'}
46460                  $as_echo "$as_val"'`
46461                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46462 $as_echo "$ac_res" >&6; }
46463 as_val=`eval 'as_val=${'$as_ac_var'}
46464                  $as_echo "$as_val"'`
46465    if test "x$as_val" = x""yes; then
46466   cat >>confdefs.h <<_ACEOF
46467 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46468 _ACEOF
46469
46470 else
46471
46472     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
46473
46474 fi
46475 done
46476
46477
46478     if test $ac_cv_func_strtoimax = no; then
46479
46480   { $as_echo "$as_me:$LINENO: checking whether strtoll is declared" >&5
46481 $as_echo_n "checking whether strtoll is declared... " >&6; }
46482 if test "${ac_cv_have_decl_strtoll+set}" = set; then
46483   $as_echo_n "(cached) " >&6
46484 else
46485   cat >conftest.$ac_ext <<_ACEOF
46486 /* confdefs.h.  */
46487 _ACEOF
46488 cat confdefs.h >>conftest.$ac_ext
46489 cat >>conftest.$ac_ext <<_ACEOF
46490 /* end confdefs.h.  */
46491 $ac_includes_default
46492 int
46493 main ()
46494 {
46495 #ifndef strtoll
46496   (void) strtoll;
46497 #endif
46498
46499   ;
46500   return 0;
46501 }
46502 _ACEOF
46503 rm -f conftest.$ac_objext
46504 if { (ac_try="$ac_compile"
46505 case "(($ac_try" in
46506   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46507   *) ac_try_echo=$ac_try;;
46508 esac
46509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46510 $as_echo "$ac_try_echo") >&5
46511   (eval "$ac_compile") 2>conftest.er1
46512   ac_status=$?
46513   grep -v '^ *+' conftest.er1 >conftest.err
46514   rm -f conftest.er1
46515   cat conftest.err >&5
46516   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46517   (exit $ac_status); } && {
46518          test -z "$ac_c_werror_flag" ||
46519          test ! -s conftest.err
46520        } && test -s conftest.$ac_objext; then
46521   ac_cv_have_decl_strtoll=yes
46522 else
46523   $as_echo "$as_me: failed program was:" >&5
46524 sed 's/^/| /' conftest.$ac_ext >&5
46525
46526         ac_cv_have_decl_strtoll=no
46527 fi
46528
46529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
46530 fi
46531 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoll" >&5
46532 $as_echo "$ac_cv_have_decl_strtoll" >&6; }
46533 if test "x$ac_cv_have_decl_strtoll" = x""yes; then
46534
46535 cat >>confdefs.h <<_ACEOF
46536 #define HAVE_DECL_STRTOLL 1
46537 _ACEOF
46538
46539
46540 else
46541   cat >>confdefs.h <<_ACEOF
46542 #define HAVE_DECL_STRTOLL 0
46543 _ACEOF
46544
46545
46546 fi
46547
46548
46549
46550
46551     fi
46552   fi
46553
46554
46555
46556
46557   GNULIB_STRTOIMAX=1
46558
46559
46560   # Code from module strtol:
46561
46562
46563
46564
46565
46566
46567
46568
46569
46570
46571 for ac_func in strtol
46572 do
46573 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46574 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46575 $as_echo_n "checking for $ac_func... " >&6; }
46576 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46577   $as_echo_n "(cached) " >&6
46578 else
46579   cat >conftest.$ac_ext <<_ACEOF
46580 /* confdefs.h.  */
46581 _ACEOF
46582 cat confdefs.h >>conftest.$ac_ext
46583 cat >>conftest.$ac_ext <<_ACEOF
46584 /* end confdefs.h.  */
46585 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46586    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46587 #define $ac_func innocuous_$ac_func
46588
46589 /* System header to define __stub macros and hopefully few prototypes,
46590     which can conflict with char $ac_func (); below.
46591     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46592     <limits.h> exists even on freestanding compilers.  */
46593
46594 #ifdef __STDC__
46595 # include <limits.h>
46596 #else
46597 # include <assert.h>
46598 #endif
46599
46600 #undef $ac_func
46601
46602 /* Override any GCC internal prototype to avoid an error.
46603    Use char because int might match the return type of a GCC
46604    builtin and then its argument prototype would still apply.  */
46605 #ifdef __cplusplus
46606 extern "C"
46607 #endif
46608 char $ac_func ();
46609 /* The GNU C library defines this for functions which it implements
46610     to always fail with ENOSYS.  Some functions are actually named
46611     something starting with __ and the normal name is an alias.  */
46612 #if defined __stub_$ac_func || defined __stub___$ac_func
46613 choke me
46614 #endif
46615
46616 int
46617 main ()
46618 {
46619 return $ac_func ();
46620   ;
46621   return 0;
46622 }
46623 _ACEOF
46624 rm -f conftest.$ac_objext conftest$ac_exeext
46625 if { (ac_try="$ac_link"
46626 case "(($ac_try" in
46627   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46628   *) ac_try_echo=$ac_try;;
46629 esac
46630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46631 $as_echo "$ac_try_echo") >&5
46632   (eval "$ac_link") 2>conftest.er1
46633   ac_status=$?
46634   grep -v '^ *+' conftest.er1 >conftest.err
46635   rm -f conftest.er1
46636   cat conftest.err >&5
46637   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46638   (exit $ac_status); } && {
46639          test -z "$ac_c_werror_flag" ||
46640          test ! -s conftest.err
46641        } && test -s conftest$ac_exeext && {
46642          test "$cross_compiling" = yes ||
46643          $as_test_x conftest$ac_exeext
46644        }; then
46645   eval "$as_ac_var=yes"
46646 else
46647   $as_echo "$as_me: failed program was:" >&5
46648 sed 's/^/| /' conftest.$ac_ext >&5
46649
46650         eval "$as_ac_var=no"
46651 fi
46652
46653 rm -rf conftest.dSYM
46654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46655       conftest$ac_exeext conftest.$ac_ext
46656 fi
46657 ac_res=`eval 'as_val=${'$as_ac_var'}
46658                  $as_echo "$as_val"'`
46659                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46660 $as_echo "$ac_res" >&6; }
46661 as_val=`eval 'as_val=${'$as_ac_var'}
46662                  $as_echo "$as_val"'`
46663    if test "x$as_val" = x""yes; then
46664   cat >>confdefs.h <<_ACEOF
46665 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46666 _ACEOF
46667
46668 else
46669
46670     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
46671
46672 fi
46673 done
46674
46675
46676
46677   # Code from module strtoll:
46678
46679
46680
46681   if test "$ac_cv_type_long_long_int" = yes; then
46682
46683
46684
46685
46686
46687
46688
46689
46690
46691 for ac_func in strtoll
46692 do
46693 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46694 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46695 $as_echo_n "checking for $ac_func... " >&6; }
46696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46697   $as_echo_n "(cached) " >&6
46698 else
46699   cat >conftest.$ac_ext <<_ACEOF
46700 /* confdefs.h.  */
46701 _ACEOF
46702 cat confdefs.h >>conftest.$ac_ext
46703 cat >>conftest.$ac_ext <<_ACEOF
46704 /* end confdefs.h.  */
46705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46706    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46707 #define $ac_func innocuous_$ac_func
46708
46709 /* System header to define __stub macros and hopefully few prototypes,
46710     which can conflict with char $ac_func (); below.
46711     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46712     <limits.h> exists even on freestanding compilers.  */
46713
46714 #ifdef __STDC__
46715 # include <limits.h>
46716 #else
46717 # include <assert.h>
46718 #endif
46719
46720 #undef $ac_func
46721
46722 /* Override any GCC internal prototype to avoid an error.
46723    Use char because int might match the return type of a GCC
46724    builtin and then its argument prototype would still apply.  */
46725 #ifdef __cplusplus
46726 extern "C"
46727 #endif
46728 char $ac_func ();
46729 /* The GNU C library defines this for functions which it implements
46730     to always fail with ENOSYS.  Some functions are actually named
46731     something starting with __ and the normal name is an alias.  */
46732 #if defined __stub_$ac_func || defined __stub___$ac_func
46733 choke me
46734 #endif
46735
46736 int
46737 main ()
46738 {
46739 return $ac_func ();
46740   ;
46741   return 0;
46742 }
46743 _ACEOF
46744 rm -f conftest.$ac_objext conftest$ac_exeext
46745 if { (ac_try="$ac_link"
46746 case "(($ac_try" in
46747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46748   *) ac_try_echo=$ac_try;;
46749 esac
46750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46751 $as_echo "$ac_try_echo") >&5
46752   (eval "$ac_link") 2>conftest.er1
46753   ac_status=$?
46754   grep -v '^ *+' conftest.er1 >conftest.err
46755   rm -f conftest.er1
46756   cat conftest.err >&5
46757   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46758   (exit $ac_status); } && {
46759          test -z "$ac_c_werror_flag" ||
46760          test ! -s conftest.err
46761        } && test -s conftest$ac_exeext && {
46762          test "$cross_compiling" = yes ||
46763          $as_test_x conftest$ac_exeext
46764        }; then
46765   eval "$as_ac_var=yes"
46766 else
46767   $as_echo "$as_me: failed program was:" >&5
46768 sed 's/^/| /' conftest.$ac_ext >&5
46769
46770         eval "$as_ac_var=no"
46771 fi
46772
46773 rm -rf conftest.dSYM
46774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46775       conftest$ac_exeext conftest.$ac_ext
46776 fi
46777 ac_res=`eval 'as_val=${'$as_ac_var'}
46778                  $as_echo "$as_val"'`
46779                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46780 $as_echo "$ac_res" >&6; }
46781 as_val=`eval 'as_val=${'$as_ac_var'}
46782                  $as_echo "$as_val"'`
46783    if test "x$as_val" = x""yes; then
46784   cat >>confdefs.h <<_ACEOF
46785 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46786 _ACEOF
46787
46788 else
46789
46790     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
46791
46792 fi
46793 done
46794
46795
46796     if test $ac_cv_func_strtoll = no; then
46797       HAVE_STRTOLL=0
46798
46799   :
46800
46801     fi
46802   fi
46803
46804
46805
46806
46807   GNULIB_STRTOLL=1
46808
46809
46810
46811 cat >>confdefs.h <<\_ACEOF
46812 #define GNULIB_TEST_STRTOLL 1
46813 _ACEOF
46814
46815
46816
46817   # Code from module strtoul:
46818
46819
46820
46821
46822
46823
46824
46825
46826
46827
46828 for ac_func in strtoul
46829 do
46830 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46831 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46832 $as_echo_n "checking for $ac_func... " >&6; }
46833 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46834   $as_echo_n "(cached) " >&6
46835 else
46836   cat >conftest.$ac_ext <<_ACEOF
46837 /* confdefs.h.  */
46838 _ACEOF
46839 cat confdefs.h >>conftest.$ac_ext
46840 cat >>conftest.$ac_ext <<_ACEOF
46841 /* end confdefs.h.  */
46842 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46843    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46844 #define $ac_func innocuous_$ac_func
46845
46846 /* System header to define __stub macros and hopefully few prototypes,
46847     which can conflict with char $ac_func (); below.
46848     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46849     <limits.h> exists even on freestanding compilers.  */
46850
46851 #ifdef __STDC__
46852 # include <limits.h>
46853 #else
46854 # include <assert.h>
46855 #endif
46856
46857 #undef $ac_func
46858
46859 /* Override any GCC internal prototype to avoid an error.
46860    Use char because int might match the return type of a GCC
46861    builtin and then its argument prototype would still apply.  */
46862 #ifdef __cplusplus
46863 extern "C"
46864 #endif
46865 char $ac_func ();
46866 /* The GNU C library defines this for functions which it implements
46867     to always fail with ENOSYS.  Some functions are actually named
46868     something starting with __ and the normal name is an alias.  */
46869 #if defined __stub_$ac_func || defined __stub___$ac_func
46870 choke me
46871 #endif
46872
46873 int
46874 main ()
46875 {
46876 return $ac_func ();
46877   ;
46878   return 0;
46879 }
46880 _ACEOF
46881 rm -f conftest.$ac_objext conftest$ac_exeext
46882 if { (ac_try="$ac_link"
46883 case "(($ac_try" in
46884   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
46885   *) ac_try_echo=$ac_try;;
46886 esac
46887 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
46888 $as_echo "$ac_try_echo") >&5
46889   (eval "$ac_link") 2>conftest.er1
46890   ac_status=$?
46891   grep -v '^ *+' conftest.er1 >conftest.err
46892   rm -f conftest.er1
46893   cat conftest.err >&5
46894   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
46895   (exit $ac_status); } && {
46896          test -z "$ac_c_werror_flag" ||
46897          test ! -s conftest.err
46898        } && test -s conftest$ac_exeext && {
46899          test "$cross_compiling" = yes ||
46900          $as_test_x conftest$ac_exeext
46901        }; then
46902   eval "$as_ac_var=yes"
46903 else
46904   $as_echo "$as_me: failed program was:" >&5
46905 sed 's/^/| /' conftest.$ac_ext >&5
46906
46907         eval "$as_ac_var=no"
46908 fi
46909
46910 rm -rf conftest.dSYM
46911 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
46912       conftest$ac_exeext conftest.$ac_ext
46913 fi
46914 ac_res=`eval 'as_val=${'$as_ac_var'}
46915                  $as_echo "$as_val"'`
46916                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
46917 $as_echo "$ac_res" >&6; }
46918 as_val=`eval 'as_val=${'$as_ac_var'}
46919                  $as_echo "$as_val"'`
46920    if test "x$as_val" = x""yes; then
46921   cat >>confdefs.h <<_ACEOF
46922 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
46923 _ACEOF
46924
46925 else
46926
46927     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
46928
46929 fi
46930 done
46931
46932
46933
46934   # Code from module strtoull:
46935
46936
46937
46938   if test "$ac_cv_type_unsigned_long_long_int" = yes; then
46939
46940
46941
46942
46943
46944
46945
46946
46947
46948 for ac_func in strtoull
46949 do
46950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
46951 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
46952 $as_echo_n "checking for $ac_func... " >&6; }
46953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
46954   $as_echo_n "(cached) " >&6
46955 else
46956   cat >conftest.$ac_ext <<_ACEOF
46957 /* confdefs.h.  */
46958 _ACEOF
46959 cat confdefs.h >>conftest.$ac_ext
46960 cat >>conftest.$ac_ext <<_ACEOF
46961 /* end confdefs.h.  */
46962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
46963    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
46964 #define $ac_func innocuous_$ac_func
46965
46966 /* System header to define __stub macros and hopefully few prototypes,
46967     which can conflict with char $ac_func (); below.
46968     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
46969     <limits.h> exists even on freestanding compilers.  */
46970
46971 #ifdef __STDC__
46972 # include <limits.h>
46973 #else
46974 # include <assert.h>
46975 #endif
46976
46977 #undef $ac_func
46978
46979 /* Override any GCC internal prototype to avoid an error.
46980    Use char because int might match the return type of a GCC
46981    builtin and then its argument prototype would still apply.  */
46982 #ifdef __cplusplus
46983 extern "C"
46984 #endif
46985 char $ac_func ();
46986 /* The GNU C library defines this for functions which it implements
46987     to always fail with ENOSYS.  Some functions are actually named
46988     something starting with __ and the normal name is an alias.  */
46989 #if defined __stub_$ac_func || defined __stub___$ac_func
46990 choke me
46991 #endif
46992
46993 int
46994 main ()
46995 {
46996 return $ac_func ();
46997   ;
46998   return 0;
46999 }
47000 _ACEOF
47001 rm -f conftest.$ac_objext conftest$ac_exeext
47002 if { (ac_try="$ac_link"
47003 case "(($ac_try" in
47004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47005   *) ac_try_echo=$ac_try;;
47006 esac
47007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47008 $as_echo "$ac_try_echo") >&5
47009   (eval "$ac_link") 2>conftest.er1
47010   ac_status=$?
47011   grep -v '^ *+' conftest.er1 >conftest.err
47012   rm -f conftest.er1
47013   cat conftest.err >&5
47014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47015   (exit $ac_status); } && {
47016          test -z "$ac_c_werror_flag" ||
47017          test ! -s conftest.err
47018        } && test -s conftest$ac_exeext && {
47019          test "$cross_compiling" = yes ||
47020          $as_test_x conftest$ac_exeext
47021        }; then
47022   eval "$as_ac_var=yes"
47023 else
47024   $as_echo "$as_me: failed program was:" >&5
47025 sed 's/^/| /' conftest.$ac_ext >&5
47026
47027         eval "$as_ac_var=no"
47028 fi
47029
47030 rm -rf conftest.dSYM
47031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47032       conftest$ac_exeext conftest.$ac_ext
47033 fi
47034 ac_res=`eval 'as_val=${'$as_ac_var'}
47035                  $as_echo "$as_val"'`
47036                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47037 $as_echo "$ac_res" >&6; }
47038 as_val=`eval 'as_val=${'$as_ac_var'}
47039                  $as_echo "$as_val"'`
47040    if test "x$as_val" = x""yes; then
47041   cat >>confdefs.h <<_ACEOF
47042 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47043 _ACEOF
47044
47045 else
47046
47047     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
47048
47049 fi
47050 done
47051
47052
47053     if test $ac_cv_func_strtoull = no; then
47054       HAVE_STRTOULL=0
47055
47056   :
47057
47058     fi
47059   fi
47060
47061
47062
47063
47064   GNULIB_STRTOULL=1
47065
47066
47067
47068 cat >>confdefs.h <<\_ACEOF
47069 #define GNULIB_TEST_STRTOULL 1
47070 _ACEOF
47071
47072
47073
47074   # Code from module strtoumax:
47075
47076   { $as_echo "$as_me:$LINENO: checking whether <inttypes.h> defines strtoumax as a macro" >&5
47077 $as_echo_n "checking whether <inttypes.h> defines strtoumax as a macro... " >&6; }
47078 if test "${gl_cv_func_strtoumax_macro+set}" = set; then
47079   $as_echo_n "(cached) " >&6
47080 else
47081   cat >conftest.$ac_ext <<_ACEOF
47082 /* confdefs.h.  */
47083 _ACEOF
47084 cat confdefs.h >>conftest.$ac_ext
47085 cat >>conftest.$ac_ext <<_ACEOF
47086 /* end confdefs.h.  */
47087 #include <inttypes.h>
47088 #ifdef strtoumax
47089  inttypes_h_defines_strtoumax
47090 #endif
47091 _ACEOF
47092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
47093   $EGREP "inttypes_h_defines_strtoumax" >/dev/null 2>&1; then
47094   gl_cv_func_strtoumax_macro=yes
47095 else
47096   gl_cv_func_strtoumax_macro=no
47097 fi
47098 rm -f conftest*
47099
47100 fi
47101 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_strtoumax_macro" >&5
47102 $as_echo "$gl_cv_func_strtoumax_macro" >&6; }
47103
47104   if test "$gl_cv_func_strtoumax_macro" != yes; then
47105
47106
47107
47108
47109
47110
47111
47112
47113
47114 for ac_func in strtoumax
47115 do
47116 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
47117 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
47118 $as_echo_n "checking for $ac_func... " >&6; }
47119 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
47120   $as_echo_n "(cached) " >&6
47121 else
47122   cat >conftest.$ac_ext <<_ACEOF
47123 /* confdefs.h.  */
47124 _ACEOF
47125 cat confdefs.h >>conftest.$ac_ext
47126 cat >>conftest.$ac_ext <<_ACEOF
47127 /* end confdefs.h.  */
47128 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
47129    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
47130 #define $ac_func innocuous_$ac_func
47131
47132 /* System header to define __stub macros and hopefully few prototypes,
47133     which can conflict with char $ac_func (); below.
47134     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
47135     <limits.h> exists even on freestanding compilers.  */
47136
47137 #ifdef __STDC__
47138 # include <limits.h>
47139 #else
47140 # include <assert.h>
47141 #endif
47142
47143 #undef $ac_func
47144
47145 /* Override any GCC internal prototype to avoid an error.
47146    Use char because int might match the return type of a GCC
47147    builtin and then its argument prototype would still apply.  */
47148 #ifdef __cplusplus
47149 extern "C"
47150 #endif
47151 char $ac_func ();
47152 /* The GNU C library defines this for functions which it implements
47153     to always fail with ENOSYS.  Some functions are actually named
47154     something starting with __ and the normal name is an alias.  */
47155 #if defined __stub_$ac_func || defined __stub___$ac_func
47156 choke me
47157 #endif
47158
47159 int
47160 main ()
47161 {
47162 return $ac_func ();
47163   ;
47164   return 0;
47165 }
47166 _ACEOF
47167 rm -f conftest.$ac_objext conftest$ac_exeext
47168 if { (ac_try="$ac_link"
47169 case "(($ac_try" in
47170   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47171   *) ac_try_echo=$ac_try;;
47172 esac
47173 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47174 $as_echo "$ac_try_echo") >&5
47175   (eval "$ac_link") 2>conftest.er1
47176   ac_status=$?
47177   grep -v '^ *+' conftest.er1 >conftest.err
47178   rm -f conftest.er1
47179   cat conftest.err >&5
47180   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47181   (exit $ac_status); } && {
47182          test -z "$ac_c_werror_flag" ||
47183          test ! -s conftest.err
47184        } && test -s conftest$ac_exeext && {
47185          test "$cross_compiling" = yes ||
47186          $as_test_x conftest$ac_exeext
47187        }; then
47188   eval "$as_ac_var=yes"
47189 else
47190   $as_echo "$as_me: failed program was:" >&5
47191 sed 's/^/| /' conftest.$ac_ext >&5
47192
47193         eval "$as_ac_var=no"
47194 fi
47195
47196 rm -rf conftest.dSYM
47197 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
47198       conftest$ac_exeext conftest.$ac_ext
47199 fi
47200 ac_res=`eval 'as_val=${'$as_ac_var'}
47201                  $as_echo "$as_val"'`
47202                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47203 $as_echo "$ac_res" >&6; }
47204 as_val=`eval 'as_val=${'$as_ac_var'}
47205                  $as_echo "$as_val"'`
47206    if test "x$as_val" = x""yes; then
47207   cat >>confdefs.h <<_ACEOF
47208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
47209 _ACEOF
47210
47211 else
47212
47213     gl_LIBOBJS="$gl_LIBOBJS $ac_func.$ac_objext"
47214
47215 fi
47216 done
47217
47218
47219     if test $ac_cv_func_strtoumax = no; then
47220
47221   { $as_echo "$as_me:$LINENO: checking whether strtoull is declared" >&5
47222 $as_echo_n "checking whether strtoull is declared... " >&6; }
47223 if test "${ac_cv_have_decl_strtoull+set}" = set; then
47224   $as_echo_n "(cached) " >&6
47225 else
47226   cat >conftest.$ac_ext <<_ACEOF
47227 /* confdefs.h.  */
47228 _ACEOF
47229 cat confdefs.h >>conftest.$ac_ext
47230 cat >>conftest.$ac_ext <<_ACEOF
47231 /* end confdefs.h.  */
47232 $ac_includes_default
47233 int
47234 main ()
47235 {
47236 #ifndef strtoull
47237   (void) strtoull;
47238 #endif
47239
47240   ;
47241   return 0;
47242 }
47243 _ACEOF
47244 rm -f conftest.$ac_objext
47245 if { (ac_try="$ac_compile"
47246 case "(($ac_try" in
47247   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47248   *) ac_try_echo=$ac_try;;
47249 esac
47250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47251 $as_echo "$ac_try_echo") >&5
47252   (eval "$ac_compile") 2>conftest.er1
47253   ac_status=$?
47254   grep -v '^ *+' conftest.er1 >conftest.err
47255   rm -f conftest.er1
47256   cat conftest.err >&5
47257   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47258   (exit $ac_status); } && {
47259          test -z "$ac_c_werror_flag" ||
47260          test ! -s conftest.err
47261        } && test -s conftest.$ac_objext; then
47262   ac_cv_have_decl_strtoull=yes
47263 else
47264   $as_echo "$as_me: failed program was:" >&5
47265 sed 's/^/| /' conftest.$ac_ext >&5
47266
47267         ac_cv_have_decl_strtoull=no
47268 fi
47269
47270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47271 fi
47272 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_strtoull" >&5
47273 $as_echo "$ac_cv_have_decl_strtoull" >&6; }
47274 if test "x$ac_cv_have_decl_strtoull" = x""yes; then
47275
47276 cat >>confdefs.h <<_ACEOF
47277 #define HAVE_DECL_STRTOULL 1
47278 _ACEOF
47279
47280
47281 else
47282   cat >>confdefs.h <<_ACEOF
47283 #define HAVE_DECL_STRTOULL 0
47284 _ACEOF
47285
47286
47287 fi
47288
47289
47290
47291
47292     fi
47293   fi
47294
47295
47296
47297
47298   GNULIB_STRTOUMAX=1
47299
47300
47301   # Code from module symlink:
47302
47303
47304
47305
47306
47307
47308
47309
47310         if test $ac_cv_func_symlink = no; then
47311     HAVE_SYMLINK=0
47312
47313
47314
47315
47316
47317
47318
47319
47320   gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
47321
47322   else
47323     { $as_echo "$as_me:$LINENO: checking whether symlink handles trailing slash correctly" >&5
47324 $as_echo_n "checking whether symlink handles trailing slash correctly... " >&6; }
47325 if test "${gl_cv_func_symlink_works+set}" = set; then
47326   $as_echo_n "(cached) " >&6
47327 else
47328   if test "$cross_compiling" = yes; then
47329   gl_cv_func_symlink_works="guessing no"
47330 else
47331   cat >conftest.$ac_ext <<_ACEOF
47332 /* confdefs.h.  */
47333 _ACEOF
47334 cat confdefs.h >>conftest.$ac_ext
47335 cat >>conftest.$ac_ext <<_ACEOF
47336 /* end confdefs.h.  */
47337 #include <unistd.h>
47338
47339 int
47340 main ()
47341 {
47342 int result = 0;
47343              if (!symlink ("a", "conftest.link/"))
47344                result |= 1;
47345              if (symlink ("conftest.f", "conftest.lnk2"))
47346                result |= 2;
47347              else if (!symlink ("a", "conftest.lnk2/"))
47348                result |= 4;
47349              return result;
47350
47351   ;
47352   return 0;
47353 }
47354 _ACEOF
47355 rm -f conftest$ac_exeext
47356 if { (ac_try="$ac_link"
47357 case "(($ac_try" in
47358   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47359   *) ac_try_echo=$ac_try;;
47360 esac
47361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47362 $as_echo "$ac_try_echo") >&5
47363   (eval "$ac_link") 2>&5
47364   ac_status=$?
47365   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47366   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
47367   { (case "(($ac_try" in
47368   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47369   *) ac_try_echo=$ac_try;;
47370 esac
47371 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47372 $as_echo "$ac_try_echo") >&5
47373   (eval "$ac_try") 2>&5
47374   ac_status=$?
47375   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47376   (exit $ac_status); }; }; then
47377   gl_cv_func_symlink_works=yes
47378 else
47379   $as_echo "$as_me: program exited with status $ac_status" >&5
47380 $as_echo "$as_me: failed program was:" >&5
47381 sed 's/^/| /' conftest.$ac_ext >&5
47382
47383 ( exit $ac_status )
47384 gl_cv_func_symlink_works=no
47385 fi
47386 rm -rf conftest.dSYM
47387 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
47388 fi
47389
47390
47391       rm -f conftest.f conftest.link conftest.lnk2
47392 fi
47393 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_symlink_works" >&5
47394 $as_echo "$gl_cv_func_symlink_works" >&6; }
47395     if test "$gl_cv_func_symlink_works" != yes; then
47396       REPLACE_SYMLINK=1
47397
47398
47399
47400
47401
47402
47403
47404
47405   gl_LIBOBJS="$gl_LIBOBJS symlink.$ac_objext"
47406
47407     fi
47408   fi
47409
47410
47411
47412
47413   GNULIB_SYMLINK=1
47414
47415
47416
47417 cat >>confdefs.h <<\_ACEOF
47418 #define GNULIB_TEST_SYMLINK 1
47419 _ACEOF
47420
47421
47422
47423   # Code from module symlinkat:
47424
47425
47426
47427
47428
47429
47430
47431
47432
47433
47434   if test $ac_cv_func_symlinkat = no; then
47435     HAVE_SYMLINKAT=0
47436
47437
47438
47439
47440
47441
47442
47443
47444   gl_LIBOBJS="$gl_LIBOBJS symlinkat.$ac_objext"
47445
47446   fi
47447
47448
47449
47450
47451   GNULIB_SYMLINKAT=1
47452
47453
47454
47455 cat >>confdefs.h <<\_ACEOF
47456 #define GNULIB_TEST_SYMLINKAT 1
47457 _ACEOF
47458
47459
47460
47461   # Code from module sys_stat:
47462
47463
47464
47465
47466
47467
47468
47469
47470
47471
47472
47473
47474
47475
47476
47477
47478
47479
47480
47481
47482
47483      if test $gl_cv_have_include_next = yes; then
47484        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
47485      else
47486        { $as_echo "$as_me:$LINENO: checking absolute name of <sys/stat.h>" >&5
47487 $as_echo_n "checking absolute name of <sys/stat.h>... " >&6; }
47488 if test "${gl_cv_next_sys_stat_h+set}" = set; then
47489   $as_echo_n "(cached) " >&6
47490 else
47491
47492              if test $ac_cv_header_sys_stat_h = yes; then
47493
47494
47495                cat >conftest.$ac_ext <<_ACEOF
47496 /* confdefs.h.  */
47497 _ACEOF
47498 cat confdefs.h >>conftest.$ac_ext
47499 cat >>conftest.$ac_ext <<_ACEOF
47500 /* end confdefs.h.  */
47501 #include <sys/stat.h>
47502
47503 _ACEOF
47504                                                                                                                         case "$host_os" in
47505                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
47506                  *)    gl_absname_cpp="$ac_cpp" ;;
47507                esac
47508                                                             gl_cv_next_sys_stat_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
47509                   sed -n '\#/sys/stat.h#{
47510                     s#.*"\(.*/sys/stat.h\)".*#\1#
47511                     s#^/[^/]#//&#
47512                     p
47513                     q
47514                   }'`'"'
47515           else
47516                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
47517              fi
47518
47519
47520 fi
47521 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sys_stat_h" >&5
47522 $as_echo "$gl_cv_next_sys_stat_h" >&6; }
47523      fi
47524      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
47525
47526      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
47527        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
47528        gl_next_as_first_directive='<'sys/stat.h'>'
47529      else
47530        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
47531        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
47532      fi
47533      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
47534
47535
47536
47537
47538
47539       { $as_echo "$as_me:$LINENO: checking for nlink_t" >&5
47540 $as_echo_n "checking for nlink_t... " >&6; }
47541 if test "${ac_cv_type_nlink_t+set}" = set; then
47542   $as_echo_n "(cached) " >&6
47543 else
47544   ac_cv_type_nlink_t=no
47545 cat >conftest.$ac_ext <<_ACEOF
47546 /* confdefs.h.  */
47547 _ACEOF
47548 cat confdefs.h >>conftest.$ac_ext
47549 cat >>conftest.$ac_ext <<_ACEOF
47550 /* end confdefs.h.  */
47551 #include <sys/types.h>
47552      #include <sys/stat.h>
47553
47554 int
47555 main ()
47556 {
47557 if (sizeof (nlink_t))
47558        return 0;
47559   ;
47560   return 0;
47561 }
47562 _ACEOF
47563 rm -f conftest.$ac_objext
47564 if { (ac_try="$ac_compile"
47565 case "(($ac_try" in
47566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47567   *) ac_try_echo=$ac_try;;
47568 esac
47569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47570 $as_echo "$ac_try_echo") >&5
47571   (eval "$ac_compile") 2>conftest.er1
47572   ac_status=$?
47573   grep -v '^ *+' conftest.er1 >conftest.err
47574   rm -f conftest.er1
47575   cat conftest.err >&5
47576   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47577   (exit $ac_status); } && {
47578          test -z "$ac_c_werror_flag" ||
47579          test ! -s conftest.err
47580        } && test -s conftest.$ac_objext; then
47581   cat >conftest.$ac_ext <<_ACEOF
47582 /* confdefs.h.  */
47583 _ACEOF
47584 cat confdefs.h >>conftest.$ac_ext
47585 cat >>conftest.$ac_ext <<_ACEOF
47586 /* end confdefs.h.  */
47587 #include <sys/types.h>
47588      #include <sys/stat.h>
47589
47590 int
47591 main ()
47592 {
47593 if (sizeof ((nlink_t)))
47594           return 0;
47595   ;
47596   return 0;
47597 }
47598 _ACEOF
47599 rm -f conftest.$ac_objext
47600 if { (ac_try="$ac_compile"
47601 case "(($ac_try" in
47602   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47603   *) ac_try_echo=$ac_try;;
47604 esac
47605 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47606 $as_echo "$ac_try_echo") >&5
47607   (eval "$ac_compile") 2>conftest.er1
47608   ac_status=$?
47609   grep -v '^ *+' conftest.er1 >conftest.err
47610   rm -f conftest.er1
47611   cat conftest.err >&5
47612   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47613   (exit $ac_status); } && {
47614          test -z "$ac_c_werror_flag" ||
47615          test ! -s conftest.err
47616        } && test -s conftest.$ac_objext; then
47617   :
47618 else
47619   $as_echo "$as_me: failed program was:" >&5
47620 sed 's/^/| /' conftest.$ac_ext >&5
47621
47622         ac_cv_type_nlink_t=yes
47623 fi
47624
47625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47626 else
47627   $as_echo "$as_me: failed program was:" >&5
47628 sed 's/^/| /' conftest.$ac_ext >&5
47629
47630
47631 fi
47632
47633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47634 fi
47635 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_nlink_t" >&5
47636 $as_echo "$ac_cv_type_nlink_t" >&6; }
47637 if test "x$ac_cv_type_nlink_t" = x""yes; then
47638   :
47639 else
47640
47641 cat >>confdefs.h <<\_ACEOF
47642 #define nlink_t int
47643 _ACEOF
47644
47645 fi
47646
47647
47648
47649
47650
47651
47652
47653
47654
47655
47656
47657
47658
47659
47660
47661   for gl_func in fchmodat fstatat futimens lchmod lstat mkdirat mkfifo mkfifoat     mknod mknodat stat utimensat; do
47662     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
47663     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
47664 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
47665 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
47666   $as_echo_n "(cached) " >&6
47667 else
47668   cat >conftest.$ac_ext <<_ACEOF
47669 /* confdefs.h.  */
47670 _ACEOF
47671 cat confdefs.h >>conftest.$ac_ext
47672 cat >>conftest.$ac_ext <<_ACEOF
47673 /* end confdefs.h.  */
47674 #include <sys/stat.h>
47675
47676 int
47677 main ()
47678 {
47679 #undef $gl_func
47680   (void) $gl_func;
47681   ;
47682   return 0;
47683 }
47684 _ACEOF
47685 rm -f conftest.$ac_objext
47686 if { (ac_try="$ac_compile"
47687 case "(($ac_try" in
47688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47689   *) ac_try_echo=$ac_try;;
47690 esac
47691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47692 $as_echo "$ac_try_echo") >&5
47693   (eval "$ac_compile") 2>conftest.er1
47694   ac_status=$?
47695   grep -v '^ *+' conftest.er1 >conftest.err
47696   rm -f conftest.er1
47697   cat conftest.err >&5
47698   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47699   (exit $ac_status); } && {
47700          test -z "$ac_c_werror_flag" ||
47701          test ! -s conftest.err
47702        } && test -s conftest.$ac_objext; then
47703   eval "$as_gl_Symbol=yes"
47704 else
47705   $as_echo "$as_me: failed program was:" >&5
47706 sed 's/^/| /' conftest.$ac_ext >&5
47707
47708         eval "$as_gl_Symbol=no"
47709 fi
47710
47711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47712 fi
47713 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
47714                  $as_echo "$as_val"'`
47715                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
47716 $as_echo "$ac_res" >&6; }
47717      as_val=`eval 'as_val=${'$as_gl_Symbol'}
47718                  $as_echo "$as_val"'`
47719    if test "x$as_val" = x""yes; then
47720   cat >>confdefs.h <<_ACEOF
47721 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
47722 _ACEOF
47723
47724                      eval ac_cv_have_decl_$gl_func=yes
47725 fi
47726
47727       done
47728
47729
47730   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
47731 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
47732 if test -z "$MKDIR_P"; then
47733   if test "${ac_cv_path_mkdir+set}" = set; then
47734   $as_echo_n "(cached) " >&6
47735 else
47736   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47737 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
47738 do
47739   IFS=$as_save_IFS
47740   test -z "$as_dir" && as_dir=.
47741   for ac_prog in mkdir gmkdir; do
47742          for ac_exec_ext in '' $ac_executable_extensions; do
47743            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
47744            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
47745              'mkdir (GNU coreutils) '* | \
47746              'mkdir (coreutils) '* | \
47747              'mkdir (fileutils) '4.1*)
47748                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
47749                break 3;;
47750            esac
47751          done
47752        done
47753 done
47754 IFS=$as_save_IFS
47755
47756 fi
47757
47758   if test "${ac_cv_path_mkdir+set}" = set; then
47759     MKDIR_P="$ac_cv_path_mkdir -p"
47760   else
47761     # As a last resort, use the slow shell script.  Don't cache a
47762     # value for MKDIR_P within a source directory, because that will
47763     # break other packages using the cache if that directory is
47764     # removed, or if the value is a relative name.
47765     test -d ./--version && rmdir ./--version
47766     MKDIR_P="$ac_install_sh -d"
47767   fi
47768 fi
47769 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
47770 $as_echo "$MKDIR_P" >&6; }
47771
47772
47773   # Code from module sys_time:
47774
47775
47776
47777   { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
47778 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
47779 if test -z "$MKDIR_P"; then
47780   if test "${ac_cv_path_mkdir+set}" = set; then
47781   $as_echo_n "(cached) " >&6
47782 else
47783   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
47784 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
47785 do
47786   IFS=$as_save_IFS
47787   test -z "$as_dir" && as_dir=.
47788   for ac_prog in mkdir gmkdir; do
47789          for ac_exec_ext in '' $ac_executable_extensions; do
47790            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
47791            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
47792              'mkdir (GNU coreutils) '* | \
47793              'mkdir (coreutils) '* | \
47794              'mkdir (fileutils) '4.1*)
47795                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
47796                break 3;;
47797            esac
47798          done
47799        done
47800 done
47801 IFS=$as_save_IFS
47802
47803 fi
47804
47805   if test "${ac_cv_path_mkdir+set}" = set; then
47806     MKDIR_P="$ac_cv_path_mkdir -p"
47807   else
47808     # As a last resort, use the slow shell script.  Don't cache a
47809     # value for MKDIR_P within a source directory, because that will
47810     # break other packages using the cache if that directory is
47811     # removed, or if the value is a relative name.
47812     test -d ./--version && rmdir ./--version
47813     MKDIR_P="$ac_install_sh -d"
47814   fi
47815 fi
47816 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
47817 $as_echo "$MKDIR_P" >&6; }
47818
47819
47820   # Code from module sysexits:
47821
47822
47823
47824
47825
47826
47827
47828   if test $ac_cv_header_sysexits_h = yes; then
47829     HAVE_SYSEXITS_H=1
47830
47831
47832
47833
47834
47835
47836
47837
47838
47839
47840
47841
47842
47843
47844      if test $gl_cv_have_include_next = yes; then
47845        gl_cv_next_sysexits_h='<'sysexits.h'>'
47846      else
47847        { $as_echo "$as_me:$LINENO: checking absolute name of <sysexits.h>" >&5
47848 $as_echo_n "checking absolute name of <sysexits.h>... " >&6; }
47849 if test "${gl_cv_next_sysexits_h+set}" = set; then
47850   $as_echo_n "(cached) " >&6
47851 else
47852
47853              if test $ac_cv_header_sysexits_h = yes; then
47854
47855
47856                cat >conftest.$ac_ext <<_ACEOF
47857 /* confdefs.h.  */
47858 _ACEOF
47859 cat confdefs.h >>conftest.$ac_ext
47860 cat >>conftest.$ac_ext <<_ACEOF
47861 /* end confdefs.h.  */
47862 #include <sysexits.h>
47863
47864 _ACEOF
47865                                                                                                                         case "$host_os" in
47866                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
47867                  *)    gl_absname_cpp="$ac_cpp" ;;
47868                esac
47869                                                             gl_cv_next_sysexits_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
47870                   sed -n '\#/sysexits.h#{
47871                     s#.*"\(.*/sysexits.h\)".*#\1#
47872                     s#^/[^/]#//&#
47873                     p
47874                     q
47875                   }'`'"'
47876           else
47877                gl_cv_next_sysexits_h='<'sysexits.h'>'
47878              fi
47879
47880
47881 fi
47882 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_sysexits_h" >&5
47883 $as_echo "$gl_cv_next_sysexits_h" >&6; }
47884      fi
47885      NEXT_SYSEXITS_H=$gl_cv_next_sysexits_h
47886
47887      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
47888        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
47889        gl_next_as_first_directive='<'sysexits.h'>'
47890      else
47891        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
47892        gl_next_as_first_directive=$gl_cv_next_sysexits_h
47893      fi
47894      NEXT_AS_FIRST_DIRECTIVE_SYSEXITS_H=$gl_next_as_first_directive
47895
47896
47897
47898
47899     cat >conftest.$ac_ext <<_ACEOF
47900 /* confdefs.h.  */
47901 _ACEOF
47902 cat confdefs.h >>conftest.$ac_ext
47903 cat >>conftest.$ac_ext <<_ACEOF
47904 /* end confdefs.h.  */
47905 #include <sysexits.h>
47906 int
47907 main ()
47908 {
47909 switch (0)
47910           {
47911           case EX_OK:
47912           case EX_USAGE:
47913           case EX_DATAERR:
47914           case EX_NOINPUT:
47915           case EX_NOUSER:
47916           case EX_NOHOST:
47917           case EX_UNAVAILABLE:
47918           case EX_SOFTWARE:
47919           case EX_OSERR:
47920           case EX_OSFILE:
47921           case EX_CANTCREAT:
47922           case EX_IOERR:
47923           case EX_TEMPFAIL:
47924           case EX_PROTOCOL:
47925           case EX_NOPERM:
47926           case EX_CONFIG:
47927             break;
47928           }
47929
47930   ;
47931   return 0;
47932 }
47933 _ACEOF
47934 rm -f conftest.$ac_objext
47935 if { (ac_try="$ac_compile"
47936 case "(($ac_try" in
47937   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
47938   *) ac_try_echo=$ac_try;;
47939 esac
47940 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
47941 $as_echo "$ac_try_echo") >&5
47942   (eval "$ac_compile") 2>conftest.er1
47943   ac_status=$?
47944   grep -v '^ *+' conftest.er1 >conftest.err
47945   rm -f conftest.er1
47946   cat conftest.err >&5
47947   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
47948   (exit $ac_status); } && {
47949          test -z "$ac_c_werror_flag" ||
47950          test ! -s conftest.err
47951        } && test -s conftest.$ac_objext; then
47952   SYSEXITS_H=
47953 else
47954   $as_echo "$as_me: failed program was:" >&5
47955 sed 's/^/| /' conftest.$ac_ext >&5
47956
47957         SYSEXITS_H=sysexits.h
47958 fi
47959
47960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
47961   else
47962     HAVE_SYSEXITS_H=0
47963     SYSEXITS_H=sysexits.h
47964   fi
47965
47966
47967
47968   # Code from module tempname:
47969
47970
47971
47972
47973
47974
47975
47976
47977
47978
47979
47980   gl_LIBOBJS="$gl_LIBOBJS tempname.$ac_objext"
47981
47982
47983   :
47984
47985
47986   # Code from module time:
47987
47988
47989
47990   # Code from module time_r:
47991
47992
47993
47994
47995
47996
47997
47998
47999
48000
48001   if test $ac_cv_have_decl_localtime_r = no; then
48002     HAVE_DECL_LOCALTIME_R=0
48003   fi
48004
48005
48006
48007
48008
48009
48010
48011   if test $ac_cv_func_localtime_r = yes; then
48012     HAVE_LOCALTIME_R=1
48013     { $as_echo "$as_me:$LINENO: checking whether localtime_r is compatible with its POSIX signature" >&5
48014 $as_echo_n "checking whether localtime_r is compatible with its POSIX signature... " >&6; }
48015 if test "${gl_cv_time_r_posix+set}" = set; then
48016   $as_echo_n "(cached) " >&6
48017 else
48018   cat >conftest.$ac_ext <<_ACEOF
48019 /* confdefs.h.  */
48020 _ACEOF
48021 cat confdefs.h >>conftest.$ac_ext
48022 cat >>conftest.$ac_ext <<_ACEOF
48023 /* end confdefs.h.  */
48024 #include <time.h>
48025 int
48026 main ()
48027 {
48028 /* We don't need to append 'restrict's to the argument types,
48029                  even though the POSIX signature has the 'restrict's,
48030                  since C99 says they can't affect type compatibility.  */
48031               struct tm * (*ptr) (time_t const *, struct tm *) = localtime_r;
48032               if (ptr) return 0;
48033               /* Check the return type is a pointer.
48034                  On HP-UX 10 it is 'int'.  */
48035               *localtime_r (0, 0);
48036   ;
48037   return 0;
48038 }
48039
48040 _ACEOF
48041 rm -f conftest.$ac_objext
48042 if { (ac_try="$ac_compile"
48043 case "(($ac_try" in
48044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48045   *) ac_try_echo=$ac_try;;
48046 esac
48047 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48048 $as_echo "$ac_try_echo") >&5
48049   (eval "$ac_compile") 2>conftest.er1
48050   ac_status=$?
48051   grep -v '^ *+' conftest.er1 >conftest.err
48052   rm -f conftest.er1
48053   cat conftest.err >&5
48054   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48055   (exit $ac_status); } && {
48056          test -z "$ac_c_werror_flag" ||
48057          test ! -s conftest.err
48058        } && test -s conftest.$ac_objext; then
48059   gl_cv_time_r_posix=yes
48060 else
48061   $as_echo "$as_me: failed program was:" >&5
48062 sed 's/^/| /' conftest.$ac_ext >&5
48063
48064         gl_cv_time_r_posix=no
48065 fi
48066
48067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48068
48069 fi
48070 { $as_echo "$as_me:$LINENO: result: $gl_cv_time_r_posix" >&5
48071 $as_echo "$gl_cv_time_r_posix" >&6; }
48072     if test $gl_cv_time_r_posix = yes; then
48073       REPLACE_LOCALTIME_R=0
48074     else
48075       REPLACE_LOCALTIME_R=1
48076     fi
48077   else
48078     HAVE_LOCALTIME_R=0
48079   fi
48080   if test $HAVE_LOCALTIME_R = 0 || test $REPLACE_LOCALTIME_R = 1; then
48081
48082
48083
48084
48085
48086
48087
48088
48089   gl_LIBOBJS="$gl_LIBOBJS time_r.$ac_objext"
48090
48091
48092   :
48093
48094   fi
48095
48096
48097
48098
48099   GNULIB_TIME_R=1
48100
48101
48102
48103 cat >>confdefs.h <<\_ACEOF
48104 #define GNULIB_TEST_TIME_R 1
48105 _ACEOF
48106
48107
48108
48109   # Code from module timespec:
48110
48111
48112
48113   # Code from module unistd:
48114
48115
48116
48117
48118
48119
48120
48121
48122
48123
48124
48125
48126
48127
48128
48129
48130
48131
48132      if test $gl_cv_have_include_next = yes; then
48133        gl_cv_next_unistd_h='<'unistd.h'>'
48134      else
48135        { $as_echo "$as_me:$LINENO: checking absolute name of <unistd.h>" >&5
48136 $as_echo_n "checking absolute name of <unistd.h>... " >&6; }
48137 if test "${gl_cv_next_unistd_h+set}" = set; then
48138   $as_echo_n "(cached) " >&6
48139 else
48140
48141              if test $ac_cv_header_unistd_h = yes; then
48142
48143
48144                cat >conftest.$ac_ext <<_ACEOF
48145 /* confdefs.h.  */
48146 _ACEOF
48147 cat confdefs.h >>conftest.$ac_ext
48148 cat >>conftest.$ac_ext <<_ACEOF
48149 /* end confdefs.h.  */
48150 #include <unistd.h>
48151
48152 _ACEOF
48153                                                                                                                         case "$host_os" in
48154                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
48155                  *)    gl_absname_cpp="$ac_cpp" ;;
48156                esac
48157                                                             gl_cv_next_unistd_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
48158                   sed -n '\#/unistd.h#{
48159                     s#.*"\(.*/unistd.h\)".*#\1#
48160                     s#^/[^/]#//&#
48161                     p
48162                     q
48163                   }'`'"'
48164           else
48165                gl_cv_next_unistd_h='<'unistd.h'>'
48166              fi
48167
48168
48169 fi
48170 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_unistd_h" >&5
48171 $as_echo "$gl_cv_next_unistd_h" >&6; }
48172      fi
48173      NEXT_UNISTD_H=$gl_cv_next_unistd_h
48174
48175      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
48176        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
48177        gl_next_as_first_directive='<'unistd.h'>'
48178      else
48179        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
48180        gl_next_as_first_directive=$gl_cv_next_unistd_h
48181      fi
48182      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
48183
48184
48185
48186
48187   if test $ac_cv_header_unistd_h = yes; then
48188     HAVE_UNISTD_H=1
48189   else
48190     HAVE_UNISTD_H=0
48191   fi
48192
48193
48194
48195
48196
48197
48198
48199
48200
48201
48202
48203
48204
48205
48206
48207
48208
48209
48210
48211
48212
48213
48214
48215
48216
48217
48218
48219
48220
48221
48222
48223
48224
48225
48226
48227
48228
48229
48230
48231
48232
48233
48234   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 pipe pipe2 pread pwrite readlink     readlinkat rmdir sleep symlink symlinkat ttyname_r unlink unlinkat     usleep; do
48235     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
48236     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
48237 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
48238 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
48239   $as_echo_n "(cached) " >&6
48240 else
48241   cat >conftest.$ac_ext <<_ACEOF
48242 /* confdefs.h.  */
48243 _ACEOF
48244 cat confdefs.h >>conftest.$ac_ext
48245 cat >>conftest.$ac_ext <<_ACEOF
48246 /* end confdefs.h.  */
48247 #include <unistd.h>
48248 /* Some systems declare various items in the wrong headers.  */
48249 #if !(defined __GLIBC__ && !defined __UCLIBC__)
48250 # include <fcntl.h>
48251 # include <stdio.h>
48252 # include <stdlib.h>
48253 # if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
48254 #  include <io.h>
48255 # endif
48256 #endif
48257
48258 int
48259 main ()
48260 {
48261 #undef $gl_func
48262   (void) $gl_func;
48263   ;
48264   return 0;
48265 }
48266 _ACEOF
48267 rm -f conftest.$ac_objext
48268 if { (ac_try="$ac_compile"
48269 case "(($ac_try" in
48270   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48271   *) ac_try_echo=$ac_try;;
48272 esac
48273 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48274 $as_echo "$ac_try_echo") >&5
48275   (eval "$ac_compile") 2>conftest.er1
48276   ac_status=$?
48277   grep -v '^ *+' conftest.er1 >conftest.err
48278   rm -f conftest.er1
48279   cat conftest.err >&5
48280   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48281   (exit $ac_status); } && {
48282          test -z "$ac_c_werror_flag" ||
48283          test ! -s conftest.err
48284        } && test -s conftest.$ac_objext; then
48285   eval "$as_gl_Symbol=yes"
48286 else
48287   $as_echo "$as_me: failed program was:" >&5
48288 sed 's/^/| /' conftest.$ac_ext >&5
48289
48290         eval "$as_gl_Symbol=no"
48291 fi
48292
48293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48294 fi
48295 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
48296                  $as_echo "$as_val"'`
48297                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48298 $as_echo "$ac_res" >&6; }
48299      as_val=`eval 'as_val=${'$as_gl_Symbol'}
48300                  $as_echo "$as_val"'`
48301    if test "x$as_val" = x""yes; then
48302   cat >>confdefs.h <<_ACEOF
48303 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
48304 _ACEOF
48305
48306                      eval ac_cv_have_decl_$gl_func=yes
48307 fi
48308
48309       done
48310
48311
48312   # Code from module unistd-safer:
48313
48314
48315
48316
48317
48318
48319
48320
48321
48322
48323
48324
48325
48326
48327
48328   gl_LIBOBJS="$gl_LIBOBJS dup-safer.$ac_objext"
48329
48330
48331
48332
48333
48334
48335
48336
48337
48338   gl_LIBOBJS="$gl_LIBOBJS fd-safer.$ac_objext"
48339
48340
48341
48342
48343
48344
48345
48346
48347
48348   gl_LIBOBJS="$gl_LIBOBJS pipe-safer.$ac_objext"
48349
48350
48351   # Code from module unitypes:
48352
48353
48354       if  { test "$HAVE_LIBUNISTRING" != yes \
48355     || {
48356
48357
48358
48359             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
48360             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
48361                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
48362                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
48363                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
48364                          }
48365                     }
48366                }
48367
48368
48369
48370
48371        }
48372   }; then
48373     LIBUNISTRING_UNITYPES_H='unitypes.h'
48374   else
48375     LIBUNISTRING_UNITYPES_H=
48376   fi
48377
48378
48379   # Code from module uniwidth/base:
48380
48381
48382       if  { test "$HAVE_LIBUNISTRING" != yes \
48383     || {
48384
48385
48386
48387             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
48388             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
48389                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
48390                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
48391                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 0
48392                          }
48393                     }
48394                }
48395
48396
48397
48398
48399        }
48400   }; then
48401     LIBUNISTRING_UNIWIDTH_H='uniwidth.h'
48402   else
48403     LIBUNISTRING_UNIWIDTH_H=
48404   fi
48405
48406
48407   # Code from module uniwidth/width:
48408
48409
48410        if  { test "$HAVE_LIBUNISTRING" != yes \
48411     || {
48412
48413
48414
48415             test $LIBUNISTRING_VERSION_MAJOR -lt 0 \
48416             || { test $LIBUNISTRING_VERSION_MAJOR -eq 0 \
48417                  && { test $LIBUNISTRING_VERSION_MINOR -lt 9 \
48418                       || { test $LIBUNISTRING_VERSION_MINOR -eq 9 \
48419                            && test $LIBUNISTRING_VERSION_SUBMINOR -lt 4
48420                          }
48421                     }
48422                }
48423
48424
48425
48426
48427        }
48428   }; then
48429   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE=
48430   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE='#'
48431 else
48432   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE='#'
48433   LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE=
48434 fi
48435
48436
48437   # Code from module unlink:
48438
48439
48440
48441     { $as_echo "$as_me:$LINENO: checking whether unlink honors trailing slashes" >&5
48442 $as_echo_n "checking whether unlink honors trailing slashes... " >&6; }
48443 if test "${gl_cv_func_unlink_honors_slashes+set}" = set; then
48444   $as_echo_n "(cached) " >&6
48445 else
48446   touch conftest.file
48447      # Assume that if we have lstat, we can also check symlinks.
48448      if test $ac_cv_func_lstat = yes; then
48449        ln -s conftest.file conftest.lnk
48450      fi
48451      if test "$cross_compiling" = yes; then
48452   gl_cv_func_unlink_honors_slashes="guessing no"
48453 else
48454   cat >conftest.$ac_ext <<_ACEOF
48455 /* confdefs.h.  */
48456 _ACEOF
48457 cat confdefs.h >>conftest.$ac_ext
48458 cat >>conftest.$ac_ext <<_ACEOF
48459 /* end confdefs.h.  */
48460 #include <unistd.h>
48461            #include <errno.h>
48462
48463 int
48464 main ()
48465 {
48466 int result = 0;
48467            if (!unlink ("conftest.file/"))
48468              result |= 1;
48469            else if (errno != ENOTDIR)
48470              result |= 2;
48471 #if HAVE_LSTAT
48472            if (!unlink ("conftest.lnk/"))
48473              result |= 4;
48474            else if (errno != ENOTDIR)
48475              result |= 8;
48476 #endif
48477            return result;
48478
48479   ;
48480   return 0;
48481 }
48482 _ACEOF
48483 rm -f conftest$ac_exeext
48484 if { (ac_try="$ac_link"
48485 case "(($ac_try" in
48486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48487   *) ac_try_echo=$ac_try;;
48488 esac
48489 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48490 $as_echo "$ac_try_echo") >&5
48491   (eval "$ac_link") 2>&5
48492   ac_status=$?
48493   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48494   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48495   { (case "(($ac_try" in
48496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48497   *) ac_try_echo=$ac_try;;
48498 esac
48499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48500 $as_echo "$ac_try_echo") >&5
48501   (eval "$ac_try") 2>&5
48502   ac_status=$?
48503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48504   (exit $ac_status); }; }; then
48505   gl_cv_func_unlink_honors_slashes=yes
48506 else
48507   $as_echo "$as_me: program exited with status $ac_status" >&5
48508 $as_echo "$as_me: failed program was:" >&5
48509 sed 's/^/| /' conftest.$ac_ext >&5
48510
48511 ( exit $ac_status )
48512 gl_cv_func_unlink_honors_slashes=no
48513 fi
48514 rm -rf conftest.dSYM
48515 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48516 fi
48517
48518
48519      rm -f conftest.file conftest.lnk
48520 fi
48521 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_honors_slashes" >&5
48522 $as_echo "$gl_cv_func_unlink_honors_slashes" >&6; }
48523       { $as_echo "$as_me:$LINENO: checking whether unlink of a parent directory fails as it should" >&5
48524 $as_echo_n "checking whether unlink of a parent directory fails as it should... " >&6; }
48525 if test "${gl_cv_func_unlink_parent_fails+set}" = set; then
48526   $as_echo_n "(cached) " >&6
48527 else
48528   case "$host_os" in
48529        darwin*)
48530                                                       if {
48531               # Use the mktemp program if available. If not available, hide the error
48532               # message.
48533               tmp=`(umask 077 && mktemp -d /tmp/gtXXXXXX) 2>/dev/null` &&
48534               test -n "$tmp" && test -d "$tmp"
48535             } ||
48536             {
48537               # Use a simple mkdir command. It is guaranteed to fail if the directory
48538               # already exists.  $RANDOM is bash specific and expands to empty in shells
48539               # other than bash, ksh and zsh.  Its use does not increase security;
48540               # rather, it minimizes the probability of failure in a very cluttered /tmp
48541               # directory.
48542               tmp=/tmp/gt$$-$RANDOM
48543               (umask 077 && mkdir "$tmp")
48544             }; then
48545            mkdir "$tmp/subdir"
48546            GL_SUBDIR_FOR_UNLINK="$tmp/subdir"
48547            export GL_SUBDIR_FOR_UNLINK
48548            if test "$cross_compiling" = yes; then
48549   gl_cv_func_unlink_parent_fails="guessing no"
48550 else
48551   cat >conftest.$ac_ext <<_ACEOF
48552 /* confdefs.h.  */
48553 _ACEOF
48554 cat confdefs.h >>conftest.$ac_ext
48555 cat >>conftest.$ac_ext <<_ACEOF
48556 /* end confdefs.h.  */
48557
48558                 #include <stdlib.h>
48559                 #include <unistd.h>
48560                 int main ()
48561                 {
48562                   int result = 0;
48563                   if (chdir (getenv ("GL_SUBDIR_FOR_UNLINK")) != 0)
48564                     result |= 1;
48565                   else if (unlink ("..") == 0)
48566                     result |= 2;
48567                   return result;
48568                 }
48569
48570 _ACEOF
48571 rm -f conftest$ac_exeext
48572 if { (ac_try="$ac_link"
48573 case "(($ac_try" in
48574   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48575   *) ac_try_echo=$ac_try;;
48576 esac
48577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48578 $as_echo "$ac_try_echo") >&5
48579   (eval "$ac_link") 2>&5
48580   ac_status=$?
48581   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48582   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
48583   { (case "(($ac_try" in
48584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48585   *) ac_try_echo=$ac_try;;
48586 esac
48587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48588 $as_echo "$ac_try_echo") >&5
48589   (eval "$ac_try") 2>&5
48590   ac_status=$?
48591   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48592   (exit $ac_status); }; }; then
48593   gl_cv_func_unlink_parent_fails=yes
48594 else
48595   $as_echo "$as_me: program exited with status $ac_status" >&5
48596 $as_echo "$as_me: failed program was:" >&5
48597 sed 's/^/| /' conftest.$ac_ext >&5
48598
48599 ( exit $ac_status )
48600 gl_cv_func_unlink_parent_fails=no
48601 fi
48602 rm -rf conftest.dSYM
48603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
48604 fi
48605
48606
48607            unset GL_SUBDIR_FOR_UNLINK
48608            rm -rf "$tmp"
48609          else
48610            gl_cv_func_unlink_parent_fails="guessing no"
48611          fi
48612          ;;
48613        *)
48614          gl_cv_func_unlink_parent_fails="guessing yes"
48615          ;;
48616      esac
48617
48618 fi
48619 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unlink_parent_fails" >&5
48620 $as_echo "$gl_cv_func_unlink_parent_fails" >&6; }
48621   case "$gl_cv_func_unlink_parent_fails" in
48622     *no)
48623
48624 cat >>confdefs.h <<\_ACEOF
48625 #define UNLINK_PARENT_BUG 1
48626 _ACEOF
48627
48628       ;;
48629   esac
48630   if test "$gl_cv_func_unlink_honors_slashes" != yes \
48631      || { case "$gl_cv_func_unlink_parent_fails" in
48632             *yes) false;;
48633             *no) true;;
48634           esac
48635         }; then
48636     REPLACE_UNLINK=1
48637
48638
48639
48640
48641
48642
48643
48644
48645   gl_LIBOBJS="$gl_LIBOBJS unlink.$ac_objext"
48646
48647   fi
48648
48649
48650
48651
48652   GNULIB_UNLINK=1
48653
48654
48655
48656 cat >>confdefs.h <<\_ACEOF
48657 #define GNULIB_TEST_UNLINK 1
48658 _ACEOF
48659
48660
48661
48662   # Code from module unlinkdir:
48663
48664
48665
48666
48667
48668
48669
48670
48671
48672
48673
48674
48675
48676
48677
48678
48679
48680   gl_LIBOBJS="$gl_LIBOBJS unlinkdir.$ac_objext"
48681
48682
48683   # The Hurd, the Linux kernel, the FreeBSD kernel version 2.2 and later,
48684   # Cygwin, and mingw never let anyone (even root) unlink directories.
48685   # If anyone knows of another system for which unlink can never
48686   # remove a directory, please report it to <bug-coreutils@gnu.org>.
48687   # Unfortunately this is difficult to test for, since it requires root access
48688   # and might create garbage in the file system,
48689   # so the code below simply relies on the kernel name and version number.
48690   case $host_os in
48691   gnu[0-9]* | \
48692   linux-* | linux | \
48693   freebsd2.2* | freebsd[3-9]* | freebsd[1-9][0-9]* | \
48694   cygwin | \
48695   mingw*)
48696
48697 cat >>confdefs.h <<\_ACEOF
48698 #define UNLINK_CANNOT_UNLINK_DIR 1
48699 _ACEOF
48700 ;;
48701   esac
48702
48703   # Code from module unlocked-io:
48704
48705
48706 cat >>confdefs.h <<\_ACEOF
48707 #define USE_UNLOCKED_IO 1
48708 _ACEOF
48709
48710
48711
48712
48713
48714
48715
48716
48717
48718
48719
48720
48721
48722
48723
48724
48725
48726
48727
48728
48729
48730
48731
48732
48733
48734
48735
48736
48737
48738
48739
48740
48741
48742
48743
48744
48745
48746
48747
48748
48749
48750
48751
48752
48753
48754
48755
48756
48757
48758
48759
48760
48761
48762
48763
48764
48765
48766   # Code from module unsetenv:
48767
48768
48769
48770
48771
48772
48773   if test $ac_cv_have_decl_unsetenv = no; then
48774     HAVE_DECL_UNSETENV=0
48775   fi
48776
48777 for ac_func in unsetenv
48778 do
48779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
48780 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
48781 $as_echo_n "checking for $ac_func... " >&6; }
48782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
48783   $as_echo_n "(cached) " >&6
48784 else
48785   cat >conftest.$ac_ext <<_ACEOF
48786 /* confdefs.h.  */
48787 _ACEOF
48788 cat confdefs.h >>conftest.$ac_ext
48789 cat >>conftest.$ac_ext <<_ACEOF
48790 /* end confdefs.h.  */
48791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
48792    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
48793 #define $ac_func innocuous_$ac_func
48794
48795 /* System header to define __stub macros and hopefully few prototypes,
48796     which can conflict with char $ac_func (); below.
48797     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
48798     <limits.h> exists even on freestanding compilers.  */
48799
48800 #ifdef __STDC__
48801 # include <limits.h>
48802 #else
48803 # include <assert.h>
48804 #endif
48805
48806 #undef $ac_func
48807
48808 /* Override any GCC internal prototype to avoid an error.
48809    Use char because int might match the return type of a GCC
48810    builtin and then its argument prototype would still apply.  */
48811 #ifdef __cplusplus
48812 extern "C"
48813 #endif
48814 char $ac_func ();
48815 /* The GNU C library defines this for functions which it implements
48816     to always fail with ENOSYS.  Some functions are actually named
48817     something starting with __ and the normal name is an alias.  */
48818 #if defined __stub_$ac_func || defined __stub___$ac_func
48819 choke me
48820 #endif
48821
48822 int
48823 main ()
48824 {
48825 return $ac_func ();
48826   ;
48827   return 0;
48828 }
48829 _ACEOF
48830 rm -f conftest.$ac_objext conftest$ac_exeext
48831 if { (ac_try="$ac_link"
48832 case "(($ac_try" in
48833   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48834   *) ac_try_echo=$ac_try;;
48835 esac
48836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48837 $as_echo "$ac_try_echo") >&5
48838   (eval "$ac_link") 2>conftest.er1
48839   ac_status=$?
48840   grep -v '^ *+' conftest.er1 >conftest.err
48841   rm -f conftest.er1
48842   cat conftest.err >&5
48843   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48844   (exit $ac_status); } && {
48845          test -z "$ac_c_werror_flag" ||
48846          test ! -s conftest.err
48847        } && test -s conftest$ac_exeext && {
48848          test "$cross_compiling" = yes ||
48849          $as_test_x conftest$ac_exeext
48850        }; then
48851   eval "$as_ac_var=yes"
48852 else
48853   $as_echo "$as_me: failed program was:" >&5
48854 sed 's/^/| /' conftest.$ac_ext >&5
48855
48856         eval "$as_ac_var=no"
48857 fi
48858
48859 rm -rf conftest.dSYM
48860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
48861       conftest$ac_exeext conftest.$ac_ext
48862 fi
48863 ac_res=`eval 'as_val=${'$as_ac_var'}
48864                  $as_echo "$as_val"'`
48865                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
48866 $as_echo "$ac_res" >&6; }
48867 as_val=`eval 'as_val=${'$as_ac_var'}
48868                  $as_echo "$as_val"'`
48869    if test "x$as_val" = x""yes; then
48870   cat >>confdefs.h <<_ACEOF
48871 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
48872 _ACEOF
48873
48874 fi
48875 done
48876
48877   if test $ac_cv_func_unsetenv = no; then
48878
48879
48880
48881
48882
48883
48884
48885
48886   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
48887
48888
48889
48890
48891
48892
48893
48894
48895
48896
48897   else
48898         { $as_echo "$as_me:$LINENO: checking for unsetenv() return type" >&5
48899 $as_echo_n "checking for unsetenv() return type... " >&6; }
48900 if test "${gt_cv_func_unsetenv_ret+set}" = set; then
48901   $as_echo_n "(cached) " >&6
48902 else
48903   cat >conftest.$ac_ext <<_ACEOF
48904 /* confdefs.h.  */
48905 _ACEOF
48906 cat confdefs.h >>conftest.$ac_ext
48907 cat >>conftest.$ac_ext <<_ACEOF
48908 /* end confdefs.h.  */
48909
48910 #undef _BSD
48911 #define _BSD 1 /* unhide unsetenv declaration in OSF/1 5.1 <stdlib.h> */
48912 #include <stdlib.h>
48913 extern
48914 #ifdef __cplusplus
48915 "C"
48916 #endif
48917 #if defined(__STDC__) || defined(__cplusplus)
48918 int unsetenv (const char *name);
48919 #else
48920 int unsetenv();
48921 #endif
48922
48923 int
48924 main ()
48925 {
48926
48927   ;
48928   return 0;
48929 }
48930 _ACEOF
48931 rm -f conftest.$ac_objext
48932 if { (ac_try="$ac_compile"
48933 case "(($ac_try" in
48934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
48935   *) ac_try_echo=$ac_try;;
48936 esac
48937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
48938 $as_echo "$ac_try_echo") >&5
48939   (eval "$ac_compile") 2>conftest.er1
48940   ac_status=$?
48941   grep -v '^ *+' conftest.er1 >conftest.err
48942   rm -f conftest.er1
48943   cat conftest.err >&5
48944   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
48945   (exit $ac_status); } && {
48946          test -z "$ac_c_werror_flag" ||
48947          test ! -s conftest.err
48948        } && test -s conftest.$ac_objext; then
48949   gt_cv_func_unsetenv_ret='int'
48950 else
48951   $as_echo "$as_me: failed program was:" >&5
48952 sed 's/^/| /' conftest.$ac_ext >&5
48953
48954         gt_cv_func_unsetenv_ret='void'
48955 fi
48956
48957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
48958 fi
48959 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_unsetenv_ret" >&5
48960 $as_echo "$gt_cv_func_unsetenv_ret" >&6; }
48961     if test $gt_cv_func_unsetenv_ret = 'void'; then
48962
48963 cat >>confdefs.h <<\_ACEOF
48964 #define VOID_UNSETENV 1
48965 _ACEOF
48966
48967       REPLACE_UNSETENV=1
48968
48969
48970
48971
48972
48973
48974
48975
48976   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
48977
48978     fi
48979
48980                 { $as_echo "$as_me:$LINENO: checking whether unsetenv obeys POSIX" >&5
48981 $as_echo_n "checking whether unsetenv obeys POSIX... " >&6; }
48982 if test "${gl_cv_func_unsetenv_works+set}" = set; then
48983   $as_echo_n "(cached) " >&6
48984 else
48985   if test "$cross_compiling" = yes; then
48986   gl_cv_func_unsetenv_works="guessing no"
48987 else
48988   cat >conftest.$ac_ext <<_ACEOF
48989 /* confdefs.h.  */
48990 _ACEOF
48991 cat confdefs.h >>conftest.$ac_ext
48992 cat >>conftest.$ac_ext <<_ACEOF
48993 /* end confdefs.h.  */
48994
48995        #include <stdlib.h>
48996        #include <errno.h>
48997        extern char **environ;
48998
48999 int
49000 main ()
49001 {
49002
49003        char entry1[] = "a=1";
49004        char entry2[] = "b=2";
49005        char *env[] = { entry1, entry2, NULL };
49006        if (putenv ((char *) "a=1")) return 1;
49007        if (putenv (entry2)) return 2;
49008        entry2[0] = 'a';
49009        unsetenv ("a");
49010        if (getenv ("a")) return 3;
49011        if (!unsetenv ("") || errno != EINVAL) return 4;
49012        entry2[0] = 'b';
49013        environ = env;
49014        if (!getenv ("a")) return 5;
49015        entry2[0] = 'a';
49016        unsetenv ("a");
49017        if (getenv ("a")) return 6;
49018
49019   ;
49020   return 0;
49021 }
49022 _ACEOF
49023 rm -f conftest$ac_exeext
49024 if { (ac_try="$ac_link"
49025 case "(($ac_try" in
49026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49027   *) ac_try_echo=$ac_try;;
49028 esac
49029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49030 $as_echo "$ac_try_echo") >&5
49031   (eval "$ac_link") 2>&5
49032   ac_status=$?
49033   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49034   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49035   { (case "(($ac_try" in
49036   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49037   *) ac_try_echo=$ac_try;;
49038 esac
49039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49040 $as_echo "$ac_try_echo") >&5
49041   (eval "$ac_try") 2>&5
49042   ac_status=$?
49043   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49044   (exit $ac_status); }; }; then
49045   gl_cv_func_unsetenv_works=yes
49046 else
49047   $as_echo "$as_me: program exited with status $ac_status" >&5
49048 $as_echo "$as_me: failed program was:" >&5
49049 sed 's/^/| /' conftest.$ac_ext >&5
49050
49051 ( exit $ac_status )
49052 gl_cv_func_unsetenv_works=no
49053 fi
49054 rm -rf conftest.dSYM
49055 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49056 fi
49057
49058
49059 fi
49060 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_unsetenv_works" >&5
49061 $as_echo "$gl_cv_func_unsetenv_works" >&6; }
49062     if test "$gl_cv_func_unsetenv_works" != yes; then
49063       REPLACE_UNSETENV=1
49064
49065
49066
49067
49068
49069
49070
49071
49072   gl_LIBOBJS="$gl_LIBOBJS unsetenv.$ac_objext"
49073
49074     fi
49075   fi
49076
49077
49078
49079
49080   GNULIB_UNSETENV=1
49081
49082
49083
49084 cat >>confdefs.h <<\_ACEOF
49085 #define GNULIB_TEST_UNSETENV 1
49086 _ACEOF
49087
49088
49089
49090   # Code from module utimens:
49091
49092
49093
49094
49095
49096
49097
49098
49099
49100   gl_LIBOBJS="$gl_LIBOBJS utimens.$ac_objext"
49101
49102
49103
49104
49105
49106
49107
49108
49109
49110
49111
49112
49113
49114
49115
49116
49117
49118
49119
49120
49121   if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
49122                 { $as_echo "$as_me:$LINENO: checking whether futimesat handles NULL file" >&5
49123 $as_echo_n "checking whether futimesat handles NULL file... " >&6; }
49124 if test "${gl_cv_func_futimesat_works+set}" = set; then
49125   $as_echo_n "(cached) " >&6
49126 else
49127   touch conftest.file
49128        if test "$cross_compiling" = yes; then
49129   gl_cv_func_futimesat_works="guessing no"
49130 else
49131   cat >conftest.$ac_ext <<_ACEOF
49132 /* confdefs.h.  */
49133 _ACEOF
49134 cat confdefs.h >>conftest.$ac_ext
49135 cat >>conftest.$ac_ext <<_ACEOF
49136 /* end confdefs.h.  */
49137
49138 #include <stddef.h>
49139 #include <sys/times.h>
49140 #include <fcntl.h>
49141
49142 int
49143 main ()
49144 {
49145     int fd = open ("conftest.file", O_RDWR);
49146           if (fd < 0) return 1;
49147           if (futimesat (fd, NULL, NULL)) return 2;
49148
49149   ;
49150   return 0;
49151 }
49152 _ACEOF
49153 rm -f conftest$ac_exeext
49154 if { (ac_try="$ac_link"
49155 case "(($ac_try" in
49156   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49157   *) ac_try_echo=$ac_try;;
49158 esac
49159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49160 $as_echo "$ac_try_echo") >&5
49161   (eval "$ac_link") 2>&5
49162   ac_status=$?
49163   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49165   { (case "(($ac_try" in
49166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49167   *) ac_try_echo=$ac_try;;
49168 esac
49169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49170 $as_echo "$ac_try_echo") >&5
49171   (eval "$ac_try") 2>&5
49172   ac_status=$?
49173   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49174   (exit $ac_status); }; }; then
49175   gl_cv_func_futimesat_works=yes
49176 else
49177   $as_echo "$as_me: program exited with status $ac_status" >&5
49178 $as_echo "$as_me: failed program was:" >&5
49179 sed 's/^/| /' conftest.$ac_ext >&5
49180
49181 ( exit $ac_status )
49182 gl_cv_func_futimesat_works=no
49183 fi
49184 rm -rf conftest.dSYM
49185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49186 fi
49187
49188
49189       rm -f conftest.file
49190 fi
49191 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_futimesat_works" >&5
49192 $as_echo "$gl_cv_func_futimesat_works" >&6; }
49193     if test "$gl_cv_func_futimesat_works" != yes; then
49194
49195 cat >>confdefs.h <<\_ACEOF
49196 #define FUTIMESAT_NULL_BUG 1
49197 _ACEOF
49198
49199     fi
49200   fi
49201
49202   # Code from module utimensat:
49203
49204
49205
49206
49207
49208
49209
49210
49211
49212   if test $ac_cv_func_utimensat = no; then
49213     HAVE_UTIMENSAT=0
49214
49215
49216
49217
49218
49219
49220
49221
49222   gl_LIBOBJS="$gl_LIBOBJS utimensat.$ac_objext"
49223
49224   else
49225     { $as_echo "$as_me:$LINENO: checking whether utimensat works" >&5
49226 $as_echo_n "checking whether utimensat works... " >&6; }
49227 if test "${gl_cv_func_utimensat_works+set}" = set; then
49228   $as_echo_n "(cached) " >&6
49229 else
49230   if test "$cross_compiling" = yes; then
49231   gl_cv_func_utimensat_works="guessing no"
49232 else
49233   cat >conftest.$ac_ext <<_ACEOF
49234 /* confdefs.h.  */
49235 _ACEOF
49236 cat confdefs.h >>conftest.$ac_ext
49237 cat >>conftest.$ac_ext <<_ACEOF
49238 /* end confdefs.h.  */
49239
49240 #include <fcntl.h>
49241 #include <sys/stat.h>
49242 #include <unistd.h>
49243
49244 int
49245 main ()
49246 {
49247 int result = 0;
49248               const char *f = "conftest.file";
49249               if (close (creat (f, 0600)))
49250                 return 1;
49251               /* Test whether the AT_SYMLINK_NOFOLLOW flag is supported.  */
49252               {
49253                 if (utimensat (AT_FDCWD, f, NULL, AT_SYMLINK_NOFOLLOW))
49254                   result |= 2;
49255               }
49256               /* Test whether UTIME_NOW and UTIME_OMIT work.  */
49257               {
49258                 struct timespec ts[2] = { { 1, UTIME_OMIT }, { 1, UTIME_NOW } };
49259                 if (utimensat (AT_FDCWD, f, ts, 0))
49260                   result |= 4;
49261               }
49262               sleep (1);
49263               {
49264                 struct timespec ts[2] = { { 1, UTIME_NOW }, { 1, UTIME_OMIT } };
49265                 struct stat st;
49266                 if (utimensat (AT_FDCWD, f, ts, 0))
49267                   result |= 8;
49268                 if (stat (f, &st))
49269                   result |= 16;
49270                 else if (st.st_ctime < st.st_atime)
49271                   result |= 32;
49272               }
49273               return result;
49274
49275   ;
49276   return 0;
49277 }
49278 _ACEOF
49279 rm -f conftest$ac_exeext
49280 if { (ac_try="$ac_link"
49281 case "(($ac_try" in
49282   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49283   *) ac_try_echo=$ac_try;;
49284 esac
49285 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49286 $as_echo "$ac_try_echo") >&5
49287   (eval "$ac_link") 2>&5
49288   ac_status=$?
49289   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49290   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49291   { (case "(($ac_try" in
49292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49293   *) ac_try_echo=$ac_try;;
49294 esac
49295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49296 $as_echo "$ac_try_echo") >&5
49297   (eval "$ac_try") 2>&5
49298   ac_status=$?
49299   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49300   (exit $ac_status); }; }; then
49301            cat >conftest.$ac_ext <<_ACEOF
49302 /* confdefs.h.  */
49303 _ACEOF
49304 cat confdefs.h >>conftest.$ac_ext
49305 cat >>conftest.$ac_ext <<_ACEOF
49306 /* end confdefs.h.  */
49307
49308 #ifdef __linux__
49309 /* The Linux kernel added utimensat in 2.6.22, but has bugs with UTIME_OMIT
49310    in several file systems as recently as 2.6.32.  Always replace utimensat
49311    to support older kernels.  */
49312 choke me
49313 #endif
49314
49315 int
49316 main ()
49317 {
49318
49319   ;
49320   return 0;
49321 }
49322 _ACEOF
49323 rm -f conftest.$ac_objext
49324 if { (ac_try="$ac_compile"
49325 case "(($ac_try" in
49326   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49327   *) ac_try_echo=$ac_try;;
49328 esac
49329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49330 $as_echo "$ac_try_echo") >&5
49331   (eval "$ac_compile") 2>conftest.er1
49332   ac_status=$?
49333   grep -v '^ *+' conftest.er1 >conftest.err
49334   rm -f conftest.er1
49335   cat conftest.err >&5
49336   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49337   (exit $ac_status); } && {
49338          test -z "$ac_c_werror_flag" ||
49339          test ! -s conftest.err
49340        } && test -s conftest.$ac_objext; then
49341   gl_cv_func_utimensat_works=yes
49342 else
49343   $as_echo "$as_me: failed program was:" >&5
49344 sed 's/^/| /' conftest.$ac_ext >&5
49345
49346         gl_cv_func_utimensat_works="needs runtime check"
49347 fi
49348
49349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49350 else
49351   $as_echo "$as_me: program exited with status $ac_status" >&5
49352 $as_echo "$as_me: failed program was:" >&5
49353 sed 's/^/| /' conftest.$ac_ext >&5
49354
49355 ( exit $ac_status )
49356 gl_cv_func_utimensat_works=no
49357 fi
49358 rm -rf conftest.dSYM
49359 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49360 fi
49361
49362
49363 fi
49364 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_utimensat_works" >&5
49365 $as_echo "$gl_cv_func_utimensat_works" >&6; }
49366     if test "$gl_cv_func_utimensat_works" != yes; then
49367       REPLACE_UTIMENSAT=1
49368
49369
49370
49371
49372
49373
49374
49375
49376   gl_LIBOBJS="$gl_LIBOBJS utimensat.$ac_objext"
49377
49378     fi
49379   fi
49380
49381
49382
49383
49384   GNULIB_UTIMENSAT=1
49385
49386
49387
49388 cat >>confdefs.h <<\_ACEOF
49389 #define GNULIB_TEST_UTIMENSAT 1
49390 _ACEOF
49391
49392
49393
49394   # Code from module vasnprintf:
49395
49396
49397
49398
49399
49400
49401
49402   if test $ac_cv_func_vasnprintf = no; then
49403
49404
49405
49406
49407
49408
49409
49410
49411
49412
49413
49414
49415
49416
49417
49418   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
49419
49420
49421
49422
49423
49424
49425
49426
49427
49428   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
49429
49430
49431
49432
49433
49434
49435
49436
49437
49438   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
49439
49440
49441
49442
49443
49444
49445
49446
49447
49448   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
49449
49450   if test $ac_cv_func_vasnprintf = yes; then
49451
49452 cat >>confdefs.h <<\_ACEOF
49453 #define REPLACE_VASNPRINTF 1
49454 _ACEOF
49455
49456   fi
49457
49458
49459
49460
49461
49462
49463
49464
49465
49466
49467
49468   { $as_echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
49469 $as_echo_n "checking for ptrdiff_t... " >&6; }
49470 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
49471   $as_echo_n "(cached) " >&6
49472 else
49473   ac_cv_type_ptrdiff_t=no
49474 cat >conftest.$ac_ext <<_ACEOF
49475 /* confdefs.h.  */
49476 _ACEOF
49477 cat confdefs.h >>conftest.$ac_ext
49478 cat >>conftest.$ac_ext <<_ACEOF
49479 /* end confdefs.h.  */
49480 $ac_includes_default
49481 int
49482 main ()
49483 {
49484 if (sizeof (ptrdiff_t))
49485        return 0;
49486   ;
49487   return 0;
49488 }
49489 _ACEOF
49490 rm -f conftest.$ac_objext
49491 if { (ac_try="$ac_compile"
49492 case "(($ac_try" in
49493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49494   *) ac_try_echo=$ac_try;;
49495 esac
49496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49497 $as_echo "$ac_try_echo") >&5
49498   (eval "$ac_compile") 2>conftest.er1
49499   ac_status=$?
49500   grep -v '^ *+' conftest.er1 >conftest.err
49501   rm -f conftest.er1
49502   cat conftest.err >&5
49503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49504   (exit $ac_status); } && {
49505          test -z "$ac_c_werror_flag" ||
49506          test ! -s conftest.err
49507        } && test -s conftest.$ac_objext; then
49508   cat >conftest.$ac_ext <<_ACEOF
49509 /* confdefs.h.  */
49510 _ACEOF
49511 cat confdefs.h >>conftest.$ac_ext
49512 cat >>conftest.$ac_ext <<_ACEOF
49513 /* end confdefs.h.  */
49514 $ac_includes_default
49515 int
49516 main ()
49517 {
49518 if (sizeof ((ptrdiff_t)))
49519           return 0;
49520   ;
49521   return 0;
49522 }
49523 _ACEOF
49524 rm -f conftest.$ac_objext
49525 if { (ac_try="$ac_compile"
49526 case "(($ac_try" in
49527   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49528   *) ac_try_echo=$ac_try;;
49529 esac
49530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49531 $as_echo "$ac_try_echo") >&5
49532   (eval "$ac_compile") 2>conftest.er1
49533   ac_status=$?
49534   grep -v '^ *+' conftest.er1 >conftest.err
49535   rm -f conftest.er1
49536   cat conftest.err >&5
49537   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49538   (exit $ac_status); } && {
49539          test -z "$ac_c_werror_flag" ||
49540          test ! -s conftest.err
49541        } && test -s conftest.$ac_objext; then
49542   :
49543 else
49544   $as_echo "$as_me: failed program was:" >&5
49545 sed 's/^/| /' conftest.$ac_ext >&5
49546
49547         ac_cv_type_ptrdiff_t=yes
49548 fi
49549
49550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49551 else
49552   $as_echo "$as_me: failed program was:" >&5
49553 sed 's/^/| /' conftest.$ac_ext >&5
49554
49555
49556 fi
49557
49558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
49559 fi
49560 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
49561 $as_echo "$ac_cv_type_ptrdiff_t" >&6; }
49562 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then
49563   :
49564 else
49565
49566 cat >>confdefs.h <<\_ACEOF
49567 #define ptrdiff_t long
49568 _ACEOF
49569
49570
49571 fi
49572
49573
49574
49575
49576
49577
49578
49579   fi
49580
49581   # Code from module vasprintf:
49582
49583
49584 for ac_func in vasprintf
49585 do
49586 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49587 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49588 $as_echo_n "checking for $ac_func... " >&6; }
49589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49590   $as_echo_n "(cached) " >&6
49591 else
49592   cat >conftest.$ac_ext <<_ACEOF
49593 /* confdefs.h.  */
49594 _ACEOF
49595 cat confdefs.h >>conftest.$ac_ext
49596 cat >>conftest.$ac_ext <<_ACEOF
49597 /* end confdefs.h.  */
49598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49599    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49600 #define $ac_func innocuous_$ac_func
49601
49602 /* System header to define __stub macros and hopefully few prototypes,
49603     which can conflict with char $ac_func (); below.
49604     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49605     <limits.h> exists even on freestanding compilers.  */
49606
49607 #ifdef __STDC__
49608 # include <limits.h>
49609 #else
49610 # include <assert.h>
49611 #endif
49612
49613 #undef $ac_func
49614
49615 /* Override any GCC internal prototype to avoid an error.
49616    Use char because int might match the return type of a GCC
49617    builtin and then its argument prototype would still apply.  */
49618 #ifdef __cplusplus
49619 extern "C"
49620 #endif
49621 char $ac_func ();
49622 /* The GNU C library defines this for functions which it implements
49623     to always fail with ENOSYS.  Some functions are actually named
49624     something starting with __ and the normal name is an alias.  */
49625 #if defined __stub_$ac_func || defined __stub___$ac_func
49626 choke me
49627 #endif
49628
49629 int
49630 main ()
49631 {
49632 return $ac_func ();
49633   ;
49634   return 0;
49635 }
49636 _ACEOF
49637 rm -f conftest.$ac_objext conftest$ac_exeext
49638 if { (ac_try="$ac_link"
49639 case "(($ac_try" in
49640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49641   *) ac_try_echo=$ac_try;;
49642 esac
49643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49644 $as_echo "$ac_try_echo") >&5
49645   (eval "$ac_link") 2>conftest.er1
49646   ac_status=$?
49647   grep -v '^ *+' conftest.er1 >conftest.err
49648   rm -f conftest.er1
49649   cat conftest.err >&5
49650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49651   (exit $ac_status); } && {
49652          test -z "$ac_c_werror_flag" ||
49653          test ! -s conftest.err
49654        } && test -s conftest$ac_exeext && {
49655          test "$cross_compiling" = yes ||
49656          $as_test_x conftest$ac_exeext
49657        }; then
49658   eval "$as_ac_var=yes"
49659 else
49660   $as_echo "$as_me: failed program was:" >&5
49661 sed 's/^/| /' conftest.$ac_ext >&5
49662
49663         eval "$as_ac_var=no"
49664 fi
49665
49666 rm -rf conftest.dSYM
49667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49668       conftest$ac_exeext conftest.$ac_ext
49669 fi
49670 ac_res=`eval 'as_val=${'$as_ac_var'}
49671                  $as_echo "$as_val"'`
49672                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49673 $as_echo "$ac_res" >&6; }
49674 as_val=`eval 'as_val=${'$as_ac_var'}
49675                  $as_echo "$as_val"'`
49676    if test "x$as_val" = x""yes; then
49677   cat >>confdefs.h <<_ACEOF
49678 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49679 _ACEOF
49680
49681 fi
49682 done
49683
49684   if test $ac_cv_func_vasprintf = no; then
49685
49686
49687
49688
49689
49690
49691
49692
49693
49694   gl_LIBOBJS="$gl_LIBOBJS vasprintf.$ac_objext"
49695
49696
49697
49698
49699
49700
49701
49702
49703
49704   gl_LIBOBJS="$gl_LIBOBJS asprintf.$ac_objext"
49705
49706
49707   if test $ac_cv_func_vasprintf = yes; then
49708     REPLACE_VASPRINTF=1
49709   else
49710     HAVE_VASPRINTF=0
49711   fi
49712
49713
49714
49715
49716
49717
49718
49719
49720   fi
49721
49722
49723
49724
49725   GNULIB_VASPRINTF=1
49726
49727
49728
49729 cat >>confdefs.h <<\_ACEOF
49730 #define GNULIB_TEST_VASPRINTF 1
49731 _ACEOF
49732
49733
49734
49735
49736
49737   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=asprintf:2:c-format"
49738
49739
49740
49741   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=vasprintf:2:c-format"
49742
49743   # Code from module verify:
49744   # Code from module version-etc:
49745
49746 # Check whether --with-packager was given.
49747 if test "${with_packager+set}" = set; then
49748   withval=$with_packager;       case $withval in
49749         yes|no) ;;
49750         *)
49751 cat >>confdefs.h <<_ACEOF
49752 #define PACKAGE_PACKAGER "$withval"
49753 _ACEOF
49754  ;;
49755       esac
49756
49757 fi
49758
49759
49760
49761 # Check whether --with-packager-version was given.
49762 if test "${with_packager_version+set}" = set; then
49763   withval=$with_packager_version;       case $withval in
49764         yes|no) ;;
49765         *)
49766 cat >>confdefs.h <<_ACEOF
49767 #define PACKAGE_PACKAGER_VERSION "$withval"
49768 _ACEOF
49769  ;;
49770       esac
49771
49772 fi
49773
49774
49775
49776 # Check whether --with-packager-bug-reports was given.
49777 if test "${with_packager_bug_reports+set}" = set; then
49778   withval=$with_packager_bug_reports;       case $withval in
49779         yes|no) ;;
49780         *)
49781 cat >>confdefs.h <<_ACEOF
49782 #define PACKAGE_PACKAGER_BUG_REPORTS "$withval"
49783 _ACEOF
49784  ;;
49785       esac
49786
49787 fi
49788
49789
49790   if test "X$with_packager" = "X" && \
49791      test "X$with_packager_version$with_packager_bug_reports" != "X"
49792   then
49793     { { $as_echo "$as_me:$LINENO: error: The --with-packager-{bug-reports,version} options require --with-packager" >&5
49794 $as_echo "$as_me: error: The --with-packager-{bug-reports,version} options require --with-packager" >&2;}
49795    { (exit 1); exit 1; }; }
49796   fi
49797
49798   # Code from module version-etc-fsf:
49799   # Code from module vsnprintf:
49800
49801
49802   gl_cv_func_vsnprintf_usable=no
49803
49804 for ac_func in vsnprintf
49805 do
49806 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
49807 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
49808 $as_echo_n "checking for $ac_func... " >&6; }
49809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
49810   $as_echo_n "(cached) " >&6
49811 else
49812   cat >conftest.$ac_ext <<_ACEOF
49813 /* confdefs.h.  */
49814 _ACEOF
49815 cat confdefs.h >>conftest.$ac_ext
49816 cat >>conftest.$ac_ext <<_ACEOF
49817 /* end confdefs.h.  */
49818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
49819    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
49820 #define $ac_func innocuous_$ac_func
49821
49822 /* System header to define __stub macros and hopefully few prototypes,
49823     which can conflict with char $ac_func (); below.
49824     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
49825     <limits.h> exists even on freestanding compilers.  */
49826
49827 #ifdef __STDC__
49828 # include <limits.h>
49829 #else
49830 # include <assert.h>
49831 #endif
49832
49833 #undef $ac_func
49834
49835 /* Override any GCC internal prototype to avoid an error.
49836    Use char because int might match the return type of a GCC
49837    builtin and then its argument prototype would still apply.  */
49838 #ifdef __cplusplus
49839 extern "C"
49840 #endif
49841 char $ac_func ();
49842 /* The GNU C library defines this for functions which it implements
49843     to always fail with ENOSYS.  Some functions are actually named
49844     something starting with __ and the normal name is an alias.  */
49845 #if defined __stub_$ac_func || defined __stub___$ac_func
49846 choke me
49847 #endif
49848
49849 int
49850 main ()
49851 {
49852 return $ac_func ();
49853   ;
49854   return 0;
49855 }
49856 _ACEOF
49857 rm -f conftest.$ac_objext conftest$ac_exeext
49858 if { (ac_try="$ac_link"
49859 case "(($ac_try" in
49860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49861   *) ac_try_echo=$ac_try;;
49862 esac
49863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49864 $as_echo "$ac_try_echo") >&5
49865   (eval "$ac_link") 2>conftest.er1
49866   ac_status=$?
49867   grep -v '^ *+' conftest.er1 >conftest.err
49868   rm -f conftest.er1
49869   cat conftest.err >&5
49870   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49871   (exit $ac_status); } && {
49872          test -z "$ac_c_werror_flag" ||
49873          test ! -s conftest.err
49874        } && test -s conftest$ac_exeext && {
49875          test "$cross_compiling" = yes ||
49876          $as_test_x conftest$ac_exeext
49877        }; then
49878   eval "$as_ac_var=yes"
49879 else
49880   $as_echo "$as_me: failed program was:" >&5
49881 sed 's/^/| /' conftest.$ac_ext >&5
49882
49883         eval "$as_ac_var=no"
49884 fi
49885
49886 rm -rf conftest.dSYM
49887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
49888       conftest$ac_exeext conftest.$ac_ext
49889 fi
49890 ac_res=`eval 'as_val=${'$as_ac_var'}
49891                  $as_echo "$as_val"'`
49892                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
49893 $as_echo "$ac_res" >&6; }
49894 as_val=`eval 'as_val=${'$as_ac_var'}
49895                  $as_echo "$as_val"'`
49896    if test "x$as_val" = x""yes; then
49897   cat >>confdefs.h <<_ACEOF
49898 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
49899 _ACEOF
49900
49901 fi
49902 done
49903
49904   if test $ac_cv_func_vsnprintf = yes; then
49905
49906
49907   { $as_echo "$as_me:$LINENO: checking whether snprintf respects a size of 1" >&5
49908 $as_echo_n "checking whether snprintf respects a size of 1... " >&6; }
49909 if test "${gl_cv_func_snprintf_size1+set}" = set; then
49910   $as_echo_n "(cached) " >&6
49911 else
49912
49913       if test "$cross_compiling" = yes; then
49914   gl_cv_func_snprintf_size1="guessing yes"
49915 else
49916   cat >conftest.$ac_ext <<_ACEOF
49917 /* confdefs.h.  */
49918 _ACEOF
49919 cat confdefs.h >>conftest.$ac_ext
49920 cat >>conftest.$ac_ext <<_ACEOF
49921 /* end confdefs.h.  */
49922
49923 #include <stdio.h>
49924 int main()
49925 {
49926   static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
49927   snprintf (buf, 1, "%d", 12345);
49928   return buf[1] != 'E';
49929 }
49930 _ACEOF
49931 rm -f conftest$ac_exeext
49932 if { (ac_try="$ac_link"
49933 case "(($ac_try" in
49934   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49935   *) ac_try_echo=$ac_try;;
49936 esac
49937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49938 $as_echo "$ac_try_echo") >&5
49939   (eval "$ac_link") 2>&5
49940   ac_status=$?
49941   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49942   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
49943   { (case "(($ac_try" in
49944   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
49945   *) ac_try_echo=$ac_try;;
49946 esac
49947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
49948 $as_echo "$ac_try_echo") >&5
49949   (eval "$ac_try") 2>&5
49950   ac_status=$?
49951   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
49952   (exit $ac_status); }; }; then
49953   gl_cv_func_snprintf_size1=yes
49954 else
49955   $as_echo "$as_me: program exited with status $ac_status" >&5
49956 $as_echo "$as_me: failed program was:" >&5
49957 sed 's/^/| /' conftest.$ac_ext >&5
49958
49959 ( exit $ac_status )
49960 gl_cv_func_snprintf_size1=no
49961 fi
49962 rm -rf conftest.dSYM
49963 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
49964 fi
49965
49966
49967
49968 fi
49969 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_snprintf_size1" >&5
49970 $as_echo "$gl_cv_func_snprintf_size1" >&6; }
49971
49972     case "$gl_cv_func_snprintf_size1" in
49973       *yes)
49974
49975         case "$gl_cv_func_snprintf_retval_c99" in
49976           *yes)
49977             gl_cv_func_vsnprintf_usable=yes
49978             ;;
49979         esac
49980         ;;
49981     esac
49982   fi
49983   if test $gl_cv_func_vsnprintf_usable = no; then
49984
49985
49986
49987
49988
49989
49990
49991
49992
49993
49994   gl_LIBOBJS="$gl_LIBOBJS vsnprintf.$ac_objext"
49995
49996   if test $ac_cv_func_vsnprintf = yes; then
49997     REPLACE_VSNPRINTF=1
49998   fi
49999   :
50000
50001   fi
50002
50003
50004
50005
50006   if test $ac_cv_have_decl_vsnprintf = no; then
50007     HAVE_DECL_VSNPRINTF=0
50008   fi
50009
50010
50011
50012
50013   GNULIB_VSNPRINTF=1
50014
50015
50016
50017 cat >>confdefs.h <<\_ACEOF
50018 #define GNULIB_TEST_VSNPRINTF 1
50019 _ACEOF
50020
50021
50022
50023   # Code from module warn-on-use:
50024   # Code from module wchar:
50025
50026
50027
50028
50029
50030
50031
50032
50033
50034
50035
50036
50037
50038
50039
50040
50041
50042      if test $gl_cv_have_include_next = yes; then
50043        gl_cv_next_wchar_h='<'wchar.h'>'
50044      else
50045        { $as_echo "$as_me:$LINENO: checking absolute name of <wchar.h>" >&5
50046 $as_echo_n "checking absolute name of <wchar.h>... " >&6; }
50047 if test "${gl_cv_next_wchar_h+set}" = set; then
50048   $as_echo_n "(cached) " >&6
50049 else
50050
50051              if test $ac_cv_header_wchar_h = yes; then
50052
50053
50054                cat >conftest.$ac_ext <<_ACEOF
50055 /* confdefs.h.  */
50056 _ACEOF
50057 cat confdefs.h >>conftest.$ac_ext
50058 cat >>conftest.$ac_ext <<_ACEOF
50059 /* end confdefs.h.  */
50060 #include <wchar.h>
50061
50062 _ACEOF
50063                                                                                                                         case "$host_os" in
50064                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
50065                  *)    gl_absname_cpp="$ac_cpp" ;;
50066                esac
50067                                                             gl_cv_next_wchar_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50068                   sed -n '\#/wchar.h#{
50069                     s#.*"\(.*/wchar.h\)".*#\1#
50070                     s#^/[^/]#//&#
50071                     p
50072                     q
50073                   }'`'"'
50074           else
50075                gl_cv_next_wchar_h='<'wchar.h'>'
50076              fi
50077
50078
50079 fi
50080 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wchar_h" >&5
50081 $as_echo "$gl_cv_next_wchar_h" >&6; }
50082      fi
50083      NEXT_WCHAR_H=$gl_cv_next_wchar_h
50084
50085      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50086        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50087        gl_next_as_first_directive='<'wchar.h'>'
50088      else
50089        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50090        gl_next_as_first_directive=$gl_cv_next_wchar_h
50091      fi
50092      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
50093
50094
50095
50096
50097   if test $ac_cv_header_wchar_h = yes; then
50098     HAVE_WCHAR_H=1
50099   else
50100     HAVE_WCHAR_H=0
50101   fi
50102
50103
50104
50105
50106
50107   if test $gt_cv_c_wint_t = yes; then
50108     HAVE_WINT_T=1
50109   else
50110     HAVE_WINT_T=0
50111   fi
50112
50113
50114
50115
50116
50117
50118
50119
50120
50121
50122
50123
50124
50125
50126
50127
50128
50129
50130
50131
50132
50133
50134
50135
50136
50137
50138
50139
50140
50141
50142
50143
50144
50145
50146
50147
50148
50149
50150
50151
50152
50153
50154   for gl_func in btowc wctob mbsinit mbrtowc mbrlen mbsrtowcs mbsnrtowcs wcrtomb      wcsrtombs wcsnrtombs wcwidth wmemchr wmemcmp wmemcpy wmemmove wmemset      wcslen wcsnlen wcscpy wcpcpy wcsncpy wcpncpy wcscat wcsncat wcscmp      wcsncmp wcscasecmp wcsncasecmp wcscoll wcsxfrm wcsdup wcschr wcsrchr      wcscspn wcsspn wcspbrk wcsstr wcstok wcswidth     ; do
50155     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
50156     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
50157 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
50158 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
50159   $as_echo_n "(cached) " >&6
50160 else
50161   cat >conftest.$ac_ext <<_ACEOF
50162 /* confdefs.h.  */
50163 _ACEOF
50164 cat confdefs.h >>conftest.$ac_ext
50165 cat >>conftest.$ac_ext <<_ACEOF
50166 /* end confdefs.h.  */
50167
50168 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
50169    <wchar.h>.
50170    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50171    included before <wchar.h>.  */
50172 #if !(defined __GLIBC__ && !defined __UCLIBC__)
50173 # include <stddef.h>
50174 # include <stdio.h>
50175 # include <time.h>
50176 #endif
50177 #include <wchar.h>
50178
50179 int
50180 main ()
50181 {
50182 #undef $gl_func
50183   (void) $gl_func;
50184   ;
50185   return 0;
50186 }
50187 _ACEOF
50188 rm -f conftest.$ac_objext
50189 if { (ac_try="$ac_compile"
50190 case "(($ac_try" in
50191   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50192   *) ac_try_echo=$ac_try;;
50193 esac
50194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50195 $as_echo "$ac_try_echo") >&5
50196   (eval "$ac_compile") 2>conftest.er1
50197   ac_status=$?
50198   grep -v '^ *+' conftest.er1 >conftest.err
50199   rm -f conftest.er1
50200   cat conftest.err >&5
50201   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50202   (exit $ac_status); } && {
50203          test -z "$ac_c_werror_flag" ||
50204          test ! -s conftest.err
50205        } && test -s conftest.$ac_objext; then
50206   eval "$as_gl_Symbol=yes"
50207 else
50208   $as_echo "$as_me: failed program was:" >&5
50209 sed 's/^/| /' conftest.$ac_ext >&5
50210
50211         eval "$as_gl_Symbol=no"
50212 fi
50213
50214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50215 fi
50216 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
50217                  $as_echo "$as_val"'`
50218                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
50219 $as_echo "$ac_res" >&6; }
50220      as_val=`eval 'as_val=${'$as_gl_Symbol'}
50221                  $as_echo "$as_val"'`
50222    if test "x$as_val" = x""yes; then
50223   cat >>confdefs.h <<_ACEOF
50224 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
50225 _ACEOF
50226
50227                      eval ac_cv_have_decl_$gl_func=yes
50228 fi
50229
50230       done
50231
50232
50233   # Code from module wcrtomb:
50234
50235
50236
50237
50238
50239
50240
50241
50242
50243
50244
50245
50246
50247
50248
50249
50250
50251
50252
50253
50254   if test $ac_cv_func_mbsinit = yes && test $ac_cv_func_mbrtowc = yes; then
50255
50256
50257
50258      { $as_echo "$as_me:$LINENO: checking whether mbrtowc handles incomplete characters" >&5
50259 $as_echo_n "checking whether mbrtowc handles incomplete characters... " >&6; }
50260 if test "${gl_cv_func_mbrtowc_incomplete_state+set}" = set; then
50261   $as_echo_n "(cached) " >&6
50262 else
50263
50264                   case "$host_os" in
50265                      # Guess no on AIX and OSF/1.
50266         aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
50267                      # Guess yes otherwise.
50268         *)           gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
50269       esac
50270       if test $LOCALE_JA != none; then
50271         if test "$cross_compiling" = yes; then
50272   :
50273 else
50274   cat >conftest.$ac_ext <<_ACEOF
50275 /* confdefs.h.  */
50276 _ACEOF
50277 cat confdefs.h >>conftest.$ac_ext
50278 cat >>conftest.$ac_ext <<_ACEOF
50279 /* end confdefs.h.  */
50280
50281 #include <locale.h>
50282 #include <string.h>
50283 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
50284    <wchar.h>.
50285    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50286    included before <wchar.h>.  */
50287 #include <stddef.h>
50288 #include <stdio.h>
50289 #include <time.h>
50290 #include <wchar.h>
50291 int main ()
50292 {
50293   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
50294     {
50295       const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
50296       mbstate_t state;
50297       wchar_t wc;
50298
50299       memset (&state, '\0', sizeof (mbstate_t));
50300       if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
50301         if (mbsinit (&state))
50302           return 1;
50303     }
50304   return 0;
50305 }
50306 _ACEOF
50307 rm -f conftest$ac_exeext
50308 if { (ac_try="$ac_link"
50309 case "(($ac_try" in
50310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50311   *) ac_try_echo=$ac_try;;
50312 esac
50313 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50314 $as_echo "$ac_try_echo") >&5
50315   (eval "$ac_link") 2>&5
50316   ac_status=$?
50317   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50318   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50319   { (case "(($ac_try" in
50320   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50321   *) ac_try_echo=$ac_try;;
50322 esac
50323 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50324 $as_echo "$ac_try_echo") >&5
50325   (eval "$ac_try") 2>&5
50326   ac_status=$?
50327   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50328   (exit $ac_status); }; }; then
50329   gl_cv_func_mbrtowc_incomplete_state=yes
50330 else
50331   $as_echo "$as_me: program exited with status $ac_status" >&5
50332 $as_echo "$as_me: failed program was:" >&5
50333 sed 's/^/| /' conftest.$ac_ext >&5
50334
50335 ( exit $ac_status )
50336 gl_cv_func_mbrtowc_incomplete_state=no
50337 fi
50338 rm -rf conftest.dSYM
50339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50340 fi
50341
50342
50343       fi
50344
50345 fi
50346 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
50347 $as_echo "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
50348
50349
50350
50351
50352      { $as_echo "$as_me:$LINENO: checking whether mbrtowc works as well as mbtowc" >&5
50353 $as_echo_n "checking whether mbrtowc works as well as mbtowc... " >&6; }
50354 if test "${gl_cv_func_mbrtowc_sanitycheck+set}" = set; then
50355   $as_echo_n "(cached) " >&6
50356 else
50357
50358                   case "$host_os" in
50359                     # Guess no on Solaris 8.
50360         solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
50361                     # Guess yes otherwise.
50362         *)          gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
50363       esac
50364       if test $LOCALE_ZH_CN != none; then
50365         if test "$cross_compiling" = yes; then
50366   :
50367 else
50368   cat >conftest.$ac_ext <<_ACEOF
50369 /* confdefs.h.  */
50370 _ACEOF
50371 cat confdefs.h >>conftest.$ac_ext
50372 cat >>conftest.$ac_ext <<_ACEOF
50373 /* end confdefs.h.  */
50374
50375 #include <locale.h>
50376 #include <stdlib.h>
50377 #include <string.h>
50378 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
50379    <wchar.h>.
50380    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50381    included before <wchar.h>.  */
50382 #include <stddef.h>
50383 #include <stdio.h>
50384 #include <time.h>
50385 #include <wchar.h>
50386 int main ()
50387 {
50388   /* This fails on Solaris 8:
50389      mbrtowc returns 2, and sets wc to 0x00F0.
50390      mbtowc returns 4 (correct) and sets wc to 0x5EDC.  */
50391   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
50392     {
50393       char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
50394       mbstate_t state;
50395       wchar_t wc;
50396
50397       memset (&state, '\0', sizeof (mbstate_t));
50398       if (mbrtowc (&wc, input + 3, 6, &state) != 4
50399           && mbtowc (&wc, input + 3, 6) == 4)
50400         return 1;
50401     }
50402   return 0;
50403 }
50404 _ACEOF
50405 rm -f conftest$ac_exeext
50406 if { (ac_try="$ac_link"
50407 case "(($ac_try" in
50408   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50409   *) ac_try_echo=$ac_try;;
50410 esac
50411 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50412 $as_echo "$ac_try_echo") >&5
50413   (eval "$ac_link") 2>&5
50414   ac_status=$?
50415   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50416   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50417   { (case "(($ac_try" in
50418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50419   *) ac_try_echo=$ac_try;;
50420 esac
50421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50422 $as_echo "$ac_try_echo") >&5
50423   (eval "$ac_try") 2>&5
50424   ac_status=$?
50425   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50426   (exit $ac_status); }; }; then
50427   gl_cv_func_mbrtowc_sanitycheck=yes
50428 else
50429   $as_echo "$as_me: program exited with status $ac_status" >&5
50430 $as_echo "$as_me: failed program was:" >&5
50431 sed 's/^/| /' conftest.$ac_ext >&5
50432
50433 ( exit $ac_status )
50434 gl_cv_func_mbrtowc_sanitycheck=no
50435 fi
50436 rm -rf conftest.dSYM
50437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50438 fi
50439
50440
50441       fi
50442
50443 fi
50444 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
50445 $as_echo "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
50446
50447     REPLACE_MBSTATE_T=0
50448     case "$gl_cv_func_mbrtowc_incomplete_state" in
50449       *yes) ;;
50450       *) REPLACE_MBSTATE_T=1 ;;
50451     esac
50452     case "$gl_cv_func_mbrtowc_sanitycheck" in
50453       *yes) ;;
50454       *) REPLACE_MBSTATE_T=1 ;;
50455     esac
50456   else
50457     REPLACE_MBSTATE_T=1
50458   fi
50459   if test $REPLACE_MBSTATE_T = 1; then
50460
50461     :
50462
50463   fi
50464
50465
50466
50467
50468
50469
50470
50471
50472   if test $ac_cv_func_wcrtomb = no; then
50473     HAVE_WCRTOMB=0
50474   else
50475     if test $REPLACE_MBSTATE_T = 1; then
50476       REPLACE_WCRTOMB=1
50477     else
50478
50479
50480
50481
50482
50483              { $as_echo "$as_me:$LINENO: checking whether wcrtomb return value is correct" >&5
50484 $as_echo_n "checking whether wcrtomb return value is correct... " >&6; }
50485 if test "${gl_cv_func_wcrtomb_retval+set}" = set; then
50486   $as_echo_n "(cached) " >&6
50487 else
50488
50489                               case "$host_os" in
50490                                      # Guess no on AIX 4, OSF/1 and Solaris.
50491             aix4* | osf* | solaris*) gl_cv_func_wcrtomb_retval="guessing no" ;;
50492                                      # Guess yes otherwise.
50493             *)                       gl_cv_func_wcrtomb_retval="guessing yes" ;;
50494           esac
50495           if test $LOCALE_FR != none || test $LOCALE_FR_UTF8 != none || test $LOCALE_JA != none || test $LOCALE_ZH_CN != none; then
50496             if test "$cross_compiling" = yes; then
50497   :
50498 else
50499   cat >conftest.$ac_ext <<_ACEOF
50500 /* confdefs.h.  */
50501 _ACEOF
50502 cat confdefs.h >>conftest.$ac_ext
50503 cat >>conftest.$ac_ext <<_ACEOF
50504 /* end confdefs.h.  */
50505
50506 #include <locale.h>
50507 #include <string.h>
50508 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
50509    <wchar.h>.
50510    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
50511    included before <wchar.h>.  */
50512 #include <stddef.h>
50513 #include <stdio.h>
50514 #include <time.h>
50515 #include <wchar.h>
50516 int main ()
50517 {
50518   int result = 0;
50519   if (setlocale (LC_ALL, "$LOCALE_FR") != NULL)
50520     {
50521       if (wcrtomb (NULL, 0, NULL) != 1)
50522         result |= 1;
50523     }
50524   if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
50525     {
50526       if (wcrtomb (NULL, 0, NULL) != 1)
50527         result |= 2;
50528     }
50529   if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
50530     {
50531       if (wcrtomb (NULL, 0, NULL) != 1)
50532         result |= 4;
50533     }
50534   if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
50535     {
50536       if (wcrtomb (NULL, 0, NULL) != 1)
50537         result |= 8;
50538     }
50539   return result;
50540 }
50541 _ACEOF
50542 rm -f conftest$ac_exeext
50543 if { (ac_try="$ac_link"
50544 case "(($ac_try" in
50545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50546   *) ac_try_echo=$ac_try;;
50547 esac
50548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50549 $as_echo "$ac_try_echo") >&5
50550   (eval "$ac_link") 2>&5
50551   ac_status=$?
50552   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50553   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50554   { (case "(($ac_try" in
50555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50556   *) ac_try_echo=$ac_try;;
50557 esac
50558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50559 $as_echo "$ac_try_echo") >&5
50560   (eval "$ac_try") 2>&5
50561   ac_status=$?
50562   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50563   (exit $ac_status); }; }; then
50564   gl_cv_func_wcrtomb_retval=yes
50565 else
50566   $as_echo "$as_me: program exited with status $ac_status" >&5
50567 $as_echo "$as_me: failed program was:" >&5
50568 sed 's/^/| /' conftest.$ac_ext >&5
50569
50570 ( exit $ac_status )
50571 gl_cv_func_wcrtomb_retval=no
50572 fi
50573 rm -rf conftest.dSYM
50574 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50575 fi
50576
50577
50578           fi
50579
50580 fi
50581 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcrtomb_retval" >&5
50582 $as_echo "$gl_cv_func_wcrtomb_retval" >&6; }
50583       case "$gl_cv_func_wcrtomb_retval" in
50584         *yes) ;;
50585         *) REPLACE_WCRTOMB=1 ;;
50586       esac
50587     fi
50588   fi
50589   if test $HAVE_WCRTOMB = 0 || test $REPLACE_WCRTOMB = 1; then
50590
50591     :
50592
50593
50594
50595
50596
50597
50598
50599
50600
50601   gl_LIBOBJS="$gl_LIBOBJS wcrtomb.$ac_objext"
50602
50603
50604   :
50605
50606   fi
50607
50608
50609
50610
50611   GNULIB_WCRTOMB=1
50612
50613
50614
50615 cat >>confdefs.h <<\_ACEOF
50616 #define GNULIB_TEST_WCRTOMB 1
50617 _ACEOF
50618
50619
50620
50621   # Code from module wctype-h:
50622
50623
50624
50625
50626
50627
50628
50629
50630
50631
50632   if test $ac_cv_func_iswcntrl = yes; then
50633     HAVE_ISWCNTRL=1
50634   else
50635     HAVE_ISWCNTRL=0
50636   fi
50637
50638
50639
50640
50641
50642   if test $gt_cv_c_wint_t = yes; then
50643     HAVE_WINT_T=1
50644   else
50645     HAVE_WINT_T=0
50646   fi
50647
50648
50649
50650
50651
50652
50653
50654
50655
50656
50657
50658
50659
50660
50661
50662
50663      if test $gl_cv_have_include_next = yes; then
50664        gl_cv_next_wctype_h='<'wctype.h'>'
50665      else
50666        { $as_echo "$as_me:$LINENO: checking absolute name of <wctype.h>" >&5
50667 $as_echo_n "checking absolute name of <wctype.h>... " >&6; }
50668 if test "${gl_cv_next_wctype_h+set}" = set; then
50669   $as_echo_n "(cached) " >&6
50670 else
50671
50672              if test $ac_cv_header_wctype_h = yes; then
50673
50674
50675                cat >conftest.$ac_ext <<_ACEOF
50676 /* confdefs.h.  */
50677 _ACEOF
50678 cat confdefs.h >>conftest.$ac_ext
50679 cat >>conftest.$ac_ext <<_ACEOF
50680 /* end confdefs.h.  */
50681 #include <wctype.h>
50682
50683 _ACEOF
50684                                                                                                                         case "$host_os" in
50685                  aix*) gl_absname_cpp="$ac_cpp -C" ;;
50686                  *)    gl_absname_cpp="$ac_cpp" ;;
50687                esac
50688                                                             gl_cv_next_wctype_h='"'`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
50689                   sed -n '\#/wctype.h#{
50690                     s#.*"\(.*/wctype.h\)".*#\1#
50691                     s#^/[^/]#//&#
50692                     p
50693                     q
50694                   }'`'"'
50695           else
50696                gl_cv_next_wctype_h='<'wctype.h'>'
50697              fi
50698
50699
50700 fi
50701 { $as_echo "$as_me:$LINENO: result: $gl_cv_next_wctype_h" >&5
50702 $as_echo "$gl_cv_next_wctype_h" >&6; }
50703      fi
50704      NEXT_WCTYPE_H=$gl_cv_next_wctype_h
50705
50706      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
50707        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
50708        gl_next_as_first_directive='<'wctype.h'>'
50709      else
50710        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
50711        gl_next_as_first_directive=$gl_cv_next_wctype_h
50712      fi
50713      NEXT_AS_FIRST_DIRECTIVE_WCTYPE_H=$gl_next_as_first_directive
50714
50715
50716
50717
50718   if test $ac_cv_header_wctype_h = yes; then
50719     if test $ac_cv_func_iswcntrl = yes; then
50720                   { $as_echo "$as_me:$LINENO: checking whether iswcntrl works" >&5
50721 $as_echo_n "checking whether iswcntrl works... " >&6; }
50722 if test "${gl_cv_func_iswcntrl_works+set}" = set; then
50723   $as_echo_n "(cached) " >&6
50724 else
50725
50726           if test "$cross_compiling" = yes; then
50727   cat >conftest.$ac_ext <<_ACEOF
50728 /* confdefs.h.  */
50729 _ACEOF
50730 cat confdefs.h >>conftest.$ac_ext
50731 cat >>conftest.$ac_ext <<_ACEOF
50732 /* end confdefs.h.  */
50733 #include <stdlib.h>
50734                           #if __GNU_LIBRARY__ == 1
50735                           Linux libc5 i18n is broken.
50736                           #endif
50737 int
50738 main ()
50739 {
50740
50741   ;
50742   return 0;
50743 }
50744 _ACEOF
50745 rm -f conftest.$ac_objext
50746 if { (ac_try="$ac_compile"
50747 case "(($ac_try" in
50748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50749   *) ac_try_echo=$ac_try;;
50750 esac
50751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50752 $as_echo "$ac_try_echo") >&5
50753   (eval "$ac_compile") 2>conftest.er1
50754   ac_status=$?
50755   grep -v '^ *+' conftest.er1 >conftest.err
50756   rm -f conftest.er1
50757   cat conftest.err >&5
50758   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50759   (exit $ac_status); } && {
50760          test -z "$ac_c_werror_flag" ||
50761          test ! -s conftest.err
50762        } && test -s conftest.$ac_objext; then
50763   gl_cv_func_iswcntrl_works=yes
50764 else
50765   $as_echo "$as_me: failed program was:" >&5
50766 sed 's/^/| /' conftest.$ac_ext >&5
50767
50768         gl_cv_func_iswcntrl_works=no
50769 fi
50770
50771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50772
50773 else
50774   cat >conftest.$ac_ext <<_ACEOF
50775 /* confdefs.h.  */
50776 _ACEOF
50777 cat confdefs.h >>conftest.$ac_ext
50778 cat >>conftest.$ac_ext <<_ACEOF
50779 /* end confdefs.h.  */
50780
50781                /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
50782                   included before <wchar.h>.
50783                   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
50784                   must be included before <wchar.h>.  */
50785                #include <stddef.h>
50786                #include <stdio.h>
50787                #include <time.h>
50788                #include <wchar.h>
50789                #include <wctype.h>
50790                int main () { return iswprint ('x') == 0; }
50791
50792 _ACEOF
50793 rm -f conftest$ac_exeext
50794 if { (ac_try="$ac_link"
50795 case "(($ac_try" in
50796   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50797   *) ac_try_echo=$ac_try;;
50798 esac
50799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50800 $as_echo "$ac_try_echo") >&5
50801   (eval "$ac_link") 2>&5
50802   ac_status=$?
50803   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50804   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
50805   { (case "(($ac_try" in
50806   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50807   *) ac_try_echo=$ac_try;;
50808 esac
50809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50810 $as_echo "$ac_try_echo") >&5
50811   (eval "$ac_try") 2>&5
50812   ac_status=$?
50813   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50814   (exit $ac_status); }; }; then
50815   gl_cv_func_iswcntrl_works=yes
50816 else
50817   $as_echo "$as_me: program exited with status $ac_status" >&5
50818 $as_echo "$as_me: failed program was:" >&5
50819 sed 's/^/| /' conftest.$ac_ext >&5
50820
50821 ( exit $ac_status )
50822 gl_cv_func_iswcntrl_works=no
50823 fi
50824 rm -rf conftest.dSYM
50825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
50826 fi
50827
50828
50829
50830 fi
50831 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_iswcntrl_works" >&5
50832 $as_echo "$gl_cv_func_iswcntrl_works" >&6; }
50833     fi
50834     HAVE_WCTYPE_H=1
50835   else
50836     HAVE_WCTYPE_H=0
50837   fi
50838
50839
50840   if test "$gl_cv_func_iswcntrl_works" = no; then
50841     REPLACE_ISWCNTRL=1
50842   else
50843     REPLACE_ISWCNTRL=0
50844   fi
50845
50846
50847   if test $HAVE_ISWCNTRL = 0 || test $REPLACE_ISWCNTRL = 1; then
50848         :
50849   fi
50850
50851           { $as_echo "$as_me:$LINENO: checking for wctype_t" >&5
50852 $as_echo_n "checking for wctype_t... " >&6; }
50853 if test "${gl_cv_type_wctype_t+set}" = set; then
50854   $as_echo_n "(cached) " >&6
50855 else
50856   cat >conftest.$ac_ext <<_ACEOF
50857 /* confdefs.h.  */
50858 _ACEOF
50859 cat confdefs.h >>conftest.$ac_ext
50860 cat >>conftest.$ac_ext <<_ACEOF
50861 /* end confdefs.h.  */
50862 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
50863                included before <wchar.h>.
50864                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
50865                must be included before <wchar.h>.  */
50866             #include <stddef.h>
50867             #include <stdio.h>
50868             #include <time.h>
50869             #include <wchar.h>
50870             #if HAVE_WCTYPE_H
50871             # include <wctype.h>
50872             #endif
50873             wctype_t a;
50874
50875 int
50876 main ()
50877 {
50878
50879   ;
50880   return 0;
50881 }
50882 _ACEOF
50883 rm -f conftest.$ac_objext
50884 if { (ac_try="$ac_compile"
50885 case "(($ac_try" in
50886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50887   *) ac_try_echo=$ac_try;;
50888 esac
50889 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50890 $as_echo "$ac_try_echo") >&5
50891   (eval "$ac_compile") 2>conftest.er1
50892   ac_status=$?
50893   grep -v '^ *+' conftest.er1 >conftest.err
50894   rm -f conftest.er1
50895   cat conftest.err >&5
50896   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50897   (exit $ac_status); } && {
50898          test -z "$ac_c_werror_flag" ||
50899          test ! -s conftest.err
50900        } && test -s conftest.$ac_objext; then
50901   gl_cv_type_wctype_t=yes
50902 else
50903   $as_echo "$as_me: failed program was:" >&5
50904 sed 's/^/| /' conftest.$ac_ext >&5
50905
50906         gl_cv_type_wctype_t=no
50907 fi
50908
50909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50910
50911 fi
50912 { $as_echo "$as_me:$LINENO: result: $gl_cv_type_wctype_t" >&5
50913 $as_echo "$gl_cv_type_wctype_t" >&6; }
50914   if test $gl_cv_type_wctype_t = no; then
50915     HAVE_WCTYPE_T=0
50916   fi
50917
50918       { $as_echo "$as_me:$LINENO: checking for wctrans_t" >&5
50919 $as_echo_n "checking for wctrans_t... " >&6; }
50920 if test "${gl_cv_type_wctrans_t+set}" = set; then
50921   $as_echo_n "(cached) " >&6
50922 else
50923   cat >conftest.$ac_ext <<_ACEOF
50924 /* confdefs.h.  */
50925 _ACEOF
50926 cat confdefs.h >>conftest.$ac_ext
50927 cat >>conftest.$ac_ext <<_ACEOF
50928 /* end confdefs.h.  */
50929 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be
50930                included before <wchar.h>.
50931                BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h>
50932                must be included before <wchar.h>.  */
50933             #include <stddef.h>
50934             #include <stdio.h>
50935             #include <time.h>
50936             #include <wchar.h>
50937             #include <wctype.h>
50938             wctrans_t a;
50939
50940 int
50941 main ()
50942 {
50943
50944   ;
50945   return 0;
50946 }
50947 _ACEOF
50948 rm -f conftest.$ac_objext
50949 if { (ac_try="$ac_compile"
50950 case "(($ac_try" in
50951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
50952   *) ac_try_echo=$ac_try;;
50953 esac
50954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
50955 $as_echo "$ac_try_echo") >&5
50956   (eval "$ac_compile") 2>conftest.er1
50957   ac_status=$?
50958   grep -v '^ *+' conftest.er1 >conftest.err
50959   rm -f conftest.er1
50960   cat conftest.err >&5
50961   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
50962   (exit $ac_status); } && {
50963          test -z "$ac_c_werror_flag" ||
50964          test ! -s conftest.err
50965        } && test -s conftest.$ac_objext; then
50966   gl_cv_type_wctrans_t=yes
50967 else
50968   $as_echo "$as_me: failed program was:" >&5
50969 sed 's/^/| /' conftest.$ac_ext >&5
50970
50971         gl_cv_type_wctrans_t=no
50972 fi
50973
50974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
50975
50976 fi
50977 { $as_echo "$as_me:$LINENO: result: $gl_cv_type_wctrans_t" >&5
50978 $as_echo "$gl_cv_type_wctrans_t" >&6; }
50979   if test $gl_cv_type_wctrans_t = no; then
50980     HAVE_WCTRANS_T=0
50981   fi
50982
50983
50984
50985
50986
50987
50988   for gl_func in wctype iswctype wctrans towctrans     ; do
50989     as_gl_Symbol=`$as_echo "gl_cv_have_raw_decl_$gl_func" | $as_tr_sh`
50990     { $as_echo "$as_me:$LINENO: checking whether $gl_func is declared without a macro" >&5
50991 $as_echo_n "checking whether $gl_func is declared without a macro... " >&6; }
50992 if { as_var=$as_gl_Symbol; eval "test \"\${$as_var+set}\" = set"; }; then
50993   $as_echo_n "(cached) " >&6
50994 else
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
51002 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
51003    <wchar.h>.
51004    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
51005    included before <wchar.h>.  */
51006 #if !(defined __GLIBC__ && !defined __UCLIBC__)
51007 # include <stddef.h>
51008 # include <stdio.h>
51009 # include <time.h>
51010 # include <wchar.h>
51011 #endif
51012 #include <wctype.h>
51013
51014 int
51015 main ()
51016 {
51017 #undef $gl_func
51018   (void) $gl_func;
51019   ;
51020   return 0;
51021 }
51022 _ACEOF
51023 rm -f conftest.$ac_objext
51024 if { (ac_try="$ac_compile"
51025 case "(($ac_try" in
51026   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51027   *) ac_try_echo=$ac_try;;
51028 esac
51029 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51030 $as_echo "$ac_try_echo") >&5
51031   (eval "$ac_compile") 2>conftest.er1
51032   ac_status=$?
51033   grep -v '^ *+' conftest.er1 >conftest.err
51034   rm -f conftest.er1
51035   cat conftest.err >&5
51036   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51037   (exit $ac_status); } && {
51038          test -z "$ac_c_werror_flag" ||
51039          test ! -s conftest.err
51040        } && test -s conftest.$ac_objext; then
51041   eval "$as_gl_Symbol=yes"
51042 else
51043   $as_echo "$as_me: failed program was:" >&5
51044 sed 's/^/| /' conftest.$ac_ext >&5
51045
51046         eval "$as_gl_Symbol=no"
51047 fi
51048
51049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51050 fi
51051 ac_res=`eval 'as_val=${'$as_gl_Symbol'}
51052                  $as_echo "$as_val"'`
51053                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51054 $as_echo "$ac_res" >&6; }
51055      as_val=`eval 'as_val=${'$as_gl_Symbol'}
51056                  $as_echo "$as_val"'`
51057    if test "x$as_val" = x""yes; then
51058   cat >>confdefs.h <<_ACEOF
51059 #define `$as_echo "HAVE_RAW_DECL_$gl_func" | $as_tr_cpp` 1
51060 _ACEOF
51061
51062                      eval ac_cv_have_decl_$gl_func=yes
51063 fi
51064
51065       done
51066
51067
51068   # Code from module wcwidth:
51069
51070
51071
51072
51073
51074
51075
51076
51077
51078
51079
51080
51081
51082
51083
51084
51085
51086
51087
51088
51089
51090   { $as_echo "$as_me:$LINENO: checking whether wcwidth is declared" >&5
51091 $as_echo_n "checking whether wcwidth is declared... " >&6; }
51092 if test "${ac_cv_have_decl_wcwidth+set}" = set; then
51093   $as_echo_n "(cached) " >&6
51094 else
51095   cat >conftest.$ac_ext <<_ACEOF
51096 /* confdefs.h.  */
51097 _ACEOF
51098 cat confdefs.h >>conftest.$ac_ext
51099 cat >>conftest.$ac_ext <<_ACEOF
51100 /* end confdefs.h.  */
51101
51102 /* AIX 3.2.5 declares wcwidth in <string.h>. */
51103 #include <string.h>
51104 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
51105    <wchar.h>.
51106    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
51107    before <wchar.h>.  */
51108 #include <stddef.h>
51109 #include <stdio.h>
51110 #include <time.h>
51111 #include <wchar.h>
51112
51113
51114 int
51115 main ()
51116 {
51117 #ifndef wcwidth
51118   (void) wcwidth;
51119 #endif
51120
51121   ;
51122   return 0;
51123 }
51124 _ACEOF
51125 rm -f conftest.$ac_objext
51126 if { (ac_try="$ac_compile"
51127 case "(($ac_try" in
51128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51129   *) ac_try_echo=$ac_try;;
51130 esac
51131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51132 $as_echo "$ac_try_echo") >&5
51133   (eval "$ac_compile") 2>conftest.er1
51134   ac_status=$?
51135   grep -v '^ *+' conftest.er1 >conftest.err
51136   rm -f conftest.er1
51137   cat conftest.err >&5
51138   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51139   (exit $ac_status); } && {
51140          test -z "$ac_c_werror_flag" ||
51141          test ! -s conftest.err
51142        } && test -s conftest.$ac_objext; then
51143   ac_cv_have_decl_wcwidth=yes
51144 else
51145   $as_echo "$as_me: failed program was:" >&5
51146 sed 's/^/| /' conftest.$ac_ext >&5
51147
51148         ac_cv_have_decl_wcwidth=no
51149 fi
51150
51151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51152 fi
51153 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_wcwidth" >&5
51154 $as_echo "$ac_cv_have_decl_wcwidth" >&6; }
51155 if test "x$ac_cv_have_decl_wcwidth" = x""yes; then
51156
51157 cat >>confdefs.h <<_ACEOF
51158 #define HAVE_DECL_WCWIDTH 1
51159 _ACEOF
51160
51161
51162 else
51163   cat >>confdefs.h <<_ACEOF
51164 #define HAVE_DECL_WCWIDTH 0
51165 _ACEOF
51166
51167
51168 fi
51169
51170
51171   if test $ac_cv_have_decl_wcwidth != yes; then
51172     HAVE_DECL_WCWIDTH=0
51173   fi
51174
51175   if test $ac_cv_func_wcwidth = yes; then
51176                 { $as_echo "$as_me:$LINENO: checking whether wcwidth works reasonably in UTF-8 locales" >&5
51177 $as_echo_n "checking whether wcwidth works reasonably in UTF-8 locales... " >&6; }
51178 if test "${gl_cv_func_wcwidth_works+set}" = set; then
51179   $as_echo_n "(cached) " >&6
51180 else
51181
51182         if test "$cross_compiling" = yes; then
51183
51184            case "$host_os" in
51185                      # Guess yes on glibc and AIX 7 systems.
51186              *-gnu* | aix[7-9]*) gl_cv_func_wcwidth_works="guessing yes";;
51187              *)                  gl_cv_func_wcwidth_works="guessing no";;
51188            esac
51189
51190 else
51191   cat >conftest.$ac_ext <<_ACEOF
51192 /* confdefs.h.  */
51193 _ACEOF
51194 cat confdefs.h >>conftest.$ac_ext
51195 cat >>conftest.$ac_ext <<_ACEOF
51196 /* end confdefs.h.  */
51197
51198 #include <locale.h>
51199 /* AIX 3.2.5 declares wcwidth in <string.h>. */
51200 #include <string.h>
51201 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
51202    <wchar.h>.
51203    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
51204    before <wchar.h>.  */
51205 #include <stddef.h>
51206 #include <stdio.h>
51207 #include <time.h>
51208 #include <wchar.h>
51209 #if !HAVE_DECL_WCWIDTH
51210 extern
51211 # ifdef __cplusplus
51212 "C"
51213 # endif
51214 int wcwidth (int);
51215 #endif
51216 int main ()
51217 {
51218   int result = 0;
51219   if (setlocale (LC_ALL, "fr_FR.UTF-8") != NULL)
51220     {
51221       if (wcwidth (0x0301) > 0)
51222         result |= 1;
51223       if (wcwidth (0x200B) > 0)
51224         result |= 2;
51225     }
51226   return result;
51227 }
51228 _ACEOF
51229 rm -f conftest$ac_exeext
51230 if { (ac_try="$ac_link"
51231 case "(($ac_try" in
51232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51233   *) ac_try_echo=$ac_try;;
51234 esac
51235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51236 $as_echo "$ac_try_echo") >&5
51237   (eval "$ac_link") 2>&5
51238   ac_status=$?
51239   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51240   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
51241   { (case "(($ac_try" in
51242   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51243   *) ac_try_echo=$ac_try;;
51244 esac
51245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51246 $as_echo "$ac_try_echo") >&5
51247   (eval "$ac_try") 2>&5
51248   ac_status=$?
51249   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51250   (exit $ac_status); }; }; then
51251   gl_cv_func_wcwidth_works=yes
51252 else
51253   $as_echo "$as_me: program exited with status $ac_status" >&5
51254 $as_echo "$as_me: failed program was:" >&5
51255 sed 's/^/| /' conftest.$ac_ext >&5
51256
51257 ( exit $ac_status )
51258 gl_cv_func_wcwidth_works=no
51259 fi
51260 rm -rf conftest.dSYM
51261 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
51262 fi
51263
51264
51265
51266 fi
51267 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_wcwidth_works" >&5
51268 $as_echo "$gl_cv_func_wcwidth_works" >&6; }
51269     case "$gl_cv_func_wcwidth_works" in
51270       *yes) ;;
51271       *no) REPLACE_WCWIDTH=1 ;;
51272     esac
51273   fi
51274   if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1; then
51275
51276
51277
51278
51279
51280
51281
51282
51283   gl_LIBOBJS="$gl_LIBOBJS wcwidth.$ac_objext"
51284
51285   fi
51286   if test $ac_cv_func_wcwidth != yes || test $REPLACE_WCWIDTH = 1 \
51287      || test $HAVE_DECL_WCWIDTH = 0; then
51288
51289     :
51290
51291   fi
51292
51293
51294
51295
51296   GNULIB_WCWIDTH=1
51297
51298
51299
51300 cat >>confdefs.h <<\_ACEOF
51301 #define GNULIB_TEST_WCWIDTH 1
51302 _ACEOF
51303
51304
51305
51306   # Code from module write:
51307
51308
51309
51310
51311
51312
51313
51314   GNULIB_WRITE=1
51315
51316
51317
51318 cat >>confdefs.h <<\_ACEOF
51319 #define GNULIB_TEST_WRITE 1
51320 _ACEOF
51321
51322
51323
51324   # Code from module xalloc:
51325
51326
51327
51328
51329
51330
51331
51332
51333
51334   gl_LIBOBJS="$gl_LIBOBJS xmalloc.$ac_objext"
51335
51336
51337
51338
51339   :
51340
51341
51342   :
51343
51344
51345   # Code from module xalloc-die:
51346   # Code from module xgetcwd:
51347
51348
51349
51350
51351
51352
51353
51354
51355
51356   gl_LIBOBJS="$gl_LIBOBJS xgetcwd.$ac_objext"
51357
51358
51359
51360
51361   # Code from module xsize:
51362
51363
51364
51365
51366 for ac_header in stdint.h
51367 do
51368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
51369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51370   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51371 $as_echo_n "checking for $ac_header... " >&6; }
51372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51373   $as_echo_n "(cached) " >&6
51374 fi
51375 ac_res=`eval 'as_val=${'$as_ac_Header'}
51376                  $as_echo "$as_val"'`
51377                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51378 $as_echo "$ac_res" >&6; }
51379 else
51380   # Is the header compilable?
51381 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
51382 $as_echo_n "checking $ac_header usability... " >&6; }
51383 cat >conftest.$ac_ext <<_ACEOF
51384 /* confdefs.h.  */
51385 _ACEOF
51386 cat confdefs.h >>conftest.$ac_ext
51387 cat >>conftest.$ac_ext <<_ACEOF
51388 /* end confdefs.h.  */
51389 $ac_includes_default
51390 #include <$ac_header>
51391 _ACEOF
51392 rm -f conftest.$ac_objext
51393 if { (ac_try="$ac_compile"
51394 case "(($ac_try" in
51395   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51396   *) ac_try_echo=$ac_try;;
51397 esac
51398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51399 $as_echo "$ac_try_echo") >&5
51400   (eval "$ac_compile") 2>conftest.er1
51401   ac_status=$?
51402   grep -v '^ *+' conftest.er1 >conftest.err
51403   rm -f conftest.er1
51404   cat conftest.err >&5
51405   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51406   (exit $ac_status); } && {
51407          test -z "$ac_c_werror_flag" ||
51408          test ! -s conftest.err
51409        } && test -s conftest.$ac_objext; then
51410   ac_header_compiler=yes
51411 else
51412   $as_echo "$as_me: failed program was:" >&5
51413 sed 's/^/| /' conftest.$ac_ext >&5
51414
51415         ac_header_compiler=no
51416 fi
51417
51418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51419 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
51420 $as_echo "$ac_header_compiler" >&6; }
51421
51422 # Is the header present?
51423 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
51424 $as_echo_n "checking $ac_header presence... " >&6; }
51425 cat >conftest.$ac_ext <<_ACEOF
51426 /* confdefs.h.  */
51427 _ACEOF
51428 cat confdefs.h >>conftest.$ac_ext
51429 cat >>conftest.$ac_ext <<_ACEOF
51430 /* end confdefs.h.  */
51431 #include <$ac_header>
51432 _ACEOF
51433 if { (ac_try="$ac_cpp conftest.$ac_ext"
51434 case "(($ac_try" in
51435   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51436   *) ac_try_echo=$ac_try;;
51437 esac
51438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51439 $as_echo "$ac_try_echo") >&5
51440   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
51441   ac_status=$?
51442   grep -v '^ *+' conftest.er1 >conftest.err
51443   rm -f conftest.er1
51444   cat conftest.err >&5
51445   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51446   (exit $ac_status); } >/dev/null && {
51447          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
51448          test ! -s conftest.err
51449        }; then
51450   ac_header_preproc=yes
51451 else
51452   $as_echo "$as_me: failed program was:" >&5
51453 sed 's/^/| /' conftest.$ac_ext >&5
51454
51455   ac_header_preproc=no
51456 fi
51457
51458 rm -f conftest.err conftest.$ac_ext
51459 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
51460 $as_echo "$ac_header_preproc" >&6; }
51461
51462 # So?  What about this header?
51463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
51464   yes:no: )
51465     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
51466 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
51467     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
51468 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
51469     ac_header_preproc=yes
51470     ;;
51471   no:yes:* )
51472     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
51473 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
51474     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
51475 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
51476     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
51477 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
51478     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
51479 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
51480     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
51481 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
51482     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
51483 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
51484     ( cat <<\_ASBOX
51485 ## ------------------------------ ##
51486 ## Report this to bug-tar@gnu.org ##
51487 ## ------------------------------ ##
51488 _ASBOX
51489      ) | sed "s/^/$as_me: WARNING:     /" >&2
51490     ;;
51491 esac
51492 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
51493 $as_echo_n "checking for $ac_header... " >&6; }
51494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
51495   $as_echo_n "(cached) " >&6
51496 else
51497   eval "$as_ac_Header=\$ac_header_preproc"
51498 fi
51499 ac_res=`eval 'as_val=${'$as_ac_Header'}
51500                  $as_echo "$as_val"'`
51501                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
51502 $as_echo "$ac_res" >&6; }
51503
51504 fi
51505 as_val=`eval 'as_val=${'$as_ac_Header'}
51506                  $as_echo "$as_val"'`
51507    if test "x$as_val" = x""yes; then
51508   cat >>confdefs.h <<_ACEOF
51509 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
51510 _ACEOF
51511
51512 fi
51513
51514 done
51515
51516
51517   # Code from module xstrndup:
51518
51519
51520   :
51521
51522
51523   # Code from module xstrtol:
51524
51525
51526
51527
51528
51529
51530
51531
51532
51533   gl_LIBOBJS="$gl_LIBOBJS xstrtol.$ac_objext"
51534
51535
51536
51537
51538
51539
51540
51541
51542
51543   gl_LIBOBJS="$gl_LIBOBJS xstrtoul.$ac_objext"
51544
51545
51546
51547
51548
51549
51550
51551
51552
51553   gl_LIBOBJS="$gl_LIBOBJS xstrtol-error.$ac_objext"
51554
51555
51556   # Code from module xstrtoumax:
51557   # Code from module xvasprintf:
51558
51559
51560
51561
51562
51563   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=xasprintf:1:c-format"
51564
51565   # End of code from modules
51566
51567
51568
51569
51570
51571
51572
51573
51574
51575   gltests_libdeps=
51576   gltests_ltlibdeps=
51577
51578
51579
51580
51581
51582
51583
51584
51585
51586   gl_source_base='tests'
51587   gltests_WITNESS=IN_`echo "${PACKAGE-$PACKAGE_TARNAME}" | LC_ALL=C tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ | LC_ALL=C sed -e 's/[^A-Z0-9_]/_/g'`_GNULIB_TESTS
51588
51589   gl_module_indicator_condition=$gltests_WITNESS
51590
51591
51592
51593
51594
51595
51596
51597
51598
51599   LIBGNU_LIBDEPS="$gl_libdeps"
51600
51601   LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
51602
51603
51604 # paxutils modules
51605
51606
51607
51608
51609
51610
51611
51612
51613 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
51614 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
51615 if test "${ac_cv_header_time+set}" = set; then
51616   $as_echo_n "(cached) " >&6
51617 else
51618   cat >conftest.$ac_ext <<_ACEOF
51619 /* confdefs.h.  */
51620 _ACEOF
51621 cat confdefs.h >>conftest.$ac_ext
51622 cat >>conftest.$ac_ext <<_ACEOF
51623 /* end confdefs.h.  */
51624 #include <sys/types.h>
51625 #include <sys/time.h>
51626 #include <time.h>
51627
51628 int
51629 main ()
51630 {
51631 if ((struct tm *) 0)
51632 return 0;
51633   ;
51634   return 0;
51635 }
51636 _ACEOF
51637 rm -f conftest.$ac_objext
51638 if { (ac_try="$ac_compile"
51639 case "(($ac_try" in
51640   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51641   *) ac_try_echo=$ac_try;;
51642 esac
51643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51644 $as_echo "$ac_try_echo") >&5
51645   (eval "$ac_compile") 2>conftest.er1
51646   ac_status=$?
51647   grep -v '^ *+' conftest.er1 >conftest.err
51648   rm -f conftest.er1
51649   cat conftest.err >&5
51650   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51651   (exit $ac_status); } && {
51652          test -z "$ac_c_werror_flag" ||
51653          test ! -s conftest.err
51654        } && test -s conftest.$ac_objext; then
51655   ac_cv_header_time=yes
51656 else
51657   $as_echo "$as_me: failed program was:" >&5
51658 sed 's/^/| /' conftest.$ac_ext >&5
51659
51660         ac_cv_header_time=no
51661 fi
51662
51663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51664 fi
51665 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
51666 $as_echo "$ac_cv_header_time" >&6; }
51667 if test $ac_cv_header_time = yes; then
51668
51669 cat >>confdefs.h <<\_ACEOF
51670 #define TIME_WITH_SYS_TIME 1
51671 _ACEOF
51672
51673 fi
51674
51675 { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
51676 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
51677 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
51678   $as_echo_n "(cached) " >&6
51679 else
51680   cat >conftest.$ac_ext <<_ACEOF
51681 /* confdefs.h.  */
51682 _ACEOF
51683 cat confdefs.h >>conftest.$ac_ext
51684 cat >>conftest.$ac_ext <<_ACEOF
51685 /* end confdefs.h.  */
51686 $ac_includes_default
51687 int
51688 main ()
51689 {
51690 static struct stat ac_aggr;
51691 if (ac_aggr.st_blksize)
51692 return 0;
51693   ;
51694   return 0;
51695 }
51696 _ACEOF
51697 rm -f conftest.$ac_objext
51698 if { (ac_try="$ac_compile"
51699 case "(($ac_try" in
51700   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51701   *) ac_try_echo=$ac_try;;
51702 esac
51703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51704 $as_echo "$ac_try_echo") >&5
51705   (eval "$ac_compile") 2>conftest.er1
51706   ac_status=$?
51707   grep -v '^ *+' conftest.er1 >conftest.err
51708   rm -f conftest.er1
51709   cat conftest.err >&5
51710   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51711   (exit $ac_status); } && {
51712          test -z "$ac_c_werror_flag" ||
51713          test ! -s conftest.err
51714        } && test -s conftest.$ac_objext; then
51715   ac_cv_member_struct_stat_st_blksize=yes
51716 else
51717   $as_echo "$as_me: failed program was:" >&5
51718 sed 's/^/| /' conftest.$ac_ext >&5
51719
51720         cat >conftest.$ac_ext <<_ACEOF
51721 /* confdefs.h.  */
51722 _ACEOF
51723 cat confdefs.h >>conftest.$ac_ext
51724 cat >>conftest.$ac_ext <<_ACEOF
51725 /* end confdefs.h.  */
51726 $ac_includes_default
51727 int
51728 main ()
51729 {
51730 static struct stat ac_aggr;
51731 if (sizeof ac_aggr.st_blksize)
51732 return 0;
51733   ;
51734   return 0;
51735 }
51736 _ACEOF
51737 rm -f conftest.$ac_objext
51738 if { (ac_try="$ac_compile"
51739 case "(($ac_try" in
51740   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51741   *) ac_try_echo=$ac_try;;
51742 esac
51743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51744 $as_echo "$ac_try_echo") >&5
51745   (eval "$ac_compile") 2>conftest.er1
51746   ac_status=$?
51747   grep -v '^ *+' conftest.er1 >conftest.err
51748   rm -f conftest.er1
51749   cat conftest.err >&5
51750   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51751   (exit $ac_status); } && {
51752          test -z "$ac_c_werror_flag" ||
51753          test ! -s conftest.err
51754        } && test -s conftest.$ac_objext; then
51755   ac_cv_member_struct_stat_st_blksize=yes
51756 else
51757   $as_echo "$as_me: failed program was:" >&5
51758 sed 's/^/| /' conftest.$ac_ext >&5
51759
51760         ac_cv_member_struct_stat_st_blksize=no
51761 fi
51762
51763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51764 fi
51765
51766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
51767 fi
51768 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
51769 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
51770 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
51771
51772 cat >>confdefs.h <<_ACEOF
51773 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
51774 _ACEOF
51775
51776
51777 cat >>confdefs.h <<\_ACEOF
51778 #define HAVE_ST_BLKSIZE 1
51779 _ACEOF
51780
51781 fi
51782
51783
51784
51785
51786
51787
51788   # Set LIB_SETSOCKOPT to -lnsl -lsocket if necessary.
51789   pu_save_LIBS=$LIBS
51790   LIB_SETSOCKOPT=
51791   { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
51792 $as_echo_n "checking for library containing setsockopt... " >&6; }
51793 if test "${ac_cv_search_setsockopt+set}" = set; then
51794   $as_echo_n "(cached) " >&6
51795 else
51796   ac_func_search_save_LIBS=$LIBS
51797 cat >conftest.$ac_ext <<_ACEOF
51798 /* confdefs.h.  */
51799 _ACEOF
51800 cat confdefs.h >>conftest.$ac_ext
51801 cat >>conftest.$ac_ext <<_ACEOF
51802 /* end confdefs.h.  */
51803
51804 /* Override any GCC internal prototype to avoid an error.
51805    Use char because int might match the return type of a GCC
51806    builtin and then its argument prototype would still apply.  */
51807 #ifdef __cplusplus
51808 extern "C"
51809 #endif
51810 char setsockopt ();
51811 int
51812 main ()
51813 {
51814 return setsockopt ();
51815   ;
51816   return 0;
51817 }
51818 _ACEOF
51819 for ac_lib in '' socket; do
51820   if test -z "$ac_lib"; then
51821     ac_res="none required"
51822   else
51823     ac_res=-l$ac_lib
51824     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
51825   fi
51826   rm -f conftest.$ac_objext conftest$ac_exeext
51827 if { (ac_try="$ac_link"
51828 case "(($ac_try" in
51829   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51830   *) ac_try_echo=$ac_try;;
51831 esac
51832 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51833 $as_echo "$ac_try_echo") >&5
51834   (eval "$ac_link") 2>conftest.er1
51835   ac_status=$?
51836   grep -v '^ *+' conftest.er1 >conftest.err
51837   rm -f conftest.er1
51838   cat conftest.err >&5
51839   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51840   (exit $ac_status); } && {
51841          test -z "$ac_c_werror_flag" ||
51842          test ! -s conftest.err
51843        } && test -s conftest$ac_exeext && {
51844          test "$cross_compiling" = yes ||
51845          $as_test_x conftest$ac_exeext
51846        }; then
51847   ac_cv_search_setsockopt=$ac_res
51848 else
51849   $as_echo "$as_me: failed program was:" >&5
51850 sed 's/^/| /' conftest.$ac_ext >&5
51851
51852
51853 fi
51854
51855 rm -rf conftest.dSYM
51856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51857       conftest$ac_exeext
51858   if test "${ac_cv_search_setsockopt+set}" = set; then
51859   break
51860 fi
51861 done
51862 if test "${ac_cv_search_setsockopt+set}" = set; then
51863   :
51864 else
51865   ac_cv_search_setsockopt=no
51866 fi
51867 rm conftest.$ac_ext
51868 LIBS=$ac_func_search_save_LIBS
51869 fi
51870 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
51871 $as_echo "$ac_cv_search_setsockopt" >&6; }
51872 ac_res=$ac_cv_search_setsockopt
51873 if test "$ac_res" != no; then
51874   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51875
51876 else
51877   { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
51878 $as_echo_n "checking for library containing setsockopt... " >&6; }
51879 if test "${ac_cv_search_setsockopt+set}" = set; then
51880   $as_echo_n "(cached) " >&6
51881 else
51882   ac_func_search_save_LIBS=$LIBS
51883 cat >conftest.$ac_ext <<_ACEOF
51884 /* confdefs.h.  */
51885 _ACEOF
51886 cat confdefs.h >>conftest.$ac_ext
51887 cat >>conftest.$ac_ext <<_ACEOF
51888 /* end confdefs.h.  */
51889
51890 /* Override any GCC internal prototype to avoid an error.
51891    Use char because int might match the return type of a GCC
51892    builtin and then its argument prototype would still apply.  */
51893 #ifdef __cplusplus
51894 extern "C"
51895 #endif
51896 char setsockopt ();
51897 int
51898 main ()
51899 {
51900 return setsockopt ();
51901   ;
51902   return 0;
51903 }
51904 _ACEOF
51905 for ac_lib in '' socket; do
51906   if test -z "$ac_lib"; then
51907     ac_res="none required"
51908   else
51909     ac_res=-l$ac_lib
51910     LIBS="-l$ac_lib -lnsl $ac_func_search_save_LIBS"
51911   fi
51912   rm -f conftest.$ac_objext conftest$ac_exeext
51913 if { (ac_try="$ac_link"
51914 case "(($ac_try" in
51915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
51916   *) ac_try_echo=$ac_try;;
51917 esac
51918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
51919 $as_echo "$ac_try_echo") >&5
51920   (eval "$ac_link") 2>conftest.er1
51921   ac_status=$?
51922   grep -v '^ *+' conftest.er1 >conftest.err
51923   rm -f conftest.er1
51924   cat conftest.err >&5
51925   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
51926   (exit $ac_status); } && {
51927          test -z "$ac_c_werror_flag" ||
51928          test ! -s conftest.err
51929        } && test -s conftest$ac_exeext && {
51930          test "$cross_compiling" = yes ||
51931          $as_test_x conftest$ac_exeext
51932        }; then
51933   ac_cv_search_setsockopt=$ac_res
51934 else
51935   $as_echo "$as_me: failed program was:" >&5
51936 sed 's/^/| /' conftest.$ac_ext >&5
51937
51938
51939 fi
51940
51941 rm -rf conftest.dSYM
51942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
51943       conftest$ac_exeext
51944   if test "${ac_cv_search_setsockopt+set}" = set; then
51945   break
51946 fi
51947 done
51948 if test "${ac_cv_search_setsockopt+set}" = set; then
51949   :
51950 else
51951   ac_cv_search_setsockopt=no
51952 fi
51953 rm conftest.$ac_ext
51954 LIBS=$ac_func_search_save_LIBS
51955 fi
51956 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
51957 $as_echo "$ac_cv_search_setsockopt" >&6; }
51958 ac_res=$ac_cv_search_setsockopt
51959 if test "$ac_res" != no; then
51960   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
51961
51962 fi
51963
51964 fi
51965
51966   { $as_echo "$as_me:$LINENO: checking for library containing setsockopt" >&5
51967 $as_echo_n "checking for library containing setsockopt... " >&6; }
51968 if test "${ac_cv_search_setsockopt+set}" = set; then
51969   $as_echo_n "(cached) " >&6
51970 else
51971   ac_func_search_save_LIBS=$LIBS
51972 cat >conftest.$ac_ext <<_ACEOF
51973 /* confdefs.h.  */
51974 _ACEOF
51975 cat confdefs.h >>conftest.$ac_ext
51976 cat >>conftest.$ac_ext <<_ACEOF
51977 /* end confdefs.h.  */
51978
51979 /* Override any GCC internal prototype to avoid an error.
51980    Use char because int might match the return type of a GCC
51981    builtin and then its argument prototype would still apply.  */
51982 #ifdef __cplusplus
51983 extern "C"
51984 #endif
51985 char setsockopt ();
51986 int
51987 main ()
51988 {
51989 return setsockopt ();
51990   ;
51991   return 0;
51992 }
51993 _ACEOF
51994 for ac_lib in '' nsl; do
51995   if test -z "$ac_lib"; then
51996     ac_res="none required"
51997   else
51998     ac_res=-l$ac_lib
51999     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52000   fi
52001   rm -f conftest.$ac_objext conftest$ac_exeext
52002 if { (ac_try="$ac_link"
52003 case "(($ac_try" in
52004   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52005   *) ac_try_echo=$ac_try;;
52006 esac
52007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52008 $as_echo "$ac_try_echo") >&5
52009   (eval "$ac_link") 2>conftest.er1
52010   ac_status=$?
52011   grep -v '^ *+' conftest.er1 >conftest.err
52012   rm -f conftest.er1
52013   cat conftest.err >&5
52014   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52015   (exit $ac_status); } && {
52016          test -z "$ac_c_werror_flag" ||
52017          test ! -s conftest.err
52018        } && test -s conftest$ac_exeext && {
52019          test "$cross_compiling" = yes ||
52020          $as_test_x conftest$ac_exeext
52021        }; then
52022   ac_cv_search_setsockopt=$ac_res
52023 else
52024   $as_echo "$as_me: failed program was:" >&5
52025 sed 's/^/| /' conftest.$ac_ext >&5
52026
52027
52028 fi
52029
52030 rm -rf conftest.dSYM
52031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52032       conftest$ac_exeext
52033   if test "${ac_cv_search_setsockopt+set}" = set; then
52034   break
52035 fi
52036 done
52037 if test "${ac_cv_search_setsockopt+set}" = set; then
52038   :
52039 else
52040   ac_cv_search_setsockopt=no
52041 fi
52042 rm conftest.$ac_ext
52043 LIBS=$ac_func_search_save_LIBS
52044 fi
52045 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_setsockopt" >&5
52046 $as_echo "$ac_cv_search_setsockopt" >&6; }
52047 ac_res=$ac_cv_search_setsockopt
52048 if test "$ac_res" != no; then
52049   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52050
52051 fi
52052
52053
52054   case "$ac_cv_search_setsockopt" in
52055     -l*) LIB_SETSOCKOPT=$ac_cv_search_setsockopt
52056   esac
52057
52058   LIBS=$pu_save_LIBS
52059
52060   enable_rmt() {
52061     if test $ac_cv_header_sys_mtio_h = yes; then
52062       { $as_echo "$as_me:$LINENO: checking for remote tape header files" >&5
52063 $as_echo_n "checking for remote tape header files... " >&6; }
52064 if test "${pu_cv_header_rmt+set}" = set; then
52065   $as_echo_n "(cached) " >&6
52066 else
52067   cat >conftest.$ac_ext <<_ACEOF
52068 /* confdefs.h.  */
52069 _ACEOF
52070 cat confdefs.h >>conftest.$ac_ext
52071 cat >>conftest.$ac_ext <<_ACEOF
52072 /* end confdefs.h.  */
52073
52074 #if HAVE_SGTTY_H
52075 # include <sgtty.h>
52076 #endif
52077 #include <sys/socket.h>
52078 _ACEOF
52079 if { (ac_try="$ac_cpp conftest.$ac_ext"
52080 case "(($ac_try" in
52081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52082   *) ac_try_echo=$ac_try;;
52083 esac
52084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52085 $as_echo "$ac_try_echo") >&5
52086   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52087   ac_status=$?
52088   grep -v '^ *+' conftest.er1 >conftest.err
52089   rm -f conftest.er1
52090   cat conftest.err >&5
52091   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52092   (exit $ac_status); } >/dev/null && {
52093          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
52094          test ! -s conftest.err
52095        }; then
52096   pu_cv_header_rmt=yes
52097 else
52098   $as_echo "$as_me: failed program was:" >&5
52099 sed 's/^/| /' conftest.$ac_ext >&5
52100
52101   pu_cv_header_rmt=no
52102 fi
52103
52104 rm -f conftest.err conftest.$ac_ext
52105 fi
52106 { $as_echo "$as_me:$LINENO: result: $pu_cv_header_rmt" >&5
52107 $as_echo "$pu_cv_header_rmt" >&6; }
52108       test $pu_cv_header_rmt = yes && PU_RMT_PROG='rmt$(EXEEXT)'
52109
52110     fi
52111   }
52112
52113
52114 for ac_header in sys/mtio.h
52115 do
52116 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52118   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52119 $as_echo_n "checking for $ac_header... " >&6; }
52120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52121   $as_echo_n "(cached) " >&6
52122 fi
52123 ac_res=`eval 'as_val=${'$as_ac_Header'}
52124                  $as_echo "$as_val"'`
52125                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52126 $as_echo "$ac_res" >&6; }
52127 else
52128   # Is the header compilable?
52129 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
52130 $as_echo_n "checking $ac_header usability... " >&6; }
52131 cat >conftest.$ac_ext <<_ACEOF
52132 /* confdefs.h.  */
52133 _ACEOF
52134 cat confdefs.h >>conftest.$ac_ext
52135 cat >>conftest.$ac_ext <<_ACEOF
52136 /* end confdefs.h.  */
52137 $ac_includes_default
52138 #include <$ac_header>
52139 _ACEOF
52140 rm -f conftest.$ac_objext
52141 if { (ac_try="$ac_compile"
52142 case "(($ac_try" in
52143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52144   *) ac_try_echo=$ac_try;;
52145 esac
52146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52147 $as_echo "$ac_try_echo") >&5
52148   (eval "$ac_compile") 2>conftest.er1
52149   ac_status=$?
52150   grep -v '^ *+' conftest.er1 >conftest.err
52151   rm -f conftest.er1
52152   cat conftest.err >&5
52153   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52154   (exit $ac_status); } && {
52155          test -z "$ac_c_werror_flag" ||
52156          test ! -s conftest.err
52157        } && test -s conftest.$ac_objext; then
52158   ac_header_compiler=yes
52159 else
52160   $as_echo "$as_me: failed program was:" >&5
52161 sed 's/^/| /' conftest.$ac_ext >&5
52162
52163         ac_header_compiler=no
52164 fi
52165
52166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52167 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
52168 $as_echo "$ac_header_compiler" >&6; }
52169
52170 # Is the header present?
52171 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
52172 $as_echo_n "checking $ac_header presence... " >&6; }
52173 cat >conftest.$ac_ext <<_ACEOF
52174 /* confdefs.h.  */
52175 _ACEOF
52176 cat confdefs.h >>conftest.$ac_ext
52177 cat >>conftest.$ac_ext <<_ACEOF
52178 /* end confdefs.h.  */
52179 #include <$ac_header>
52180 _ACEOF
52181 if { (ac_try="$ac_cpp conftest.$ac_ext"
52182 case "(($ac_try" in
52183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52184   *) ac_try_echo=$ac_try;;
52185 esac
52186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52187 $as_echo "$ac_try_echo") >&5
52188   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
52189   ac_status=$?
52190   grep -v '^ *+' conftest.er1 >conftest.err
52191   rm -f conftest.er1
52192   cat conftest.err >&5
52193   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52194   (exit $ac_status); } >/dev/null && {
52195          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
52196          test ! -s conftest.err
52197        }; then
52198   ac_header_preproc=yes
52199 else
52200   $as_echo "$as_me: failed program was:" >&5
52201 sed 's/^/| /' conftest.$ac_ext >&5
52202
52203   ac_header_preproc=no
52204 fi
52205
52206 rm -f conftest.err conftest.$ac_ext
52207 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
52208 $as_echo "$ac_header_preproc" >&6; }
52209
52210 # So?  What about this header?
52211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
52212   yes:no: )
52213     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
52214 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
52215     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
52216 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
52217     ac_header_preproc=yes
52218     ;;
52219   no:yes:* )
52220     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
52221 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
52222     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
52223 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
52224     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
52225 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
52226     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
52227 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
52228     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
52229 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
52230     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
52231 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
52232     ( cat <<\_ASBOX
52233 ## ------------------------------ ##
52234 ## Report this to bug-tar@gnu.org ##
52235 ## ------------------------------ ##
52236 _ASBOX
52237      ) | sed "s/^/$as_me: WARNING:     /" >&2
52238     ;;
52239 esac
52240 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52241 $as_echo_n "checking for $ac_header... " >&6; }
52242 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52243   $as_echo_n "(cached) " >&6
52244 else
52245   eval "$as_ac_Header=\$ac_header_preproc"
52246 fi
52247 ac_res=`eval 'as_val=${'$as_ac_Header'}
52248                  $as_echo "$as_val"'`
52249                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52250 $as_echo "$ac_res" >&6; }
52251
52252 fi
52253 as_val=`eval 'as_val=${'$as_ac_Header'}
52254                  $as_echo "$as_val"'`
52255    if test "x$as_val" = x""yes; then
52256   cat >>confdefs.h <<_ACEOF
52257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
52258 _ACEOF
52259
52260 fi
52261
52262 done
52263
52264   { $as_echo "$as_me:$LINENO: checking which ioctl field to test for reversed bytes" >&5
52265 $as_echo_n "checking which ioctl field to test for reversed bytes... " >&6; }
52266 if test "${pu_cv_header_mtio_check_field+set}" = set; then
52267   $as_echo_n "(cached) " >&6
52268 else
52269   cat >conftest.$ac_ext <<_ACEOF
52270 /* confdefs.h.  */
52271 _ACEOF
52272 cat confdefs.h >>conftest.$ac_ext
52273 cat >>conftest.$ac_ext <<_ACEOF
52274 /* end confdefs.h.  */
52275 #include <sys/mtio.h>
52276
52277 _ACEOF
52278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
52279   $EGREP "mt_model" >/dev/null 2>&1; then
52280   pu_cv_header_mtio_check_field=mt_model
52281 else
52282   pu_cv_header_mtio_check_field=mt_type
52283 fi
52284 rm -f conftest*
52285
52286 fi
52287 { $as_echo "$as_me:$LINENO: result: $pu_cv_header_mtio_check_field" >&5
52288 $as_echo "$pu_cv_header_mtio_check_field" >&6; }
52289
52290 cat >>confdefs.h <<_ACEOF
52291 #define MTIO_CHECK_FIELD $pu_cv_header_mtio_check_field
52292 _ACEOF
52293
52294
52295
52296
52297   if test "x$DEFAULT_RMT_DIR" != x; then
52298         DEFAULT_RMT_COMMAND=$DEFAULT_RMT_DIR/rmt
52299   else
52300         DEFAULT_RMT_DIR='$(libexecdir)'
52301   fi
52302
52303   { $as_echo "$as_me:$LINENO: checking whether to build rmt" >&5
52304 $as_echo_n "checking whether to build rmt... " >&6; }
52305
52306 # Check whether --with-rmt was given.
52307 if test "${with_rmt+set}" = set; then
52308   withval=$with_rmt; case $withval in
52309                yes|no) { { $as_echo "$as_me:$LINENO: error: Invalid argument to --with-rmt" >&5
52310 $as_echo "$as_me: error: Invalid argument to --with-rmt" >&2;}
52311    { (exit 1); exit 1; }; };;
52312                /*)     DEFAULT_RMT_COMMAND=$withval
52313                        { $as_echo "$as_me:$LINENO: result: no, use $withval instead" >&5
52314 $as_echo "no, use $withval instead" >&6; };;
52315                *)      { { $as_echo "$as_me:$LINENO: error: Argument to --with-rmt must be an absolute file name" >&5
52316 $as_echo "$as_me: error: Argument to --with-rmt must be an absolute file name" >&2;}
52317    { (exit 1); exit 1; }; };;
52318                esac
52319 else
52320   { $as_echo "$as_me:$LINENO: result: yes" >&5
52321 $as_echo "yes" >&6; }
52322                 enable_rmt
52323                 if test "$PU_RMT_PROG" = ""; then
52324                   { $as_echo "$as_me:$LINENO: WARNING: not building rmt, required header files are missing" >&5
52325 $as_echo "$as_me: WARNING: not building rmt, required header files are missing" >&2;}
52326                 fi
52327 fi
52328
52329
52330
52331   if test "x$DEFAULT_RMT_COMMAND" != x; then
52332
52333 cat >>confdefs.h <<_ACEOF
52334 #define DEFAULT_RMT_COMMAND "$DEFAULT_RMT_COMMAND"
52335 _ACEOF
52336
52337   fi
52338
52339
52340
52341
52342
52343
52344
52345
52346
52347
52348
52349
52350
52351
52352
52353
52354
52355
52356
52357
52358
52359
52360
52361
52362
52363
52364
52365
52366
52367
52368
52369
52370
52371
52372
52373
52374
52375
52376
52377
52378
52379
52380
52381
52382
52383
52384
52385
52386
52387
52388
52389
52390 for ac_header in sys/buf.h
52391 do
52392 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
52393 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
52394 $as_echo_n "checking for $ac_header... " >&6; }
52395 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
52396   $as_echo_n "(cached) " >&6
52397 else
52398   cat >conftest.$ac_ext <<_ACEOF
52399 /* confdefs.h.  */
52400 _ACEOF
52401 cat confdefs.h >>conftest.$ac_ext
52402 cat >>conftest.$ac_ext <<_ACEOF
52403 /* end confdefs.h.  */
52404 #if HAVE_SYS_PARAM_H
52405 #include <sys/param.h>
52406 #endif
52407
52408 #include <$ac_header>
52409 _ACEOF
52410 rm -f conftest.$ac_objext
52411 if { (ac_try="$ac_compile"
52412 case "(($ac_try" in
52413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52414   *) ac_try_echo=$ac_try;;
52415 esac
52416 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52417 $as_echo "$ac_try_echo") >&5
52418   (eval "$ac_compile") 2>conftest.er1
52419   ac_status=$?
52420   grep -v '^ *+' conftest.er1 >conftest.err
52421   rm -f conftest.er1
52422   cat conftest.err >&5
52423   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52424   (exit $ac_status); } && {
52425          test -z "$ac_c_werror_flag" ||
52426          test ! -s conftest.err
52427        } && test -s conftest.$ac_objext; then
52428   eval "$as_ac_Header=yes"
52429 else
52430   $as_echo "$as_me: failed program was:" >&5
52431 sed 's/^/| /' conftest.$ac_ext >&5
52432
52433         eval "$as_ac_Header=no"
52434 fi
52435
52436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52437 fi
52438 ac_res=`eval 'as_val=${'$as_ac_Header'}
52439                  $as_echo "$as_val"'`
52440                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52441 $as_echo "$ac_res" >&6; }
52442 as_val=`eval 'as_val=${'$as_ac_Header'}
52443                  $as_echo "$as_val"'`
52444    if test "x$as_val" = x""yes; then
52445   cat >>confdefs.h <<_ACEOF
52446 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
52447 _ACEOF
52448
52449 fi
52450
52451 done
52452
52453
52454
52455
52456   { $as_echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5
52457 $as_echo_n "checking for struct stat.st_blksize... " >&6; }
52458 if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then
52459   $as_echo_n "(cached) " >&6
52460 else
52461   cat >conftest.$ac_ext <<_ACEOF
52462 /* confdefs.h.  */
52463 _ACEOF
52464 cat confdefs.h >>conftest.$ac_ext
52465 cat >>conftest.$ac_ext <<_ACEOF
52466 /* end confdefs.h.  */
52467 $ac_includes_default
52468 int
52469 main ()
52470 {
52471 static struct stat ac_aggr;
52472 if (ac_aggr.st_blksize)
52473 return 0;
52474   ;
52475   return 0;
52476 }
52477 _ACEOF
52478 rm -f conftest.$ac_objext
52479 if { (ac_try="$ac_compile"
52480 case "(($ac_try" in
52481   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52482   *) ac_try_echo=$ac_try;;
52483 esac
52484 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52485 $as_echo "$ac_try_echo") >&5
52486   (eval "$ac_compile") 2>conftest.er1
52487   ac_status=$?
52488   grep -v '^ *+' conftest.er1 >conftest.err
52489   rm -f conftest.er1
52490   cat conftest.err >&5
52491   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52492   (exit $ac_status); } && {
52493          test -z "$ac_c_werror_flag" ||
52494          test ! -s conftest.err
52495        } && test -s conftest.$ac_objext; then
52496   ac_cv_member_struct_stat_st_blksize=yes
52497 else
52498   $as_echo "$as_me: failed program was:" >&5
52499 sed 's/^/| /' conftest.$ac_ext >&5
52500
52501         cat >conftest.$ac_ext <<_ACEOF
52502 /* confdefs.h.  */
52503 _ACEOF
52504 cat confdefs.h >>conftest.$ac_ext
52505 cat >>conftest.$ac_ext <<_ACEOF
52506 /* end confdefs.h.  */
52507 $ac_includes_default
52508 int
52509 main ()
52510 {
52511 static struct stat ac_aggr;
52512 if (sizeof ac_aggr.st_blksize)
52513 return 0;
52514   ;
52515   return 0;
52516 }
52517 _ACEOF
52518 rm -f conftest.$ac_objext
52519 if { (ac_try="$ac_compile"
52520 case "(($ac_try" in
52521   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52522   *) ac_try_echo=$ac_try;;
52523 esac
52524 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52525 $as_echo "$ac_try_echo") >&5
52526   (eval "$ac_compile") 2>conftest.er1
52527   ac_status=$?
52528   grep -v '^ *+' conftest.er1 >conftest.err
52529   rm -f conftest.er1
52530   cat conftest.err >&5
52531   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52532   (exit $ac_status); } && {
52533          test -z "$ac_c_werror_flag" ||
52534          test ! -s conftest.err
52535        } && test -s conftest.$ac_objext; then
52536   ac_cv_member_struct_stat_st_blksize=yes
52537 else
52538   $as_echo "$as_me: failed program was:" >&5
52539 sed 's/^/| /' conftest.$ac_ext >&5
52540
52541         ac_cv_member_struct_stat_st_blksize=no
52542 fi
52543
52544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52545 fi
52546
52547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52548 fi
52549 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5
52550 $as_echo "$ac_cv_member_struct_stat_st_blksize" >&6; }
52551 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then
52552
52553 cat >>confdefs.h <<_ACEOF
52554 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
52555 _ACEOF
52556
52557
52558 fi
52559
52560
52561
52562
52563
52564
52565
52566
52567
52568
52569
52570
52571
52572
52573
52574
52575   { $as_echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
52576 $as_echo_n "checking for library containing gethostbyname... " >&6; }
52577 if test "${ac_cv_search_gethostbyname+set}" = set; then
52578   $as_echo_n "(cached) " >&6
52579 else
52580   ac_func_search_save_LIBS=$LIBS
52581 cat >conftest.$ac_ext <<_ACEOF
52582 /* confdefs.h.  */
52583 _ACEOF
52584 cat confdefs.h >>conftest.$ac_ext
52585 cat >>conftest.$ac_ext <<_ACEOF
52586 /* end confdefs.h.  */
52587
52588 /* Override any GCC internal prototype to avoid an error.
52589    Use char because int might match the return type of a GCC
52590    builtin and then its argument prototype would still apply.  */
52591 #ifdef __cplusplus
52592 extern "C"
52593 #endif
52594 char gethostbyname ();
52595 int
52596 main ()
52597 {
52598 return gethostbyname ();
52599   ;
52600   return 0;
52601 }
52602 _ACEOF
52603 for ac_lib in '' nsl; do
52604   if test -z "$ac_lib"; then
52605     ac_res="none required"
52606   else
52607     ac_res=-l$ac_lib
52608     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
52609   fi
52610   rm -f conftest.$ac_objext conftest$ac_exeext
52611 if { (ac_try="$ac_link"
52612 case "(($ac_try" in
52613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52614   *) ac_try_echo=$ac_try;;
52615 esac
52616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52617 $as_echo "$ac_try_echo") >&5
52618   (eval "$ac_link") 2>conftest.er1
52619   ac_status=$?
52620   grep -v '^ *+' conftest.er1 >conftest.err
52621   rm -f conftest.er1
52622   cat conftest.err >&5
52623   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52624   (exit $ac_status); } && {
52625          test -z "$ac_c_werror_flag" ||
52626          test ! -s conftest.err
52627        } && test -s conftest$ac_exeext && {
52628          test "$cross_compiling" = yes ||
52629          $as_test_x conftest$ac_exeext
52630        }; then
52631   ac_cv_search_gethostbyname=$ac_res
52632 else
52633   $as_echo "$as_me: failed program was:" >&5
52634 sed 's/^/| /' conftest.$ac_ext >&5
52635
52636
52637 fi
52638
52639 rm -rf conftest.dSYM
52640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52641       conftest$ac_exeext
52642   if test "${ac_cv_search_gethostbyname+set}" = set; then
52643   break
52644 fi
52645 done
52646 if test "${ac_cv_search_gethostbyname+set}" = set; then
52647   :
52648 else
52649   ac_cv_search_gethostbyname=no
52650 fi
52651 rm conftest.$ac_ext
52652 LIBS=$ac_func_search_save_LIBS
52653 fi
52654 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
52655 $as_echo "$ac_cv_search_gethostbyname" >&6; }
52656 ac_res=$ac_cv_search_gethostbyname
52657 if test "$ac_res" != no; then
52658   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
52659
52660 fi
52661
52662
52663
52664
52665
52666
52667
52668
52669
52670
52671
52672
52673
52674
52675
52676
52677
52678
52679
52680
52681
52682
52683
52684
52685
52686
52687 { $as_echo "$as_me:$LINENO: checking whether getgrgid is declared" >&5
52688 $as_echo_n "checking whether getgrgid is declared... " >&6; }
52689 if test "${ac_cv_have_decl_getgrgid+set}" = set; then
52690   $as_echo_n "(cached) " >&6
52691 else
52692   cat >conftest.$ac_ext <<_ACEOF
52693 /* confdefs.h.  */
52694 _ACEOF
52695 cat confdefs.h >>conftest.$ac_ext
52696 cat >>conftest.$ac_ext <<_ACEOF
52697 /* end confdefs.h.  */
52698 #include <grp.h>
52699
52700 int
52701 main ()
52702 {
52703 #ifndef getgrgid
52704   (void) getgrgid;
52705 #endif
52706
52707   ;
52708   return 0;
52709 }
52710 _ACEOF
52711 rm -f conftest.$ac_objext
52712 if { (ac_try="$ac_compile"
52713 case "(($ac_try" in
52714   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52715   *) ac_try_echo=$ac_try;;
52716 esac
52717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52718 $as_echo "$ac_try_echo") >&5
52719   (eval "$ac_compile") 2>conftest.er1
52720   ac_status=$?
52721   grep -v '^ *+' conftest.er1 >conftest.err
52722   rm -f conftest.er1
52723   cat conftest.err >&5
52724   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52725   (exit $ac_status); } && {
52726          test -z "$ac_c_werror_flag" ||
52727          test ! -s conftest.err
52728        } && test -s conftest.$ac_objext; then
52729   ac_cv_have_decl_getgrgid=yes
52730 else
52731   $as_echo "$as_me: failed program was:" >&5
52732 sed 's/^/| /' conftest.$ac_ext >&5
52733
52734         ac_cv_have_decl_getgrgid=no
52735 fi
52736
52737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52738 fi
52739 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getgrgid" >&5
52740 $as_echo "$ac_cv_have_decl_getgrgid" >&6; }
52741 if test "x$ac_cv_have_decl_getgrgid" = x""yes; then
52742
52743 cat >>confdefs.h <<_ACEOF
52744 #define HAVE_DECL_GETGRGID 1
52745 _ACEOF
52746
52747
52748 else
52749   cat >>confdefs.h <<_ACEOF
52750 #define HAVE_DECL_GETGRGID 0
52751 _ACEOF
52752
52753
52754 fi
52755
52756
52757 { $as_echo "$as_me:$LINENO: checking whether getpwuid is declared" >&5
52758 $as_echo_n "checking whether getpwuid is declared... " >&6; }
52759 if test "${ac_cv_have_decl_getpwuid+set}" = set; then
52760   $as_echo_n "(cached) " >&6
52761 else
52762   cat >conftest.$ac_ext <<_ACEOF
52763 /* confdefs.h.  */
52764 _ACEOF
52765 cat confdefs.h >>conftest.$ac_ext
52766 cat >>conftest.$ac_ext <<_ACEOF
52767 /* end confdefs.h.  */
52768 #include <pwd.h>
52769
52770 int
52771 main ()
52772 {
52773 #ifndef getpwuid
52774   (void) getpwuid;
52775 #endif
52776
52777   ;
52778   return 0;
52779 }
52780 _ACEOF
52781 rm -f conftest.$ac_objext
52782 if { (ac_try="$ac_compile"
52783 case "(($ac_try" in
52784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52785   *) ac_try_echo=$ac_try;;
52786 esac
52787 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52788 $as_echo "$ac_try_echo") >&5
52789   (eval "$ac_compile") 2>conftest.er1
52790   ac_status=$?
52791   grep -v '^ *+' conftest.er1 >conftest.err
52792   rm -f conftest.er1
52793   cat conftest.err >&5
52794   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52795   (exit $ac_status); } && {
52796          test -z "$ac_c_werror_flag" ||
52797          test ! -s conftest.err
52798        } && test -s conftest.$ac_objext; then
52799   ac_cv_have_decl_getpwuid=yes
52800 else
52801   $as_echo "$as_me: failed program was:" >&5
52802 sed 's/^/| /' conftest.$ac_ext >&5
52803
52804         ac_cv_have_decl_getpwuid=no
52805 fi
52806
52807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52808 fi
52809 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getpwuid" >&5
52810 $as_echo "$ac_cv_have_decl_getpwuid" >&6; }
52811 if test "x$ac_cv_have_decl_getpwuid" = x""yes; then
52812
52813 cat >>confdefs.h <<_ACEOF
52814 #define HAVE_DECL_GETPWUID 1
52815 _ACEOF
52816
52817
52818 else
52819   cat >>confdefs.h <<_ACEOF
52820 #define HAVE_DECL_GETPWUID 0
52821 _ACEOF
52822
52823
52824 fi
52825
52826
52827 { $as_echo "$as_me:$LINENO: checking whether time is declared" >&5
52828 $as_echo_n "checking whether time is declared... " >&6; }
52829 if test "${ac_cv_have_decl_time+set}" = set; then
52830   $as_echo_n "(cached) " >&6
52831 else
52832   cat >conftest.$ac_ext <<_ACEOF
52833 /* confdefs.h.  */
52834 _ACEOF
52835 cat confdefs.h >>conftest.$ac_ext
52836 cat >>conftest.$ac_ext <<_ACEOF
52837 /* end confdefs.h.  */
52838 #include <time.h>
52839
52840 int
52841 main ()
52842 {
52843 #ifndef time
52844   (void) time;
52845 #endif
52846
52847   ;
52848   return 0;
52849 }
52850 _ACEOF
52851 rm -f conftest.$ac_objext
52852 if { (ac_try="$ac_compile"
52853 case "(($ac_try" in
52854   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52855   *) ac_try_echo=$ac_try;;
52856 esac
52857 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52858 $as_echo "$ac_try_echo") >&5
52859   (eval "$ac_compile") 2>conftest.er1
52860   ac_status=$?
52861   grep -v '^ *+' conftest.er1 >conftest.err
52862   rm -f conftest.er1
52863   cat conftest.err >&5
52864   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52865   (exit $ac_status); } && {
52866          test -z "$ac_c_werror_flag" ||
52867          test ! -s conftest.err
52868        } && test -s conftest.$ac_objext; then
52869   ac_cv_have_decl_time=yes
52870 else
52871   $as_echo "$as_me: failed program was:" >&5
52872 sed 's/^/| /' conftest.$ac_ext >&5
52873
52874         ac_cv_have_decl_time=no
52875 fi
52876
52877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
52878 fi
52879 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_time" >&5
52880 $as_echo "$ac_cv_have_decl_time" >&6; }
52881 if test "x$ac_cv_have_decl_time" = x""yes; then
52882
52883 cat >>confdefs.h <<_ACEOF
52884 #define HAVE_DECL_TIME 1
52885 _ACEOF
52886
52887
52888 else
52889   cat >>confdefs.h <<_ACEOF
52890 #define HAVE_DECL_TIME 0
52891 _ACEOF
52892
52893
52894 fi
52895
52896
52897
52898
52899 for ac_func in waitpid
52900 do
52901 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
52902 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
52903 $as_echo_n "checking for $ac_func... " >&6; }
52904 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
52905   $as_echo_n "(cached) " >&6
52906 else
52907   cat >conftest.$ac_ext <<_ACEOF
52908 /* confdefs.h.  */
52909 _ACEOF
52910 cat confdefs.h >>conftest.$ac_ext
52911 cat >>conftest.$ac_ext <<_ACEOF
52912 /* end confdefs.h.  */
52913 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
52914    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
52915 #define $ac_func innocuous_$ac_func
52916
52917 /* System header to define __stub macros and hopefully few prototypes,
52918     which can conflict with char $ac_func (); below.
52919     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
52920     <limits.h> exists even on freestanding compilers.  */
52921
52922 #ifdef __STDC__
52923 # include <limits.h>
52924 #else
52925 # include <assert.h>
52926 #endif
52927
52928 #undef $ac_func
52929
52930 /* Override any GCC internal prototype to avoid an error.
52931    Use char because int might match the return type of a GCC
52932    builtin and then its argument prototype would still apply.  */
52933 #ifdef __cplusplus
52934 extern "C"
52935 #endif
52936 char $ac_func ();
52937 /* The GNU C library defines this for functions which it implements
52938     to always fail with ENOSYS.  Some functions are actually named
52939     something starting with __ and the normal name is an alias.  */
52940 #if defined __stub_$ac_func || defined __stub___$ac_func
52941 choke me
52942 #endif
52943
52944 int
52945 main ()
52946 {
52947 return $ac_func ();
52948   ;
52949   return 0;
52950 }
52951 _ACEOF
52952 rm -f conftest.$ac_objext conftest$ac_exeext
52953 if { (ac_try="$ac_link"
52954 case "(($ac_try" in
52955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
52956   *) ac_try_echo=$ac_try;;
52957 esac
52958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
52959 $as_echo "$ac_try_echo") >&5
52960   (eval "$ac_link") 2>conftest.er1
52961   ac_status=$?
52962   grep -v '^ *+' conftest.er1 >conftest.err
52963   rm -f conftest.er1
52964   cat conftest.err >&5
52965   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
52966   (exit $ac_status); } && {
52967          test -z "$ac_c_werror_flag" ||
52968          test ! -s conftest.err
52969        } && test -s conftest$ac_exeext && {
52970          test "$cross_compiling" = yes ||
52971          $as_test_x conftest$ac_exeext
52972        }; then
52973   eval "$as_ac_var=yes"
52974 else
52975   $as_echo "$as_me: failed program was:" >&5
52976 sed 's/^/| /' conftest.$ac_ext >&5
52977
52978         eval "$as_ac_var=no"
52979 fi
52980
52981 rm -rf conftest.dSYM
52982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
52983       conftest$ac_exeext conftest.$ac_ext
52984 fi
52985 ac_res=`eval 'as_val=${'$as_ac_var'}
52986                  $as_echo "$as_val"'`
52987                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
52988 $as_echo "$ac_res" >&6; }
52989 as_val=`eval 'as_val=${'$as_ac_var'}
52990                  $as_echo "$as_val"'`
52991    if test "x$as_val" = x""yes; then
52992   cat >>confdefs.h <<_ACEOF
52993 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
52994 _ACEOF
52995
52996 else
52997   case " $LIBOBJS " in
52998   *" $ac_func.$ac_objext "* ) ;;
52999   *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
53000  ;;
53001 esac
53002
53003 fi
53004 done
53005
53006
53007
53008 { $as_echo "$as_me:$LINENO: checking for remote shell" >&5
53009 $as_echo_n "checking for remote shell... " >&6; }
53010 if test "${tar_cv_path_RSH+set}" = set; then
53011   $as_echo_n "(cached) " >&6
53012 else
53013   if test -n "$RSH"; then
53014     tar_cv_path_RSH=$RSH
53015   else
53016     tar_cv_path_RSH=no
53017     for ac_file in /usr/ucb/rsh /usr/bin/remsh /usr/bin/rsh /usr/bsd/rsh \
53018         /usr/bin/nsh /usr/bin/rcmd
53019     do
53020       # Prefer a non-symlink rsh to a symlink one, so that binaries built
53021       # on AIX 4.1.4, where /usr/ucb/rsh is a symlink to /usr/bin/rsh
53022       # will run on AIX 4.3.0, which has only /usr/bin/rsh.
53023       if test -f $ac_file; then
53024         if (test -h $ac_file) 2>/dev/null; then
53025           test $tar_cv_path_RSH = no && tar_cv_path_RSH=$ac_file
53026         else
53027           tar_cv_path_RSH=$ac_file
53028           break
53029         fi
53030       fi
53031     done
53032   fi
53033 fi
53034 { $as_echo "$as_me:$LINENO: result: $tar_cv_path_RSH" >&5
53035 $as_echo "$tar_cv_path_RSH" >&6; }
53036 if test $tar_cv_path_RSH = no; then
53037
53038 for ac_header in netdb.h
53039 do
53040 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
53041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53042   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53043 $as_echo_n "checking for $ac_header... " >&6; }
53044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53045   $as_echo_n "(cached) " >&6
53046 fi
53047 ac_res=`eval 'as_val=${'$as_ac_Header'}
53048                  $as_echo "$as_val"'`
53049                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53050 $as_echo "$ac_res" >&6; }
53051 else
53052   # Is the header compilable?
53053 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
53054 $as_echo_n "checking $ac_header usability... " >&6; }
53055 cat >conftest.$ac_ext <<_ACEOF
53056 /* confdefs.h.  */
53057 _ACEOF
53058 cat confdefs.h >>conftest.$ac_ext
53059 cat >>conftest.$ac_ext <<_ACEOF
53060 /* end confdefs.h.  */
53061 $ac_includes_default
53062 #include <$ac_header>
53063 _ACEOF
53064 rm -f conftest.$ac_objext
53065 if { (ac_try="$ac_compile"
53066 case "(($ac_try" in
53067   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53068   *) ac_try_echo=$ac_try;;
53069 esac
53070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53071 $as_echo "$ac_try_echo") >&5
53072   (eval "$ac_compile") 2>conftest.er1
53073   ac_status=$?
53074   grep -v '^ *+' conftest.er1 >conftest.err
53075   rm -f conftest.er1
53076   cat conftest.err >&5
53077   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53078   (exit $ac_status); } && {
53079          test -z "$ac_c_werror_flag" ||
53080          test ! -s conftest.err
53081        } && test -s conftest.$ac_objext; then
53082   ac_header_compiler=yes
53083 else
53084   $as_echo "$as_me: failed program was:" >&5
53085 sed 's/^/| /' conftest.$ac_ext >&5
53086
53087         ac_header_compiler=no
53088 fi
53089
53090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
53091 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
53092 $as_echo "$ac_header_compiler" >&6; }
53093
53094 # Is the header present?
53095 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
53096 $as_echo_n "checking $ac_header presence... " >&6; }
53097 cat >conftest.$ac_ext <<_ACEOF
53098 /* confdefs.h.  */
53099 _ACEOF
53100 cat confdefs.h >>conftest.$ac_ext
53101 cat >>conftest.$ac_ext <<_ACEOF
53102 /* end confdefs.h.  */
53103 #include <$ac_header>
53104 _ACEOF
53105 if { (ac_try="$ac_cpp conftest.$ac_ext"
53106 case "(($ac_try" in
53107   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
53108   *) ac_try_echo=$ac_try;;
53109 esac
53110 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
53111 $as_echo "$ac_try_echo") >&5
53112   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
53113   ac_status=$?
53114   grep -v '^ *+' conftest.er1 >conftest.err
53115   rm -f conftest.er1
53116   cat conftest.err >&5
53117   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
53118   (exit $ac_status); } >/dev/null && {
53119          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
53120          test ! -s conftest.err
53121        }; then
53122   ac_header_preproc=yes
53123 else
53124   $as_echo "$as_me: failed program was:" >&5
53125 sed 's/^/| /' conftest.$ac_ext >&5
53126
53127   ac_header_preproc=no
53128 fi
53129
53130 rm -f conftest.err conftest.$ac_ext
53131 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
53132 $as_echo "$ac_header_preproc" >&6; }
53133
53134 # So?  What about this header?
53135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
53136   yes:no: )
53137     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
53138 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
53139     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
53140 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
53141     ac_header_preproc=yes
53142     ;;
53143   no:yes:* )
53144     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
53145 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
53146     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
53147 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
53148     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
53149 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
53150     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
53151 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
53152     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
53153 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
53154     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
53155 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
53156     ( cat <<\_ASBOX
53157 ## ------------------------------ ##
53158 ## Report this to bug-tar@gnu.org ##
53159 ## ------------------------------ ##
53160 _ASBOX
53161      ) | sed "s/^/$as_me: WARNING:     /" >&2
53162     ;;
53163 esac
53164 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
53165 $as_echo_n "checking for $ac_header... " >&6; }
53166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
53167   $as_echo_n "(cached) " >&6
53168 else
53169   eval "$as_ac_Header=\$ac_header_preproc"
53170 fi
53171 ac_res=`eval 'as_val=${'$as_ac_Header'}
53172                  $as_echo "$as_val"'`
53173                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
53174 $as_echo "$ac_res" >&6; }
53175
53176 fi
53177 as_val=`eval 'as_val=${'$as_ac_Header'}
53178                  $as_echo "$as_val"'`
53179    if test "x$as_val" = x""yes; then
53180   cat >>confdefs.h <<_ACEOF
53181 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
53182 _ACEOF
53183
53184 fi
53185
53186 done
53187
53188 else
53189
53190 cat >>confdefs.h <<_ACEOF
53191 #define REMOTE_SHELL "$tar_cv_path_RSH"
53192 _ACEOF
53193
53194 fi
53195
53196
53197
53198
53199
53200 # Check whether --with-compress was given.
53201 if test "${with_compress+set}" = set; then
53202   withval=$with_compress; tar_cv_compressor_compress=${withval}
53203 else
53204   tar_cv_compressor_compress=compress
53205 fi
53206
53207
53208 cat >>confdefs.h <<_ACEOF
53209 #define COMPRESS_PROGRAM "$tar_cv_compressor_compress"
53210 _ACEOF
53211
53212
53213
53214
53215
53216 # Check whether --with-gzip was given.
53217 if test "${with_gzip+set}" = set; then
53218   withval=$with_gzip; tar_cv_compressor_gzip=${withval}
53219 else
53220   tar_cv_compressor_gzip=gzip
53221 fi
53222
53223
53224 cat >>confdefs.h <<_ACEOF
53225 #define GZIP_PROGRAM "$tar_cv_compressor_gzip"
53226 _ACEOF
53227
53228
53229
53230
53231
53232 # Check whether --with-bzip2 was given.
53233 if test "${with_bzip2+set}" = set; then
53234   withval=$with_bzip2; tar_cv_compressor_bzip2=${withval}
53235 else
53236   tar_cv_compressor_bzip2=bzip2
53237 fi
53238
53239
53240 cat >>confdefs.h <<_ACEOF
53241 #define BZIP2_PROGRAM "$tar_cv_compressor_bzip2"
53242 _ACEOF
53243
53244
53245
53246
53247
53248 # Check whether --with-lzip was given.
53249 if test "${with_lzip+set}" = set; then
53250   withval=$with_lzip; tar_cv_compressor_lzip=${withval}
53251 else
53252   tar_cv_compressor_lzip=lzip
53253 fi
53254
53255
53256 cat >>confdefs.h <<_ACEOF
53257 #define LZIP_PROGRAM "$tar_cv_compressor_lzip"
53258 _ACEOF
53259
53260
53261
53262
53263
53264 # Check whether --with-lzma was given.
53265 if test "${with_lzma+set}" = set; then
53266   withval=$with_lzma; tar_cv_compressor_lzma=${withval}
53267 else
53268   tar_cv_compressor_lzma=lzma
53269 fi
53270
53271
53272 cat >>confdefs.h <<_ACEOF
53273 #define LZMA_PROGRAM "$tar_cv_compressor_lzma"
53274 _ACEOF
53275
53276
53277
53278
53279
53280 # Check whether --with-lzop was given.
53281 if test "${with_lzop+set}" = set; then
53282   withval=$with_lzop; tar_cv_compressor_lzop=${withval}
53283 else
53284   tar_cv_compressor_lzop=lzop
53285 fi
53286
53287
53288 cat >>confdefs.h <<_ACEOF
53289 #define LZOP_PROGRAM "$tar_cv_compressor_lzop"
53290 _ACEOF
53291
53292
53293
53294
53295
53296 # Check whether --with-xz was given.
53297 if test "${with_xz+set}" = set; then
53298   withval=$with_xz; tar_cv_compressor_xz=${withval}
53299 else
53300   tar_cv_compressor_xz=xz
53301 fi
53302
53303
53304 cat >>confdefs.h <<_ACEOF
53305 #define XZ_PROGRAM "$tar_cv_compressor_xz"
53306 _ACEOF
53307
53308
53309 { $as_echo "$as_me:$LINENO: checking for default archive format" >&5
53310 $as_echo_n "checking for default archive format... " >&6; }
53311
53312
53313
53314 if test -z "$DEFAULT_ARCHIVE_FORMAT"; then
53315   DEFAULT_ARCHIVE_FORMAT="GNU"
53316 fi
53317 case $DEFAULT_ARCHIVE_FORMAT in
53318   V7|OLDGNU|USTAR|POSIX|GNU) ;;
53319   *) { { $as_echo "$as_me:$LINENO: error: Invalid format name" >&5
53320 $as_echo "$as_me: error: Invalid format name" >&2;}
53321    { (exit 1); exit 1; }; };;
53322 esac
53323
53324 cat >>confdefs.h <<_ACEOF
53325 #define DEFAULT_ARCHIVE_FORMAT ${DEFAULT_ARCHIVE_FORMAT}_FORMAT
53326 _ACEOF
53327
53328 { $as_echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE_FORMAT" >&5
53329 $as_echo "$DEFAULT_ARCHIVE_FORMAT" >&6; }
53330
53331 { $as_echo "$as_me:$LINENO: checking for default archive" >&5
53332 $as_echo_n "checking for default archive... " >&6; }
53333
53334
53335 if test -z "$DEFAULT_ARCHIVE"; then
53336   DEFAULT_ARCHIVE=-
53337 else
53338   if test -z "`ls $DEFAULT_ARCHIVE 2>/dev/null`"; then
53339     { $as_echo "$as_me:$LINENO: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&5
53340 $as_echo "$as_me: WARNING: DEFAULT_ARCHIVE \`$DEFAULT_ARCHIVE' not found on this system" >&2;}
53341   fi
53342   # FIXME: Look for DEFTAPE in <sys/mtio.h>.
53343   # FIXME: Let DEVICE_PREFIX be configured from the environment.
53344   # FIXME: Rearrange, here.
53345   case $DEFAULT_ARCHIVE in
53346     *[0-7][lmh])
53347
53348 cat >>confdefs.h <<\_ACEOF
53349 #define DENSITY_LETTER 1
53350 _ACEOF
53351
53352       device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7lmh$//'`
53353       ;;
53354     *[0-7])
53355       device_prefix=`echo $DEFAULT_ARCHIVE | sed 's/0-7$//'`
53356       ;;
53357     *)
53358       device_prefix=
53359       ;;
53360   esac
53361   case "$device_prefix" in
53362     ?*)
53363
53364 cat >>confdefs.h <<_ACEOF
53365 #define DEVICE_PREFIX "$device_prefix"
53366 _ACEOF
53367
53368       ;;
53369   esac
53370 fi
53371
53372 cat >>confdefs.h <<_ACEOF
53373 #define DEFAULT_ARCHIVE "$DEFAULT_ARCHIVE"
53374 _ACEOF
53375
53376 { $as_echo "$as_me:$LINENO: result: $DEFAULT_ARCHIVE" >&5
53377 $as_echo "$DEFAULT_ARCHIVE" >&6; }
53378
53379
53380 { $as_echo "$as_me:$LINENO: checking for default blocking" >&5
53381 $as_echo_n "checking for default blocking... " >&6; }
53382 DEFAULT_BLOCKING=${DEFAULT_BLOCKING-20}
53383
53384 cat >>confdefs.h <<_ACEOF
53385 #define DEFAULT_BLOCKING $DEFAULT_BLOCKING
53386 _ACEOF
53387
53388 { $as_echo "$as_me:$LINENO: result: $DEFAULT_BLOCKING" >&5
53389 $as_echo "$DEFAULT_BLOCKING" >&6; }
53390
53391 { $as_echo "$as_me:$LINENO: checking for default quoting style" >&5
53392 $as_echo_n "checking for default quoting style... " >&6; }
53393
53394
53395 DEFAULT_QUOTING_STYLE="escape"
53396
53397
53398 case $DEFAULT_QUOTING_STYLE in
53399           literal|shell|shell-always|c|escape|locale|clocale) ;;
53400 *)  { { $as_echo "$as_me:$LINENO: error: Invalid quoting style" >&5
53401 $as_echo "$as_me: error: Invalid quoting style" >&2;}
53402    { (exit 1); exit 1; }; };;
53403 esac
53404 { $as_echo "$as_me:$LINENO: result: $DEFAULT_QUOTING_STYLE" >&5
53405 $as_echo "$DEFAULT_QUOTING_STYLE" >&6; }
53406 DEFAULT_QUOTING_STYLE=`echo ${DEFAULT_QUOTING_STYLE}|sed 's/-/_/g'`_quoting_style
53407
53408 cat >>confdefs.h <<_ACEOF
53409 #define DEFAULT_QUOTING_STYLE $DEFAULT_QUOTING_STYLE
53410 _ACEOF
53411
53412
53413 # Iconv
53414
53415       if test "X$prefix" = "XNONE"; then
53416     acl_final_prefix="$ac_default_prefix"
53417   else
53418     acl_final_prefix="$prefix"
53419   fi
53420   if test "X$exec_prefix" = "XNONE"; then
53421     acl_final_exec_prefix='${prefix}'
53422   else
53423     acl_final_exec_prefix="$exec_prefix"
53424   fi
53425   acl_save_prefix="$prefix"
53426   prefix="$acl_final_prefix"
53427   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
53428   prefix="$acl_save_prefix"
53429
53430
53431 # Check whether --with-gnu-ld was given.
53432 if test "${with_gnu_ld+set}" = set; then
53433   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
53434 else
53435   with_gnu_ld=no
53436 fi
53437
53438 # Prepare PATH_SEPARATOR.
53439 # The user is always right.
53440 if test "${PATH_SEPARATOR+set}" != set; then
53441   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
53442   # contains only /bin. Note that ksh looks also at the FPATH variable,
53443   # so we have to set that as well for the test.
53444   PATH_SEPARATOR=:
53445   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
53446     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
53447            || PATH_SEPARATOR=';'
53448        }
53449 fi
53450 ac_prog=ld
53451 if test "$GCC" = yes; then
53452   # Check if gcc -print-prog-name=ld gives a path.
53453   { $as_echo "$as_me:$LINENO: checking for ld used by GCC" >&5
53454 $as_echo_n "checking for ld used by GCC... " >&6; }
53455   case $host in
53456   *-*-mingw*)
53457     # gcc leaves a trailing carriage return which upsets mingw
53458     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
53459   *)
53460     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
53461   esac
53462   case $ac_prog in
53463     # Accept absolute paths.
53464     [\\/]* | [A-Za-z]:[\\/]*)
53465       re_direlt='/[^/][^/]*/\.\./'
53466       # Canonicalize the path of ld
53467       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
53468       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
53469         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
53470       done
53471       test -z "$LD" && LD="$ac_prog"
53472       ;;
53473   "")
53474     # If it fails, then pretend we aren't using GCC.
53475     ac_prog=ld
53476     ;;
53477   *)
53478     # If it is relative, then search for the first ld in PATH.
53479     with_gnu_ld=unknown
53480     ;;
53481   esac
53482 elif test "$with_gnu_ld" = yes; then
53483   { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
53484 $as_echo_n "checking for GNU ld... " >&6; }
53485 else
53486   { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
53487 $as_echo_n "checking for non-GNU ld... " >&6; }
53488 fi
53489 if test "${acl_cv_path_LD+set}" = set; then
53490   $as_echo_n "(cached) " >&6
53491 else
53492   if test -z "$LD"; then
53493   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
53494   for ac_dir in $PATH; do
53495     test -z "$ac_dir" && ac_dir=.
53496     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
53497       acl_cv_path_LD="$ac_dir/$ac_prog"
53498       # Check to see if the program is GNU ld.  I'd rather use --version,
53499       # but apparently some GNU ld's only accept -v.
53500       # Break only if it was the GNU/non-GNU ld that we prefer.
53501       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
53502       *GNU* | *'with BFD'*)
53503         test "$with_gnu_ld" != no && break ;;
53504       *)
53505         test "$with_gnu_ld" != yes && break ;;
53506       esac
53507     fi
53508   done
53509   IFS="$ac_save_ifs"
53510 else
53511   acl_cv_path_LD="$LD" # Let the user override the test with a path.
53512 fi
53513 fi
53514
53515 LD="$acl_cv_path_LD"
53516 if test -n "$LD"; then
53517   { $as_echo "$as_me:$LINENO: result: $LD" >&5
53518 $as_echo "$LD" >&6; }
53519 else
53520   { $as_echo "$as_me:$LINENO: result: no" >&5
53521 $as_echo "no" >&6; }
53522 fi
53523 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
53524 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
53525    { (exit 1); exit 1; }; }
53526 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
53527 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
53528 if test "${acl_cv_prog_gnu_ld+set}" = set; then
53529   $as_echo_n "(cached) " >&6
53530 else
53531   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
53532 case `$LD -v 2>&1 </dev/null` in
53533 *GNU* | *'with BFD'*)
53534   acl_cv_prog_gnu_ld=yes ;;
53535 *)
53536   acl_cv_prog_gnu_ld=no ;;
53537 esac
53538 fi
53539 { $as_echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
53540 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
53541 with_gnu_ld=$acl_cv_prog_gnu_ld
53542
53543
53544
53545
53546                                                 { $as_echo "$as_me:$LINENO: checking for shared library run path origin" >&5
53547 $as_echo_n "checking for shared library run path origin... " >&6; }
53548 if test "${acl_cv_rpath+set}" = set; then
53549   $as_echo_n "(cached) " >&6
53550 else
53551
53552     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
53553     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
53554     . ./conftest.sh
53555     rm -f ./conftest.sh
53556     acl_cv_rpath=done
53557
53558 fi
53559 { $as_echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
53560 $as_echo "$acl_cv_rpath" >&6; }
53561   wl="$acl_cv_wl"
53562   acl_libext="$acl_cv_libext"
53563   acl_shlibext="$acl_cv_shlibext"
53564   acl_libname_spec="$acl_cv_libname_spec"
53565   acl_library_names_spec="$acl_cv_library_names_spec"
53566   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
53567   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
53568   acl_hardcode_direct="$acl_cv_hardcode_direct"
53569   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
53570     # Check whether --enable-rpath was given.
53571 if test "${enable_rpath+set}" = set; then
53572   enableval=$enable_rpath; :
53573 else
53574   enable_rpath=yes
53575 fi
53576
53577
53578
53579
53580   acl_libdirstem=lib
53581   acl_libdirstem2=
53582   case "$host_os" in
53583     solaris*)
53584                                     { $as_echo "$as_me:$LINENO: checking for 64-bit host" >&5
53585 $as_echo_n "checking for 64-bit host... " >&6; }
53586 if test "${gl_cv_solaris_64bit+set}" = set; then
53587   $as_echo_n "(cached) " >&6
53588 else
53589   cat >conftest.$ac_ext <<_ACEOF
53590 /* confdefs.h.  */
53591 _ACEOF
53592 cat confdefs.h >>conftest.$ac_ext
53593 cat >>conftest.$ac_ext <<_ACEOF
53594 /* end confdefs.h.  */
53595
53596 #ifdef _LP64
53597 sixtyfour bits
53598 #endif
53599
53600 _ACEOF
53601 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
53602   $EGREP "sixtyfour bits" >/dev/null 2>&1; then
53603   gl_cv_solaris_64bit=yes
53604 else
53605   gl_cv_solaris_64bit=no
53606 fi
53607 rm -f conftest*
53608
53609
53610 fi
53611 { $as_echo "$as_me:$LINENO: result: $gl_cv_solaris_64bit" >&5
53612 $as_echo "$gl_cv_solaris_64bit" >&6; }
53613       if test $gl_cv_solaris_64bit = yes; then
53614         acl_libdirstem=lib/64
53615         case "$host_cpu" in
53616           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
53617           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
53618         esac
53619       fi
53620       ;;
53621     *)
53622       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
53623       if test -n "$searchpath"; then
53624         acl_save_IFS="${IFS=    }"; IFS=":"
53625         for searchdir in $searchpath; do
53626           if test -d "$searchdir"; then
53627             case "$searchdir" in
53628               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
53629               */../ | */.. )
53630                 # Better ignore directories of this form. They are misleading.
53631                 ;;
53632               *) searchdir=`cd "$searchdir" && pwd`
53633                  case "$searchdir" in
53634                    */lib64 ) acl_libdirstem=lib64 ;;
53635                  esac ;;
53636             esac
53637           fi
53638         done
53639         IFS="$acl_save_IFS"
53640       fi
53641       ;;
53642   esac
53643   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
53644
53645
53646
53647
53648
53649
53650
53651
53652
53653
53654
53655
53656     use_additional=yes
53657
53658   acl_save_prefix="$prefix"
53659   prefix="$acl_final_prefix"
53660   acl_save_exec_prefix="$exec_prefix"
53661   exec_prefix="$acl_final_exec_prefix"
53662
53663     eval additional_includedir=\"$includedir\"
53664     eval additional_libdir=\"$libdir\"
53665
53666   exec_prefix="$acl_save_exec_prefix"
53667   prefix="$acl_save_prefix"
53668
53669
53670 # Check whether --with-libiconv-prefix was given.
53671 if test "${with_libiconv_prefix+set}" = set; then
53672   withval=$with_libiconv_prefix;
53673     if test "X$withval" = "Xno"; then
53674       use_additional=no
53675     else
53676       if test "X$withval" = "X"; then
53677
53678   acl_save_prefix="$prefix"
53679   prefix="$acl_final_prefix"
53680   acl_save_exec_prefix="$exec_prefix"
53681   exec_prefix="$acl_final_exec_prefix"
53682
53683           eval additional_includedir=\"$includedir\"
53684           eval additional_libdir=\"$libdir\"
53685
53686   exec_prefix="$acl_save_exec_prefix"
53687   prefix="$acl_save_prefix"
53688
53689       else
53690         additional_includedir="$withval/include"
53691         additional_libdir="$withval/$acl_libdirstem"
53692         if test "$acl_libdirstem2" != "$acl_libdirstem" \
53693            && ! test -d "$withval/$acl_libdirstem"; then
53694           additional_libdir="$withval/$acl_libdirstem2"
53695         fi
53696       fi
53697     fi
53698
53699 fi
53700
53701       LIBICONV=
53702   LTLIBICONV=
53703   INCICONV=
53704   LIBICONV_PREFIX=
53705       HAVE_LIBICONV=
53706   rpathdirs=
53707   ltrpathdirs=
53708   names_already_handled=
53709   names_next_round='iconv '
53710   while test -n "$names_next_round"; do
53711     names_this_round="$names_next_round"
53712     names_next_round=
53713     for name in $names_this_round; do
53714       already_handled=
53715       for n in $names_already_handled; do
53716         if test "$n" = "$name"; then
53717           already_handled=yes
53718           break
53719         fi
53720       done
53721       if test -z "$already_handled"; then
53722         names_already_handled="$names_already_handled $name"
53723                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
53724         eval value=\"\$HAVE_LIB$uppername\"
53725         if test -n "$value"; then
53726           if test "$value" = yes; then
53727             eval value=\"\$LIB$uppername\"
53728             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
53729             eval value=\"\$LTLIB$uppername\"
53730             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
53731           else
53732                                     :
53733           fi
53734         else
53735                               found_dir=
53736           found_la=
53737           found_so=
53738           found_a=
53739           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
53740           if test -n "$acl_shlibext"; then
53741             shrext=".$acl_shlibext"             # typically: shrext=.so
53742           else
53743             shrext=
53744           fi
53745           if test $use_additional = yes; then
53746             dir="$additional_libdir"
53747                                     if test -n "$acl_shlibext"; then
53748               if test -f "$dir/$libname$shrext"; then
53749                 found_dir="$dir"
53750                 found_so="$dir/$libname$shrext"
53751               else
53752                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53753                   ver=`(cd "$dir" && \
53754                         for f in "$libname$shrext".*; do echo "$f"; done \
53755                         | sed -e "s,^$libname$shrext\\\\.,," \
53756                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53757                         | sed 1q ) 2>/dev/null`
53758                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53759                     found_dir="$dir"
53760                     found_so="$dir/$libname$shrext.$ver"
53761                   fi
53762                 else
53763                   eval library_names=\"$acl_library_names_spec\"
53764                   for f in $library_names; do
53765                     if test -f "$dir/$f"; then
53766                       found_dir="$dir"
53767                       found_so="$dir/$f"
53768                       break
53769                     fi
53770                   done
53771                 fi
53772               fi
53773             fi
53774                         if test "X$found_dir" = "X"; then
53775               if test -f "$dir/$libname.$acl_libext"; then
53776                 found_dir="$dir"
53777                 found_a="$dir/$libname.$acl_libext"
53778               fi
53779             fi
53780             if test "X$found_dir" != "X"; then
53781               if test -f "$dir/$libname.la"; then
53782                 found_la="$dir/$libname.la"
53783               fi
53784             fi
53785           fi
53786           if test "X$found_dir" = "X"; then
53787             for x in $LDFLAGS $LTLIBICONV; do
53788
53789   acl_save_prefix="$prefix"
53790   prefix="$acl_final_prefix"
53791   acl_save_exec_prefix="$exec_prefix"
53792   exec_prefix="$acl_final_exec_prefix"
53793   eval x=\"$x\"
53794   exec_prefix="$acl_save_exec_prefix"
53795   prefix="$acl_save_prefix"
53796
53797               case "$x" in
53798                 -L*)
53799                   dir=`echo "X$x" | sed -e 's/^X-L//'`
53800                                     if test -n "$acl_shlibext"; then
53801                     if test -f "$dir/$libname$shrext"; then
53802                       found_dir="$dir"
53803                       found_so="$dir/$libname$shrext"
53804                     else
53805                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
53806                         ver=`(cd "$dir" && \
53807                               for f in "$libname$shrext".*; do echo "$f"; done \
53808                               | sed -e "s,^$libname$shrext\\\\.,," \
53809                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
53810                               | sed 1q ) 2>/dev/null`
53811                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
53812                           found_dir="$dir"
53813                           found_so="$dir/$libname$shrext.$ver"
53814                         fi
53815                       else
53816                         eval library_names=\"$acl_library_names_spec\"
53817                         for f in $library_names; do
53818                           if test -f "$dir/$f"; then
53819                             found_dir="$dir"
53820                             found_so="$dir/$f"
53821                             break
53822                           fi
53823                         done
53824                       fi
53825                     fi
53826                   fi
53827                                     if test "X$found_dir" = "X"; then
53828                     if test -f "$dir/$libname.$acl_libext"; then
53829                       found_dir="$dir"
53830                       found_a="$dir/$libname.$acl_libext"
53831                     fi
53832                   fi
53833                   if test "X$found_dir" != "X"; then
53834                     if test -f "$dir/$libname.la"; then
53835                       found_la="$dir/$libname.la"
53836                     fi
53837                   fi
53838                   ;;
53839               esac
53840               if test "X$found_dir" != "X"; then
53841                 break
53842               fi
53843             done
53844           fi
53845           if test "X$found_dir" != "X"; then
53846                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
53847             if test "X$found_so" != "X"; then
53848                                                         if test "$enable_rpath" = no \
53849                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
53850                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
53851                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53852               else
53853                                                                                 haveit=
53854                 for x in $ltrpathdirs; do
53855                   if test "X$x" = "X$found_dir"; then
53856                     haveit=yes
53857                     break
53858                   fi
53859                 done
53860                 if test -z "$haveit"; then
53861                   ltrpathdirs="$ltrpathdirs $found_dir"
53862                 fi
53863                                 if test "$acl_hardcode_direct" = yes; then
53864                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53865                 else
53866                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
53867                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53868                                                             haveit=
53869                     for x in $rpathdirs; do
53870                       if test "X$x" = "X$found_dir"; then
53871                         haveit=yes
53872                         break
53873                       fi
53874                     done
53875                     if test -z "$haveit"; then
53876                       rpathdirs="$rpathdirs $found_dir"
53877                     fi
53878                   else
53879                                                                                 haveit=
53880                     for x in $LDFLAGS $LIBICONV; do
53881
53882   acl_save_prefix="$prefix"
53883   prefix="$acl_final_prefix"
53884   acl_save_exec_prefix="$exec_prefix"
53885   exec_prefix="$acl_final_exec_prefix"
53886   eval x=\"$x\"
53887   exec_prefix="$acl_save_exec_prefix"
53888   prefix="$acl_save_prefix"
53889
53890                       if test "X$x" = "X-L$found_dir"; then
53891                         haveit=yes
53892                         break
53893                       fi
53894                     done
53895                     if test -z "$haveit"; then
53896                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
53897                     fi
53898                     if test "$acl_hardcode_minus_L" != no; then
53899                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
53900                     else
53901                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
53902                     fi
53903                   fi
53904                 fi
53905               fi
53906             else
53907               if test "X$found_a" != "X"; then
53908                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
53909               else
53910                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
53911               fi
53912             fi
53913                         additional_includedir=
53914             case "$found_dir" in
53915               */$acl_libdirstem | */$acl_libdirstem/)
53916                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
53917                 if test "$name" = 'iconv'; then
53918                   LIBICONV_PREFIX="$basedir"
53919                 fi
53920                 additional_includedir="$basedir/include"
53921                 ;;
53922               */$acl_libdirstem2 | */$acl_libdirstem2/)
53923                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
53924                 if test "$name" = 'iconv'; then
53925                   LIBICONV_PREFIX="$basedir"
53926                 fi
53927                 additional_includedir="$basedir/include"
53928                 ;;
53929             esac
53930             if test "X$additional_includedir" != "X"; then
53931                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
53932                 haveit=
53933                 if test "X$additional_includedir" = "X/usr/local/include"; then
53934                   if test -n "$GCC"; then
53935                     case $host_os in
53936                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
53937                     esac
53938                   fi
53939                 fi
53940                 if test -z "$haveit"; then
53941                   for x in $CPPFLAGS $INCICONV; do
53942
53943   acl_save_prefix="$prefix"
53944   prefix="$acl_final_prefix"
53945   acl_save_exec_prefix="$exec_prefix"
53946   exec_prefix="$acl_final_exec_prefix"
53947   eval x=\"$x\"
53948   exec_prefix="$acl_save_exec_prefix"
53949   prefix="$acl_save_prefix"
53950
53951                     if test "X$x" = "X-I$additional_includedir"; then
53952                       haveit=yes
53953                       break
53954                     fi
53955                   done
53956                   if test -z "$haveit"; then
53957                     if test -d "$additional_includedir"; then
53958                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
53959                     fi
53960                   fi
53961                 fi
53962               fi
53963             fi
53964                         if test -n "$found_la"; then
53965                                                         save_libdir="$libdir"
53966               case "$found_la" in
53967                 */* | *\\*) . "$found_la" ;;
53968                 *) . "./$found_la" ;;
53969               esac
53970               libdir="$save_libdir"
53971                             for dep in $dependency_libs; do
53972                 case "$dep" in
53973                   -L*)
53974                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
53975                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
53976                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
53977                       haveit=
53978                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
53979                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
53980                         if test -n "$GCC"; then
53981                           case $host_os in
53982                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
53983                           esac
53984                         fi
53985                       fi
53986                       if test -z "$haveit"; then
53987                         haveit=
53988                         for x in $LDFLAGS $LIBICONV; do
53989
53990   acl_save_prefix="$prefix"
53991   prefix="$acl_final_prefix"
53992   acl_save_exec_prefix="$exec_prefix"
53993   exec_prefix="$acl_final_exec_prefix"
53994   eval x=\"$x\"
53995   exec_prefix="$acl_save_exec_prefix"
53996   prefix="$acl_save_prefix"
53997
53998                           if test "X$x" = "X-L$additional_libdir"; then
53999                             haveit=yes
54000                             break
54001                           fi
54002                         done
54003                         if test -z "$haveit"; then
54004                           if test -d "$additional_libdir"; then
54005                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
54006                           fi
54007                         fi
54008                         haveit=
54009                         for x in $LDFLAGS $LTLIBICONV; do
54010
54011   acl_save_prefix="$prefix"
54012   prefix="$acl_final_prefix"
54013   acl_save_exec_prefix="$exec_prefix"
54014   exec_prefix="$acl_final_exec_prefix"
54015   eval x=\"$x\"
54016   exec_prefix="$acl_save_exec_prefix"
54017   prefix="$acl_save_prefix"
54018
54019                           if test "X$x" = "X-L$additional_libdir"; then
54020                             haveit=yes
54021                             break
54022                           fi
54023                         done
54024                         if test -z "$haveit"; then
54025                           if test -d "$additional_libdir"; then
54026                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
54027                           fi
54028                         fi
54029                       fi
54030                     fi
54031                     ;;
54032                   -R*)
54033                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
54034                     if test "$enable_rpath" != no; then
54035                                                                   haveit=
54036                       for x in $rpathdirs; do
54037                         if test "X$x" = "X$dir"; then
54038                           haveit=yes
54039                           break
54040                         fi
54041                       done
54042                       if test -z "$haveit"; then
54043                         rpathdirs="$rpathdirs $dir"
54044                       fi
54045                                                                   haveit=
54046                       for x in $ltrpathdirs; do
54047                         if test "X$x" = "X$dir"; then
54048                           haveit=yes
54049                           break
54050                         fi
54051                       done
54052                       if test -z "$haveit"; then
54053                         ltrpathdirs="$ltrpathdirs $dir"
54054                       fi
54055                     fi
54056                     ;;
54057                   -l*)
54058                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
54059                     ;;
54060                   *.la)
54061                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
54062                     ;;
54063                   *)
54064                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
54065                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
54066                     ;;
54067                 esac
54068               done
54069             fi
54070           else
54071                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
54072             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
54073           fi
54074         fi
54075       fi
54076     done
54077   done
54078   if test "X$rpathdirs" != "X"; then
54079     if test -n "$acl_hardcode_libdir_separator"; then
54080                         alldirs=
54081       for found_dir in $rpathdirs; do
54082         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
54083       done
54084             acl_save_libdir="$libdir"
54085       libdir="$alldirs"
54086       eval flag=\"$acl_hardcode_libdir_flag_spec\"
54087       libdir="$acl_save_libdir"
54088       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
54089     else
54090             for found_dir in $rpathdirs; do
54091         acl_save_libdir="$libdir"
54092         libdir="$found_dir"
54093         eval flag=\"$acl_hardcode_libdir_flag_spec\"
54094         libdir="$acl_save_libdir"
54095         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
54096       done
54097     fi
54098   fi
54099   if test "X$ltrpathdirs" != "X"; then
54100             for found_dir in $ltrpathdirs; do
54101       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
54102     done
54103   fi
54104
54105
54106
54107
54108
54109
54110
54111
54112
54113
54114
54115
54116           am_save_CPPFLAGS="$CPPFLAGS"
54117
54118   for element in $INCICONV; do
54119     haveit=
54120     for x in $CPPFLAGS; do
54121
54122   acl_save_prefix="$prefix"
54123   prefix="$acl_final_prefix"
54124   acl_save_exec_prefix="$exec_prefix"
54125   exec_prefix="$acl_final_exec_prefix"
54126   eval x=\"$x\"
54127   exec_prefix="$acl_save_exec_prefix"
54128   prefix="$acl_save_prefix"
54129
54130       if test "X$x" = "X$element"; then
54131         haveit=yes
54132         break
54133       fi
54134     done
54135     if test -z "$haveit"; then
54136       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
54137     fi
54138   done
54139
54140
54141   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
54142 $as_echo_n "checking for iconv... " >&6; }
54143 if test "${am_cv_func_iconv+set}" = set; then
54144   $as_echo_n "(cached) " >&6
54145 else
54146
54147     am_cv_func_iconv="no, consider installing GNU libiconv"
54148     am_cv_lib_iconv=no
54149     cat >conftest.$ac_ext <<_ACEOF
54150 /* confdefs.h.  */
54151 _ACEOF
54152 cat confdefs.h >>conftest.$ac_ext
54153 cat >>conftest.$ac_ext <<_ACEOF
54154 /* end confdefs.h.  */
54155
54156 #include <stdlib.h>
54157 #include <iconv.h>
54158
54159 int
54160 main ()
54161 {
54162 iconv_t cd = iconv_open("","");
54163            iconv(cd,NULL,NULL,NULL,NULL);
54164            iconv_close(cd);
54165   ;
54166   return 0;
54167 }
54168 _ACEOF
54169 rm -f conftest.$ac_objext conftest$ac_exeext
54170 if { (ac_try="$ac_link"
54171 case "(($ac_try" in
54172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54173   *) ac_try_echo=$ac_try;;
54174 esac
54175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54176 $as_echo "$ac_try_echo") >&5
54177   (eval "$ac_link") 2>conftest.er1
54178   ac_status=$?
54179   grep -v '^ *+' conftest.er1 >conftest.err
54180   rm -f conftest.er1
54181   cat conftest.err >&5
54182   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54183   (exit $ac_status); } && {
54184          test -z "$ac_c_werror_flag" ||
54185          test ! -s conftest.err
54186        } && test -s conftest$ac_exeext && {
54187          test "$cross_compiling" = yes ||
54188          $as_test_x conftest$ac_exeext
54189        }; then
54190   am_cv_func_iconv=yes
54191 else
54192   $as_echo "$as_me: failed program was:" >&5
54193 sed 's/^/| /' conftest.$ac_ext >&5
54194
54195
54196 fi
54197
54198 rm -rf conftest.dSYM
54199 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54200       conftest$ac_exeext conftest.$ac_ext
54201     if test "$am_cv_func_iconv" != yes; then
54202       am_save_LIBS="$LIBS"
54203       LIBS="$LIBS $LIBICONV"
54204       cat >conftest.$ac_ext <<_ACEOF
54205 /* confdefs.h.  */
54206 _ACEOF
54207 cat confdefs.h >>conftest.$ac_ext
54208 cat >>conftest.$ac_ext <<_ACEOF
54209 /* end confdefs.h.  */
54210
54211 #include <stdlib.h>
54212 #include <iconv.h>
54213
54214 int
54215 main ()
54216 {
54217 iconv_t cd = iconv_open("","");
54218              iconv(cd,NULL,NULL,NULL,NULL);
54219              iconv_close(cd);
54220   ;
54221   return 0;
54222 }
54223 _ACEOF
54224 rm -f conftest.$ac_objext conftest$ac_exeext
54225 if { (ac_try="$ac_link"
54226 case "(($ac_try" in
54227   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54228   *) ac_try_echo=$ac_try;;
54229 esac
54230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54231 $as_echo "$ac_try_echo") >&5
54232   (eval "$ac_link") 2>conftest.er1
54233   ac_status=$?
54234   grep -v '^ *+' conftest.er1 >conftest.err
54235   rm -f conftest.er1
54236   cat conftest.err >&5
54237   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54238   (exit $ac_status); } && {
54239          test -z "$ac_c_werror_flag" ||
54240          test ! -s conftest.err
54241        } && test -s conftest$ac_exeext && {
54242          test "$cross_compiling" = yes ||
54243          $as_test_x conftest$ac_exeext
54244        }; then
54245   am_cv_lib_iconv=yes
54246         am_cv_func_iconv=yes
54247 else
54248   $as_echo "$as_me: failed program was:" >&5
54249 sed 's/^/| /' conftest.$ac_ext >&5
54250
54251
54252 fi
54253
54254 rm -rf conftest.dSYM
54255 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
54256       conftest$ac_exeext conftest.$ac_ext
54257       LIBS="$am_save_LIBS"
54258     fi
54259
54260 fi
54261 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
54262 $as_echo "$am_cv_func_iconv" >&6; }
54263   if test "$am_cv_func_iconv" = yes; then
54264     { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
54265 $as_echo_n "checking for working iconv... " >&6; }
54266 if test "${am_cv_func_iconv_works+set}" = set; then
54267   $as_echo_n "(cached) " >&6
54268 else
54269
54270                   am_save_LIBS="$LIBS"
54271       if test $am_cv_lib_iconv = yes; then
54272         LIBS="$LIBS $LIBICONV"
54273       fi
54274       if test "$cross_compiling" = yes; then
54275
54276          case "$host_os" in
54277            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
54278            *)            am_cv_func_iconv_works="guessing yes" ;;
54279          esac
54280
54281 else
54282   cat >conftest.$ac_ext <<_ACEOF
54283 /* confdefs.h.  */
54284 _ACEOF
54285 cat confdefs.h >>conftest.$ac_ext
54286 cat >>conftest.$ac_ext <<_ACEOF
54287 /* end confdefs.h.  */
54288
54289 #include <iconv.h>
54290 #include <string.h>
54291 int main ()
54292 {
54293   int result = 0;
54294   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
54295      returns.  */
54296   {
54297     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
54298     if (cd_utf8_to_88591 != (iconv_t)(-1))
54299       {
54300         static const char input[] = "\342\202\254"; /* EURO SIGN */
54301         char buf[10];
54302         const char *inptr = input;
54303         size_t inbytesleft = strlen (input);
54304         char *outptr = buf;
54305         size_t outbytesleft = sizeof (buf);
54306         size_t res = iconv (cd_utf8_to_88591,
54307                             (char **) &inptr, &inbytesleft,
54308                             &outptr, &outbytesleft);
54309         if (res == 0)
54310           result |= 1;
54311         iconv_close (cd_utf8_to_88591);
54312       }
54313   }
54314   /* Test against Solaris 10 bug: Failures are not distinguishable from
54315      successful returns.  */
54316   {
54317     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
54318     if (cd_ascii_to_88591 != (iconv_t)(-1))
54319       {
54320         static const char input[] = "\263";
54321         char buf[10];
54322         const char *inptr = input;
54323         size_t inbytesleft = strlen (input);
54324         char *outptr = buf;
54325         size_t outbytesleft = sizeof (buf);
54326         size_t res = iconv (cd_ascii_to_88591,
54327                             (char **) &inptr, &inbytesleft,
54328                             &outptr, &outbytesleft);
54329         if (res == 0)
54330           result |= 2;
54331         iconv_close (cd_ascii_to_88591);
54332       }
54333   }
54334   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
54335   {
54336     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
54337     if (cd_88591_to_utf8 != (iconv_t)(-1))
54338       {
54339         static const char input[] = "\304";
54340         static char buf[2] = { (char)0xDE, (char)0xAD };
54341         const char *inptr = input;
54342         size_t inbytesleft = 1;
54343         char *outptr = buf;
54344         size_t outbytesleft = 1;
54345         size_t res = iconv (cd_88591_to_utf8,
54346                             (char **) &inptr, &inbytesleft,
54347                             &outptr, &outbytesleft);
54348         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
54349           result |= 4;
54350         iconv_close (cd_88591_to_utf8);
54351       }
54352   }
54353 #if 0 /* This bug could be worked around by the caller.  */
54354   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
54355   {
54356     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
54357     if (cd_88591_to_utf8 != (iconv_t)(-1))
54358       {
54359         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
54360         char buf[50];
54361         const char *inptr = input;
54362         size_t inbytesleft = strlen (input);
54363         char *outptr = buf;
54364         size_t outbytesleft = sizeof (buf);
54365         size_t res = iconv (cd_88591_to_utf8,
54366                             (char **) &inptr, &inbytesleft,
54367                             &outptr, &outbytesleft);
54368         if ((int)res > 0)
54369           result |= 8;
54370         iconv_close (cd_88591_to_utf8);
54371       }
54372   }
54373 #endif
54374   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
54375      provided.  */
54376   if (/* Try standardized names.  */
54377       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
54378       /* Try IRIX, OSF/1 names.  */
54379       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
54380       /* Try AIX names.  */
54381       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
54382       /* Try HP-UX names.  */
54383       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
54384     result |= 16;
54385   return result;
54386 }
54387 _ACEOF
54388 rm -f conftest$ac_exeext
54389 if { (ac_try="$ac_link"
54390 case "(($ac_try" in
54391   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54392   *) ac_try_echo=$ac_try;;
54393 esac
54394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54395 $as_echo "$ac_try_echo") >&5
54396   (eval "$ac_link") 2>&5
54397   ac_status=$?
54398   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
54400   { (case "(($ac_try" in
54401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54402   *) ac_try_echo=$ac_try;;
54403 esac
54404 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54405 $as_echo "$ac_try_echo") >&5
54406   (eval "$ac_try") 2>&5
54407   ac_status=$?
54408   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54409   (exit $ac_status); }; }; then
54410   am_cv_func_iconv_works=yes
54411 else
54412   $as_echo "$as_me: program exited with status $ac_status" >&5
54413 $as_echo "$as_me: failed program was:" >&5
54414 sed 's/^/| /' conftest.$ac_ext >&5
54415
54416 ( exit $ac_status )
54417 am_cv_func_iconv_works=no
54418 fi
54419 rm -rf conftest.dSYM
54420 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
54421 fi
54422
54423
54424       LIBS="$am_save_LIBS"
54425
54426 fi
54427 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
54428 $as_echo "$am_cv_func_iconv_works" >&6; }
54429     case "$am_cv_func_iconv_works" in
54430       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
54431       *)   am_func_iconv=yes ;;
54432     esac
54433   else
54434     am_func_iconv=no am_cv_lib_iconv=no
54435   fi
54436   if test "$am_func_iconv" = yes; then
54437
54438 cat >>confdefs.h <<\_ACEOF
54439 #define HAVE_ICONV 1
54440 _ACEOF
54441
54442   fi
54443   if test "$am_cv_lib_iconv" = yes; then
54444     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
54445 $as_echo_n "checking how to link with libiconv... " >&6; }
54446     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
54447 $as_echo "$LIBICONV" >&6; }
54448   else
54449             CPPFLAGS="$am_save_CPPFLAGS"
54450     LIBICONV=
54451     LTLIBICONV=
54452   fi
54453
54454
54455
54456   if test "$am_cv_func_iconv" = yes; then
54457     { $as_echo "$as_me:$LINENO: checking for iconv declaration" >&5
54458 $as_echo_n "checking for iconv declaration... " >&6; }
54459     if test "${am_cv_proto_iconv+set}" = set; then
54460   $as_echo_n "(cached) " >&6
54461 else
54462
54463       cat >conftest.$ac_ext <<_ACEOF
54464 /* confdefs.h.  */
54465 _ACEOF
54466 cat confdefs.h >>conftest.$ac_ext
54467 cat >>conftest.$ac_ext <<_ACEOF
54468 /* end confdefs.h.  */
54469
54470 #include <stdlib.h>
54471 #include <iconv.h>
54472 extern
54473 #ifdef __cplusplus
54474 "C"
54475 #endif
54476 #if defined(__STDC__) || defined(__cplusplus)
54477 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
54478 #else
54479 size_t iconv();
54480 #endif
54481
54482 int
54483 main ()
54484 {
54485
54486   ;
54487   return 0;
54488 }
54489 _ACEOF
54490 rm -f conftest.$ac_objext
54491 if { (ac_try="$ac_compile"
54492 case "(($ac_try" in
54493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54494   *) ac_try_echo=$ac_try;;
54495 esac
54496 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54497 $as_echo "$ac_try_echo") >&5
54498   (eval "$ac_compile") 2>conftest.er1
54499   ac_status=$?
54500   grep -v '^ *+' conftest.er1 >conftest.err
54501   rm -f conftest.er1
54502   cat conftest.err >&5
54503   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54504   (exit $ac_status); } && {
54505          test -z "$ac_c_werror_flag" ||
54506          test ! -s conftest.err
54507        } && test -s conftest.$ac_objext; then
54508   am_cv_proto_iconv_arg1=""
54509 else
54510   $as_echo "$as_me: failed program was:" >&5
54511 sed 's/^/| /' conftest.$ac_ext >&5
54512
54513         am_cv_proto_iconv_arg1="const"
54514 fi
54515
54516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54517       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);"
54518 fi
54519
54520     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
54521     { $as_echo "$as_me:$LINENO: result:
54522          $am_cv_proto_iconv" >&5
54523 $as_echo "
54524          $am_cv_proto_iconv" >&6; }
54525
54526 cat >>confdefs.h <<_ACEOF
54527 #define ICONV_CONST $am_cv_proto_iconv_arg1
54528 _ACEOF
54529
54530
54531   fi
54532
54533
54534
54535 for ac_header in iconv.h
54536 do
54537 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
54538 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54539   { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
54540 $as_echo_n "checking for $ac_header... " >&6; }
54541 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54542   $as_echo_n "(cached) " >&6
54543 fi
54544 ac_res=`eval 'as_val=${'$as_ac_Header'}
54545                  $as_echo "$as_val"'`
54546                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
54547 $as_echo "$ac_res" >&6; }
54548 else
54549   # Is the header compilable?
54550 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
54551 $as_echo_n "checking $ac_header usability... " >&6; }
54552 cat >conftest.$ac_ext <<_ACEOF
54553 /* confdefs.h.  */
54554 _ACEOF
54555 cat confdefs.h >>conftest.$ac_ext
54556 cat >>conftest.$ac_ext <<_ACEOF
54557 /* end confdefs.h.  */
54558 $ac_includes_default
54559 #include <$ac_header>
54560 _ACEOF
54561 rm -f conftest.$ac_objext
54562 if { (ac_try="$ac_compile"
54563 case "(($ac_try" in
54564   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54565   *) ac_try_echo=$ac_try;;
54566 esac
54567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54568 $as_echo "$ac_try_echo") >&5
54569   (eval "$ac_compile") 2>conftest.er1
54570   ac_status=$?
54571   grep -v '^ *+' conftest.er1 >conftest.err
54572   rm -f conftest.er1
54573   cat conftest.err >&5
54574   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54575   (exit $ac_status); } && {
54576          test -z "$ac_c_werror_flag" ||
54577          test ! -s conftest.err
54578        } && test -s conftest.$ac_objext; then
54579   ac_header_compiler=yes
54580 else
54581   $as_echo "$as_me: failed program was:" >&5
54582 sed 's/^/| /' conftest.$ac_ext >&5
54583
54584         ac_header_compiler=no
54585 fi
54586
54587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54588 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
54589 $as_echo "$ac_header_compiler" >&6; }
54590
54591 # Is the header present?
54592 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
54593 $as_echo_n "checking $ac_header presence... " >&6; }
54594 cat >conftest.$ac_ext <<_ACEOF
54595 /* confdefs.h.  */
54596 _ACEOF
54597 cat confdefs.h >>conftest.$ac_ext
54598 cat >>conftest.$ac_ext <<_ACEOF
54599 /* end confdefs.h.  */
54600 #include <$ac_header>
54601 _ACEOF
54602 if { (ac_try="$ac_cpp conftest.$ac_ext"
54603 case "(($ac_try" in
54604   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54605   *) ac_try_echo=$ac_try;;
54606 esac
54607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54608 $as_echo "$ac_try_echo") >&5
54609   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
54610   ac_status=$?
54611   grep -v '^ *+' conftest.er1 >conftest.err
54612   rm -f conftest.er1
54613   cat conftest.err >&5
54614   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54615   (exit $ac_status); } >/dev/null && {
54616          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
54617          test ! -s conftest.err
54618        }; then
54619   ac_header_preproc=yes
54620 else
54621   $as_echo "$as_me: failed program was:" >&5
54622 sed 's/^/| /' conftest.$ac_ext >&5
54623
54624   ac_header_preproc=no
54625 fi
54626
54627 rm -f conftest.err conftest.$ac_ext
54628 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
54629 $as_echo "$ac_header_preproc" >&6; }
54630
54631 # So?  What about this header?
54632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
54633   yes:no: )
54634     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
54635 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
54636     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
54637 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
54638     ac_header_preproc=yes
54639     ;;
54640   no:yes:* )
54641     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
54642 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
54643     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
54644 $as_echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
54645     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
54646 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
54647     { $as_echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
54648 $as_echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
54649     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
54650 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
54651     { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
54652 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
54653     ( cat <<\_ASBOX
54654 ## ------------------------------ ##
54655 ## Report this to bug-tar@gnu.org ##
54656 ## ------------------------------ ##
54657 _ASBOX
54658      ) | sed "s/^/$as_me: WARNING:     /" >&2
54659     ;;
54660 esac
54661 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
54662 $as_echo_n "checking for $ac_header... " >&6; }
54663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
54664   $as_echo_n "(cached) " >&6
54665 else
54666   eval "$as_ac_Header=\$ac_header_preproc"
54667 fi
54668 ac_res=`eval 'as_val=${'$as_ac_Header'}
54669                  $as_echo "$as_val"'`
54670                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
54671 $as_echo "$ac_res" >&6; }
54672
54673 fi
54674 as_val=`eval 'as_val=${'$as_ac_Header'}
54675                  $as_echo "$as_val"'`
54676    if test "x$as_val" = x""yes; then
54677   cat >>confdefs.h <<_ACEOF
54678 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
54679 _ACEOF
54680
54681 fi
54682
54683 done
54684
54685 { $as_echo "$as_me:$LINENO: checking for iconv_t" >&5
54686 $as_echo_n "checking for iconv_t... " >&6; }
54687 if test "${ac_cv_type_iconv_t+set}" = set; then
54688   $as_echo_n "(cached) " >&6
54689 else
54690   ac_cv_type_iconv_t=no
54691 cat >conftest.$ac_ext <<_ACEOF
54692 /* confdefs.h.  */
54693 _ACEOF
54694 cat confdefs.h >>conftest.$ac_ext
54695 cat >>conftest.$ac_ext <<_ACEOF
54696 /* end confdefs.h.  */
54697
54698 #ifdef HAVE_ICONV_H
54699 # include <iconv.h>
54700 #endif
54701
54702
54703 int
54704 main ()
54705 {
54706 if (sizeof (iconv_t))
54707        return 0;
54708   ;
54709   return 0;
54710 }
54711 _ACEOF
54712 rm -f conftest.$ac_objext
54713 if { (ac_try="$ac_compile"
54714 case "(($ac_try" in
54715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54716   *) ac_try_echo=$ac_try;;
54717 esac
54718 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54719 $as_echo "$ac_try_echo") >&5
54720   (eval "$ac_compile") 2>conftest.er1
54721   ac_status=$?
54722   grep -v '^ *+' conftest.er1 >conftest.err
54723   rm -f conftest.er1
54724   cat conftest.err >&5
54725   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54726   (exit $ac_status); } && {
54727          test -z "$ac_c_werror_flag" ||
54728          test ! -s conftest.err
54729        } && test -s conftest.$ac_objext; then
54730   cat >conftest.$ac_ext <<_ACEOF
54731 /* confdefs.h.  */
54732 _ACEOF
54733 cat confdefs.h >>conftest.$ac_ext
54734 cat >>conftest.$ac_ext <<_ACEOF
54735 /* end confdefs.h.  */
54736
54737 #ifdef HAVE_ICONV_H
54738 # include <iconv.h>
54739 #endif
54740
54741
54742 int
54743 main ()
54744 {
54745 if (sizeof ((iconv_t)))
54746           return 0;
54747   ;
54748   return 0;
54749 }
54750 _ACEOF
54751 rm -f conftest.$ac_objext
54752 if { (ac_try="$ac_compile"
54753 case "(($ac_try" in
54754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
54755   *) ac_try_echo=$ac_try;;
54756 esac
54757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
54758 $as_echo "$ac_try_echo") >&5
54759   (eval "$ac_compile") 2>conftest.er1
54760   ac_status=$?
54761   grep -v '^ *+' conftest.er1 >conftest.err
54762   rm -f conftest.er1
54763   cat conftest.err >&5
54764   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
54765   (exit $ac_status); } && {
54766          test -z "$ac_c_werror_flag" ||
54767          test ! -s conftest.err
54768        } && test -s conftest.$ac_objext; then
54769   :
54770 else
54771   $as_echo "$as_me: failed program was:" >&5
54772 sed 's/^/| /' conftest.$ac_ext >&5
54773
54774         ac_cv_type_iconv_t=yes
54775 fi
54776
54777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54778 else
54779   $as_echo "$as_me: failed program was:" >&5
54780 sed 's/^/| /' conftest.$ac_ext >&5
54781
54782
54783 fi
54784
54785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
54786 fi
54787 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_iconv_t" >&5
54788 $as_echo "$ac_cv_type_iconv_t" >&6; }
54789 if test "x$ac_cv_type_iconv_t" = x""yes; then
54790   :
54791 else
54792
54793 cat >>confdefs.h <<\_ACEOF
54794 #define iconv_t int
54795 _ACEOF
54796
54797 fi
54798
54799
54800 # Gettext.
54801
54802   { $as_echo "$as_me:$LINENO: checking whether NLS is requested" >&5
54803 $as_echo_n "checking whether NLS is requested... " >&6; }
54804     # Check whether --enable-nls was given.
54805 if test "${enable_nls+set}" = set; then
54806   enableval=$enable_nls; USE_NLS=$enableval
54807 else
54808   USE_NLS=yes
54809 fi
54810
54811   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
54812 $as_echo "$USE_NLS" >&6; }
54813
54814
54815
54816
54817       GETTEXT_MACRO_VERSION=0.18
54818
54819
54820
54821
54822 # Prepare PATH_SEPARATOR.
54823 # The user is always right.
54824 if test "${PATH_SEPARATOR+set}" != set; then
54825   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
54826   # contains only /bin. Note that ksh looks also at the FPATH variable,
54827   # so we have to set that as well for the test.
54828   PATH_SEPARATOR=:
54829   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
54830     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
54831            || PATH_SEPARATOR=';'
54832        }
54833 fi
54834
54835 # Find out how to test for executable files. Don't use a zero-byte file,
54836 # as systems may use methods other than mode bits to determine executability.
54837 cat >conf$$.file <<_ASEOF
54838 #! /bin/sh
54839 exit 0
54840 _ASEOF
54841 chmod +x conf$$.file
54842 if test -x conf$$.file >/dev/null 2>&1; then
54843   ac_executable_p="test -x"
54844 else
54845   ac_executable_p="test -f"
54846 fi
54847 rm -f conf$$.file
54848
54849 # Extract the first word of "msgfmt", so it can be a program name with args.
54850 set dummy msgfmt; ac_word=$2
54851 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
54852 $as_echo_n "checking for $ac_word... " >&6; }
54853 if test "${ac_cv_path_MSGFMT+set}" = set; then
54854   $as_echo_n "(cached) " >&6
54855 else
54856   case "$MSGFMT" in
54857   [\\/]* | ?:[\\/]*)
54858     ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
54859     ;;
54860   *)
54861     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
54862     for ac_dir in $PATH; do
54863       IFS="$ac_save_IFS"
54864       test -z "$ac_dir" && ac_dir=.
54865       for ac_exec_ext in '' $ac_executable_extensions; do
54866         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
54867           echo "$as_me: trying $ac_dir/$ac_word..." >&5
54868           if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
54869      (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
54870             ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
54871             break 2
54872           fi
54873         fi
54874       done
54875     done
54876     IFS="$ac_save_IFS"
54877   test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
54878     ;;
54879 esac
54880 fi
54881 MSGFMT="$ac_cv_path_MSGFMT"
54882 if test "$MSGFMT" != ":"; then
54883   { $as_echo "$as_me:$LINENO: result: $MSGFMT" >&5
54884 $as_echo "$MSGFMT" >&6; }
54885 else
54886   { $as_echo "$as_me:$LINENO: result: no" >&5
54887 $as_echo "no" >&6; }
54888 fi
54889
54890   # Extract the first word of "gmsgfmt", so it can be a program name with args.
54891 set dummy gmsgfmt; ac_word=$2
54892 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
54893 $as_echo_n "checking for $ac_word... " >&6; }
54894 if test "${ac_cv_path_GMSGFMT+set}" = set; then
54895   $as_echo_n "(cached) " >&6
54896 else
54897   case $GMSGFMT in
54898   [\\/]* | ?:[\\/]*)
54899   ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
54900   ;;
54901   *)
54902   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
54903 for as_dir in $PATH
54904 do
54905   IFS=$as_save_IFS
54906   test -z "$as_dir" && as_dir=.
54907   for ac_exec_ext in '' $ac_executable_extensions; do
54908   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
54909     ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
54910     $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
54911     break 2
54912   fi
54913 done
54914 done
54915 IFS=$as_save_IFS
54916
54917   test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
54918   ;;
54919 esac
54920 fi
54921 GMSGFMT=$ac_cv_path_GMSGFMT
54922 if test -n "$GMSGFMT"; then
54923   { $as_echo "$as_me:$LINENO: result: $GMSGFMT" >&5
54924 $as_echo "$GMSGFMT" >&6; }
54925 else
54926   { $as_echo "$as_me:$LINENO: result: no" >&5
54927 $as_echo "no" >&6; }
54928 fi
54929
54930
54931
54932     case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
54933     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
54934     *) MSGFMT_015=$MSGFMT ;;
54935   esac
54936
54937   case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
54938     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
54939     *) GMSGFMT_015=$GMSGFMT ;;
54940   esac
54941
54942
54943
54944 # Prepare PATH_SEPARATOR.
54945 # The user is always right.
54946 if test "${PATH_SEPARATOR+set}" != set; then
54947   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
54948   # contains only /bin. Note that ksh looks also at the FPATH variable,
54949   # so we have to set that as well for the test.
54950   PATH_SEPARATOR=:
54951   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
54952     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
54953            || PATH_SEPARATOR=';'
54954        }
54955 fi
54956
54957 # Find out how to test for executable files. Don't use a zero-byte file,
54958 # as systems may use methods other than mode bits to determine executability.
54959 cat >conf$$.file <<_ASEOF
54960 #! /bin/sh
54961 exit 0
54962 _ASEOF
54963 chmod +x conf$$.file
54964 if test -x conf$$.file >/dev/null 2>&1; then
54965   ac_executable_p="test -x"
54966 else
54967   ac_executable_p="test -f"
54968 fi
54969 rm -f conf$$.file
54970
54971 # Extract the first word of "xgettext", so it can be a program name with args.
54972 set dummy xgettext; ac_word=$2
54973 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
54974 $as_echo_n "checking for $ac_word... " >&6; }
54975 if test "${ac_cv_path_XGETTEXT+set}" = set; then
54976   $as_echo_n "(cached) " >&6
54977 else
54978   case "$XGETTEXT" in
54979   [\\/]* | ?:[\\/]*)
54980     ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
54981     ;;
54982   *)
54983     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
54984     for ac_dir in $PATH; do
54985       IFS="$ac_save_IFS"
54986       test -z "$ac_dir" && ac_dir=.
54987       for ac_exec_ext in '' $ac_executable_extensions; do
54988         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
54989           echo "$as_me: trying $ac_dir/$ac_word..." >&5
54990           if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
54991      (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
54992             ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
54993             break 2
54994           fi
54995         fi
54996       done
54997     done
54998     IFS="$ac_save_IFS"
54999   test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
55000     ;;
55001 esac
55002 fi
55003 XGETTEXT="$ac_cv_path_XGETTEXT"
55004 if test "$XGETTEXT" != ":"; then
55005   { $as_echo "$as_me:$LINENO: result: $XGETTEXT" >&5
55006 $as_echo "$XGETTEXT" >&6; }
55007 else
55008   { $as_echo "$as_me:$LINENO: result: no" >&5
55009 $as_echo "no" >&6; }
55010 fi
55011
55012     rm -f messages.po
55013
55014     case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
55015     '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
55016     *) XGETTEXT_015=$XGETTEXT ;;
55017   esac
55018
55019
55020
55021 # Prepare PATH_SEPARATOR.
55022 # The user is always right.
55023 if test "${PATH_SEPARATOR+set}" != set; then
55024   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
55025   # contains only /bin. Note that ksh looks also at the FPATH variable,
55026   # so we have to set that as well for the test.
55027   PATH_SEPARATOR=:
55028   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
55029     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
55030            || PATH_SEPARATOR=';'
55031        }
55032 fi
55033
55034 # Find out how to test for executable files. Don't use a zero-byte file,
55035 # as systems may use methods other than mode bits to determine executability.
55036 cat >conf$$.file <<_ASEOF
55037 #! /bin/sh
55038 exit 0
55039 _ASEOF
55040 chmod +x conf$$.file
55041 if test -x conf$$.file >/dev/null 2>&1; then
55042   ac_executable_p="test -x"
55043 else
55044   ac_executable_p="test -f"
55045 fi
55046 rm -f conf$$.file
55047
55048 # Extract the first word of "msgmerge", so it can be a program name with args.
55049 set dummy msgmerge; ac_word=$2
55050 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
55051 $as_echo_n "checking for $ac_word... " >&6; }
55052 if test "${ac_cv_path_MSGMERGE+set}" = set; then
55053   $as_echo_n "(cached) " >&6
55054 else
55055   case "$MSGMERGE" in
55056   [\\/]* | ?:[\\/]*)
55057     ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
55058     ;;
55059   *)
55060     ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
55061     for ac_dir in $PATH; do
55062       IFS="$ac_save_IFS"
55063       test -z "$ac_dir" && ac_dir=.
55064       for ac_exec_ext in '' $ac_executable_extensions; do
55065         if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
55066           echo "$as_me: trying $ac_dir/$ac_word..." >&5
55067           if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
55068             ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
55069             break 2
55070           fi
55071         fi
55072       done
55073     done
55074     IFS="$ac_save_IFS"
55075   test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
55076     ;;
55077 esac
55078 fi
55079 MSGMERGE="$ac_cv_path_MSGMERGE"
55080 if test "$MSGMERGE" != ":"; then
55081   { $as_echo "$as_me:$LINENO: result: $MSGMERGE" >&5
55082 $as_echo "$MSGMERGE" >&6; }
55083 else
55084   { $as_echo "$as_me:$LINENO: result: no" >&5
55085 $as_echo "no" >&6; }
55086 fi
55087
55088
55089         test -n "$localedir" || localedir='${datadir}/locale'
55090
55091
55092     test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
55093
55094
55095   ac_config_commands="$ac_config_commands po-directories"
55096
55097
55098
55099
55100
55101
55102
55103
55104
55105
55106
55107
55108
55109
55110
55111
55112
55113
55114
55115
55116
55117
55118
55119
55120
55121
55122     { $as_echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5
55123 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
55124 if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then
55125   $as_echo_n "(cached) " >&6
55126 else
55127   gt_save_LIBS="$LIBS"
55128      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
55129      cat >conftest.$ac_ext <<_ACEOF
55130 /* confdefs.h.  */
55131 _ACEOF
55132 cat confdefs.h >>conftest.$ac_ext
55133 cat >>conftest.$ac_ext <<_ACEOF
55134 /* end confdefs.h.  */
55135 #include <CoreFoundation/CFPreferences.h>
55136 int
55137 main ()
55138 {
55139 CFPreferencesCopyAppValue(NULL, NULL)
55140   ;
55141   return 0;
55142 }
55143 _ACEOF
55144 rm -f conftest.$ac_objext conftest$ac_exeext
55145 if { (ac_try="$ac_link"
55146 case "(($ac_try" in
55147   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55148   *) ac_try_echo=$ac_try;;
55149 esac
55150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55151 $as_echo "$ac_try_echo") >&5
55152   (eval "$ac_link") 2>conftest.er1
55153   ac_status=$?
55154   grep -v '^ *+' conftest.er1 >conftest.err
55155   rm -f conftest.er1
55156   cat conftest.err >&5
55157   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55158   (exit $ac_status); } && {
55159          test -z "$ac_c_werror_flag" ||
55160          test ! -s conftest.err
55161        } && test -s conftest$ac_exeext && {
55162          test "$cross_compiling" = yes ||
55163          $as_test_x conftest$ac_exeext
55164        }; then
55165   gt_cv_func_CFPreferencesCopyAppValue=yes
55166 else
55167   $as_echo "$as_me: failed program was:" >&5
55168 sed 's/^/| /' conftest.$ac_ext >&5
55169
55170         gt_cv_func_CFPreferencesCopyAppValue=no
55171 fi
55172
55173 rm -rf conftest.dSYM
55174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55175       conftest$ac_exeext conftest.$ac_ext
55176      LIBS="$gt_save_LIBS"
55177 fi
55178 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
55179 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
55180   if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
55181
55182 cat >>confdefs.h <<\_ACEOF
55183 #define HAVE_CFPREFERENCESCOPYAPPVALUE 1
55184 _ACEOF
55185
55186   fi
55187     { $as_echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5
55188 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
55189 if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then
55190   $as_echo_n "(cached) " >&6
55191 else
55192   gt_save_LIBS="$LIBS"
55193      LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
55194      cat >conftest.$ac_ext <<_ACEOF
55195 /* confdefs.h.  */
55196 _ACEOF
55197 cat confdefs.h >>conftest.$ac_ext
55198 cat >>conftest.$ac_ext <<_ACEOF
55199 /* end confdefs.h.  */
55200 #include <CoreFoundation/CFLocale.h>
55201 int
55202 main ()
55203 {
55204 CFLocaleCopyCurrent();
55205   ;
55206   return 0;
55207 }
55208 _ACEOF
55209 rm -f conftest.$ac_objext conftest$ac_exeext
55210 if { (ac_try="$ac_link"
55211 case "(($ac_try" in
55212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55213   *) ac_try_echo=$ac_try;;
55214 esac
55215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55216 $as_echo "$ac_try_echo") >&5
55217   (eval "$ac_link") 2>conftest.er1
55218   ac_status=$?
55219   grep -v '^ *+' conftest.er1 >conftest.err
55220   rm -f conftest.er1
55221   cat conftest.err >&5
55222   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55223   (exit $ac_status); } && {
55224          test -z "$ac_c_werror_flag" ||
55225          test ! -s conftest.err
55226        } && test -s conftest$ac_exeext && {
55227          test "$cross_compiling" = yes ||
55228          $as_test_x conftest$ac_exeext
55229        }; then
55230   gt_cv_func_CFLocaleCopyCurrent=yes
55231 else
55232   $as_echo "$as_me: failed program was:" >&5
55233 sed 's/^/| /' conftest.$ac_ext >&5
55234
55235         gt_cv_func_CFLocaleCopyCurrent=no
55236 fi
55237
55238 rm -rf conftest.dSYM
55239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55240       conftest$ac_exeext conftest.$ac_ext
55241      LIBS="$gt_save_LIBS"
55242 fi
55243 { $as_echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
55244 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
55245   if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
55246
55247 cat >>confdefs.h <<\_ACEOF
55248 #define HAVE_CFLOCALECOPYCURRENT 1
55249 _ACEOF
55250
55251   fi
55252   INTL_MACOSX_LIBS=
55253   if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
55254     INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
55255   fi
55256
55257
55258
55259
55260
55261
55262   LIBINTL=
55263   LTLIBINTL=
55264   POSUB=
55265
55266     case " $gt_needs " in
55267     *" need-formatstring-macros "*) gt_api_version=3 ;;
55268     *" need-ngettext "*) gt_api_version=2 ;;
55269     *) gt_api_version=1 ;;
55270   esac
55271   gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
55272   gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
55273
55274     if test "$USE_NLS" = "yes"; then
55275     gt_use_preinstalled_gnugettext=no
55276
55277
55278         if test $gt_api_version -ge 3; then
55279           gt_revision_test_code='
55280 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
55281 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
55282 #endif
55283 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
55284 '
55285         else
55286           gt_revision_test_code=
55287         fi
55288         if test $gt_api_version -ge 2; then
55289           gt_expression_test_code=' + * ngettext ("", "", 0)'
55290         else
55291           gt_expression_test_code=
55292         fi
55293
55294         { $as_echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5
55295 $as_echo_n "checking for GNU gettext in libc... " >&6; }
55296 if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then
55297   $as_echo_n "(cached) " >&6
55298 else
55299   cat >conftest.$ac_ext <<_ACEOF
55300 /* confdefs.h.  */
55301 _ACEOF
55302 cat confdefs.h >>conftest.$ac_ext
55303 cat >>conftest.$ac_ext <<_ACEOF
55304 /* end confdefs.h.  */
55305
55306 #include <libintl.h>
55307 $gt_revision_test_code
55308 extern int _nl_msg_cat_cntr;
55309 extern int *_nl_domain_bindings;
55310
55311 int
55312 main ()
55313 {
55314
55315 bindtextdomain ("", "");
55316 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
55317
55318   ;
55319   return 0;
55320 }
55321 _ACEOF
55322 rm -f conftest.$ac_objext conftest$ac_exeext
55323 if { (ac_try="$ac_link"
55324 case "(($ac_try" in
55325   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55326   *) ac_try_echo=$ac_try;;
55327 esac
55328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55329 $as_echo "$ac_try_echo") >&5
55330   (eval "$ac_link") 2>conftest.er1
55331   ac_status=$?
55332   grep -v '^ *+' conftest.er1 >conftest.err
55333   rm -f conftest.er1
55334   cat conftest.err >&5
55335   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55336   (exit $ac_status); } && {
55337          test -z "$ac_c_werror_flag" ||
55338          test ! -s conftest.err
55339        } && test -s conftest$ac_exeext && {
55340          test "$cross_compiling" = yes ||
55341          $as_test_x conftest$ac_exeext
55342        }; then
55343   eval "$gt_func_gnugettext_libc=yes"
55344 else
55345   $as_echo "$as_me: failed program was:" >&5
55346 sed 's/^/| /' conftest.$ac_ext >&5
55347
55348         eval "$gt_func_gnugettext_libc=no"
55349 fi
55350
55351 rm -rf conftest.dSYM
55352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55353       conftest$ac_exeext conftest.$ac_ext
55354 fi
55355 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libc'}
55356                  $as_echo "$as_val"'`
55357                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
55358 $as_echo "$ac_res" >&6; }
55359
55360         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
55361
55362
55363
55364
55365
55366           am_save_CPPFLAGS="$CPPFLAGS"
55367
55368   for element in $INCICONV; do
55369     haveit=
55370     for x in $CPPFLAGS; do
55371
55372   acl_save_prefix="$prefix"
55373   prefix="$acl_final_prefix"
55374   acl_save_exec_prefix="$exec_prefix"
55375   exec_prefix="$acl_final_exec_prefix"
55376   eval x=\"$x\"
55377   exec_prefix="$acl_save_exec_prefix"
55378   prefix="$acl_save_prefix"
55379
55380       if test "X$x" = "X$element"; then
55381         haveit=yes
55382         break
55383       fi
55384     done
55385     if test -z "$haveit"; then
55386       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
55387     fi
55388   done
55389
55390
55391   { $as_echo "$as_me:$LINENO: checking for iconv" >&5
55392 $as_echo_n "checking for iconv... " >&6; }
55393 if test "${am_cv_func_iconv+set}" = set; then
55394   $as_echo_n "(cached) " >&6
55395 else
55396
55397     am_cv_func_iconv="no, consider installing GNU libiconv"
55398     am_cv_lib_iconv=no
55399     cat >conftest.$ac_ext <<_ACEOF
55400 /* confdefs.h.  */
55401 _ACEOF
55402 cat confdefs.h >>conftest.$ac_ext
55403 cat >>conftest.$ac_ext <<_ACEOF
55404 /* end confdefs.h.  */
55405
55406 #include <stdlib.h>
55407 #include <iconv.h>
55408
55409 int
55410 main ()
55411 {
55412 iconv_t cd = iconv_open("","");
55413            iconv(cd,NULL,NULL,NULL,NULL);
55414            iconv_close(cd);
55415   ;
55416   return 0;
55417 }
55418 _ACEOF
55419 rm -f conftest.$ac_objext conftest$ac_exeext
55420 if { (ac_try="$ac_link"
55421 case "(($ac_try" in
55422   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55423   *) ac_try_echo=$ac_try;;
55424 esac
55425 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55426 $as_echo "$ac_try_echo") >&5
55427   (eval "$ac_link") 2>conftest.er1
55428   ac_status=$?
55429   grep -v '^ *+' conftest.er1 >conftest.err
55430   rm -f conftest.er1
55431   cat conftest.err >&5
55432   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55433   (exit $ac_status); } && {
55434          test -z "$ac_c_werror_flag" ||
55435          test ! -s conftest.err
55436        } && test -s conftest$ac_exeext && {
55437          test "$cross_compiling" = yes ||
55438          $as_test_x conftest$ac_exeext
55439        }; then
55440   am_cv_func_iconv=yes
55441 else
55442   $as_echo "$as_me: failed program was:" >&5
55443 sed 's/^/| /' conftest.$ac_ext >&5
55444
55445
55446 fi
55447
55448 rm -rf conftest.dSYM
55449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55450       conftest$ac_exeext conftest.$ac_ext
55451     if test "$am_cv_func_iconv" != yes; then
55452       am_save_LIBS="$LIBS"
55453       LIBS="$LIBS $LIBICONV"
55454       cat >conftest.$ac_ext <<_ACEOF
55455 /* confdefs.h.  */
55456 _ACEOF
55457 cat confdefs.h >>conftest.$ac_ext
55458 cat >>conftest.$ac_ext <<_ACEOF
55459 /* end confdefs.h.  */
55460
55461 #include <stdlib.h>
55462 #include <iconv.h>
55463
55464 int
55465 main ()
55466 {
55467 iconv_t cd = iconv_open("","");
55468              iconv(cd,NULL,NULL,NULL,NULL);
55469              iconv_close(cd);
55470   ;
55471   return 0;
55472 }
55473 _ACEOF
55474 rm -f conftest.$ac_objext conftest$ac_exeext
55475 if { (ac_try="$ac_link"
55476 case "(($ac_try" in
55477   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55478   *) ac_try_echo=$ac_try;;
55479 esac
55480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55481 $as_echo "$ac_try_echo") >&5
55482   (eval "$ac_link") 2>conftest.er1
55483   ac_status=$?
55484   grep -v '^ *+' conftest.er1 >conftest.err
55485   rm -f conftest.er1
55486   cat conftest.err >&5
55487   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55488   (exit $ac_status); } && {
55489          test -z "$ac_c_werror_flag" ||
55490          test ! -s conftest.err
55491        } && test -s conftest$ac_exeext && {
55492          test "$cross_compiling" = yes ||
55493          $as_test_x conftest$ac_exeext
55494        }; then
55495   am_cv_lib_iconv=yes
55496         am_cv_func_iconv=yes
55497 else
55498   $as_echo "$as_me: failed program was:" >&5
55499 sed 's/^/| /' conftest.$ac_ext >&5
55500
55501
55502 fi
55503
55504 rm -rf conftest.dSYM
55505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
55506       conftest$ac_exeext conftest.$ac_ext
55507       LIBS="$am_save_LIBS"
55508     fi
55509
55510 fi
55511 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5
55512 $as_echo "$am_cv_func_iconv" >&6; }
55513   if test "$am_cv_func_iconv" = yes; then
55514     { $as_echo "$as_me:$LINENO: checking for working iconv" >&5
55515 $as_echo_n "checking for working iconv... " >&6; }
55516 if test "${am_cv_func_iconv_works+set}" = set; then
55517   $as_echo_n "(cached) " >&6
55518 else
55519
55520                   am_save_LIBS="$LIBS"
55521       if test $am_cv_lib_iconv = yes; then
55522         LIBS="$LIBS $LIBICONV"
55523       fi
55524       if test "$cross_compiling" = yes; then
55525
55526          case "$host_os" in
55527            aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
55528            *)            am_cv_func_iconv_works="guessing yes" ;;
55529          esac
55530
55531 else
55532   cat >conftest.$ac_ext <<_ACEOF
55533 /* confdefs.h.  */
55534 _ACEOF
55535 cat confdefs.h >>conftest.$ac_ext
55536 cat >>conftest.$ac_ext <<_ACEOF
55537 /* end confdefs.h.  */
55538
55539 #include <iconv.h>
55540 #include <string.h>
55541 int main ()
55542 {
55543   int result = 0;
55544   /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
55545      returns.  */
55546   {
55547     iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
55548     if (cd_utf8_to_88591 != (iconv_t)(-1))
55549       {
55550         static const char input[] = "\342\202\254"; /* EURO SIGN */
55551         char buf[10];
55552         const char *inptr = input;
55553         size_t inbytesleft = strlen (input);
55554         char *outptr = buf;
55555         size_t outbytesleft = sizeof (buf);
55556         size_t res = iconv (cd_utf8_to_88591,
55557                             (char **) &inptr, &inbytesleft,
55558                             &outptr, &outbytesleft);
55559         if (res == 0)
55560           result |= 1;
55561         iconv_close (cd_utf8_to_88591);
55562       }
55563   }
55564   /* Test against Solaris 10 bug: Failures are not distinguishable from
55565      successful returns.  */
55566   {
55567     iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
55568     if (cd_ascii_to_88591 != (iconv_t)(-1))
55569       {
55570         static const char input[] = "\263";
55571         char buf[10];
55572         const char *inptr = input;
55573         size_t inbytesleft = strlen (input);
55574         char *outptr = buf;
55575         size_t outbytesleft = sizeof (buf);
55576         size_t res = iconv (cd_ascii_to_88591,
55577                             (char **) &inptr, &inbytesleft,
55578                             &outptr, &outbytesleft);
55579         if (res == 0)
55580           result |= 2;
55581         iconv_close (cd_ascii_to_88591);
55582       }
55583   }
55584   /* Test against AIX 6.1..7.1 bug: Buffer overrun.  */
55585   {
55586     iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
55587     if (cd_88591_to_utf8 != (iconv_t)(-1))
55588       {
55589         static const char input[] = "\304";
55590         static char buf[2] = { (char)0xDE, (char)0xAD };
55591         const char *inptr = input;
55592         size_t inbytesleft = 1;
55593         char *outptr = buf;
55594         size_t outbytesleft = 1;
55595         size_t res = iconv (cd_88591_to_utf8,
55596                             (char **) &inptr, &inbytesleft,
55597                             &outptr, &outbytesleft);
55598         if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
55599           result |= 4;
55600         iconv_close (cd_88591_to_utf8);
55601       }
55602   }
55603 #if 0 /* This bug could be worked around by the caller.  */
55604   /* Test against HP-UX 11.11 bug: Positive return value instead of 0.  */
55605   {
55606     iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
55607     if (cd_88591_to_utf8 != (iconv_t)(-1))
55608       {
55609         static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
55610         char buf[50];
55611         const char *inptr = input;
55612         size_t inbytesleft = strlen (input);
55613         char *outptr = buf;
55614         size_t outbytesleft = sizeof (buf);
55615         size_t res = iconv (cd_88591_to_utf8,
55616                             (char **) &inptr, &inbytesleft,
55617                             &outptr, &outbytesleft);
55618         if ((int)res > 0)
55619           result |= 8;
55620         iconv_close (cd_88591_to_utf8);
55621       }
55622   }
55623 #endif
55624   /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
55625      provided.  */
55626   if (/* Try standardized names.  */
55627       iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
55628       /* Try IRIX, OSF/1 names.  */
55629       && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
55630       /* Try AIX names.  */
55631       && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
55632       /* Try HP-UX names.  */
55633       && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
55634     result |= 16;
55635   return result;
55636 }
55637 _ACEOF
55638 rm -f conftest$ac_exeext
55639 if { (ac_try="$ac_link"
55640 case "(($ac_try" in
55641   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55642   *) ac_try_echo=$ac_try;;
55643 esac
55644 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55645 $as_echo "$ac_try_echo") >&5
55646   (eval "$ac_link") 2>&5
55647   ac_status=$?
55648   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55649   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
55650   { (case "(($ac_try" in
55651   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
55652   *) ac_try_echo=$ac_try;;
55653 esac
55654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
55655 $as_echo "$ac_try_echo") >&5
55656   (eval "$ac_try") 2>&5
55657   ac_status=$?
55658   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
55659   (exit $ac_status); }; }; then
55660   am_cv_func_iconv_works=yes
55661 else
55662   $as_echo "$as_me: program exited with status $ac_status" >&5
55663 $as_echo "$as_me: failed program was:" >&5
55664 sed 's/^/| /' conftest.$ac_ext >&5
55665
55666 ( exit $ac_status )
55667 am_cv_func_iconv_works=no
55668 fi
55669 rm -rf conftest.dSYM
55670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
55671 fi
55672
55673
55674       LIBS="$am_save_LIBS"
55675
55676 fi
55677 { $as_echo "$as_me:$LINENO: result: $am_cv_func_iconv_works" >&5
55678 $as_echo "$am_cv_func_iconv_works" >&6; }
55679     case "$am_cv_func_iconv_works" in
55680       *no) am_func_iconv=no am_cv_lib_iconv=no ;;
55681       *)   am_func_iconv=yes ;;
55682     esac
55683   else
55684     am_func_iconv=no am_cv_lib_iconv=no
55685   fi
55686   if test "$am_func_iconv" = yes; then
55687
55688 cat >>confdefs.h <<\_ACEOF
55689 #define HAVE_ICONV 1
55690 _ACEOF
55691
55692   fi
55693   if test "$am_cv_lib_iconv" = yes; then
55694     { $as_echo "$as_me:$LINENO: checking how to link with libiconv" >&5
55695 $as_echo_n "checking how to link with libiconv... " >&6; }
55696     { $as_echo "$as_me:$LINENO: result: $LIBICONV" >&5
55697 $as_echo "$LIBICONV" >&6; }
55698   else
55699             CPPFLAGS="$am_save_CPPFLAGS"
55700     LIBICONV=
55701     LTLIBICONV=
55702   fi
55703
55704
55705
55706
55707
55708
55709
55710
55711
55712
55713
55714     use_additional=yes
55715
55716   acl_save_prefix="$prefix"
55717   prefix="$acl_final_prefix"
55718   acl_save_exec_prefix="$exec_prefix"
55719   exec_prefix="$acl_final_exec_prefix"
55720
55721     eval additional_includedir=\"$includedir\"
55722     eval additional_libdir=\"$libdir\"
55723
55724   exec_prefix="$acl_save_exec_prefix"
55725   prefix="$acl_save_prefix"
55726
55727
55728 # Check whether --with-libintl-prefix was given.
55729 if test "${with_libintl_prefix+set}" = set; then
55730   withval=$with_libintl_prefix;
55731     if test "X$withval" = "Xno"; then
55732       use_additional=no
55733     else
55734       if test "X$withval" = "X"; then
55735
55736   acl_save_prefix="$prefix"
55737   prefix="$acl_final_prefix"
55738   acl_save_exec_prefix="$exec_prefix"
55739   exec_prefix="$acl_final_exec_prefix"
55740
55741           eval additional_includedir=\"$includedir\"
55742           eval additional_libdir=\"$libdir\"
55743
55744   exec_prefix="$acl_save_exec_prefix"
55745   prefix="$acl_save_prefix"
55746
55747       else
55748         additional_includedir="$withval/include"
55749         additional_libdir="$withval/$acl_libdirstem"
55750         if test "$acl_libdirstem2" != "$acl_libdirstem" \
55751            && ! test -d "$withval/$acl_libdirstem"; then
55752           additional_libdir="$withval/$acl_libdirstem2"
55753         fi
55754       fi
55755     fi
55756
55757 fi
55758
55759       LIBINTL=
55760   LTLIBINTL=
55761   INCINTL=
55762   LIBINTL_PREFIX=
55763       HAVE_LIBINTL=
55764   rpathdirs=
55765   ltrpathdirs=
55766   names_already_handled=
55767   names_next_round='intl '
55768   while test -n "$names_next_round"; do
55769     names_this_round="$names_next_round"
55770     names_next_round=
55771     for name in $names_this_round; do
55772       already_handled=
55773       for n in $names_already_handled; do
55774         if test "$n" = "$name"; then
55775           already_handled=yes
55776           break
55777         fi
55778       done
55779       if test -z "$already_handled"; then
55780         names_already_handled="$names_already_handled $name"
55781                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
55782         eval value=\"\$HAVE_LIB$uppername\"
55783         if test -n "$value"; then
55784           if test "$value" = yes; then
55785             eval value=\"\$LIB$uppername\"
55786             test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
55787             eval value=\"\$LTLIB$uppername\"
55788             test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
55789           else
55790                                     :
55791           fi
55792         else
55793                               found_dir=
55794           found_la=
55795           found_so=
55796           found_a=
55797           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
55798           if test -n "$acl_shlibext"; then
55799             shrext=".$acl_shlibext"             # typically: shrext=.so
55800           else
55801             shrext=
55802           fi
55803           if test $use_additional = yes; then
55804             dir="$additional_libdir"
55805                                     if test -n "$acl_shlibext"; then
55806               if test -f "$dir/$libname$shrext"; then
55807                 found_dir="$dir"
55808                 found_so="$dir/$libname$shrext"
55809               else
55810                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
55811                   ver=`(cd "$dir" && \
55812                         for f in "$libname$shrext".*; do echo "$f"; done \
55813                         | sed -e "s,^$libname$shrext\\\\.,," \
55814                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
55815                         | sed 1q ) 2>/dev/null`
55816                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
55817                     found_dir="$dir"
55818                     found_so="$dir/$libname$shrext.$ver"
55819                   fi
55820                 else
55821                   eval library_names=\"$acl_library_names_spec\"
55822                   for f in $library_names; do
55823                     if test -f "$dir/$f"; then
55824                       found_dir="$dir"
55825                       found_so="$dir/$f"
55826                       break
55827                     fi
55828                   done
55829                 fi
55830               fi
55831             fi
55832                         if test "X$found_dir" = "X"; then
55833               if test -f "$dir/$libname.$acl_libext"; then
55834                 found_dir="$dir"
55835                 found_a="$dir/$libname.$acl_libext"
55836               fi
55837             fi
55838             if test "X$found_dir" != "X"; then
55839               if test -f "$dir/$libname.la"; then
55840                 found_la="$dir/$libname.la"
55841               fi
55842             fi
55843           fi
55844           if test "X$found_dir" = "X"; then
55845             for x in $LDFLAGS $LTLIBINTL; do
55846
55847   acl_save_prefix="$prefix"
55848   prefix="$acl_final_prefix"
55849   acl_save_exec_prefix="$exec_prefix"
55850   exec_prefix="$acl_final_exec_prefix"
55851   eval x=\"$x\"
55852   exec_prefix="$acl_save_exec_prefix"
55853   prefix="$acl_save_prefix"
55854
55855               case "$x" in
55856                 -L*)
55857                   dir=`echo "X$x" | sed -e 's/^X-L//'`
55858                                     if test -n "$acl_shlibext"; then
55859                     if test -f "$dir/$libname$shrext"; then
55860                       found_dir="$dir"
55861                       found_so="$dir/$libname$shrext"
55862                     else
55863                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
55864                         ver=`(cd "$dir" && \
55865                               for f in "$libname$shrext".*; do echo "$f"; done \
55866                               | sed -e "s,^$libname$shrext\\\\.,," \
55867                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
55868                               | sed 1q ) 2>/dev/null`
55869                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
55870                           found_dir="$dir"
55871                           found_so="$dir/$libname$shrext.$ver"
55872                         fi
55873                       else
55874                         eval library_names=\"$acl_library_names_spec\"
55875                         for f in $library_names; do
55876                           if test -f "$dir/$f"; then
55877                             found_dir="$dir"
55878                             found_so="$dir/$f"
55879                             break
55880                           fi
55881                         done
55882                       fi
55883                     fi
55884                   fi
55885                                     if test "X$found_dir" = "X"; then
55886                     if test -f "$dir/$libname.$acl_libext"; then
55887                       found_dir="$dir"
55888                       found_a="$dir/$libname.$acl_libext"
55889                     fi
55890                   fi
55891                   if test "X$found_dir" != "X"; then
55892                     if test -f "$dir/$libname.la"; then
55893                       found_la="$dir/$libname.la"
55894                     fi
55895                   fi
55896                   ;;
55897               esac
55898               if test "X$found_dir" != "X"; then
55899                 break
55900               fi
55901             done
55902           fi
55903           if test "X$found_dir" != "X"; then
55904                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
55905             if test "X$found_so" != "X"; then
55906                                                         if test "$enable_rpath" = no \
55907                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
55908                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
55909                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
55910               else
55911                                                                                 haveit=
55912                 for x in $ltrpathdirs; do
55913                   if test "X$x" = "X$found_dir"; then
55914                     haveit=yes
55915                     break
55916                   fi
55917                 done
55918                 if test -z "$haveit"; then
55919                   ltrpathdirs="$ltrpathdirs $found_dir"
55920                 fi
55921                                 if test "$acl_hardcode_direct" = yes; then
55922                                                       LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
55923                 else
55924                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
55925                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
55926                                                             haveit=
55927                     for x in $rpathdirs; do
55928                       if test "X$x" = "X$found_dir"; then
55929                         haveit=yes
55930                         break
55931                       fi
55932                     done
55933                     if test -z "$haveit"; then
55934                       rpathdirs="$rpathdirs $found_dir"
55935                     fi
55936                   else
55937                                                                                 haveit=
55938                     for x in $LDFLAGS $LIBINTL; do
55939
55940   acl_save_prefix="$prefix"
55941   prefix="$acl_final_prefix"
55942   acl_save_exec_prefix="$exec_prefix"
55943   exec_prefix="$acl_final_exec_prefix"
55944   eval x=\"$x\"
55945   exec_prefix="$acl_save_exec_prefix"
55946   prefix="$acl_save_prefix"
55947
55948                       if test "X$x" = "X-L$found_dir"; then
55949                         haveit=yes
55950                         break
55951                       fi
55952                     done
55953                     if test -z "$haveit"; then
55954                       LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
55955                     fi
55956                     if test "$acl_hardcode_minus_L" != no; then
55957                                                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
55958                     else
55959                                                                                                                                                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
55960                     fi
55961                   fi
55962                 fi
55963               fi
55964             else
55965               if test "X$found_a" != "X"; then
55966                                 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
55967               else
55968                                                 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
55969               fi
55970             fi
55971                         additional_includedir=
55972             case "$found_dir" in
55973               */$acl_libdirstem | */$acl_libdirstem/)
55974                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
55975                 if test "$name" = 'intl'; then
55976                   LIBINTL_PREFIX="$basedir"
55977                 fi
55978                 additional_includedir="$basedir/include"
55979                 ;;
55980               */$acl_libdirstem2 | */$acl_libdirstem2/)
55981                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
55982                 if test "$name" = 'intl'; then
55983                   LIBINTL_PREFIX="$basedir"
55984                 fi
55985                 additional_includedir="$basedir/include"
55986                 ;;
55987             esac
55988             if test "X$additional_includedir" != "X"; then
55989                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
55990                 haveit=
55991                 if test "X$additional_includedir" = "X/usr/local/include"; then
55992                   if test -n "$GCC"; then
55993                     case $host_os in
55994                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
55995                     esac
55996                   fi
55997                 fi
55998                 if test -z "$haveit"; then
55999                   for x in $CPPFLAGS $INCINTL; do
56000
56001   acl_save_prefix="$prefix"
56002   prefix="$acl_final_prefix"
56003   acl_save_exec_prefix="$exec_prefix"
56004   exec_prefix="$acl_final_exec_prefix"
56005   eval x=\"$x\"
56006   exec_prefix="$acl_save_exec_prefix"
56007   prefix="$acl_save_prefix"
56008
56009                     if test "X$x" = "X-I$additional_includedir"; then
56010                       haveit=yes
56011                       break
56012                     fi
56013                   done
56014                   if test -z "$haveit"; then
56015                     if test -d "$additional_includedir"; then
56016                                             INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
56017                     fi
56018                   fi
56019                 fi
56020               fi
56021             fi
56022                         if test -n "$found_la"; then
56023                                                         save_libdir="$libdir"
56024               case "$found_la" in
56025                 */* | *\\*) . "$found_la" ;;
56026                 *) . "./$found_la" ;;
56027               esac
56028               libdir="$save_libdir"
56029                             for dep in $dependency_libs; do
56030                 case "$dep" in
56031                   -L*)
56032                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
56033                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
56034                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
56035                       haveit=
56036                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
56037                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
56038                         if test -n "$GCC"; then
56039                           case $host_os in
56040                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
56041                           esac
56042                         fi
56043                       fi
56044                       if test -z "$haveit"; then
56045                         haveit=
56046                         for x in $LDFLAGS $LIBINTL; do
56047
56048   acl_save_prefix="$prefix"
56049   prefix="$acl_final_prefix"
56050   acl_save_exec_prefix="$exec_prefix"
56051   exec_prefix="$acl_final_exec_prefix"
56052   eval x=\"$x\"
56053   exec_prefix="$acl_save_exec_prefix"
56054   prefix="$acl_save_prefix"
56055
56056                           if test "X$x" = "X-L$additional_libdir"; then
56057                             haveit=yes
56058                             break
56059                           fi
56060                         done
56061                         if test -z "$haveit"; then
56062                           if test -d "$additional_libdir"; then
56063                                                         LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
56064                           fi
56065                         fi
56066                         haveit=
56067                         for x in $LDFLAGS $LTLIBINTL; do
56068
56069   acl_save_prefix="$prefix"
56070   prefix="$acl_final_prefix"
56071   acl_save_exec_prefix="$exec_prefix"
56072   exec_prefix="$acl_final_exec_prefix"
56073   eval x=\"$x\"
56074   exec_prefix="$acl_save_exec_prefix"
56075   prefix="$acl_save_prefix"
56076
56077                           if test "X$x" = "X-L$additional_libdir"; then
56078                             haveit=yes
56079                             break
56080                           fi
56081                         done
56082                         if test -z "$haveit"; then
56083                           if test -d "$additional_libdir"; then
56084                                                         LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
56085                           fi
56086                         fi
56087                       fi
56088                     fi
56089                     ;;
56090                   -R*)
56091                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
56092                     if test "$enable_rpath" != no; then
56093                                                                   haveit=
56094                       for x in $rpathdirs; do
56095                         if test "X$x" = "X$dir"; then
56096                           haveit=yes
56097                           break
56098                         fi
56099                       done
56100                       if test -z "$haveit"; then
56101                         rpathdirs="$rpathdirs $dir"
56102                       fi
56103                                                                   haveit=
56104                       for x in $ltrpathdirs; do
56105                         if test "X$x" = "X$dir"; then
56106                           haveit=yes
56107                           break
56108                         fi
56109                       done
56110                       if test -z "$haveit"; then
56111                         ltrpathdirs="$ltrpathdirs $dir"
56112                       fi
56113                     fi
56114                     ;;
56115                   -l*)
56116                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
56117                     ;;
56118                   *.la)
56119                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
56120                     ;;
56121                   *)
56122                                         LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
56123                     LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
56124                     ;;
56125                 esac
56126               done
56127             fi
56128           else
56129                                                             LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
56130             LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
56131           fi
56132         fi
56133       fi
56134     done
56135   done
56136   if test "X$rpathdirs" != "X"; then
56137     if test -n "$acl_hardcode_libdir_separator"; then
56138                         alldirs=
56139       for found_dir in $rpathdirs; do
56140         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
56141       done
56142             acl_save_libdir="$libdir"
56143       libdir="$alldirs"
56144       eval flag=\"$acl_hardcode_libdir_flag_spec\"
56145       libdir="$acl_save_libdir"
56146       LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
56147     else
56148             for found_dir in $rpathdirs; do
56149         acl_save_libdir="$libdir"
56150         libdir="$found_dir"
56151         eval flag=\"$acl_hardcode_libdir_flag_spec\"
56152         libdir="$acl_save_libdir"
56153         LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
56154       done
56155     fi
56156   fi
56157   if test "X$ltrpathdirs" != "X"; then
56158             for found_dir in $ltrpathdirs; do
56159       LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
56160     done
56161   fi
56162
56163
56164
56165
56166
56167
56168           { $as_echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5
56169 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
56170 if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then
56171   $as_echo_n "(cached) " >&6
56172 else
56173   gt_save_CPPFLAGS="$CPPFLAGS"
56174             CPPFLAGS="$CPPFLAGS $INCINTL"
56175             gt_save_LIBS="$LIBS"
56176             LIBS="$LIBS $LIBINTL"
56177                         cat >conftest.$ac_ext <<_ACEOF
56178 /* confdefs.h.  */
56179 _ACEOF
56180 cat confdefs.h >>conftest.$ac_ext
56181 cat >>conftest.$ac_ext <<_ACEOF
56182 /* end confdefs.h.  */
56183
56184 #include <libintl.h>
56185 $gt_revision_test_code
56186 extern int _nl_msg_cat_cntr;
56187 extern
56188 #ifdef __cplusplus
56189 "C"
56190 #endif
56191 const char *_nl_expand_alias (const char *);
56192
56193 int
56194 main ()
56195 {
56196
56197 bindtextdomain ("", "");
56198 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
56199
56200   ;
56201   return 0;
56202 }
56203 _ACEOF
56204 rm -f conftest.$ac_objext conftest$ac_exeext
56205 if { (ac_try="$ac_link"
56206 case "(($ac_try" in
56207   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56208   *) ac_try_echo=$ac_try;;
56209 esac
56210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56211 $as_echo "$ac_try_echo") >&5
56212   (eval "$ac_link") 2>conftest.er1
56213   ac_status=$?
56214   grep -v '^ *+' conftest.er1 >conftest.err
56215   rm -f conftest.er1
56216   cat conftest.err >&5
56217   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56218   (exit $ac_status); } && {
56219          test -z "$ac_c_werror_flag" ||
56220          test ! -s conftest.err
56221        } && test -s conftest$ac_exeext && {
56222          test "$cross_compiling" = yes ||
56223          $as_test_x conftest$ac_exeext
56224        }; then
56225   eval "$gt_func_gnugettext_libintl=yes"
56226 else
56227   $as_echo "$as_me: failed program was:" >&5
56228 sed 's/^/| /' conftest.$ac_ext >&5
56229
56230         eval "$gt_func_gnugettext_libintl=no"
56231 fi
56232
56233 rm -rf conftest.dSYM
56234 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56235       conftest$ac_exeext conftest.$ac_ext
56236                         if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
56237               LIBS="$LIBS $LIBICONV"
56238               cat >conftest.$ac_ext <<_ACEOF
56239 /* confdefs.h.  */
56240 _ACEOF
56241 cat confdefs.h >>conftest.$ac_ext
56242 cat >>conftest.$ac_ext <<_ACEOF
56243 /* end confdefs.h.  */
56244
56245 #include <libintl.h>
56246 $gt_revision_test_code
56247 extern int _nl_msg_cat_cntr;
56248 extern
56249 #ifdef __cplusplus
56250 "C"
56251 #endif
56252 const char *_nl_expand_alias (const char *);
56253
56254 int
56255 main ()
56256 {
56257
56258 bindtextdomain ("", "");
56259 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
56260
56261   ;
56262   return 0;
56263 }
56264 _ACEOF
56265 rm -f conftest.$ac_objext conftest$ac_exeext
56266 if { (ac_try="$ac_link"
56267 case "(($ac_try" in
56268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
56269   *) ac_try_echo=$ac_try;;
56270 esac
56271 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
56272 $as_echo "$ac_try_echo") >&5
56273   (eval "$ac_link") 2>conftest.er1
56274   ac_status=$?
56275   grep -v '^ *+' conftest.er1 >conftest.err
56276   rm -f conftest.er1
56277   cat conftest.err >&5
56278   $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
56279   (exit $ac_status); } && {
56280          test -z "$ac_c_werror_flag" ||
56281          test ! -s conftest.err
56282        } && test -s conftest$ac_exeext && {
56283          test "$cross_compiling" = yes ||
56284          $as_test_x conftest$ac_exeext
56285        }; then
56286   LIBINTL="$LIBINTL $LIBICONV"
56287                  LTLIBINTL="$LTLIBINTL $LTLIBICONV"
56288                  eval "$gt_func_gnugettext_libintl=yes"
56289
56290 else
56291   $as_echo "$as_me: failed program was:" >&5
56292 sed 's/^/| /' conftest.$ac_ext >&5
56293
56294
56295 fi
56296
56297 rm -rf conftest.dSYM
56298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
56299       conftest$ac_exeext conftest.$ac_ext
56300             fi
56301             CPPFLAGS="$gt_save_CPPFLAGS"
56302             LIBS="$gt_save_LIBS"
56303 fi
56304 ac_res=`eval 'as_val=${'$gt_func_gnugettext_libintl'}
56305                  $as_echo "$as_val"'`
56306                { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
56307 $as_echo "$ac_res" >&6; }
56308         fi
56309
56310                                         if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
56311            || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
56312                 && test "$PACKAGE" != gettext-runtime \
56313                 && test "$PACKAGE" != gettext-tools; }; then
56314           gt_use_preinstalled_gnugettext=yes
56315         else
56316                     LIBINTL=
56317           LTLIBINTL=
56318           INCINTL=
56319         fi
56320
56321
56322
56323     if test -n "$INTL_MACOSX_LIBS"; then
56324       if test "$gt_use_preinstalled_gnugettext" = "yes" \
56325          || test "$nls_cv_use_gnu_gettext" = "yes"; then
56326                 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
56327         LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
56328       fi
56329     fi
56330
56331     if test "$gt_use_preinstalled_gnugettext" = "yes" \
56332        || test "$nls_cv_use_gnu_gettext" = "yes"; then
56333
56334 cat >>confdefs.h <<\_ACEOF
56335 #define ENABLE_NLS 1
56336 _ACEOF
56337
56338     else
56339       USE_NLS=no
56340     fi
56341   fi
56342
56343   { $as_echo "$as_me:$LINENO: checking whether to use NLS" >&5
56344 $as_echo_n "checking whether to use NLS... " >&6; }
56345   { $as_echo "$as_me:$LINENO: result: $USE_NLS" >&5
56346 $as_echo "$USE_NLS" >&6; }
56347   if test "$USE_NLS" = "yes"; then
56348     { $as_echo "$as_me:$LINENO: checking where the gettext function comes from" >&5
56349 $as_echo_n "checking where the gettext function comes from... " >&6; }
56350     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
56351       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
56352         gt_source="external libintl"
56353       else
56354         gt_source="libc"
56355       fi
56356     else
56357       gt_source="included intl directory"
56358     fi
56359     { $as_echo "$as_me:$LINENO: result: $gt_source" >&5
56360 $as_echo "$gt_source" >&6; }
56361   fi
56362
56363   if test "$USE_NLS" = "yes"; then
56364
56365     if test "$gt_use_preinstalled_gnugettext" = "yes"; then
56366       if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
56367         { $as_echo "$as_me:$LINENO: checking how to link with libintl" >&5
56368 $as_echo_n "checking how to link with libintl... " >&6; }
56369         { $as_echo "$as_me:$LINENO: result: $LIBINTL" >&5
56370 $as_echo "$LIBINTL" >&6; }
56371
56372   for element in $INCINTL; do
56373     haveit=
56374     for x in $CPPFLAGS; do
56375
56376   acl_save_prefix="$prefix"
56377   prefix="$acl_final_prefix"
56378   acl_save_exec_prefix="$exec_prefix"
56379   exec_prefix="$acl_final_exec_prefix"
56380   eval x=\"$x\"
56381   exec_prefix="$acl_save_exec_prefix"
56382   prefix="$acl_save_prefix"
56383
56384       if test "X$x" = "X$element"; then
56385         haveit=yes
56386         break
56387       fi
56388     done
56389     if test -z "$haveit"; then
56390       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
56391     fi
56392   done
56393
56394       fi
56395
56396
56397 cat >>confdefs.h <<\_ACEOF
56398 #define HAVE_GETTEXT 1
56399 _ACEOF
56400
56401
56402 cat >>confdefs.h <<\_ACEOF
56403 #define HAVE_DCGETTEXT 1
56404 _ACEOF
56405
56406     fi
56407
56408         POSUB=po
56409   fi
56410
56411
56412
56413     INTLLIBS="$LIBINTL"
56414
56415
56416
56417
56418
56419
56420
56421
56422 # Initialize the test suite.
56423 ac_config_commands="$ac_config_commands tests/atconfig"
56424
56425
56426 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
56427  # FIXME: tests/preset?
56428
56429 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
56430
56431
56432
56433
56434 # Check whether --enable-backup-scripts was given.
56435 if test "${enable_backup_scripts+set}" = set; then
56436   enableval=$enable_backup_scripts; case $enableval in
56437                yes) BACKUP_LIBEXEC_SCRIPTS='$(BACKUP_LIBEXEC_SCRIPTS_LIST)'
56438                     BACKUP_SBIN_SCRIPTS='$(BACKUP_SBIN_SCRIPTS_LIST)'
56439                     ;;
56440                esac
56441 fi
56442
56443
56444
56445 if date +%Y-%m-%d 2>/dev/null >&2; then
56446         BACKUP_SED_COND='/^\#ELSE_DATE_FORMAT_OK/,/^\#ENDIF_DATE_FORMAT_OK/d;/^\#IF_DATE_FORMAT_OK/d'
56447 else
56448         BACKUP_SED_COND='/^\#IF_DATE_FORMAT_OK/,/^\#ELSE_DATE_FORMAT_OK/d;/^\#ENDIF_DATE_FORMAT_OK/d'
56449 fi
56450
56451 ac_config_files="$ac_config_files Makefile doc/Makefile gnu/Makefile lib/Makefile po/Makefile.in scripts/Makefile rmt/Makefile src/Makefile"
56452
56453 cat >confcache <<\_ACEOF
56454 # This file is a shell script that caches the results of configure
56455 # tests run on this system so they can be shared between configure
56456 # scripts and configure runs, see configure's option --config-cache.
56457 # It is not useful on other systems.  If it contains results you don't
56458 # want to keep, you may remove or edit it.
56459 #
56460 # config.status only pays attention to the cache file if you give it
56461 # the --recheck option to rerun configure.
56462 #
56463 # `ac_cv_env_foo' variables (set or unset) will be overridden when
56464 # loading this file, other *unset* `ac_cv_foo' will be assigned the
56465 # following values.
56466
56467 _ACEOF
56468
56469 # The following way of writing the cache mishandles newlines in values,
56470 # but we know of no workaround that is simple, portable, and efficient.
56471 # So, we kill variables containing newlines.
56472 # Ultrix sh set writes to stderr and can't be redirected directly,
56473 # and sets the high bit in the cache file unless we assign to the vars.
56474 (
56475   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
56476     eval ac_val=\$$ac_var
56477     case $ac_val in #(
56478     *${as_nl}*)
56479       case $ac_var in #(
56480       *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
56481 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
56482       esac
56483       case $ac_var in #(
56484       _ | IFS | as_nl) ;; #(
56485       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
56486       *) $as_unset $ac_var ;;
56487       esac ;;
56488     esac
56489   done
56490
56491   (set) 2>&1 |
56492     case $as_nl`(ac_space=' '; set) 2>&1` in #(
56493     *${as_nl}ac_space=\ *)
56494       # `set' does not quote correctly, so add quotes (double-quote
56495       # substitution turns \\\\ into \\, and sed turns \\ into \).
56496       sed -n \
56497         "s/'/'\\\\''/g;
56498           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
56499       ;; #(
56500     *)
56501       # `set' quotes correctly as required by POSIX, so do not add quotes.
56502       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
56503       ;;
56504     esac |
56505     sort
56506 ) |
56507   sed '
56508      /^ac_cv_env_/b end
56509      t clear
56510      :clear
56511      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
56512      t end
56513      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
56514      :end' >>confcache
56515 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
56516   if test -w "$cache_file"; then
56517     test "x$cache_file" != "x/dev/null" &&
56518       { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
56519 $as_echo "$as_me: updating cache $cache_file" >&6;}
56520     cat confcache >$cache_file
56521   else
56522     { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
56523 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
56524   fi
56525 fi
56526 rm -f confcache
56527
56528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
56529 # Let make expand exec_prefix.
56530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
56531
56532 DEFS=-DHAVE_CONFIG_H
56533
56534 ac_libobjs=
56535 ac_ltlibobjs=
56536 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
56537   # 1. Remove the extension, and $U if already installed.
56538   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
56539   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
56540   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
56541   #    will be set to the directory where LIBOBJS objects are built.
56542   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
56543   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
56544 done
56545 LIBOBJS=$ac_libobjs
56546
56547 LTLIBOBJS=$ac_ltlibobjs
56548
56549
56550  if test -n "$EXEEXT"; then
56551   am__EXEEXT_TRUE=
56552   am__EXEEXT_FALSE='#'
56553 else
56554   am__EXEEXT_TRUE='#'
56555   am__EXEEXT_FALSE=
56556 fi
56557
56558 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
56559   { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
56560 Usually this means the macro was only invoked conditionally." >&5
56561 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
56562 Usually this means the macro was only invoked conditionally." >&2;}
56563    { (exit 1); exit 1; }; }
56564 fi
56565 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
56566   { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
56567 Usually this means the macro was only invoked conditionally." >&5
56568 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
56569 Usually this means the macro was only invoked conditionally." >&2;}
56570    { (exit 1); exit 1; }; }
56571 fi
56572 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
56573   { { $as_echo "$as_me:$LINENO: error: conditional \"GL_COND_LIBTOOL\" was never defined.
56574 Usually this means the macro was only invoked conditionally." >&5
56575 $as_echo "$as_me: error: conditional \"GL_COND_LIBTOOL\" was never defined.
56576 Usually this means the macro was only invoked conditionally." >&2;}
56577    { (exit 1); exit 1; }; }
56578 fi
56579 if test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_TRUE}" && test -z "${LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH_FALSE}"; then
56580   { { $as_echo "$as_me:$LINENO: error: conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
56581 Usually this means the macro was only invoked conditionally." >&5
56582 $as_echo "$as_me: error: conditional \"LIBUNISTRING_COMPILE_UNIWIDTH_WIDTH\" was never defined.
56583 Usually this means the macro was only invoked conditionally." >&2;}
56584    { (exit 1); exit 1; }; }
56585 fi
56586
56587     gl_libobjs=
56588     gl_ltlibobjs=
56589     if test -n "$gl_LIBOBJS"; then
56590       # Remove the extension.
56591       sed_drop_objext='s/\.o$//;s/\.obj$//'
56592       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
56593         gl_libobjs="$gl_libobjs $i.$ac_objext"
56594         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
56595       done
56596     fi
56597     gl_LIBOBJS=$gl_libobjs
56598
56599     gl_LTLIBOBJS=$gl_ltlibobjs
56600
56601
56602
56603     gltests_libobjs=
56604     gltests_ltlibobjs=
56605     if test -n "$gltests_LIBOBJS"; then
56606       # Remove the extension.
56607       sed_drop_objext='s/\.o$//;s/\.obj$//'
56608       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
56609         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
56610         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
56611       done
56612     fi
56613     gltests_LIBOBJS=$gltests_libobjs
56614
56615     gltests_LTLIBOBJS=$gltests_ltlibobjs
56616
56617
56618
56619 : ${CONFIG_STATUS=./config.status}
56620 ac_write_fail=0
56621 ac_clean_files_save=$ac_clean_files
56622 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
56623 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
56624 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
56625 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56626 #! $SHELL
56627 # Generated by $as_me.
56628 # Run this file to recreate the current configuration.
56629 # Compiler output produced by configure, useful for debugging
56630 # configure, is in config.log if it exists.
56631
56632 debug=false
56633 ac_cs_recheck=false
56634 ac_cs_silent=false
56635 SHELL=\${CONFIG_SHELL-$SHELL}
56636 _ACEOF
56637
56638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56639 ## --------------------- ##
56640 ## M4sh Initialization.  ##
56641 ## --------------------- ##
56642
56643 # Be more Bourne compatible
56644 DUALCASE=1; export DUALCASE # for MKS sh
56645 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
56646   emulate sh
56647   NULLCMD=:
56648   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
56649   # is contrary to our usage.  Disable this feature.
56650   alias -g '${1+"$@"}'='"$@"'
56651   setopt NO_GLOB_SUBST
56652 else
56653   case `(set -o) 2>/dev/null` in
56654   *posix*) set -o posix ;;
56655 esac
56656
56657 fi
56658
56659
56660
56661
56662 # PATH needs CR
56663 # Avoid depending upon Character Ranges.
56664 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
56665 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
56666 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
56667 as_cr_digits='0123456789'
56668 as_cr_alnum=$as_cr_Letters$as_cr_digits
56669
56670 as_nl='
56671 '
56672 export as_nl
56673 # Printing a long string crashes Solaris 7 /usr/bin/printf.
56674 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
56675 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
56676 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
56677 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
56678   as_echo='printf %s\n'
56679   as_echo_n='printf %s'
56680 else
56681   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56682     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
56683     as_echo_n='/usr/ucb/echo -n'
56684   else
56685     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56686     as_echo_n_body='eval
56687       arg=$1;
56688       case $arg in
56689       *"$as_nl"*)
56690         expr "X$arg" : "X\\(.*\\)$as_nl";
56691         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
56692       esac;
56693       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
56694     '
56695     export as_echo_n_body
56696     as_echo_n='sh -c $as_echo_n_body as_echo'
56697   fi
56698   export as_echo_body
56699   as_echo='sh -c $as_echo_body as_echo'
56700 fi
56701
56702 # The user is always right.
56703 if test "${PATH_SEPARATOR+set}" != set; then
56704   PATH_SEPARATOR=:
56705   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
56706     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
56707       PATH_SEPARATOR=';'
56708   }
56709 fi
56710
56711 # Support unset when possible.
56712 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
56713   as_unset=unset
56714 else
56715   as_unset=false
56716 fi
56717
56718
56719 # IFS
56720 # We need space, tab and new line, in precisely that order.  Quoting is
56721 # there to prevent editors from complaining about space-tab.
56722 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
56723 # splitting by setting IFS to empty value.)
56724 IFS=" ""        $as_nl"
56725
56726 # Find who we are.  Look in the path if we contain no directory separator.
56727 case $0 in
56728   *[\\/]* ) as_myself=$0 ;;
56729   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
56730 for as_dir in $PATH
56731 do
56732   IFS=$as_save_IFS
56733   test -z "$as_dir" && as_dir=.
56734   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
56735 done
56736 IFS=$as_save_IFS
56737
56738      ;;
56739 esac
56740 # We did not find ourselves, most probably we were run as `sh COMMAND'
56741 # in which case we are not to be found in the path.
56742 if test "x$as_myself" = x; then
56743   as_myself=$0
56744 fi
56745 if test ! -f "$as_myself"; then
56746   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
56747   { (exit 1); exit 1; }
56748 fi
56749
56750 # Work around bugs in pre-3.0 UWIN ksh.
56751 for as_var in ENV MAIL MAILPATH
56752 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
56753 done
56754 PS1='$ '
56755 PS2='> '
56756 PS4='+ '
56757
56758 # NLS nuisances.
56759 LC_ALL=C
56760 export LC_ALL
56761 LANGUAGE=C
56762 export LANGUAGE
56763
56764 # Required to use basename.
56765 if expr a : '\(a\)' >/dev/null 2>&1 &&
56766    test "X`expr 00001 : '.*\(...\)'`" = X001; then
56767   as_expr=expr
56768 else
56769   as_expr=false
56770 fi
56771
56772 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
56773   as_basename=basename
56774 else
56775   as_basename=false
56776 fi
56777
56778
56779 # Name of the executable.
56780 as_me=`$as_basename -- "$0" ||
56781 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
56782          X"$0" : 'X\(//\)$' \| \
56783          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
56784 $as_echo X/"$0" |
56785     sed '/^.*\/\([^/][^/]*\)\/*$/{
56786             s//\1/
56787             q
56788           }
56789           /^X\/\(\/\/\)$/{
56790             s//\1/
56791             q
56792           }
56793           /^X\/\(\/\).*/{
56794             s//\1/
56795             q
56796           }
56797           s/.*/./; q'`
56798
56799 # CDPATH.
56800 $as_unset CDPATH
56801
56802
56803
56804   as_lineno_1=$LINENO
56805   as_lineno_2=$LINENO
56806   test "x$as_lineno_1" != "x$as_lineno_2" &&
56807   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
56808
56809   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
56810   # uniformly replaced by the line number.  The first 'sed' inserts a
56811   # line-number line after each line using $LINENO; the second 'sed'
56812   # does the real work.  The second script uses 'N' to pair each
56813   # line-number line with the line containing $LINENO, and appends
56814   # trailing '-' during substitution so that $LINENO is not a special
56815   # case at line end.
56816   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
56817   # scripts with optimization help from Paolo Bonzini.  Blame Lee
56818   # E. McMahon (1931-1989) for sed's syntax.  :-)
56819   sed -n '
56820     p
56821     /[$]LINENO/=
56822   ' <$as_myself |
56823     sed '
56824       s/[$]LINENO.*/&-/
56825       t lineno
56826       b
56827       :lineno
56828       N
56829       :loop
56830       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
56831       t loop
56832       s/-\n.*//
56833     ' >$as_me.lineno &&
56834   chmod +x "$as_me.lineno" ||
56835     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
56836    { (exit 1); exit 1; }; }
56837
56838   # Don't try to exec as it changes $[0], causing all sort of problems
56839   # (the dirname of $[0] is not the place where we might find the
56840   # original and so on.  Autoconf is especially sensitive to this).
56841   . "./$as_me.lineno"
56842   # Exit status is that of the last command.
56843   exit
56844 }
56845
56846
56847 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
56848   as_dirname=dirname
56849 else
56850   as_dirname=false
56851 fi
56852
56853 ECHO_C= ECHO_N= ECHO_T=
56854 case `echo -n x` in
56855 -n*)
56856   case `echo 'x\c'` in
56857   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
56858   *)   ECHO_C='\c';;
56859   esac;;
56860 *)
56861   ECHO_N='-n';;
56862 esac
56863 if expr a : '\(a\)' >/dev/null 2>&1 &&
56864    test "X`expr 00001 : '.*\(...\)'`" = X001; then
56865   as_expr=expr
56866 else
56867   as_expr=false
56868 fi
56869
56870 rm -f conf$$ conf$$.exe conf$$.file
56871 if test -d conf$$.dir; then
56872   rm -f conf$$.dir/conf$$.file
56873 else
56874   rm -f conf$$.dir
56875   mkdir conf$$.dir 2>/dev/null
56876 fi
56877 if (echo >conf$$.file) 2>/dev/null; then
56878   if ln -s conf$$.file conf$$ 2>/dev/null; then
56879     as_ln_s='ln -s'
56880     # ... but there are two gotchas:
56881     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
56882     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
56883     # In both cases, we have to default to `cp -p'.
56884     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
56885       as_ln_s='cp -p'
56886   elif ln conf$$.file conf$$ 2>/dev/null; then
56887     as_ln_s=ln
56888   else
56889     as_ln_s='cp -p'
56890   fi
56891 else
56892   as_ln_s='cp -p'
56893 fi
56894 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
56895 rmdir conf$$.dir 2>/dev/null
56896
56897 if mkdir -p . 2>/dev/null; then
56898   as_mkdir_p=:
56899 else
56900   test -d ./-p && rmdir ./-p
56901   as_mkdir_p=false
56902 fi
56903
56904 if test -x / >/dev/null 2>&1; then
56905   as_test_x='test -x'
56906 else
56907   if ls -dL / >/dev/null 2>&1; then
56908     as_ls_L_option=L
56909   else
56910     as_ls_L_option=
56911   fi
56912   as_test_x='
56913     eval sh -c '\''
56914       if test -d "$1"; then
56915         test -d "$1/.";
56916       else
56917         case $1 in
56918         -*)set "./$1";;
56919         esac;
56920         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
56921         ???[sx]*):;;*)false;;esac;fi
56922     '\'' sh
56923   '
56924 fi
56925 as_executable_p=$as_test_x
56926
56927 # Sed expression to map a string onto a valid CPP name.
56928 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
56929
56930 # Sed expression to map a string onto a valid variable name.
56931 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
56932
56933
56934 exec 6>&1
56935
56936 # Save the log message, to keep $[0] and so on meaningful, and to
56937 # report actual input values of CONFIG_FILES etc. instead of their
56938 # values after options handling.
56939 ac_log="
56940 This file was extended by GNU tar $as_me 1.26, which was
56941 generated by GNU Autoconf 2.63.  Invocation command line was
56942
56943   CONFIG_FILES    = $CONFIG_FILES
56944   CONFIG_HEADERS  = $CONFIG_HEADERS
56945   CONFIG_LINKS    = $CONFIG_LINKS
56946   CONFIG_COMMANDS = $CONFIG_COMMANDS
56947   $ $0 $@
56948
56949 on `(hostname || uname -n) 2>/dev/null | sed 1q`
56950 "
56951
56952 _ACEOF
56953
56954 case $ac_config_files in *"
56955 "*) set x $ac_config_files; shift; ac_config_files=$*;;
56956 esac
56957
56958 case $ac_config_headers in *"
56959 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
56960 esac
56961
56962
56963 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
56964 # Files that config.status was made for.
56965 config_files="$ac_config_files"
56966 config_headers="$ac_config_headers"
56967 config_commands="$ac_config_commands"
56968
56969 _ACEOF
56970
56971 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
56972 ac_cs_usage="\
56973 \`$as_me' instantiates files from templates according to the
56974 current configuration.
56975
56976 Usage: $0 [OPTION]... [FILE]...
56977
56978   -h, --help       print this help, then exit
56979   -V, --version    print version number and configuration settings, then exit
56980   -q, --quiet, --silent
56981                    do not print progress messages
56982   -d, --debug      don't remove temporary files
56983       --recheck    update $as_me by reconfiguring in the same conditions
56984       --file=FILE[:TEMPLATE]
56985                    instantiate the configuration file FILE
56986       --header=FILE[:TEMPLATE]
56987                    instantiate the configuration header FILE
56988
56989 Configuration files:
56990 $config_files
56991
56992 Configuration headers:
56993 $config_headers
56994
56995 Configuration commands:
56996 $config_commands
56997
56998 Report bugs to <bug-autoconf@gnu.org>."
56999
57000 _ACEOF
57001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57002 ac_cs_version="\\
57003 GNU tar config.status 1.26
57004 configured by $0, generated by GNU Autoconf 2.63,
57005   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
57006
57007 Copyright (C) 2008 Free Software Foundation, Inc.
57008 This config.status script is free software; the Free Software Foundation
57009 gives unlimited permission to copy, distribute and modify it."
57010
57011 ac_pwd='$ac_pwd'
57012 srcdir='$srcdir'
57013 INSTALL='$INSTALL'
57014 MKDIR_P='$MKDIR_P'
57015 AWK='$AWK'
57016 test -n "\$AWK" || AWK=awk
57017 _ACEOF
57018
57019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57020 # The default lists apply if the user does not specify any file.
57021 ac_need_defaults=:
57022 while test $# != 0
57023 do
57024   case $1 in
57025   --*=*)
57026     ac_option=`expr "X$1" : 'X\([^=]*\)='`
57027     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
57028     ac_shift=:
57029     ;;
57030   *)
57031     ac_option=$1
57032     ac_optarg=$2
57033     ac_shift=shift
57034     ;;
57035   esac
57036
57037   case $ac_option in
57038   # Handling of the options.
57039   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
57040     ac_cs_recheck=: ;;
57041   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
57042     $as_echo "$ac_cs_version"; exit ;;
57043   --debug | --debu | --deb | --de | --d | -d )
57044     debug=: ;;
57045   --file | --fil | --fi | --f )
57046     $ac_shift
57047     case $ac_optarg in
57048     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
57049     esac
57050     CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
57051     ac_need_defaults=false;;
57052   --header | --heade | --head | --hea )
57053     $ac_shift
57054     case $ac_optarg in
57055     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
57056     esac
57057     CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
57058     ac_need_defaults=false;;
57059   --he | --h)
57060     # Conflict between --help and --header
57061     { $as_echo "$as_me: error: ambiguous option: $1
57062 Try \`$0 --help' for more information." >&2
57063    { (exit 1); exit 1; }; };;
57064   --help | --hel | -h )
57065     $as_echo "$ac_cs_usage"; exit ;;
57066   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
57067   | -silent | --silent | --silen | --sile | --sil | --si | --s)
57068     ac_cs_silent=: ;;
57069
57070   # This is an error.
57071   -*) { $as_echo "$as_me: error: unrecognized option: $1
57072 Try \`$0 --help' for more information." >&2
57073    { (exit 1); exit 1; }; } ;;
57074
57075   *) ac_config_targets="$ac_config_targets $1"
57076      ac_need_defaults=false ;;
57077
57078   esac
57079   shift
57080 done
57081
57082 ac_configure_extra_args=
57083
57084 if $ac_cs_silent; then
57085   exec 6>/dev/null
57086   ac_configure_extra_args="$ac_configure_extra_args --silent"
57087 fi
57088
57089 _ACEOF
57090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57091 if \$ac_cs_recheck; then
57092   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
57093   shift
57094   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
57095   CONFIG_SHELL='$SHELL'
57096   export CONFIG_SHELL
57097   exec "\$@"
57098 fi
57099
57100 _ACEOF
57101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57102 exec 5>>config.log
57103 {
57104   echo
57105   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
57106 ## Running $as_me. ##
57107 _ASBOX
57108   $as_echo "$ac_log"
57109 } >&5
57110
57111 _ACEOF
57112 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57113 #
57114 # INIT-COMMANDS
57115 #
57116 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
57117 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
57118     # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
57119     # from automake < 1.5.
57120     eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
57121     # Capture the value of LINGUAS because we need it to compute CATALOGS.
57122     LINGUAS="${LINGUAS-%UNSET%}"
57123
57124
57125 _ACEOF
57126
57127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57128
57129 # Handling of arguments.
57130 for ac_config_target in $ac_config_targets
57131 do
57132   case $ac_config_target in
57133     "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
57134     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
57135     "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
57136     "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
57137     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
57138     "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
57139     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
57140     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
57141     "gnu/Makefile") CONFIG_FILES="$CONFIG_FILES gnu/Makefile" ;;
57142     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
57143     "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
57144     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
57145     "rmt/Makefile") CONFIG_FILES="$CONFIG_FILES rmt/Makefile" ;;
57146     "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
57147
57148   *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
57149 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
57150    { (exit 1); exit 1; }; };;
57151   esac
57152 done
57153
57154
57155 # If the user did not use the arguments to specify the items to instantiate,
57156 # then the envvar interface is used.  Set only those that are not.
57157 # We use the long form for the default assignment because of an extremely
57158 # bizarre bug on SunOS 4.1.3.
57159 if $ac_need_defaults; then
57160   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
57161   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
57162   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
57163 fi
57164
57165 # Have a temporary directory for convenience.  Make it in the build tree
57166 # simply because there is no reason against having it here, and in addition,
57167 # creating and moving files from /tmp can sometimes cause problems.
57168 # Hook for its removal unless debugging.
57169 # Note that there is a small window in which the directory will not be cleaned:
57170 # after its creation but before its name has been assigned to `$tmp'.
57171 $debug ||
57172 {
57173   tmp=
57174   trap 'exit_status=$?
57175   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
57176 ' 0
57177   trap '{ (exit 1); exit 1; }' 1 2 13 15
57178 }
57179 # Create a (secure) tmp directory for tmp files.
57180
57181 {
57182   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
57183   test -n "$tmp" && test -d "$tmp"
57184 }  ||
57185 {
57186   tmp=./conf$$-$RANDOM
57187   (umask 077 && mkdir "$tmp")
57188 } ||
57189 {
57190    $as_echo "$as_me: cannot create a temporary directory in ." >&2
57191    { (exit 1); exit 1; }
57192 }
57193
57194 # Set up the scripts for CONFIG_FILES section.
57195 # No need to generate them if there are no CONFIG_FILES.
57196 # This happens for instance with `./config.status config.h'.
57197 if test -n "$CONFIG_FILES"; then
57198
57199
57200 ac_cr='\r'
57201 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
57202 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
57203   ac_cs_awk_cr='\\r'
57204 else
57205   ac_cs_awk_cr=$ac_cr
57206 fi
57207
57208 echo 'BEGIN {' >"$tmp/subs1.awk" &&
57209 _ACEOF
57210
57211
57212 {
57213   echo "cat >conf$$subs.awk <<_ACEOF" &&
57214   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
57215   echo "_ACEOF"
57216 } >conf$$subs.sh ||
57217   { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
57218 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
57219    { (exit 1); exit 1; }; }
57220 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
57221 ac_delim='%!_!# '
57222 for ac_last_try in false false false false false :; do
57223   . ./conf$$subs.sh ||
57224     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
57225 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
57226    { (exit 1); exit 1; }; }
57227
57228   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
57229   if test $ac_delim_n = $ac_delim_num; then
57230     break
57231   elif $ac_last_try; then
57232     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
57233 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
57234    { (exit 1); exit 1; }; }
57235   else
57236     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57237   fi
57238 done
57239 rm -f conf$$subs.sh
57240
57241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57242 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
57243 _ACEOF
57244 sed -n '
57245 h
57246 s/^/S["/; s/!.*/"]=/
57247 p
57248 g
57249 s/^[^!]*!//
57250 :repl
57251 t repl
57252 s/'"$ac_delim"'$//
57253 t delim
57254 :nl
57255 h
57256 s/\(.\{148\}\).*/\1/
57257 t more1
57258 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
57259 p
57260 n
57261 b repl
57262 :more1
57263 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
57264 p
57265 g
57266 s/.\{148\}//
57267 t nl
57268 :delim
57269 h
57270 s/\(.\{148\}\).*/\1/
57271 t more2
57272 s/["\\]/\\&/g; s/^/"/; s/$/"/
57273 p
57274 b
57275 :more2
57276 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
57277 p
57278 g
57279 s/.\{148\}//
57280 t delim
57281 ' <conf$$subs.awk | sed '
57282 /^[^""]/{
57283   N
57284   s/\n//
57285 }
57286 ' >>$CONFIG_STATUS || ac_write_fail=1
57287 rm -f conf$$subs.awk
57288 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57289 _ACAWK
57290 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
57291   for (key in S) S_is_set[key] = 1
57292   FS = "\a"
57293
57294 }
57295 {
57296   line = $ 0
57297   nfields = split(line, field, "@")
57298   substed = 0
57299   len = length(field[1])
57300   for (i = 2; i < nfields; i++) {
57301     key = field[i]
57302     keylen = length(key)
57303     if (S_is_set[key]) {
57304       value = S[key]
57305       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
57306       len += length(value) + length(field[++i])
57307       substed = 1
57308     } else
57309       len += 1 + keylen
57310   }
57311
57312   print line
57313 }
57314
57315 _ACAWK
57316 _ACEOF
57317 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57318 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
57319   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
57320 else
57321   cat
57322 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
57323   || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
57324 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
57325    { (exit 1); exit 1; }; }
57326 _ACEOF
57327
57328 # VPATH may cause trouble with some makes, so we remove $(srcdir),
57329 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
57330 # trailing colons and then remove the whole line if VPATH becomes empty
57331 # (actually we leave an empty line to preserve line numbers).
57332 if test "x$srcdir" = x.; then
57333   ac_vpsub='/^[  ]*VPATH[        ]*=/{
57334 s/:*\$(srcdir):*/:/
57335 s/:*\${srcdir}:*/:/
57336 s/:*@srcdir@:*/:/
57337 s/^\([^=]*=[     ]*\):*/\1/
57338 s/:*$//
57339 s/^[^=]*=[       ]*$//
57340 }'
57341 fi
57342
57343 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57344 fi # test -n "$CONFIG_FILES"
57345
57346 # Set up the scripts for CONFIG_HEADERS section.
57347 # No need to generate them if there are no CONFIG_HEADERS.
57348 # This happens for instance with `./config.status Makefile'.
57349 if test -n "$CONFIG_HEADERS"; then
57350 cat >"$tmp/defines.awk" <<\_ACAWK ||
57351 BEGIN {
57352 _ACEOF
57353
57354 # Transform confdefs.h into an awk script `defines.awk', embedded as
57355 # here-document in config.status, that substitutes the proper values into
57356 # config.h.in to produce config.h.
57357
57358 # Create a delimiter string that does not exist in confdefs.h, to ease
57359 # handling of long lines.
57360 ac_delim='%!_!# '
57361 for ac_last_try in false false :; do
57362   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
57363   if test -z "$ac_t"; then
57364     break
57365   elif $ac_last_try; then
57366     { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
57367 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
57368    { (exit 1); exit 1; }; }
57369   else
57370     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
57371   fi
57372 done
57373
57374 # For the awk script, D is an array of macro values keyed by name,
57375 # likewise P contains macro parameters if any.  Preserve backslash
57376 # newline sequences.
57377
57378 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
57379 sed -n '
57380 s/.\{148\}/&'"$ac_delim"'/g
57381 t rset
57382 :rset
57383 s/^[     ]*#[    ]*define[       ][      ]*/ /
57384 t def
57385 d
57386 :def
57387 s/\\$//
57388 t bsnl
57389 s/["\\]/\\&/g
57390 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
57391 D["\1"]=" \3"/p
57392 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
57393 d
57394 :bsnl
57395 s/["\\]/\\&/g
57396 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
57397 D["\1"]=" \3\\\\\\n"\\/p
57398 t cont
57399 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
57400 t cont
57401 d
57402 :cont
57403 n
57404 s/.\{148\}/&'"$ac_delim"'/g
57405 t clear
57406 :clear
57407 s/\\$//
57408 t bsnlc
57409 s/["\\]/\\&/g; s/^/"/; s/$/"/p
57410 d
57411 :bsnlc
57412 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
57413 b cont
57414 ' <confdefs.h | sed '
57415 s/'"$ac_delim"'/"\\\
57416 "/g' >>$CONFIG_STATUS || ac_write_fail=1
57417
57418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57419   for (key in D) D_is_set[key] = 1
57420   FS = "\a"
57421 }
57422 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
57423   line = \$ 0
57424   split(line, arg, " ")
57425   if (arg[1] == "#") {
57426     defundef = arg[2]
57427     mac1 = arg[3]
57428   } else {
57429     defundef = substr(arg[1], 2)
57430     mac1 = arg[2]
57431   }
57432   split(mac1, mac2, "(") #)
57433   macro = mac2[1]
57434   prefix = substr(line, 1, index(line, defundef) - 1)
57435   if (D_is_set[macro]) {
57436     # Preserve the white space surrounding the "#".
57437     print prefix "define", macro P[macro] D[macro]
57438     next
57439   } else {
57440     # Replace #undef with comments.  This is necessary, for example,
57441     # in the case of _POSIX_SOURCE, which is predefined and required
57442     # on some systems where configure will not decide to define it.
57443     if (defundef == "undef") {
57444       print "/*", prefix defundef, macro, "*/"
57445       next
57446     }
57447   }
57448 }
57449 { print }
57450 _ACAWK
57451 _ACEOF
57452 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57453   { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
57454 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
57455    { (exit 1); exit 1; }; }
57456 fi # test -n "$CONFIG_HEADERS"
57457
57458
57459 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
57460 shift
57461 for ac_tag
57462 do
57463   case $ac_tag in
57464   :[FHLC]) ac_mode=$ac_tag; continue;;
57465   esac
57466   case $ac_mode$ac_tag in
57467   :[FHL]*:*);;
57468   :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
57469 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
57470    { (exit 1); exit 1; }; };;
57471   :[FH]-) ac_tag=-:-;;
57472   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
57473   esac
57474   ac_save_IFS=$IFS
57475   IFS=:
57476   set x $ac_tag
57477   IFS=$ac_save_IFS
57478   shift
57479   ac_file=$1
57480   shift
57481
57482   case $ac_mode in
57483   :L) ac_source=$1;;
57484   :[FH])
57485     ac_file_inputs=
57486     for ac_f
57487     do
57488       case $ac_f in
57489       -) ac_f="$tmp/stdin";;
57490       *) # Look for the file first in the build tree, then in the source tree
57491          # (if the path is not absolute).  The absolute path cannot be DOS-style,
57492          # because $ac_f cannot contain `:'.
57493          test -f "$ac_f" ||
57494            case $ac_f in
57495            [\\/$]*) false;;
57496            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
57497            esac ||
57498            { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
57499 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
57500    { (exit 1); exit 1; }; };;
57501       esac
57502       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
57503       ac_file_inputs="$ac_file_inputs '$ac_f'"
57504     done
57505
57506     # Let's still pretend it is `configure' which instantiates (i.e., don't
57507     # use $as_me), people would be surprised to read:
57508     #    /* config.h.  Generated by config.status.  */
57509     configure_input='Generated from '`
57510           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
57511         `' by configure.'
57512     if test x"$ac_file" != x-; then
57513       configure_input="$ac_file.  $configure_input"
57514       { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
57515 $as_echo "$as_me: creating $ac_file" >&6;}
57516     fi
57517     # Neutralize special characters interpreted by sed in replacement strings.
57518     case $configure_input in #(
57519     *\&* | *\|* | *\\* )
57520        ac_sed_conf_input=`$as_echo "$configure_input" |
57521        sed 's/[\\\\&|]/\\\\&/g'`;; #(
57522     *) ac_sed_conf_input=$configure_input;;
57523     esac
57524
57525     case $ac_tag in
57526     *:-:* | *:-) cat >"$tmp/stdin" \
57527       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
57528 $as_echo "$as_me: error: could not create $ac_file" >&2;}
57529    { (exit 1); exit 1; }; } ;;
57530     esac
57531     ;;
57532   esac
57533
57534   ac_dir=`$as_dirname -- "$ac_file" ||
57535 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57536          X"$ac_file" : 'X\(//\)[^/]' \| \
57537          X"$ac_file" : 'X\(//\)$' \| \
57538          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
57539 $as_echo X"$ac_file" |
57540     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57541             s//\1/
57542             q
57543           }
57544           /^X\(\/\/\)[^/].*/{
57545             s//\1/
57546             q
57547           }
57548           /^X\(\/\/\)$/{
57549             s//\1/
57550             q
57551           }
57552           /^X\(\/\).*/{
57553             s//\1/
57554             q
57555           }
57556           s/.*/./; q'`
57557   { as_dir="$ac_dir"
57558   case $as_dir in #(
57559   -*) as_dir=./$as_dir;;
57560   esac
57561   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
57562     as_dirs=
57563     while :; do
57564       case $as_dir in #(
57565       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
57566       *) as_qdir=$as_dir;;
57567       esac
57568       as_dirs="'$as_qdir' $as_dirs"
57569       as_dir=`$as_dirname -- "$as_dir" ||
57570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57571          X"$as_dir" : 'X\(//\)[^/]' \| \
57572          X"$as_dir" : 'X\(//\)$' \| \
57573          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57574 $as_echo X"$as_dir" |
57575     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57576             s//\1/
57577             q
57578           }
57579           /^X\(\/\/\)[^/].*/{
57580             s//\1/
57581             q
57582           }
57583           /^X\(\/\/\)$/{
57584             s//\1/
57585             q
57586           }
57587           /^X\(\/\).*/{
57588             s//\1/
57589             q
57590           }
57591           s/.*/./; q'`
57592       test -d "$as_dir" && break
57593     done
57594     test -z "$as_dirs" || eval "mkdir $as_dirs"
57595   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
57596 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
57597    { (exit 1); exit 1; }; }; }
57598   ac_builddir=.
57599
57600 case "$ac_dir" in
57601 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
57602 *)
57603   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
57604   # A ".." for each directory in $ac_dir_suffix.
57605   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
57606   case $ac_top_builddir_sub in
57607   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
57608   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
57609   esac ;;
57610 esac
57611 ac_abs_top_builddir=$ac_pwd
57612 ac_abs_builddir=$ac_pwd$ac_dir_suffix
57613 # for backward compatibility:
57614 ac_top_builddir=$ac_top_build_prefix
57615
57616 case $srcdir in
57617   .)  # We are building in place.
57618     ac_srcdir=.
57619     ac_top_srcdir=$ac_top_builddir_sub
57620     ac_abs_top_srcdir=$ac_pwd ;;
57621   [\\/]* | ?:[\\/]* )  # Absolute name.
57622     ac_srcdir=$srcdir$ac_dir_suffix;
57623     ac_top_srcdir=$srcdir
57624     ac_abs_top_srcdir=$srcdir ;;
57625   *) # Relative name.
57626     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
57627     ac_top_srcdir=$ac_top_build_prefix$srcdir
57628     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
57629 esac
57630 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
57631
57632
57633   case $ac_mode in
57634   :F)
57635   #
57636   # CONFIG_FILE
57637   #
57638
57639   case $INSTALL in
57640   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
57641   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
57642   esac
57643   ac_MKDIR_P=$MKDIR_P
57644   case $MKDIR_P in
57645   [\\/$]* | ?:[\\/]* ) ;;
57646   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
57647   esac
57648 _ACEOF
57649
57650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57651 # If the template does not know about datarootdir, expand it.
57652 # FIXME: This hack should be removed a few years after 2.60.
57653 ac_datarootdir_hack=; ac_datarootdir_seen=
57654
57655 ac_sed_dataroot='
57656 /datarootdir/ {
57657   p
57658   q
57659 }
57660 /@datadir@/p
57661 /@docdir@/p
57662 /@infodir@/p
57663 /@localedir@/p
57664 /@mandir@/p
57665 '
57666 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
57667 *datarootdir*) ac_datarootdir_seen=yes;;
57668 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
57669   { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
57670 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
57671 _ACEOF
57672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57673   ac_datarootdir_hack='
57674   s&@datadir@&$datadir&g
57675   s&@docdir@&$docdir&g
57676   s&@infodir@&$infodir&g
57677   s&@localedir@&$localedir&g
57678   s&@mandir@&$mandir&g
57679     s&\\\${datarootdir}&$datarootdir&g' ;;
57680 esac
57681 _ACEOF
57682
57683 # Neutralize VPATH when `$srcdir' = `.'.
57684 # Shell code in configure.ac might set extrasub.
57685 # FIXME: do we really want to maintain this feature?
57686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
57687 ac_sed_extra="$ac_vpsub
57688 $extrasub
57689 _ACEOF
57690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
57691 :t
57692 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
57693 s|@configure_input@|$ac_sed_conf_input|;t t
57694 s&@top_builddir@&$ac_top_builddir_sub&;t t
57695 s&@top_build_prefix@&$ac_top_build_prefix&;t t
57696 s&@srcdir@&$ac_srcdir&;t t
57697 s&@abs_srcdir@&$ac_abs_srcdir&;t t
57698 s&@top_srcdir@&$ac_top_srcdir&;t t
57699 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
57700 s&@builddir@&$ac_builddir&;t t
57701 s&@abs_builddir@&$ac_abs_builddir&;t t
57702 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
57703 s&@INSTALL@&$ac_INSTALL&;t t
57704 s&@MKDIR_P@&$ac_MKDIR_P&;t t
57705 $ac_datarootdir_hack
57706 "
57707 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
57708   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
57709 $as_echo "$as_me: error: could not create $ac_file" >&2;}
57710    { (exit 1); exit 1; }; }
57711
57712 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
57713   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
57714   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
57715   { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57716 which seems to be undefined.  Please make sure it is defined." >&5
57717 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
57718 which seems to be undefined.  Please make sure it is defined." >&2;}
57719
57720   rm -f "$tmp/stdin"
57721   case $ac_file in
57722   -) cat "$tmp/out" && rm -f "$tmp/out";;
57723   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
57724   esac \
57725   || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
57726 $as_echo "$as_me: error: could not create $ac_file" >&2;}
57727    { (exit 1); exit 1; }; }
57728  ;;
57729   :H)
57730   #
57731   # CONFIG_HEADER
57732   #
57733   if test x"$ac_file" != x-; then
57734     {
57735       $as_echo "/* $configure_input  */" \
57736       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
57737     } >"$tmp/config.h" \
57738       || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
57739 $as_echo "$as_me: error: could not create $ac_file" >&2;}
57740    { (exit 1); exit 1; }; }
57741     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
57742       { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
57743 $as_echo "$as_me: $ac_file is unchanged" >&6;}
57744     else
57745       rm -f "$ac_file"
57746       mv "$tmp/config.h" "$ac_file" \
57747         || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
57748 $as_echo "$as_me: error: could not create $ac_file" >&2;}
57749    { (exit 1); exit 1; }; }
57750     fi
57751   else
57752     $as_echo "/* $configure_input  */" \
57753       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
57754       || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
57755 $as_echo "$as_me: error: could not create -" >&2;}
57756    { (exit 1); exit 1; }; }
57757   fi
57758 # Compute "$ac_file"'s index in $config_headers.
57759 _am_arg="$ac_file"
57760 _am_stamp_count=1
57761 for _am_header in $config_headers :; do
57762   case $_am_header in
57763     $_am_arg | $_am_arg:* )
57764       break ;;
57765     * )
57766       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
57767   esac
57768 done
57769 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
57770 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57771          X"$_am_arg" : 'X\(//\)[^/]' \| \
57772          X"$_am_arg" : 'X\(//\)$' \| \
57773          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
57774 $as_echo X"$_am_arg" |
57775     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57776             s//\1/
57777             q
57778           }
57779           /^X\(\/\/\)[^/].*/{
57780             s//\1/
57781             q
57782           }
57783           /^X\(\/\/\)$/{
57784             s//\1/
57785             q
57786           }
57787           /^X\(\/\).*/{
57788             s//\1/
57789             q
57790           }
57791           s/.*/./; q'`/stamp-h$_am_stamp_count
57792  ;;
57793
57794   :C)  { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
57795 $as_echo "$as_me: executing $ac_file commands" >&6;}
57796  ;;
57797   esac
57798
57799
57800   case $ac_file$ac_mode in
57801     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
57802   # Autoconf 2.62 quotes --file arguments for eval, but not when files
57803   # are listed without --file.  Let's play safe and only enable the eval
57804   # if we detect the quoting.
57805   case $CONFIG_FILES in
57806   *\'*) eval set x "$CONFIG_FILES" ;;
57807   *)   set x $CONFIG_FILES ;;
57808   esac
57809   shift
57810   for mf
57811   do
57812     # Strip MF so we end up with the name of the file.
57813     mf=`echo "$mf" | sed -e 's/:.*$//'`
57814     # Check whether this is an Automake generated Makefile or not.
57815     # We used to match only the files named `Makefile.in', but
57816     # some people rename them; so instead we look at the file content.
57817     # Grep'ing the first line is not enough: some people post-process
57818     # each Makefile.in and add a new line on top of each file to say so.
57819     # Grep'ing the whole file is not good either: AIX grep has a line
57820     # limit of 2048, but all sed's we know have understand at least 4000.
57821     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
57822       dirpart=`$as_dirname -- "$mf" ||
57823 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57824          X"$mf" : 'X\(//\)[^/]' \| \
57825          X"$mf" : 'X\(//\)$' \| \
57826          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
57827 $as_echo X"$mf" |
57828     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57829             s//\1/
57830             q
57831           }
57832           /^X\(\/\/\)[^/].*/{
57833             s//\1/
57834             q
57835           }
57836           /^X\(\/\/\)$/{
57837             s//\1/
57838             q
57839           }
57840           /^X\(\/\).*/{
57841             s//\1/
57842             q
57843           }
57844           s/.*/./; q'`
57845     else
57846       continue
57847     fi
57848     # Extract the definition of DEPDIR, am__include, and am__quote
57849     # from the Makefile without running `make'.
57850     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
57851     test -z "$DEPDIR" && continue
57852     am__include=`sed -n 's/^am__include = //p' < "$mf"`
57853     test -z "am__include" && continue
57854     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
57855     # When using ansi2knr, U may be empty or an underscore; expand it
57856     U=`sed -n 's/^U = //p' < "$mf"`
57857     # Find all dependency output files, they are included files with
57858     # $(DEPDIR) in their names.  We invoke sed twice because it is the
57859     # simplest approach to changing $(DEPDIR) to its actual value in the
57860     # expansion.
57861     for file in `sed -n "
57862       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
57863          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
57864       # Make sure the directory exists.
57865       test -f "$dirpart/$file" && continue
57866       fdir=`$as_dirname -- "$file" ||
57867 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57868          X"$file" : 'X\(//\)[^/]' \| \
57869          X"$file" : 'X\(//\)$' \| \
57870          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
57871 $as_echo X"$file" |
57872     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57873             s//\1/
57874             q
57875           }
57876           /^X\(\/\/\)[^/].*/{
57877             s//\1/
57878             q
57879           }
57880           /^X\(\/\/\)$/{
57881             s//\1/
57882             q
57883           }
57884           /^X\(\/\).*/{
57885             s//\1/
57886             q
57887           }
57888           s/.*/./; q'`
57889       { as_dir=$dirpart/$fdir
57890   case $as_dir in #(
57891   -*) as_dir=./$as_dir;;
57892   esac
57893   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
57894     as_dirs=
57895     while :; do
57896       case $as_dir in #(
57897       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
57898       *) as_qdir=$as_dir;;
57899       esac
57900       as_dirs="'$as_qdir' $as_dirs"
57901       as_dir=`$as_dirname -- "$as_dir" ||
57902 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
57903          X"$as_dir" : 'X\(//\)[^/]' \| \
57904          X"$as_dir" : 'X\(//\)$' \| \
57905          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
57906 $as_echo X"$as_dir" |
57907     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
57908             s//\1/
57909             q
57910           }
57911           /^X\(\/\/\)[^/].*/{
57912             s//\1/
57913             q
57914           }
57915           /^X\(\/\/\)$/{
57916             s//\1/
57917             q
57918           }
57919           /^X\(\/\).*/{
57920             s//\1/
57921             q
57922           }
57923           s/.*/./; q'`
57924       test -d "$as_dir" && break
57925     done
57926     test -z "$as_dirs" || eval "mkdir $as_dirs"
57927   } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
57928 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
57929    { (exit 1); exit 1; }; }; }
57930       # echo "creating $dirpart/$file"
57931       echo '# dummy' > "$dirpart/$file"
57932     done
57933   done
57934 }
57935  ;;
57936     "po-directories":C)
57937     for ac_file in $CONFIG_FILES; do
57938       # Support "outfile[:infile[:infile...]]"
57939       case "$ac_file" in
57940         *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
57941       esac
57942       # PO directories have a Makefile.in generated from Makefile.in.in.
57943       case "$ac_file" in */Makefile.in)
57944         # Adjust a relative srcdir.
57945         ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
57946         ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
57947         ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
57948         # In autoconf-2.13 it is called $ac_given_srcdir.
57949         # In autoconf-2.50 it is called $srcdir.
57950         test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
57951         case "$ac_given_srcdir" in
57952           .)  top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
57953           /*) top_srcdir="$ac_given_srcdir" ;;
57954           *)  top_srcdir="$ac_dots$ac_given_srcdir" ;;
57955         esac
57956         # Treat a directory as a PO directory if and only if it has a
57957         # POTFILES.in file. This allows packages to have multiple PO
57958         # directories under different names or in different locations.
57959         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
57960           rm -f "$ac_dir/POTFILES"
57961           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
57962           cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[   ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
57963           POMAKEFILEDEPS="POTFILES.in"
57964           # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
57965           # on $ac_dir but don't depend on user-specified configuration
57966           # parameters.
57967           if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
57968             # The LINGUAS file contains the set of available languages.
57969             if test -n "$OBSOLETE_ALL_LINGUAS"; then
57970               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
57971             fi
57972             ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
57973             # Hide the ALL_LINGUAS assigment from automake < 1.5.
57974             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
57975             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
57976           else
57977             # The set of available languages was given in configure.in.
57978             # Hide the ALL_LINGUAS assigment from automake < 1.5.
57979             eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
57980           fi
57981           # Compute POFILES
57982           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
57983           # Compute UPDATEPOFILES
57984           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
57985           # Compute DUMMYPOFILES
57986           # as      $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
57987           # Compute GMOFILES
57988           # as      $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
57989           case "$ac_given_srcdir" in
57990             .) srcdirpre= ;;
57991             *) srcdirpre='$(srcdir)/' ;;
57992           esac
57993           POFILES=
57994           UPDATEPOFILES=
57995           DUMMYPOFILES=
57996           GMOFILES=
57997           for lang in $ALL_LINGUAS; do
57998             POFILES="$POFILES $srcdirpre$lang.po"
57999             UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
58000             DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
58001             GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
58002           done
58003           # CATALOGS depends on both $ac_dir and the user's LINGUAS
58004           # environment variable.
58005           INST_LINGUAS=
58006           if test -n "$ALL_LINGUAS"; then
58007             for presentlang in $ALL_LINGUAS; do
58008               useit=no
58009               if test "%UNSET%" != "$LINGUAS"; then
58010                 desiredlanguages="$LINGUAS"
58011               else
58012                 desiredlanguages="$ALL_LINGUAS"
58013               fi
58014               for desiredlang in $desiredlanguages; do
58015                 # Use the presentlang catalog if desiredlang is
58016                 #   a. equal to presentlang, or
58017                 #   b. a variant of presentlang (because in this case,
58018                 #      presentlang can be used as a fallback for messages
58019                 #      which are not translated in the desiredlang catalog).
58020                 case "$desiredlang" in
58021                   "$presentlang"*) useit=yes;;
58022                 esac
58023               done
58024               if test $useit = yes; then
58025                 INST_LINGUAS="$INST_LINGUAS $presentlang"
58026               fi
58027             done
58028           fi
58029           CATALOGS=
58030           if test -n "$INST_LINGUAS"; then
58031             for lang in $INST_LINGUAS; do
58032               CATALOGS="$CATALOGS $lang.gmo"
58033             done
58034           fi
58035           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
58036           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"
58037           for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
58038             if test -f "$f"; then
58039               case "$f" in
58040                 *.orig | *.bak | *~) ;;
58041                 *) cat "$f" >> "$ac_dir/Makefile" ;;
58042               esac
58043             fi
58044           done
58045         fi
58046         ;;
58047       esac
58048     done ;;
58049     "tests/atconfig":C) cat >tests/atconfig <<ATEOF
58050 # Configurable variable values for building test suites.
58051 # Generated by $0.
58052 # Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
58053
58054 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
58055 at_testdir='tests'
58056 abs_builddir='$ac_abs_builddir'
58057 at_srcdir='$ac_srcdir'
58058 abs_srcdir='$ac_abs_srcdir'
58059 at_top_srcdir='$ac_top_srcdir'
58060 abs_top_srcdir='$ac_abs_top_srcdir'
58061 at_top_build_prefix='$ac_top_build_prefix'
58062 abs_top_builddir='$ac_abs_top_builddir'
58063
58064 # Backward compatibility with Autotest <= 2.59b:
58065 at_top_builddir=\$at_top_build_prefix
58066
58067 AUTOTEST_PATH='tests'
58068
58069 SHELL=\${CONFIG_SHELL-'$SHELL'}
58070 ATEOF
58071  ;;
58072
58073   esac
58074 done # for ac_tag
58075
58076
58077 { (exit 0); exit 0; }
58078 _ACEOF
58079 chmod +x $CONFIG_STATUS
58080 ac_clean_files=$ac_clean_files_save
58081
58082 test $ac_write_fail = 0 ||
58083   { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
58084 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
58085    { (exit 1); exit 1; }; }
58086
58087
58088 # configure is writing to config.log, and then calls config.status.
58089 # config.status does its own redirection, appending to config.log.
58090 # Unfortunately, on DOS this fails, as config.log is still kept open
58091 # by configure, so config.status won't be able to write to it; its
58092 # output is simply discarded.  So we exec the FD to /dev/null,
58093 # effectively closing config.log, so it can be properly (re)opened and
58094 # appended to by config.status.  When coming back to configure, we
58095 # need to make the FD available again.
58096 if test "$no_create" != yes; then
58097   ac_cs_success=:
58098   ac_config_status_args=
58099   test "$silent" = yes &&
58100     ac_config_status_args="$ac_config_status_args --quiet"
58101   exec 5>/dev/null
58102   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
58103   exec 5>>config.log
58104   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
58105   # would make configure fail if this is the last instruction.
58106   $ac_cs_success || { (exit 1); exit 1; }
58107 fi
58108 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
58109   { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
58110 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
58111 fi
58112