delete trailing whitespace from control files
[debian/gzip] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.197-b8fd7 for gzip 1.10.
4 #
5 # Report bugs to <bug-gzip@gnu.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37 # The user is always right.
38 if ${PATH_SEPARATOR+false} :; then
39   PATH_SEPARATOR=:
40   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
41     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
42       PATH_SEPARATOR=';'
43   }
44 fi
45
46
47 # IFS
48 # We need space, tab and new line, in precisely that order.  Quoting is
49 # there to prevent editors from complaining about space-tab.
50 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
51 # splitting by setting IFS to empty value.)
52 as_nl='
53 '
54 export as_nl
55 IFS=" ""        $as_nl"
56
57 # Find who we are.  Look in the path if we contain no directory separator.
58 as_myself=
59 case $0 in #((
60   *[\\/]* ) as_myself=$0 ;;
61   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
62 for as_dir in $PATH
63 do
64   IFS=$as_save_IFS
65   case $as_dir in #(((
66     '') as_dir=./ ;;
67     */) ;;
68     *) as_dir=$as_dir/ ;;
69   esac
70     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
71   done
72 IFS=$as_save_IFS
73
74      ;;
75 esac
76 # We did not find ourselves, most probably we were run as `sh COMMAND'
77 # in which case we are not to be found in the path.
78 if test "x$as_myself" = x; then
79   as_myself=$0
80 fi
81 if test ! -f "$as_myself"; then
82   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
83   exit 1
84 fi
85
86 # Unset variables that we do not need and which cause bugs (e.g. in
87 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
88 # suppresses any "Segmentation fault" message there.  '((' could
89 # trigger a bug in pdksh 5.2.14.
90 for as_var in BASH_ENV ENV MAIL MAILPATH
91 do eval test \${$as_var+y} \
92   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 LC_ALL=C
100 export LC_ALL
101 LANGUAGE=C
102 export LANGUAGE
103
104 # CDPATH.
105 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
106
107 # Use a proper internal environment variable to ensure we don't fall
108   # into an infinite loop, continuously re-executing ourselves.
109   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
110     _as_can_reexec=no; export _as_can_reexec;
111     # We cannot yet assume a decent shell, so we have to provide a
112 # neutralization value for shells without unset; and this also
113 # works around shells that cannot unset nonexistent variables.
114 # Preserve -v and -x to the replacement shell.
115 BASH_ENV=/dev/null
116 ENV=/dev/null
117 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
118 case $- in # ((((
119   *v*x* | *x*v* ) as_opts=-vx ;;
120   *v* ) as_opts=-v ;;
121   *x* ) as_opts=-x ;;
122   * ) as_opts= ;;
123 esac
124 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
125 # Admittedly, this is quite paranoid, since all the known shells bail
126 # out after a failed `exec'.
127 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
128 as_fn_exit 255
129   fi
130   # We don't want this to propagate to other subprocesses.
131           { _as_can_reexec=; unset _as_can_reexec;}
132 if test "x$CONFIG_SHELL" = x; then
133   as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
134 then :
135   emulate sh
136   NULLCMD=:
137   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
138   # is contrary to our usage.  Disable this feature.
139   alias -g '\${1+\"\$@\"}'='\"\$@\"'
140   setopt NO_GLOB_SUBST
141 else
142   case \`(set -o) 2>/dev/null\` in #(
143   *posix*) :
144     set -o posix ;; #(
145   *) :
146      ;;
147 esac
148 fi
149 "
150   as_required="as_fn_return () { (exit \$1); }
151 as_fn_success () { as_fn_return 0; }
152 as_fn_failure () { as_fn_return 1; }
153 as_fn_ret_success () { return 0; }
154 as_fn_ret_failure () { return 1; }
155
156 exitcode=0
157 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
158 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
159 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
160 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
161 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
162 then :
163
164 else
165   exitcode=1; echo positional parameters were not saved.
166 fi
167 test x\$exitcode = x0 || exit 1
168 test -x / || exit 1"
169   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
170   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
171   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
172   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
173 test \$(( 1 + 1 )) = 2 || exit 1"
174   if (eval "$as_required") 2>/dev/null
175 then :
176   as_have_required=yes
177 else
178   as_have_required=no
179 fi
180   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
181 then :
182
183 else
184   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188   IFS=$as_save_IFS
189   case $as_dir in #(((
190     '') as_dir=./ ;;
191     */) ;;
192     *) as_dir=$as_dir/ ;;
193   esac
194   as_found=:
195   case $as_dir in #(
196          /*)
197            for as_base in sh bash ksh sh5; do
198              # Try only shells that exist, to save several forks.
199              as_shell=$as_dir$as_base
200              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
201                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null
202 then :
203   CONFIG_SHELL=$as_shell as_have_required=yes
204                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null
205 then :
206   break 2
207 fi
208 fi
209            done;;
210        esac
211   as_found=false
212 done
213 IFS=$as_save_IFS
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null
216 then :
217   CONFIG_SHELL=$SHELL as_have_required=yes
218 fi; }
219
220
221       if test "x$CONFIG_SHELL" != x
222 then :
223   export CONFIG_SHELL
224              # We cannot yet assume a decent shell, so we have to provide a
225 # neutralization value for shells without unset; and this also
226 # works around shells that cannot unset nonexistent variables.
227 # Preserve -v and -x to the replacement shell.
228 BASH_ENV=/dev/null
229 ENV=/dev/null
230 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
231 case $- in # ((((
232   *v*x* | *x*v* ) as_opts=-vx ;;
233   *v* ) as_opts=-v ;;
234   *x* ) as_opts=-x ;;
235   * ) as_opts= ;;
236 esac
237 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
238 # Admittedly, this is quite paranoid, since all the known shells bail
239 # out after a failed `exec'.
240 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
241 exit 255
242 fi
243
244     if test x$as_have_required = xno
245 then :
246   printf "%s\n" "$0: This script requires a shell more modern than all"
247   printf "%s\n" "$0: the shells that I found on your system."
248   if test ${ZSH_VERSION+y} ; then
249     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
250     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
251   else
252     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and bug-gzip@gnu.org
253 $0: about your system, including any error possibly output
254 $0: before this message. Then install a modern shell, or
255 $0: manually run the script under such a shell if you do
256 $0: have one."
257   fi
258   exit 1
259 fi
260 fi
261 fi
262 SHELL=${CONFIG_SHELL-/bin/sh}
263 export SHELL
264 # Unset more variables known to interfere with behavior of common tools.
265 CLICOLOR_FORCE= GREP_OPTIONS=
266 unset CLICOLOR_FORCE GREP_OPTIONS
267
268 ## --------------------- ##
269 ## M4sh Shell Functions. ##
270 ## --------------------- ##
271 # as_fn_unset VAR
272 # ---------------
273 # Portably unset VAR.
274 as_fn_unset ()
275 {
276   { eval $1=; unset $1;}
277 }
278 as_unset=as_fn_unset
279
280 # as_fn_set_status STATUS
281 # -----------------------
282 # Set $? to STATUS, without forking.
283 as_fn_set_status ()
284 {
285   return $1
286 } # as_fn_set_status
287
288 # as_fn_exit STATUS
289 # -----------------
290 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
291 as_fn_exit ()
292 {
293   set +e
294   as_fn_set_status $1
295   exit $1
296 } # as_fn_exit
297
298 # as_fn_mkdir_p
299 # -------------
300 # Create "$as_dir" as a directory, including parents if necessary.
301 as_fn_mkdir_p ()
302 {
303
304   case $as_dir in #(
305   -*) as_dir=./$as_dir;;
306   esac
307   test -d "$as_dir" || eval $as_mkdir_p || {
308     as_dirs=
309     while :; do
310       case $as_dir in #(
311       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312       *) as_qdir=$as_dir;;
313       esac
314       as_dirs="'$as_qdir' $as_dirs"
315       as_dir=`$as_dirname -- "$as_dir" ||
316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
317          X"$as_dir" : 'X\(//\)[^/]' \| \
318          X"$as_dir" : 'X\(//\)$' \| \
319          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
320 printf "%s\n" X"$as_dir" |
321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
322             s//\1/
323             q
324           }
325           /^X\(\/\/\)[^/].*/{
326             s//\1/
327             q
328           }
329           /^X\(\/\/\)$/{
330             s//\1/
331             q
332           }
333           /^X\(\/\).*/{
334             s//\1/
335             q
336           }
337           s/.*/./; q'`
338       test -d "$as_dir" && break
339     done
340     test -z "$as_dirs" || eval "mkdir $as_dirs"
341   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
342
343
344 } # as_fn_mkdir_p
345
346 # as_fn_executable_p FILE
347 # -----------------------
348 # Test if FILE is an executable regular file.
349 as_fn_executable_p ()
350 {
351   test -f "$1" && test -x "$1"
352 } # as_fn_executable_p
353 # as_fn_append VAR VALUE
354 # ----------------------
355 # Append the text in VALUE to the end of the definition contained in VAR. Take
356 # advantage of any shell optimizations that allow amortized linear growth over
357 # repeated appends, instead of the typical quadratic growth present in naive
358 # implementations.
359 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
360 then :
361   eval 'as_fn_append ()
362   {
363     eval $1+=\$2
364   }'
365 else
366   as_fn_append ()
367   {
368     eval $1=\$$1\$2
369   }
370 fi # as_fn_append
371
372 # as_fn_arith ARG...
373 # ------------------
374 # Perform arithmetic evaluation on the ARGs, and store the result in the
375 # global $as_val. Take advantage of shells that can avoid forks. The arguments
376 # must be portable across $(()) and expr.
377 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
378 then :
379   eval 'as_fn_arith ()
380   {
381     as_val=$(( $* ))
382   }'
383 else
384   as_fn_arith ()
385   {
386     as_val=`expr "$@" || test $? -eq 1`
387   }
388 fi # as_fn_arith
389
390
391 # as_fn_error STATUS ERROR [LINENO LOG_FD]
392 # ----------------------------------------
393 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
394 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
395 # script with STATUS, using 1 if that was 0.
396 as_fn_error ()
397 {
398   as_status=$1; test $as_status -eq 0 && as_status=1
399   if test "$4"; then
400     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
401     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
402   fi
403   printf "%s\n" "$as_me: error: $2" >&2
404   as_fn_exit $as_status
405 } # as_fn_error
406
407 if expr a : '\(a\)' >/dev/null 2>&1 &&
408    test "X`expr 00001 : '.*\(...\)'`" = X001; then
409   as_expr=expr
410 else
411   as_expr=false
412 fi
413
414 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
415   as_basename=basename
416 else
417   as_basename=false
418 fi
419
420 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
421   as_dirname=dirname
422 else
423   as_dirname=false
424 fi
425
426 as_me=`$as_basename -- "$0" ||
427 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
428          X"$0" : 'X\(//\)$' \| \
429          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
430 printf "%s\n" X/"$0" |
431     sed '/^.*\/\([^/][^/]*\)\/*$/{
432             s//\1/
433             q
434           }
435           /^X\/\(\/\/\)$/{
436             s//\1/
437             q
438           }
439           /^X\/\(\/\).*/{
440             s//\1/
441             q
442           }
443           s/.*/./; q'`
444
445 # Avoid depending upon Character Ranges.
446 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
447 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
448 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
449 as_cr_digits='0123456789'
450 as_cr_alnum=$as_cr_Letters$as_cr_digits
451
452
453   as_lineno_1=$LINENO as_lineno_1a=$LINENO
454   as_lineno_2=$LINENO as_lineno_2a=$LINENO
455   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
456   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
457   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
458   sed -n '
459     p
460     /[$]LINENO/=
461   ' <$as_myself |
462     sed '
463       s/[$]LINENO.*/&-/
464       t lineno
465       b
466       :lineno
467       N
468       :loop
469       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470       t loop
471       s/-\n.*//
472     ' >$as_me.lineno &&
473   chmod +x "$as_me.lineno" ||
474     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
475
476   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
477   # already done that, so ensure we don't try to do so again and fall
478   # in an infinite loop.  This has already happened in practice.
479   _as_can_reexec=no; export _as_can_reexec
480   # Don't try to exec as it changes $[0], causing all sort of problems
481   # (the dirname of $[0] is not the place where we might find the
482   # original and so on.  Autoconf is especially sensitive to this).
483   . "./$as_me.lineno"
484   # Exit status is that of the last command.
485   exit
486 }
487
488 ECHO_C= ECHO_N= ECHO_T=
489 case `echo -n x` in #(((((
490 -n*)
491   case `echo 'xy\c'` in
492   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
493   xy)  ECHO_C='\c';;
494   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
495        ECHO_T=' ';;
496   esac;;
497 *)
498   ECHO_N='-n';;
499 esac
500
501 rm -f conf$$ conf$$.exe conf$$.file
502 if test -d conf$$.dir; then
503   rm -f conf$$.dir/conf$$.file
504 else
505   rm -f conf$$.dir
506   mkdir conf$$.dir 2>/dev/null
507 fi
508 if (echo >conf$$.file) 2>/dev/null; then
509   if ln -s conf$$.file conf$$ 2>/dev/null; then
510     as_ln_s='ln -s'
511     # ... but there are two gotchas:
512     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
513     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
514     # In both cases, we have to default to `cp -pR'.
515     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
516       as_ln_s='cp -pR'
517   elif ln conf$$.file conf$$ 2>/dev/null; then
518     as_ln_s=ln
519   else
520     as_ln_s='cp -pR'
521   fi
522 else
523   as_ln_s='cp -pR'
524 fi
525 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
526 rmdir conf$$.dir 2>/dev/null
527
528 if mkdir -p . 2>/dev/null; then
529   as_mkdir_p='mkdir -p "$as_dir"'
530 else
531   test -d ./-p && rmdir ./-p
532   as_mkdir_p=false
533 fi
534
535 as_test_x='test -x'
536 as_executable_p=as_fn_executable_p
537
538 # Sed expression to map a string onto a valid CPP name.
539 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
540
541 # Sed expression to map a string onto a valid variable name.
542 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
543
544
545 test -n "$DJDIR" || exec 7<&0 </dev/null
546 exec 6>&1
547
548 # Name of the host.
549 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
550 # so uname gets run too.
551 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
552
553 #
554 # Initializations.
555 #
556 ac_default_prefix=/usr/local
557 ac_clean_files=
558 ac_config_libobj_dir=.
559 LIBOBJS=
560 cross_compiling=no
561 subdirs=
562 MFLAGS=
563 MAKEFLAGS=
564
565 # Identity of this package.
566 PACKAGE_NAME='gzip'
567 PACKAGE_TARNAME='gzip'
568 PACKAGE_VERSION='1.10'
569 PACKAGE_STRING='gzip 1.10'
570 PACKAGE_BUGREPORT='bug-gzip@gnu.org'
571 PACKAGE_URL=''
572
573 ac_unique_file="gzip.c"
574 # Factoring default headers for most tests.
575 ac_includes_default="\
576 #include <stddef.h>
577 #include <stdio.h>
578 #include <stdlib.h>
579 #include <string.h>
580 #ifdef HAVE_SYS_TYPES_H
581 # include <sys/types.h>
582 #endif
583 #ifdef HAVE_SYS_STAT_H
584 # include <sys/stat.h>
585 #endif
586 #ifdef HAVE_STRINGS_H
587 # include <strings.h>
588 #endif
589 #ifdef HAVE_INTTYPES_H
590 # include <inttypes.h>
591 #endif
592 #ifdef HAVE_STDINT_H
593 # include <stdint.h>
594 #endif
595 #ifdef HAVE_UNISTD_H
596 # include <unistd.h>
597 #endif"
598
599 ac_header_c_list=
600 gl_use_threads_default=
601 ac_func_c_list=
602 gl_getopt_required=POSIX
603 ac_subst_vars='gltests_LTLIBOBJS
604 gltests_LIBOBJS
605 gl_LTLIBOBJS
606 gl_LIBOBJS
607 CONFIG_INCLUDE
608 am__EXEEXT_FALSE
609 am__EXEEXT_TRUE
610 LTLIBOBJS
611 ASFLAGS_config
612 LIBOBJS
613 ASCPPFLAGS
614 ASCPPPOST
615 GNULIB_WARN_CFLAGS
616 WARN_CFLAGS
617 WERROR_CFLAGS
618 LIBGZIP_LTLIBDEPS
619 LIBGZIP_LIBDEPS
620 gltests_WITNESS
621 HAVE_CRTDEFS_H
622 HAVE_WINT_T
623 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
624 NEXT_WCHAR_H
625 REPLACE_WCSFTIME
626 REPLACE_WCSWIDTH
627 REPLACE_WCWIDTH
628 REPLACE_WCSNRTOMBS
629 REPLACE_WCSRTOMBS
630 REPLACE_WCRTOMB
631 REPLACE_MBSNRTOWCS
632 REPLACE_MBSRTOWCS
633 REPLACE_MBRLEN
634 REPLACE_MBRTOWC
635 REPLACE_MBSINIT
636 REPLACE_WCTOB
637 REPLACE_BTOWC
638 REPLACE_MBSTATE_T
639 HAVE_DECL_WCWIDTH
640 HAVE_DECL_WCTOB
641 HAVE_WCSFTIME
642 HAVE_WCSWIDTH
643 HAVE_WCSTOK
644 HAVE_WCSSTR
645 HAVE_WCSPBRK
646 HAVE_WCSSPN
647 HAVE_WCSCSPN
648 HAVE_WCSRCHR
649 HAVE_WCSCHR
650 HAVE_WCSDUP
651 HAVE_WCSXFRM
652 HAVE_WCSCOLL
653 HAVE_WCSNCASECMP
654 HAVE_WCSCASECMP
655 HAVE_WCSNCMP
656 HAVE_WCSCMP
657 HAVE_WCSNCAT
658 HAVE_WCSCAT
659 HAVE_WCPNCPY
660 HAVE_WCSNCPY
661 HAVE_WCPCPY
662 HAVE_WCSCPY
663 HAVE_WCSNLEN
664 HAVE_WCSLEN
665 HAVE_WMEMSET
666 HAVE_WMEMMOVE
667 HAVE_WMEMCPY
668 HAVE_WMEMCMP
669 HAVE_WMEMCHR
670 HAVE_WCSNRTOMBS
671 HAVE_WCSRTOMBS
672 HAVE_WCRTOMB
673 HAVE_MBSNRTOWCS
674 HAVE_MBSRTOWCS
675 HAVE_MBRLEN
676 HAVE_MBRTOWC
677 HAVE_MBSINIT
678 HAVE_BTOWC
679 GNULIB_WCSFTIME
680 GNULIB_WCSWIDTH
681 GNULIB_WCSTOK
682 GNULIB_WCSSTR
683 GNULIB_WCSPBRK
684 GNULIB_WCSSPN
685 GNULIB_WCSCSPN
686 GNULIB_WCSRCHR
687 GNULIB_WCSCHR
688 GNULIB_WCSDUP
689 GNULIB_WCSXFRM
690 GNULIB_WCSCOLL
691 GNULIB_WCSNCASECMP
692 GNULIB_WCSCASECMP
693 GNULIB_WCSNCMP
694 GNULIB_WCSCMP
695 GNULIB_WCSNCAT
696 GNULIB_WCSCAT
697 GNULIB_WCPNCPY
698 GNULIB_WCSNCPY
699 GNULIB_WCPCPY
700 GNULIB_WCSCPY
701 GNULIB_WCSNLEN
702 GNULIB_WCSLEN
703 GNULIB_WMEMSET
704 GNULIB_WMEMMOVE
705 GNULIB_WMEMCPY
706 GNULIB_WMEMCMP
707 GNULIB_WMEMCHR
708 GNULIB_WCWIDTH
709 GNULIB_WCSNRTOMBS
710 GNULIB_WCSRTOMBS
711 GNULIB_WCRTOMB
712 GNULIB_MBSNRTOWCS
713 GNULIB_MBSRTOWCS
714 GNULIB_MBRLEN
715 GNULIB_MBRTOWC
716 GNULIB_MBSINIT
717 GNULIB_WCTOB
718 GNULIB_BTOWC
719 GL_GENERATE_UTIME_H_FALSE
720 GL_GENERATE_UTIME_H_TRUE
721 UTIME_H
722 HAVE_UTIME_H
723 NEXT_AS_FIRST_DIRECTIVE_UTIME_H
724 NEXT_UTIME_H
725 REPLACE_UTIME
726 HAVE_UTIME
727 GNULIB_UTIME
728 HAVE_UNISTD_H
729 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
730 NEXT_UNISTD_H
731 UNISTD_H_DEFINES_STRUCT_TIMESPEC
732 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
733 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
734 TIME_H_DEFINES_STRUCT_TIMESPEC
735 NEXT_AS_FIRST_DIRECTIVE_TIME_H
736 NEXT_TIME_H
737 NEXT_AS_FIRST_DIRECTIVE_STRING_H
738 NEXT_STRING_H
739 GL_GENERATE_STDNORETURN_H_FALSE
740 GL_GENERATE_STDNORETURN_H_TRUE
741 STDNORETURN_H
742 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
743 NEXT_STDLIB_H
744 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
745 NEXT_STDIO_H
746 GL_GENERATE_STDINT_H_FALSE
747 GL_GENERATE_STDINT_H_TRUE
748 STDINT_H
749 HAVE_SYS_INTTYPES_H
750 HAVE_SYS_BITYPES_H
751 HAVE_C99_STDINT_H
752 WINT_T_SUFFIX
753 WCHAR_T_SUFFIX
754 SIG_ATOMIC_T_SUFFIX
755 SIZE_T_SUFFIX
756 PTRDIFF_T_SUFFIX
757 HAVE_SIGNED_WINT_T
758 HAVE_SIGNED_WCHAR_T
759 HAVE_SIGNED_SIG_ATOMIC_T
760 BITSIZEOF_WINT_T
761 BITSIZEOF_WCHAR_T
762 BITSIZEOF_SIG_ATOMIC_T
763 BITSIZEOF_SIZE_T
764 BITSIZEOF_PTRDIFF_T
765 HAVE_STDINT_H
766 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
767 NEXT_STDINT_H
768 HAVE_SYS_TYPES_H
769 HAVE_INTTYPES_H
770 HAVE_WCHAR_H
771 HAVE_UNSIGNED_LONG_LONG_INT
772 HAVE_LONG_LONG_INT
773 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
774 NEXT_STDDEF_H
775 GL_GENERATE_STDDEF_H_FALSE
776 GL_GENERATE_STDDEF_H_TRUE
777 STDDEF_H
778 HAVE_WCHAR_T
779 HAVE_MAX_ALIGN_T
780 REPLACE_NULL
781 HAVE__BOOL
782 GL_GENERATE_STDBOOL_H_FALSE
783 GL_GENERATE_STDBOOL_H_TRUE
784 STDBOOL_H
785 NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H
786 NEXT_SIGNAL_H
787 REPLACE_RAISE
788 REPLACE_PTHREAD_SIGMASK
789 HAVE_SIGHANDLER_T
790 HAVE_TYPE_VOLATILE_SIG_ATOMIC_T
791 HAVE_STRUCT_SIGACTION_SA_SIGACTION
792 HAVE_SIGACTION
793 HAVE_SIGINFO_T
794 HAVE_SIGSET_T
795 HAVE_RAISE
796 HAVE_PTHREAD_SIGMASK
797 HAVE_POSIX_SIGNALBLOCKING
798 GNULIB_SIGACTION
799 GNULIB_SIGPROCMASK
800 GNULIB_SIGNAL_H_SIGPIPE
801 GNULIB_RAISE
802 GNULIB_PTHREAD_SIGMASK
803 ASM_SYMBOL_PREFIX
804 UNDEFINE_STRTOK_R
805 REPLACE_STRSIGNAL
806 REPLACE_STRERROR_R
807 REPLACE_STRERROR
808 REPLACE_STRTOK_R
809 REPLACE_STRCASESTR
810 REPLACE_STRSTR
811 REPLACE_STRNLEN
812 REPLACE_STRNDUP
813 REPLACE_STRNCAT
814 REPLACE_STRDUP
815 REPLACE_STRCHRNUL
816 REPLACE_STPNCPY
817 REPLACE_MEMMEM
818 REPLACE_MEMCHR
819 HAVE_STRVERSCMP
820 HAVE_DECL_STRSIGNAL
821 HAVE_DECL_STRERROR_R
822 HAVE_DECL_STRTOK_R
823 HAVE_STRCASESTR
824 HAVE_STRSEP
825 HAVE_STRPBRK
826 HAVE_DECL_STRNLEN
827 HAVE_DECL_STRNDUP
828 HAVE_DECL_STRDUP
829 HAVE_STRCHRNUL
830 HAVE_STPNCPY
831 HAVE_STPCPY
832 HAVE_RAWMEMCHR
833 HAVE_DECL_MEMRCHR
834 HAVE_MEMPCPY
835 HAVE_DECL_MEMMEM
836 HAVE_MEMCHR
837 HAVE_FFSLL
838 HAVE_FFSL
839 HAVE_EXPLICIT_BZERO
840 HAVE_MBSLEN
841 GNULIB_STRVERSCMP
842 GNULIB_STRSIGNAL
843 GNULIB_STRERROR_R
844 GNULIB_STRERROR
845 GNULIB_MBSTOK_R
846 GNULIB_MBSSEP
847 GNULIB_MBSSPN
848 GNULIB_MBSPBRK
849 GNULIB_MBSCSPN
850 GNULIB_MBSCASESTR
851 GNULIB_MBSPCASECMP
852 GNULIB_MBSNCASECMP
853 GNULIB_MBSCASECMP
854 GNULIB_MBSSTR
855 GNULIB_MBSRCHR
856 GNULIB_MBSCHR
857 GNULIB_MBSNLEN
858 GNULIB_MBSLEN
859 GNULIB_STRTOK_R
860 GNULIB_STRCASESTR
861 GNULIB_STRSTR
862 GNULIB_STRSEP
863 GNULIB_STRPBRK
864 GNULIB_STRNLEN
865 GNULIB_STRNDUP
866 GNULIB_STRNCAT
867 GNULIB_STRDUP
868 GNULIB_STRCHRNUL
869 GNULIB_STPNCPY
870 GNULIB_STPCPY
871 GNULIB_RAWMEMCHR
872 GNULIB_MEMRCHR
873 GNULIB_MEMPCPY
874 GNULIB_MEMMEM
875 GNULIB_MEMCHR
876 GNULIB_FFSLL
877 GNULIB_FFSL
878 GNULIB_EXPLICIT_BZERO
879 NEXT_AS_FIRST_DIRECTIVE_MATH_H
880 NEXT_MATH_H
881 SED
882 LTLIBMULTITHREAD
883 LIBMULTITHREAD
884 LTLIBTHREAD
885 LIBTHREAD
886 LIBPTH_PREFIX
887 LTLIBPTH
888 LIBPTH
889 GL_GENERATE_LIMITS_H_FALSE
890 GL_GENERATE_LIMITS_H_TRUE
891 LIMITS_H
892 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
893 NEXT_LIMITS_H
894 IGNORE_UNUSED_LIBRARIES_CFLAGS
895 GNU_MAKE_FALSE
896 GNU_MAKE_TRUE
897 REPLACE_LOCALTIME
898 REPLACE_GMTIME
899 REPLACE_TZSET
900 REPLACE_TIMEGM
901 REPLACE_STRFTIME
902 REPLACE_NANOSLEEP
903 REPLACE_MKTIME
904 REPLACE_LOCALTIME_R
905 REPLACE_CTIME
906 HAVE_TIMEZONE_T
907 HAVE_TZSET
908 HAVE_TIMEGM
909 HAVE_STRPTIME
910 HAVE_NANOSLEEP
911 HAVE_DECL_LOCALTIME_R
912 GNULIB_TZSET
913 GNULIB_TIME_RZ
914 GNULIB_TIME_R
915 GNULIB_TIMEGM
916 GNULIB_STRPTIME
917 GNULIB_STRFTIME
918 GNULIB_NANOSLEEP
919 GNULIB_LOCALTIME
920 GNULIB_MKTIME
921 GNULIB_CTIME
922 NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H
923 NEXT_SYS_TIME_H
924 REPLACE_STRUCT_TIMEVAL
925 REPLACE_GETTIMEOFDAY
926 HAVE_SYS_TIME_H
927 HAVE_STRUCT_TIMEVAL
928 HAVE_GETTIMEOFDAY
929 GNULIB_GETTIMEOFDAY
930 LTLIBINTL
931 LIBINTL
932 GNULIB_GL_UNISTD_H_GETOPT
933 GETOPT_CDEFS_H
934 GETOPT_H
935 HAVE_SYS_CDEFS_H
936 HAVE_GETOPT_H
937 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
938 NEXT_GETOPT_H
939 WINDOWS_64_BIT_ST_SIZE
940 WINDOWS_STAT_TIMESPEC
941 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
942 NEXT_SYS_STAT_H
943 REPLACE_UTIMENSAT
944 REPLACE_STAT
945 REPLACE_MKNOD
946 REPLACE_MKFIFO
947 REPLACE_MKDIR
948 REPLACE_LSTAT
949 REPLACE_FUTIMENS
950 REPLACE_FSTATAT
951 REPLACE_FSTAT
952 HAVE_UTIMENSAT
953 HAVE_MKNODAT
954 HAVE_MKNOD
955 HAVE_MKFIFOAT
956 HAVE_MKFIFO
957 HAVE_MKDIRAT
958 HAVE_LSTAT
959 HAVE_LCHMOD
960 HAVE_FUTIMENS
961 HAVE_FSTATAT
962 HAVE_FCHMODAT
963 GNULIB_OVERRIDES_STRUCT_STAT
964 GNULIB_UTIMENSAT
965 GNULIB_STAT
966 GNULIB_MKNODAT
967 GNULIB_MKNOD
968 GNULIB_MKFIFOAT
969 GNULIB_MKFIFO
970 GNULIB_MKDIRAT
971 GNULIB_LSTAT
972 GNULIB_LCHMOD
973 GNULIB_FUTIMENS
974 GNULIB_FSTATAT
975 GNULIB_FSTAT
976 GNULIB_FCHMODAT
977 WINDOWS_STAT_INODES
978 WINDOWS_64_BIT_OFF_T
979 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
980 NEXT_SYS_TYPES_H
981 REPLACE_TRUNCL
982 REPLACE_TRUNCF
983 REPLACE_TRUNC
984 REPLACE_TANHF
985 REPLACE_TANF
986 REPLACE_SQRTL
987 REPLACE_SQRTF
988 REPLACE_SINHF
989 REPLACE_SINF
990 REPLACE_SIGNBIT_USING_GCC
991 REPLACE_SIGNBIT
992 REPLACE_ROUNDL
993 REPLACE_ROUNDF
994 REPLACE_ROUND
995 REPLACE_REMAINDERL
996 REPLACE_REMAINDERF
997 REPLACE_REMAINDER
998 REPLACE_NAN
999 REPLACE_MODFL
1000 REPLACE_MODFF
1001 REPLACE_MODF
1002 REPLACE_LOGBL
1003 REPLACE_LOGBF
1004 REPLACE_LOGB
1005 REPLACE_LOG2L
1006 REPLACE_LOG2F
1007 REPLACE_LOG2
1008 REPLACE_LOG1PL
1009 REPLACE_LOG1PF
1010 REPLACE_LOG1P
1011 REPLACE_LOG10L
1012 REPLACE_LOG10F
1013 REPLACE_LOG10
1014 REPLACE_LOGL
1015 REPLACE_LOGF
1016 REPLACE_LOG
1017 REPLACE_LDEXPL
1018 REPLACE_ISNAN
1019 REPLACE_ISINF
1020 REPLACE_ISFINITE
1021 REPLACE_ILOGBL
1022 REPLACE_ILOGBF
1023 REPLACE_ILOGB
1024 REPLACE_HYPOTL
1025 REPLACE_HYPOTF
1026 REPLACE_HYPOT
1027 REPLACE_HUGE_VAL
1028 REPLACE_FREXPL
1029 REPLACE_FREXP
1030 REPLACE_FREXPF
1031 REPLACE_FMODL
1032 REPLACE_FMODF
1033 REPLACE_FMOD
1034 REPLACE_FMAL
1035 REPLACE_FMAF
1036 REPLACE_FMA
1037 REPLACE_FLOORL
1038 REPLACE_FLOORF
1039 REPLACE_FLOOR
1040 REPLACE_FABSL
1041 REPLACE_EXP2L
1042 REPLACE_EXP2
1043 REPLACE_EXPM1F
1044 REPLACE_EXPM1
1045 REPLACE_EXPF
1046 REPLACE_COSHF
1047 REPLACE_COSF
1048 REPLACE_CEILL
1049 REPLACE_CEILF
1050 REPLACE_CEIL
1051 REPLACE_CBRTL
1052 REPLACE_CBRTF
1053 REPLACE_ATAN2F
1054 REPLACE_ATANF
1055 REPLACE_ASINF
1056 REPLACE_ACOSF
1057 HAVE_DECL_TRUNCL
1058 HAVE_DECL_TRUNCF
1059 HAVE_DECL_TRUNC
1060 HAVE_DECL_TANL
1061 HAVE_DECL_SQRTL
1062 HAVE_DECL_SINL
1063 HAVE_DECL_ROUNDL
1064 HAVE_DECL_ROUNDF
1065 HAVE_DECL_ROUND
1066 HAVE_DECL_RINTF
1067 HAVE_DECL_REMAINDERL
1068 HAVE_DECL_REMAINDER
1069 HAVE_DECL_LOGB
1070 HAVE_DECL_LOG2L
1071 HAVE_DECL_LOG2F
1072 HAVE_DECL_LOG2
1073 HAVE_DECL_LOG10L
1074 HAVE_DECL_LOGL
1075 HAVE_DECL_LDEXPL
1076 HAVE_DECL_FREXPL
1077 HAVE_DECL_FLOORL
1078 HAVE_DECL_FLOORF
1079 HAVE_DECL_EXPM1L
1080 HAVE_DECL_EXP2L
1081 HAVE_DECL_EXP2F
1082 HAVE_DECL_EXP2
1083 HAVE_DECL_EXPL
1084 HAVE_DECL_COSL
1085 HAVE_DECL_COPYSIGNF
1086 HAVE_DECL_CEILL
1087 HAVE_DECL_CEILF
1088 HAVE_DECL_CBRTL
1089 HAVE_DECL_CBRTF
1090 HAVE_DECL_ATANL
1091 HAVE_DECL_ASINL
1092 HAVE_DECL_ACOSL
1093 HAVE_TANHF
1094 HAVE_TANL
1095 HAVE_TANF
1096 HAVE_SQRTL
1097 HAVE_SQRTF
1098 HAVE_SINHF
1099 HAVE_SINL
1100 HAVE_SINF
1101 HAVE_RINTL
1102 HAVE_RINT
1103 HAVE_REMAINDERF
1104 HAVE_REMAINDER
1105 HAVE_POWF
1106 HAVE_MODFL
1107 HAVE_MODFF
1108 HAVE_LOGBL
1109 HAVE_LOGBF
1110 HAVE_LOG1PL
1111 HAVE_LOG1PF
1112 HAVE_LOG1P
1113 HAVE_LOG10L
1114 HAVE_LOG10F
1115 HAVE_LOGL
1116 HAVE_LOGF
1117 HAVE_LDEXPF
1118 HAVE_ISNANL
1119 HAVE_ISNAND
1120 HAVE_ISNANF
1121 HAVE_ILOGBL
1122 HAVE_ILOGBF
1123 HAVE_ILOGB
1124 HAVE_HYPOTL
1125 HAVE_HYPOTF
1126 HAVE_FREXPF
1127 HAVE_FMODL
1128 HAVE_FMODF
1129 HAVE_FMAL
1130 HAVE_FMAF
1131 HAVE_FMA
1132 HAVE_FABSL
1133 HAVE_FABSF
1134 HAVE_EXPM1F
1135 HAVE_EXPM1
1136 HAVE_EXPL
1137 HAVE_EXPF
1138 HAVE_COSHF
1139 HAVE_COSL
1140 HAVE_COSF
1141 HAVE_COPYSIGNL
1142 HAVE_COPYSIGN
1143 HAVE_CBRTL
1144 HAVE_CBRTF
1145 HAVE_CBRT
1146 HAVE_ATAN2F
1147 HAVE_ATANL
1148 HAVE_ATANF
1149 HAVE_ASINL
1150 HAVE_ASINF
1151 HAVE_ACOSL
1152 HAVE_ACOSF
1153 GNULIB_TRUNCL
1154 GNULIB_TRUNCF
1155 GNULIB_TRUNC
1156 GNULIB_TANHF
1157 GNULIB_TANL
1158 GNULIB_TANF
1159 GNULIB_SQRTL
1160 GNULIB_SQRTF
1161 GNULIB_SINHF
1162 GNULIB_SINL
1163 GNULIB_SINF
1164 GNULIB_SIGNBIT
1165 GNULIB_ROUNDL
1166 GNULIB_ROUNDF
1167 GNULIB_ROUND
1168 GNULIB_RINTL
1169 GNULIB_RINTF
1170 GNULIB_RINT
1171 GNULIB_REMAINDERL
1172 GNULIB_REMAINDERF
1173 GNULIB_REMAINDER
1174 GNULIB_POWF
1175 GNULIB_MODFL
1176 GNULIB_MODFF
1177 GNULIB_MODF
1178 GNULIB_LOGBL
1179 GNULIB_LOGBF
1180 GNULIB_LOGB
1181 GNULIB_LOG2L
1182 GNULIB_LOG2F
1183 GNULIB_LOG2
1184 GNULIB_LOG1PL
1185 GNULIB_LOG1PF
1186 GNULIB_LOG1P
1187 GNULIB_LOG10L
1188 GNULIB_LOG10F
1189 GNULIB_LOG10
1190 GNULIB_LOGL
1191 GNULIB_LOGF
1192 GNULIB_LOG
1193 GNULIB_LDEXPL
1194 GNULIB_LDEXPF
1195 GNULIB_ISNANL
1196 GNULIB_ISNAND
1197 GNULIB_ISNANF
1198 GNULIB_ISNAN
1199 GNULIB_ISINF
1200 GNULIB_ISFINITE
1201 GNULIB_ILOGBL
1202 GNULIB_ILOGBF
1203 GNULIB_ILOGB
1204 GNULIB_HYPOTL
1205 GNULIB_HYPOTF
1206 GNULIB_HYPOT
1207 GNULIB_FREXPL
1208 GNULIB_FREXP
1209 GNULIB_FREXPF
1210 GNULIB_FMODL
1211 GNULIB_FMODF
1212 GNULIB_FMOD
1213 GNULIB_FMAL
1214 GNULIB_FMAF
1215 GNULIB_FMA
1216 GNULIB_FLOORL
1217 GNULIB_FLOORF
1218 GNULIB_FLOOR
1219 GNULIB_FABSL
1220 GNULIB_FABSF
1221 GNULIB_EXPM1L
1222 GNULIB_EXPM1F
1223 GNULIB_EXPM1
1224 GNULIB_EXP2L
1225 GNULIB_EXP2F
1226 GNULIB_EXP2
1227 GNULIB_EXPL
1228 GNULIB_EXPF
1229 GNULIB_COSHF
1230 GNULIB_COSL
1231 GNULIB_COSF
1232 GNULIB_COPYSIGNL
1233 GNULIB_COPYSIGNF
1234 GNULIB_COPYSIGN
1235 GNULIB_CEILL
1236 GNULIB_CEILF
1237 GNULIB_CEIL
1238 GNULIB_CBRTL
1239 GNULIB_CBRTF
1240 GNULIB_CBRT
1241 GNULIB_ATAN2F
1242 GNULIB_ATANL
1243 GNULIB_ATANF
1244 GNULIB_ASINL
1245 GNULIB_ASINF
1246 GNULIB_ACOSL
1247 GNULIB_ACOSF
1248 HAVE_FEATURES_H
1249 GNULIB_OVERRIDES_WINT_T
1250 APPLE_UNIVERSAL_BUILD
1251 HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
1252 REPLACE_ITOLD
1253 GL_GENERATE_FLOAT_H_FALSE
1254 GL_GENERATE_FLOAT_H_TRUE
1255 FLOAT_H
1256 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1257 NEXT_FLOAT_H
1258 LIB_FDATASYNC
1259 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1260 NEXT_FCNTL_H
1261 REPLACE_OPENAT
1262 REPLACE_OPEN
1263 REPLACE_FCNTL
1264 HAVE_OPENAT
1265 HAVE_FCNTL
1266 GNULIB_OPENAT
1267 GNULIB_OPEN
1268 GNULIB_NONBLOCKING
1269 GNULIB_FCNTL
1270 REPLACE_VSPRINTF
1271 REPLACE_VSNPRINTF
1272 REPLACE_VPRINTF
1273 REPLACE_VFPRINTF
1274 REPLACE_VDPRINTF
1275 REPLACE_VASPRINTF
1276 REPLACE_TMPFILE
1277 REPLACE_STDIO_WRITE_FUNCS
1278 REPLACE_STDIO_READ_FUNCS
1279 REPLACE_SPRINTF
1280 REPLACE_SNPRINTF
1281 REPLACE_RENAMEAT
1282 REPLACE_RENAME
1283 REPLACE_REMOVE
1284 REPLACE_PRINTF
1285 REPLACE_POPEN
1286 REPLACE_PERROR
1287 REPLACE_OBSTACK_PRINTF
1288 REPLACE_GETLINE
1289 REPLACE_GETDELIM
1290 REPLACE_FTELLO
1291 REPLACE_FTELL
1292 REPLACE_FSEEKO
1293 REPLACE_FSEEK
1294 REPLACE_FREOPEN
1295 REPLACE_FPURGE
1296 REPLACE_FPRINTF
1297 REPLACE_FOPEN
1298 REPLACE_FFLUSH
1299 REPLACE_FDOPEN
1300 REPLACE_FCLOSE
1301 REPLACE_DPRINTF
1302 HAVE_VDPRINTF
1303 HAVE_VASPRINTF
1304 HAVE_RENAMEAT
1305 HAVE_POPEN
1306 HAVE_PCLOSE
1307 HAVE_FTELLO
1308 HAVE_FSEEKO
1309 HAVE_DPRINTF
1310 HAVE_DECL_VSNPRINTF
1311 HAVE_DECL_SNPRINTF
1312 HAVE_DECL_OBSTACK_PRINTF
1313 HAVE_DECL_GETLINE
1314 HAVE_DECL_GETDELIM
1315 HAVE_DECL_FTELLO
1316 HAVE_DECL_FSEEKO
1317 HAVE_DECL_FPURGE
1318 GNULIB_VSPRINTF_POSIX
1319 GNULIB_VSNPRINTF
1320 GNULIB_VPRINTF_POSIX
1321 GNULIB_VPRINTF
1322 GNULIB_VFPRINTF_POSIX
1323 GNULIB_VFPRINTF
1324 GNULIB_VDPRINTF
1325 GNULIB_VSCANF
1326 GNULIB_VFSCANF
1327 GNULIB_VASPRINTF
1328 GNULIB_TMPFILE
1329 GNULIB_STDIO_H_SIGPIPE
1330 GNULIB_STDIO_H_NONBLOCKING
1331 GNULIB_SPRINTF_POSIX
1332 GNULIB_SNPRINTF
1333 GNULIB_SCANF
1334 GNULIB_RENAMEAT
1335 GNULIB_RENAME
1336 GNULIB_REMOVE
1337 GNULIB_PUTS
1338 GNULIB_PUTCHAR
1339 GNULIB_PUTC
1340 GNULIB_PRINTF_POSIX
1341 GNULIB_PRINTF
1342 GNULIB_POPEN
1343 GNULIB_PERROR
1344 GNULIB_PCLOSE
1345 GNULIB_OBSTACK_PRINTF_POSIX
1346 GNULIB_OBSTACK_PRINTF
1347 GNULIB_GETLINE
1348 GNULIB_GETDELIM
1349 GNULIB_GETCHAR
1350 GNULIB_GETC
1351 GNULIB_FWRITE
1352 GNULIB_FTELLO
1353 GNULIB_FTELL
1354 GNULIB_FSEEKO
1355 GNULIB_FSEEK
1356 GNULIB_FSCANF
1357 GNULIB_FREOPEN
1358 GNULIB_FREAD
1359 GNULIB_FPUTS
1360 GNULIB_FPUTC
1361 GNULIB_FPURGE
1362 GNULIB_FPRINTF_POSIX
1363 GNULIB_FPRINTF
1364 GNULIB_FOPEN
1365 GNULIB_FGETS
1366 GNULIB_FGETC
1367 GNULIB_FFLUSH
1368 GNULIB_FDOPEN
1369 GNULIB_FCLOSE
1370 GNULIB_DPRINTF
1371 EOVERFLOW_VALUE
1372 EOVERFLOW_HIDDEN
1373 ENOLINK_VALUE
1374 ENOLINK_HIDDEN
1375 EMULTIHOP_VALUE
1376 EMULTIHOP_HIDDEN
1377 GL_GENERATE_ERRNO_H_FALSE
1378 GL_GENERATE_ERRNO_H_TRUE
1379 ERRNO_H
1380 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1381 NEXT_ERRNO_H
1382 HAVE_DIRENT_H
1383 NEXT_AS_FIRST_DIRECTIVE_DIRENT_H
1384 NEXT_DIRENT_H
1385 PRAGMA_COLUMNS
1386 PRAGMA_SYSTEM_HEADER
1387 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1388 INCLUDE_NEXT
1389 REPLACE_FDOPENDIR
1390 REPLACE_DIRFD
1391 REPLACE_CLOSEDIR
1392 REPLACE_OPENDIR
1393 HAVE_ALPHASORT
1394 HAVE_SCANDIR
1395 HAVE_FDOPENDIR
1396 HAVE_DECL_FDOPENDIR
1397 HAVE_DECL_DIRFD
1398 HAVE_CLOSEDIR
1399 HAVE_REWINDDIR
1400 HAVE_READDIR
1401 HAVE_OPENDIR
1402 GNULIB_ALPHASORT
1403 GNULIB_SCANDIR
1404 GNULIB_FDOPENDIR
1405 GNULIB_DIRFD
1406 GNULIB_CLOSEDIR
1407 GNULIB_REWINDDIR
1408 GNULIB_READDIR
1409 GNULIB_OPENDIR
1410 HAVE_WINSOCK2_H
1411 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1412 LIB_CLOCK_GETTIME
1413 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1414 UNISTD_H_HAVE_WINSOCK2_H
1415 REPLACE_WRITE
1416 REPLACE_USLEEP
1417 REPLACE_UNLINKAT
1418 REPLACE_UNLINK
1419 REPLACE_TTYNAME_R
1420 REPLACE_TRUNCATE
1421 REPLACE_SYMLINKAT
1422 REPLACE_SYMLINK
1423 REPLACE_SLEEP
1424 REPLACE_RMDIR
1425 REPLACE_READLINKAT
1426 REPLACE_READLINK
1427 REPLACE_READ
1428 REPLACE_PWRITE
1429 REPLACE_PREAD
1430 REPLACE_LSEEK
1431 REPLACE_LINKAT
1432 REPLACE_LINK
1433 REPLACE_LCHOWN
1434 REPLACE_ISATTY
1435 REPLACE_GETPASS
1436 REPLACE_GETPAGESIZE
1437 REPLACE_GETGROUPS
1438 REPLACE_GETLOGIN_R
1439 REPLACE_GETDTABLESIZE
1440 REPLACE_GETDOMAINNAME
1441 REPLACE_GETCWD
1442 REPLACE_FTRUNCATE
1443 REPLACE_FCHOWNAT
1444 REPLACE_FACCESSAT
1445 REPLACE_DUP2
1446 REPLACE_DUP
1447 REPLACE_CLOSE
1448 REPLACE_CHOWN
1449 HAVE_SYS_PARAM_H
1450 HAVE_OS_H
1451 HAVE_DECL_TTYNAME_R
1452 HAVE_DECL_TRUNCATE
1453 HAVE_DECL_SETHOSTNAME
1454 HAVE_DECL_GETUSERSHELL
1455 HAVE_DECL_GETPAGESIZE
1456 HAVE_DECL_GETLOGIN_R
1457 HAVE_DECL_GETLOGIN
1458 HAVE_DECL_GETDOMAINNAME
1459 HAVE_DECL_FDATASYNC
1460 HAVE_DECL_FCHDIR
1461 HAVE_DECL_ENVIRON
1462 HAVE_USLEEP
1463 HAVE_UNLINKAT
1464 HAVE_SYMLINKAT
1465 HAVE_SYMLINK
1466 HAVE_SLEEP
1467 HAVE_SETHOSTNAME
1468 HAVE_READLINKAT
1469 HAVE_READLINK
1470 HAVE_PWRITE
1471 HAVE_PREAD
1472 HAVE_PIPE2
1473 HAVE_PIPE
1474 HAVE_LINKAT
1475 HAVE_LINK
1476 HAVE_LCHOWN
1477 HAVE_GROUP_MEMBER
1478 HAVE_GETPASS
1479 HAVE_GETPAGESIZE
1480 HAVE_GETLOGIN
1481 HAVE_GETHOSTNAME
1482 HAVE_GETGROUPS
1483 HAVE_GETDTABLESIZE
1484 HAVE_FTRUNCATE
1485 HAVE_FSYNC
1486 HAVE_FDATASYNC
1487 HAVE_FCHOWNAT
1488 HAVE_FCHDIR
1489 HAVE_FACCESSAT
1490 HAVE_EUIDACCESS
1491 HAVE_DUP3
1492 HAVE_DUP2
1493 HAVE_CHOWN
1494 GNULIB_WRITE
1495 GNULIB_USLEEP
1496 GNULIB_UNLINKAT
1497 GNULIB_UNLINK
1498 GNULIB_UNISTD_H_SIGPIPE
1499 GNULIB_UNISTD_H_NONBLOCKING
1500 GNULIB_TTYNAME_R
1501 GNULIB_TRUNCATE
1502 GNULIB_SYMLINKAT
1503 GNULIB_SYMLINK
1504 GNULIB_SLEEP
1505 GNULIB_SETHOSTNAME
1506 GNULIB_RMDIR
1507 GNULIB_READLINKAT
1508 GNULIB_READLINK
1509 GNULIB_READ
1510 GNULIB_PWRITE
1511 GNULIB_PREAD
1512 GNULIB_PIPE2
1513 GNULIB_PIPE
1514 GNULIB_LSEEK
1515 GNULIB_LINKAT
1516 GNULIB_LINK
1517 GNULIB_LCHOWN
1518 GNULIB_ISATTY
1519 GNULIB_GROUP_MEMBER
1520 GNULIB_GETUSERSHELL
1521 GNULIB_GETPASS
1522 GNULIB_GETPAGESIZE
1523 GNULIB_GETLOGIN_R
1524 GNULIB_GETLOGIN
1525 GNULIB_GETHOSTNAME
1526 GNULIB_GETGROUPS
1527 GNULIB_GETDTABLESIZE
1528 GNULIB_GETDOMAINNAME
1529 GNULIB_GETCWD
1530 GNULIB_FTRUNCATE
1531 GNULIB_FSYNC
1532 GNULIB_FDATASYNC
1533 GNULIB_FCHOWNAT
1534 GNULIB_FCHDIR
1535 GNULIB_FACCESSAT
1536 GNULIB_EUIDACCESS
1537 GNULIB_ENVIRON
1538 GNULIB_DUP3
1539 GNULIB_DUP2
1540 GNULIB_DUP
1541 GNULIB_CLOSE
1542 GNULIB_CHOWN
1543 GNULIB_CHDIR
1544 REPLACE_WCTOMB
1545 REPLACE_UNSETENV
1546 REPLACE_STRTOD
1547 REPLACE_SETENV
1548 REPLACE_REALPATH
1549 REPLACE_REALLOC
1550 REPLACE_RANDOM_R
1551 REPLACE_QSORT_R
1552 REPLACE_PUTENV
1553 REPLACE_PTSNAME_R
1554 REPLACE_PTSNAME
1555 REPLACE_MKSTEMP
1556 REPLACE_MBTOWC
1557 REPLACE_MALLOC
1558 REPLACE_CANONICALIZE_FILE_NAME
1559 REPLACE_CALLOC
1560 HAVE_DECL_UNSETENV
1561 HAVE_UNLOCKPT
1562 HAVE_SYS_LOADAVG_H
1563 HAVE_STRUCT_RANDOM_DATA
1564 HAVE_STRTOULL
1565 HAVE_STRTOLL
1566 HAVE_STRTOD
1567 HAVE_DECL_SETSTATE
1568 HAVE_DECL_SETENV
1569 HAVE_SETENV
1570 HAVE_SECURE_GETENV
1571 HAVE_RPMATCH
1572 HAVE_REALPATH
1573 HAVE_REALLOCARRAY
1574 HAVE_RANDOM_R
1575 HAVE_RANDOM_H
1576 HAVE_RANDOM
1577 HAVE_QSORT_R
1578 HAVE_PTSNAME_R
1579 HAVE_PTSNAME
1580 HAVE_POSIX_OPENPT
1581 HAVE_MKSTEMPS
1582 HAVE_MKSTEMP
1583 HAVE_MKOSTEMPS
1584 HAVE_MKOSTEMP
1585 HAVE_MKDTEMP
1586 HAVE_DECL_INITSTATE
1587 HAVE_GRANTPT
1588 HAVE_GETSUBOPT
1589 HAVE_DECL_GETLOADAVG
1590 HAVE_CANONICALIZE_FILE_NAME
1591 HAVE_ATOLL
1592 HAVE__EXIT
1593 GNULIB_WCTOMB
1594 GNULIB_UNSETENV
1595 GNULIB_UNLOCKPT
1596 GNULIB_SYSTEM_POSIX
1597 GNULIB_STRTOULL
1598 GNULIB_STRTOLL
1599 GNULIB_STRTOD
1600 GNULIB_SETENV
1601 GNULIB_SECURE_GETENV
1602 GNULIB_RPMATCH
1603 GNULIB_REALPATH
1604 GNULIB_REALLOC_POSIX
1605 GNULIB_REALLOCARRAY
1606 GNULIB_RANDOM_R
1607 GNULIB_RANDOM
1608 GNULIB_QSORT_R
1609 GNULIB_PUTENV
1610 GNULIB_PTSNAME_R
1611 GNULIB_PTSNAME
1612 GNULIB_POSIX_OPENPT
1613 GNULIB_MKSTEMPS
1614 GNULIB_MKSTEMP
1615 GNULIB_MKOSTEMPS
1616 GNULIB_MKOSTEMP
1617 GNULIB_MKDTEMP
1618 GNULIB_MBTOWC
1619 GNULIB_MALLOC_POSIX
1620 GNULIB_GRANTPT
1621 GNULIB_GETSUBOPT
1622 GNULIB_GETLOADAVG
1623 GNULIB_CANONICALIZE_FILE_NAME
1624 GNULIB_CALLOC_POSIX
1625 GNULIB_ATOLL
1626 GNULIB__EXIT
1627 GL_GENERATE_ALLOCA_H_FALSE
1628 GL_GENERATE_ALLOCA_H_TRUE
1629 ALLOCA_H
1630 ALLOCA
1631 GL_COND_LIBTOOL_FALSE
1632 GL_COND_LIBTOOL_TRUE
1633 host_os
1634 host_vendor
1635 host_cpu
1636 host
1637 build_os
1638 build_vendor
1639 build_cpu
1640 build
1641 ARFLAGS
1642 AR
1643 EGREP
1644 RANLIB
1645 LN_S
1646 NM
1647 GREP
1648 CPP
1649 am__fastdepCC_FALSE
1650 am__fastdepCC_TRUE
1651 CCDEPMODE
1652 am__nodep
1653 AMDEPBACKSLASH
1654 AMDEP_FALSE
1655 AMDEP_TRUE
1656 am__include
1657 DEPDIR
1658 OBJEXT
1659 EXEEXT
1660 ac_ct_CC
1661 CPPFLAGS
1662 LDFLAGS
1663 CFLAGS
1664 CC
1665 AM_BACKSLASH
1666 AM_DEFAULT_VERBOSITY
1667 AM_DEFAULT_V
1668 AM_V
1669 am__untar
1670 am__tar
1671 AMTAR
1672 am__leading_dot
1673 SET_MAKE
1674 AWK
1675 mkdir_p
1676 MKDIR_P
1677 INSTALL_STRIP_PROGRAM
1678 STRIP
1679 install_sh
1680 MAKEINFO
1681 AUTOHEADER
1682 AUTOMAKE
1683 AUTOCONF
1684 ACLOCAL
1685 VERSION
1686 PACKAGE
1687 CYGPATH_W
1688 am__isrc
1689 INSTALL_DATA
1690 INSTALL_SCRIPT
1691 INSTALL_PROGRAM
1692 target_alias
1693 host_alias
1694 build_alias
1695 LIBS
1696 ECHO_T
1697 ECHO_N
1698 ECHO_C
1699 DEFS
1700 mandir
1701 localedir
1702 libdir
1703 psdir
1704 pdfdir
1705 dvidir
1706 htmldir
1707 infodir
1708 docdir
1709 oldincludedir
1710 includedir
1711 runstatedir
1712 localstatedir
1713 sharedstatedir
1714 sysconfdir
1715 datadir
1716 datarootdir
1717 libexecdir
1718 sbindir
1719 bindir
1720 program_transform_name
1721 prefix
1722 exec_prefix
1723 PACKAGE_URL
1724 PACKAGE_BUGREPORT
1725 PACKAGE_STRING
1726 PACKAGE_VERSION
1727 PACKAGE_TARNAME
1728 PACKAGE_NAME
1729 PATH_SEPARATOR
1730 SHELL
1731 am__quote'
1732 ac_subst_files=''
1733 ac_user_opts='
1734 enable_option_checking
1735 enable_silent_rules
1736 enable_dependency_tracking
1737 enable_largefile
1738 enable_threads
1739 with_gnu_ld
1740 enable_rpath
1741 with_libpth_prefix
1742 enable_gcc_warnings
1743 '
1744       ac_precious_vars='build_alias
1745 host_alias
1746 target_alias
1747 CC
1748 CFLAGS
1749 LDFLAGS
1750 LIBS
1751 CPPFLAGS
1752 CPP'
1753
1754
1755 # Initialize some variables set by options.
1756 ac_init_help=
1757 ac_init_version=false
1758 ac_unrecognized_opts=
1759 ac_unrecognized_sep=
1760 # The variables have the same names as the options, with
1761 # dashes changed to underlines.
1762 cache_file=/dev/null
1763 exec_prefix=NONE
1764 no_create=
1765 no_recursion=
1766 prefix=NONE
1767 program_prefix=NONE
1768 program_suffix=NONE
1769 program_transform_name=s,x,x,
1770 silent=
1771 site=
1772 srcdir=
1773 verbose=
1774 x_includes=NONE
1775 x_libraries=NONE
1776
1777 # Installation directory options.
1778 # These are left unexpanded so users can "make install exec_prefix=/foo"
1779 # and all the variables that are supposed to be based on exec_prefix
1780 # by default will actually change.
1781 # Use braces instead of parens because sh, perl, etc. also accept them.
1782 # (The list follows the same order as the GNU Coding Standards.)
1783 bindir='${exec_prefix}/bin'
1784 sbindir='${exec_prefix}/sbin'
1785 libexecdir='${exec_prefix}/libexec'
1786 datarootdir='${prefix}/share'
1787 datadir='${datarootdir}'
1788 sysconfdir='${prefix}/etc'
1789 sharedstatedir='${prefix}/com'
1790 localstatedir='${prefix}/var'
1791 runstatedir='${localstatedir}/run'
1792 includedir='${prefix}/include'
1793 oldincludedir='/usr/include'
1794 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1795 infodir='${datarootdir}/info'
1796 htmldir='${docdir}'
1797 dvidir='${docdir}'
1798 pdfdir='${docdir}'
1799 psdir='${docdir}'
1800 libdir='${exec_prefix}/lib'
1801 localedir='${datarootdir}/locale'
1802 mandir='${datarootdir}/man'
1803
1804 ac_prev=
1805 ac_dashdash=
1806 for ac_option
1807 do
1808   # If the previous option needs an argument, assign it.
1809   if test -n "$ac_prev"; then
1810     eval $ac_prev=\$ac_option
1811     ac_prev=
1812     continue
1813   fi
1814
1815   case $ac_option in
1816   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1817   *=)   ac_optarg= ;;
1818   *)    ac_optarg=yes ;;
1819   esac
1820
1821   # Accept the important Cygnus configure options, so we can diagnose typos.
1822
1823   case $ac_dashdash$ac_option in
1824   --)
1825     ac_dashdash=yes ;;
1826
1827   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1828     ac_prev=bindir ;;
1829   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1830     bindir=$ac_optarg ;;
1831
1832   -build | --build | --buil | --bui | --bu)
1833     ac_prev=build_alias ;;
1834   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1835     build_alias=$ac_optarg ;;
1836
1837   -cache-file | --cache-file | --cache-fil | --cache-fi \
1838   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1839     ac_prev=cache_file ;;
1840   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1841   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1842     cache_file=$ac_optarg ;;
1843
1844   --config-cache | -C)
1845     cache_file=config.cache ;;
1846
1847   -datadir | --datadir | --datadi | --datad)
1848     ac_prev=datadir ;;
1849   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1850     datadir=$ac_optarg ;;
1851
1852   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1853   | --dataroo | --dataro | --datar)
1854     ac_prev=datarootdir ;;
1855   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1856   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1857     datarootdir=$ac_optarg ;;
1858
1859   -disable-* | --disable-*)
1860     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1861     # Reject names that are not valid shell variable names.
1862     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1863       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1864     ac_useropt_orig=$ac_useropt
1865     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1866     case $ac_user_opts in
1867       *"
1868 "enable_$ac_useropt"
1869 "*) ;;
1870       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1871          ac_unrecognized_sep=', ';;
1872     esac
1873     eval enable_$ac_useropt=no ;;
1874
1875   -docdir | --docdir | --docdi | --doc | --do)
1876     ac_prev=docdir ;;
1877   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1878     docdir=$ac_optarg ;;
1879
1880   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1881     ac_prev=dvidir ;;
1882   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1883     dvidir=$ac_optarg ;;
1884
1885   -enable-* | --enable-*)
1886     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1887     # Reject names that are not valid shell variable names.
1888     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1889       as_fn_error $? "invalid feature name: \`$ac_useropt'"
1890     ac_useropt_orig=$ac_useropt
1891     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1892     case $ac_user_opts in
1893       *"
1894 "enable_$ac_useropt"
1895 "*) ;;
1896       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1897          ac_unrecognized_sep=', ';;
1898     esac
1899     eval enable_$ac_useropt=\$ac_optarg ;;
1900
1901   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1902   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1903   | --exec | --exe | --ex)
1904     ac_prev=exec_prefix ;;
1905   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1906   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1907   | --exec=* | --exe=* | --ex=*)
1908     exec_prefix=$ac_optarg ;;
1909
1910   -gas | --gas | --ga | --g)
1911     # Obsolete; use --with-gas.
1912     with_gas=yes ;;
1913
1914   -help | --help | --hel | --he | -h)
1915     ac_init_help=long ;;
1916   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1917     ac_init_help=recursive ;;
1918   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1919     ac_init_help=short ;;
1920
1921   -host | --host | --hos | --ho)
1922     ac_prev=host_alias ;;
1923   -host=* | --host=* | --hos=* | --ho=*)
1924     host_alias=$ac_optarg ;;
1925
1926   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1927     ac_prev=htmldir ;;
1928   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1929   | --ht=*)
1930     htmldir=$ac_optarg ;;
1931
1932   -includedir | --includedir | --includedi | --included | --include \
1933   | --includ | --inclu | --incl | --inc)
1934     ac_prev=includedir ;;
1935   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1936   | --includ=* | --inclu=* | --incl=* | --inc=*)
1937     includedir=$ac_optarg ;;
1938
1939   -infodir | --infodir | --infodi | --infod | --info | --inf)
1940     ac_prev=infodir ;;
1941   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1942     infodir=$ac_optarg ;;
1943
1944   -libdir | --libdir | --libdi | --libd)
1945     ac_prev=libdir ;;
1946   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1947     libdir=$ac_optarg ;;
1948
1949   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1950   | --libexe | --libex | --libe)
1951     ac_prev=libexecdir ;;
1952   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1953   | --libexe=* | --libex=* | --libe=*)
1954     libexecdir=$ac_optarg ;;
1955
1956   -localedir | --localedir | --localedi | --localed | --locale)
1957     ac_prev=localedir ;;
1958   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1959     localedir=$ac_optarg ;;
1960
1961   -localstatedir | --localstatedir | --localstatedi | --localstated \
1962   | --localstate | --localstat | --localsta | --localst | --locals)
1963     ac_prev=localstatedir ;;
1964   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1965   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1966     localstatedir=$ac_optarg ;;
1967
1968   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1969     ac_prev=mandir ;;
1970   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1971     mandir=$ac_optarg ;;
1972
1973   -nfp | --nfp | --nf)
1974     # Obsolete; use --without-fp.
1975     with_fp=no ;;
1976
1977   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1978   | --no-cr | --no-c | -n)
1979     no_create=yes ;;
1980
1981   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1982   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1983     no_recursion=yes ;;
1984
1985   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1986   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1987   | --oldin | --oldi | --old | --ol | --o)
1988     ac_prev=oldincludedir ;;
1989   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1990   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1991   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1992     oldincludedir=$ac_optarg ;;
1993
1994   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1995     ac_prev=prefix ;;
1996   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1997     prefix=$ac_optarg ;;
1998
1999   -program-prefix | --program-prefix | --program-prefi | --program-pref \
2000   | --program-pre | --program-pr | --program-p)
2001     ac_prev=program_prefix ;;
2002   -program-prefix=* | --program-prefix=* | --program-prefi=* \
2003   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2004     program_prefix=$ac_optarg ;;
2005
2006   -program-suffix | --program-suffix | --program-suffi | --program-suff \
2007   | --program-suf | --program-su | --program-s)
2008     ac_prev=program_suffix ;;
2009   -program-suffix=* | --program-suffix=* | --program-suffi=* \
2010   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2011     program_suffix=$ac_optarg ;;
2012
2013   -program-transform-name | --program-transform-name \
2014   | --program-transform-nam | --program-transform-na \
2015   | --program-transform-n | --program-transform- \
2016   | --program-transform | --program-transfor \
2017   | --program-transfo | --program-transf \
2018   | --program-trans | --program-tran \
2019   | --progr-tra | --program-tr | --program-t)
2020     ac_prev=program_transform_name ;;
2021   -program-transform-name=* | --program-transform-name=* \
2022   | --program-transform-nam=* | --program-transform-na=* \
2023   | --program-transform-n=* | --program-transform-=* \
2024   | --program-transform=* | --program-transfor=* \
2025   | --program-transfo=* | --program-transf=* \
2026   | --program-trans=* | --program-tran=* \
2027   | --progr-tra=* | --program-tr=* | --program-t=*)
2028     program_transform_name=$ac_optarg ;;
2029
2030   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2031     ac_prev=pdfdir ;;
2032   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2033     pdfdir=$ac_optarg ;;
2034
2035   -psdir | --psdir | --psdi | --psd | --ps)
2036     ac_prev=psdir ;;
2037   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2038     psdir=$ac_optarg ;;
2039
2040   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2041   | -silent | --silent | --silen | --sile | --sil)
2042     silent=yes ;;
2043
2044   -runstatedir | --runstatedir | --runstatedi | --runstated \
2045   | --runstate | --runstat | --runsta | --runst | --runs \
2046   | --run | --ru | --r)
2047     ac_prev=runstatedir ;;
2048   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2049   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2050   | --run=* | --ru=* | --r=*)
2051     runstatedir=$ac_optarg ;;
2052
2053   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2054     ac_prev=sbindir ;;
2055   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2056   | --sbi=* | --sb=*)
2057     sbindir=$ac_optarg ;;
2058
2059   -sharedstatedir | --sharedstatedir | --sharedstatedi \
2060   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2061   | --sharedst | --shareds | --shared | --share | --shar \
2062   | --sha | --sh)
2063     ac_prev=sharedstatedir ;;
2064   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2065   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2066   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2067   | --sha=* | --sh=*)
2068     sharedstatedir=$ac_optarg ;;
2069
2070   -site | --site | --sit)
2071     ac_prev=site ;;
2072   -site=* | --site=* | --sit=*)
2073     site=$ac_optarg ;;
2074
2075   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2076     ac_prev=srcdir ;;
2077   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2078     srcdir=$ac_optarg ;;
2079
2080   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2081   | --syscon | --sysco | --sysc | --sys | --sy)
2082     ac_prev=sysconfdir ;;
2083   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2084   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2085     sysconfdir=$ac_optarg ;;
2086
2087   -target | --target | --targe | --targ | --tar | --ta | --t)
2088     ac_prev=target_alias ;;
2089   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2090     target_alias=$ac_optarg ;;
2091
2092   -v | -verbose | --verbose | --verbos | --verbo | --verb)
2093     verbose=yes ;;
2094
2095   -version | --version | --versio | --versi | --vers | -V)
2096     ac_init_version=: ;;
2097
2098   -with-* | --with-*)
2099     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2100     # Reject names that are not valid shell variable names.
2101     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2102       as_fn_error $? "invalid package name: \`$ac_useropt'"
2103     ac_useropt_orig=$ac_useropt
2104     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2105     case $ac_user_opts in
2106       *"
2107 "with_$ac_useropt"
2108 "*) ;;
2109       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2110          ac_unrecognized_sep=', ';;
2111     esac
2112     eval with_$ac_useropt=\$ac_optarg ;;
2113
2114   -without-* | --without-*)
2115     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2116     # Reject names that are not valid shell variable names.
2117     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2118       as_fn_error $? "invalid package name: \`$ac_useropt'"
2119     ac_useropt_orig=$ac_useropt
2120     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2121     case $ac_user_opts in
2122       *"
2123 "with_$ac_useropt"
2124 "*) ;;
2125       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2126          ac_unrecognized_sep=', ';;
2127     esac
2128     eval with_$ac_useropt=no ;;
2129
2130   --x)
2131     # Obsolete; use --with-x.
2132     with_x=yes ;;
2133
2134   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2135   | --x-incl | --x-inc | --x-in | --x-i)
2136     ac_prev=x_includes ;;
2137   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2138   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2139     x_includes=$ac_optarg ;;
2140
2141   -x-libraries | --x-libraries | --x-librarie | --x-librari \
2142   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2143     ac_prev=x_libraries ;;
2144   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2145   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2146     x_libraries=$ac_optarg ;;
2147
2148   -*) as_fn_error $? "unrecognized option: \`$ac_option'
2149 Try \`$0 --help' for more information"
2150     ;;
2151
2152   *=*)
2153     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2154     # Reject names that are not valid shell variable names.
2155     case $ac_envvar in #(
2156       '' | [0-9]* | *[!_$as_cr_alnum]* )
2157       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2158     esac
2159     eval $ac_envvar=\$ac_optarg
2160     export $ac_envvar ;;
2161
2162   *)
2163     # FIXME: should be removed in autoconf 3.0.
2164     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
2165     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2166       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
2167     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2168     ;;
2169
2170   esac
2171 done
2172
2173 if test -n "$ac_prev"; then
2174   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2175   as_fn_error $? "missing argument to $ac_option"
2176 fi
2177
2178 if test -n "$ac_unrecognized_opts"; then
2179   case $enable_option_checking in
2180     no) ;;
2181     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2182     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2183   esac
2184 fi
2185
2186 # Check all directory arguments for consistency.
2187 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
2188                 datadir sysconfdir sharedstatedir localstatedir includedir \
2189                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2190                 libdir localedir mandir runstatedir
2191 do
2192   eval ac_val=\$$ac_var
2193   # Remove trailing slashes.
2194   case $ac_val in
2195     */ )
2196       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2197       eval $ac_var=\$ac_val;;
2198   esac
2199   # Be sure to have absolute directory names.
2200   case $ac_val in
2201     [\\/$]* | ?:[\\/]* )  continue;;
2202     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2203   esac
2204   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2205 done
2206
2207 # There might be people who depend on the old broken behavior: `$host'
2208 # used to hold the argument of --host etc.
2209 # FIXME: To remove some day.
2210 build=$build_alias
2211 host=$host_alias
2212 target=$target_alias
2213
2214 # FIXME: To remove some day.
2215 if test "x$host_alias" != x; then
2216   if test "x$build_alias" = x; then
2217     cross_compiling=maybe
2218   elif test "x$build_alias" != "x$host_alias"; then
2219     cross_compiling=yes
2220   fi
2221 fi
2222
2223 ac_tool_prefix=
2224 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2225
2226 test "$silent" = yes && exec 6>/dev/null
2227
2228
2229 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2230 ac_ls_di=`ls -di .` &&
2231 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2232   as_fn_error $? "working directory cannot be determined"
2233 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2234   as_fn_error $? "pwd does not report name of working directory"
2235
2236
2237 # Find the source files, if location was not specified.
2238 if test -z "$srcdir"; then
2239   ac_srcdir_defaulted=yes
2240   # Try the directory containing this script, then the parent directory.
2241   ac_confdir=`$as_dirname -- "$as_myself" ||
2242 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2243          X"$as_myself" : 'X\(//\)[^/]' \| \
2244          X"$as_myself" : 'X\(//\)$' \| \
2245          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2246 printf "%s\n" X"$as_myself" |
2247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2248             s//\1/
2249             q
2250           }
2251           /^X\(\/\/\)[^/].*/{
2252             s//\1/
2253             q
2254           }
2255           /^X\(\/\/\)$/{
2256             s//\1/
2257             q
2258           }
2259           /^X\(\/\).*/{
2260             s//\1/
2261             q
2262           }
2263           s/.*/./; q'`
2264   srcdir=$ac_confdir
2265   if test ! -r "$srcdir/$ac_unique_file"; then
2266     srcdir=..
2267   fi
2268 else
2269   ac_srcdir_defaulted=no
2270 fi
2271 if test ! -r "$srcdir/$ac_unique_file"; then
2272   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2273   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2274 fi
2275 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2276 ac_abs_confdir=`(
2277         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2278         pwd)`
2279 # When building in place, set srcdir=.
2280 if test "$ac_abs_confdir" = "$ac_pwd"; then
2281   srcdir=.
2282 fi
2283 # Remove unnecessary trailing slashes from srcdir.
2284 # Double slashes in file names in object file debugging info
2285 # mess up M-x gdb in Emacs.
2286 case $srcdir in
2287 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2288 esac
2289 for ac_var in $ac_precious_vars; do
2290   eval ac_env_${ac_var}_set=\${${ac_var}+set}
2291   eval ac_env_${ac_var}_value=\$${ac_var}
2292   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2293   eval ac_cv_env_${ac_var}_value=\$${ac_var}
2294 done
2295
2296 #
2297 # Report the --help message.
2298 #
2299 if test "$ac_init_help" = "long"; then
2300   # Omit some internal or obsolete options to make the list less imposing.
2301   # This message is too long to be a string in the A/UX 3.1 sh.
2302   cat <<_ACEOF
2303 \`configure' configures gzip 1.10 to adapt to many kinds of systems.
2304
2305 Usage: $0 [OPTION]... [VAR=VALUE]...
2306
2307 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2308 VAR=VALUE.  See below for descriptions of some of the useful variables.
2309
2310 Defaults for the options are specified in brackets.
2311
2312 Configuration:
2313   -h, --help              display this help and exit
2314       --help=short        display options specific to this package
2315       --help=recursive    display the short help of all the included packages
2316   -V, --version           display version information and exit
2317   -q, --quiet, --silent   do not print \`checking ...' messages
2318       --cache-file=FILE   cache test results in FILE [disabled]
2319   -C, --config-cache      alias for \`--cache-file=config.cache'
2320   -n, --no-create         do not create output files
2321       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
2322
2323 Installation directories:
2324   --prefix=PREFIX         install architecture-independent files in PREFIX
2325                           [$ac_default_prefix]
2326   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
2327                           [PREFIX]
2328
2329 By default, \`make install' will install all the files in
2330 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
2331 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2332 for instance \`--prefix=\$HOME'.
2333
2334 For better control, use the options below.
2335
2336 Fine tuning of the installation directories:
2337   --bindir=DIR            user executables [EPREFIX/bin]
2338   --sbindir=DIR           system admin executables [EPREFIX/sbin]
2339   --libexecdir=DIR        program executables [EPREFIX/libexec]
2340   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
2341   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
2342   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
2343   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
2344   --libdir=DIR            object code libraries [EPREFIX/lib]
2345   --includedir=DIR        C header files [PREFIX/include]
2346   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
2347   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
2348   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
2349   --infodir=DIR           info documentation [DATAROOTDIR/info]
2350   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
2351   --mandir=DIR            man documentation [DATAROOTDIR/man]
2352   --docdir=DIR            documentation root [DATAROOTDIR/doc/gzip]
2353   --htmldir=DIR           html documentation [DOCDIR]
2354   --dvidir=DIR            dvi documentation [DOCDIR]
2355   --pdfdir=DIR            pdf documentation [DOCDIR]
2356   --psdir=DIR             ps documentation [DOCDIR]
2357 _ACEOF
2358
2359   cat <<\_ACEOF
2360
2361 Program names:
2362   --program-prefix=PREFIX            prepend PREFIX to installed program names
2363   --program-suffix=SUFFIX            append SUFFIX to installed program names
2364   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
2365
2366 System types:
2367   --build=BUILD     configure for building on BUILD [guessed]
2368   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
2369 _ACEOF
2370 fi
2371
2372 if test -n "$ac_init_help"; then
2373   case $ac_init_help in
2374      short | recursive ) echo "Configuration of gzip 1.10:";;
2375    esac
2376   cat <<\_ACEOF
2377
2378 Optional Features:
2379   --disable-option-checking  ignore unrecognized --enable/--with options
2380   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
2381   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
2382   --enable-silent-rules   less verbose build output (undo: "make V=1")
2383   --disable-silent-rules  verbose build output (undo: "make V=0")
2384   --enable-dependency-tracking
2385                           do not reject slow dependency extractors
2386   --disable-dependency-tracking
2387                           speeds up one-time build
2388   --disable-largefile     omit support for large files
2389   --enable-threads={posix|solaris|pth|windows}
2390                           specify multithreading API
2391   --disable-threads       build without multithread safety
2392   --disable-rpath         do not hardcode runtime library paths
2393   --enable-gcc-warnings   turn on many GCC warnings (for developers; best with
2394                           GNU make)
2395
2396 Optional Packages:
2397   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
2398   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
2399   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
2400   --with-libpth-prefix[=DIR]  search for libpth in DIR/include and DIR/lib
2401   --without-libpth-prefix     don't search for libpth in includedir and libdir
2402
2403 Some influential environment variables:
2404   CC          C compiler command
2405   CFLAGS      C compiler flags
2406   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
2407               nonstandard directory <lib dir>
2408   LIBS        libraries to pass to the linker, e.g. -l<library>
2409   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2410               you have headers in a nonstandard directory <include dir>
2411   CPP         C preprocessor
2412
2413 Use these variables to override the choices made by `configure' or to help
2414 it to find libraries and programs with nonstandard names/locations.
2415
2416 Report bugs to <bug-gzip@gnu.org>.
2417 _ACEOF
2418 ac_status=$?
2419 fi
2420
2421 if test "$ac_init_help" = "recursive"; then
2422   # If there are subdirs, report their specific --help.
2423   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2424     test -d "$ac_dir" ||
2425       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2426       continue
2427     ac_builddir=.
2428
2429 case "$ac_dir" in
2430 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2431 *)
2432   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2433   # A ".." for each directory in $ac_dir_suffix.
2434   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2435   case $ac_top_builddir_sub in
2436   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2437   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2438   esac ;;
2439 esac
2440 ac_abs_top_builddir=$ac_pwd
2441 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2442 # for backward compatibility:
2443 ac_top_builddir=$ac_top_build_prefix
2444
2445 case $srcdir in
2446   .)  # We are building in place.
2447     ac_srcdir=.
2448     ac_top_srcdir=$ac_top_builddir_sub
2449     ac_abs_top_srcdir=$ac_pwd ;;
2450   [\\/]* | ?:[\\/]* )  # Absolute name.
2451     ac_srcdir=$srcdir$ac_dir_suffix;
2452     ac_top_srcdir=$srcdir
2453     ac_abs_top_srcdir=$srcdir ;;
2454   *) # Relative name.
2455     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2456     ac_top_srcdir=$ac_top_build_prefix$srcdir
2457     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2458 esac
2459 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2460
2461     cd "$ac_dir" || { ac_status=$?; continue; }
2462     # Check for guested configure.
2463     if test -f "$ac_srcdir/configure.gnu"; then
2464       echo &&
2465       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2466     elif test -f "$ac_srcdir/configure"; then
2467       echo &&
2468       $SHELL "$ac_srcdir/configure" --help=recursive
2469     else
2470       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2471     fi || ac_status=$?
2472     cd "$ac_pwd" || { ac_status=$?; break; }
2473   done
2474 fi
2475
2476 test -n "$ac_init_help" && exit $ac_status
2477 if $ac_init_version; then
2478   cat <<\_ACEOF
2479 gzip configure 1.10
2480 generated by GNU Autoconf 2.69.197-b8fd7
2481
2482 Copyright (C) 2017 Free Software Foundation, Inc.
2483 This configure script is free software; the Free Software Foundation
2484 gives unlimited permission to copy, distribute and modify it.
2485 _ACEOF
2486   exit
2487 fi
2488
2489 ## ------------------------ ##
2490 ## Autoconf initialization. ##
2491 ## ------------------------ ##
2492
2493 # ac_fn_c_try_compile LINENO
2494 # --------------------------
2495 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2496 ac_fn_c_try_compile ()
2497 {
2498   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2499   rm -f conftest.$ac_objext
2500   if { { ac_try="$ac_compile"
2501 case "(($ac_try" in
2502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503   *) ac_try_echo=$ac_try;;
2504 esac
2505 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2506 printf "%s\n" "$ac_try_echo"; } >&5
2507   (eval "$ac_compile") 2>conftest.err
2508   ac_status=$?
2509   if test -s conftest.err; then
2510     grep -v '^ *+' conftest.err >conftest.er1
2511     cat conftest.er1 >&5
2512     mv -f conftest.er1 conftest.err
2513   fi
2514   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2515   test $ac_status = 0; } && {
2516          test -z "$ac_c_werror_flag" ||
2517          test ! -s conftest.err
2518        } && test -s conftest.$ac_objext
2519 then :
2520   ac_retval=0
2521 else
2522   printf "%s\n" "$as_me: failed program was:" >&5
2523 sed 's/^/| /' conftest.$ac_ext >&5
2524
2525         ac_retval=1
2526 fi
2527   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2528   as_fn_set_status $ac_retval
2529
2530 } # ac_fn_c_try_compile
2531
2532 # ac_fn_c_try_cpp LINENO
2533 # ----------------------
2534 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2535 ac_fn_c_try_cpp ()
2536 {
2537   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2538   if { { ac_try="$ac_cpp conftest.$ac_ext"
2539 case "(($ac_try" in
2540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2541   *) ac_try_echo=$ac_try;;
2542 esac
2543 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2544 printf "%s\n" "$ac_try_echo"; } >&5
2545   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2546   ac_status=$?
2547   if test -s conftest.err; then
2548     grep -v '^ *+' conftest.err >conftest.er1
2549     cat conftest.er1 >&5
2550     mv -f conftest.er1 conftest.err
2551   fi
2552   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2553   test $ac_status = 0; } > conftest.i && {
2554          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2555          test ! -s conftest.err
2556        }
2557 then :
2558   ac_retval=0
2559 else
2560   printf "%s\n" "$as_me: failed program was:" >&5
2561 sed 's/^/| /' conftest.$ac_ext >&5
2562
2563     ac_retval=1
2564 fi
2565   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2566   as_fn_set_status $ac_retval
2567
2568 } # ac_fn_c_try_cpp
2569
2570 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2571 # -------------------------------------------------------
2572 # Tests whether HEADER exists and can be compiled using the include files in
2573 # INCLUDES, setting the cache variable VAR accordingly.
2574 ac_fn_c_check_header_compile ()
2575 {
2576   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2577   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2578 printf %s "checking for $2... " >&6; }
2579 if eval test \${$3+y}
2580 then :
2581   printf %s "(cached) " >&6
2582 else
2583   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2584 /* end confdefs.h.  */
2585 $4
2586 #include <$2>
2587 _ACEOF
2588 if ac_fn_c_try_compile "$LINENO"
2589 then :
2590   eval "$3=yes"
2591 else
2592   eval "$3=no"
2593 fi
2594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2595 fi
2596 eval ac_res=\$$3
2597                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2598 printf "%s\n" "$ac_res" >&6; }
2599   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2600
2601 } # ac_fn_c_check_header_compile
2602
2603 # ac_fn_c_try_link LINENO
2604 # -----------------------
2605 # Try to link conftest.$ac_ext, and return whether this succeeded.
2606 ac_fn_c_try_link ()
2607 {
2608   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2609   rm -f conftest.$ac_objext conftest$ac_exeext
2610   if { { ac_try="$ac_link"
2611 case "(($ac_try" in
2612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613   *) ac_try_echo=$ac_try;;
2614 esac
2615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2616 printf "%s\n" "$ac_try_echo"; } >&5
2617   (eval "$ac_link") 2>conftest.err
2618   ac_status=$?
2619   if test -s conftest.err; then
2620     grep -v '^ *+' conftest.err >conftest.er1
2621     cat conftest.er1 >&5
2622     mv -f conftest.er1 conftest.err
2623   fi
2624   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2625   test $ac_status = 0; } && {
2626          test -z "$ac_c_werror_flag" ||
2627          test ! -s conftest.err
2628        } && test -s conftest$ac_exeext && {
2629          test "$cross_compiling" = yes ||
2630          test -x conftest$ac_exeext
2631        }
2632 then :
2633   ac_retval=0
2634 else
2635   printf "%s\n" "$as_me: failed program was:" >&5
2636 sed 's/^/| /' conftest.$ac_ext >&5
2637
2638         ac_retval=1
2639 fi
2640   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2641   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2642   # interfere with the next link command; also delete a directory that is
2643   # left behind by Apple's compiler.  We do this before executing the actions.
2644   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2645   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2646   as_fn_set_status $ac_retval
2647
2648 } # ac_fn_c_try_link
2649
2650 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2651 # -------------------------------------------
2652 # Tests whether TYPE exists after having included INCLUDES, setting cache
2653 # variable VAR accordingly.
2654 ac_fn_c_check_type ()
2655 {
2656   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2657   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2658 printf %s "checking for $2... " >&6; }
2659 if eval test \${$3+y}
2660 then :
2661   printf %s "(cached) " >&6
2662 else
2663   eval "$3=no"
2664   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665 /* end confdefs.h.  */
2666 $4
2667 int
2668 main (void)
2669 {
2670 if (sizeof ($2))
2671          return 0;
2672   ;
2673   return 0;
2674 }
2675 _ACEOF
2676 if ac_fn_c_try_compile "$LINENO"
2677 then :
2678   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679 /* end confdefs.h.  */
2680 $4
2681 int
2682 main (void)
2683 {
2684 if (sizeof (($2)))
2685             return 0;
2686   ;
2687   return 0;
2688 }
2689 _ACEOF
2690 if ac_fn_c_try_compile "$LINENO"
2691 then :
2692
2693 else
2694   eval "$3=yes"
2695 fi
2696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697 fi
2698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699 fi
2700 eval ac_res=\$$3
2701                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2702 printf "%s\n" "$ac_res" >&6; }
2703   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2704
2705 } # ac_fn_c_check_type
2706
2707 # ac_fn_c_check_func LINENO FUNC VAR
2708 # ----------------------------------
2709 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2710 ac_fn_c_check_func ()
2711 {
2712   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2713   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2714 printf %s "checking for $2... " >&6; }
2715 if eval test \${$3+y}
2716 then :
2717   printf %s "(cached) " >&6
2718 else
2719   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2720 /* end confdefs.h.  */
2721 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2722    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2723 #define $2 innocuous_$2
2724
2725 /* System header to define __stub macros and hopefully few prototypes,
2726    which can conflict with char $2 (); below.  */
2727
2728 #include <limits.h>
2729 #undef $2
2730
2731 /* Override any GCC internal prototype to avoid an error.
2732    Use char because int might match the return type of a GCC
2733    builtin and then its argument prototype would still apply.  */
2734 #ifdef __cplusplus
2735 extern "C"
2736 #endif
2737 char $2 ();
2738 /* The GNU C library defines this for functions which it implements
2739     to always fail with ENOSYS.  Some functions are actually named
2740     something starting with __ and the normal name is an alias.  */
2741 #if defined __stub_$2 || defined __stub___$2
2742 choke me
2743 #endif
2744
2745 int
2746 main (void)
2747 {
2748 return $2 ();
2749   ;
2750   return 0;
2751 }
2752 _ACEOF
2753 if ac_fn_c_try_link "$LINENO"
2754 then :
2755   eval "$3=yes"
2756 else
2757   eval "$3=no"
2758 fi
2759 rm -f core conftest.err conftest.$ac_objext \
2760     conftest$ac_exeext conftest.$ac_ext
2761 fi
2762 eval ac_res=\$$3
2763                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2764 printf "%s\n" "$ac_res" >&6; }
2765   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2766
2767 } # ac_fn_c_check_func
2768
2769 # ac_fn_c_try_run LINENO
2770 # ----------------------
2771 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2772 # executables *can* be run.
2773 ac_fn_c_try_run ()
2774 {
2775   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2776   if { { ac_try="$ac_link"
2777 case "(($ac_try" in
2778   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779   *) ac_try_echo=$ac_try;;
2780 esac
2781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2782 printf "%s\n" "$ac_try_echo"; } >&5
2783   (eval "$ac_link") 2>&5
2784   ac_status=$?
2785   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2786   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2787   { { case "(($ac_try" in
2788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2789   *) ac_try_echo=$ac_try;;
2790 esac
2791 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2792 printf "%s\n" "$ac_try_echo"; } >&5
2793   (eval "$ac_try") 2>&5
2794   ac_status=$?
2795   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2796   test $ac_status = 0; }; }
2797 then :
2798   ac_retval=0
2799 else
2800   printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2801        printf "%s\n" "$as_me: failed program was:" >&5
2802 sed 's/^/| /' conftest.$ac_ext >&5
2803
2804        ac_retval=$ac_status
2805 fi
2806   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2807   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2808   as_fn_set_status $ac_retval
2809
2810 } # ac_fn_c_try_run
2811
2812 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2813 # ---------------------------------------------
2814 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2815 # accordingly.
2816 ac_fn_c_check_decl ()
2817 {
2818   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2819   # Initialize each $ac_[]_AC_LANG_ABBREV[]_decl_warn_flag once.
2820       as_decl_name=`echo $2|sed 's/ *(.*//'`
2821   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2822   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2823 printf %s "checking whether $as_decl_name is declared... " >&6; }
2824 if eval test \${$3+y}
2825 then :
2826   printf %s "(cached) " >&6
2827 else
2828   ac_save_werror_flag=$ac_c_werror_flag
2829   ac_c_werror_flag="$ac_c_decl_warn_flag$ac_c_werror_flag"
2830   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2831 /* end confdefs.h.  */
2832 $4
2833 int
2834 main (void)
2835 {
2836 #ifndef $as_decl_name
2837 #ifdef __cplusplus
2838   (void) $as_decl_use;
2839 #else
2840   (void) $as_decl_name;
2841 #endif
2842 #endif
2843
2844   ;
2845   return 0;
2846 }
2847 _ACEOF
2848 if ac_fn_c_try_compile "$LINENO"
2849 then :
2850   eval "$3=yes"
2851 else
2852   eval "$3=no"
2853 fi
2854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2855   ac_c_werror_flag=$ac_save_werror_flag
2856 fi
2857 eval ac_res=\$$3
2858                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2859 printf "%s\n" "$ac_res" >&6; }
2860   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2861
2862 } # ac_fn_c_check_decl
2863
2864 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2865 # --------------------------------------------
2866 # Tries to find the compile-time value of EXPR in a program that includes
2867 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2868 # computed
2869 ac_fn_c_compute_int ()
2870 {
2871   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2872   if test "$cross_compiling" = yes; then
2873     # Depending upon the size, compute the lo and hi bounds.
2874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2875 /* end confdefs.h.  */
2876 $4
2877 int
2878 main (void)
2879 {
2880 static int test_array [1 - 2 * !(($2) >= 0)];
2881 test_array [0] = 0;
2882 return test_array [0];
2883
2884   ;
2885   return 0;
2886 }
2887 _ACEOF
2888 if ac_fn_c_try_compile "$LINENO"
2889 then :
2890   ac_lo=0 ac_mid=0
2891   while :; do
2892     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2893 /* end confdefs.h.  */
2894 $4
2895 int
2896 main (void)
2897 {
2898 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2899 test_array [0] = 0;
2900 return test_array [0];
2901
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 if ac_fn_c_try_compile "$LINENO"
2907 then :
2908   ac_hi=$ac_mid; break
2909 else
2910   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2911                         if test $ac_lo -le $ac_mid; then
2912                           ac_lo= ac_hi=
2913                           break
2914                         fi
2915                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2916 fi
2917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2918   done
2919 else
2920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2921 /* end confdefs.h.  */
2922 $4
2923 int
2924 main (void)
2925 {
2926 static int test_array [1 - 2 * !(($2) < 0)];
2927 test_array [0] = 0;
2928 return test_array [0];
2929
2930   ;
2931   return 0;
2932 }
2933 _ACEOF
2934 if ac_fn_c_try_compile "$LINENO"
2935 then :
2936   ac_hi=-1 ac_mid=-1
2937   while :; do
2938     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2939 /* end confdefs.h.  */
2940 $4
2941 int
2942 main (void)
2943 {
2944 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2945 test_array [0] = 0;
2946 return test_array [0];
2947
2948   ;
2949   return 0;
2950 }
2951 _ACEOF
2952 if ac_fn_c_try_compile "$LINENO"
2953 then :
2954   ac_lo=$ac_mid; break
2955 else
2956   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2957                         if test $ac_mid -le $ac_hi; then
2958                           ac_lo= ac_hi=
2959                           break
2960                         fi
2961                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2962 fi
2963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2964   done
2965 else
2966   ac_lo= ac_hi=
2967 fi
2968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2969 fi
2970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2971 # Binary search between lo and hi bounds.
2972 while test "x$ac_lo" != "x$ac_hi"; do
2973   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2974   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2975 /* end confdefs.h.  */
2976 $4
2977 int
2978 main (void)
2979 {
2980 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2981 test_array [0] = 0;
2982 return test_array [0];
2983
2984   ;
2985   return 0;
2986 }
2987 _ACEOF
2988 if ac_fn_c_try_compile "$LINENO"
2989 then :
2990   ac_hi=$ac_mid
2991 else
2992   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2993 fi
2994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2995 done
2996 case $ac_lo in #((
2997 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2998 '') ac_retval=1 ;;
2999 esac
3000   else
3001     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3002 /* end confdefs.h.  */
3003 $4
3004 static long int longval () { return $2; }
3005 static unsigned long int ulongval () { return $2; }
3006 #include <stdio.h>
3007 #include <stdlib.h>
3008 int
3009 main (void)
3010 {
3011
3012   FILE *f = fopen ("conftest.val", "w");
3013   if (! f)
3014     return 1;
3015   if (($2) < 0)
3016     {
3017       long int i = longval ();
3018       if (i != ($2))
3019         return 1;
3020       fprintf (f, "%ld", i);
3021     }
3022   else
3023     {
3024       unsigned long int i = ulongval ();
3025       if (i != ($2))
3026         return 1;
3027       fprintf (f, "%lu", i);
3028     }
3029   /* Do not output a trailing newline, as this causes \r\n confusion
3030      on some platforms.  */
3031   return ferror (f) || fclose (f) != 0;
3032
3033   ;
3034   return 0;
3035 }
3036 _ACEOF
3037 if ac_fn_c_try_run "$LINENO"
3038 then :
3039   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3040 else
3041   ac_retval=1
3042 fi
3043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3044   conftest.$ac_objext conftest.beam conftest.$ac_ext
3045 rm -f conftest.val
3046
3047   fi
3048   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3049   as_fn_set_status $ac_retval
3050
3051 } # ac_fn_c_compute_int
3052
3053 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3054 # ----------------------------------------------------
3055 # Tries to find if the field MEMBER exists in type AGGR, after including
3056 # INCLUDES, setting cache variable VAR accordingly.
3057 ac_fn_c_check_member ()
3058 {
3059   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3060   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3061 printf %s "checking for $2.$3... " >&6; }
3062 if eval test \${$4+y}
3063 then :
3064   printf %s "(cached) " >&6
3065 else
3066   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h.  */
3068 $5
3069 int
3070 main (void)
3071 {
3072 static $2 ac_aggr;
3073 if (ac_aggr.$3)
3074 return 0;
3075   ;
3076   return 0;
3077 }
3078 _ACEOF
3079 if ac_fn_c_try_compile "$LINENO"
3080 then :
3081   eval "$4=yes"
3082 else
3083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084 /* end confdefs.h.  */
3085 $5
3086 int
3087 main (void)
3088 {
3089 static $2 ac_aggr;
3090 if (sizeof ac_aggr.$3)
3091 return 0;
3092   ;
3093   return 0;
3094 }
3095 _ACEOF
3096 if ac_fn_c_try_compile "$LINENO"
3097 then :
3098   eval "$4=yes"
3099 else
3100   eval "$4=no"
3101 fi
3102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3103 fi
3104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3105 fi
3106 eval ac_res=\$$4
3107                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3108 printf "%s\n" "$ac_res" >&6; }
3109   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3110
3111 } # ac_fn_c_check_member
3112 ac_configure_args_raw=
3113 for ac_arg
3114 do
3115   case $ac_arg in
3116   *\'*)
3117     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3118   esac
3119   as_fn_append ac_configure_args_raw " '$ac_arg'"
3120 done
3121
3122 case $ac_configure_args_raw in
3123   *$as_nl*)
3124     ac_safe_unquote= ;;
3125   *)
3126     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
3127     ac_unsafe_a="$ac_unsafe_z#~"
3128     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3129     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3130 esac
3131
3132 cat >config.log <<_ACEOF
3133 This file contains any messages produced by compilers while
3134 running configure, to aid debugging if configure makes a mistake.
3135
3136 It was created by gzip $as_me 1.10, which was
3137 generated by GNU Autoconf 2.69.197-b8fd7.  Invocation command line was
3138
3139   $ $0$ac_configure_args_raw
3140
3141 _ACEOF
3142 exec 5>>config.log
3143 {
3144 cat <<_ASUNAME
3145 ## --------- ##
3146 ## Platform. ##
3147 ## --------- ##
3148
3149 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3150 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3151 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3152 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3153 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3154
3155 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3156 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
3157
3158 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
3159 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
3160 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3161 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
3162 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
3163 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
3164 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
3165
3166 _ASUNAME
3167
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171   IFS=$as_save_IFS
3172   case $as_dir in #(((
3173     '') as_dir=./ ;;
3174     */) ;;
3175     *) as_dir=$as_dir/ ;;
3176   esac
3177     printf "%s\n" "PATH: $as_dir"
3178   done
3179 IFS=$as_save_IFS
3180
3181 } >&5
3182
3183 cat >&5 <<_ACEOF
3184
3185
3186 ## ----------- ##
3187 ## Core tests. ##
3188 ## ----------- ##
3189
3190 _ACEOF
3191
3192
3193 # Keep a trace of the command line.
3194 # Strip out --no-create and --no-recursion so they do not pile up.
3195 # Strip out --silent because we don't want to record it for future runs.
3196 # Also quote any args containing shell meta-characters.
3197 # Make two passes to allow for proper duplicate-argument suppression.
3198 ac_configure_args=
3199 ac_configure_args0=
3200 ac_configure_args1=
3201 ac_must_keep_next=false
3202 for ac_pass in 1 2
3203 do
3204   for ac_arg
3205   do
3206     case $ac_arg in
3207     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3208     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3209     | -silent | --silent | --silen | --sile | --sil)
3210       continue ;;
3211     *\'*)
3212       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3213     esac
3214     case $ac_pass in
3215     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3216     2)
3217       as_fn_append ac_configure_args1 " '$ac_arg'"
3218       if test $ac_must_keep_next = true; then
3219         ac_must_keep_next=false # Got value, back to normal.
3220       else
3221         case $ac_arg in
3222           *=* | --config-cache | -C | -disable-* | --disable-* \
3223           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3224           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3225           | -with-* | --with-* | -without-* | --without-* | --x)
3226             case "$ac_configure_args0 " in
3227               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3228             esac
3229             ;;
3230           -* ) ac_must_keep_next=true ;;
3231         esac
3232       fi
3233       as_fn_append ac_configure_args " '$ac_arg'"
3234       ;;
3235     esac
3236   done
3237 done
3238 { ac_configure_args0=; unset ac_configure_args0;}
3239 { ac_configure_args1=; unset ac_configure_args1;}
3240
3241 # When interrupted or exit'd, cleanup temporary files, and complete
3242 # config.log.  We remove comments because anyway the quotes in there
3243 # would cause problems or look ugly.
3244 # WARNING: Use '\'' to represent an apostrophe within the trap.
3245 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3246 trap 'exit_status=$?
3247   # Sanitize IFS.
3248   IFS=" ""      $as_nl"
3249   # Save into config.log some information that might help in debugging.
3250   {
3251     echo
3252
3253     printf "%s\n" "## ---------------- ##
3254 ## Cache variables. ##
3255 ## ---------------- ##"
3256     echo
3257     # The following way of writing the cache mishandles newlines in values,
3258 (
3259   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3260     eval ac_val=\$$ac_var
3261     case $ac_val in #(
3262     *${as_nl}*)
3263       case $ac_var in #(
3264       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3265 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3266       esac
3267       case $ac_var in #(
3268       _ | IFS | as_nl) ;; #(
3269       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3270       *) { eval $ac_var=; unset $ac_var;} ;;
3271       esac ;;
3272     esac
3273   done
3274   (set) 2>&1 |
3275     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3276     *${as_nl}ac_space=\ *)
3277       sed -n \
3278         "s/'\''/'\''\\\\'\'''\''/g;
3279           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3280       ;; #(
3281     *)
3282       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3283       ;;
3284     esac |
3285     sort
3286 )
3287     echo
3288
3289     printf "%s\n" "## ----------------- ##
3290 ## Output variables. ##
3291 ## ----------------- ##"
3292     echo
3293     for ac_var in $ac_subst_vars
3294     do
3295       eval ac_val=\$$ac_var
3296       case $ac_val in
3297       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3298       esac
3299       printf "%s\n" "$ac_var='\''$ac_val'\''"
3300     done | sort
3301     echo
3302
3303     if test -n "$ac_subst_files"; then
3304       printf "%s\n" "## ------------------- ##
3305 ## File substitutions. ##
3306 ## ------------------- ##"
3307       echo
3308       for ac_var in $ac_subst_files
3309       do
3310         eval ac_val=\$$ac_var
3311         case $ac_val in
3312         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3313         esac
3314         printf "%s\n" "$ac_var='\''$ac_val'\''"
3315       done | sort
3316       echo
3317     fi
3318
3319     if test -s confdefs.h; then
3320       printf "%s\n" "## ----------- ##
3321 ## confdefs.h. ##
3322 ## ----------- ##"
3323       echo
3324       cat confdefs.h
3325       echo
3326     fi
3327     test "$ac_signal" != 0 &&
3328       printf "%s\n" "$as_me: caught signal $ac_signal"
3329     printf "%s\n" "$as_me: exit $exit_status"
3330   } >&5
3331   rm -f core *.core core.conftest.* &&
3332     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3333     exit $exit_status
3334 ' 0
3335 for ac_signal in 1 2 13 15; do
3336   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3337 done
3338 ac_signal=0
3339
3340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3341 rm -f -r conftest* confdefs.h
3342
3343 printf "%s\n" "/* confdefs.h */" > confdefs.h
3344
3345 # Predefined preprocessor variables.
3346
3347 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3348
3349 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3350
3351 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3352
3353 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3354
3355 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3356
3357 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3358
3359
3360 # Let the site file select an alternate cache file if it wants to.
3361 # Prefer an explicitly selected file to automatically selected ones.
3362 ac_site_file1=NONE
3363 ac_site_file2=NONE
3364 if test -n "$CONFIG_SITE"; then
3365   # We do not want a PATH search for config.site.
3366   case $CONFIG_SITE in #((
3367     -*)  ac_site_file1=./$CONFIG_SITE;;
3368     */*) ac_site_file1=$CONFIG_SITE;;
3369     *)   ac_site_file1=./$CONFIG_SITE;;
3370   esac
3371 elif test "x$prefix" != xNONE; then
3372   ac_site_file1=$prefix/share/config.site
3373   ac_site_file2=$prefix/etc/config.site
3374 else
3375   ac_site_file1=$ac_default_prefix/share/config.site
3376   ac_site_file2=$ac_default_prefix/etc/config.site
3377 fi
3378 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3379 do
3380   test "x$ac_site_file" = xNONE && continue
3381   if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3382     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3383 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3384     sed 's/^/| /' "$ac_site_file" >&5
3385     . "$ac_site_file" \
3386       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3388 as_fn_error $? "failed to load site script $ac_site_file
3389 See \`config.log' for more details" "$LINENO" 5; }
3390   fi
3391 done
3392
3393 if test -r "$cache_file"; then
3394   # Some versions of bash will fail to source /dev/null (special files
3395   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
3396   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3397     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3398 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3399     case $cache_file in
3400       [\\/]* | ?:[\\/]* ) . "$cache_file";;
3401       *)                      . "./$cache_file";;
3402     esac
3403   fi
3404 else
3405   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3406 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3407   >$cache_file
3408 fi
3409
3410 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3411 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3412 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3413 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3414 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3415 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3416 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3417 as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER"
3418 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
3419 as_fn_append ac_func_c_list " fchdir HAVE_FCHDIR"
3420 as_fn_append ac_header_c_list " dirent.h dirent_h HAVE_DIRENT_H"
3421 as_fn_append ac_func_c_list " fdopendir HAVE_FDOPENDIR"
3422 as_fn_append ac_func_c_list " strerror_r HAVE_STRERROR_R"
3423 as_fn_append ac_func_c_list " fcntl HAVE_FCNTL"
3424 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
3425 as_fn_append ac_func_c_list " mempcpy HAVE_MEMPCPY"
3426 as_fn_append ac_func_c_list " vasnprintf HAVE_VASNPRINTF"
3427 as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H"
3428 as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF"
3429 as_fn_append ac_func_c_list " fpurge HAVE_FPURGE"
3430 as_fn_append ac_func_c_list " __fpurge HAVE___FPURGE"
3431 as_fn_append ac_func_c_list " __freading HAVE___FREADING"
3432 as_fn_append ac_func_c_list " __fseterr HAVE___FSETERR"
3433 as_fn_append ac_func_c_list " fstatat HAVE_FSTATAT"
3434 as_fn_append ac_func_c_list " fsync HAVE_FSYNC"
3435 as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE"
3436 gl_getopt_required=GNU
3437 as_fn_append ac_header_c_list " getopt.h getopt_h HAVE_GETOPT_H"
3438 as_fn_append ac_header_c_list " sys/cdefs.h sys_cdefs_h HAVE_SYS_CDEFS_H"
3439 as_fn_append ac_func_c_list " getprogname HAVE_GETPROGNAME"
3440 as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME"
3441 as_fn_append ac_func_c_list " gettimeofday HAVE_GETTIMEOFDAY"
3442 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3443 as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
3444 as_fn_append ac_func_c_list " lstat HAVE_LSTAT"
3445 as_fn_append ac_header_c_list " math.h math_h HAVE_MATH_H"
3446 as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H"
3447 as_fn_append ac_func_c_list " mprotect HAVE_MPROTECT"
3448 as_fn_append ac_func_c_list " openat HAVE_OPENAT"
3449 as_fn_append ac_func_c_list " __xpg_strerror_r HAVE___XPG_STRERROR_R"
3450 gl_printf_safe=yes
3451 as_fn_append ac_func_c_list " sigaction HAVE_SIGACTION"
3452 as_fn_append ac_func_c_list " sigaltstack HAVE_SIGALTSTACK"
3453 as_fn_append ac_func_c_list " siginterrupt HAVE_SIGINTERRUPT"
3454 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3455 as_fn_append ac_func_c_list " strdup HAVE_STRDUP"
3456 as_fn_append ac_func_c_list " catgets HAVE_CATGETS"
3457 as_fn_append ac_func_c_list " pipe HAVE_PIPE"
3458 as_fn_append ac_func_c_list " unlinkat HAVE_UNLINKAT"
3459 as_fn_append ac_func_c_list " utime HAVE_UTIME"
3460 as_fn_append ac_header_c_list " utime.h utime_h HAVE_UTIME_H"
3461 as_fn_append ac_func_c_list " futimes HAVE_FUTIMES"
3462 as_fn_append ac_func_c_list " futimesat HAVE_FUTIMESAT"
3463 as_fn_append ac_func_c_list " futimens HAVE_FUTIMENS"
3464 as_fn_append ac_func_c_list " utimensat HAVE_UTIMENSAT"
3465 as_fn_append ac_func_c_list " lutimes HAVE_LUTIMES"
3466 as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H"
3467 as_fn_append ac_header_c_list " fcntl.h fcntl_h HAVE_FCNTL_H"
3468 as_fn_append ac_header_c_list " memory.h memory_h HAVE_MEMORY_H"
3469 as_fn_append ac_header_c_list " time.h time_h HAVE_TIME_H"
3470 as_fn_append ac_func_c_list " chown HAVE_CHOWN"
3471 as_fn_append ac_func_c_list " fchmod HAVE_FCHMOD"
3472 as_fn_append ac_func_c_list " fchown HAVE_FCHOWN"
3473 # Check that the precious variables saved in the cache have kept the same
3474 # value.
3475 ac_cache_corrupted=false
3476 for ac_var in $ac_precious_vars; do
3477   eval ac_old_set=\$ac_cv_env_${ac_var}_set
3478   eval ac_new_set=\$ac_env_${ac_var}_set
3479   eval ac_old_val=\$ac_cv_env_${ac_var}_value
3480   eval ac_new_val=\$ac_env_${ac_var}_value
3481   case $ac_old_set,$ac_new_set in
3482     set,)
3483       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3484 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3485       ac_cache_corrupted=: ;;
3486     ,set)
3487       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3488 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3489       ac_cache_corrupted=: ;;
3490     ,);;
3491     *)
3492       if test "x$ac_old_val" != "x$ac_new_val"; then
3493         # differences in whitespace do not lead to failure.
3494         ac_old_val_w=`echo x $ac_old_val`
3495         ac_new_val_w=`echo x $ac_new_val`
3496         if test "$ac_old_val_w" != "$ac_new_val_w"; then
3497           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3498 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3499           ac_cache_corrupted=:
3500         else
3501           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3502 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3503           eval $ac_var=\$ac_old_val
3504         fi
3505         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
3506 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
3507         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
3508 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
3509       fi;;
3510   esac
3511   # Pass precious variables to config.status.
3512   if test "$ac_new_set" = set; then
3513     case $ac_new_val in
3514     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3515     *) ac_arg=$ac_var=$ac_new_val ;;
3516     esac
3517     case " $ac_configure_args " in
3518       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
3519       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3520     esac
3521   fi
3522 done
3523 if $ac_cache_corrupted; then
3524   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3526   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3527 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3528   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3529 fi
3530 ## -------------------- ##
3531 ## Main body of script. ##
3532 ## -------------------- ##
3533
3534 ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539
3540
3541
3542
3543 ac_aux_dir=
3544 for ac_dir in build-aux "$srcdir"/build-aux
3545 do
3546   if test -f "$ac_dir/install-sh"; then
3547     ac_aux_dir=$ac_dir
3548     ac_install_sh="$ac_aux_dir/install-sh -c"
3549     break
3550   elif test -f "$ac_dir/install.sh"; then
3551     ac_aux_dir=$ac_dir
3552     ac_install_sh="$ac_aux_dir/install.sh -c"
3553     break
3554   elif test -f "$ac_dir/shtool"; then
3555     ac_aux_dir=$ac_dir
3556     ac_install_sh="$ac_aux_dir/shtool install -c"
3557     break
3558   fi
3559 done
3560 if test -z "$ac_aux_dir"; then
3561   as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
3562 fi
3563
3564 # These three variables are undocumented and unsupported,
3565 # and are intended to be withdrawn in a future Autoconf release.
3566 # They can cause serious problems if a builder's source tree is in a directory
3567 # whose full name contains unusual characters.
3568 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3569 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3570 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3571
3572
3573
3574 ac_config_headers="$ac_config_headers lib/config.h:lib/config.hin"
3575
3576 am__api_version='1.16'
3577
3578 # Find a good install program.  We prefer a C program (faster),
3579 # so one script is as good as another.  But avoid the broken or
3580 # incompatible versions:
3581 # SysV /etc/install, /usr/sbin/install
3582 # SunOS /usr/etc/install
3583 # IRIX /sbin/install
3584 # AIX /bin/install
3585 # AmigaOS /C/install, which installs bootblocks on floppy discs
3586 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3587 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3588 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3589 # OS/2's system install, which has a completely different semantic
3590 # ./install, which can be erroneously created by make from ./install.sh.
3591 # Reject install programs that cannot install multiple files.
3592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3593 printf %s "checking for a BSD-compatible install... " >&6; }
3594 if test -z "$INSTALL"; then
3595 if test ${ac_cv_path_install+y}
3596 then :
3597   printf %s "(cached) " >&6
3598 else
3599   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3600 for as_dir in $PATH
3601 do
3602   IFS=$as_save_IFS
3603   case $as_dir in #(((
3604     '') as_dir=./ ;;
3605     */) ;;
3606     *) as_dir=$as_dir/ ;;
3607   esac
3608     # Account for fact that we put trailing slashes in our PATH walk.
3609 case $as_dir in #((
3610   ./ | /[cC]/* | \
3611   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3612   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3613   /usr/ucb/* ) ;;
3614   *)
3615     # OSF1 and SCO ODT 3.0 have their own names for install.
3616     # Don't use installbsd from OSF since it installs stuff as root
3617     # by default.
3618     for ac_prog in ginstall scoinst install; do
3619       for ac_exec_ext in '' $ac_executable_extensions; do
3620         if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3621           if test $ac_prog = install &&
3622             grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3623             # AIX install.  It has an incompatible calling convention.
3624             :
3625           elif test $ac_prog = install &&
3626             grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3627             # program-specific install script used by HP pwplus--don't use.
3628             :
3629           else
3630             rm -rf conftest.one conftest.two conftest.dir
3631             echo one > conftest.one
3632             echo two > conftest.two
3633             mkdir conftest.dir
3634             if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3635               test -s conftest.one && test -s conftest.two &&
3636               test -s conftest.dir/conftest.one &&
3637               test -s conftest.dir/conftest.two
3638             then
3639               ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3640               break 3
3641             fi
3642           fi
3643         fi
3644       done
3645     done
3646     ;;
3647 esac
3648
3649   done
3650 IFS=$as_save_IFS
3651
3652 rm -rf conftest.one conftest.two conftest.dir
3653
3654 fi
3655   if test ${ac_cv_path_install+y}; then
3656     INSTALL=$ac_cv_path_install
3657   else
3658     # As a last resort, use the slow shell script.  Don't cache a
3659     # value for INSTALL within a source directory, because that will
3660     # break other packages using the cache if that directory is
3661     # removed, or if the value is a relative name.
3662     INSTALL=$ac_install_sh
3663   fi
3664 fi
3665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3666 printf "%s\n" "$INSTALL" >&6; }
3667
3668 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3669 # It thinks the first close brace ends the variable substitution.
3670 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3671
3672 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3673
3674 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3675
3676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3677 printf %s "checking whether build environment is sane... " >&6; }
3678 # Reject unsafe characters in $srcdir or the absolute working directory
3679 # name.  Accept space and tab only in the latter.
3680 am_lf='
3681 '
3682 case `pwd` in
3683   *[\\\"\#\$\&\'\`$am_lf]*)
3684     as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
3685 esac
3686 case $srcdir in
3687   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3688     as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
3689 esac
3690
3691 # Do 'set' in a subshell so we don't clobber the current shell's
3692 # arguments.  Must try -L first in case configure is actually a
3693 # symlink; some systems play weird games with the mod time of symlinks
3694 # (eg FreeBSD returns the mod time of the symlink's containing
3695 # directory).
3696 if (
3697    am_has_slept=no
3698    for am_try in 1 2; do
3699      echo "timestamp, slept: $am_has_slept" > conftest.file
3700      set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3701      if test "$*" = "X"; then
3702         # -L didn't work.
3703         set X `ls -t "$srcdir/configure" conftest.file`
3704      fi
3705      if test "$*" != "X $srcdir/configure conftest.file" \
3706         && test "$*" != "X conftest.file $srcdir/configure"; then
3707
3708         # If neither matched, then we have a broken ls.  This can happen
3709         # if, for instance, CONFIG_SHELL is bash and it inherits a
3710         # broken ls alias from the environment.  This has actually
3711         # happened.  Such a system could not be considered "sane".
3712         as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
3713   alias in your environment" "$LINENO" 5
3714      fi
3715      if test "$2" = conftest.file || test $am_try -eq 2; then
3716        break
3717      fi
3718      # Just in case.
3719      sleep 1
3720      am_has_slept=yes
3721    done
3722    test "$2" = conftest.file
3723    )
3724 then
3725    # Ok.
3726    :
3727 else
3728    as_fn_error $? "newly created file is older than distributed files!
3729 Check your system clock" "$LINENO" 5
3730 fi
3731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3732 printf "%s\n" "yes" >&6; }
3733 # If we didn't sleep, we still need to ensure time stamps of config.status and
3734 # generated files are strictly newer.
3735 am_sleep_pid=
3736 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3737   ( sleep 1 ) &
3738   am_sleep_pid=$!
3739 fi
3740
3741 rm -f conftest.file
3742
3743 test "$program_prefix" != NONE &&
3744   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3745 # Use a double $ so make ignores it.
3746 test "$program_suffix" != NONE &&
3747   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3748 # Double any \ or $.
3749 # By default was `s,x,x', remove it if useless.
3750 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3751 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
3752
3753 # Expand $ac_aux_dir to an absolute path.
3754 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3755
3756 if test x"${MISSING+set}" != xset; then
3757   case $am_aux_dir in
3758   *\ * | *\     *)
3759     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3760   *)
3761     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3762   esac
3763 fi
3764 # Use eval to expand $SHELL
3765 if eval "$MISSING --is-lightweight"; then
3766   am_missing_run="$MISSING "
3767 else
3768   am_missing_run=
3769   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3770 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3771 fi
3772
3773 if test x"${install_sh+set}" != xset; then
3774   case $am_aux_dir in
3775   *\ * | *\     *)
3776     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3777   *)
3778     install_sh="\${SHELL} $am_aux_dir/install-sh"
3779   esac
3780 fi
3781
3782 # Installed binaries are usually stripped using 'strip' when the user
3783 # run "make install-strip".  However 'strip' might not be the right
3784 # tool to use in cross-compilation environments, therefore Automake
3785 # will honor the 'STRIP' environment variable to overrule this program.
3786 if test "$cross_compiling" != no; then
3787   if test -n "$ac_tool_prefix"; then
3788   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3789 set dummy ${ac_tool_prefix}strip; ac_word=$2
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3791 printf %s "checking for $ac_word... " >&6; }
3792 if test ${ac_cv_prog_STRIP+y}
3793 then :
3794   printf %s "(cached) " >&6
3795 else
3796   if test -n "$STRIP"; then
3797   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3798 else
3799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3800 for as_dir in $PATH
3801 do
3802   IFS=$as_save_IFS
3803   case $as_dir in #(((
3804     '') as_dir=./ ;;
3805     */) ;;
3806     *) as_dir=$as_dir/ ;;
3807   esac
3808     for ac_exec_ext in '' $ac_executable_extensions; do
3809   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3810     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3811     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3812     break 2
3813   fi
3814 done
3815   done
3816 IFS=$as_save_IFS
3817
3818 fi
3819 fi
3820 STRIP=$ac_cv_prog_STRIP
3821 if test -n "$STRIP"; then
3822   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3823 printf "%s\n" "$STRIP" >&6; }
3824 else
3825   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 printf "%s\n" "no" >&6; }
3827 fi
3828
3829
3830 fi
3831 if test -z "$ac_cv_prog_STRIP"; then
3832   ac_ct_STRIP=$STRIP
3833   # Extract the first word of "strip", so it can be a program name with args.
3834 set dummy strip; ac_word=$2
3835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3836 printf %s "checking for $ac_word... " >&6; }
3837 if test ${ac_cv_prog_ac_ct_STRIP+y}
3838 then :
3839   printf %s "(cached) " >&6
3840 else
3841   if test -n "$ac_ct_STRIP"; then
3842   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3843 else
3844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3845 for as_dir in $PATH
3846 do
3847   IFS=$as_save_IFS
3848   case $as_dir in #(((
3849     '') as_dir=./ ;;
3850     */) ;;
3851     *) as_dir=$as_dir/ ;;
3852   esac
3853     for ac_exec_ext in '' $ac_executable_extensions; do
3854   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3855     ac_cv_prog_ac_ct_STRIP="strip"
3856     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3857     break 2
3858   fi
3859 done
3860   done
3861 IFS=$as_save_IFS
3862
3863 fi
3864 fi
3865 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3866 if test -n "$ac_ct_STRIP"; then
3867   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3868 printf "%s\n" "$ac_ct_STRIP" >&6; }
3869 else
3870   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3871 printf "%s\n" "no" >&6; }
3872 fi
3873
3874   if test "x$ac_ct_STRIP" = x; then
3875     STRIP=":"
3876   else
3877     case $cross_compiling:$ac_tool_warned in
3878 yes:)
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3880 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3881 ac_tool_warned=yes ;;
3882 esac
3883     STRIP=$ac_ct_STRIP
3884   fi
3885 else
3886   STRIP="$ac_cv_prog_STRIP"
3887 fi
3888
3889 fi
3890 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3891
3892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3893 printf %s "checking for a thread-safe mkdir -p... " >&6; }
3894 if test -z "$MKDIR_P"; then
3895   if test ${ac_cv_path_mkdir+y}
3896 then :
3897   printf %s "(cached) " >&6
3898 else
3899   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3900 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3901 do
3902   IFS=$as_save_IFS
3903   case $as_dir in #(((
3904     '') as_dir=./ ;;
3905     */) ;;
3906     *) as_dir=$as_dir/ ;;
3907   esac
3908     for ac_prog in mkdir gmkdir; do
3909          for ac_exec_ext in '' $ac_executable_extensions; do
3910            as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
3911            case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
3912              'mkdir ('*'coreutils) '* | \
3913              'BusyBox '* | \
3914              'mkdir (fileutils) '4.1*)
3915                ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
3916                break 3;;
3917            esac
3918          done
3919        done
3920   done
3921 IFS=$as_save_IFS
3922
3923 fi
3924
3925   test -d ./--version && rmdir ./--version
3926   if test ${ac_cv_path_mkdir+y}; then
3927     MKDIR_P="$ac_cv_path_mkdir -p"
3928   else
3929     # As a last resort, use the slow shell script.  Don't cache a
3930     # value for MKDIR_P within a source directory, because that will
3931     # break other packages using the cache if that directory is
3932     # removed, or if the value is a relative name.
3933     MKDIR_P="$ac_install_sh -d"
3934   fi
3935 fi
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3937 printf "%s\n" "$MKDIR_P" >&6; }
3938
3939 for ac_prog in gawk mawk nawk awk
3940 do
3941   # Extract the first word of "$ac_prog", so it can be a program name with args.
3942 set dummy $ac_prog; ac_word=$2
3943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3944 printf %s "checking for $ac_word... " >&6; }
3945 if test ${ac_cv_prog_AWK+y}
3946 then :
3947   printf %s "(cached) " >&6
3948 else
3949   if test -n "$AWK"; then
3950   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3951 else
3952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3953 for as_dir in $PATH
3954 do
3955   IFS=$as_save_IFS
3956   case $as_dir in #(((
3957     '') as_dir=./ ;;
3958     */) ;;
3959     *) as_dir=$as_dir/ ;;
3960   esac
3961     for ac_exec_ext in '' $ac_executable_extensions; do
3962   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3963     ac_cv_prog_AWK="$ac_prog"
3964     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3965     break 2
3966   fi
3967 done
3968   done
3969 IFS=$as_save_IFS
3970
3971 fi
3972 fi
3973 AWK=$ac_cv_prog_AWK
3974 if test -n "$AWK"; then
3975   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3976 printf "%s\n" "$AWK" >&6; }
3977 else
3978   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3979 printf "%s\n" "no" >&6; }
3980 fi
3981
3982
3983   test -n "$AWK" && break
3984 done
3985
3986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3987 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3988 set x ${MAKE-make}
3989 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3990 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
3991 then :
3992   printf %s "(cached) " >&6
3993 else
3994   cat >conftest.make <<\_ACEOF
3995 SHELL = /bin/sh
3996 all:
3997         @echo '@@@%%%=$(MAKE)=@@@%%%'
3998 _ACEOF
3999 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4000 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4001   *@@@%%%=?*=@@@%%%*)
4002     eval ac_cv_prog_make_${ac_make}_set=yes;;
4003   *)
4004     eval ac_cv_prog_make_${ac_make}_set=no;;
4005 esac
4006 rm -f conftest.make
4007 fi
4008 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4009   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4010 printf "%s\n" "yes" >&6; }
4011   SET_MAKE=
4012 else
4013   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 printf "%s\n" "no" >&6; }
4015   SET_MAKE="MAKE=${MAKE-make}"
4016 fi
4017
4018 rm -rf .tst 2>/dev/null
4019 mkdir .tst 2>/dev/null
4020 if test -d .tst; then
4021   am__leading_dot=.
4022 else
4023   am__leading_dot=_
4024 fi
4025 rmdir .tst 2>/dev/null
4026
4027 # Check whether --enable-silent-rules was given.
4028 if test ${enable_silent_rules+y}
4029 then :
4030   enableval=$enable_silent_rules;
4031 fi
4032
4033 case $enable_silent_rules in # (((
4034   yes) AM_DEFAULT_VERBOSITY=0;;
4035    no) AM_DEFAULT_VERBOSITY=1;;
4036     *) AM_DEFAULT_VERBOSITY=1;;
4037 esac
4038 am_make=${MAKE-make}
4039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4040 printf %s "checking whether $am_make supports nested variables... " >&6; }
4041 if test ${am_cv_make_support_nested_variables+y}
4042 then :
4043   printf %s "(cached) " >&6
4044 else
4045   if printf "%s\n" 'TRUE=$(BAR$(V))
4046 BAR0=false
4047 BAR1=true
4048 V=1
4049 am__doit:
4050         @$(TRUE)
4051 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4052   am_cv_make_support_nested_variables=yes
4053 else
4054   am_cv_make_support_nested_variables=no
4055 fi
4056 fi
4057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4058 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4059 if test $am_cv_make_support_nested_variables = yes; then
4060     AM_V='$(V)'
4061   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4062 else
4063   AM_V=$AM_DEFAULT_VERBOSITY
4064   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4065 fi
4066 AM_BACKSLASH='\'
4067
4068 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4069   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4070   # is not polluted with repeated "-I."
4071   am__isrc=' -I$(srcdir)'
4072   # test to see if srcdir already configured
4073   if test -f $srcdir/config.status; then
4074     as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4075   fi
4076 fi
4077
4078 # test whether we have cygpath
4079 if test -z "$CYGPATH_W"; then
4080   if (cygpath --version) >/dev/null 2>/dev/null; then
4081     CYGPATH_W='cygpath -w'
4082   else
4083     CYGPATH_W=echo
4084   fi
4085 fi
4086
4087
4088 # Define the identity of the package.
4089  PACKAGE='gzip'
4090  VERSION='1.10'
4091
4092
4093 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4094
4095
4096 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4097
4098 # Some tools Automake needs.
4099
4100 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4101
4102
4103 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4104
4105
4106 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4107
4108
4109 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4110
4111
4112 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4113
4114 # For better backward compatibility.  To be removed once Automake 1.9.x
4115 # dies out for good.  For more background, see:
4116 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4117 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4118 mkdir_p='$(MKDIR_P)'
4119
4120 # We need awk for the "check" target (and possibly the TAP driver).  The
4121 # system "awk" is bad on some platforms.
4122 # Always define AMTAR for backward compatibility.  Yes, it's still used
4123 # in the wild :-(  We should find a proper way to deprecate it ...
4124 AMTAR='$${TAR-tar}'
4125
4126
4127 # We'll loop over all known methods to create a tar archive until one works.
4128 _am_tools='gnutar  pax cpio none'
4129
4130 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4131
4132
4133
4134
4135
4136
4137 # POSIX will say in a future version that running "rm -f" with no argument
4138 # is OK; and we want to be able to make that assumption in our Makefile
4139 # recipes.  So use an aggressive probe to check that the usage we want is
4140 # actually supported "in the wild" to an acceptable degree.
4141 # See automake bug#10828.
4142 # To make any issue more visible, cause the running configure to be aborted
4143 # by default if the 'rm' program in use doesn't match our expectations; the
4144 # user can still override this though.
4145 if rm -f && rm -fr && rm -rf; then : OK; else
4146   cat >&2 <<'END'
4147 Oops!
4148
4149 Your 'rm' program seems unable to run without file operands specified
4150 on the command line, even when the '-f' option is present.  This is contrary
4151 to the behaviour of most rm programs out there, and not conforming with
4152 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4153
4154 Please tell bug-automake@gnu.org about your system, including the value
4155 of your $PATH and any error possibly output before this message.  This
4156 can help us improve future automake versions.
4157
4158 END
4159   if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4160     echo 'Configuration will proceed anyway, since you have set the' >&2
4161     echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4162     echo >&2
4163   else
4164     cat >&2 <<'END'
4165 Aborting the configuration process, to ensure you take notice of the issue.
4166
4167 You can download and install GNU coreutils to get an 'rm' implementation
4168 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4169
4170 If you want to complete the configuration process using your problematic
4171 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4172 to "yes", and re-run configure.
4173
4174 END
4175     as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4176   fi
4177 fi
4178
4179 # Check whether --enable-silent-rules was given.
4180 if test ${enable_silent_rules+y}
4181 then :
4182   enableval=$enable_silent_rules;
4183 fi
4184
4185 case $enable_silent_rules in # (((
4186   yes) AM_DEFAULT_VERBOSITY=0;;
4187    no) AM_DEFAULT_VERBOSITY=1;;
4188     *) AM_DEFAULT_VERBOSITY=0;;
4189 esac
4190 am_make=${MAKE-make}
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4192 printf %s "checking whether $am_make supports nested variables... " >&6; }
4193 if test ${am_cv_make_support_nested_variables+y}
4194 then :
4195   printf %s "(cached) " >&6
4196 else
4197   if printf "%s\n" 'TRUE=$(BAR$(V))
4198 BAR0=false
4199 BAR1=true
4200 V=1
4201 am__doit:
4202         @$(TRUE)
4203 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4204   am_cv_make_support_nested_variables=yes
4205 else
4206   am_cv_make_support_nested_variables=no
4207 fi
4208 fi
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4210 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4211 if test $am_cv_make_support_nested_variables = yes; then
4212     AM_V='$(V)'
4213   AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4214 else
4215   AM_V=$AM_DEFAULT_VERBOSITY
4216   AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4217 fi
4218 AM_BACKSLASH='\'
4219  # make --enable-silent-rules the default.
4220
4221
4222
4223
4224
4225
4226 DEPDIR="${am__leading_dot}deps"
4227
4228 ac_config_commands="$ac_config_commands depfiles"
4229
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4231 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
4232 cat > confinc.mk << 'END'
4233 am__doit:
4234         @echo this is the am__doit target >confinc.out
4235 .PHONY: am__doit
4236 END
4237 am__include="#"
4238 am__quote=
4239 # BSD make does it like this.
4240 echo '.include "confinc.mk" # ignored' > confmf.BSD
4241 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
4242 echo 'include confinc.mk # ignored' > confmf.GNU
4243 _am_result=no
4244 for s in GNU BSD; do
4245   { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4246    (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4247    ac_status=$?
4248    echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249    (exit $ac_status); }
4250   case $?:`cat confinc.out 2>/dev/null` in #(
4251   '0:this is the am__doit target') :
4252     case $s in #(
4253   BSD) :
4254     am__include='.include' am__quote='"' ;; #(
4255   *) :
4256     am__include='include' am__quote='' ;;
4257 esac ;; #(
4258   *) :
4259      ;;
4260 esac
4261   if test "$am__include" != "#"; then
4262     _am_result="yes ($s style)"
4263     break
4264   fi
4265 done
4266 rm -f confinc.* confmf.*
4267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4268 printf "%s\n" "${_am_result}" >&6; }
4269
4270 # Check whether --enable-dependency-tracking was given.
4271 if test ${enable_dependency_tracking+y}
4272 then :
4273   enableval=$enable_dependency_tracking;
4274 fi
4275
4276 if test "x$enable_dependency_tracking" != xno; then
4277   am_depcomp="$ac_aux_dir/depcomp"
4278   AMDEPBACKSLASH='\'
4279   am__nodep='_no'
4280 fi
4281  if test "x$enable_dependency_tracking" != xno; then
4282   AMDEP_TRUE=
4283   AMDEP_FALSE='#'
4284 else
4285   AMDEP_TRUE='#'
4286   AMDEP_FALSE=
4287 fi
4288
4289
4290 ac_ext=c
4291 ac_cpp='$CPP $CPPFLAGS'
4292 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4293 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4294 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4295 if test -n "$ac_tool_prefix"; then
4296   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4297 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4299 printf %s "checking for $ac_word... " >&6; }
4300 if test ${ac_cv_prog_CC+y}
4301 then :
4302   printf %s "(cached) " >&6
4303 else
4304   if test -n "$CC"; then
4305   ac_cv_prog_CC="$CC" # Let the user override the test.
4306 else
4307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4308 for as_dir in $PATH
4309 do
4310   IFS=$as_save_IFS
4311   case $as_dir in #(((
4312     '') as_dir=./ ;;
4313     */) ;;
4314     *) as_dir=$as_dir/ ;;
4315   esac
4316     for ac_exec_ext in '' $ac_executable_extensions; do
4317   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4318     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4319     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4320     break 2
4321   fi
4322 done
4323   done
4324 IFS=$as_save_IFS
4325
4326 fi
4327 fi
4328 CC=$ac_cv_prog_CC
4329 if test -n "$CC"; then
4330   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4331 printf "%s\n" "$CC" >&6; }
4332 else
4333   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4334 printf "%s\n" "no" >&6; }
4335 fi
4336
4337
4338 fi
4339 if test -z "$ac_cv_prog_CC"; then
4340   ac_ct_CC=$CC
4341   # Extract the first word of "gcc", so it can be a program name with args.
4342 set dummy gcc; ac_word=$2
4343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4344 printf %s "checking for $ac_word... " >&6; }
4345 if test ${ac_cv_prog_ac_ct_CC+y}
4346 then :
4347   printf %s "(cached) " >&6
4348 else
4349   if test -n "$ac_ct_CC"; then
4350   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4351 else
4352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4353 for as_dir in $PATH
4354 do
4355   IFS=$as_save_IFS
4356   case $as_dir in #(((
4357     '') as_dir=./ ;;
4358     */) ;;
4359     *) as_dir=$as_dir/ ;;
4360   esac
4361     for ac_exec_ext in '' $ac_executable_extensions; do
4362   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4363     ac_cv_prog_ac_ct_CC="gcc"
4364     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4365     break 2
4366   fi
4367 done
4368   done
4369 IFS=$as_save_IFS
4370
4371 fi
4372 fi
4373 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4374 if test -n "$ac_ct_CC"; then
4375   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4376 printf "%s\n" "$ac_ct_CC" >&6; }
4377 else
4378   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4379 printf "%s\n" "no" >&6; }
4380 fi
4381
4382   if test "x$ac_ct_CC" = x; then
4383     CC=""
4384   else
4385     case $cross_compiling:$ac_tool_warned in
4386 yes:)
4387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4388 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4389 ac_tool_warned=yes ;;
4390 esac
4391     CC=$ac_ct_CC
4392   fi
4393 else
4394   CC="$ac_cv_prog_CC"
4395 fi
4396
4397 if test -z "$CC"; then
4398           if test -n "$ac_tool_prefix"; then
4399     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4400 set dummy ${ac_tool_prefix}cc; ac_word=$2
4401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4402 printf %s "checking for $ac_word... " >&6; }
4403 if test ${ac_cv_prog_CC+y}
4404 then :
4405   printf %s "(cached) " >&6
4406 else
4407   if test -n "$CC"; then
4408   ac_cv_prog_CC="$CC" # Let the user override the test.
4409 else
4410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4411 for as_dir in $PATH
4412 do
4413   IFS=$as_save_IFS
4414   case $as_dir in #(((
4415     '') as_dir=./ ;;
4416     */) ;;
4417     *) as_dir=$as_dir/ ;;
4418   esac
4419     for ac_exec_ext in '' $ac_executable_extensions; do
4420   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4421     ac_cv_prog_CC="${ac_tool_prefix}cc"
4422     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4423     break 2
4424   fi
4425 done
4426   done
4427 IFS=$as_save_IFS
4428
4429 fi
4430 fi
4431 CC=$ac_cv_prog_CC
4432 if test -n "$CC"; then
4433   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4434 printf "%s\n" "$CC" >&6; }
4435 else
4436   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4437 printf "%s\n" "no" >&6; }
4438 fi
4439
4440
4441   fi
4442 fi
4443 if test -z "$CC"; then
4444   # Extract the first word of "cc", so it can be a program name with args.
4445 set dummy cc; ac_word=$2
4446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4447 printf %s "checking for $ac_word... " >&6; }
4448 if test ${ac_cv_prog_CC+y}
4449 then :
4450   printf %s "(cached) " >&6
4451 else
4452   if test -n "$CC"; then
4453   ac_cv_prog_CC="$CC" # Let the user override the test.
4454 else
4455   ac_prog_rejected=no
4456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457 for as_dir in $PATH
4458 do
4459   IFS=$as_save_IFS
4460   case $as_dir in #(((
4461     '') as_dir=./ ;;
4462     */) ;;
4463     *) as_dir=$as_dir/ ;;
4464   esac
4465     for ac_exec_ext in '' $ac_executable_extensions; do
4466   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4467     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4468        ac_prog_rejected=yes
4469        continue
4470      fi
4471     ac_cv_prog_CC="cc"
4472     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4473     break 2
4474   fi
4475 done
4476   done
4477 IFS=$as_save_IFS
4478
4479 if test $ac_prog_rejected = yes; then
4480   # We found a bogon in the path, so make sure we never use it.
4481   set dummy $ac_cv_prog_CC
4482   shift
4483   if test $# != 0; then
4484     # We chose a different compiler from the bogus one.
4485     # However, it has the same basename, so the bogon will be chosen
4486     # first if we set CC to just the basename; use the full file name.
4487     shift
4488     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4489   fi
4490 fi
4491 fi
4492 fi
4493 CC=$ac_cv_prog_CC
4494 if test -n "$CC"; then
4495   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4496 printf "%s\n" "$CC" >&6; }
4497 else
4498   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 printf "%s\n" "no" >&6; }
4500 fi
4501
4502
4503 fi
4504 if test -z "$CC"; then
4505   if test -n "$ac_tool_prefix"; then
4506   for ac_prog in cl.exe
4507   do
4508     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4509 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511 printf %s "checking for $ac_word... " >&6; }
4512 if test ${ac_cv_prog_CC+y}
4513 then :
4514   printf %s "(cached) " >&6
4515 else
4516   if test -n "$CC"; then
4517   ac_cv_prog_CC="$CC" # Let the user override the test.
4518 else
4519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4520 for as_dir in $PATH
4521 do
4522   IFS=$as_save_IFS
4523   case $as_dir in #(((
4524     '') as_dir=./ ;;
4525     */) ;;
4526     *) as_dir=$as_dir/ ;;
4527   esac
4528     for ac_exec_ext in '' $ac_executable_extensions; do
4529   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4530     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4531     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4532     break 2
4533   fi
4534 done
4535   done
4536 IFS=$as_save_IFS
4537
4538 fi
4539 fi
4540 CC=$ac_cv_prog_CC
4541 if test -n "$CC"; then
4542   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4543 printf "%s\n" "$CC" >&6; }
4544 else
4545   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4546 printf "%s\n" "no" >&6; }
4547 fi
4548
4549
4550     test -n "$CC" && break
4551   done
4552 fi
4553 if test -z "$CC"; then
4554   ac_ct_CC=$CC
4555   for ac_prog in cl.exe
4556 do
4557   # Extract the first word of "$ac_prog", so it can be a program name with args.
4558 set dummy $ac_prog; ac_word=$2
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 printf %s "checking for $ac_word... " >&6; }
4561 if test ${ac_cv_prog_ac_ct_CC+y}
4562 then :
4563   printf %s "(cached) " >&6
4564 else
4565   if test -n "$ac_ct_CC"; then
4566   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4567 else
4568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4569 for as_dir in $PATH
4570 do
4571   IFS=$as_save_IFS
4572   case $as_dir in #(((
4573     '') as_dir=./ ;;
4574     */) ;;
4575     *) as_dir=$as_dir/ ;;
4576   esac
4577     for ac_exec_ext in '' $ac_executable_extensions; do
4578   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4579     ac_cv_prog_ac_ct_CC="$ac_prog"
4580     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4581     break 2
4582   fi
4583 done
4584   done
4585 IFS=$as_save_IFS
4586
4587 fi
4588 fi
4589 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4590 if test -n "$ac_ct_CC"; then
4591   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4592 printf "%s\n" "$ac_ct_CC" >&6; }
4593 else
4594   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4595 printf "%s\n" "no" >&6; }
4596 fi
4597
4598
4599   test -n "$ac_ct_CC" && break
4600 done
4601
4602   if test "x$ac_ct_CC" = x; then
4603     CC=""
4604   else
4605     case $cross_compiling:$ac_tool_warned in
4606 yes:)
4607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4608 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4609 ac_tool_warned=yes ;;
4610 esac
4611     CC=$ac_ct_CC
4612   fi
4613 fi
4614
4615 fi
4616 if test -z "$CC"; then
4617   if test -n "$ac_tool_prefix"; then
4618   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4619 set dummy ${ac_tool_prefix}clang; ac_word=$2
4620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 printf %s "checking for $ac_word... " >&6; }
4622 if test ${ac_cv_prog_CC+y}
4623 then :
4624   printf %s "(cached) " >&6
4625 else
4626   if test -n "$CC"; then
4627   ac_cv_prog_CC="$CC" # Let the user override the test.
4628 else
4629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 for as_dir in $PATH
4631 do
4632   IFS=$as_save_IFS
4633   case $as_dir in #(((
4634     '') as_dir=./ ;;
4635     */) ;;
4636     *) as_dir=$as_dir/ ;;
4637   esac
4638     for ac_exec_ext in '' $ac_executable_extensions; do
4639   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4640     ac_cv_prog_CC="${ac_tool_prefix}clang"
4641     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4642     break 2
4643   fi
4644 done
4645   done
4646 IFS=$as_save_IFS
4647
4648 fi
4649 fi
4650 CC=$ac_cv_prog_CC
4651 if test -n "$CC"; then
4652   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4653 printf "%s\n" "$CC" >&6; }
4654 else
4655   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4656 printf "%s\n" "no" >&6; }
4657 fi
4658
4659
4660 fi
4661 if test -z "$ac_cv_prog_CC"; then
4662   ac_ct_CC=$CC
4663   # Extract the first word of "clang", so it can be a program name with args.
4664 set dummy clang; ac_word=$2
4665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4666 printf %s "checking for $ac_word... " >&6; }
4667 if test ${ac_cv_prog_ac_ct_CC+y}
4668 then :
4669   printf %s "(cached) " >&6
4670 else
4671   if test -n "$ac_ct_CC"; then
4672   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677   IFS=$as_save_IFS
4678   case $as_dir in #(((
4679     '') as_dir=./ ;;
4680     */) ;;
4681     *) as_dir=$as_dir/ ;;
4682   esac
4683     for ac_exec_ext in '' $ac_executable_extensions; do
4684   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4685     ac_cv_prog_ac_ct_CC="clang"
4686     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4687     break 2
4688   fi
4689 done
4690   done
4691 IFS=$as_save_IFS
4692
4693 fi
4694 fi
4695 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4696 if test -n "$ac_ct_CC"; then
4697   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4698 printf "%s\n" "$ac_ct_CC" >&6; }
4699 else
4700   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4701 printf "%s\n" "no" >&6; }
4702 fi
4703
4704   if test "x$ac_ct_CC" = x; then
4705     CC=""
4706   else
4707     case $cross_compiling:$ac_tool_warned in
4708 yes:)
4709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4710 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4711 ac_tool_warned=yes ;;
4712 esac
4713     CC=$ac_ct_CC
4714   fi
4715 else
4716   CC="$ac_cv_prog_CC"
4717 fi
4718
4719 fi
4720
4721
4722 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4723 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4724 as_fn_error $? "no acceptable C compiler found in \$PATH
4725 See \`config.log' for more details" "$LINENO" 5; }
4726
4727 # Provide some information about the compiler.
4728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4729 set X $ac_compile
4730 ac_compiler=$2
4731 for ac_option in --version -v -V -qversion -version; do
4732   { { ac_try="$ac_compiler $ac_option >&5"
4733 case "(($ac_try" in
4734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735   *) ac_try_echo=$ac_try;;
4736 esac
4737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4738 printf "%s\n" "$ac_try_echo"; } >&5
4739   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4740   ac_status=$?
4741   if test -s conftest.err; then
4742     sed '10a\
4743 ... rest of stderr output deleted ...
4744          10q' conftest.err >conftest.er1
4745     cat conftest.er1 >&5
4746   fi
4747   rm -f conftest.er1 conftest.err
4748   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749   test $ac_status = 0; }
4750 done
4751
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h.  */
4754
4755 int
4756 main (void)
4757 {
4758
4759   ;
4760   return 0;
4761 }
4762 _ACEOF
4763 ac_clean_files_save=$ac_clean_files
4764 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4765 # Try to create an executable without -o first, disregard a.out.
4766 # It will help us diagnose broken compilers, and finding out an intuition
4767 # of exeext.
4768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4769 printf %s "checking whether the C compiler works... " >&6; }
4770 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4771
4772 # The possible output files:
4773 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4774
4775 ac_rmfiles=
4776 for ac_file in $ac_files
4777 do
4778   case $ac_file in
4779     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4780     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4781   esac
4782 done
4783 rm -f $ac_rmfiles
4784
4785 if { { ac_try="$ac_link_default"
4786 case "(($ac_try" in
4787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4788   *) ac_try_echo=$ac_try;;
4789 esac
4790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4791 printf "%s\n" "$ac_try_echo"; } >&5
4792   (eval "$ac_link_default") 2>&5
4793   ac_status=$?
4794   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4795   test $ac_status = 0; }
4796 then :
4797   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4798 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4799 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4800 # so that the user can short-circuit this test for compilers unknown to
4801 # Autoconf.
4802 for ac_file in $ac_files ''
4803 do
4804   test -f "$ac_file" || continue
4805   case $ac_file in
4806     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4807         ;;
4808     [ab].out )
4809         # We found the default executable, but exeext='' is most
4810         # certainly right.
4811         break;;
4812     *.* )
4813         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4814         then :; else
4815            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4816         fi
4817         # We set ac_cv_exeext here because the later test for it is not
4818         # safe: cross compilers may not add the suffix if given an `-o'
4819         # argument, so we may need to know it at that point already.
4820         # Even if this section looks crufty: it has the advantage of
4821         # actually working.
4822         break;;
4823     * )
4824         break;;
4825   esac
4826 done
4827 test "$ac_cv_exeext" = no && ac_cv_exeext=
4828
4829 else
4830   ac_file=''
4831 fi
4832 if test -z "$ac_file"
4833 then :
4834   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4835 printf "%s\n" "no" >&6; }
4836 printf "%s\n" "$as_me: failed program was:" >&5
4837 sed 's/^/| /' conftest.$ac_ext >&5
4838
4839 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4840 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4841 as_fn_error 77 "C compiler cannot create executables
4842 See \`config.log' for more details" "$LINENO" 5; }
4843 else
4844   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4845 printf "%s\n" "yes" >&6; }
4846 fi
4847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4848 printf %s "checking for C compiler default output file name... " >&6; }
4849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4850 printf "%s\n" "$ac_file" >&6; }
4851 ac_exeext=$ac_cv_exeext
4852
4853 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4854 ac_clean_files=$ac_clean_files_save
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4856 printf %s "checking for suffix of executables... " >&6; }
4857 if { { ac_try="$ac_link"
4858 case "(($ac_try" in
4859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4860   *) ac_try_echo=$ac_try;;
4861 esac
4862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4863 printf "%s\n" "$ac_try_echo"; } >&5
4864   (eval "$ac_link") 2>&5
4865   ac_status=$?
4866   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4867   test $ac_status = 0; }
4868 then :
4869   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4870 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4871 # work properly (i.e., refer to `conftest.exe'), while it won't with
4872 # `rm'.
4873 for ac_file in conftest.exe conftest conftest.*; do
4874   test -f "$ac_file" || continue
4875   case $ac_file in
4876     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4877     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4878           break;;
4879     * ) break;;
4880   esac
4881 done
4882 else
4883   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4884 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4885 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4886 See \`config.log' for more details" "$LINENO" 5; }
4887 fi
4888 rm -f conftest conftest$ac_cv_exeext
4889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4890 printf "%s\n" "$ac_cv_exeext" >&6; }
4891
4892 rm -f conftest.$ac_ext
4893 EXEEXT=$ac_cv_exeext
4894 ac_exeext=$EXEEXT
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h.  */
4897 #include <stdio.h>
4898 int
4899 main (void)
4900 {
4901 FILE *f = fopen ("conftest.out", "w");
4902  return ferror (f) || fclose (f) != 0;
4903
4904   ;
4905   return 0;
4906 }
4907 _ACEOF
4908 ac_clean_files="$ac_clean_files conftest.out"
4909 # Check that the compiler produces executables we can run.  If not, either
4910 # the compiler is broken, or we cross compile.
4911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4912 printf %s "checking whether we are cross compiling... " >&6; }
4913 if test "$cross_compiling" = maybe && test "x$build" != "x$host"; then
4914   cross_compiling=yes
4915 elif test "$cross_compiling" != yes; then
4916   { { ac_try="$ac_link"
4917 case "(($ac_try" in
4918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4919   *) ac_try_echo=$ac_try;;
4920 esac
4921 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4922 printf "%s\n" "$ac_try_echo"; } >&5
4923   (eval "$ac_link") 2>&5
4924   ac_status=$?
4925   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4926   test $ac_status = 0; }
4927   if { ac_try='./conftest$ac_cv_exeext'
4928   { { case "(($ac_try" in
4929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4930   *) ac_try_echo=$ac_try;;
4931 esac
4932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4933 printf "%s\n" "$ac_try_echo"; } >&5
4934   (eval "$ac_try") 2>&5
4935   ac_status=$?
4936   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4937   test $ac_status = 0; }; }; then
4938     cross_compiling=no
4939   else
4940     if test "$cross_compiling" = maybe; then
4941         cross_compiling=yes
4942     else
4943         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4944 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4945 as_fn_error $? "cannot run C compiled programs.
4946 If you meant to cross compile, use \`--host'.
4947 See \`config.log' for more details" "$LINENO" 5; }
4948     fi
4949   fi
4950 fi
4951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4952 printf "%s\n" "$cross_compiling" >&6; }
4953
4954 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4955 ac_clean_files=$ac_clean_files_save
4956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4957 printf %s "checking for suffix of object files... " >&6; }
4958 if test ${ac_cv_objext+y}
4959 then :
4960   printf %s "(cached) " >&6
4961 else
4962   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h.  */
4964
4965 int
4966 main (void)
4967 {
4968
4969   ;
4970   return 0;
4971 }
4972 _ACEOF
4973 rm -f conftest.o conftest.obj
4974 if { { ac_try="$ac_compile"
4975 case "(($ac_try" in
4976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977   *) ac_try_echo=$ac_try;;
4978 esac
4979 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980 printf "%s\n" "$ac_try_echo"; } >&5
4981   (eval "$ac_compile") 2>&5
4982   ac_status=$?
4983   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4984   test $ac_status = 0; }
4985 then :
4986   for ac_file in conftest.o conftest.obj conftest.*; do
4987   test -f "$ac_file" || continue;
4988   case $ac_file in
4989     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4990     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4991        break;;
4992   esac
4993 done
4994 else
4995   printf "%s\n" "$as_me: failed program was:" >&5
4996 sed 's/^/| /' conftest.$ac_ext >&5
4997
4998 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4999 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5000 as_fn_error $? "cannot compute suffix of object files: cannot compile
5001 See \`config.log' for more details" "$LINENO" 5; }
5002 fi
5003 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5004 fi
5005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5006 printf "%s\n" "$ac_cv_objext" >&6; }
5007 OBJEXT=$ac_cv_objext
5008 ac_objext=$OBJEXT
5009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5010 printf %s "checking whether the compiler supports GNU C... " >&6; }
5011 if test ${ac_cv_c_compiler_gnu+y}
5012 then :
5013   printf %s "(cached) " >&6
5014 else
5015   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5016 /* end confdefs.h.  */
5017
5018 int
5019 main (void)
5020 {
5021 #ifndef __GNUC__
5022        choke me
5023 #endif
5024
5025   ;
5026   return 0;
5027 }
5028 _ACEOF
5029 if ac_fn_c_try_compile "$LINENO"
5030 then :
5031   ac_compiler_gnu=yes
5032 else
5033   ac_compiler_gnu=no
5034 fi
5035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5037
5038 fi
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5040 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5041 if test $ac_compiler_gnu = yes; then
5042   GCC=yes
5043 else
5044   GCC=
5045 fi
5046 ac_test_CFLAGS=${CFLAGS+y}
5047 ac_save_CFLAGS=$CFLAGS
5048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5049 printf %s "checking whether $CC accepts -g... " >&6; }
5050 if test ${ac_cv_prog_cc_g+y}
5051 then :
5052   printf %s "(cached) " >&6
5053 else
5054   ac_save_c_werror_flag=$ac_c_werror_flag
5055    ac_c_werror_flag=yes
5056    ac_cv_prog_cc_g=no
5057    CFLAGS="-g"
5058    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5059 /* end confdefs.h.  */
5060
5061 int
5062 main (void)
5063 {
5064
5065   ;
5066   return 0;
5067 }
5068 _ACEOF
5069 if ac_fn_c_try_compile "$LINENO"
5070 then :
5071   ac_cv_prog_cc_g=yes
5072 else
5073   CFLAGS=""
5074       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h.  */
5076
5077 int
5078 main (void)
5079 {
5080
5081   ;
5082   return 0;
5083 }
5084 _ACEOF
5085 if ac_fn_c_try_compile "$LINENO"
5086 then :
5087
5088 else
5089   ac_c_werror_flag=$ac_save_c_werror_flag
5090          CFLAGS="-g"
5091          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5092 /* end confdefs.h.  */
5093
5094 int
5095 main (void)
5096 {
5097
5098   ;
5099   return 0;
5100 }
5101 _ACEOF
5102 if ac_fn_c_try_compile "$LINENO"
5103 then :
5104   ac_cv_prog_cc_g=yes
5105 fi
5106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5107 fi
5108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5109 fi
5110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5111    ac_c_werror_flag=$ac_save_c_werror_flag
5112 fi
5113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5114 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5115 if test $ac_test_CFLAGS; then
5116   CFLAGS=$ac_save_CFLAGS
5117 elif test $ac_cv_prog_cc_g = yes; then
5118   if test "$GCC" = yes; then
5119     CFLAGS="-g -O2"
5120   else
5121     CFLAGS="-g"
5122   fi
5123 else
5124   if test "$GCC" = yes; then
5125     CFLAGS="-O2"
5126   else
5127     CFLAGS=
5128   fi
5129 fi
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5131 printf %s "checking for $CC option to enable C11 features... " >&6; }
5132 if test ${ac_cv_prog_cc_c11+y}
5133 then :
5134   printf %s "(cached) " >&6
5135 else
5136   ac_cv_prog_cc_c11=no
5137 ac_save_CC=$CC
5138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5139 /* end confdefs.h.  */
5140 #include <stdarg.h>
5141 #include <stdbool.h>
5142 #include <stddef.h>
5143 #include <stdlib.h>
5144 #include <wchar.h>
5145 #include <stdio.h>
5146
5147 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5148 #define debug(...) fprintf (stderr, __VA_ARGS__)
5149 #define showlist(...) puts (#__VA_ARGS__)
5150 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5151 static void
5152 test_varargs_macros (void)
5153 {
5154   int x = 1234;
5155   int y = 5678;
5156   debug ("Flag");
5157   debug ("X = %d\n", x);
5158   showlist (The first, second, and third items.);
5159   report (x>y, "x is %d but y is %d", x, y);
5160 }
5161
5162 // Check long long types.
5163 #define BIG64 18446744073709551615ull
5164 #define BIG32 4294967295ul
5165 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5166 #if !BIG_OK
5167   your preprocessor is broken;
5168 #endif
5169 #if BIG_OK
5170 #else
5171   your preprocessor is broken;
5172 #endif
5173 static long long int bignum = -9223372036854775807LL;
5174 static unsigned long long int ubignum = BIG64;
5175
5176 struct incomplete_array
5177 {
5178   int datasize;
5179   double data[];
5180 };
5181
5182 struct named_init {
5183   int number;
5184   const wchar_t *name;
5185   double average;
5186 };
5187
5188 typedef const char *ccp;
5189
5190 static inline int
5191 test_restrict (ccp restrict text)
5192 {
5193   // See if C++-style comments work.
5194   // Iterate through items via the restricted pointer.
5195   // Also check for declarations in for loops.
5196   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5197     continue;
5198   return 0;
5199 }
5200
5201 // Check varargs and va_copy.
5202 static bool
5203 test_varargs (const char *format, ...)
5204 {
5205   va_list args;
5206   va_start (args, format);
5207   va_list args_copy;
5208   va_copy (args_copy, args);
5209
5210   const char *str = "";
5211   int number = 0;
5212   float fnumber = 0;
5213
5214   while (*format)
5215     {
5216       switch (*format++)
5217         {
5218         case 's': // string
5219           str = va_arg (args_copy, const char *);
5220           break;
5221         case 'd': // int
5222           number = va_arg (args_copy, int);
5223           break;
5224         case 'f': // float
5225           fnumber = va_arg (args_copy, double);
5226           break;
5227         default:
5228           break;
5229         }
5230     }
5231   va_end (args_copy);
5232   va_end (args);
5233
5234   return *str && number && fnumber;
5235 }
5236 // Check _Alignas.
5237 char _Alignas (double) aligned_as_double;
5238 char _Alignas (0) no_special_alignment;
5239 extern char aligned_as_int;
5240 char _Alignas (0) _Alignas (int) aligned_as_int;
5241
5242 // Check _Alignof.
5243 enum
5244 {
5245   int_alignment = _Alignof (int),
5246   int_array_alignment = _Alignof (int[100]),
5247   char_alignment = _Alignof (char)
5248 };
5249 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
5250
5251 // Check _Noreturn.
5252 int _Noreturn does_not_return (void) { for (;;) continue; }
5253
5254 // Check _Static_assert.
5255 struct test_static_assert
5256 {
5257   int x;
5258   _Static_assert (sizeof (int) <= sizeof (long int),
5259                   "_Static_assert does not work in struct");
5260   long int y;
5261 };
5262
5263 // Check UTF-8 literals.
5264 #define u8 syntax error!
5265 char const utf8_literal[] = u8"happens to be ASCII" "another string";
5266
5267 // Check duplicate typedefs.
5268 typedef long *long_ptr;
5269 typedef long int *long_ptr;
5270 typedef long_ptr long_ptr;
5271
5272 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
5273 struct anonymous
5274 {
5275   union {
5276     struct { int i; int j; };
5277     struct { int k; long int l; } w;
5278   };
5279   int m;
5280 } v1;
5281
5282 int
5283 main (void)
5284 {
5285
5286   // Check bool.
5287   _Bool success = false;
5288
5289   // Check restrict.
5290   if (test_restrict ("String literal") == 0)
5291     success = true;
5292   char *restrict newvar = "Another string";
5293
5294   // Check varargs.
5295   success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5296   test_varargs_macros ();
5297
5298   // Check flexible array members.
5299   struct incomplete_array *ia =
5300     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5301   ia->datasize = 10;
5302   for (int i = 0; i < ia->datasize; ++i)
5303     ia->data[i] = i * 1.234;
5304
5305   // Check named initializers.
5306   struct named_init ni = {
5307     .number = 34,
5308     .name = L"Test wide string",
5309     .average = 543.34343,
5310   };
5311
5312   ni.number = 58;
5313
5314   int dynamic_array[ni.number];
5315   dynamic_array[ni.number - 1] = 543;
5316
5317   // work around unused variable warnings
5318   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5319           || dynamic_array[ni.number - 1] != 543);
5320
5321   v1.i = 2;
5322   v1.w.k = 5;
5323   _Static_assert ((offsetof (struct anonymous, i)
5324                    == offsetof (struct anonymous, w.k)),
5325                   "Anonymous union alignment botch");
5326
5327   ;
5328   return 0;
5329 }
5330 _ACEOF
5331 for ac_arg in '' -std=gnu11
5332 do
5333   CC="$ac_save_CC $ac_arg"
5334   if ac_fn_c_try_compile "$LINENO"
5335 then :
5336   ac_cv_prog_cc_c11=$ac_arg
5337 fi
5338 rm -f core conftest.err conftest.$ac_objext
5339   test "x$ac_cv_prog_cc_c11" != "xno" && break
5340 done
5341 rm -f conftest.$ac_ext
5342 CC=$ac_save_CC
5343
5344 fi
5345 # AC_CACHE_VAL
5346 ac_prog_cc_stdc_options=
5347 case "x$ac_cv_prog_cc_c11" in
5348   x)
5349     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5350 printf "%s\n" "none needed" >&6; } ;;
5351   xno)
5352     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5353 printf "%s\n" "unsupported" >&6; } ;;
5354   *)
5355     ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c11"
5356     CC=$CC$ac_prog_cc_stdc_options
5357     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5358 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; } ;;
5359 esac
5360 if test "x$ac_cv_prog_cc_c11" != xno
5361 then :
5362   ac_prog_cc_stdc=c11
5363                  ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5364 else
5365   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5366 printf %s "checking for $CC option to enable C99 features... " >&6; }
5367 if test ${ac_cv_prog_cc_c99+y}
5368 then :
5369   printf %s "(cached) " >&6
5370 else
5371   ac_cv_prog_cc_c99=no
5372 ac_save_CC=$CC
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h.  */
5375 #include <stdarg.h>
5376 #include <stdbool.h>
5377 #include <stddef.h>
5378 #include <stdlib.h>
5379 #include <wchar.h>
5380 #include <stdio.h>
5381
5382 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
5383 #define debug(...) fprintf (stderr, __VA_ARGS__)
5384 #define showlist(...) puts (#__VA_ARGS__)
5385 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5386 static void
5387 test_varargs_macros (void)
5388 {
5389   int x = 1234;
5390   int y = 5678;
5391   debug ("Flag");
5392   debug ("X = %d\n", x);
5393   showlist (The first, second, and third items.);
5394   report (x>y, "x is %d but y is %d", x, y);
5395 }
5396
5397 // Check long long types.
5398 #define BIG64 18446744073709551615ull
5399 #define BIG32 4294967295ul
5400 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5401 #if !BIG_OK
5402   your preprocessor is broken;
5403 #endif
5404 #if BIG_OK
5405 #else
5406   your preprocessor is broken;
5407 #endif
5408 static long long int bignum = -9223372036854775807LL;
5409 static unsigned long long int ubignum = BIG64;
5410
5411 struct incomplete_array
5412 {
5413   int datasize;
5414   double data[];
5415 };
5416
5417 struct named_init {
5418   int number;
5419   const wchar_t *name;
5420   double average;
5421 };
5422
5423 typedef const char *ccp;
5424
5425 static inline int
5426 test_restrict (ccp restrict text)
5427 {
5428   // See if C++-style comments work.
5429   // Iterate through items via the restricted pointer.
5430   // Also check for declarations in for loops.
5431   for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5432     continue;
5433   return 0;
5434 }
5435
5436 // Check varargs and va_copy.
5437 static bool
5438 test_varargs (const char *format, ...)
5439 {
5440   va_list args;
5441   va_start (args, format);
5442   va_list args_copy;
5443   va_copy (args_copy, args);
5444
5445   const char *str = "";
5446   int number = 0;
5447   float fnumber = 0;
5448
5449   while (*format)
5450     {
5451       switch (*format++)
5452         {
5453         case 's': // string
5454           str = va_arg (args_copy, const char *);
5455           break;
5456         case 'd': // int
5457           number = va_arg (args_copy, int);
5458           break;
5459         case 'f': // float
5460           fnumber = va_arg (args_copy, double);
5461           break;
5462         default:
5463           break;
5464         }
5465     }
5466   va_end (args_copy);
5467   va_end (args);
5468
5469   return *str && number && fnumber;
5470 }
5471 int
5472 main (void)
5473 {
5474
5475   // Check bool.
5476   _Bool success = false;
5477
5478   // Check restrict.
5479   if (test_restrict ("String literal") == 0)
5480     success = true;
5481   char *restrict newvar = "Another string";
5482
5483   // Check varargs.
5484   success &= test_varargs ("s, d' f .", "string", 65, 34.234);
5485   test_varargs_macros ();
5486
5487   // Check flexible array members.
5488   struct incomplete_array *ia =
5489     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5490   ia->datasize = 10;
5491   for (int i = 0; i < ia->datasize; ++i)
5492     ia->data[i] = i * 1.234;
5493
5494   // Check named initializers.
5495   struct named_init ni = {
5496     .number = 34,
5497     .name = L"Test wide string",
5498     .average = 543.34343,
5499   };
5500
5501   ni.number = 58;
5502
5503   int dynamic_array[ni.number];
5504   dynamic_array[ni.number - 1] = 543;
5505
5506   // work around unused variable warnings
5507   return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5508           || dynamic_array[ni.number - 1] != 543);
5509
5510   ;
5511   return 0;
5512 }
5513 _ACEOF
5514 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc1x -qlanglvl=extc99
5515 do
5516   CC="$ac_save_CC $ac_arg"
5517   if ac_fn_c_try_compile "$LINENO"
5518 then :
5519   ac_cv_prog_cc_c99=$ac_arg
5520 fi
5521 rm -f core conftest.err conftest.$ac_objext
5522   test "x$ac_cv_prog_cc_c99" != "xno" && break
5523 done
5524 rm -f conftest.$ac_ext
5525 CC=$ac_save_CC
5526
5527 fi
5528 # AC_CACHE_VAL
5529 ac_prog_cc_stdc_options=
5530 case "x$ac_cv_prog_cc_c99" in
5531   x)
5532     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5533 printf "%s\n" "none needed" >&6; } ;;
5534   xno)
5535     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5536 printf "%s\n" "unsupported" >&6; } ;;
5537   *)
5538     ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c99"
5539     CC=$CC$ac_prog_cc_stdc_options
5540     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5541 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; } ;;
5542 esac
5543 if test "x$ac_cv_prog_cc_c99" != xno
5544 then :
5545   ac_prog_cc_stdc=c99
5546                     ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5547 else
5548   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5549 printf %s "checking for $CC option to enable C89 features... " >&6; }
5550 if test ${ac_cv_prog_cc_c89+y}
5551 then :
5552   printf %s "(cached) " >&6
5553 else
5554   ac_cv_prog_cc_c89=no
5555 ac_save_CC=$CC
5556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5557 /* end confdefs.h.  */
5558 #include <stdarg.h>
5559 #include <stdio.h>
5560 struct stat;
5561 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5562 struct buf { int x; };
5563 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5564 static char *e (p, i)
5565      char **p;
5566      int i;
5567 {
5568   return p[i];
5569 }
5570 static char *f (char * (*g) (char **, int), char **p, ...)
5571 {
5572   char *s;
5573   va_list v;
5574   va_start (v,p);
5575   s = g (p, va_arg (v,int));
5576   va_end (v);
5577   return s;
5578 }
5579
5580 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5581    function prototypes and stuff, but not '\xHH' hex character constants.
5582    These don't provoke an error unfortunately, instead are silently treated
5583    as 'x'.  The following induces an error, until -std is added to get
5584    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5585    array size at least.  It's necessary to write '\x00'==0 to get something
5586    that's true only with -std.  */
5587 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5588
5589 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5590    inside strings and character constants.  */
5591 #define FOO(x) 'x'
5592 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5593
5594 int test (int i, double x);
5595 struct s1 {int (*f) (int a);};
5596 struct s2 {int (*f) (double a);};
5597 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5598 int argc;
5599 char **argv;
5600 int
5601 main (void)
5602 {
5603 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5604   ;
5605   return 0;
5606 }
5607 _ACEOF
5608 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5609         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5610 do
5611   CC="$ac_save_CC $ac_arg"
5612   if ac_fn_c_try_compile "$LINENO"
5613 then :
5614   ac_cv_prog_cc_c89=$ac_arg
5615 fi
5616 rm -f core conftest.err conftest.$ac_objext
5617   test "x$ac_cv_prog_cc_c89" != "xno" && break
5618 done
5619 rm -f conftest.$ac_ext
5620 CC=$ac_save_CC
5621
5622 fi
5623 # AC_CACHE_VAL
5624 ac_prog_cc_stdc_options=
5625 case "x$ac_cv_prog_cc_c89" in
5626   x)
5627     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5628 printf "%s\n" "none needed" >&6; } ;;
5629   xno)
5630     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5631 printf "%s\n" "unsupported" >&6; } ;;
5632   *)
5633     ac_prog_cc_stdc_options=" $ac_cv_prog_cc_c89"
5634     CC=$CC$ac_prog_cc_stdc_options
5635     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5636 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; } ;;
5637 esac
5638 if test "x$ac_cv_prog_cc_c89" != xno
5639 then :
5640   ac_prog_cc_stdc=c89
5641                        ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5642 else
5643   ac_prog_cc_stdc=no
5644                        ac_cv_prog_cc_stdc=no
5645 fi
5646
5647 fi
5648
5649 fi
5650
5651 ac_ext=c
5652 ac_cpp='$CPP $CPPFLAGS'
5653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5656
5657 ac_ext=c
5658 ac_cpp='$CPP $CPPFLAGS'
5659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5663 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5664 if test ${am_cv_prog_cc_c_o+y}
5665 then :
5666   printf %s "(cached) " >&6
5667 else
5668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5669 /* end confdefs.h.  */
5670
5671 int
5672 main (void)
5673 {
5674
5675   ;
5676   return 0;
5677 }
5678 _ACEOF
5679   # Make sure it works both with $CC and with simple cc.
5680   # Following AC_PROG_CC_C_O, we do the test twice because some
5681   # compilers refuse to overwrite an existing .o file with -o,
5682   # though they will create one.
5683   am_cv_prog_cc_c_o=yes
5684   for am_i in 1 2; do
5685     if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5686    ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5687    ac_status=$?
5688    echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689    (exit $ac_status); } \
5690          && test -f conftest2.$ac_objext; then
5691       : OK
5692     else
5693       am_cv_prog_cc_c_o=no
5694       break
5695     fi
5696   done
5697   rm -f core conftest*
5698   unset am_i
5699 fi
5700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5701 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5702 if test "$am_cv_prog_cc_c_o" != yes; then
5703    # Losing compiler, so override with the script.
5704    # FIXME: It is wrong to rewrite CC.
5705    # But if we don't then we get into trouble of one sort or another.
5706    # A longer-term fix would be to have automake use am__CC in this case,
5707    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5708    CC="$am_aux_dir/compile $CC"
5709 fi
5710 ac_ext=c
5711 ac_cpp='$CPP $CPPFLAGS'
5712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5715
5716
5717 depcc="$CC"   am_compiler_list=
5718
5719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5720 printf %s "checking dependency style of $depcc... " >&6; }
5721 if test ${am_cv_CC_dependencies_compiler_type+y}
5722 then :
5723   printf %s "(cached) " >&6
5724 else
5725   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5726   # We make a subdir and do the tests there.  Otherwise we can end up
5727   # making bogus files that we don't know about and never remove.  For
5728   # instance it was reported that on HP-UX the gcc test will end up
5729   # making a dummy file named 'D' -- because '-MD' means "put the output
5730   # in D".
5731   rm -rf conftest.dir
5732   mkdir conftest.dir
5733   # Copy depcomp to subdir because otherwise we won't find it if we're
5734   # using a relative directory.
5735   cp "$am_depcomp" conftest.dir
5736   cd conftest.dir
5737   # We will build objects and dependencies in a subdirectory because
5738   # it helps to detect inapplicable dependency modes.  For instance
5739   # both Tru64's cc and ICC support -MD to output dependencies as a
5740   # side effect of compilation, but ICC will put the dependencies in
5741   # the current directory while Tru64 will put them in the object
5742   # directory.
5743   mkdir sub
5744
5745   am_cv_CC_dependencies_compiler_type=none
5746   if test "$am_compiler_list" = ""; then
5747      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5748   fi
5749   am__universal=false
5750   case " $depcc " in #(
5751      *\ -arch\ *\ -arch\ *) am__universal=true ;;
5752      esac
5753
5754   for depmode in $am_compiler_list; do
5755     # Setup a source with many dependencies, because some compilers
5756     # like to wrap large dependency lists on column 80 (with \), and
5757     # we should not choose a depcomp mode which is confused by this.
5758     #
5759     # We need to recreate these files for each test, as the compiler may
5760     # overwrite some of them when testing with obscure command lines.
5761     # This happens at least with the AIX C compiler.
5762     : > sub/conftest.c
5763     for i in 1 2 3 4 5 6; do
5764       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5765       # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5766       # Solaris 10 /bin/sh.
5767       echo '/* dummy */' > sub/conftst$i.h
5768     done
5769     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5770
5771     # We check with '-c' and '-o' for the sake of the "dashmstdout"
5772     # mode.  It turns out that the SunPro C++ compiler does not properly
5773     # handle '-M -o', and we need to detect this.  Also, some Intel
5774     # versions had trouble with output in subdirs.
5775     am__obj=sub/conftest.${OBJEXT-o}
5776     am__minus_obj="-o $am__obj"
5777     case $depmode in
5778     gcc)
5779       # This depmode causes a compiler race in universal mode.
5780       test "$am__universal" = false || continue
5781       ;;
5782     nosideeffect)
5783       # After this tag, mechanisms are not by side-effect, so they'll
5784       # only be used when explicitly requested.
5785       if test "x$enable_dependency_tracking" = xyes; then
5786         continue
5787       else
5788         break
5789       fi
5790       ;;
5791     msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5792       # This compiler won't grok '-c -o', but also, the minuso test has
5793       # not run yet.  These depmodes are late enough in the game, and
5794       # so weak that their functioning should not be impacted.
5795       am__obj=conftest.${OBJEXT-o}
5796       am__minus_obj=
5797       ;;
5798     none) break ;;
5799     esac
5800     if depmode=$depmode \
5801        source=sub/conftest.c object=$am__obj \
5802        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5803        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5804          >/dev/null 2>conftest.err &&
5805        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5806        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5807        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5808        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5809       # icc doesn't choke on unknown options, it will just issue warnings
5810       # or remarks (even with -Werror).  So we grep stderr for any message
5811       # that says an option was ignored or not supported.
5812       # When given -MP, icc 7.0 and 7.1 complain thusly:
5813       #   icc: Command line warning: ignoring option '-M'; no argument required
5814       # The diagnosis changed in icc 8.0:
5815       #   icc: Command line remark: option '-MP' not supported
5816       if (grep 'ignoring option' conftest.err ||
5817           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5818         am_cv_CC_dependencies_compiler_type=$depmode
5819         break
5820       fi
5821     fi
5822   done
5823
5824   cd ..
5825   rm -rf conftest.dir
5826 else
5827   am_cv_CC_dependencies_compiler_type=none
5828 fi
5829
5830 fi
5831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5832 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
5833 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5834
5835  if
5836   test "x$enable_dependency_tracking" != xno \
5837   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5838   am__fastdepCC_TRUE=
5839   am__fastdepCC_FALSE='#'
5840 else
5841   am__fastdepCC_TRUE='#'
5842   am__fastdepCC_FALSE=
5843 fi
5844
5845
5846
5847
5848 ac_ext=c
5849 ac_cpp='$CPP $CPPFLAGS'
5850 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5851 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5852 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5854 printf %s "checking how to run the C preprocessor... " >&6; }
5855 # On Suns, sometimes $CPP names a directory.
5856 if test -n "$CPP" && test -d "$CPP"; then
5857   CPP=
5858 fi
5859 if test -z "$CPP"; then
5860   if test ${ac_cv_prog_CPP+y}
5861 then :
5862   printf %s "(cached) " >&6
5863 else
5864       # Double quotes because CPP needs to be expanded
5865     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5866     do
5867       ac_preproc_ok=false
5868 for ac_c_preproc_warn_flag in '' yes
5869 do
5870   # Use a header file that comes with gcc, so configuring glibc
5871   # with a fresh cross-compiler works.
5872   # On the NeXT, cc -E runs the code through the compiler's parser,
5873   # not just through cpp. "Syntax error" is here to catch this case.
5874   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5875 /* end confdefs.h.  */
5876 #include <limits.h>
5877                      Syntax error
5878 _ACEOF
5879 if ac_fn_c_try_cpp "$LINENO"
5880 then :
5881
5882 else
5883   # Broken: fails on valid input.
5884 continue
5885 fi
5886 rm -f conftest.err conftest.i conftest.$ac_ext
5887
5888   # OK, works on sane cases.  Now check whether nonexistent headers
5889   # can be detected and how.
5890   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5891 /* end confdefs.h.  */
5892 #include <ac_nonexistent.h>
5893 _ACEOF
5894 if ac_fn_c_try_cpp "$LINENO"
5895 then :
5896   # Broken: success on invalid input.
5897 continue
5898 else
5899   # Passes both tests.
5900 ac_preproc_ok=:
5901 break
5902 fi
5903 rm -f conftest.err conftest.i conftest.$ac_ext
5904
5905 done
5906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5907 rm -f conftest.i conftest.err conftest.$ac_ext
5908 if $ac_preproc_ok
5909 then :
5910   break
5911 fi
5912
5913     done
5914     ac_cv_prog_CPP=$CPP
5915
5916 fi
5917   CPP=$ac_cv_prog_CPP
5918 else
5919   ac_cv_prog_CPP=$CPP
5920 fi
5921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5922 printf "%s\n" "$CPP" >&6; }
5923 ac_preproc_ok=false
5924 for ac_c_preproc_warn_flag in '' yes
5925 do
5926   # Use a header file that comes with gcc, so configuring glibc
5927   # with a fresh cross-compiler works.
5928   # On the NeXT, cc -E runs the code through the compiler's parser,
5929   # not just through cpp. "Syntax error" is here to catch this case.
5930   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5931 /* end confdefs.h.  */
5932 #include <limits.h>
5933                      Syntax error
5934 _ACEOF
5935 if ac_fn_c_try_cpp "$LINENO"
5936 then :
5937
5938 else
5939   # Broken: fails on valid input.
5940 continue
5941 fi
5942 rm -f conftest.err conftest.i conftest.$ac_ext
5943
5944   # OK, works on sane cases.  Now check whether nonexistent headers
5945   # can be detected and how.
5946   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5947 /* end confdefs.h.  */
5948 #include <ac_nonexistent.h>
5949 _ACEOF
5950 if ac_fn_c_try_cpp "$LINENO"
5951 then :
5952   # Broken: success on invalid input.
5953 continue
5954 else
5955   # Passes both tests.
5956 ac_preproc_ok=:
5957 break
5958 fi
5959 rm -f conftest.err conftest.i conftest.$ac_ext
5960
5961 done
5962 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5963 rm -f conftest.i conftest.err conftest.$ac_ext
5964 if $ac_preproc_ok
5965 then :
5966
5967 else
5968   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5969 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5970 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5971 See \`config.log' for more details" "$LINENO" 5; }
5972 fi
5973
5974 ac_ext=c
5975 ac_cpp='$CPP $CPPFLAGS'
5976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5979
5980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5981 printf %s "checking for grep that handles long lines and -e... " >&6; }
5982 if test ${ac_cv_path_GREP+y}
5983 then :
5984   printf %s "(cached) " >&6
5985 else
5986   if test -z "$GREP"; then
5987   ac_path_GREP_found=false
5988   # Loop through the user's path and test for each of PROGNAME-LIST
5989   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5991 do
5992   IFS=$as_save_IFS
5993   case $as_dir in #(((
5994     '') as_dir=./ ;;
5995     */) ;;
5996     *) as_dir=$as_dir/ ;;
5997   esac
5998     for ac_prog in grep ggrep
5999    do
6000     for ac_exec_ext in '' $ac_executable_extensions; do
6001       ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6002       as_fn_executable_p "$ac_path_GREP" || continue
6003 # Check for GNU ac_path_GREP and select it if it is found.
6004   # Check for GNU $ac_path_GREP
6005 case `"$ac_path_GREP" --version 2>&1` in
6006 *GNU*)
6007   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6008 *)
6009   ac_count=0
6010   printf %s 0123456789 >"conftest.in"
6011   while :
6012   do
6013     cat "conftest.in" "conftest.in" >"conftest.tmp"
6014     mv "conftest.tmp" "conftest.in"
6015     cp "conftest.in" "conftest.nl"
6016     printf "%s\n" 'GREP' >> "conftest.nl"
6017     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6018     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6019     as_fn_arith $ac_count + 1 && ac_count=$as_val
6020     if test $ac_count -gt ${ac_path_GREP_max-0}; then
6021       # Best one so far, save it but keep looking for a better one
6022       ac_cv_path_GREP="$ac_path_GREP"
6023       ac_path_GREP_max=$ac_count
6024     fi
6025     # 10*(2^10) chars as input seems more than enough
6026     test $ac_count -gt 10 && break
6027   done
6028   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6029 esac
6030
6031       $ac_path_GREP_found && break 3
6032     done
6033   done
6034   done
6035 IFS=$as_save_IFS
6036   if test -z "$ac_cv_path_GREP"; then
6037     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6038   fi
6039 else
6040   ac_cv_path_GREP=$GREP
6041 fi
6042
6043 fi
6044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6045 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6046  GREP="$ac_cv_path_GREP"
6047
6048
6049 if test -n "$ac_tool_prefix"; then
6050   # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6051 set dummy ${ac_tool_prefix}nm; ac_word=$2
6052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053 printf %s "checking for $ac_word... " >&6; }
6054 if test ${ac_cv_prog_NM+y}
6055 then :
6056   printf %s "(cached) " >&6
6057 else
6058   if test -n "$NM"; then
6059   ac_cv_prog_NM="$NM" # Let the user override the test.
6060 else
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH
6063 do
6064   IFS=$as_save_IFS
6065   case $as_dir in #(((
6066     '') as_dir=./ ;;
6067     */) ;;
6068     *) as_dir=$as_dir/ ;;
6069   esac
6070     for ac_exec_ext in '' $ac_executable_extensions; do
6071   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6072     ac_cv_prog_NM="${ac_tool_prefix}nm"
6073     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6074     break 2
6075   fi
6076 done
6077   done
6078 IFS=$as_save_IFS
6079
6080 fi
6081 fi
6082 NM=$ac_cv_prog_NM
6083 if test -n "$NM"; then
6084   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
6085 printf "%s\n" "$NM" >&6; }
6086 else
6087   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6088 printf "%s\n" "no" >&6; }
6089 fi
6090
6091
6092 fi
6093 if test -z "$ac_cv_prog_NM"; then
6094   ac_ct_NM=$NM
6095   # Extract the first word of "nm", so it can be a program name with args.
6096 set dummy nm; ac_word=$2
6097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6098 printf %s "checking for $ac_word... " >&6; }
6099 if test ${ac_cv_prog_ac_ct_NM+y}
6100 then :
6101   printf %s "(cached) " >&6
6102 else
6103   if test -n "$ac_ct_NM"; then
6104   ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6105 else
6106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6107 for as_dir in $PATH
6108 do
6109   IFS=$as_save_IFS
6110   case $as_dir in #(((
6111     '') as_dir=./ ;;
6112     */) ;;
6113     *) as_dir=$as_dir/ ;;
6114   esac
6115     for ac_exec_ext in '' $ac_executable_extensions; do
6116   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6117     ac_cv_prog_ac_ct_NM="nm"
6118     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6119     break 2
6120   fi
6121 done
6122   done
6123 IFS=$as_save_IFS
6124
6125 fi
6126 fi
6127 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6128 if test -n "$ac_ct_NM"; then
6129   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
6130 printf "%s\n" "$ac_ct_NM" >&6; }
6131 else
6132   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6133 printf "%s\n" "no" >&6; }
6134 fi
6135
6136   if test "x$ac_ct_NM" = x; then
6137     NM="nm"
6138   else
6139     case $cross_compiling:$ac_tool_warned in
6140 yes:)
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6142 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6143 ac_tool_warned=yes ;;
6144 esac
6145     NM=$ac_ct_NM
6146   fi
6147 else
6148   NM="$ac_cv_prog_NM"
6149 fi
6150
6151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6152 printf %s "checking whether ln -s works... " >&6; }
6153 LN_S=$as_ln_s
6154 if test "$LN_S" = "ln -s"; then
6155   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6156 printf "%s\n" "yes" >&6; }
6157 else
6158   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6159 printf "%s\n" "no, using $LN_S" >&6; }
6160 fi
6161
6162 if test -n "$ac_tool_prefix"; then
6163   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6164 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166 printf %s "checking for $ac_word... " >&6; }
6167 if test ${ac_cv_prog_RANLIB+y}
6168 then :
6169   printf %s "(cached) " >&6
6170 else
6171   if test -n "$RANLIB"; then
6172   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6173 else
6174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6175 for as_dir in $PATH
6176 do
6177   IFS=$as_save_IFS
6178   case $as_dir in #(((
6179     '') as_dir=./ ;;
6180     */) ;;
6181     *) as_dir=$as_dir/ ;;
6182   esac
6183     for ac_exec_ext in '' $ac_executable_extensions; do
6184   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6185     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6186     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6187     break 2
6188   fi
6189 done
6190   done
6191 IFS=$as_save_IFS
6192
6193 fi
6194 fi
6195 RANLIB=$ac_cv_prog_RANLIB
6196 if test -n "$RANLIB"; then
6197   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6198 printf "%s\n" "$RANLIB" >&6; }
6199 else
6200   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6201 printf "%s\n" "no" >&6; }
6202 fi
6203
6204
6205 fi
6206 if test -z "$ac_cv_prog_RANLIB"; then
6207   ac_ct_RANLIB=$RANLIB
6208   # Extract the first word of "ranlib", so it can be a program name with args.
6209 set dummy ranlib; ac_word=$2
6210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6211 printf %s "checking for $ac_word... " >&6; }
6212 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6213 then :
6214   printf %s "(cached) " >&6
6215 else
6216   if test -n "$ac_ct_RANLIB"; then
6217   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6218 else
6219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 for as_dir in $PATH
6221 do
6222   IFS=$as_save_IFS
6223   case $as_dir in #(((
6224     '') as_dir=./ ;;
6225     */) ;;
6226     *) as_dir=$as_dir/ ;;
6227   esac
6228     for ac_exec_ext in '' $ac_executable_extensions; do
6229   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6230     ac_cv_prog_ac_ct_RANLIB="ranlib"
6231     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6232     break 2
6233   fi
6234 done
6235   done
6236 IFS=$as_save_IFS
6237
6238 fi
6239 fi
6240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6241 if test -n "$ac_ct_RANLIB"; then
6242   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6243 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6244 else
6245   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 printf "%s\n" "no" >&6; }
6247 fi
6248
6249   if test "x$ac_ct_RANLIB" = x; then
6250     RANLIB=":"
6251   else
6252     case $cross_compiling:$ac_tool_warned in
6253 yes:)
6254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258     RANLIB=$ac_ct_RANLIB
6259   fi
6260 else
6261   RANLIB="$ac_cv_prog_RANLIB"
6262 fi
6263
6264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a POSIX-compliant shell" >&5
6265 printf %s "checking for a POSIX-compliant shell... " >&6; }
6266    if test ${ac_cv_path_shell+y}
6267 then :
6268   printf %s "(cached) " >&6
6269 else
6270   ac_command='
6271         # Test the noclobber option, using the portable POSIX.2 syntax.
6272         set -C
6273         rm -f conftest.c
6274         >conftest.c || exit
6275         >|conftest.c || exit
6276         !>conftest.c || exit
6277         # Test that $(...) works.
6278         test "$(expr 3 + 4)" -eq 7 || exit
6279       '
6280       # Solaris 11 /bin/sh (AT&T Research) 93u 2011-02-08 has a file
6281       # descriptor bug that breaks zgrep and is hard to test for
6282       # directly.  At some point $(...) is reading a pipe from the
6283       # subshell, but the pipe is also open in the parent shell, so
6284       # the read deadlocks.  Prefer some other shell if available.
6285       ac_maybe_solaris_sh_bug='test "${.sh.version}"'
6286
6287       ac_cv_path_shell=no
6288
6289       case $SHELL in
6290       /*)
6291         rm -f conftest.c
6292         if ("$SHELL" -c "$ac_command") 2>/dev/null; then
6293           "$SHELL" -c "$ac_maybe_solaris_sh_bug" 2>/dev/null ||
6294             ac_cv_path_shell=$SHELL
6295         fi
6296       esac
6297
6298       case $ac_cv_path_shell in
6299       no)
6300         # Prefer shells that are more likely to be installed in the
6301         # same place on all hosts of this platform.  Therefore, prefer
6302         # shells in /bin and /usr/bin to shells in the installer's
6303         # PATH.  Also, loop through PATH first and then through
6304         # shells, since less-"nice" shells in /bin and /usr/bin are
6305         # more likely to be installed than "nicer" shells elsewhere.
6306         ac_break_if_good_shell=:
6307         as_save_IFS=$IFS; IFS=:
6308         for as_dir in /bin /usr/bin $PATH
6309         do
6310           IFS=$as_save_IFS
6311           case $as_dir in
6312           /*)
6313             for ac_base in sh bash ksh sh5; do
6314               rm -f conftest.c
6315               if ("$as_dir/$ac_base" -c "$ac_command") 2>/dev/null; then
6316                 if "$as_dir/$ac_base" -c "$ac_maybe_solaris_sh_bug" 2>/dev/null
6317                 then
6318                   test "$ac_cv_path_shell" = no
6319                 else
6320                   ac_break_if_good_shell=break
6321                   :
6322                 fi && ac_cv_path_shell=$as_dir/$ac_base
6323                 $ac_break_if_good_shell
6324               fi
6325             done
6326             $ac_break_if_good_shell
6327           esac
6328         done
6329         rm -f conftest.c
6330       esac
6331 fi
6332
6333    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_shell" >&5
6334 printf "%s\n" "$ac_cv_path_shell" >&6; }
6335    SHELL=$ac_cv_path_shell
6336    if test "$SHELL" = no; then
6337      SHELL=/bin/sh
6338      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it does not conform to POSIX" >&5
6339 printf "%s\n" "$as_me: WARNING: using $SHELL, even though it does not conform to POSIX" >&2;}
6340    fi
6341    if "$SHELL" -c "$ac_maybe_solaris_sh_bug" 2>/dev/null; then
6342      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using $SHELL, even though it may have file descriptor bugs" >&5
6343 printf "%s\n" "$as_me: WARNING: using $SHELL, even though it may have file descriptor bugs" >&2;}
6344    fi
6345
6346
6347
6348 ac_header= ac_cache=
6349 for ac_item in $ac_header_c_list
6350 do
6351   if test $ac_cache; then
6352     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6353     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6354       printf "%s\n" "#define $ac_item 1" >> confdefs.h
6355     fi
6356     ac_header= ac_cache=
6357   elif test $ac_header; then
6358     ac_cache=$ac_item
6359   else
6360     ac_header=$ac_item
6361   fi
6362 done
6363
6364
6365
6366
6367
6368
6369 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
6370
6371 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
6372
6373 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6374
6375
6376   ac_fn_c_check_header_compile "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6377 if test "x$ac_cv_header_minix_config_h" = xyes
6378 then :
6379   MINIX=yes
6380 else
6381   MINIX=
6382 fi
6383
6384   if test "$MINIX" = yes; then
6385
6386 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6387
6388
6389 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6390
6391
6392 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6393
6394
6395 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6396
6397   fi
6398
6399
6400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6401 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6402 if test ${ac_cv_safe_to_define___extensions__+y}
6403 then :
6404   printf %s "(cached) " >&6
6405 else
6406   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6407 /* end confdefs.h.  */
6408
6409 #         define __EXTENSIONS__ 1
6410           $ac_includes_default
6411 int
6412 main (void)
6413 {
6414
6415   ;
6416   return 0;
6417 }
6418 _ACEOF
6419 if ac_fn_c_try_compile "$LINENO"
6420 then :
6421   ac_cv_safe_to_define___extensions__=yes
6422 else
6423   ac_cv_safe_to_define___extensions__=no
6424 fi
6425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6426 fi
6427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6428 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6429   test $ac_cv_safe_to_define___extensions__ = yes &&
6430     printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6431
6432   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6433
6434   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6435
6436   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6437
6438   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6439
6440   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6441
6442   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6443
6444   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6445
6446   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6447
6448   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6449
6450   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6451
6452   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6453
6454   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6455
6456   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6457
6458   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6459
6460   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6461 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6462 if test ${ac_cv_should_define__xopen_source+y}
6463 then :
6464   printf %s "(cached) " >&6
6465 else
6466   ac_cv_should_define__xopen_source=no
6467      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6468 /* end confdefs.h.  */
6469
6470           #include <wchar.h>
6471           mbstate_t x;
6472 int
6473 main (void)
6474 {
6475
6476   ;
6477   return 0;
6478 }
6479 _ACEOF
6480 if ac_fn_c_try_compile "$LINENO"
6481 then :
6482
6483 else
6484   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6485 /* end confdefs.h.  */
6486
6487              #define _XOPEN_SOURCE 500
6488              #include <wchar.h>
6489              mbstate_t x;
6490 int
6491 main (void)
6492 {
6493
6494   ;
6495   return 0;
6496 }
6497 _ACEOF
6498 if ac_fn_c_try_compile "$LINENO"
6499 then :
6500   ac_cv_should_define__xopen_source=yes
6501 fi
6502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503 fi
6504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6505 fi
6506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6507 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6508   test $ac_cv_should_define__xopen_source = yes &&
6509     printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6510
6511   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6522 printf %s "checking for egrep... " >&6; }
6523 if test ${ac_cv_path_EGREP+y}
6524 then :
6525   printf %s "(cached) " >&6
6526 else
6527   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6528    then ac_cv_path_EGREP="$GREP -E"
6529    else
6530      if test -z "$EGREP"; then
6531   ac_path_EGREP_found=false
6532   # Loop through the user's path and test for each of PROGNAME-LIST
6533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6534 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6535 do
6536   IFS=$as_save_IFS
6537   case $as_dir in #(((
6538     '') as_dir=./ ;;
6539     */) ;;
6540     *) as_dir=$as_dir/ ;;
6541   esac
6542     for ac_prog in egrep
6543    do
6544     for ac_exec_ext in '' $ac_executable_extensions; do
6545       ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6546       as_fn_executable_p "$ac_path_EGREP" || continue
6547 # Check for GNU ac_path_EGREP and select it if it is found.
6548   # Check for GNU $ac_path_EGREP
6549 case `"$ac_path_EGREP" --version 2>&1` in
6550 *GNU*)
6551   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6552 *)
6553   ac_count=0
6554   printf %s 0123456789 >"conftest.in"
6555   while :
6556   do
6557     cat "conftest.in" "conftest.in" >"conftest.tmp"
6558     mv "conftest.tmp" "conftest.in"
6559     cp "conftest.in" "conftest.nl"
6560     printf "%s\n" 'EGREP' >> "conftest.nl"
6561     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6562     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6563     as_fn_arith $ac_count + 1 && ac_count=$as_val
6564     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6565       # Best one so far, save it but keep looking for a better one
6566       ac_cv_path_EGREP="$ac_path_EGREP"
6567       ac_path_EGREP_max=$ac_count
6568     fi
6569     # 10*(2^10) chars as input seems more than enough
6570     test $ac_count -gt 10 && break
6571   done
6572   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6573 esac
6574
6575       $ac_path_EGREP_found && break 3
6576     done
6577   done
6578   done
6579 IFS=$as_save_IFS
6580   if test -z "$ac_cv_path_EGREP"; then
6581     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6582   fi
6583 else
6584   ac_cv_path_EGREP=$EGREP
6585 fi
6586
6587    fi
6588 fi
6589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6590 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6591  EGREP="$ac_cv_path_EGREP"
6592
6593
6594
6595
6596
6597   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6598 printf %s "checking for Minix Amsterdam compiler... " >&6; }
6599 if test ${gl_cv_c_amsterdam_compiler+y}
6600 then :
6601   printf %s "(cached) " >&6
6602 else
6603
6604       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6605 /* end confdefs.h.  */
6606
6607 #ifdef __ACK__
6608 Amsterdam
6609 #endif
6610
6611 _ACEOF
6612 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6613   $EGREP "Amsterdam" >/dev/null 2>&1
6614 then :
6615   gl_cv_c_amsterdam_compiler=yes
6616 else
6617   gl_cv_c_amsterdam_compiler=no
6618 fi
6619 rm -rf conftest*
6620
6621
6622 fi
6623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6624 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
6625
6626       if test $gl_cv_c_amsterdam_compiler = yes; then
6627     if test -z "$AR"; then
6628       AR='cc -c.a'
6629     fi
6630     if test -z "$ARFLAGS"; then
6631       ARFLAGS='-o'
6632     fi
6633   else
6634                                                 :
6635   fi
6636
6637         if test -n "$ac_tool_prefix"; then
6638   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6639 set dummy ${ac_tool_prefix}ar; ac_word=$2
6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6641 printf %s "checking for $ac_word... " >&6; }
6642 if test ${ac_cv_prog_AR+y}
6643 then :
6644   printf %s "(cached) " >&6
6645 else
6646   if test -n "$AR"; then
6647   ac_cv_prog_AR="$AR" # Let the user override the test.
6648 else
6649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 for as_dir in $PATH
6651 do
6652   IFS=$as_save_IFS
6653   case $as_dir in #(((
6654     '') as_dir=./ ;;
6655     */) ;;
6656     *) as_dir=$as_dir/ ;;
6657   esac
6658     for ac_exec_ext in '' $ac_executable_extensions; do
6659   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6660     ac_cv_prog_AR="${ac_tool_prefix}ar"
6661     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6662     break 2
6663   fi
6664 done
6665   done
6666 IFS=$as_save_IFS
6667
6668 fi
6669 fi
6670 AR=$ac_cv_prog_AR
6671 if test -n "$AR"; then
6672   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6673 printf "%s\n" "$AR" >&6; }
6674 else
6675   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6676 printf "%s\n" "no" >&6; }
6677 fi
6678
6679
6680 fi
6681 if test -z "$ac_cv_prog_AR"; then
6682   ac_ct_AR=$AR
6683   # Extract the first word of "ar", so it can be a program name with args.
6684 set dummy ar; ac_word=$2
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6686 printf %s "checking for $ac_word... " >&6; }
6687 if test ${ac_cv_prog_ac_ct_AR+y}
6688 then :
6689   printf %s "(cached) " >&6
6690 else
6691   if test -n "$ac_ct_AR"; then
6692   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6693 else
6694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695 for as_dir in $PATH
6696 do
6697   IFS=$as_save_IFS
6698   case $as_dir in #(((
6699     '') as_dir=./ ;;
6700     */) ;;
6701     *) as_dir=$as_dir/ ;;
6702   esac
6703     for ac_exec_ext in '' $ac_executable_extensions; do
6704   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6705     ac_cv_prog_ac_ct_AR="ar"
6706     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6707     break 2
6708   fi
6709 done
6710   done
6711 IFS=$as_save_IFS
6712
6713 fi
6714 fi
6715 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6716 if test -n "$ac_ct_AR"; then
6717   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6718 printf "%s\n" "$ac_ct_AR" >&6; }
6719 else
6720   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 printf "%s\n" "no" >&6; }
6722 fi
6723
6724   if test "x$ac_ct_AR" = x; then
6725     AR="ar"
6726   else
6727     case $cross_compiling:$ac_tool_warned in
6728 yes:)
6729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6730 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6731 ac_tool_warned=yes ;;
6732 esac
6733     AR=$ac_ct_AR
6734   fi
6735 else
6736   AR="$ac_cv_prog_AR"
6737 fi
6738
6739   if test -z "$ARFLAGS"; then
6740     ARFLAGS='cr'
6741   fi
6742
6743
6744
6745   if test -z "$RANLIB"; then
6746     if test $gl_cv_c_amsterdam_compiler = yes; then
6747       RANLIB=':'
6748     else
6749             if test -n "$ac_tool_prefix"; then
6750   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6751 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6753 printf %s "checking for $ac_word... " >&6; }
6754 if test ${ac_cv_prog_RANLIB+y}
6755 then :
6756   printf %s "(cached) " >&6
6757 else
6758   if test -n "$RANLIB"; then
6759   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6760 else
6761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 for as_dir in $PATH
6763 do
6764   IFS=$as_save_IFS
6765   case $as_dir in #(((
6766     '') as_dir=./ ;;
6767     */) ;;
6768     *) as_dir=$as_dir/ ;;
6769   esac
6770     for ac_exec_ext in '' $ac_executable_extensions; do
6771   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6772     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6773     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6774     break 2
6775   fi
6776 done
6777   done
6778 IFS=$as_save_IFS
6779
6780 fi
6781 fi
6782 RANLIB=$ac_cv_prog_RANLIB
6783 if test -n "$RANLIB"; then
6784   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6785 printf "%s\n" "$RANLIB" >&6; }
6786 else
6787   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6788 printf "%s\n" "no" >&6; }
6789 fi
6790
6791
6792 fi
6793 if test -z "$ac_cv_prog_RANLIB"; then
6794   ac_ct_RANLIB=$RANLIB
6795   # Extract the first word of "ranlib", so it can be a program name with args.
6796 set dummy ranlib; ac_word=$2
6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6798 printf %s "checking for $ac_word... " >&6; }
6799 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6800 then :
6801   printf %s "(cached) " >&6
6802 else
6803   if test -n "$ac_ct_RANLIB"; then
6804   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6805 else
6806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6807 for as_dir in $PATH
6808 do
6809   IFS=$as_save_IFS
6810   case $as_dir in #(((
6811     '') as_dir=./ ;;
6812     */) ;;
6813     *) as_dir=$as_dir/ ;;
6814   esac
6815     for ac_exec_ext in '' $ac_executable_extensions; do
6816   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6817     ac_cv_prog_ac_ct_RANLIB="ranlib"
6818     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822   done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6828 if test -n "$ac_ct_RANLIB"; then
6829   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6830 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6831 else
6832   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6833 printf "%s\n" "no" >&6; }
6834 fi
6835
6836   if test "x$ac_ct_RANLIB" = x; then
6837     RANLIB=":"
6838   else
6839     case $cross_compiling:$ac_tool_warned in
6840 yes:)
6841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6842 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6843 ac_tool_warned=yes ;;
6844 esac
6845     RANLIB=$ac_ct_RANLIB
6846   fi
6847 else
6848   RANLIB="$ac_cv_prog_RANLIB"
6849 fi
6850
6851     fi
6852   fi
6853
6854
6855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
6856 printf %s "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
6857 if test ${ac_cv_sys_largefile_source+y}
6858 then :
6859   printf %s "(cached) " >&6
6860 else
6861   while :; do
6862   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6863 /* end confdefs.h.  */
6864 #include <sys/types.h> /* for off_t */
6865      #include <stdio.h>
6866 int
6867 main (void)
6868 {
6869 int (*fp) (FILE *, off_t, int) = fseeko;
6870      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6871   ;
6872   return 0;
6873 }
6874 _ACEOF
6875 if ac_fn_c_try_link "$LINENO"
6876 then :
6877   ac_cv_sys_largefile_source=no; break
6878 fi
6879 rm -f core conftest.err conftest.$ac_objext \
6880     conftest$ac_exeext conftest.$ac_ext
6881   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6882 /* end confdefs.h.  */
6883 #define _LARGEFILE_SOURCE 1
6884 #include <sys/types.h> /* for off_t */
6885      #include <stdio.h>
6886 int
6887 main (void)
6888 {
6889 int (*fp) (FILE *, off_t, int) = fseeko;
6890      return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
6891   ;
6892   return 0;
6893 }
6894 _ACEOF
6895 if ac_fn_c_try_link "$LINENO"
6896 then :
6897   ac_cv_sys_largefile_source=1; break
6898 fi
6899 rm -f core conftest.err conftest.$ac_objext \
6900     conftest$ac_exeext conftest.$ac_ext
6901   ac_cv_sys_largefile_source=unknown
6902   break
6903 done
6904 fi
6905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
6906 printf "%s\n" "$ac_cv_sys_largefile_source" >&6; }
6907 case $ac_cv_sys_largefile_source in #(
6908   no | unknown) ;;
6909   *)
6910 printf "%s\n" "#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source" >>confdefs.h
6911 ;;
6912 esac
6913 rm -rf conftest*
6914
6915 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
6916 # in glibc 2.1.3, but that breaks too many other things.
6917 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
6918 if test $ac_cv_sys_largefile_source != unknown; then
6919
6920 printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h
6921
6922 fi
6923
6924 # Make sure we can run config.sub.
6925 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6926   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6927
6928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6929 printf %s "checking build system type... " >&6; }
6930 if test ${ac_cv_build+y}
6931 then :
6932   printf %s "(cached) " >&6
6933 else
6934   ac_build_alias=$build_alias
6935 test "x$ac_build_alias" = x &&
6936   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6937 test "x$ac_build_alias" = x &&
6938   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6939 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6940   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6941
6942 fi
6943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6944 printf "%s\n" "$ac_cv_build" >&6; }
6945 case $ac_cv_build in
6946 *-*-*) ;;
6947 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6948 esac
6949 build=$ac_cv_build
6950 ac_save_IFS=$IFS; IFS='-'
6951 set x $ac_cv_build
6952 shift
6953 build_cpu=$1
6954 build_vendor=$2
6955 shift; shift
6956 # Remember, the first character of IFS is used to create $*,
6957 # except with old shells:
6958 build_os=$*
6959 IFS=$ac_save_IFS
6960 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6961
6962
6963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6964 printf %s "checking host system type... " >&6; }
6965 if test ${ac_cv_host+y}
6966 then :
6967   printf %s "(cached) " >&6
6968 else
6969   if test "x$host_alias" = x; then
6970   ac_cv_host=$ac_cv_build
6971 else
6972   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6973     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6974 fi
6975
6976 fi
6977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6978 printf "%s\n" "$ac_cv_host" >&6; }
6979 case $ac_cv_host in
6980 *-*-*) ;;
6981 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6982 esac
6983 host=$ac_cv_host
6984 ac_save_IFS=$IFS; IFS='-'
6985 set x $ac_cv_host
6986 shift
6987 host_cpu=$1
6988 host_vendor=$2
6989 shift; shift
6990 # Remember, the first character of IFS is used to create $*,
6991 # except with old shells:
6992 host_os=$*
6993 IFS=$ac_save_IFS
6994 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6995
6996
6997
6998
6999
7000   # IEEE behaviour is the default on all CPUs except Alpha and SH
7001   # (according to the test results of Bruno Haible's ieeefp/fenv_default.m4
7002   # and the GCC 4.1.2 manual).
7003   case "$host_cpu" in
7004     alpha*)
7005       # On Alpha systems, a compiler option provides the behaviour.
7006       # See the ieee(3) manual page, also available at
7007       # <https://backdrift.org/man/tru64/man3/ieee.3.html>
7008       if test -n "$GCC"; then
7009         # GCC has the option -mieee.
7010         # For full IEEE compliance (rarely needed), use option -mieee-with-inexact.
7011         CPPFLAGS="$CPPFLAGS -mieee"
7012       else
7013         # Compaq (ex-DEC) C has the option -ieee, equivalent to -ieee_with_no_inexact.
7014         # For full IEEE compliance (rarely needed), use option -ieee_with_inexact.
7015         CPPFLAGS="$CPPFLAGS -ieee"
7016       fi
7017       ;;
7018     sh*)
7019       if test -n "$GCC"; then
7020         # GCC has the option -mieee.
7021         CPPFLAGS="$CPPFLAGS -mieee"
7022       fi
7023       ;;
7024   esac
7025
7026 # Check whether --enable-largefile was given.
7027 if test ${enable_largefile+y}
7028 then :
7029   enableval=$enable_largefile;
7030 fi
7031
7032 if test "$enable_largefile" != no; then
7033
7034   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7035 printf %s "checking for special C compiler options needed for large files... " >&6; }
7036 if test ${ac_cv_sys_largefile_CC+y}
7037 then :
7038   printf %s "(cached) " >&6
7039 else
7040   ac_cv_sys_largefile_CC=no
7041      if test "$GCC" != yes; then
7042        ac_save_CC=$CC
7043        while :; do
7044          # IRIX 6.2 and later do not support large files by default,
7045          # so use the C compiler's -n32 option if that helps.
7046          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7047 /* end confdefs.h.  */
7048 #include <sys/types.h>
7049  /* Check that off_t can represent 2**63 - 1 correctly.
7050     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7051     since some C++ compilers masquerading as C compilers
7052     incorrectly reject 9223372036854775807.  */
7053 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7054   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7055                        && LARGE_OFF_T % 2147483647 == 1)
7056                       ? 1 : -1];
7057 int
7058 main (void)
7059 {
7060
7061   ;
7062   return 0;
7063 }
7064 _ACEOF
7065          if ac_fn_c_try_compile "$LINENO"
7066 then :
7067   break
7068 fi
7069 rm -f core conftest.err conftest.$ac_objext
7070          CC="$CC -n32"
7071          if ac_fn_c_try_compile "$LINENO"
7072 then :
7073   ac_cv_sys_largefile_CC=' -n32'; break
7074 fi
7075 rm -f core conftest.err conftest.$ac_objext
7076          break
7077        done
7078        CC=$ac_save_CC
7079        rm -f conftest.$ac_ext
7080     fi
7081 fi
7082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7083 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
7084   if test "$ac_cv_sys_largefile_CC" != no; then
7085     CC=$CC$ac_cv_sys_largefile_CC
7086   fi
7087
7088   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7089 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7090 if test ${ac_cv_sys_file_offset_bits+y}
7091 then :
7092   printf %s "(cached) " >&6
7093 else
7094   while :; do
7095   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7096 /* end confdefs.h.  */
7097 #include <sys/types.h>
7098  /* Check that off_t can represent 2**63 - 1 correctly.
7099     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7100     since some C++ compilers masquerading as C compilers
7101     incorrectly reject 9223372036854775807.  */
7102 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7103   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7104                        && LARGE_OFF_T % 2147483647 == 1)
7105                       ? 1 : -1];
7106 int
7107 main (void)
7108 {
7109
7110   ;
7111   return 0;
7112 }
7113 _ACEOF
7114 if ac_fn_c_try_compile "$LINENO"
7115 then :
7116   ac_cv_sys_file_offset_bits=no; break
7117 fi
7118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7119   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7120 /* end confdefs.h.  */
7121 #define _FILE_OFFSET_BITS 64
7122 #include <sys/types.h>
7123  /* Check that off_t can represent 2**63 - 1 correctly.
7124     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7125     since some C++ compilers masquerading as C compilers
7126     incorrectly reject 9223372036854775807.  */
7127 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7128   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7129                        && LARGE_OFF_T % 2147483647 == 1)
7130                       ? 1 : -1];
7131 int
7132 main (void)
7133 {
7134
7135   ;
7136   return 0;
7137 }
7138 _ACEOF
7139 if ac_fn_c_try_compile "$LINENO"
7140 then :
7141   ac_cv_sys_file_offset_bits=64; break
7142 fi
7143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7144   ac_cv_sys_file_offset_bits=unknown
7145   break
7146 done
7147 fi
7148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7149 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
7150 case $ac_cv_sys_file_offset_bits in #(
7151   no | unknown) ;;
7152   *)
7153 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
7154 ;;
7155 esac
7156 rm -rf conftest*
7157   if test $ac_cv_sys_file_offset_bits = unknown; then
7158     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7159 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
7160 if test ${ac_cv_sys_large_files+y}
7161 then :
7162   printf %s "(cached) " >&6
7163 else
7164   while :; do
7165   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7166 /* end confdefs.h.  */
7167 #include <sys/types.h>
7168  /* Check that off_t can represent 2**63 - 1 correctly.
7169     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7170     since some C++ compilers masquerading as C compilers
7171     incorrectly reject 9223372036854775807.  */
7172 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7173   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7174                        && LARGE_OFF_T % 2147483647 == 1)
7175                       ? 1 : -1];
7176 int
7177 main (void)
7178 {
7179
7180   ;
7181   return 0;
7182 }
7183 _ACEOF
7184 if ac_fn_c_try_compile "$LINENO"
7185 then :
7186   ac_cv_sys_large_files=no; break
7187 fi
7188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7189   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7190 /* end confdefs.h.  */
7191 #define _LARGE_FILES 1
7192 #include <sys/types.h>
7193  /* Check that off_t can represent 2**63 - 1 correctly.
7194     We can't simply define LARGE_OFF_T to be 9223372036854775807,
7195     since some C++ compilers masquerading as C compilers
7196     incorrectly reject 9223372036854775807.  */
7197 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7198   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7199                        && LARGE_OFF_T % 2147483647 == 1)
7200                       ? 1 : -1];
7201 int
7202 main (void)
7203 {
7204
7205   ;
7206   return 0;
7207 }
7208 _ACEOF
7209 if ac_fn_c_try_compile "$LINENO"
7210 then :
7211   ac_cv_sys_large_files=1; break
7212 fi
7213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7214   ac_cv_sys_large_files=unknown
7215   break
7216 done
7217 fi
7218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7219 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
7220 case $ac_cv_sys_large_files in #(
7221   no | unknown) ;;
7222   *)
7223 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
7224 ;;
7225 esac
7226 rm -rf conftest*
7227   fi
7228
7229
7230 printf "%s\n" "#define _DARWIN_USE_64_BIT_INODE 1" >>confdefs.h
7231
7232 fi
7233
7234
7235
7236
7237
7238
7239   # Check whether --enable-threads was given.
7240 if test ${enable_threads+y}
7241 then :
7242   enableval=$enable_threads; gl_use_threads=$enableval
7243 else
7244   if test -n "$gl_use_threads_default"; then
7245        gl_use_threads="$gl_use_threads_default"
7246      else
7247        case "$host_os" in
7248                                                                osf*) gl_use_threads=no ;;
7249          cygwin*)
7250                case `uname -r` in
7251                  1.[0-5].*) gl_use_threads=no ;;
7252                  *)         gl_use_threads=yes ;;
7253                esac
7254                ;;
7255          *)    gl_use_threads=yes ;;
7256        esac
7257      fi
7258
7259 fi
7260
7261   if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
7262     # For using <pthread.h>:
7263     case "$host_os" in
7264       osf*)
7265         # On OSF/1, the compiler needs the flag -D_REENTRANT so that it
7266         # groks <pthread.h>. cc also understands the flag -pthread, but
7267         # we don't use it because 1. gcc-2.95 doesn't understand -pthread,
7268         # 2. putting a flag into CPPFLAGS that has an effect on the linker
7269         # causes the AC_LINK_IFELSE test below to succeed unexpectedly,
7270         # leading to wrong values of LIBTHREAD and LTLIBTHREAD.
7271         CPPFLAGS="$CPPFLAGS -D_REENTRANT"
7272         ;;
7273     esac
7274     # Some systems optimize for single-threaded programs by default, and
7275     # need special flags to disable these optimizations. For example, the
7276     # definition of 'errno' in <errno.h>.
7277     case "$host_os" in
7278       aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;;
7279       solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;;
7280     esac
7281   fi
7282
7283
7284
7285   case "$host_os" in
7286     mingw*)
7287
7288 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
7289
7290       ;;
7291   esac
7292
7293
7294
7295   # Pre-early section.
7296
7297
7298
7299
7300   # Code from module absolute-header:
7301   # Code from module alloca-opt:
7302   # Code from module announce-gen:
7303   # Code from module assure:
7304   # Code from module at-internal:
7305   # Code from module calloc:
7306   # Code from module calloc-gnu:
7307   # Code from module calloc-posix:
7308   # Code from module chdir:
7309   # Code from module chdir-long:
7310   # Code from module clock-time:
7311   # Code from module cloexec:
7312   # Code from module close:
7313   # Code from module closedir:
7314   # Code from module dirent:
7315   # Code from module dirent-safer:
7316   # Code from module dirfd:
7317   # Code from module dirname-lgpl:
7318   # Code from module do-release-commit-and-tag:
7319   # Code from module dosname:
7320   # Code from module double-slash-root:
7321   # Code from module dup:
7322   # Code from module dup2:
7323   # Code from module errno:
7324   # Code from module error:
7325   # Code from module exitfail:
7326   # Code from module extensions:
7327   # Code from module extern-inline:
7328   # Code from module fchdir:
7329   # Code from module fclose:
7330   # Code from module fcntl:
7331   # Code from module fcntl-h:
7332   # Code from module fcntl-safer:
7333   # Code from module fd-hook:
7334   # Code from module fd-safer-flag:
7335   # Code from module fdatasync:
7336   # Code from module fdl:
7337   # Code from module fdopendir:
7338   # Code from module fflush:
7339
7340   # Code from module filename:
7341   # Code from module filenamecat-lgpl:
7342   # Code from module float:
7343   # Code from module fpieee:
7344
7345   # Code from module fprintf-posix:
7346   # Code from module fpucw:
7347   # Code from module fpurge:
7348   # Code from module freading:
7349   # Code from module frexp-nolibm:
7350   # Code from module frexpl-nolibm:
7351   # Code from module fseek:
7352   # Code from module fseeko:
7353
7354   # Code from module fseterr:
7355   # Code from module fstat:
7356   # Code from module fstatat:
7357   # Code from module fsync:
7358   # Code from module ftell:
7359   # Code from module ftello:
7360
7361   # Code from module gendocs:
7362   # Code from module getcwd-lgpl:
7363   # Code from module getdtablesize:
7364   # Code from module getopt-gnu:
7365   # Code from module getopt-posix:
7366   # Code from module getprogname:
7367   # Code from module gettext-h:
7368   # Code from module gettime:
7369   # Code from module gettimeofday:
7370   # Code from module git-version-gen:
7371   # Code from module gitlog-to-changelog:
7372   # Code from module gnu-make:
7373   # Code from module gnu-web-doc-update:
7374   # Code from module gnumakefile:
7375   # Code from module gnupload:
7376   # Code from module havelib:
7377   # Code from module ignore-value:
7378   # Code from module include_next:
7379   # Code from module intprops:
7380   # Code from module isnand-nolibm:
7381   # Code from module isnanf-nolibm:
7382   # Code from module isnanl-nolibm:
7383   # Code from module largefile:
7384
7385   # Code from module lib-ignore:
7386   # Code from module limits-h:
7387   # Code from module localtime-buffer:
7388   # Code from module lock:
7389   # Code from module lseek:
7390   # Code from module lstat:
7391   # Code from module maintainer-makefile:
7392   # Code from module malloc-gnu:
7393   # Code from module malloc-posix:
7394   # Code from module malloca:
7395   # Code from module manywarnings:
7396   # Code from module math:
7397   # Code from module memchr:
7398   # Code from module mempcpy:
7399   # Code from module memrchr:
7400   # Code from module msvc-inval:
7401   # Code from module msvc-nothrow:
7402   # Code from module multiarch:
7403   # Code from module nocrash:
7404   # Code from module open:
7405   # Code from module openat:
7406   # Code from module openat-die:
7407   # Code from module openat-h:
7408   # Code from module openat-safer:
7409   # Code from module opendir:
7410   # Code from module pathmax:
7411   # Code from module perror:
7412   # Code from module printf-frexp:
7413   # Code from module printf-frexpl:
7414   # Code from module printf-posix:
7415   # Code from module printf-safe:
7416   # Code from module raise:
7417   # Code from module readdir:
7418   # Code from module readme-release:
7419   # Code from module realloc-gnu:
7420   # Code from module realloc-posix:
7421   # Code from module rmdir:
7422   # Code from module save-cwd:
7423   # Code from module savedir:
7424   # Code from module sigaction:
7425   # Code from module signal-h:
7426   # Code from module signbit:
7427   # Code from module sigprocmask:
7428   # Code from module size_max:
7429   # Code from module snippet/_Noreturn:
7430   # Code from module snippet/arg-nonnull:
7431   # Code from module snippet/c++defs:
7432   # Code from module snippet/unused-parameter:
7433   # Code from module snippet/warn-on-use:
7434   # Code from module ssize_t:
7435   # Code from module stat:
7436   # Code from module stat-time:
7437   # Code from module statat:
7438   # Code from module stdbool:
7439   # Code from module stddef:
7440   # Code from module stdint:
7441   # Code from module stdio:
7442   # Code from module stdlib:
7443   # Code from module stdnoreturn:
7444   # Code from module stpcpy:
7445   # Code from module strdup-posix:
7446   # Code from module strerror:
7447   # Code from module strerror-override:
7448   # Code from module strerror_r-posix:
7449   # Code from module string:
7450   # Code from module sys_stat:
7451   # Code from module sys_time:
7452   # Code from module sys_types:
7453   # Code from module threadlib:
7454
7455
7456
7457   # Code from module time:
7458   # Code from module timespec:
7459   # Code from module unistd:
7460   # Code from module unistd-safer:
7461   # Code from module unlink:
7462   # Code from module unlinkat:
7463   # Code from module update-copyright:
7464   # Code from module useless-if-before-free:
7465   # Code from module utime:
7466   # Code from module utime-h:
7467   # Code from module utimens:
7468   # Code from module vasnprintf:
7469   # Code from module vc-list-files:
7470   # Code from module verify:
7471   # Code from module vfprintf-posix:
7472   # Code from module warnings:
7473   # Code from module wchar:
7474   # Code from module xalloc:
7475   # Code from module xalloc-die:
7476   # Code from module xalloc-oversized:
7477   # Code from module xsize:
7478   # Code from module year2038:
7479
7480   # Code from module yesno:
7481
7482
7483
7484
7485
7486
7487
7488           LIBC_FATAL_STDERR_=1
7489   export LIBC_FATAL_STDERR_
7490
7491 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7492 if test "x$ac_cv_type_size_t" = xyes
7493 then :
7494
7495 else
7496
7497 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
7498
7499 fi
7500
7501 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7502 # for constant arguments.  Useless!
7503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7504 printf %s "checking for working alloca.h... " >&6; }
7505 if test ${ac_cv_working_alloca_h+y}
7506 then :
7507   printf %s "(cached) " >&6
7508 else
7509   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h.  */
7511 #include <alloca.h>
7512 int
7513 main (void)
7514 {
7515 char *p = (char *) alloca (2 * sizeof (int));
7516                           if (p) return 0;
7517   ;
7518   return 0;
7519 }
7520 _ACEOF
7521 if ac_fn_c_try_link "$LINENO"
7522 then :
7523   ac_cv_working_alloca_h=yes
7524 else
7525   ac_cv_working_alloca_h=no
7526 fi
7527 rm -f core conftest.err conftest.$ac_objext \
7528     conftest$ac_exeext conftest.$ac_ext
7529 fi
7530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7531 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
7532 if test $ac_cv_working_alloca_h = yes; then
7533
7534 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
7535
7536 fi
7537
7538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7539 printf %s "checking for alloca... " >&6; }
7540 if test ${ac_cv_func_alloca_works+y}
7541 then :
7542   printf %s "(cached) " >&6
7543 else
7544   if test $ac_cv_working_alloca_h = yes; then
7545   ac_cv_func_alloca_works=yes
7546 else
7547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7548 /* end confdefs.h.  */
7549 #include <stdlib.h>
7550 #include <stddef.h>
7551 #ifndef alloca
7552 # ifdef __GNUC__
7553 #  define alloca __builtin_alloca
7554 # elif defined _MSC_VER
7555 #  include <malloc.h>
7556 #  define alloca _alloca
7557 # else
7558 #  ifdef  __cplusplus
7559 extern "C"
7560 #  endif
7561 void *alloca (size_t);
7562 # endif
7563 #endif
7564
7565 int
7566 main (void)
7567 {
7568 char *p = (char *) alloca (1);
7569                                     if (p) return 0;
7570   ;
7571   return 0;
7572 }
7573 _ACEOF
7574 if ac_fn_c_try_link "$LINENO"
7575 then :
7576   ac_cv_func_alloca_works=yes
7577 else
7578   ac_cv_func_alloca_works=no
7579 fi
7580 rm -f core conftest.err conftest.$ac_objext \
7581     conftest$ac_exeext conftest.$ac_ext
7582 fi
7583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7584 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
7585 fi
7586
7587 if test $ac_cv_func_alloca_works = yes; then
7588
7589 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
7590
7591 else
7592   # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7593 # that cause trouble.  Some versions do not even contain alloca or
7594 # contain a buggy version.  If you still want to use their alloca,
7595 # use ar to extract alloca.o from them instead of compiling alloca.c.
7596
7597
7598
7599
7600
7601 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7602
7603 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
7604
7605
7606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
7607 printf %s "checking whether \`alloca.c' needs Cray hooks... " >&6; }
7608 if test ${ac_cv_os_cray+y}
7609 then :
7610   printf %s "(cached) " >&6
7611 else
7612   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7613 /* end confdefs.h.  */
7614 #if defined CRAY && ! defined CRAY2
7615 webecray
7616 #else
7617 wenotbecray
7618 #endif
7619
7620 _ACEOF
7621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7622   $EGREP "webecray" >/dev/null 2>&1
7623 then :
7624   ac_cv_os_cray=yes
7625 else
7626   ac_cv_os_cray=no
7627 fi
7628 rm -rf conftest*
7629
7630 fi
7631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
7632 printf "%s\n" "$ac_cv_os_cray" >&6; }
7633 if test $ac_cv_os_cray = yes; then
7634   for ac_func in _getb67 GETB67 getb67; do
7635     as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
7636 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7637 if eval test \"x\$"$as_ac_var"\" = x"yes"
7638 then :
7639
7640 printf "%s\n" "#define CRAY_STACKSEG_END $ac_func" >>confdefs.h
7641
7642     break
7643 fi
7644
7645   done
7646 fi
7647
7648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7649 printf %s "checking stack direction for C alloca... " >&6; }
7650 if test ${ac_cv_c_stack_direction+y}
7651 then :
7652   printf %s "(cached) " >&6
7653 else
7654   if test "$cross_compiling" = yes
7655 then :
7656   ac_cv_c_stack_direction=0
7657 else
7658   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h.  */
7660 $ac_includes_default
7661 int
7662 find_stack_direction (int *addr, int depth)
7663 {
7664   int dir, dummy = 0;
7665   if (! addr)
7666     addr = &dummy;
7667   *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7668   dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7669   return dir + dummy;
7670 }
7671
7672 int
7673 main (int argc, char **argv)
7674 {
7675   return find_stack_direction (0, argc + !argv + 20) < 0;
7676 }
7677 _ACEOF
7678 if ac_fn_c_try_run "$LINENO"
7679 then :
7680   ac_cv_c_stack_direction=1
7681 else
7682   ac_cv_c_stack_direction=-1
7683 fi
7684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7685   conftest.$ac_objext conftest.beam conftest.$ac_ext
7686 fi
7687
7688 fi
7689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7690 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
7691 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
7692
7693
7694 fi
7695
7696
7697   GNULIB__EXIT=0;
7698   GNULIB_ATOLL=0;
7699   GNULIB_CALLOC_POSIX=0;
7700   GNULIB_CANONICALIZE_FILE_NAME=0;
7701   GNULIB_GETLOADAVG=0;
7702   GNULIB_GETSUBOPT=0;
7703   GNULIB_GRANTPT=0;
7704   GNULIB_MALLOC_POSIX=0;
7705   GNULIB_MBTOWC=0;
7706   GNULIB_MKDTEMP=0;
7707   GNULIB_MKOSTEMP=0;
7708   GNULIB_MKOSTEMPS=0;
7709   GNULIB_MKSTEMP=0;
7710   GNULIB_MKSTEMPS=0;
7711   GNULIB_POSIX_OPENPT=0;
7712   GNULIB_PTSNAME=0;
7713   GNULIB_PTSNAME_R=0;
7714   GNULIB_PUTENV=0;
7715   GNULIB_QSORT_R=0;
7716   GNULIB_RANDOM=0;
7717   GNULIB_RANDOM_R=0;
7718   GNULIB_REALLOCARRAY=0;
7719   GNULIB_REALLOC_POSIX=0;
7720   GNULIB_REALPATH=0;
7721   GNULIB_RPMATCH=0;
7722   GNULIB_SECURE_GETENV=0;
7723   GNULIB_SETENV=0;
7724   GNULIB_STRTOD=0;
7725   GNULIB_STRTOLL=0;
7726   GNULIB_STRTOULL=0;
7727   GNULIB_SYSTEM_POSIX=0;
7728   GNULIB_UNLOCKPT=0;
7729   GNULIB_UNSETENV=0;
7730   GNULIB_WCTOMB=0;
7731     HAVE__EXIT=1;
7732   HAVE_ATOLL=1;
7733   HAVE_CANONICALIZE_FILE_NAME=1;
7734   HAVE_DECL_GETLOADAVG=1;
7735   HAVE_GETSUBOPT=1;
7736   HAVE_GRANTPT=1;
7737   HAVE_DECL_INITSTATE=1;
7738   HAVE_MKDTEMP=1;
7739   HAVE_MKOSTEMP=1;
7740   HAVE_MKOSTEMPS=1;
7741   HAVE_MKSTEMP=1;
7742   HAVE_MKSTEMPS=1;
7743   HAVE_POSIX_OPENPT=1;
7744   HAVE_PTSNAME=1;
7745   HAVE_PTSNAME_R=1;
7746   HAVE_QSORT_R=1;
7747   HAVE_RANDOM=1;
7748   HAVE_RANDOM_H=1;
7749   HAVE_RANDOM_R=1;
7750   HAVE_REALLOCARRAY=1;
7751   HAVE_REALPATH=1;
7752   HAVE_RPMATCH=1;
7753   HAVE_SECURE_GETENV=1;
7754   HAVE_SETENV=1;
7755   HAVE_DECL_SETENV=1;
7756   HAVE_DECL_SETSTATE=1;
7757   HAVE_STRTOD=1;
7758   HAVE_STRTOLL=1;
7759   HAVE_STRTOULL=1;
7760   HAVE_STRUCT_RANDOM_DATA=1;
7761   HAVE_SYS_LOADAVG_H=0;
7762   HAVE_UNLOCKPT=1;
7763   HAVE_DECL_UNSETENV=1;
7764   REPLACE_CALLOC=0;
7765   REPLACE_CANONICALIZE_FILE_NAME=0;
7766   REPLACE_MALLOC=0;
7767   REPLACE_MBTOWC=0;
7768   REPLACE_MKSTEMP=0;
7769   REPLACE_PTSNAME=0;
7770   REPLACE_PTSNAME_R=0;
7771   REPLACE_PUTENV=0;
7772   REPLACE_QSORT_R=0;
7773   REPLACE_RANDOM_R=0;
7774   REPLACE_REALLOC=0;
7775   REPLACE_REALPATH=0;
7776   REPLACE_SETENV=0;
7777   REPLACE_STRTOD=0;
7778   REPLACE_UNSETENV=0;
7779   REPLACE_WCTOMB=0;
7780
7781
7782   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc are POSIX compliant" >&5
7783 printf %s "checking whether malloc, realloc, calloc are POSIX compliant... " >&6; }
7784 if test ${gl_cv_func_malloc_posix+y}
7785 then :
7786   printf %s "(cached) " >&6
7787 else
7788
7789                         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7790 /* end confdefs.h.  */
7791
7792 int
7793 main (void)
7794 {
7795 #if defined _WIN32 && ! defined __CYGWIN__
7796              choke me
7797              #endif
7798
7799   ;
7800   return 0;
7801 }
7802 _ACEOF
7803 if ac_fn_c_try_compile "$LINENO"
7804 then :
7805   gl_cv_func_malloc_posix=yes
7806 else
7807   gl_cv_func_malloc_posix=no
7808 fi
7809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7810
7811 fi
7812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
7813 printf "%s\n" "$gl_cv_func_malloc_posix" >&6; }
7814
7815
7816   GNULIB_CHDIR=0;
7817   GNULIB_CHOWN=0;
7818   GNULIB_CLOSE=0;
7819   GNULIB_DUP=0;
7820   GNULIB_DUP2=0;
7821   GNULIB_DUP3=0;
7822   GNULIB_ENVIRON=0;
7823   GNULIB_EUIDACCESS=0;
7824   GNULIB_FACCESSAT=0;
7825   GNULIB_FCHDIR=0;
7826   GNULIB_FCHOWNAT=0;
7827   GNULIB_FDATASYNC=0;
7828   GNULIB_FSYNC=0;
7829   GNULIB_FTRUNCATE=0;
7830   GNULIB_GETCWD=0;
7831   GNULIB_GETDOMAINNAME=0;
7832   GNULIB_GETDTABLESIZE=0;
7833   GNULIB_GETGROUPS=0;
7834   GNULIB_GETHOSTNAME=0;
7835   GNULIB_GETLOGIN=0;
7836   GNULIB_GETLOGIN_R=0;
7837   GNULIB_GETPAGESIZE=0;
7838   GNULIB_GETPASS=0;
7839   GNULIB_GETUSERSHELL=0;
7840   GNULIB_GROUP_MEMBER=0;
7841   GNULIB_ISATTY=0;
7842   GNULIB_LCHOWN=0;
7843   GNULIB_LINK=0;
7844   GNULIB_LINKAT=0;
7845   GNULIB_LSEEK=0;
7846   GNULIB_PIPE=0;
7847   GNULIB_PIPE2=0;
7848   GNULIB_PREAD=0;
7849   GNULIB_PWRITE=0;
7850   GNULIB_READ=0;
7851   GNULIB_READLINK=0;
7852   GNULIB_READLINKAT=0;
7853   GNULIB_RMDIR=0;
7854   GNULIB_SETHOSTNAME=0;
7855   GNULIB_SLEEP=0;
7856   GNULIB_SYMLINK=0;
7857   GNULIB_SYMLINKAT=0;
7858   GNULIB_TRUNCATE=0;
7859   GNULIB_TTYNAME_R=0;
7860   GNULIB_UNISTD_H_NONBLOCKING=0;
7861   GNULIB_UNISTD_H_SIGPIPE=0;
7862   GNULIB_UNLINK=0;
7863   GNULIB_UNLINKAT=0;
7864   GNULIB_USLEEP=0;
7865   GNULIB_WRITE=0;
7866     HAVE_CHOWN=1;
7867   HAVE_DUP2=1;
7868   HAVE_DUP3=1;
7869   HAVE_EUIDACCESS=1;
7870   HAVE_FACCESSAT=1;
7871   HAVE_FCHDIR=1;
7872   HAVE_FCHOWNAT=1;
7873   HAVE_FDATASYNC=1;
7874   HAVE_FSYNC=1;
7875   HAVE_FTRUNCATE=1;
7876   HAVE_GETDTABLESIZE=1;
7877   HAVE_GETGROUPS=1;
7878   HAVE_GETHOSTNAME=1;
7879   HAVE_GETLOGIN=1;
7880   HAVE_GETPAGESIZE=1;
7881   HAVE_GETPASS=1;
7882   HAVE_GROUP_MEMBER=1;
7883   HAVE_LCHOWN=1;
7884   HAVE_LINK=1;
7885   HAVE_LINKAT=1;
7886   HAVE_PIPE=1;
7887   HAVE_PIPE2=1;
7888   HAVE_PREAD=1;
7889   HAVE_PWRITE=1;
7890   HAVE_READLINK=1;
7891   HAVE_READLINKAT=1;
7892   HAVE_SETHOSTNAME=1;
7893   HAVE_SLEEP=1;
7894   HAVE_SYMLINK=1;
7895   HAVE_SYMLINKAT=1;
7896   HAVE_UNLINKAT=1;
7897   HAVE_USLEEP=1;
7898   HAVE_DECL_ENVIRON=1;
7899   HAVE_DECL_FCHDIR=1;
7900   HAVE_DECL_FDATASYNC=1;
7901   HAVE_DECL_GETDOMAINNAME=1;
7902   HAVE_DECL_GETLOGIN=1;
7903   HAVE_DECL_GETLOGIN_R=1;
7904   HAVE_DECL_GETPAGESIZE=1;
7905   HAVE_DECL_GETUSERSHELL=1;
7906   HAVE_DECL_SETHOSTNAME=1;
7907   HAVE_DECL_TRUNCATE=1;
7908   HAVE_DECL_TTYNAME_R=1;
7909   HAVE_OS_H=0;
7910   HAVE_SYS_PARAM_H=0;
7911   REPLACE_CHOWN=0;
7912   REPLACE_CLOSE=0;
7913   REPLACE_DUP=0;
7914   REPLACE_DUP2=0;
7915   REPLACE_FACCESSAT=0;
7916   REPLACE_FCHOWNAT=0;
7917   REPLACE_FTRUNCATE=0;
7918   REPLACE_GETCWD=0;
7919   REPLACE_GETDOMAINNAME=0;
7920   REPLACE_GETDTABLESIZE=0;
7921   REPLACE_GETLOGIN_R=0;
7922   REPLACE_GETGROUPS=0;
7923   REPLACE_GETPAGESIZE=0;
7924   REPLACE_GETPASS=0;
7925   REPLACE_ISATTY=0;
7926   REPLACE_LCHOWN=0;
7927   REPLACE_LINK=0;
7928   REPLACE_LINKAT=0;
7929   REPLACE_LSEEK=0;
7930   REPLACE_PREAD=0;
7931   REPLACE_PWRITE=0;
7932   REPLACE_READ=0;
7933   REPLACE_READLINK=0;
7934   REPLACE_READLINKAT=0;
7935   REPLACE_RMDIR=0;
7936   REPLACE_SLEEP=0;
7937   REPLACE_SYMLINK=0;
7938   REPLACE_SYMLINKAT=0;
7939   REPLACE_TRUNCATE=0;
7940   REPLACE_TTYNAME_R=0;
7941   REPLACE_UNLINK=0;
7942   REPLACE_UNLINKAT=0;
7943   REPLACE_USLEEP=0;
7944   REPLACE_WRITE=0;
7945   UNISTD_H_HAVE_WINSOCK2_H=0;
7946   UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
7947
7948
7949
7950
7951
7952
7953 ac_func=
7954 for ac_item in $ac_func_c_list
7955 do
7956   if test $ac_func; then
7957     ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
7958     if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
7959       echo "#define $ac_item 1" >> confdefs.h
7960     fi
7961     ac_func=
7962   else
7963     ac_func=$ac_item
7964   fi
7965 done
7966
7967
7968   if test $ac_cv_func__set_invalid_parameter_handler = yes; then
7969     HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
7970
7971 printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
7972
7973   else
7974     HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
7975   fi
7976
7977
7978
7979
7980
7981      GNULIB_OPENDIR=0;
7982   GNULIB_READDIR=0;
7983   GNULIB_REWINDDIR=0;
7984   GNULIB_CLOSEDIR=0;
7985   GNULIB_DIRFD=0;
7986   GNULIB_FDOPENDIR=0;
7987   GNULIB_SCANDIR=0;
7988   GNULIB_ALPHASORT=0;
7989     HAVE_OPENDIR=1;
7990   HAVE_READDIR=1;
7991   HAVE_REWINDDIR=1;
7992   HAVE_CLOSEDIR=1;
7993   HAVE_DECL_DIRFD=1;
7994   HAVE_DECL_FDOPENDIR=1;
7995   HAVE_FDOPENDIR=1;
7996   HAVE_SCANDIR=1;
7997   HAVE_ALPHASORT=1;
7998   REPLACE_OPENDIR=0;
7999   REPLACE_CLOSEDIR=0;
8000   REPLACE_DIRFD=0;
8001   REPLACE_FDOPENDIR=0;
8002
8003
8004
8005   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
8006 printf %s "checking whether the preprocessor supports include_next... " >&6; }
8007 if test ${gl_cv_have_include_next+y}
8008 then :
8009   printf %s "(cached) " >&6
8010 else
8011   rm -rf conftestd1a conftestd1b conftestd2
8012      mkdir conftestd1a conftestd1b conftestd2
8013                                                   cat <<EOF > conftestd1a/conftest.h
8014 #define DEFINED_IN_CONFTESTD1
8015 #include_next <conftest.h>
8016 #ifdef DEFINED_IN_CONFTESTD2
8017 int foo;
8018 #else
8019 #error "include_next doesn't work"
8020 #endif
8021 EOF
8022      cat <<EOF > conftestd1b/conftest.h
8023 #define DEFINED_IN_CONFTESTD1
8024 #include <stdio.h>
8025 #include_next <conftest.h>
8026 #ifdef DEFINED_IN_CONFTESTD2
8027 int foo;
8028 #else
8029 #error "include_next doesn't work"
8030 #endif
8031 EOF
8032      cat <<EOF > conftestd2/conftest.h
8033 #ifndef DEFINED_IN_CONFTESTD1
8034 #error "include_next test doesn't work"
8035 #endif
8036 #define DEFINED_IN_CONFTESTD2
8037 EOF
8038      gl_save_CPPFLAGS="$CPPFLAGS"
8039      CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
8040      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8041 /* end confdefs.h.  */
8042 #include <conftest.h>
8043 _ACEOF
8044 if ac_fn_c_try_compile "$LINENO"
8045 then :
8046   gl_cv_have_include_next=yes
8047 else
8048   CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
8049         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8050 /* end confdefs.h.  */
8051 #include <conftest.h>
8052 _ACEOF
8053 if ac_fn_c_try_compile "$LINENO"
8054 then :
8055   gl_cv_have_include_next=buggy
8056 else
8057   gl_cv_have_include_next=no
8058 fi
8059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060
8061 fi
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063      CPPFLAGS="$gl_save_CPPFLAGS"
8064      rm -rf conftestd1a conftestd1b conftestd2
8065
8066 fi
8067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
8068 printf "%s\n" "$gl_cv_have_include_next" >&6; }
8069   PRAGMA_SYSTEM_HEADER=
8070   if test $gl_cv_have_include_next = yes; then
8071     INCLUDE_NEXT=include_next
8072     INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
8073     if test -n "$GCC"; then
8074       PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
8075     fi
8076   else
8077     if test $gl_cv_have_include_next = buggy; then
8078       INCLUDE_NEXT=include
8079       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
8080     else
8081       INCLUDE_NEXT=include
8082       INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
8083     fi
8084   fi
8085
8086
8087
8088   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether system header files limit the line length" >&5
8089 printf %s "checking whether system header files limit the line length... " >&6; }
8090 if test ${gl_cv_pragma_columns+y}
8091 then :
8092   printf %s "(cached) " >&6
8093 else
8094        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8095 /* end confdefs.h.  */
8096
8097 #ifdef __TANDEM
8098 choke me
8099 #endif
8100
8101 _ACEOF
8102 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8103   $EGREP "choke me" >/dev/null 2>&1
8104 then :
8105   gl_cv_pragma_columns=yes
8106 else
8107   gl_cv_pragma_columns=no
8108 fi
8109 rm -rf conftest*
8110
8111
8112 fi
8113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pragma_columns" >&5
8114 printf "%s\n" "$gl_cv_pragma_columns" >&6; }
8115   if test $gl_cv_pragma_columns = yes; then
8116     PRAGMA_COLUMNS="#pragma COLUMNS 10000"
8117   else
8118     PRAGMA_COLUMNS=
8119   fi
8120
8121
8122
8123
8124 # The Clang compiler raises a warning for an undeclared identifier that matches
8125 # a compiler builtin function.  All extant Clang versions are affected, as of
8126 # Clang 3.6.0.  Test a builtin known to every version.  This problem affects the
8127 # C and Objective C languages, but Clang does report an error under C++ and
8128 # Objective C++.
8129 #
8130 # Passing -fno-builtin to the compiler would suppress this problem.  That
8131 # strategy would have the advantage of being insensitive to stray warnings, but
8132 # it would make tests less realistic.
8133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how $CC reports undeclared, standard C functions" >&5
8134 printf %s "checking how $CC reports undeclared, standard C functions... " >&6; }
8135 if test ${ac_cv_c_decl_report+y}
8136 then :
8137   printf %s "(cached) " >&6
8138 else
8139   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8140 /* end confdefs.h.  */
8141
8142 int
8143 main (void)
8144 {
8145 (void) strchr;
8146   ;
8147   return 0;
8148 }
8149 _ACEOF
8150 if ac_fn_c_try_compile "$LINENO"
8151 then :
8152   if test -s conftest.err
8153 then :
8154       # For AC_CHECK_DECL to react to warnings, the compiler must be silent on
8155     # valid AC_CHECK_DECL input.  No library function is consistently available
8156     # on freestanding implementations, so test against a dummy declaration.
8157     # Include always-available headers on the off chance that they somehow
8158     # elicit warnings.
8159     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h.  */
8161 #include <float.h>
8162 #include <limits.h>
8163 #include <stdarg.h>
8164 #include <stddef.h>
8165 extern void ac_decl (int, char *);
8166 int
8167 main (void)
8168 {
8169 #ifdef __cplusplus
8170   (void) ac_decl ((int) 0, (char *) 0);
8171   (void) ac_decl;
8172 #else
8173   (void) ac_decl;
8174 #endif
8175
8176   ;
8177   return 0;
8178 }
8179 _ACEOF
8180 if ac_fn_c_try_compile "$LINENO"
8181 then :
8182   if test -s conftest.err
8183 then :
8184   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8185 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8186 as_fn_error $? "cannot detect from compiler exit status or warnings
8187 See \`config.log' for more details" "$LINENO" 5; }
8188 else
8189   ac_cv_c_decl_report=warning
8190 fi
8191 else
8192   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8193 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8194 as_fn_error $? "cannot compile a simple declaration test
8195 See \`config.log' for more details" "$LINENO" 5; }
8196 fi
8197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198 else
8199   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8200 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
8201 as_fn_error $? "compiler does not report undeclared identifiers
8202 See \`config.log' for more details" "$LINENO" 5; }
8203 fi
8204 else
8205   ac_cv_c_decl_report=error
8206 fi
8207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8208 fi
8209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_decl_report" >&5
8210 printf "%s\n" "$ac_cv_c_decl_report" >&6; }
8211
8212 case $ac_cv_c_decl_report in
8213   warning) ac_c_decl_warn_flag=yes ;;
8214   *) ac_c_decl_warn_flag= ;;
8215 esac
8216
8217
8218
8219   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
8220 printf %s "checking whether // is distinct from /... " >&6; }
8221 if test ${gl_cv_double_slash_root+y}
8222 then :
8223   printf %s "(cached) " >&6
8224 else
8225    if test x"$cross_compiling" = xyes ; then
8226         # When cross-compiling, there is no way to tell whether // is special
8227         # short of a list of hosts.  However, the only known hosts to date
8228         # that have a distinct // are Apollo DomainOS (too old to port to),
8229         # Cygwin, and z/OS.  If anyone knows of another system for which // has
8230         # special semantics and is distinct from /, please report it to
8231         # <bug-gnulib@gnu.org>.
8232         case $host in
8233           *-cygwin | i370-ibm-openedition)
8234             gl_cv_double_slash_root=yes ;;
8235           *)
8236             # Be optimistic and assume that / and // are the same when we
8237             # don't know.
8238             gl_cv_double_slash_root='unknown, assuming no' ;;
8239         esac
8240       else
8241         set x `ls -di / // 2>/dev/null`
8242         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
8243           gl_cv_double_slash_root=no
8244         else
8245           gl_cv_double_slash_root=yes
8246         fi
8247       fi
8248 fi
8249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
8250 printf "%s\n" "$gl_cv_double_slash_root" >&6; }
8251   if test "$gl_cv_double_slash_root" = yes; then
8252
8253 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
8254
8255   fi
8256
8257
8258
8259   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
8260 printf %s "checking for complete errno.h... " >&6; }
8261 if test ${gl_cv_header_errno_h_complete+y}
8262 then :
8263   printf %s "(cached) " >&6
8264 else
8265
8266     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8267 /* end confdefs.h.  */
8268
8269 #include <errno.h>
8270 #if !defined ETXTBSY
8271 booboo
8272 #endif
8273 #if !defined ENOMSG
8274 booboo
8275 #endif
8276 #if !defined EIDRM
8277 booboo
8278 #endif
8279 #if !defined ENOLINK
8280 booboo
8281 #endif
8282 #if !defined EPROTO
8283 booboo
8284 #endif
8285 #if !defined EMULTIHOP
8286 booboo
8287 #endif
8288 #if !defined EBADMSG
8289 booboo
8290 #endif
8291 #if !defined EOVERFLOW
8292 booboo
8293 #endif
8294 #if !defined ENOTSUP
8295 booboo
8296 #endif
8297 #if !defined ENETRESET
8298 booboo
8299 #endif
8300 #if !defined ECONNABORTED
8301 booboo
8302 #endif
8303 #if !defined ESTALE
8304 booboo
8305 #endif
8306 #if !defined EDQUOT
8307 booboo
8308 #endif
8309 #if !defined ECANCELED
8310 booboo
8311 #endif
8312 #if !defined EOWNERDEAD
8313 booboo
8314 #endif
8315 #if !defined ENOTRECOVERABLE
8316 booboo
8317 #endif
8318 #if !defined EILSEQ
8319 booboo
8320 #endif
8321
8322 _ACEOF
8323 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8324   $EGREP "booboo" >/dev/null 2>&1
8325 then :
8326   gl_cv_header_errno_h_complete=no
8327 else
8328   gl_cv_header_errno_h_complete=yes
8329 fi
8330 rm -rf conftest*
8331
8332
8333 fi
8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
8335 printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; }
8336   if test $gl_cv_header_errno_h_complete = yes; then
8337     ERRNO_H=''
8338   else
8339
8340
8341
8342
8343
8344
8345
8346
8347      if test $gl_cv_have_include_next = yes; then
8348        gl_cv_next_errno_h='<'errno.h'>'
8349      else
8350        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
8351 printf %s "checking absolute name of <errno.h>... " >&6; }
8352 if test ${gl_cv_next_errno_h+y}
8353 then :
8354   printf %s "(cached) " >&6
8355 else
8356
8357
8358
8359   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8360 /* end confdefs.h.  */
8361 #include <errno.h>
8362 _ACEOF
8363                 case "$host_os" in
8364     aix*) gl_absname_cpp="$ac_cpp -C" ;;
8365     *)    gl_absname_cpp="$ac_cpp" ;;
8366   esac
8367
8368   case "$host_os" in
8369     mingw*)
8370                                           gl_dirsep_regex='[/\\]'
8371       ;;
8372     *)
8373       gl_dirsep_regex='\/'
8374       ;;
8375   esac
8376       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8377   gl_header_literal_regex=`echo 'errno.h' \
8378                            | sed -e "$gl_make_literal_regex_sed"`
8379   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8380       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8381       s|^/[^/]|//&|
8382       p
8383       q
8384     }'
8385
8386         gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8387   sed -n "$gl_absolute_header_sed"`
8388
8389            gl_header=$gl_cv_absolute_errno_h
8390            gl_cv_next_errno_h='"'$gl_header'"'
8391
8392
8393 fi
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
8395 printf "%s\n" "$gl_cv_next_errno_h" >&6; }
8396      fi
8397      NEXT_ERRNO_H=$gl_cv_next_errno_h
8398
8399      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8400        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8401        gl_next_as_first_directive='<'errno.h'>'
8402      else
8403        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8404        gl_next_as_first_directive=$gl_cv_next_errno_h
8405      fi
8406      NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
8407
8408
8409
8410
8411     ERRNO_H='errno.h'
8412   fi
8413
8414    if test -n "$ERRNO_H"; then
8415   GL_GENERATE_ERRNO_H_TRUE=
8416   GL_GENERATE_ERRNO_H_FALSE='#'
8417 else
8418   GL_GENERATE_ERRNO_H_TRUE='#'
8419   GL_GENERATE_ERRNO_H_FALSE=
8420 fi
8421
8422
8423   if test -n "$ERRNO_H"; then
8424     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
8425 printf %s "checking for EMULTIHOP value... " >&6; }
8426 if test ${gl_cv_header_errno_h_EMULTIHOP+y}
8427 then :
8428   printf %s "(cached) " >&6
8429 else
8430
8431       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8432 /* end confdefs.h.  */
8433
8434 #include <errno.h>
8435 #ifdef EMULTIHOP
8436 yes
8437 #endif
8438
8439 _ACEOF
8440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8441   $EGREP "yes" >/dev/null 2>&1
8442 then :
8443   gl_cv_header_errno_h_EMULTIHOP=yes
8444 else
8445   gl_cv_header_errno_h_EMULTIHOP=no
8446 fi
8447 rm -rf conftest*
8448
8449       if test $gl_cv_header_errno_h_EMULTIHOP = no; then
8450         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8451 /* end confdefs.h.  */
8452
8453 #define _XOPEN_SOURCE_EXTENDED 1
8454 #include <errno.h>
8455 #ifdef EMULTIHOP
8456 yes
8457 #endif
8458
8459 _ACEOF
8460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8461   $EGREP "yes" >/dev/null 2>&1
8462 then :
8463   gl_cv_header_errno_h_EMULTIHOP=hidden
8464 fi
8465 rm -rf conftest*
8466
8467         if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
8468                               if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP"        "
8469 #define _XOPEN_SOURCE_EXTENDED 1
8470 #include <errno.h>
8471 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8472 #include <stdio.h>
8473 #include <stdlib.h>
8474 "
8475 then :
8476
8477 fi
8478
8479         fi
8480       fi
8481
8482 fi
8483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8484 printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8485     case $gl_cv_header_errno_h_EMULTIHOP in
8486       yes | no)
8487         EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
8488         ;;
8489       *)
8490         EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
8491         ;;
8492     esac
8493
8494
8495   fi
8496
8497
8498   if test -n "$ERRNO_H"; then
8499     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8500 printf %s "checking for ENOLINK value... " >&6; }
8501 if test ${gl_cv_header_errno_h_ENOLINK+y}
8502 then :
8503   printf %s "(cached) " >&6
8504 else
8505
8506       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8507 /* end confdefs.h.  */
8508
8509 #include <errno.h>
8510 #ifdef ENOLINK
8511 yes
8512 #endif
8513
8514 _ACEOF
8515 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8516   $EGREP "yes" >/dev/null 2>&1
8517 then :
8518   gl_cv_header_errno_h_ENOLINK=yes
8519 else
8520   gl_cv_header_errno_h_ENOLINK=no
8521 fi
8522 rm -rf conftest*
8523
8524       if test $gl_cv_header_errno_h_ENOLINK = no; then
8525         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8526 /* end confdefs.h.  */
8527
8528 #define _XOPEN_SOURCE_EXTENDED 1
8529 #include <errno.h>
8530 #ifdef ENOLINK
8531 yes
8532 #endif
8533
8534 _ACEOF
8535 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8536   $EGREP "yes" >/dev/null 2>&1
8537 then :
8538   gl_cv_header_errno_h_ENOLINK=hidden
8539 fi
8540 rm -rf conftest*
8541
8542         if test $gl_cv_header_errno_h_ENOLINK = hidden; then
8543                               if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK"        "
8544 #define _XOPEN_SOURCE_EXTENDED 1
8545 #include <errno.h>
8546 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8547 #include <stdio.h>
8548 #include <stdlib.h>
8549 "
8550 then :
8551
8552 fi
8553
8554         fi
8555       fi
8556
8557 fi
8558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
8559 printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; }
8560     case $gl_cv_header_errno_h_ENOLINK in
8561       yes | no)
8562         ENOLINK_HIDDEN=0; ENOLINK_VALUE=
8563         ;;
8564       *)
8565         ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
8566         ;;
8567     esac
8568
8569
8570   fi
8571
8572
8573   if test -n "$ERRNO_H"; then
8574     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
8575 printf %s "checking for EOVERFLOW value... " >&6; }
8576 if test ${gl_cv_header_errno_h_EOVERFLOW+y}
8577 then :
8578   printf %s "(cached) " >&6
8579 else
8580
8581       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8582 /* end confdefs.h.  */
8583
8584 #include <errno.h>
8585 #ifdef EOVERFLOW
8586 yes
8587 #endif
8588
8589 _ACEOF
8590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8591   $EGREP "yes" >/dev/null 2>&1
8592 then :
8593   gl_cv_header_errno_h_EOVERFLOW=yes
8594 else
8595   gl_cv_header_errno_h_EOVERFLOW=no
8596 fi
8597 rm -rf conftest*
8598
8599       if test $gl_cv_header_errno_h_EOVERFLOW = no; then
8600         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8601 /* end confdefs.h.  */
8602
8603 #define _XOPEN_SOURCE_EXTENDED 1
8604 #include <errno.h>
8605 #ifdef EOVERFLOW
8606 yes
8607 #endif
8608
8609 _ACEOF
8610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8611   $EGREP "yes" >/dev/null 2>&1
8612 then :
8613   gl_cv_header_errno_h_EOVERFLOW=hidden
8614 fi
8615 rm -rf conftest*
8616
8617         if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
8618                               if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW"        "
8619 #define _XOPEN_SOURCE_EXTENDED 1
8620 #include <errno.h>
8621 /* The following two lines are a workaround against an autoconf-2.52 bug.  */
8622 #include <stdio.h>
8623 #include <stdlib.h>
8624 "
8625 then :
8626
8627 fi
8628
8629         fi
8630       fi
8631
8632 fi
8633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
8634 printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
8635     case $gl_cv_header_errno_h_EOVERFLOW in
8636       yes | no)
8637         EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
8638         ;;
8639       *)
8640         EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
8641         ;;
8642     esac
8643
8644
8645   fi
8646
8647
8648 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
8649 if test "x$ac_cv_have_decl_strerror_r" = xyes
8650 then :
8651   ac_have_decl=1
8652 else
8653   ac_have_decl=0
8654 fi
8655
8656 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
8657
8658
8659
8660
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
8662 printf %s "checking whether strerror_r returns char *... " >&6; }
8663 if test ${ac_cv_func_strerror_r_char_p+y}
8664 then :
8665   printf %s "(cached) " >&6
8666 else
8667
8668     ac_cv_func_strerror_r_char_p=no
8669     if test $ac_cv_have_decl_strerror_r = yes; then
8670       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8671 /* end confdefs.h.  */
8672 $ac_includes_default
8673 int
8674 main (void)
8675 {
8676
8677           char buf[100];
8678           char x = *strerror_r (0, buf, sizeof buf);
8679           char *p = strerror_r (0, buf, sizeof buf);
8680           return !p || x;
8681
8682   ;
8683   return 0;
8684 }
8685 _ACEOF
8686 if ac_fn_c_try_compile "$LINENO"
8687 then :
8688   ac_cv_func_strerror_r_char_p=yes
8689 fi
8690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8691     else
8692       # strerror_r is not declared.  Choose between
8693       # systems that have relatively inaccessible declarations for the
8694       # function.  BeOS and DEC UNIX 4.0 fall in this category, but the
8695       # former has a strerror_r that returns char*, while the latter
8696       # has a strerror_r that returns `int'.
8697       # This test should segfault on the DEC system.
8698       if test "$cross_compiling" = yes
8699 then :
8700   :
8701 else
8702   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8703 /* end confdefs.h.  */
8704 $ac_includes_default
8705         extern char *strerror_r ();
8706 int
8707 main (void)
8708 {
8709 char buf[100];
8710           char x = *strerror_r (0, buf, sizeof buf);
8711           return ! isalpha (x);
8712   ;
8713   return 0;
8714 }
8715 _ACEOF
8716 if ac_fn_c_try_run "$LINENO"
8717 then :
8718   ac_cv_func_strerror_r_char_p=yes
8719 fi
8720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8721   conftest.$ac_objext conftest.beam conftest.$ac_ext
8722 fi
8723
8724     fi
8725
8726 fi
8727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
8728 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
8729 if test $ac_cv_func_strerror_r_char_p = yes; then
8730
8731 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
8732
8733 fi
8734
8735
8736   XGETTEXT_EXTRA_OPTIONS=
8737
8738
8739
8740
8741 ac_fn_c_check_decl "$LINENO" "fchdir" "ac_cv_have_decl_fchdir" "$ac_includes_default"
8742 if test "x$ac_cv_have_decl_fchdir" = xyes
8743 then :
8744   ac_have_decl=1
8745 else
8746   ac_have_decl=0
8747 fi
8748
8749 printf "%s\n" "#define HAVE_DECL_FCHDIR $ac_have_decl" >>confdefs.h
8750
8751
8752   GNULIB_DPRINTF=0;
8753   GNULIB_FCLOSE=0;
8754   GNULIB_FDOPEN=0;
8755   GNULIB_FFLUSH=0;
8756   GNULIB_FGETC=0;
8757   GNULIB_FGETS=0;
8758   GNULIB_FOPEN=0;
8759   GNULIB_FPRINTF=0;
8760   GNULIB_FPRINTF_POSIX=0;
8761   GNULIB_FPURGE=0;
8762   GNULIB_FPUTC=0;
8763   GNULIB_FPUTS=0;
8764   GNULIB_FREAD=0;
8765   GNULIB_FREOPEN=0;
8766   GNULIB_FSCANF=0;
8767   GNULIB_FSEEK=0;
8768   GNULIB_FSEEKO=0;
8769   GNULIB_FTELL=0;
8770   GNULIB_FTELLO=0;
8771   GNULIB_FWRITE=0;
8772   GNULIB_GETC=0;
8773   GNULIB_GETCHAR=0;
8774   GNULIB_GETDELIM=0;
8775   GNULIB_GETLINE=0;
8776   GNULIB_OBSTACK_PRINTF=0;
8777   GNULIB_OBSTACK_PRINTF_POSIX=0;
8778   GNULIB_PCLOSE=0;
8779   GNULIB_PERROR=0;
8780   GNULIB_POPEN=0;
8781   GNULIB_PRINTF=0;
8782   GNULIB_PRINTF_POSIX=0;
8783   GNULIB_PUTC=0;
8784   GNULIB_PUTCHAR=0;
8785   GNULIB_PUTS=0;
8786   GNULIB_REMOVE=0;
8787   GNULIB_RENAME=0;
8788   GNULIB_RENAMEAT=0;
8789   GNULIB_SCANF=0;
8790   GNULIB_SNPRINTF=0;
8791   GNULIB_SPRINTF_POSIX=0;
8792   GNULIB_STDIO_H_NONBLOCKING=0;
8793   GNULIB_STDIO_H_SIGPIPE=0;
8794   GNULIB_TMPFILE=0;
8795   GNULIB_VASPRINTF=0;
8796   GNULIB_VFSCANF=0;
8797   GNULIB_VSCANF=0;
8798   GNULIB_VDPRINTF=0;
8799   GNULIB_VFPRINTF=0;
8800   GNULIB_VFPRINTF_POSIX=0;
8801   GNULIB_VPRINTF=0;
8802   GNULIB_VPRINTF_POSIX=0;
8803   GNULIB_VSNPRINTF=0;
8804   GNULIB_VSPRINTF_POSIX=0;
8805     HAVE_DECL_FPURGE=1;
8806   HAVE_DECL_FSEEKO=1;
8807   HAVE_DECL_FTELLO=1;
8808   HAVE_DECL_GETDELIM=1;
8809   HAVE_DECL_GETLINE=1;
8810   HAVE_DECL_OBSTACK_PRINTF=1;
8811   HAVE_DECL_SNPRINTF=1;
8812   HAVE_DECL_VSNPRINTF=1;
8813   HAVE_DPRINTF=1;
8814   HAVE_FSEEKO=1;
8815   HAVE_FTELLO=1;
8816   HAVE_PCLOSE=1;
8817   HAVE_POPEN=1;
8818   HAVE_RENAMEAT=1;
8819   HAVE_VASPRINTF=1;
8820   HAVE_VDPRINTF=1;
8821   REPLACE_DPRINTF=0;
8822   REPLACE_FCLOSE=0;
8823   REPLACE_FDOPEN=0;
8824   REPLACE_FFLUSH=0;
8825   REPLACE_FOPEN=0;
8826   REPLACE_FPRINTF=0;
8827   REPLACE_FPURGE=0;
8828   REPLACE_FREOPEN=0;
8829   REPLACE_FSEEK=0;
8830   REPLACE_FSEEKO=0;
8831   REPLACE_FTELL=0;
8832   REPLACE_FTELLO=0;
8833   REPLACE_GETDELIM=0;
8834   REPLACE_GETLINE=0;
8835   REPLACE_OBSTACK_PRINTF=0;
8836   REPLACE_PERROR=0;
8837   REPLACE_POPEN=0;
8838   REPLACE_PRINTF=0;
8839   REPLACE_REMOVE=0;
8840   REPLACE_RENAME=0;
8841   REPLACE_RENAMEAT=0;
8842   REPLACE_SNPRINTF=0;
8843   REPLACE_SPRINTF=0;
8844   REPLACE_STDIO_READ_FUNCS=0;
8845   REPLACE_STDIO_WRITE_FUNCS=0;
8846   REPLACE_TMPFILE=0;
8847   REPLACE_VASPRINTF=0;
8848   REPLACE_VDPRINTF=0;
8849   REPLACE_VFPRINTF=0;
8850   REPLACE_VPRINTF=0;
8851   REPLACE_VSNPRINTF=0;
8852   REPLACE_VSPRINTF=0;
8853
8854
8855   GNULIB_FCNTL=0;
8856   GNULIB_NONBLOCKING=0;
8857   GNULIB_OPEN=0;
8858   GNULIB_OPENAT=0;
8859     HAVE_FCNTL=1;
8860   HAVE_OPENAT=1;
8861   REPLACE_FCNTL=0;
8862   REPLACE_OPEN=0;
8863   REPLACE_OPENAT=0;
8864
8865
8866
8867
8868
8869
8870
8871
8872   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
8873 printf %s "checking for working fcntl.h... " >&6; }
8874 if test ${gl_cv_header_working_fcntl_h+y}
8875 then :
8876   printf %s "(cached) " >&6
8877 else
8878   if test "$cross_compiling" = yes
8879 then :
8880   case "$host_os" in
8881                   # Guess 'no' on native Windows.
8882           mingw*) gl_cv_header_working_fcntl_h='no' ;;
8883           *)      gl_cv_header_working_fcntl_h=cross-compiling ;;
8884         esac
8885
8886 else
8887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8888 /* end confdefs.h.  */
8889 #include <sys/types.h>
8890            #include <sys/stat.h>
8891            #if HAVE_UNISTD_H
8892            # include <unistd.h>
8893            #else /* on Windows with MSVC */
8894            # include <io.h>
8895            # include <stdlib.h>
8896            # defined sleep(n) _sleep ((n) * 1000)
8897            #endif
8898            #include <fcntl.h>
8899            #ifndef O_NOATIME
8900             #define O_NOATIME 0
8901            #endif
8902            #ifndef O_NOFOLLOW
8903             #define O_NOFOLLOW 0
8904            #endif
8905            static int const constants[] =
8906             {
8907               O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
8908               O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
8909             };
8910
8911 int
8912 main (void)
8913 {
8914
8915             int result = !constants;
8916             #if HAVE_SYMLINK
8917             {
8918               static char const sym[] = "conftest.sym";
8919               if (symlink ("/dev/null", sym) != 0)
8920                 result |= 2;
8921               else
8922                 {
8923                   int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
8924                   if (fd >= 0)
8925                     {
8926                       close (fd);
8927                       result |= 4;
8928                     }
8929                 }
8930               if (unlink (sym) != 0 || symlink (".", sym) != 0)
8931                 result |= 2;
8932               else
8933                 {
8934                   int fd = open (sym, O_RDONLY | O_NOFOLLOW);
8935                   if (fd >= 0)
8936                     {
8937                       close (fd);
8938                       result |= 4;
8939                     }
8940                 }
8941               unlink (sym);
8942             }
8943             #endif
8944             {
8945               static char const file[] = "confdefs.h";
8946               int fd = open (file, O_RDONLY | O_NOATIME);
8947               if (fd < 0)
8948                 result |= 8;
8949               else
8950                 {
8951                   struct stat st0;
8952                   if (fstat (fd, &st0) != 0)
8953                     result |= 16;
8954                   else
8955                     {
8956                       char c;
8957                       sleep (1);
8958                       if (read (fd, &c, 1) != 1)
8959                         result |= 24;
8960                       else
8961                         {
8962                           if (close (fd) != 0)
8963                             result |= 32;
8964                           else
8965                             {
8966                               struct stat st1;
8967                               if (stat (file, &st1) != 0)
8968                                 result |= 40;
8969                               else
8970                                 if (st0.st_atime != st1.st_atime)
8971                                   result |= 64;
8972                             }
8973                         }
8974                     }
8975                 }
8976             }
8977             return result;
8978   ;
8979   return 0;
8980 }
8981 _ACEOF
8982 if ac_fn_c_try_run "$LINENO"
8983 then :
8984   gl_cv_header_working_fcntl_h=yes
8985 else
8986   case $? in #(
8987         4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
8988         64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
8989         68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
8990          *) gl_cv_header_working_fcntl_h='no';;
8991         esac
8992 fi
8993 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8994   conftest.$ac_objext conftest.beam conftest.$ac_ext
8995 fi
8996
8997
8998 fi
8999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9000 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
9001
9002   case $gl_cv_header_working_fcntl_h in #(
9003   *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9004   *) ac_val=1;;
9005   esac
9006
9007 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h
9008
9009
9010   case $gl_cv_header_working_fcntl_h in #(
9011   *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9012   *) ac_val=1;;
9013   esac
9014
9015 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h
9016
9017
9018 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9019 if test "x$ac_cv_type_pid_t" = xyes
9020 then :
9021
9022 else
9023
9024 printf "%s\n" "#define pid_t int" >>confdefs.h
9025
9026 fi
9027
9028 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9029 if test "x$ac_cv_type_mode_t" = xyes
9030 then :
9031
9032 else
9033
9034 printf "%s\n" "#define mode_t int" >>confdefs.h
9035
9036 fi
9037
9038
9039
9040   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
9041 printf %s "checking for promoted mode_t type... " >&6; }
9042 if test ${gl_cv_promoted_mode_t+y}
9043 then :
9044   printf %s "(cached) " >&6
9045 else
9046
9047                 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h.  */
9049 #include <sys/types.h>
9050 int
9051 main (void)
9052 {
9053 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
9054   ;
9055   return 0;
9056 }
9057 _ACEOF
9058 if ac_fn_c_try_compile "$LINENO"
9059 then :
9060   gl_cv_promoted_mode_t='int'
9061 else
9062   gl_cv_promoted_mode_t='mode_t'
9063 fi
9064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065
9066 fi
9067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
9068 printf "%s\n" "$gl_cv_promoted_mode_t" >&6; }
9069
9070 printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h
9071
9072
9073 ac_fn_c_check_decl "$LINENO" "fdatasync" "ac_cv_have_decl_fdatasync" "$ac_includes_default"
9074 if test "x$ac_cv_have_decl_fdatasync" = xyes
9075 then :
9076   ac_have_decl=1
9077 else
9078   ac_have_decl=0
9079 fi
9080
9081 printf "%s\n" "#define HAVE_DECL_FDATASYNC $ac_have_decl" >>confdefs.h
9082
9083
9084
9085   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
9086 printf %s "checking for stdint.h... " >&6; }
9087 if test ${gl_cv_header_stdint_h+y}
9088 then :
9089   printf %s "(cached) " >&6
9090 else
9091   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* end confdefs.h.  */
9093 #include <sys/types.h>
9094             #include <stdint.h>
9095 int
9096 main (void)
9097 {
9098 uintmax_t i = (uintmax_t) -1; return !i;
9099   ;
9100   return 0;
9101 }
9102 _ACEOF
9103 if ac_fn_c_try_compile "$LINENO"
9104 then :
9105   gl_cv_header_stdint_h=yes
9106 else
9107   gl_cv_header_stdint_h=no
9108 fi
9109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9110 fi
9111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
9112 printf "%s\n" "$gl_cv_header_stdint_h" >&6; }
9113   if test $gl_cv_header_stdint_h = yes; then
9114
9115 printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h
9116
9117   fi
9118
9119
9120   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
9121 printf %s "checking for inttypes.h... " >&6; }
9122 if test ${gl_cv_header_inttypes_h+y}
9123 then :
9124   printf %s "(cached) " >&6
9125 else
9126   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9127 /* end confdefs.h.  */
9128
9129 #include <sys/types.h>
9130 #include <inttypes.h>
9131
9132 int
9133 main (void)
9134 {
9135 uintmax_t i = (uintmax_t) -1; return !i;
9136   ;
9137   return 0;
9138 }
9139 _ACEOF
9140 if ac_fn_c_try_compile "$LINENO"
9141 then :
9142   gl_cv_header_inttypes_h=yes
9143 else
9144   gl_cv_header_inttypes_h=no
9145 fi
9146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9147 fi
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
9149 printf "%s\n" "$gl_cv_header_inttypes_h" >&6; }
9150   if test $gl_cv_header_inttypes_h = yes; then
9151
9152 printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h
9153
9154   fi
9155
9156
9157
9158
9159
9160      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports size specifiers as in C99" >&5
9161 printf %s "checking whether printf supports size specifiers as in C99... " >&6; }
9162 if test ${gl_cv_func_printf_sizes_c99+y}
9163 then :
9164   printf %s "(cached) " >&6
9165 else
9166
9167       if test "$cross_compiling" = yes
9168 then :
9169
9170          case "$host_os" in
9171                                  # Guess yes on glibc systems.
9172            *-gnu* | gnu*)        gl_cv_func_printf_sizes_c99="guessing yes";;
9173                                  # Guess yes on FreeBSD >= 5.
9174            freebsd[1-4].*)       gl_cv_func_printf_sizes_c99="guessing no";;
9175            freebsd* | kfreebsd*) gl_cv_func_printf_sizes_c99="guessing yes";;
9176                                  # Guess yes on Mac OS X >= 10.3.
9177            darwin[1-6].*)        gl_cv_func_printf_sizes_c99="guessing no";;
9178            darwin*)              gl_cv_func_printf_sizes_c99="guessing yes";;
9179                                  # Guess yes on OpenBSD >= 3.9.
9180            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
9181                                  gl_cv_func_printf_sizes_c99="guessing no";;
9182            openbsd*)             gl_cv_func_printf_sizes_c99="guessing yes";;
9183                                  # Guess yes on Solaris >= 2.10.
9184            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
9185            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
9186                                  # Guess yes on NetBSD >= 3.
9187            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
9188                                  gl_cv_func_printf_sizes_c99="guessing no";;
9189            netbsd*)              gl_cv_func_printf_sizes_c99="guessing yes";;
9190                                  # Guess yes on MSVC, no on mingw.
9191            mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9192 /* end confdefs.h.  */
9193
9194 #ifdef _MSC_VER
9195  Known
9196 #endif
9197
9198 _ACEOF
9199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9200   $EGREP "Known" >/dev/null 2>&1
9201 then :
9202   gl_cv_func_printf_sizes_c99="guessing yes"
9203 else
9204   gl_cv_func_printf_sizes_c99="guessing no"
9205 fi
9206 rm -rf conftest*
9207
9208                                  ;;
9209                                  # If we don't know, assume the worst.
9210            *)                    gl_cv_func_printf_sizes_c99="guessing no";;
9211          esac
9212
9213 else
9214   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9215 /* end confdefs.h.  */
9216
9217 #include <stddef.h>
9218 #include <stdio.h>
9219 #include <string.h>
9220 #include <sys/types.h>
9221 #if HAVE_STDINT_H_WITH_UINTMAX
9222 # include <stdint.h>
9223 #endif
9224 #if HAVE_INTTYPES_H_WITH_UINTMAX
9225 # include <inttypes.h>
9226 #endif
9227 static char buf[100];
9228 int main ()
9229 {
9230   int result = 0;
9231 #if HAVE_STDINT_H_WITH_UINTMAX || HAVE_INTTYPES_H_WITH_UINTMAX
9232   buf[0] = '\0';
9233   if (sprintf (buf, "%ju %d", (uintmax_t) 12345671, 33, 44, 55) < 0
9234       || strcmp (buf, "12345671 33") != 0)
9235     result |= 1;
9236 #else
9237   result |= 1;
9238 #endif
9239   buf[0] = '\0';
9240   if (sprintf (buf, "%zu %d", (size_t) 12345672, 33, 44, 55) < 0
9241       || strcmp (buf, "12345672 33") != 0)
9242     result |= 2;
9243   buf[0] = '\0';
9244   if (sprintf (buf, "%tu %d", (ptrdiff_t) 12345673, 33, 44, 55) < 0
9245       || strcmp (buf, "12345673 33") != 0)
9246     result |= 4;
9247   buf[0] = '\0';
9248   if (sprintf (buf, "%Lg %d", (long double) 1.5, 33, 44, 55) < 0
9249       || strcmp (buf, "1.5 33") != 0)
9250     result |= 8;
9251   return result;
9252 }
9253 _ACEOF
9254 if ac_fn_c_try_run "$LINENO"
9255 then :
9256   gl_cv_func_printf_sizes_c99=yes
9257 else
9258   gl_cv_func_printf_sizes_c99=no
9259 fi
9260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9261   conftest.$ac_objext conftest.beam conftest.$ac_ext
9262 fi
9263
9264
9265 fi
9266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_sizes_c99" >&5
9267 printf "%s\n" "$gl_cv_func_printf_sizes_c99" >&6; }
9268
9269
9270
9271      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports 'long double' arguments" >&5
9272 printf %s "checking whether printf supports 'long double' arguments... " >&6; }
9273 if test ${gl_cv_func_printf_long_double+y}
9274 then :
9275   printf %s "(cached) " >&6
9276 else
9277
9278       if test "$cross_compiling" = yes
9279 then :
9280   case "$host_os" in
9281            beos*)  gl_cv_func_printf_long_double="guessing no";;
9282                    # Guess yes on MSVC, no on mingw.
9283            mingw*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9284 /* end confdefs.h.  */
9285
9286 #ifdef _MSC_VER
9287  Known
9288 #endif
9289
9290 _ACEOF
9291 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9292   $EGREP "Known" >/dev/null 2>&1
9293 then :
9294   gl_cv_func_printf_long_double="guessing yes"
9295 else
9296   gl_cv_func_printf_long_double="guessing no"
9297 fi
9298 rm -rf conftest*
9299
9300                    ;;
9301            *)      gl_cv_func_printf_long_double="guessing yes";;
9302          esac
9303
9304 else
9305   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9306 /* end confdefs.h.  */
9307
9308 #include <stdio.h>
9309 #include <string.h>
9310 static char buf[10000];
9311 int main ()
9312 {
9313   int result = 0;
9314   buf[0] = '\0';
9315   if (sprintf (buf, "%Lf %d", 1.75L, 33, 44, 55) < 0
9316       || strcmp (buf, "1.750000 33") != 0)
9317     result |= 1;
9318   buf[0] = '\0';
9319   if (sprintf (buf, "%Le %d", 1.75L, 33, 44, 55) < 0
9320       || strcmp (buf, "1.750000e+00 33") != 0)
9321     result |= 2;
9322   buf[0] = '\0';
9323   if (sprintf (buf, "%Lg %d", 1.75L, 33, 44, 55) < 0
9324       || strcmp (buf, "1.75 33") != 0)
9325     result |= 4;
9326   return result;
9327 }
9328 _ACEOF
9329 if ac_fn_c_try_run "$LINENO"
9330 then :
9331   gl_cv_func_printf_long_double=yes
9332 else
9333   gl_cv_func_printf_long_double=no
9334 fi
9335 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9336   conftest.$ac_objext conftest.beam conftest.$ac_ext
9337 fi
9338
9339
9340 fi
9341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_long_double" >&5
9342 printf "%s\n" "$gl_cv_func_printf_long_double" >&6; }
9343
9344
9345
9346      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'double' arguments" >&5
9347 printf %s "checking whether printf supports infinite 'double' arguments... " >&6; }
9348 if test ${gl_cv_func_printf_infinite+y}
9349 then :
9350   printf %s "(cached) " >&6
9351 else
9352
9353       if test "$cross_compiling" = yes
9354 then :
9355
9356          case "$host_os" in
9357                                  # Guess yes on glibc systems.
9358            *-gnu* | gnu*)        gl_cv_func_printf_infinite="guessing yes";;
9359                                  # Guess yes on FreeBSD >= 6.
9360            freebsd[1-5].*)       gl_cv_func_printf_infinite="guessing no";;
9361            freebsd* | kfreebsd*) gl_cv_func_printf_infinite="guessing yes";;
9362                                  # Guess yes on Mac OS X >= 10.3.
9363            darwin[1-6].*)        gl_cv_func_printf_infinite="guessing no";;
9364            darwin*)              gl_cv_func_printf_infinite="guessing yes";;
9365                                  # Guess yes on HP-UX >= 11.
9366            hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite="guessing no";;
9367            hpux*)                gl_cv_func_printf_infinite="guessing yes";;
9368                                  # Guess yes on NetBSD >= 3.
9369            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
9370                                  gl_cv_func_printf_infinite="guessing no";;
9371            netbsd*)              gl_cv_func_printf_infinite="guessing yes";;
9372                                  # Guess yes on BeOS.
9373            beos*)                gl_cv_func_printf_infinite="guessing yes";;
9374                                  # Guess yes on MSVC, no on mingw.
9375            mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h.  */
9377
9378 #ifdef _MSC_VER
9379  Known
9380 #endif
9381
9382 _ACEOF
9383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9384   $EGREP "Known" >/dev/null 2>&1
9385 then :
9386   gl_cv_func_printf_infinite="guessing yes"
9387 else
9388   gl_cv_func_printf_infinite="guessing no"
9389 fi
9390 rm -rf conftest*
9391
9392                                  ;;
9393                                  # If we don't know, assume the worst.
9394            *)                    gl_cv_func_printf_infinite="guessing no";;
9395          esac
9396
9397 else
9398   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9399 /* end confdefs.h.  */
9400
9401 #include <stdio.h>
9402 #include <string.h>
9403 static int
9404 strisnan (const char *string, size_t start_index, size_t end_index)
9405 {
9406   if (start_index < end_index)
9407     {
9408       if (string[start_index] == '-')
9409         start_index++;
9410       if (start_index + 3 <= end_index
9411           && memcmp (string + start_index, "nan", 3) == 0)
9412         {
9413           start_index += 3;
9414           if (start_index == end_index
9415               || (string[start_index] == '(' && string[end_index - 1] == ')'))
9416             return 1;
9417         }
9418     }
9419   return 0;
9420 }
9421 static int
9422 have_minus_zero ()
9423 {
9424   static double plus_zero = 0.0;
9425   double minus_zero = - plus_zero;
9426   return memcmp (&plus_zero, &minus_zero, sizeof (double)) != 0;
9427 }
9428 static char buf[10000];
9429 static double zero = 0.0;
9430 int main ()
9431 {
9432   int result = 0;
9433   if (sprintf (buf, "%f", 1.0 / zero) < 0
9434       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
9435     result |= 1;
9436   if (sprintf (buf, "%f", -1.0 / zero) < 0
9437       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
9438     result |= 1;
9439   if (sprintf (buf, "%f", zero / zero) < 0
9440       || !strisnan (buf, 0, strlen (buf)))
9441     result |= 2;
9442   if (sprintf (buf, "%e", 1.0 / zero) < 0
9443       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
9444     result |= 4;
9445   if (sprintf (buf, "%e", -1.0 / zero) < 0
9446       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
9447     result |= 4;
9448   if (sprintf (buf, "%e", zero / zero) < 0
9449       || !strisnan (buf, 0, strlen (buf)))
9450     result |= 8;
9451   if (sprintf (buf, "%g", 1.0 / zero) < 0
9452       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
9453     result |= 16;
9454   if (sprintf (buf, "%g", -1.0 / zero) < 0
9455       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
9456     result |= 16;
9457   if (sprintf (buf, "%g", zero / zero) < 0
9458       || !strisnan (buf, 0, strlen (buf)))
9459     result |= 32;
9460   /* This test fails on HP-UX 10.20.  */
9461   if (have_minus_zero ())
9462     if (sprintf (buf, "%g", - zero) < 0
9463         || strcmp (buf, "-0") != 0)
9464     result |= 64;
9465   return result;
9466 }
9467 _ACEOF
9468 if ac_fn_c_try_run "$LINENO"
9469 then :
9470   gl_cv_func_printf_infinite=yes
9471 else
9472   gl_cv_func_printf_infinite=no
9473 fi
9474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9475   conftest.$ac_objext conftest.beam conftest.$ac_ext
9476 fi
9477
9478
9479 fi
9480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite" >&5
9481 printf "%s\n" "$gl_cv_func_printf_infinite" >&6; }
9482
9483
9484    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
9485 printf %s "checking whether byte ordering is bigendian... " >&6; }
9486 if test ${ac_cv_c_bigendian+y}
9487 then :
9488   printf %s "(cached) " >&6
9489 else
9490   ac_cv_c_bigendian=unknown
9491     # See if we're dealing with a universal compiler.
9492     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h.  */
9494 #ifndef __APPLE_CC__
9495                not a universal capable compiler
9496              #endif
9497              typedef int dummy;
9498
9499 _ACEOF
9500 if ac_fn_c_try_compile "$LINENO"
9501 then :
9502
9503         # Check for potential -arch flags.  It is not universal unless
9504         # there are at least two -arch flags with different values.
9505         ac_arch=
9506         ac_prev=
9507         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
9508          if test -n "$ac_prev"; then
9509            case $ac_word in
9510              i?86 | x86_64 | ppc | ppc64)
9511                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
9512                  ac_arch=$ac_word
9513                else
9514                  ac_cv_c_bigendian=universal
9515                  break
9516                fi
9517                ;;
9518            esac
9519            ac_prev=
9520          elif test "x$ac_word" = "x-arch"; then
9521            ac_prev=arch
9522          fi
9523        done
9524 fi
9525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9526     if test $ac_cv_c_bigendian = unknown; then
9527       # See if sys/param.h defines the BYTE_ORDER macro.
9528       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9529 /* end confdefs.h.  */
9530 #include <sys/types.h>
9531              #include <sys/param.h>
9532
9533 int
9534 main (void)
9535 {
9536 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
9537                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
9538                      && LITTLE_ENDIAN)
9539               bogus endian macros
9540              #endif
9541
9542   ;
9543   return 0;
9544 }
9545 _ACEOF
9546 if ac_fn_c_try_compile "$LINENO"
9547 then :
9548   # It does; now see whether it defined to BIG_ENDIAN or not.
9549          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9550 /* end confdefs.h.  */
9551 #include <sys/types.h>
9552                 #include <sys/param.h>
9553
9554 int
9555 main (void)
9556 {
9557 #if BYTE_ORDER != BIG_ENDIAN
9558                  not big endian
9559                 #endif
9560
9561   ;
9562   return 0;
9563 }
9564 _ACEOF
9565 if ac_fn_c_try_compile "$LINENO"
9566 then :
9567   ac_cv_c_bigendian=yes
9568 else
9569   ac_cv_c_bigendian=no
9570 fi
9571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9572 fi
9573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9574     fi
9575     if test $ac_cv_c_bigendian = unknown; then
9576       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
9577       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9578 /* end confdefs.h.  */
9579 #include <limits.h>
9580
9581 int
9582 main (void)
9583 {
9584 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
9585               bogus endian macros
9586              #endif
9587
9588   ;
9589   return 0;
9590 }
9591 _ACEOF
9592 if ac_fn_c_try_compile "$LINENO"
9593 then :
9594   # It does; now see whether it defined to _BIG_ENDIAN or not.
9595          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9596 /* end confdefs.h.  */
9597 #include <limits.h>
9598
9599 int
9600 main (void)
9601 {
9602 #ifndef _BIG_ENDIAN
9603                  not big endian
9604                 #endif
9605
9606   ;
9607   return 0;
9608 }
9609 _ACEOF
9610 if ac_fn_c_try_compile "$LINENO"
9611 then :
9612   ac_cv_c_bigendian=yes
9613 else
9614   ac_cv_c_bigendian=no
9615 fi
9616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9617 fi
9618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9619     fi
9620     if test $ac_cv_c_bigendian = unknown; then
9621       # Compile a test program.
9622       if test "$cross_compiling" = yes
9623 then :
9624   # Try to guess by grepping values from an object file.
9625          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9626 /* end confdefs.h.  */
9627 short int ascii_mm[] =
9628                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
9629                 short int ascii_ii[] =
9630                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
9631                 int use_ascii (int i) {
9632                   return ascii_mm[i] + ascii_ii[i];
9633                 }
9634                 short int ebcdic_ii[] =
9635                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
9636                 short int ebcdic_mm[] =
9637                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
9638                 int use_ebcdic (int i) {
9639                   return ebcdic_mm[i] + ebcdic_ii[i];
9640                 }
9641                 extern int foo;
9642
9643 int
9644 main (void)
9645 {
9646 return use_ascii (foo) == use_ebcdic (foo);
9647   ;
9648   return 0;
9649 }
9650 _ACEOF
9651 if ac_fn_c_try_compile "$LINENO"
9652 then :
9653   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
9654               ac_cv_c_bigendian=yes
9655             fi
9656             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
9657               if test "$ac_cv_c_bigendian" = unknown; then
9658                 ac_cv_c_bigendian=no
9659               else
9660                 # finding both strings is unlikely to happen, but who knows?
9661                 ac_cv_c_bigendian=unknown
9662               fi
9663             fi
9664 fi
9665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9666 else
9667   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9668 /* end confdefs.h.  */
9669 $ac_includes_default
9670 int
9671 main (void)
9672 {
9673
9674              /* Are we little or big endian?  From Harbison&Steele.  */
9675              union
9676              {
9677                long int l;
9678                char c[sizeof (long int)];
9679              } u;
9680              u.l = 1;
9681              return u.c[sizeof (long int) - 1] == 1;
9682
9683   ;
9684   return 0;
9685 }
9686 _ACEOF
9687 if ac_fn_c_try_run "$LINENO"
9688 then :
9689   ac_cv_c_bigendian=no
9690 else
9691   ac_cv_c_bigendian=yes
9692 fi
9693 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9694   conftest.$ac_objext conftest.beam conftest.$ac_ext
9695 fi
9696
9697     fi
9698 fi
9699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
9700 printf "%s\n" "$ac_cv_c_bigendian" >&6; }
9701  case $ac_cv_c_bigendian in #(
9702    yes)
9703      printf "%s\n" "#define WORDS_BIGENDIAN 1" >>confdefs.h
9704 ;; #(
9705    no)
9706       ;; #(
9707    universal)
9708
9709 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
9710
9711      ;; #(
9712    *)
9713      as_fn_error $? "unknown endianness
9714  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
9715  esac
9716
9717
9718
9719   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether long double and double are the same" >&5
9720 printf %s "checking whether long double and double are the same... " >&6; }
9721 if test ${gl_cv_long_double_equals_double+y}
9722 then :
9723   printf %s "(cached) " >&6
9724 else
9725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9726 /* end confdefs.h.  */
9727 #include <float.h>
9728 int
9729 main (void)
9730 {
9731 typedef int check[sizeof (long double) == sizeof (double)
9732                               && LDBL_MANT_DIG == DBL_MANT_DIG
9733                               && LDBL_MAX_EXP == DBL_MAX_EXP
9734                               && LDBL_MIN_EXP == DBL_MIN_EXP
9735                               ? 1 : -1];
9736
9737   ;
9738   return 0;
9739 }
9740 _ACEOF
9741 if ac_fn_c_try_compile "$LINENO"
9742 then :
9743   gl_cv_long_double_equals_double=yes
9744 else
9745   gl_cv_long_double_equals_double=no
9746 fi
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748
9749 fi
9750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_long_double_equals_double" >&5
9751 printf "%s\n" "$gl_cv_long_double_equals_double" >&6; }
9752   if test $gl_cv_long_double_equals_double = yes; then
9753
9754 printf "%s\n" "#define HAVE_SAME_LONG_DOUBLE_AS_DOUBLE 1" >>confdefs.h
9755
9756     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=1
9757   else
9758     HAVE_SAME_LONG_DOUBLE_AS_DOUBLE=0
9759   fi
9760
9761
9762
9763
9764
9765
9766
9767          if test -n "$gl_printf_safe"; then
9768
9769 printf "%s\n" "#define CHECK_PRINTF_SAFE 1" >>confdefs.h
9770
9771   fi
9772   case "$gl_cv_func_printf_long_double" in
9773     *yes)
9774       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports infinite 'long double' arguments" >&5
9775 printf %s "checking whether printf supports infinite 'long double' arguments... " >&6; }
9776 if test ${gl_cv_func_printf_infinite_long_double+y}
9777 then :
9778   printf %s "(cached) " >&6
9779 else
9780
9781           if test "$cross_compiling" = yes
9782 then :
9783   case "$host_cpu" in
9784                                      # Guess no on ia64, x86_64, i386.
9785                ia64 | x86_64 | i*86) gl_cv_func_printf_infinite_long_double="guessing no";;
9786                *)
9787                  case "$host_os" in
9788                                          # Guess yes on glibc systems.
9789                    *-gnu* | gnu*)        gl_cv_func_printf_infinite_long_double="guessing yes";;
9790                                          # Guess yes on FreeBSD >= 6.
9791                    freebsd[1-5].*)       gl_cv_func_printf_infinite_long_double="guessing no";;
9792                    freebsd* | kfreebsd*) gl_cv_func_printf_infinite_long_double="guessing yes";;
9793                                          # Guess yes on HP-UX >= 11.
9794                    hpux[7-9]* | hpux10*) gl_cv_func_printf_infinite_long_double="guessing no";;
9795                    hpux*)                gl_cv_func_printf_infinite_long_double="guessing yes";;
9796                                          # Guess yes on MSVC, no on mingw.
9797                    mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9798 /* end confdefs.h.  */
9799
9800 #ifdef _MSC_VER
9801  Known
9802 #endif
9803
9804 _ACEOF
9805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9806   $EGREP "Known" >/dev/null 2>&1
9807 then :
9808   gl_cv_func_printf_infinite_long_double="guessing yes"
9809 else
9810   gl_cv_func_printf_infinite_long_double="guessing no"
9811 fi
9812 rm -rf conftest*
9813
9814                                          ;;
9815                                          # If we don't know, assume the worst.
9816                    *)                    gl_cv_func_printf_infinite_long_double="guessing no";;
9817                  esac
9818                  ;;
9819              esac
9820
9821 else
9822   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9823 /* end confdefs.h.  */
9824
9825
9826 #include <stdlib.h>
9827 #if defined __MACH__ && defined __APPLE__
9828 /* Avoid a crash on Mac OS X.  */
9829 #include <mach/mach.h>
9830 #include <mach/mach_error.h>
9831 #include <mach/thread_status.h>
9832 #include <mach/exception.h>
9833 #include <mach/task.h>
9834 #include <pthread.h>
9835 /* The exception port on which our thread listens.  */
9836 static mach_port_t our_exception_port;
9837 /* The main function of the thread listening for exceptions of type
9838    EXC_BAD_ACCESS.  */
9839 static void *
9840 mach_exception_thread (void *arg)
9841 {
9842   /* Buffer for a message to be received.  */
9843   struct {
9844     mach_msg_header_t head;
9845     mach_msg_body_t msgh_body;
9846     char data[1024];
9847   } msg;
9848   mach_msg_return_t retval;
9849   /* Wait for a message on the exception port.  */
9850   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
9851                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
9852   if (retval != MACH_MSG_SUCCESS)
9853     abort ();
9854   exit (1);
9855 }
9856 static void
9857 nocrash_init (void)
9858 {
9859   mach_port_t self = mach_task_self ();
9860   /* Allocate a port on which the thread shall listen for exceptions.  */
9861   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
9862       == KERN_SUCCESS) {
9863     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
9864     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
9865                                 MACH_MSG_TYPE_MAKE_SEND)
9866         == KERN_SUCCESS) {
9867       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
9868          for us.  */
9869       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
9870       /* Create the thread listening on the exception port.  */
9871       pthread_attr_t attr;
9872       pthread_t thread;
9873       if (pthread_attr_init (&attr) == 0
9874           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
9875           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
9876         pthread_attr_destroy (&attr);
9877         /* Replace the exception port info for these exceptions with our own.
9878            Note that we replace the exception port for the entire task, not only
9879            for a particular thread.  This has the effect that when our exception
9880            port gets the message, the thread specific exception port has already
9881            been asked, and we don't need to bother about it.
9882            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
9883         task_set_exception_ports (self, mask, our_exception_port,
9884                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
9885       }
9886     }
9887   }
9888 }
9889 #elif defined _WIN32 && ! defined __CYGWIN__
9890 /* Avoid a crash on native Windows.  */
9891 #define WIN32_LEAN_AND_MEAN
9892 #include <windows.h>
9893 #include <winerror.h>
9894 static LONG WINAPI
9895 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
9896 {
9897   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
9898     {
9899     case EXCEPTION_ACCESS_VIOLATION:
9900     case EXCEPTION_IN_PAGE_ERROR:
9901     case EXCEPTION_STACK_OVERFLOW:
9902     case EXCEPTION_GUARD_PAGE:
9903     case EXCEPTION_PRIV_INSTRUCTION:
9904     case EXCEPTION_ILLEGAL_INSTRUCTION:
9905     case EXCEPTION_DATATYPE_MISALIGNMENT:
9906     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
9907     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
9908       exit (1);
9909     }
9910   return EXCEPTION_CONTINUE_SEARCH;
9911 }
9912 static void
9913 nocrash_init (void)
9914 {
9915   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
9916 }
9917 #else
9918 /* Avoid a crash on POSIX systems.  */
9919 #include <signal.h>
9920 #include <unistd.h>
9921 /* A POSIX signal handler.  */
9922 static void
9923 exception_handler (int sig)
9924 {
9925   _exit (1);
9926 }
9927 static void
9928 nocrash_init (void)
9929 {
9930 #ifdef SIGSEGV
9931   signal (SIGSEGV, exception_handler);
9932 #endif
9933 #ifdef SIGBUS
9934   signal (SIGBUS, exception_handler);
9935 #endif
9936 }
9937 #endif
9938
9939 #include <float.h>
9940 #include <stdio.h>
9941 #include <string.h>
9942 static int
9943 strisnan (const char *string, size_t start_index, size_t end_index)
9944 {
9945   if (start_index < end_index)
9946     {
9947       if (string[start_index] == '-')
9948         start_index++;
9949       if (start_index + 3 <= end_index
9950           && memcmp (string + start_index, "nan", 3) == 0)
9951         {
9952           start_index += 3;
9953           if (start_index == end_index
9954               || (string[start_index] == '(' && string[end_index - 1] == ')'))
9955             return 1;
9956         }
9957     }
9958   return 0;
9959 }
9960 static char buf[10000];
9961 static long double zeroL = 0.0L;
9962 int main ()
9963 {
9964   int result = 0;
9965   nocrash_init();
9966   if (sprintf (buf, "%Lf", 1.0L / zeroL) < 0
9967       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
9968     result |= 1;
9969   if (sprintf (buf, "%Lf", -1.0L / zeroL) < 0
9970       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
9971     result |= 1;
9972   if (sprintf (buf, "%Lf", zeroL / zeroL) < 0
9973       || !strisnan (buf, 0, strlen (buf)))
9974     result |= 1;
9975   if (sprintf (buf, "%Le", 1.0L / zeroL) < 0
9976       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
9977     result |= 1;
9978   if (sprintf (buf, "%Le", -1.0L / zeroL) < 0
9979       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
9980     result |= 1;
9981   if (sprintf (buf, "%Le", zeroL / zeroL) < 0
9982       || !strisnan (buf, 0, strlen (buf)))
9983     result |= 1;
9984   if (sprintf (buf, "%Lg", 1.0L / zeroL) < 0
9985       || (strcmp (buf, "inf") != 0 && strcmp (buf, "infinity") != 0))
9986     result |= 1;
9987   if (sprintf (buf, "%Lg", -1.0L / zeroL) < 0
9988       || (strcmp (buf, "-inf") != 0 && strcmp (buf, "-infinity") != 0))
9989     result |= 1;
9990   if (sprintf (buf, "%Lg", zeroL / zeroL) < 0
9991       || !strisnan (buf, 0, strlen (buf)))
9992     result |= 1;
9993 #if CHECK_PRINTF_SAFE && ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
9994 /* Representation of an 80-bit 'long double' as an initializer for a sequence
9995    of 'unsigned int' words.  */
9996 # ifdef WORDS_BIGENDIAN
9997 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
9998      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
9999        ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
10000        (unsigned int) (mantlo) << 16                                        \
10001      }
10002 # else
10003 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
10004      { mantlo, manthi, exponent }
10005 # endif
10006   { /* Quiet NaN.  */
10007     static union { unsigned int word[4]; long double value; } x =
10008       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
10009     if (sprintf (buf, "%Lf", x.value) < 0
10010         || !strisnan (buf, 0, strlen (buf)))
10011       result |= 2;
10012     if (sprintf (buf, "%Le", x.value) < 0
10013         || !strisnan (buf, 0, strlen (buf)))
10014       result |= 2;
10015     if (sprintf (buf, "%Lg", x.value) < 0
10016         || !strisnan (buf, 0, strlen (buf)))
10017       result |= 2;
10018   }
10019   {
10020     /* Signalling NaN.  */
10021     static union { unsigned int word[4]; long double value; } x =
10022       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
10023     if (sprintf (buf, "%Lf", x.value) < 0
10024         || !strisnan (buf, 0, strlen (buf)))
10025       result |= 2;
10026     if (sprintf (buf, "%Le", x.value) < 0
10027         || !strisnan (buf, 0, strlen (buf)))
10028       result |= 2;
10029     if (sprintf (buf, "%Lg", x.value) < 0
10030         || !strisnan (buf, 0, strlen (buf)))
10031       result |= 2;
10032   }
10033   { /* Pseudo-NaN.  */
10034     static union { unsigned int word[4]; long double value; } x =
10035       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
10036     if (sprintf (buf, "%Lf", x.value) <= 0)
10037       result |= 4;
10038     if (sprintf (buf, "%Le", x.value) <= 0)
10039       result |= 4;
10040     if (sprintf (buf, "%Lg", x.value) <= 0)
10041       result |= 4;
10042   }
10043   { /* Pseudo-Infinity.  */
10044     static union { unsigned int word[4]; long double value; } x =
10045       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
10046     if (sprintf (buf, "%Lf", x.value) <= 0)
10047       result |= 8;
10048     if (sprintf (buf, "%Le", x.value) <= 0)
10049       result |= 8;
10050     if (sprintf (buf, "%Lg", x.value) <= 0)
10051       result |= 8;
10052   }
10053   { /* Pseudo-Zero.  */
10054     static union { unsigned int word[4]; long double value; } x =
10055       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
10056     if (sprintf (buf, "%Lf", x.value) <= 0)
10057       result |= 16;
10058     if (sprintf (buf, "%Le", x.value) <= 0)
10059       result |= 16;
10060     if (sprintf (buf, "%Lg", x.value) <= 0)
10061       result |= 16;
10062   }
10063   { /* Unnormalized number.  */
10064     static union { unsigned int word[4]; long double value; } x =
10065       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
10066     if (sprintf (buf, "%Lf", x.value) <= 0)
10067       result |= 32;
10068     if (sprintf (buf, "%Le", x.value) <= 0)
10069       result |= 32;
10070     if (sprintf (buf, "%Lg", x.value) <= 0)
10071       result |= 32;
10072   }
10073   { /* Pseudo-Denormal.  */
10074     static union { unsigned int word[4]; long double value; } x =
10075       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
10076     if (sprintf (buf, "%Lf", x.value) <= 0)
10077       result |= 64;
10078     if (sprintf (buf, "%Le", x.value) <= 0)
10079       result |= 64;
10080     if (sprintf (buf, "%Lg", x.value) <= 0)
10081       result |= 64;
10082   }
10083 #endif
10084   return result;
10085 }
10086 _ACEOF
10087 if ac_fn_c_try_run "$LINENO"
10088 then :
10089   gl_cv_func_printf_infinite_long_double=yes
10090 else
10091   gl_cv_func_printf_infinite_long_double=no
10092 fi
10093 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10094   conftest.$ac_objext conftest.beam conftest.$ac_ext
10095 fi
10096
10097
10098 fi
10099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_infinite_long_double" >&5
10100 printf "%s\n" "$gl_cv_func_printf_infinite_long_double" >&6; }
10101       ;;
10102     *)
10103       gl_cv_func_printf_infinite_long_double="irrelevant"
10104       ;;
10105   esac
10106
10107
10108
10109      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'a' and 'A' directives" >&5
10110 printf %s "checking whether printf supports the 'a' and 'A' directives... " >&6; }
10111 if test ${gl_cv_func_printf_directive_a+y}
10112 then :
10113   printf %s "(cached) " >&6
10114 else
10115
10116       if test "$cross_compiling" = yes
10117 then :
10118
10119          case "$host_os" in
10120                                  # Guess yes on glibc >= 2.5 systems.
10121            *-gnu* | gnu*)
10122              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10123 /* end confdefs.h.  */
10124
10125                #include <features.h>
10126                #ifdef __GNU_LIBRARY__
10127                 #if ((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 5) || (__GLIBC__ > 2)) && !defined __UCLIBC__
10128                  BZ2908
10129                 #endif
10130                #endif
10131
10132 _ACEOF
10133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10134   $EGREP "BZ2908" >/dev/null 2>&1
10135 then :
10136   gl_cv_func_printf_directive_a="guessing yes"
10137 else
10138   gl_cv_func_printf_directive_a="guessing no"
10139 fi
10140 rm -rf conftest*
10141
10142              ;;
10143                                  # Guess no on native Windows.
10144            mingw*)               gl_cv_func_printf_directive_a="guessing no";;
10145                                  # If we don't know, assume the worst.
10146            *)                    gl_cv_func_printf_directive_a="guessing no";;
10147          esac
10148
10149 else
10150   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10151 /* end confdefs.h.  */
10152
10153 #include <stdio.h>
10154 #include <string.h>
10155 static char buf[100];
10156 static double zero = 0.0;
10157 int main ()
10158 {
10159   int result = 0;
10160   if (sprintf (buf, "%a %d", 3.1416015625, 33, 44, 55) < 0
10161       || (strcmp (buf, "0x1.922p+1 33") != 0
10162           && strcmp (buf, "0x3.244p+0 33") != 0
10163           && strcmp (buf, "0x6.488p-1 33") != 0
10164           && strcmp (buf, "0xc.91p-2 33") != 0))
10165     result |= 1;
10166   if (sprintf (buf, "%A %d", -3.1416015625, 33, 44, 55) < 0
10167       || (strcmp (buf, "-0X1.922P+1 33") != 0
10168           && strcmp (buf, "-0X3.244P+0 33") != 0
10169           && strcmp (buf, "-0X6.488P-1 33") != 0
10170           && strcmp (buf, "-0XC.91P-2 33") != 0))
10171     result |= 2;
10172   /* This catches a FreeBSD 6.1 bug: it doesn't round.  */
10173   if (sprintf (buf, "%.2a %d", 1.51, 33, 44, 55) < 0
10174       || (strcmp (buf, "0x1.83p+0 33") != 0
10175           && strcmp (buf, "0x3.05p-1 33") != 0
10176           && strcmp (buf, "0x6.0ap-2 33") != 0
10177           && strcmp (buf, "0xc.14p-3 33") != 0))
10178     result |= 4;
10179   /* This catches a Mac OS X 10.12.4 (Darwin 16.5) bug: it doesn't round.  */
10180   if (sprintf (buf, "%.0a %d", 1.51, 33, 44, 55) < 0
10181       || (strcmp (buf, "0x2p+0 33") != 0
10182           && strcmp (buf, "0x3p-1 33") != 0
10183           && strcmp (buf, "0x6p-2 33") != 0
10184           && strcmp (buf, "0xcp-3 33") != 0))
10185     result |= 4;
10186   /* This catches a FreeBSD 6.1 bug.  See
10187      <https://lists.gnu.org/r/bug-gnulib/2007-04/msg00107.html> */
10188   if (sprintf (buf, "%010a %d", 1.0 / zero, 33, 44, 55) < 0
10189       || buf[0] == '0')
10190     result |= 8;
10191   /* This catches a Mac OS X 10.3.9 (Darwin 7.9) bug.  */
10192   if (sprintf (buf, "%.1a", 1.999) < 0
10193       || (strcmp (buf, "0x1.0p+1") != 0
10194           && strcmp (buf, "0x2.0p+0") != 0
10195           && strcmp (buf, "0x4.0p-1") != 0
10196           && strcmp (buf, "0x8.0p-2") != 0))
10197     result |= 16;
10198   /* This catches the same Mac OS X 10.3.9 (Darwin 7.9) bug and also a
10199      glibc 2.4 bug <https://sourceware.org/bugzilla/show_bug.cgi?id=2908>.  */
10200   if (sprintf (buf, "%.1La", 1.999L) < 0
10201       || (strcmp (buf, "0x1.0p+1") != 0
10202           && strcmp (buf, "0x2.0p+0") != 0
10203           && strcmp (buf, "0x4.0p-1") != 0
10204           && strcmp (buf, "0x8.0p-2") != 0))
10205     result |= 32;
10206   return result;
10207 }
10208 _ACEOF
10209 if ac_fn_c_try_run "$LINENO"
10210 then :
10211   gl_cv_func_printf_directive_a=yes
10212 else
10213   gl_cv_func_printf_directive_a=no
10214 fi
10215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10216   conftest.$ac_objext conftest.beam conftest.$ac_ext
10217 fi
10218
10219
10220 fi
10221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_a" >&5
10222 printf "%s\n" "$gl_cv_func_printf_directive_a" >&6; }
10223
10224
10225
10226      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'F' directive" >&5
10227 printf %s "checking whether printf supports the 'F' directive... " >&6; }
10228 if test ${gl_cv_func_printf_directive_f+y}
10229 then :
10230   printf %s "(cached) " >&6
10231 else
10232
10233       if test "$cross_compiling" = yes
10234 then :
10235
10236          case "$host_os" in
10237                                  # Guess yes on glibc systems.
10238            *-gnu* | gnu*)        gl_cv_func_printf_directive_f="guessing yes";;
10239                                  # Guess yes on FreeBSD >= 6.
10240            freebsd[1-5].*)       gl_cv_func_printf_directive_f="guessing no";;
10241            freebsd* | kfreebsd*) gl_cv_func_printf_directive_f="guessing yes";;
10242                                  # Guess yes on Mac OS X >= 10.3.
10243            darwin[1-6].*)        gl_cv_func_printf_directive_f="guessing no";;
10244            darwin*)              gl_cv_func_printf_directive_f="guessing yes";;
10245                                  # Guess yes on Solaris >= 2.10.
10246            solaris2.[1-9][0-9]*) gl_cv_func_printf_directive_f="guessing yes";;
10247            solaris*)             gl_cv_func_printf_directive_f="guessing no";;
10248                                  # Guess yes on MSVC, no on mingw.
10249            mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10250 /* end confdefs.h.  */
10251
10252 #ifdef _MSC_VER
10253  Known
10254 #endif
10255
10256 _ACEOF
10257 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10258   $EGREP "Known" >/dev/null 2>&1
10259 then :
10260   gl_cv_func_printf_directive_f="guessing yes"
10261 else
10262   gl_cv_func_printf_directive_f="guessing no"
10263 fi
10264 rm -rf conftest*
10265
10266                                  ;;
10267                                  # If we don't know, assume the worst.
10268            *)                    gl_cv_func_printf_directive_f="guessing no";;
10269          esac
10270
10271 else
10272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10273 /* end confdefs.h.  */
10274
10275 #include <stdio.h>
10276 #include <string.h>
10277 static char buf[100];
10278 static double zero = 0.0;
10279 int main ()
10280 {
10281   int result = 0;
10282   if (sprintf (buf, "%F %d", 1234567.0, 33, 44, 55) < 0
10283       || strcmp (buf, "1234567.000000 33") != 0)
10284     result |= 1;
10285   if (sprintf (buf, "%F", 1.0 / zero) < 0
10286       || (strcmp (buf, "INF") != 0 && strcmp (buf, "INFINITY") != 0))
10287     result |= 2;
10288   /* This catches a Cygwin 1.5.x bug.  */
10289   if (sprintf (buf, "%.F", 1234.0) < 0
10290       || strcmp (buf, "1234") != 0)
10291     result |= 4;
10292   return result;
10293 }
10294 _ACEOF
10295 if ac_fn_c_try_run "$LINENO"
10296 then :
10297   gl_cv_func_printf_directive_f=yes
10298 else
10299   gl_cv_func_printf_directive_f=no
10300 fi
10301 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10302   conftest.$ac_objext conftest.beam conftest.$ac_ext
10303 fi
10304
10305
10306 fi
10307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_f" >&5
10308 printf "%s\n" "$gl_cv_func_printf_directive_f" >&6; }
10309
10310
10311
10312      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'n' directive" >&5
10313 printf %s "checking whether printf supports the 'n' directive... " >&6; }
10314 if test ${gl_cv_func_printf_directive_n+y}
10315 then :
10316   printf %s "(cached) " >&6
10317 else
10318
10319       if test "$cross_compiling" = yes
10320 then :
10321   case "$host_os" in
10322                    # Guess no on native Windows.
10323            mingw*) gl_cv_func_printf_directive_n="guessing no";;
10324            *)      gl_cv_func_printf_directive_n="guessing yes";;
10325          esac
10326
10327 else
10328   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329 /* end confdefs.h.  */
10330
10331 #include <stdio.h>
10332 #include <stdlib.h>
10333 #include <string.h>
10334 #ifdef _MSC_VER
10335 /* See page about "Parameter Validation" on msdn.microsoft.com.  */
10336 static void cdecl
10337 invalid_parameter_handler (const wchar_t *expression,
10338                            const wchar_t *function,
10339                            const wchar_t *file, unsigned int line,
10340                            uintptr_t dummy)
10341 {
10342   exit (1);
10343 }
10344 #endif
10345 static char fmtstring[10];
10346 static char buf[100];
10347 int main ()
10348 {
10349   int count = -1;
10350 #ifdef _MSC_VER
10351   _set_invalid_parameter_handler (invalid_parameter_handler);
10352 #endif
10353   /* Copy the format string.  Some systems (glibc with _FORTIFY_SOURCE=2)
10354      support %n in format strings in read-only memory but not in writable
10355      memory.  */
10356   strcpy (fmtstring, "%d %n");
10357   if (sprintf (buf, fmtstring, 123, &count, 33, 44, 55) < 0
10358       || strcmp (buf, "123 ") != 0
10359       || count != 4)
10360     return 1;
10361   return 0;
10362 }
10363 _ACEOF
10364 if ac_fn_c_try_run "$LINENO"
10365 then :
10366   gl_cv_func_printf_directive_n=yes
10367 else
10368   gl_cv_func_printf_directive_n=no
10369 fi
10370 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10371   conftest.$ac_objext conftest.beam conftest.$ac_ext
10372 fi
10373
10374
10375 fi
10376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_n" >&5
10377 printf "%s\n" "$gl_cv_func_printf_directive_n" >&6; }
10378
10379
10380
10381      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the 'ls' directive" >&5
10382 printf %s "checking whether printf supports the 'ls' directive... " >&6; }
10383 if test ${gl_cv_func_printf_directive_ls+y}
10384 then :
10385   printf %s "(cached) " >&6
10386 else
10387
10388       if test "$cross_compiling" = yes
10389 then :
10390
10391          case "$host_os" in
10392            openbsd*)       gl_cv_func_printf_directive_ls="guessing no";;
10393            irix*)          gl_cv_func_printf_directive_ls="guessing no";;
10394            solaris*)       gl_cv_func_printf_directive_ls="guessing no";;
10395            cygwin*)        gl_cv_func_printf_directive_ls="guessing no";;
10396            beos* | haiku*) gl_cv_func_printf_directive_ls="guessing no";;
10397                            # Guess yes on native Windows.
10398            mingw*)         gl_cv_func_printf_directive_ls="guessing yes";;
10399            *)              gl_cv_func_printf_directive_ls="guessing yes";;
10400          esac
10401
10402 else
10403   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10404 /* end confdefs.h.  */
10405
10406 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
10407    <wchar.h>.
10408    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
10409    included before <wchar.h>.  */
10410 #include <stddef.h>
10411 #include <stdio.h>
10412 #include <time.h>
10413 #include <wchar.h>
10414 #include <string.h>
10415 int main ()
10416 {
10417   int result = 0;
10418   char buf[100];
10419   /* Test whether %ls works at all.
10420      This test fails on OpenBSD 4.0, IRIX 6.5, Solaris 2.6, Haiku, but not on
10421      Cygwin 1.5.  */
10422   {
10423     static const wchar_t wstring[] = { 'a', 'b', 'c', 0 };
10424     buf[0] = '\0';
10425     if (sprintf (buf, "%ls", wstring) < 0
10426         || strcmp (buf, "abc") != 0)
10427       result |= 1;
10428   }
10429   /* This test fails on IRIX 6.5, Solaris 2.6, Cygwin 1.5, Haiku (with an
10430      assertion failure inside libc), but not on OpenBSD 4.0.  */
10431   {
10432     static const wchar_t wstring[] = { 'a', 0 };
10433     buf[0] = '\0';
10434     if (sprintf (buf, "%ls", wstring) < 0
10435         || strcmp (buf, "a") != 0)
10436       result |= 2;
10437   }
10438   /* Test whether precisions in %ls are supported as specified in ISO C 99
10439      section 7.19.6.1:
10440        "If a precision is specified, no more than that many bytes are written
10441         (including shift sequences, if any), and the array shall contain a
10442         null wide character if, to equal the multibyte character sequence
10443         length given by the precision, the function would need to access a
10444         wide character one past the end of the array."
10445      This test fails on Solaris 10.  */
10446   {
10447     static const wchar_t wstring[] = { 'a', 'b', (wchar_t) 0xfdfdfdfd, 0 };
10448     buf[0] = '\0';
10449     if (sprintf (buf, "%.2ls", wstring) < 0
10450         || strcmp (buf, "ab") != 0)
10451       result |= 8;
10452   }
10453   return result;
10454 }
10455 _ACEOF
10456 if ac_fn_c_try_run "$LINENO"
10457 then :
10458   gl_cv_func_printf_directive_ls=yes
10459 else
10460   gl_cv_func_printf_directive_ls=no
10461 fi
10462 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10463   conftest.$ac_objext conftest.beam conftest.$ac_ext
10464 fi
10465
10466
10467 fi
10468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_directive_ls" >&5
10469 printf "%s\n" "$gl_cv_func_printf_directive_ls" >&6; }
10470
10471
10472
10473      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
10474 printf %s "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
10475 if test ${gl_cv_func_printf_positions+y}
10476 then :
10477   printf %s "(cached) " >&6
10478 else
10479
10480       if test "$cross_compiling" = yes
10481 then :
10482
10483          case "$host_os" in
10484            netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
10485                          gl_cv_func_printf_positions="guessing no";;
10486            beos*)        gl_cv_func_printf_positions="guessing no";;
10487                          # Guess no on native Windows.
10488            mingw* | pw*) gl_cv_func_printf_positions="guessing no";;
10489            *)            gl_cv_func_printf_positions="guessing yes";;
10490          esac
10491
10492 else
10493   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10494 /* end confdefs.h.  */
10495
10496 #include <stdio.h>
10497 #include <string.h>
10498 /* The string "%2$d %1$d", with dollar characters protected from the shell's
10499    dollar expansion (possibly an autoconf bug).  */
10500 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
10501 static char buf[100];
10502 int main ()
10503 {
10504   sprintf (buf, format, 33, 55);
10505   return (strcmp (buf, "55 33") != 0);
10506 }
10507 _ACEOF
10508 if ac_fn_c_try_run "$LINENO"
10509 then :
10510   gl_cv_func_printf_positions=yes
10511 else
10512   gl_cv_func_printf_positions=no
10513 fi
10514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10515   conftest.$ac_objext conftest.beam conftest.$ac_ext
10516 fi
10517
10518
10519 fi
10520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
10521 printf "%s\n" "$gl_cv_func_printf_positions" >&6; }
10522
10523
10524
10525      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the grouping flag" >&5
10526 printf %s "checking whether printf supports the grouping flag... " >&6; }
10527 if test ${gl_cv_func_printf_flag_grouping+y}
10528 then :
10529   printf %s "(cached) " >&6
10530 else
10531
10532       if test "$cross_compiling" = yes
10533 then :
10534
10535          case "$host_os" in
10536            cygwin*)      gl_cv_func_printf_flag_grouping="guessing no";;
10537            netbsd*)      gl_cv_func_printf_flag_grouping="guessing no";;
10538                          # Guess no on native Windows.
10539            mingw* | pw*) gl_cv_func_printf_flag_grouping="guessing no";;
10540            *)            gl_cv_func_printf_flag_grouping="guessing yes";;
10541          esac
10542
10543 else
10544   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10545 /* end confdefs.h.  */
10546
10547 #include <stdio.h>
10548 #include <string.h>
10549 static char buf[100];
10550 int main ()
10551 {
10552   if (sprintf (buf, "%'d %d", 1234567, 99) < 0
10553       || buf[strlen (buf) - 1] != '9')
10554     return 1;
10555   return 0;
10556 }
10557 _ACEOF
10558 if ac_fn_c_try_run "$LINENO"
10559 then :
10560   gl_cv_func_printf_flag_grouping=yes
10561 else
10562   gl_cv_func_printf_flag_grouping=no
10563 fi
10564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10565   conftest.$ac_objext conftest.beam conftest.$ac_ext
10566 fi
10567
10568
10569 fi
10570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_grouping" >&5
10571 printf "%s\n" "$gl_cv_func_printf_flag_grouping" >&6; }
10572
10573
10574
10575      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the left-adjust flag correctly" >&5
10576 printf %s "checking whether printf supports the left-adjust flag correctly... " >&6; }
10577 if test ${gl_cv_func_printf_flag_leftadjust+y}
10578 then :
10579   printf %s "(cached) " >&6
10580 else
10581
10582       if test "$cross_compiling" = yes
10583 then :
10584
10585          case "$host_os" in
10586                     # Guess yes on HP-UX 11.
10587            hpux11*) gl_cv_func_printf_flag_leftadjust="guessing yes";;
10588                     # Guess no on HP-UX 10 and older.
10589            hpux*)   gl_cv_func_printf_flag_leftadjust="guessing no";;
10590                     # Guess yes on native Windows.
10591            mingw*)  gl_cv_func_printf_flag_leftadjust="guessing yes";;
10592                     # Guess yes otherwise.
10593            *)       gl_cv_func_printf_flag_leftadjust="guessing yes";;
10594          esac
10595
10596 else
10597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10598 /* end confdefs.h.  */
10599
10600 #include <stdio.h>
10601 #include <string.h>
10602 static char buf[100];
10603 int main ()
10604 {
10605   /* Check that a '-' flag is not annihilated by a negative width.  */
10606   if (sprintf (buf, "a%-*sc", -3, "b") < 0
10607       || strcmp (buf, "ab  c") != 0)
10608     return 1;
10609   return 0;
10610 }
10611 _ACEOF
10612 if ac_fn_c_try_run "$LINENO"
10613 then :
10614   gl_cv_func_printf_flag_leftadjust=yes
10615 else
10616   gl_cv_func_printf_flag_leftadjust=no
10617 fi
10618 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10619   conftest.$ac_objext conftest.beam conftest.$ac_ext
10620 fi
10621
10622
10623 fi
10624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_leftadjust" >&5
10625 printf "%s\n" "$gl_cv_func_printf_flag_leftadjust" >&6; }
10626
10627
10628
10629      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the zero flag correctly" >&5
10630 printf %s "checking whether printf supports the zero flag correctly... " >&6; }
10631 if test ${gl_cv_func_printf_flag_zero+y}
10632 then :
10633   printf %s "(cached) " >&6
10634 else
10635
10636       if test "$cross_compiling" = yes
10637 then :
10638
10639          case "$host_os" in
10640                           # Guess yes on glibc systems.
10641            *-gnu* | gnu*) gl_cv_func_printf_flag_zero="guessing yes";;
10642                           # Guess yes on BeOS.
10643            beos*)         gl_cv_func_printf_flag_zero="guessing yes";;
10644                           # Guess no on native Windows.
10645            mingw*)        gl_cv_func_printf_flag_zero="guessing no";;
10646                           # If we don't know, assume the worst.
10647            *)             gl_cv_func_printf_flag_zero="guessing no";;
10648          esac
10649
10650 else
10651   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10652 /* end confdefs.h.  */
10653
10654 #include <stdio.h>
10655 #include <string.h>
10656 static char buf[100];
10657 static double zero = 0.0;
10658 int main ()
10659 {
10660   if (sprintf (buf, "%010f", 1.0 / zero, 33, 44, 55) < 0
10661       || (strcmp (buf, "       inf") != 0
10662           && strcmp (buf, "  infinity") != 0))
10663     return 1;
10664   return 0;
10665 }
10666 _ACEOF
10667 if ac_fn_c_try_run "$LINENO"
10668 then :
10669   gl_cv_func_printf_flag_zero=yes
10670 else
10671   gl_cv_func_printf_flag_zero=no
10672 fi
10673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10674   conftest.$ac_objext conftest.beam conftest.$ac_ext
10675 fi
10676
10677
10678 fi
10679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_flag_zero" >&5
10680 printf "%s\n" "$gl_cv_func_printf_flag_zero" >&6; }
10681
10682
10683
10684      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports large precisions" >&5
10685 printf %s "checking whether printf supports large precisions... " >&6; }
10686 if test ${gl_cv_func_printf_precision+y}
10687 then :
10688   printf %s "(cached) " >&6
10689 else
10690
10691       if test "$cross_compiling" = yes
10692 then :
10693
10694          case "$host_os" in
10695            # Guess no only on Solaris, native Windows, and BeOS systems.
10696            solaris*)     gl_cv_func_printf_precision="guessing no" ;;
10697            mingw* | pw*) gl_cv_func_printf_precision="guessing no" ;;
10698            beos*)        gl_cv_func_printf_precision="guessing no" ;;
10699            *)            gl_cv_func_printf_precision="guessing yes" ;;
10700          esac
10701
10702 else
10703   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10704 /* end confdefs.h.  */
10705
10706 #include <stdio.h>
10707 #include <string.h>
10708 static char buf[5000];
10709 int main ()
10710 {
10711   int result = 0;
10712 #ifdef __BEOS__
10713   /* On BeOS, this would crash and show a dialog box.  Avoid the crash.  */
10714   return 1;
10715 #endif
10716   if (sprintf (buf, "%.4000d %d", 1, 33, 44) < 4000 + 3)
10717     result |= 1;
10718   if (sprintf (buf, "%.4000f %d", 1.0, 33, 44) < 4000 + 5)
10719     result |= 2;
10720   if (sprintf (buf, "%.511f %d", 1.0, 33, 44) < 511 + 5
10721       || buf[0] != '1')
10722     result |= 4;
10723   if (sprintf (buf, "%.999f %d", 1.0, 33, 44) < 999 + 5
10724       || buf[0] != '1')
10725     result |= 4;
10726   return result;
10727 }
10728 _ACEOF
10729 if ac_fn_c_try_run "$LINENO"
10730 then :
10731   gl_cv_func_printf_precision=yes
10732 else
10733   gl_cv_func_printf_precision=no
10734 fi
10735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10736   conftest.$ac_objext conftest.beam conftest.$ac_ext
10737 fi
10738
10739
10740 fi
10741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_precision" >&5
10742 printf "%s\n" "$gl_cv_func_printf_precision" >&6; }
10743
10744
10745     gl_cv_c_multiarch=no
10746   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10747 /* end confdefs.h.  */
10748 #ifndef __APPLE_CC__
10749          not a universal capable compiler
10750         #endif
10751         typedef int dummy;
10752
10753 _ACEOF
10754 if ac_fn_c_try_compile "$LINENO"
10755 then :
10756
10757                arch=
10758      prev=
10759      for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10760        if test -n "$prev"; then
10761          case $word in
10762            i?86 | x86_64 | ppc | ppc64)
10763              if test -z "$arch" || test "$arch" = "$word"; then
10764                arch="$word"
10765              else
10766                gl_cv_c_multiarch=yes
10767              fi
10768              ;;
10769          esac
10770          prev=
10771        else
10772          if test "x$word" = "x-arch"; then
10773            prev=arch
10774          fi
10775        fi
10776      done
10777
10778 fi
10779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780   if test $gl_cv_c_multiarch = yes; then
10781     APPLE_UNIVERSAL_BUILD=1
10782   else
10783     APPLE_UNIVERSAL_BUILD=0
10784   fi
10785
10786
10787
10788
10789
10790      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf survives out-of-memory conditions" >&5
10791 printf %s "checking whether printf survives out-of-memory conditions... " >&6; }
10792 if test ${gl_cv_func_printf_enomem+y}
10793 then :
10794   printf %s "(cached) " >&6
10795 else
10796
10797       gl_cv_func_printf_enomem="guessing no"
10798       if test "$cross_compiling" = no; then
10799         if test $APPLE_UNIVERSAL_BUILD = 0; then
10800           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10801 /* end confdefs.h.  */
10802
10803
10804 #include <stdlib.h>
10805 #if defined __MACH__ && defined __APPLE__
10806 /* Avoid a crash on Mac OS X.  */
10807 #include <mach/mach.h>
10808 #include <mach/mach_error.h>
10809 #include <mach/thread_status.h>
10810 #include <mach/exception.h>
10811 #include <mach/task.h>
10812 #include <pthread.h>
10813 /* The exception port on which our thread listens.  */
10814 static mach_port_t our_exception_port;
10815 /* The main function of the thread listening for exceptions of type
10816    EXC_BAD_ACCESS.  */
10817 static void *
10818 mach_exception_thread (void *arg)
10819 {
10820   /* Buffer for a message to be received.  */
10821   struct {
10822     mach_msg_header_t head;
10823     mach_msg_body_t msgh_body;
10824     char data1024;
10825   } msg;
10826   mach_msg_return_t retval;
10827   /* Wait for a message on the exception port.  */
10828   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
10829                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
10830   if (retval != MACH_MSG_SUCCESS)
10831     abort ();
10832   exit (1);
10833 }
10834 static void
10835 nocrash_init (void)
10836 {
10837   mach_port_t self = mach_task_self ();
10838   /* Allocate a port on which the thread shall listen for exceptions.  */
10839   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
10840       == KERN_SUCCESS) {
10841     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
10842     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
10843                                 MACH_MSG_TYPE_MAKE_SEND)
10844         == KERN_SUCCESS) {
10845       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
10846          for us.  */
10847       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
10848       /* Create the thread listening on the exception port.  */
10849       pthread_attr_t attr;
10850       pthread_t thread;
10851       if (pthread_attr_init (&attr) == 0
10852           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
10853           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
10854         pthread_attr_destroy (&attr);
10855         /* Replace the exception port info for these exceptions with our own.
10856            Note that we replace the exception port for the entire task, not only
10857            for a particular thread.  This has the effect that when our exception
10858            port gets the message, the thread specific exception port has already
10859            been asked, and we don't need to bother about it.
10860            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
10861         task_set_exception_ports (self, mask, our_exception_port,
10862                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
10863       }
10864     }
10865   }
10866 }
10867 #elif defined _WIN32 && ! defined __CYGWIN__
10868 /* Avoid a crash on native Windows.  */
10869 #define WIN32_LEAN_AND_MEAN
10870 #include <windows.h>
10871 #include <winerror.h>
10872 static LONG WINAPI
10873 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
10874 {
10875   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
10876     {
10877     case EXCEPTION_ACCESS_VIOLATION:
10878     case EXCEPTION_IN_PAGE_ERROR:
10879     case EXCEPTION_STACK_OVERFLOW:
10880     case EXCEPTION_GUARD_PAGE:
10881     case EXCEPTION_PRIV_INSTRUCTION:
10882     case EXCEPTION_ILLEGAL_INSTRUCTION:
10883     case EXCEPTION_DATATYPE_MISALIGNMENT:
10884     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
10885     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
10886       exit (1);
10887     }
10888   return EXCEPTION_CONTINUE_SEARCH;
10889 }
10890 static void
10891 nocrash_init (void)
10892 {
10893   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
10894 }
10895 #else
10896 /* Avoid a crash on POSIX systems.  */
10897 #include <signal.h>
10898 #include <unistd.h>
10899 /* A POSIX signal handler.  */
10900 static void
10901 exception_handler (int sig)
10902 {
10903   _exit (1);
10904 }
10905 static void
10906 nocrash_init (void)
10907 {
10908 #ifdef SIGSEGV
10909   signal (SIGSEGV, exception_handler);
10910 #endif
10911 #ifdef SIGBUS
10912   signal (SIGBUS, exception_handler);
10913 #endif
10914 }
10915 #endif
10916
10917 #include <stdio.h>
10918 #include <sys/types.h>
10919 #include <sys/time.h>
10920 #include <sys/resource.h>
10921 #include <errno.h>
10922 int main()
10923 {
10924   struct rlimit limit;
10925   int ret;
10926   nocrash_init ();
10927   /* Some printf implementations allocate temporary space with malloc.  */
10928   /* On BSD systems, malloc() is limited by RLIMIT_DATA.  */
10929 #ifdef RLIMIT_DATA
10930   if (getrlimit (RLIMIT_DATA, &limit) < 0)
10931     return 77;
10932   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
10933     limit.rlim_max = 5000000;
10934   limit.rlim_cur = limit.rlim_max;
10935   if (setrlimit (RLIMIT_DATA, &limit) < 0)
10936     return 77;
10937 #endif
10938   /* On Linux systems, malloc() is limited by RLIMIT_AS.  */
10939 #ifdef RLIMIT_AS
10940   if (getrlimit (RLIMIT_AS, &limit) < 0)
10941     return 77;
10942   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
10943     limit.rlim_max = 5000000;
10944   limit.rlim_cur = limit.rlim_max;
10945   if (setrlimit (RLIMIT_AS, &limit) < 0)
10946     return 77;
10947 #endif
10948   /* Some printf implementations allocate temporary space on the stack.  */
10949 #ifdef RLIMIT_STACK
10950   if (getrlimit (RLIMIT_STACK, &limit) < 0)
10951     return 77;
10952   if (limit.rlim_max == RLIM_INFINITY || limit.rlim_max > 5000000)
10953     limit.rlim_max = 5000000;
10954   limit.rlim_cur = limit.rlim_max;
10955   if (setrlimit (RLIMIT_STACK, &limit) < 0)
10956     return 77;
10957 #endif
10958   ret = printf ("%.5000000f", 1.0);
10959   return !(ret == 5000002 || (ret < 0 && errno == ENOMEM));
10960 }
10961
10962 _ACEOF
10963           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10964   (eval $ac_link) 2>&5
10965   ac_status=$?
10966   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10967   test $ac_status = 0; } && test -s conftest$ac_exeext; then
10968             (./conftest 2>&5
10969              result=$?
10970              printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $result" >&5
10971              if test $result != 0 && test $result != 77; then result=1; fi
10972              exit $result
10973             ) >/dev/null 2>/dev/null
10974             case $? in
10975               0) gl_cv_func_printf_enomem="yes" ;;
10976               77) gl_cv_func_printf_enomem="guessing no" ;;
10977               *) gl_cv_func_printf_enomem="no" ;;
10978             esac
10979           else
10980             gl_cv_func_printf_enomem="guessing no"
10981           fi
10982           rm -fr conftest*
10983         else
10984                                         gl_cv_func_printf_enomem="guessing no"
10985         fi
10986       fi
10987       if test "$gl_cv_func_printf_enomem" = "guessing no"; then
10988         case "$host_os" in
10989                          # Guess yes on glibc systems.
10990           *-gnu* | gnu*) gl_cv_func_printf_enomem="guessing yes";;
10991                          # Guess yes on Solaris.
10992           solaris*)      gl_cv_func_printf_enomem="guessing yes";;
10993                          # Guess yes on AIX.
10994           aix*)          gl_cv_func_printf_enomem="guessing yes";;
10995                          # Guess yes on HP-UX/hppa.
10996           hpux*)         case "$host_cpu" in
10997                            hppa*) gl_cv_func_printf_enomem="guessing yes";;
10998                            *)     gl_cv_func_printf_enomem="guessing no";;
10999                          esac
11000                          ;;
11001                          # Guess yes on IRIX.
11002           irix*)         gl_cv_func_printf_enomem="guessing yes";;
11003                          # Guess yes on OSF/1.
11004           osf*)          gl_cv_func_printf_enomem="guessing yes";;
11005                          # Guess yes on BeOS.
11006           beos*)         gl_cv_func_printf_enomem="guessing yes";;
11007                          # Guess yes on Haiku.
11008           haiku*)        gl_cv_func_printf_enomem="guessing yes";;
11009                          # If we don't know, assume the worst.
11010           *)             gl_cv_func_printf_enomem="guessing no";;
11011         esac
11012       fi
11013
11014 fi
11015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_enomem" >&5
11016 printf "%s\n" "$gl_cv_func_printf_enomem" >&6; }
11017
11018
11019
11020   case "$gl_cv_func_printf_long_double" in
11021     *yes)
11022       ;;
11023     *)
11024
11025 printf "%s\n" "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
11026
11027       ;;
11028   esac
11029
11030
11031
11032   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
11033 printf %s "checking for unsigned long long int... " >&6; }
11034 if test ${ac_cv_type_unsigned_long_long_int+y}
11035 then :
11036   printf %s "(cached) " >&6
11037 else
11038   ac_cv_type_unsigned_long_long_int=yes
11039      if test "x${ac_cv_prog_cc_c99-no}" = xno; then
11040        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h.  */
11042
11043   /* For now, do not test the preprocessor; as of 2007 there are too many
11044          implementations with broken preprocessors.  Perhaps this can
11045          be revisited in 2012.  In the meantime, code should not expect
11046          #if to work with literals wider than 32 bits.  */
11047       /* Test literals.  */
11048       long long int ll = 9223372036854775807ll;
11049       long long int nll = -9223372036854775807LL;
11050       unsigned long long int ull = 18446744073709551615ULL;
11051       /* Test constant expressions.   */
11052       typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
11053                      ? 1 : -1)];
11054       typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
11055                      ? 1 : -1)];
11056       int i = 63;
11057 int
11058 main (void)
11059 {
11060 /* Test availability of runtime routines for shift and division.  */
11061       long long int llmax = 9223372036854775807ll;
11062       unsigned long long int ullmax = 18446744073709551615ull;
11063       return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
11064               | (llmax / ll) | (llmax % ll)
11065               | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
11066               | (ullmax / ull) | (ullmax % ull));
11067   ;
11068   return 0;
11069 }
11070
11071 _ACEOF
11072 if ac_fn_c_try_link "$LINENO"
11073 then :
11074
11075 else
11076   ac_cv_type_unsigned_long_long_int=no
11077 fi
11078 rm -f core conftest.err conftest.$ac_objext \
11079     conftest$ac_exeext conftest.$ac_ext
11080      fi
11081 fi
11082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
11083 printf "%s\n" "$ac_cv_type_unsigned_long_long_int" >&6; }
11084   if test $ac_cv_type_unsigned_long_long_int = yes; then
11085
11086 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
11087
11088   fi
11089
11090
11091
11092   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
11093 printf %s "checking for long long int... " >&6; }
11094 if test ${ac_cv_type_long_long_int+y}
11095 then :
11096   printf %s "(cached) " >&6
11097 else
11098   ac_cv_type_long_long_int=yes
11099       if test "x${ac_cv_prog_cc_c99-no}" = xno; then
11100         ac_cv_type_long_long_int=$ac_cv_type_unsigned_long_long_int
11101         if test $ac_cv_type_long_long_int = yes; then
11102                                         if test "$cross_compiling" = yes
11103 then :
11104   :
11105 else
11106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11107 /* end confdefs.h.  */
11108 #include <limits.h>
11109                  #ifndef LLONG_MAX
11110                  # define HALF \
11111                           (1LL << (sizeof (long long int) * CHAR_BIT - 2))
11112                  # define LLONG_MAX (HALF - 1 + HALF)
11113                  #endif
11114 int
11115 main (void)
11116 {
11117 long long int n = 1;
11118                  int i;
11119                  for (i = 0; ; i++)
11120                    {
11121                      long long int m = n << i;
11122                      if (m >> i != n)
11123                        return 1;
11124                      if (LLONG_MAX / 2 < m)
11125                        break;
11126                    }
11127                  return 0;
11128   ;
11129   return 0;
11130 }
11131 _ACEOF
11132 if ac_fn_c_try_run "$LINENO"
11133 then :
11134
11135 else
11136   ac_cv_type_long_long_int=no
11137 fi
11138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11139   conftest.$ac_objext conftest.beam conftest.$ac_ext
11140 fi
11141
11142         fi
11143       fi
11144 fi
11145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
11146 printf "%s\n" "$ac_cv_type_long_long_int" >&6; }
11147   if test $ac_cv_type_long_long_int = yes; then
11148
11149 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
11150
11151   fi
11152
11153
11154   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
11155 printf %s "checking for wchar_t... " >&6; }
11156 if test ${gt_cv_c_wchar_t+y}
11157 then :
11158   printf %s "(cached) " >&6
11159 else
11160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11161 /* end confdefs.h.  */
11162 #include <stddef.h>
11163             wchar_t foo = (wchar_t)'\0';
11164 int
11165 main (void)
11166 {
11167
11168   ;
11169   return 0;
11170 }
11171 _ACEOF
11172 if ac_fn_c_try_compile "$LINENO"
11173 then :
11174   gt_cv_c_wchar_t=yes
11175 else
11176   gt_cv_c_wchar_t=no
11177 fi
11178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11179 fi
11180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
11181 printf "%s\n" "$gt_cv_c_wchar_t" >&6; }
11182   if test $gt_cv_c_wchar_t = yes; then
11183
11184 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
11185
11186   fi
11187
11188
11189   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
11190 printf %s "checking for wint_t... " >&6; }
11191 if test ${gt_cv_c_wint_t+y}
11192 then :
11193   printf %s "(cached) " >&6
11194 else
11195   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h.  */
11197
11198 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11199    <wchar.h>.
11200    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included
11201    before <wchar.h>.  */
11202 #include <stddef.h>
11203 #include <stdio.h>
11204 #include <time.h>
11205 #include <wchar.h>
11206             wint_t foo = (wchar_t)'\0';
11207 int
11208 main (void)
11209 {
11210
11211   ;
11212   return 0;
11213 }
11214 _ACEOF
11215 if ac_fn_c_try_compile "$LINENO"
11216 then :
11217   gt_cv_c_wint_t=yes
11218 else
11219   gt_cv_c_wint_t=no
11220 fi
11221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11222 fi
11223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
11224 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
11225   if test $gt_cv_c_wint_t = yes; then
11226
11227 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
11228
11229
11230             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is too small" >&5
11231 printf %s "checking whether wint_t is too small... " >&6; }
11232 if test ${gl_cv_type_wint_t_too_small+y}
11233 then :
11234   printf %s "(cached) " >&6
11235 else
11236   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11237 /* end confdefs.h.  */
11238
11239 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
11240    <wchar.h>.
11241    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
11242    included before <wchar.h>.  */
11243 #if !(defined __GLIBC__ && !defined __UCLIBC__)
11244 # include <stddef.h>
11245 # include <stdio.h>
11246 # include <time.h>
11247 #endif
11248 #include <wchar.h>
11249               int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
11250
11251 int
11252 main (void)
11253 {
11254
11255   ;
11256   return 0;
11257 }
11258 _ACEOF
11259 if ac_fn_c_try_compile "$LINENO"
11260 then :
11261   gl_cv_type_wint_t_too_small=no
11262 else
11263   gl_cv_type_wint_t_too_small=yes
11264 fi
11265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11266 fi
11267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_too_small" >&5
11268 printf "%s\n" "$gl_cv_type_wint_t_too_small" >&6; }
11269     if test $gl_cv_type_wint_t_too_small = yes; then
11270       GNULIB_OVERRIDES_WINT_T=1
11271     else
11272       GNULIB_OVERRIDES_WINT_T=0
11273     fi
11274   else
11275     GNULIB_OVERRIDES_WINT_T=0
11276   fi
11277
11278
11279
11280
11281
11282   if test $ac_cv_header_features_h = yes; then
11283     HAVE_FEATURES_H=1
11284   else
11285     HAVE_FEATURES_H=0
11286   fi
11287
11288
11289
11290
11291
11292   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
11293 printf %s "checking for intmax_t... " >&6; }
11294 if test ${gt_cv_c_intmax_t+y}
11295 then :
11296   printf %s "(cached) " >&6
11297 else
11298   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11299 /* end confdefs.h.  */
11300
11301 #include <stddef.h>
11302 #include <stdlib.h>
11303 #if HAVE_STDINT_H_WITH_UINTMAX
11304 #include <stdint.h>
11305 #endif
11306 #if HAVE_INTTYPES_H_WITH_UINTMAX
11307 #include <inttypes.h>
11308 #endif
11309
11310 int
11311 main (void)
11312 {
11313 intmax_t x = -1; return !x;
11314   ;
11315   return 0;
11316 }
11317 _ACEOF
11318 if ac_fn_c_try_compile "$LINENO"
11319 then :
11320   gt_cv_c_intmax_t=yes
11321 else
11322   gt_cv_c_intmax_t=no
11323 fi
11324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11325 fi
11326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
11327 printf "%s\n" "$gt_cv_c_intmax_t" >&6; }
11328   if test $gt_cv_c_intmax_t = yes; then
11329
11330 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
11331
11332   else
11333
11334     test $ac_cv_type_long_long_int = yes \
11335       && ac_type='long long' \
11336       || ac_type='long'
11337
11338 printf "%s\n" "#define intmax_t $ac_type" >>confdefs.h
11339
11340   fi
11341
11342
11343   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
11344 printf %s "checking where to find the exponent in a 'double'... " >&6; }
11345 if test ${gl_cv_cc_double_expbit0+y}
11346 then :
11347   printf %s "(cached) " >&6
11348 else
11349
11350       if test "$cross_compiling" = yes
11351 then :
11352
11353                                                                       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11354 /* end confdefs.h.  */
11355
11356 #if defined arm || defined __arm || defined __arm__
11357   mixed_endianness
11358 #endif
11359
11360 _ACEOF
11361 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11362   $EGREP "mixed_endianness" >/dev/null 2>&1
11363 then :
11364   gl_cv_cc_double_expbit0="unknown"
11365 else
11366
11367                                                          :
11368 if test ${ac_cv_c_bigendian+y}
11369 then :
11370   printf %s "(cached) " >&6
11371 else
11372   ac_cv_c_bigendian=unknown
11373     # See if we're dealing with a universal compiler.
11374     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11375 /* end confdefs.h.  */
11376 #ifndef __APPLE_CC__
11377                not a universal capable compiler
11378              #endif
11379              typedef int dummy;
11380
11381 _ACEOF
11382 if ac_fn_c_try_compile "$LINENO"
11383 then :
11384
11385         # Check for potential -arch flags.  It is not universal unless
11386         # there are at least two -arch flags with different values.
11387         ac_arch=
11388         ac_prev=
11389         for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11390          if test -n "$ac_prev"; then
11391            case $ac_word in
11392              i?86 | x86_64 | ppc | ppc64)
11393                if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11394                  ac_arch=$ac_word
11395                else
11396                  ac_cv_c_bigendian=universal
11397                  break
11398                fi
11399                ;;
11400            esac
11401            ac_prev=
11402          elif test "x$ac_word" = "x-arch"; then
11403            ac_prev=arch
11404          fi
11405        done
11406 fi
11407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11408     if test $ac_cv_c_bigendian = unknown; then
11409       # See if sys/param.h defines the BYTE_ORDER macro.
11410       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11411 /* end confdefs.h.  */
11412 #include <sys/types.h>
11413              #include <sys/param.h>
11414
11415 int
11416 main (void)
11417 {
11418 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
11419                      && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11420                      && LITTLE_ENDIAN)
11421               bogus endian macros
11422              #endif
11423
11424   ;
11425   return 0;
11426 }
11427 _ACEOF
11428 if ac_fn_c_try_compile "$LINENO"
11429 then :
11430   # It does; now see whether it defined to BIG_ENDIAN or not.
11431          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11432 /* end confdefs.h.  */
11433 #include <sys/types.h>
11434                 #include <sys/param.h>
11435
11436 int
11437 main (void)
11438 {
11439 #if BYTE_ORDER != BIG_ENDIAN
11440                  not big endian
11441                 #endif
11442
11443   ;
11444   return 0;
11445 }
11446 _ACEOF
11447 if ac_fn_c_try_compile "$LINENO"
11448 then :
11449   ac_cv_c_bigendian=yes
11450 else
11451   ac_cv_c_bigendian=no
11452 fi
11453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11454 fi
11455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11456     fi
11457     if test $ac_cv_c_bigendian = unknown; then
11458       # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11459       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11460 /* end confdefs.h.  */
11461 #include <limits.h>
11462
11463 int
11464 main (void)
11465 {
11466 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11467               bogus endian macros
11468              #endif
11469
11470   ;
11471   return 0;
11472 }
11473 _ACEOF
11474 if ac_fn_c_try_compile "$LINENO"
11475 then :
11476   # It does; now see whether it defined to _BIG_ENDIAN or not.
11477          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11478 /* end confdefs.h.  */
11479 #include <limits.h>
11480
11481 int
11482 main (void)
11483 {
11484 #ifndef _BIG_ENDIAN
11485                  not big endian
11486                 #endif
11487
11488   ;
11489   return 0;
11490 }
11491 _ACEOF
11492 if ac_fn_c_try_compile "$LINENO"
11493 then :
11494   ac_cv_c_bigendian=yes
11495 else
11496   ac_cv_c_bigendian=no
11497 fi
11498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11499 fi
11500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11501     fi
11502     if test $ac_cv_c_bigendian = unknown; then
11503       # Compile a test program.
11504       if test "$cross_compiling" = yes
11505 then :
11506   # Try to guess by grepping values from an object file.
11507          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11508 /* end confdefs.h.  */
11509 short int ascii_mm[] =
11510                   { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11511                 short int ascii_ii[] =
11512                   { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11513                 int use_ascii (int i) {
11514                   return ascii_mm[i] + ascii_ii[i];
11515                 }
11516                 short int ebcdic_ii[] =
11517                   { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11518                 short int ebcdic_mm[] =
11519                   { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11520                 int use_ebcdic (int i) {
11521                   return ebcdic_mm[i] + ebcdic_ii[i];
11522                 }
11523                 extern int foo;
11524
11525 int
11526 main (void)
11527 {
11528 return use_ascii (foo) == use_ebcdic (foo);
11529   ;
11530   return 0;
11531 }
11532 _ACEOF
11533 if ac_fn_c_try_compile "$LINENO"
11534 then :
11535   if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11536               ac_cv_c_bigendian=yes
11537             fi
11538             if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11539               if test "$ac_cv_c_bigendian" = unknown; then
11540                 ac_cv_c_bigendian=no
11541               else
11542                 # finding both strings is unlikely to happen, but who knows?
11543                 ac_cv_c_bigendian=unknown
11544               fi
11545             fi
11546 fi
11547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11548 else
11549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11550 /* end confdefs.h.  */
11551 $ac_includes_default
11552 int
11553 main (void)
11554 {
11555
11556              /* Are we little or big endian?  From Harbison&Steele.  */
11557              union
11558              {
11559                long int l;
11560                char c[sizeof (long int)];
11561              } u;
11562              u.l = 1;
11563              return u.c[sizeof (long int) - 1] == 1;
11564
11565   ;
11566   return 0;
11567 }
11568 _ACEOF
11569 if ac_fn_c_try_run "$LINENO"
11570 then :
11571   ac_cv_c_bigendian=no
11572 else
11573   ac_cv_c_bigendian=yes
11574 fi
11575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11576   conftest.$ac_objext conftest.beam conftest.$ac_ext
11577 fi
11578
11579     fi
11580 fi
11581 :
11582  case $ac_cv_c_bigendian in #(
11583    yes)
11584      gl_cv_cc_double_expbit0="word 0 bit 20";; #(
11585    no)
11586      gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
11587    universal)
11588
11589 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
11590
11591      ;; #(
11592    *)
11593      gl_cv_cc_double_expbit0="unknown" ;;
11594  esac
11595
11596
11597 fi
11598 rm -rf conftest*
11599
11600
11601 else
11602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11603 /* end confdefs.h.  */
11604
11605 #include <float.h>
11606 #include <stddef.h>
11607 #include <stdio.h>
11608 #include <string.h>
11609 #define NWORDS \
11610   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
11611 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
11612 static unsigned int ored_words[NWORDS];
11613 static unsigned int anded_words[NWORDS];
11614 static void add_to_ored_words (double x)
11615 {
11616   memory_double m;
11617   size_t i;
11618   /* Clear it first, in case sizeof (double) < sizeof (memory_double).  */
11619   memset (&m, 0, sizeof (memory_double));
11620   m.value = x;
11621   for (i = 0; i < NWORDS; i++)
11622     {
11623       ored_words[i] |= m.word[i];
11624       anded_words[i] &= m.word[i];
11625     }
11626 }
11627 int main ()
11628 {
11629   size_t j;
11630   FILE *fp = fopen ("conftest.out", "w");
11631   if (fp == NULL)
11632     return 1;
11633   for (j = 0; j < NWORDS; j++)
11634     anded_words[j] = ~ (unsigned int) 0;
11635   add_to_ored_words (0.25);
11636   add_to_ored_words (0.5);
11637   add_to_ored_words (1.0);
11638   add_to_ored_words (2.0);
11639   add_to_ored_words (4.0);
11640   /* Remove bits that are common (e.g. if representation of the first mantissa
11641      bit is explicit).  */
11642   for (j = 0; j < NWORDS; j++)
11643     ored_words[j] &= ~anded_words[j];
11644   /* Now find the nonzero word.  */
11645   for (j = 0; j < NWORDS; j++)
11646     if (ored_words[j] != 0)
11647       break;
11648   if (j < NWORDS)
11649     {
11650       size_t i;
11651       for (i = j + 1; i < NWORDS; i++)
11652         if (ored_words[i] != 0)
11653           {
11654             fprintf (fp, "unknown");
11655             return (fclose (fp) != 0);
11656           }
11657       for (i = 0; ; i++)
11658         if ((ored_words[j] >> i) & 1)
11659           {
11660             fprintf (fp, "word %d bit %d", (int) j, (int) i);
11661             return (fclose (fp) != 0);
11662           }
11663     }
11664   fprintf (fp, "unknown");
11665   return (fclose (fp) != 0);
11666 }
11667
11668 _ACEOF
11669 if ac_fn_c_try_run "$LINENO"
11670 then :
11671   gl_cv_cc_double_expbit0=`cat conftest.out`
11672 else
11673   gl_cv_cc_double_expbit0="unknown"
11674 fi
11675 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11676   conftest.$ac_objext conftest.beam conftest.$ac_ext
11677 fi
11678
11679       rm -f conftest.out
11680
11681 fi
11682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
11683 printf "%s\n" "$gl_cv_cc_double_expbit0" >&6; }
11684   case "$gl_cv_cc_double_expbit0" in
11685     word*bit*)
11686       word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
11687       bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
11688
11689 printf "%s\n" "#define DBL_EXPBIT0_WORD $word" >>confdefs.h
11690
11691
11692 printf "%s\n" "#define DBL_EXPBIT0_BIT $bit" >>confdefs.h
11693
11694       ;;
11695   esac
11696
11697
11698
11699
11700
11701
11702
11703
11704   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
11705 printf %s "checking whether snprintf returns a byte count as in C99... " >&6; }
11706 if test ${gl_cv_func_snprintf_retval_c99+y}
11707 then :
11708   printf %s "(cached) " >&6
11709 else
11710
11711       if test "$cross_compiling" = yes
11712 then :
11713   case "$host_os" in
11714                                  # Guess yes on glibc systems.
11715            *-gnu* | gnu*)        gl_cv_func_snprintf_retval_c99="guessing yes";;
11716                                  # Guess yes on FreeBSD >= 5.
11717            freebsd[1-4].*)       gl_cv_func_snprintf_retval_c99="guessing no";;
11718            freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
11719                                  # Guess yes on Mac OS X >= 10.3.
11720            darwin[1-6].*)        gl_cv_func_snprintf_retval_c99="guessing no";;
11721            darwin*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
11722                                  # Guess yes on OpenBSD >= 3.9.
11723            openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
11724                                  gl_cv_func_snprintf_retval_c99="guessing no";;
11725            openbsd*)             gl_cv_func_snprintf_retval_c99="guessing yes";;
11726                                  # Guess yes on Solaris >= 2.10.
11727            solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
11728            solaris*)             gl_cv_func_printf_sizes_c99="guessing no";;
11729                                  # Guess yes on AIX >= 4.
11730            aix[1-3]*)            gl_cv_func_snprintf_retval_c99="guessing no";;
11731            aix*)                 gl_cv_func_snprintf_retval_c99="guessing yes";;
11732                                  # Guess yes on NetBSD >= 3.
11733            netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
11734                                  gl_cv_func_snprintf_retval_c99="guessing no";;
11735            netbsd*)              gl_cv_func_snprintf_retval_c99="guessing yes";;
11736                                  # Guess yes on BeOS.
11737            beos*)                gl_cv_func_snprintf_retval_c99="guessing yes";;
11738                                  # Guess yes on MSVC, no on mingw.
11739            mingw*)               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11740 /* end confdefs.h.  */
11741
11742 #ifdef _MSC_VER
11743  Known
11744 #endif
11745
11746 _ACEOF
11747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11748   $EGREP "Known" >/dev/null 2>&1
11749 then :
11750   gl_cv_func_snprintf_retval_c99="guessing yes"
11751 else
11752   gl_cv_func_snprintf_retval_c99="guessing no"
11753 fi
11754 rm -rf conftest*
11755
11756                                  ;;
11757                                  # If we don't know, assume the worst.
11758            *)                    gl_cv_func_snprintf_retval_c99="guessing no";;
11759          esac
11760
11761 else
11762   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h.  */
11764
11765 #include <stdio.h>
11766 #include <string.h>
11767 #if HAVE_SNPRINTF
11768 # define my_snprintf snprintf
11769 #else
11770 # include <stdarg.h>
11771 static int my_snprintf (char *buf, int size, const char *format, ...)
11772 {
11773   va_list args;
11774   int ret;
11775   va_start (args, format);
11776   ret = vsnprintf (buf, size, format, args);
11777   va_end (args);
11778   return ret;
11779 }
11780 #endif
11781 static char buf[100];
11782 int main ()
11783 {
11784   strcpy (buf, "ABCDEF");
11785   if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
11786     return 1;
11787   if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
11788     return 2;
11789   if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
11790     return 3;
11791   return 0;
11792 }
11793 _ACEOF
11794 if ac_fn_c_try_run "$LINENO"
11795 then :
11796   gl_cv_func_snprintf_retval_c99=yes
11797 else
11798   gl_cv_func_snprintf_retval_c99=no
11799 fi
11800 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11801   conftest.$ac_objext conftest.beam conftest.$ac_ext
11802 fi
11803
11804
11805 fi
11806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
11807 printf "%s\n" "$gl_cv_func_snprintf_retval_c99" >&6; }
11808
11809
11810
11811
11812
11813
11814   ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
11815 if test "x$ac_cv_func_snprintf" = xyes
11816 then :
11817   printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
11818
11819 fi
11820 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
11821 if test "x$ac_cv_func_strnlen" = xyes
11822 then :
11823   printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
11824
11825 fi
11826 ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
11827 if test "x$ac_cv_func_wcslen" = xyes
11828 then :
11829   printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
11830
11831 fi
11832 ac_fn_c_check_func "$LINENO" "wcsnlen" "ac_cv_func_wcsnlen"
11833 if test "x$ac_cv_func_wcsnlen" = xyes
11834 then :
11835   printf "%s\n" "#define HAVE_WCSNLEN 1" >>confdefs.h
11836
11837 fi
11838 ac_fn_c_check_func "$LINENO" "mbrtowc" "ac_cv_func_mbrtowc"
11839 if test "x$ac_cv_func_mbrtowc" = xyes
11840 then :
11841   printf "%s\n" "#define HAVE_MBRTOWC 1" >>confdefs.h
11842
11843 fi
11844 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
11845 if test "x$ac_cv_func_wcrtomb" = xyes
11846 then :
11847   printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
11848
11849 fi
11850
11851       ac_fn_c_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
11852 "
11853 if test "x$ac_cv_have_decl__snprintf" = xyes
11854 then :
11855   ac_have_decl=1
11856 else
11857   ac_have_decl=0
11858 fi
11859
11860 printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h
11861
11862
11863
11864   case "$gl_cv_func_snprintf_retval_c99" in
11865     *yes)
11866
11867 printf "%s\n" "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
11868
11869       ;;
11870   esac
11871
11872
11873
11874
11875
11876   GNULIB_ACOSF=0;
11877   GNULIB_ACOSL=0;
11878   GNULIB_ASINF=0;
11879   GNULIB_ASINL=0;
11880   GNULIB_ATANF=0;
11881   GNULIB_ATANL=0;
11882   GNULIB_ATAN2F=0;
11883   GNULIB_CBRT=0;
11884   GNULIB_CBRTF=0;
11885   GNULIB_CBRTL=0;
11886   GNULIB_CEIL=0;
11887   GNULIB_CEILF=0;
11888   GNULIB_CEILL=0;
11889   GNULIB_COPYSIGN=0;
11890   GNULIB_COPYSIGNF=0;
11891   GNULIB_COPYSIGNL=0;
11892   GNULIB_COSF=0;
11893   GNULIB_COSL=0;
11894   GNULIB_COSHF=0;
11895   GNULIB_EXPF=0;
11896   GNULIB_EXPL=0;
11897   GNULIB_EXP2=0;
11898   GNULIB_EXP2F=0;
11899   GNULIB_EXP2L=0;
11900   GNULIB_EXPM1=0;
11901   GNULIB_EXPM1F=0;
11902   GNULIB_EXPM1L=0;
11903   GNULIB_FABSF=0;
11904   GNULIB_FABSL=0;
11905   GNULIB_FLOOR=0;
11906   GNULIB_FLOORF=0;
11907   GNULIB_FLOORL=0;
11908   GNULIB_FMA=0;
11909   GNULIB_FMAF=0;
11910   GNULIB_FMAL=0;
11911   GNULIB_FMOD=0;
11912   GNULIB_FMODF=0;
11913   GNULIB_FMODL=0;
11914   GNULIB_FREXPF=0;
11915   GNULIB_FREXP=0;
11916   GNULIB_FREXPL=0;
11917   GNULIB_HYPOT=0;
11918   GNULIB_HYPOTF=0;
11919   GNULIB_HYPOTL=0;
11920   GNULIB_ILOGB=0;
11921   GNULIB_ILOGBF=0;
11922   GNULIB_ILOGBL=0;
11923   GNULIB_ISFINITE=0;
11924   GNULIB_ISINF=0;
11925   GNULIB_ISNAN=0;
11926   GNULIB_ISNANF=0;
11927   GNULIB_ISNAND=0;
11928   GNULIB_ISNANL=0;
11929   GNULIB_LDEXPF=0;
11930   GNULIB_LDEXPL=0;
11931   GNULIB_LOG=0;
11932   GNULIB_LOGF=0;
11933   GNULIB_LOGL=0;
11934   GNULIB_LOG10=0;
11935   GNULIB_LOG10F=0;
11936   GNULIB_LOG10L=0;
11937   GNULIB_LOG1P=0;
11938   GNULIB_LOG1PF=0;
11939   GNULIB_LOG1PL=0;
11940   GNULIB_LOG2=0;
11941   GNULIB_LOG2F=0;
11942   GNULIB_LOG2L=0;
11943   GNULIB_LOGB=0;
11944   GNULIB_LOGBF=0;
11945   GNULIB_LOGBL=0;
11946   GNULIB_MODF=0;
11947   GNULIB_MODFF=0;
11948   GNULIB_MODFL=0;
11949   GNULIB_POWF=0;
11950   GNULIB_REMAINDER=0;
11951   GNULIB_REMAINDERF=0;
11952   GNULIB_REMAINDERL=0;
11953   GNULIB_RINT=0;
11954   GNULIB_RINTF=0;
11955   GNULIB_RINTL=0;
11956   GNULIB_ROUND=0;
11957   GNULIB_ROUNDF=0;
11958   GNULIB_ROUNDL=0;
11959   GNULIB_SIGNBIT=0;
11960   GNULIB_SINF=0;
11961   GNULIB_SINL=0;
11962   GNULIB_SINHF=0;
11963   GNULIB_SQRTF=0;
11964   GNULIB_SQRTL=0;
11965   GNULIB_TANF=0;
11966   GNULIB_TANL=0;
11967   GNULIB_TANHF=0;
11968   GNULIB_TRUNC=0;
11969   GNULIB_TRUNCF=0;
11970   GNULIB_TRUNCL=0;
11971     HAVE_ACOSF=1;
11972   HAVE_ACOSL=1;
11973   HAVE_ASINF=1;
11974   HAVE_ASINL=1;
11975   HAVE_ATANF=1;
11976   HAVE_ATANL=1;
11977   HAVE_ATAN2F=1;
11978   HAVE_CBRT=1;
11979   HAVE_CBRTF=1;
11980   HAVE_CBRTL=1;
11981   HAVE_COPYSIGN=1;
11982   HAVE_COPYSIGNL=1;
11983   HAVE_COSF=1;
11984   HAVE_COSL=1;
11985   HAVE_COSHF=1;
11986   HAVE_EXPF=1;
11987   HAVE_EXPL=1;
11988   HAVE_EXPM1=1;
11989   HAVE_EXPM1F=1;
11990   HAVE_FABSF=1;
11991   HAVE_FABSL=1;
11992   HAVE_FMA=1;
11993   HAVE_FMAF=1;
11994   HAVE_FMAL=1;
11995   HAVE_FMODF=1;
11996   HAVE_FMODL=1;
11997   HAVE_FREXPF=1;
11998   HAVE_HYPOTF=1;
11999   HAVE_HYPOTL=1;
12000   HAVE_ILOGB=1;
12001   HAVE_ILOGBF=1;
12002   HAVE_ILOGBL=1;
12003   HAVE_ISNANF=1;
12004   HAVE_ISNAND=1;
12005   HAVE_ISNANL=1;
12006   HAVE_LDEXPF=1;
12007   HAVE_LOGF=1;
12008   HAVE_LOGL=1;
12009   HAVE_LOG10F=1;
12010   HAVE_LOG10L=1;
12011   HAVE_LOG1P=1;
12012   HAVE_LOG1PF=1;
12013   HAVE_LOG1PL=1;
12014   HAVE_LOGBF=1;
12015   HAVE_LOGBL=1;
12016   HAVE_MODFF=1;
12017   HAVE_MODFL=1;
12018   HAVE_POWF=1;
12019   HAVE_REMAINDER=1;
12020   HAVE_REMAINDERF=1;
12021   HAVE_RINT=1;
12022   HAVE_RINTL=1;
12023   HAVE_SINF=1;
12024   HAVE_SINL=1;
12025   HAVE_SINHF=1;
12026   HAVE_SQRTF=1;
12027   HAVE_SQRTL=1;
12028   HAVE_TANF=1;
12029   HAVE_TANL=1;
12030   HAVE_TANHF=1;
12031   HAVE_DECL_ACOSL=1;
12032   HAVE_DECL_ASINL=1;
12033   HAVE_DECL_ATANL=1;
12034   HAVE_DECL_CBRTF=1;
12035   HAVE_DECL_CBRTL=1;
12036   HAVE_DECL_CEILF=1;
12037   HAVE_DECL_CEILL=1;
12038   HAVE_DECL_COPYSIGNF=1;
12039   HAVE_DECL_COSL=1;
12040   HAVE_DECL_EXPL=1;
12041   HAVE_DECL_EXP2=1;
12042   HAVE_DECL_EXP2F=1;
12043   HAVE_DECL_EXP2L=1;
12044   HAVE_DECL_EXPM1L=1;
12045   HAVE_DECL_FLOORF=1;
12046   HAVE_DECL_FLOORL=1;
12047   HAVE_DECL_FREXPL=1;
12048   HAVE_DECL_LDEXPL=1;
12049   HAVE_DECL_LOGL=1;
12050   HAVE_DECL_LOG10L=1;
12051   HAVE_DECL_LOG2=1;
12052   HAVE_DECL_LOG2F=1;
12053   HAVE_DECL_LOG2L=1;
12054   HAVE_DECL_LOGB=1;
12055   HAVE_DECL_REMAINDER=1;
12056   HAVE_DECL_REMAINDERL=1;
12057   HAVE_DECL_RINTF=1;
12058   HAVE_DECL_ROUND=1;
12059   HAVE_DECL_ROUNDF=1;
12060   HAVE_DECL_ROUNDL=1;
12061   HAVE_DECL_SINL=1;
12062   HAVE_DECL_SQRTL=1;
12063   HAVE_DECL_TANL=1;
12064   HAVE_DECL_TRUNC=1;
12065   HAVE_DECL_TRUNCF=1;
12066   HAVE_DECL_TRUNCL=1;
12067   REPLACE_ACOSF=0;
12068   REPLACE_ASINF=0;
12069   REPLACE_ATANF=0;
12070   REPLACE_ATAN2F=0;
12071   REPLACE_CBRTF=0;
12072   REPLACE_CBRTL=0;
12073   REPLACE_CEIL=0;
12074   REPLACE_CEILF=0;
12075   REPLACE_CEILL=0;
12076   REPLACE_COSF=0;
12077   REPLACE_COSHF=0;
12078   REPLACE_EXPF=0;
12079   REPLACE_EXPM1=0;
12080   REPLACE_EXPM1F=0;
12081   REPLACE_EXP2=0;
12082   REPLACE_EXP2L=0;
12083   REPLACE_FABSL=0;
12084   REPLACE_FLOOR=0;
12085   REPLACE_FLOORF=0;
12086   REPLACE_FLOORL=0;
12087   REPLACE_FMA=0;
12088   REPLACE_FMAF=0;
12089   REPLACE_FMAL=0;
12090   REPLACE_FMOD=0;
12091   REPLACE_FMODF=0;
12092   REPLACE_FMODL=0;
12093   REPLACE_FREXPF=0;
12094   REPLACE_FREXP=0;
12095   REPLACE_FREXPL=0;
12096   REPLACE_HUGE_VAL=0;
12097   REPLACE_HYPOT=0;
12098   REPLACE_HYPOTF=0;
12099   REPLACE_HYPOTL=0;
12100   REPLACE_ILOGB=0;
12101   REPLACE_ILOGBF=0;
12102   REPLACE_ILOGBL=0;
12103   REPLACE_ISFINITE=0;
12104   REPLACE_ISINF=0;
12105   REPLACE_ISNAN=0;
12106   REPLACE_LDEXPL=0;
12107   REPLACE_LOG=0;
12108   REPLACE_LOGF=0;
12109   REPLACE_LOGL=0;
12110   REPLACE_LOG10=0;
12111   REPLACE_LOG10F=0;
12112   REPLACE_LOG10L=0;
12113   REPLACE_LOG1P=0;
12114   REPLACE_LOG1PF=0;
12115   REPLACE_LOG1PL=0;
12116   REPLACE_LOG2=0;
12117   REPLACE_LOG2F=0;
12118   REPLACE_LOG2L=0;
12119   REPLACE_LOGB=0;
12120   REPLACE_LOGBF=0;
12121   REPLACE_LOGBL=0;
12122   REPLACE_MODF=0;
12123   REPLACE_MODFF=0;
12124   REPLACE_MODFL=0;
12125   REPLACE_NAN=0;
12126   REPLACE_REMAINDER=0;
12127   REPLACE_REMAINDERF=0;
12128   REPLACE_REMAINDERL=0;
12129   REPLACE_ROUND=0;
12130   REPLACE_ROUNDF=0;
12131   REPLACE_ROUNDL=0;
12132   REPLACE_SIGNBIT=0;
12133   REPLACE_SIGNBIT_USING_GCC=0;
12134   REPLACE_SINF=0;
12135   REPLACE_SINHF=0;
12136   REPLACE_SQRTF=0;
12137   REPLACE_SQRTL=0;
12138   REPLACE_TANF=0;
12139   REPLACE_TANHF=0;
12140   REPLACE_TRUNC=0;
12141   REPLACE_TRUNCF=0;
12142   REPLACE_TRUNCL=0;
12143
12144
12145   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexp() can be used without linking with libm" >&5
12146 printf %s "checking whether frexp() can be used without linking with libm... " >&6; }
12147 if test ${gl_cv_func_frexp_no_libm+y}
12148 then :
12149   printf %s "(cached) " >&6
12150 else
12151
12152       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12153 /* end confdefs.h.  */
12154 #include <math.h>
12155              double x;
12156 int
12157 main (void)
12158 {
12159 int e; return frexp (x, &e) > 0;
12160   ;
12161   return 0;
12162 }
12163 _ACEOF
12164 if ac_fn_c_try_link "$LINENO"
12165 then :
12166   gl_cv_func_frexp_no_libm=yes
12167 else
12168   gl_cv_func_frexp_no_libm=no
12169 fi
12170 rm -f core conftest.err conftest.$ac_objext \
12171     conftest$ac_exeext conftest.$ac_ext
12172
12173 fi
12174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_no_libm" >&5
12175 printf "%s\n" "$gl_cv_func_frexp_no_libm" >&6; }
12176
12177 ac_fn_c_check_decl "$LINENO" "alarm" "ac_cv_have_decl_alarm" "$ac_includes_default"
12178 if test "x$ac_cv_have_decl_alarm" = xyes
12179 then :
12180   ac_have_decl=1
12181 else
12182   ac_have_decl=0
12183 fi
12184
12185 printf "%s\n" "#define HAVE_DECL_ALARM $ac_have_decl" >>confdefs.h
12186
12187
12188     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
12189 printf %s "checking whether stdin defaults to large file offsets... " >&6; }
12190 if test ${gl_cv_var_stdin_large_offset+y}
12191 then :
12192   printf %s "(cached) " >&6
12193 else
12194   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12195 /* end confdefs.h.  */
12196 #include <stdio.h>
12197 int
12198 main (void)
12199 {
12200 #if defined __SL64 && defined __SCLE /* cygwin */
12201   /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
12202      fseeko/ftello needlessly fail.  This bug was fixed in 1.5.25, and
12203      it is easier to do a version check than building a runtime test.  */
12204 # include <cygwin/version.h>
12205 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
12206   choke me
12207 # endif
12208 #endif
12209   ;
12210   return 0;
12211 }
12212 _ACEOF
12213 if ac_fn_c_try_link "$LINENO"
12214 then :
12215   gl_cv_var_stdin_large_offset=yes
12216 else
12217   gl_cv_var_stdin_large_offset=no
12218 fi
12219 rm -f core conftest.err conftest.$ac_objext \
12220     conftest$ac_exeext conftest.$ac_ext
12221 fi
12222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
12223 printf "%s\n" "$gl_cv_var_stdin_large_offset" >&6; }
12224
12225
12226
12227
12228
12229   case "$host_os" in
12230     mingw*)
12231                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
12232 printf %s "checking for 64-bit off_t... " >&6; }
12233 if test ${gl_cv_type_off_t_64+y}
12234 then :
12235   printf %s "(cached) " >&6
12236 else
12237   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h.  */
12239 #include <sys/types.h>
12240                 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
12241
12242 int
12243 main (void)
12244 {
12245
12246   ;
12247   return 0;
12248 }
12249 _ACEOF
12250 if ac_fn_c_try_compile "$LINENO"
12251 then :
12252   gl_cv_type_off_t_64=yes
12253 else
12254   gl_cv_type_off_t_64=no
12255 fi
12256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12257
12258 fi
12259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
12260 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
12261       if test $gl_cv_type_off_t_64 = no; then
12262         WINDOWS_64_BIT_OFF_T=1
12263       else
12264         WINDOWS_64_BIT_OFF_T=0
12265       fi
12266                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
12267 printf %s "checking for 64-bit st_size... " >&6; }
12268 if test ${gl_cv_member_st_size_64+y}
12269 then :
12270   printf %s "(cached) " >&6
12271 else
12272   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12273 /* end confdefs.h.  */
12274 #include <sys/types.h>
12275                 struct stat buf;
12276                 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
12277
12278 int
12279 main (void)
12280 {
12281
12282   ;
12283   return 0;
12284 }
12285 _ACEOF
12286 if ac_fn_c_try_compile "$LINENO"
12287 then :
12288   gl_cv_member_st_size_64=yes
12289 else
12290   gl_cv_member_st_size_64=no
12291 fi
12292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12293
12294 fi
12295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
12296 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
12297       if test $gl_cv_member_st_size_64 = no; then
12298         WINDOWS_64_BIT_ST_SIZE=1
12299       else
12300         WINDOWS_64_BIT_ST_SIZE=0
12301       fi
12302       ;;
12303     *)
12304                                                       WINDOWS_64_BIT_OFF_T=0
12305       WINDOWS_64_BIT_ST_SIZE=0
12306       ;;
12307   esac
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317 printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h
12318
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329      if test $gl_cv_have_include_next = yes; then
12330        gl_cv_next_sys_types_h='<'sys/types.h'>'
12331      else
12332        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
12333 printf %s "checking absolute name of <sys/types.h>... " >&6; }
12334 if test ${gl_cv_next_sys_types_h+y}
12335 then :
12336   printf %s "(cached) " >&6
12337 else
12338
12339
12340
12341   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12342 /* end confdefs.h.  */
12343 #include <sys/types.h>
12344 _ACEOF
12345                 case "$host_os" in
12346     aix*) gl_absname_cpp="$ac_cpp -C" ;;
12347     *)    gl_absname_cpp="$ac_cpp" ;;
12348   esac
12349
12350   case "$host_os" in
12351     mingw*)
12352                                           gl_dirsep_regex='[/\\]'
12353       ;;
12354     *)
12355       gl_dirsep_regex='\/'
12356       ;;
12357   esac
12358       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12359   gl_header_literal_regex=`echo 'sys/types.h' \
12360                            | sed -e "$gl_make_literal_regex_sed"`
12361   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12362       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12363       s|^/[^/]|//&|
12364       p
12365       q
12366     }'
12367
12368         gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12369   sed -n "$gl_absolute_header_sed"`
12370
12371            gl_header=$gl_cv_absolute_sys_types_h
12372            gl_cv_next_sys_types_h='"'$gl_header'"'
12373
12374
12375 fi
12376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
12377 printf "%s\n" "$gl_cv_next_sys_types_h" >&6; }
12378      fi
12379      NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
12380
12381      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12382        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12383        gl_next_as_first_directive='<'sys/types.h'>'
12384      else
12385        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12386        gl_next_as_first_directive=$gl_cv_next_sys_types_h
12387      fi
12388      NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399
12400
12401     WINDOWS_STAT_INODES=0
12402
12403
12404
12405 ac_fn_c_check_decl "$LINENO" "fseeko" "ac_cv_have_decl_fseeko" "$ac_includes_default"
12406 if test "x$ac_cv_have_decl_fseeko" = xyes
12407 then :
12408   ac_have_decl=1
12409 else
12410   ac_have_decl=0
12411 fi
12412
12413 printf "%s\n" "#define HAVE_DECL_FSEEKO $ac_have_decl" >>confdefs.h
12414
12415
12416
12417
12418
12419
12420
12421
12422
12423   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
12424 printf %s "checking for fseeko... " >&6; }
12425 if test ${gl_cv_func_fseeko+y}
12426 then :
12427   printf %s "(cached) " >&6
12428 else
12429
12430       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h.  */
12432 #include <stdio.h>
12433
12434 int
12435 main (void)
12436 {
12437 fseeko (stdin, 0, 0);
12438   ;
12439   return 0;
12440 }
12441 _ACEOF
12442 if ac_fn_c_try_link "$LINENO"
12443 then :
12444   gl_cv_func_fseeko=yes
12445 else
12446   gl_cv_func_fseeko=no
12447 fi
12448 rm -f core conftest.err conftest.$ac_objext \
12449     conftest$ac_exeext conftest.$ac_ext
12450
12451 fi
12452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
12453 printf "%s\n" "$gl_cv_func_fseeko" >&6; }
12454
12455
12456   if test $ac_cv_have_decl_fseeko = no; then
12457     HAVE_DECL_FSEEKO=0
12458   fi
12459
12460   if test $gl_cv_func_fseeko = no; then
12461     HAVE_FSEEKO=0
12462   else
12463     if test $WINDOWS_64_BIT_OFF_T = 1; then
12464       REPLACE_FSEEKO=1
12465     fi
12466     if test $gl_cv_var_stdin_large_offset = no; then
12467       REPLACE_FSEEKO=1
12468     fi
12469
12470
12471
12472   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5
12473 printf %s "checking whether fflush works on input streams... " >&6; }
12474 if test ${gl_cv_func_fflush_stdin+y}
12475 then :
12476   printf %s "(cached) " >&6
12477 else
12478   echo hello world > conftest.txt
12479      if test "$cross_compiling" = yes
12480 then :
12481   case "$host_os" in
12482                   # Guess no on native Windows.
12483           mingw*) gl_cv_func_fflush_stdin="guessing no" ;;
12484           *)      gl_cv_func_fflush_stdin=cross ;;
12485         esac
12486
12487 else
12488   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12489 /* end confdefs.h.  */
12490
12491 #include <stdio.h>
12492 #if HAVE_UNISTD_H
12493 # include <unistd.h>
12494 #else /* on Windows with MSVC */
12495 # include <io.h>
12496 #endif
12497
12498 int
12499 main (void)
12500 {
12501 FILE *f = fopen ("conftest.txt", "r");
12502          char buffer[10];
12503          int fd;
12504          int c;
12505          if (f == NULL)
12506            return 1;
12507          fd = fileno (f);
12508          if (fd < 0 || fread (buffer, 1, 5, f) != 5)
12509            { fclose (f); return 2; }
12510          /* For deterministic results, ensure f read a bigger buffer.  */
12511          if (lseek (fd, 0, SEEK_CUR) == 5)
12512            { fclose (f); return 3; }
12513          /* POSIX requires fflush-fseek to set file offset of fd.  This fails
12514             on BSD systems and on mingw.  */
12515          if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0)
12516            { fclose (f); return 4; }
12517          if (lseek (fd, 0, SEEK_CUR) != 5)
12518            { fclose (f); return 5; }
12519          /* Verify behaviour of fflush after ungetc. See
12520             <http://www.opengroup.org/austin/aardvark/latest/xshbug3.txt>  */
12521          /* Verify behaviour of fflush after a backup ungetc.  This fails on
12522             mingw.  */
12523          c = fgetc (f);
12524          ungetc (c, f);
12525          fflush (f);
12526          if (fgetc (f) != c)
12527            { fclose (f); return 6; }
12528          /* Verify behaviour of fflush after a non-backup ungetc.  This fails
12529             on glibc 2.8 and on BSD systems.  */
12530          c = fgetc (f);
12531          ungetc ('@', f);
12532          fflush (f);
12533          if (fgetc (f) != c)
12534            { fclose (f); return 7; }
12535          fclose (f);
12536          return 0;
12537
12538   ;
12539   return 0;
12540 }
12541 _ACEOF
12542 if ac_fn_c_try_run "$LINENO"
12543 then :
12544   gl_cv_func_fflush_stdin=yes
12545 else
12546   gl_cv_func_fflush_stdin=no
12547 fi
12548 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12549   conftest.$ac_objext conftest.beam conftest.$ac_ext
12550 fi
12551
12552      rm conftest.txt
12553
12554 fi
12555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5
12556 printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; }
12557   case "$gl_cv_func_fflush_stdin" in
12558     *yes) gl_func_fflush_stdin=1 ;;
12559     *no)  gl_func_fflush_stdin=0 ;;
12560     *)    gl_func_fflush_stdin='(-1)' ;;
12561   esac
12562
12563 printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h
12564
12565
12566       case "$gl_cv_func_fflush_stdin" in
12567         *yes) ;;
12568         *) REPLACE_FSEEKO=1 ;;
12569       esac
12570
12571   fi
12572
12573
12574
12575      GNULIB_FCHMODAT=0;
12576   GNULIB_FSTAT=0;
12577   GNULIB_FSTATAT=0;
12578   GNULIB_FUTIMENS=0;
12579   GNULIB_LCHMOD=0;
12580   GNULIB_LSTAT=0;
12581   GNULIB_MKDIRAT=0;
12582   GNULIB_MKFIFO=0;
12583   GNULIB_MKFIFOAT=0;
12584   GNULIB_MKNOD=0;
12585   GNULIB_MKNODAT=0;
12586   GNULIB_STAT=0;
12587   GNULIB_UTIMENSAT=0;
12588   GNULIB_OVERRIDES_STRUCT_STAT=0;
12589     HAVE_FCHMODAT=1;
12590   HAVE_FSTATAT=1;
12591   HAVE_FUTIMENS=1;
12592   HAVE_LCHMOD=1;
12593   HAVE_LSTAT=1;
12594   HAVE_MKDIRAT=1;
12595   HAVE_MKFIFO=1;
12596   HAVE_MKFIFOAT=1;
12597   HAVE_MKNOD=1;
12598   HAVE_MKNODAT=1;
12599   HAVE_UTIMENSAT=1;
12600   REPLACE_FSTAT=0;
12601   REPLACE_FSTATAT=0;
12602   REPLACE_FUTIMENS=0;
12603   REPLACE_LSTAT=0;
12604   REPLACE_MKDIR=0;
12605   REPLACE_MKFIFO=0;
12606   REPLACE_MKNOD=0;
12607   REPLACE_STAT=0;
12608   REPLACE_UTIMENSAT=0;
12609
12610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
12611 printf %s "checking whether stat file-mode macros are broken... " >&6; }
12612 if test ${ac_cv_header_stat_broken+y}
12613 then :
12614   printf %s "(cached) " >&6
12615 else
12616   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12617 /* end confdefs.h.  */
12618 #include <sys/types.h>
12619 #include <sys/stat.h>
12620
12621 #if defined S_ISBLK && defined S_IFDIR
12622 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
12623 #endif
12624
12625 #if defined S_ISBLK && defined S_IFCHR
12626 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
12627 #endif
12628
12629 #if defined S_ISLNK && defined S_IFREG
12630 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
12631 #endif
12632
12633 #if defined S_ISSOCK && defined S_IFREG
12634 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
12635 #endif
12636
12637 _ACEOF
12638 if ac_fn_c_try_compile "$LINENO"
12639 then :
12640   ac_cv_header_stat_broken=no
12641 else
12642   ac_cv_header_stat_broken=yes
12643 fi
12644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12645 fi
12646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
12647 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
12648 if test $ac_cv_header_stat_broken = yes; then
12649
12650 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
12651
12652 fi
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662
12663
12664
12665
12666
12667
12668      if test $gl_cv_have_include_next = yes; then
12669        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
12670      else
12671        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
12672 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
12673 if test ${gl_cv_next_sys_stat_h+y}
12674 then :
12675   printf %s "(cached) " >&6
12676 else
12677
12678              if test $ac_cv_header_sys_stat_h = yes; then
12679
12680
12681
12682
12683   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12684 /* end confdefs.h.  */
12685 #include <sys/stat.h>
12686 _ACEOF
12687                 case "$host_os" in
12688     aix*) gl_absname_cpp="$ac_cpp -C" ;;
12689     *)    gl_absname_cpp="$ac_cpp" ;;
12690   esac
12691
12692   case "$host_os" in
12693     mingw*)
12694                                           gl_dirsep_regex='[/\\]'
12695       ;;
12696     *)
12697       gl_dirsep_regex='\/'
12698       ;;
12699   esac
12700       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12701   gl_header_literal_regex=`echo 'sys/stat.h' \
12702                            | sed -e "$gl_make_literal_regex_sed"`
12703   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12704       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12705       s|^/[^/]|//&|
12706       p
12707       q
12708     }'
12709
12710         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12711   sed -n "$gl_absolute_header_sed"`
12712
12713            gl_header=$gl_cv_absolute_sys_stat_h
12714            gl_cv_next_sys_stat_h='"'$gl_header'"'
12715           else
12716                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
12717              fi
12718
12719
12720 fi
12721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
12722 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
12723      fi
12724      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
12725
12726      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12727        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12728        gl_next_as_first_directive='<'sys/stat.h'>'
12729      else
12730        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12731        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
12732      fi
12733      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
12734
12735
12736
12737
12738
12739
12740
12741
12742     WINDOWS_STAT_TIMESPEC=0
12743
12744
12745
12746
12747
12748
12749
12750
12751       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
12752      #include <sys/stat.h>
12753 "
12754 if test "x$ac_cv_type_nlink_t" = xyes
12755 then :
12756
12757 else
12758
12759 printf "%s\n" "#define nlink_t int" >>confdefs.h
12760
12761 fi
12762
12763
12764
12765
12766
12767          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
12768 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
12769 if test ${gl_cv_func_lstat_dereferences_slashed_symlink+y}
12770 then :
12771   printf %s "(cached) " >&6
12772 else
12773   rm -f conftest.sym conftest.file
12774      echo >conftest.file
12775      if test "$cross_compiling" = yes
12776 then :
12777   case "$host_os" in
12778           linux-* | linux)
12779             # Guess yes on Linux systems.
12780             gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
12781           *-gnu* | gnu*)
12782             # Guess yes on glibc systems.
12783             gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
12784           mingw*)
12785             # Guess no on native Windows.
12786             gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
12787           *)
12788             # If we don't know, assume the worst.
12789             gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
12790         esac
12791
12792 else
12793   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12794 /* end confdefs.h.  */
12795 $ac_includes_default
12796 int
12797 main (void)
12798 {
12799 struct stat sbuf;
12800             if (symlink ("conftest.file", "conftest.sym") != 0)
12801               return 1;
12802             /* Linux will dereference the symlink and fail, as required by
12803                POSIX.  That is better in the sense that it means we will not
12804                have to compile and use the lstat wrapper.  */
12805             return lstat ("conftest.sym/", &sbuf) == 0;
12806
12807   ;
12808   return 0;
12809 }
12810 _ACEOF
12811 if ac_fn_c_try_run "$LINENO"
12812 then :
12813   gl_cv_func_lstat_dereferences_slashed_symlink=yes
12814 else
12815   gl_cv_func_lstat_dereferences_slashed_symlink=no
12816 fi
12817 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12818   conftest.$ac_objext conftest.beam conftest.$ac_ext
12819 fi
12820
12821      rm -f conftest.sym conftest.file
12822
12823 fi
12824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
12825 printf "%s\n" "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12826   case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
12827     *yes)
12828
12829 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
12830
12831       ;;
12832   esac
12833
12834
12835
12836 ac_fn_c_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default"
12837 if test "x$ac_cv_have_decl_ftello" = xyes
12838 then :
12839   ac_have_decl=1
12840 else
12841   ac_have_decl=0
12842 fi
12843
12844 printf "%s\n" "#define HAVE_DECL_FTELLO $ac_have_decl" >>confdefs.h
12845
12846
12847
12848
12849
12850
12851
12852
12853
12854
12855   if test $ac_cv_have_decl_ftello = no; then
12856     HAVE_DECL_FTELLO=0
12857   fi
12858
12859   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
12860 printf %s "checking for ftello... " >&6; }
12861 if test ${gl_cv_func_ftello+y}
12862 then :
12863   printf %s "(cached) " >&6
12864 else
12865
12866       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12867 /* end confdefs.h.  */
12868 #include <stdio.h>
12869 int
12870 main (void)
12871 {
12872 ftello (stdin);
12873   ;
12874   return 0;
12875 }
12876 _ACEOF
12877 if ac_fn_c_try_link "$LINENO"
12878 then :
12879   gl_cv_func_ftello=yes
12880 else
12881   gl_cv_func_ftello=no
12882 fi
12883 rm -f core conftest.err conftest.$ac_objext \
12884     conftest$ac_exeext conftest.$ac_ext
12885
12886 fi
12887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
12888 printf "%s\n" "$gl_cv_func_ftello" >&6; }
12889   if test $gl_cv_func_ftello = no; then
12890     HAVE_FTELLO=0
12891   else
12892     if test $WINDOWS_64_BIT_OFF_T = 1; then
12893       REPLACE_FTELLO=1
12894     fi
12895     if test $gl_cv_var_stdin_large_offset = no; then
12896       REPLACE_FTELLO=1
12897     fi
12898     if test $REPLACE_FTELLO = 0; then
12899
12900       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
12901 printf %s "checking whether ftello works... " >&6; }
12902 if test ${gl_cv_func_ftello_works+y}
12903 then :
12904   printf %s "(cached) " >&6
12905 else
12906
12907                               case "$host_os" in
12908                       # Guess no on Solaris.
12909             solaris*) gl_cv_func_ftello_works="guessing no" ;;
12910                       # Guess yes on native Windows.
12911             mingw*)   gl_cv_func_ftello_works="guessing yes" ;;
12912                       # Guess yes otherwise.
12913             *)        gl_cv_func_ftello_works="guessing yes" ;;
12914           esac
12915           if test "$cross_compiling" = yes
12916 then :
12917   :
12918 else
12919   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12920 /* end confdefs.h.  */
12921
12922 #include <stdio.h>
12923 #include <stdlib.h>
12924 #include <string.h>
12925 #define TESTFILE "conftest.tmp"
12926 int
12927 main (void)
12928 {
12929   FILE *fp;
12930
12931   /* Create a file with some contents.  */
12932   fp = fopen (TESTFILE, "w");
12933   if (fp == NULL)
12934     return 70;
12935   if (fwrite ("foogarsh", 1, 8, fp) < 8)
12936     { fclose (fp); return 71; }
12937   if (fclose (fp))
12938     return 72;
12939
12940   /* The file's contents is now "foogarsh".  */
12941
12942   /* Try writing after reading to EOF.  */
12943   fp = fopen (TESTFILE, "r+");
12944   if (fp == NULL)
12945     return 73;
12946   if (fseek (fp, -1, SEEK_END))
12947     { fclose (fp); return 74; }
12948   if (!(getc (fp) == 'h'))
12949     { fclose (fp); return 1; }
12950   if (!(getc (fp) == EOF))
12951     { fclose (fp); return 2; }
12952   if (!(ftell (fp) == 8))
12953     { fclose (fp); return 3; }
12954   if (!(ftell (fp) == 8))
12955     { fclose (fp); return 4; }
12956   if (!(putc ('!', fp) == '!'))
12957     { fclose (fp); return 5; }
12958   if (!(ftell (fp) == 9))
12959     { fclose (fp); return 6; }
12960   if (!(fclose (fp) == 0))
12961     return 7;
12962   fp = fopen (TESTFILE, "r");
12963   if (fp == NULL)
12964     return 75;
12965   {
12966     char buf[10];
12967     if (!(fread (buf, 1, 10, fp) == 9))
12968       { fclose (fp); return 10; }
12969     if (!(memcmp (buf, "foogarsh!", 9) == 0))
12970       { fclose (fp); return 11; }
12971   }
12972   if (!(fclose (fp) == 0))
12973     return 12;
12974
12975   /* The file's contents is now "foogarsh!".  */
12976
12977   return 0;
12978 }
12979 _ACEOF
12980 if ac_fn_c_try_run "$LINENO"
12981 then :
12982   gl_cv_func_ftello_works=yes
12983 else
12984   gl_cv_func_ftello_works=no
12985 fi
12986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12987   conftest.$ac_objext conftest.beam conftest.$ac_ext
12988 fi
12989
12990
12991 fi
12992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
12993 printf "%s\n" "$gl_cv_func_ftello_works" >&6; }
12994       case "$gl_cv_func_ftello_works" in
12995         *yes) ;;
12996         *)
12997           REPLACE_FTELLO=1
12998
12999 printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
13000
13001           ;;
13002       esac
13003     fi
13004   fi
13005
13006
13007
13008    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getcwd (NULL, 0) allocates memory for result" >&5
13009 printf %s "checking whether getcwd (NULL, 0) allocates memory for result... " >&6; }
13010 if test ${gl_cv_func_getcwd_null+y}
13011 then :
13012   printf %s "(cached) " >&6
13013 else
13014   if test "$cross_compiling" = yes
13015 then :
13016   case "$host_os" in
13017                            # Guess yes on glibc systems.
13018             *-gnu* | gnu*) gl_cv_func_getcwd_null="guessing yes";;
13019                            # Guess yes on Cygwin.
13020             cygwin*)       gl_cv_func_getcwd_null="guessing yes";;
13021                            # If we don't know, assume the worst.
13022             *)             gl_cv_func_getcwd_null="guessing no";;
13023           esac
13024
13025 else
13026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h.  */
13028
13029 #        include <stdlib.h>
13030 #        if HAVE_UNISTD_H
13031 #         include <unistd.h>
13032 #        else /* on Windows with MSVC */
13033 #         include <direct.h>
13034 #        endif
13035 #        ifndef getcwd
13036          char *getcwd ();
13037 #        endif
13038
13039 int
13040 main (void)
13041 {
13042
13043 #if defined _WIN32 && ! defined __CYGWIN__
13044 /* mingw cwd does not start with '/', but getcwd does allocate.
13045    However, mingw fails to honor non-zero size.  */
13046 #else
13047            if (chdir ("/") != 0)
13048              return 1;
13049            else
13050              {
13051                char *f = getcwd (NULL, 0);
13052                if (! f)
13053                  return 2;
13054                if (f[0] != '/')
13055                  { free (f); return 3; }
13056                if (f[1] != '\0')
13057                  { free (f); return 4; }
13058                free (f);
13059                return 0;
13060              }
13061 #endif
13062
13063   ;
13064   return 0;
13065 }
13066 _ACEOF
13067 if ac_fn_c_try_run "$LINENO"
13068 then :
13069   gl_cv_func_getcwd_null=yes
13070 else
13071   gl_cv_func_getcwd_null=no
13072 fi
13073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13074   conftest.$ac_objext conftest.beam conftest.$ac_ext
13075 fi
13076
13077 fi
13078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_null" >&5
13079 printf "%s\n" "$gl_cv_func_getcwd_null" >&6; }
13080
13081
13082   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getcwd with POSIX signature" >&5
13083 printf %s "checking for getcwd with POSIX signature... " >&6; }
13084 if test ${gl_cv_func_getcwd_posix_signature+y}
13085 then :
13086   printf %s "(cached) " >&6
13087 else
13088   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13089 /* end confdefs.h.  */
13090 #include <unistd.h>
13091 int
13092 main (void)
13093 {
13094 extern
13095            #ifdef __cplusplus
13096            "C"
13097            #endif
13098            char *getcwd (char *, size_t);
13099
13100   ;
13101   return 0;
13102 }
13103
13104 _ACEOF
13105 if ac_fn_c_try_compile "$LINENO"
13106 then :
13107   gl_cv_func_getcwd_posix_signature=yes
13108 else
13109   gl_cv_func_getcwd_posix_signature=no
13110 fi
13111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13112
13113 fi
13114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getcwd_posix_signature" >&5
13115 printf "%s\n" "$gl_cv_func_getcwd_posix_signature" >&6; }
13116
13117
13118 ac_fn_c_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default"
13119 if test "x$ac_cv_have_decl_getdtablesize" = xyes
13120 then :
13121   ac_have_decl=1
13122 else
13123   ac_have_decl=0
13124 fi
13125
13126 printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h
13127
13128
13129
13130
13131
13132
13133
13134
13135
13136
13137
13138
13139
13140
13141
13142      if test $gl_cv_have_include_next = yes; then
13143        gl_cv_next_getopt_h='<'getopt.h'>'
13144      else
13145        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
13146 printf %s "checking absolute name of <getopt.h>... " >&6; }
13147 if test ${gl_cv_next_getopt_h+y}
13148 then :
13149   printf %s "(cached) " >&6
13150 else
13151
13152              if test $ac_cv_header_getopt_h = yes; then
13153
13154
13155
13156
13157   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13158 /* end confdefs.h.  */
13159 #include <getopt.h>
13160 _ACEOF
13161                 case "$host_os" in
13162     aix*) gl_absname_cpp="$ac_cpp -C" ;;
13163     *)    gl_absname_cpp="$ac_cpp" ;;
13164   esac
13165
13166   case "$host_os" in
13167     mingw*)
13168                                           gl_dirsep_regex='[/\\]'
13169       ;;
13170     *)
13171       gl_dirsep_regex='\/'
13172       ;;
13173   esac
13174       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13175   gl_header_literal_regex=`echo 'getopt.h' \
13176                            | sed -e "$gl_make_literal_regex_sed"`
13177   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13178       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13179       s|^/[^/]|//&|
13180       p
13181       q
13182     }'
13183
13184         gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13185   sed -n "$gl_absolute_header_sed"`
13186
13187            gl_header=$gl_cv_absolute_getopt_h
13188            gl_cv_next_getopt_h='"'$gl_header'"'
13189           else
13190                gl_cv_next_getopt_h='<'getopt.h'>'
13191              fi
13192
13193
13194 fi
13195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
13196 printf "%s\n" "$gl_cv_next_getopt_h" >&6; }
13197      fi
13198      NEXT_GETOPT_H=$gl_cv_next_getopt_h
13199
13200      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13201        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13202        gl_next_as_first_directive='<'getopt.h'>'
13203      else
13204        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13205        gl_next_as_first_directive=$gl_cv_next_getopt_h
13206      fi
13207      NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
13208
13209
13210
13211
13212   if test $ac_cv_header_getopt_h = yes; then
13213     HAVE_GETOPT_H=1
13214   else
13215     HAVE_GETOPT_H=0
13216   fi
13217
13218
13219   gl_replace_getopt=
13220
13221     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13222     for ac_header in getopt.h
13223 do :
13224   ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
13225 if test "x$ac_cv_header_getopt_h" = xyes
13226 then :
13227   printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
13228
13229 else
13230   gl_replace_getopt=yes
13231 fi
13232
13233 done
13234   fi
13235
13236     if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13237     for ac_func in getopt_long_only
13238 do :
13239   ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
13240 if test "x$ac_cv_func_getopt_long_only" = xyes
13241 then :
13242   printf "%s\n" "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
13243
13244 else
13245   gl_replace_getopt=yes
13246 fi
13247
13248 done
13249   fi
13250
13251           if test -z "$gl_replace_getopt"; then
13252     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
13253 printf %s "checking whether getopt is POSIX compatible... " >&6; }
13254 if test ${gl_cv_func_getopt_posix+y}
13255 then :
13256   printf %s "(cached) " >&6
13257 else
13258
13259                                                 if test $cross_compiling = no; then
13260                               if test "$cross_compiling" = yes
13261 then :
13262   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13263 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13264 as_fn_error $? "cannot run test program while cross compiling
13265 See \`config.log' for more details" "$LINENO" 5; }
13266 else
13267   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* end confdefs.h.  */
13269
13270 #include <unistd.h>
13271 #include <stdlib.h>
13272 #include <string.h>
13273
13274 int
13275 main ()
13276 {
13277   static char program[] = "program";
13278   static char a[] = "-a";
13279   static char foo[] = "foo";
13280   static char bar[] = "bar";
13281   char *argv[] = { program, a, foo, bar, NULL };
13282   int c;
13283
13284   c = getopt (4, argv, "ab");
13285   if (!(c == 'a'))
13286     return 1;
13287   c = getopt (4, argv, "ab");
13288   if (!(c == -1))
13289     return 2;
13290   if (!(optind == 2))
13291     return 3;
13292   return 0;
13293 }
13294
13295 _ACEOF
13296 if ac_fn_c_try_run "$LINENO"
13297 then :
13298   gl_cv_func_getopt_posix=maybe
13299 else
13300   gl_cv_func_getopt_posix=no
13301 fi
13302 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13303   conftest.$ac_objext conftest.beam conftest.$ac_ext
13304 fi
13305
13306           if test $gl_cv_func_getopt_posix = maybe; then
13307                                     if test "$cross_compiling" = yes
13308 then :
13309   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13310 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13311 as_fn_error $? "cannot run test program while cross compiling
13312 See \`config.log' for more details" "$LINENO" 5; }
13313 else
13314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13315 /* end confdefs.h.  */
13316
13317 #include <unistd.h>
13318 #include <stdlib.h>
13319 #include <string.h>
13320
13321 int
13322 main ()
13323 {
13324   static char program[] = "program";
13325   static char donald[] = "donald";
13326   static char p[] = "-p";
13327   static char billy[] = "billy";
13328   static char duck[] = "duck";
13329   static char a[] = "-a";
13330   static char bar[] = "bar";
13331   char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
13332   int c;
13333
13334   c = getopt (7, argv, "+abp:q:");
13335   if (!(c == -1))
13336     return 4;
13337   if (!(strcmp (argv[0], "program") == 0))
13338     return 5;
13339   if (!(strcmp (argv[1], "donald") == 0))
13340     return 6;
13341   if (!(strcmp (argv[2], "-p") == 0))
13342     return 7;
13343   if (!(strcmp (argv[3], "billy") == 0))
13344     return 8;
13345   if (!(strcmp (argv[4], "duck") == 0))
13346     return 9;
13347   if (!(strcmp (argv[5], "-a") == 0))
13348     return 10;
13349   if (!(strcmp (argv[6], "bar") == 0))
13350     return 11;
13351   if (!(optind == 1))
13352     return 12;
13353   return 0;
13354 }
13355
13356 _ACEOF
13357 if ac_fn_c_try_run "$LINENO"
13358 then :
13359   gl_cv_func_getopt_posix=maybe
13360 else
13361   gl_cv_func_getopt_posix=no
13362 fi
13363 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13364   conftest.$ac_objext conftest.beam conftest.$ac_ext
13365 fi
13366
13367           fi
13368           if test $gl_cv_func_getopt_posix = maybe; then
13369                         if test "$cross_compiling" = yes
13370 then :
13371   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13372 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
13373 as_fn_error $? "cannot run test program while cross compiling
13374 See \`config.log' for more details" "$LINENO" 5; }
13375 else
13376   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13377 /* end confdefs.h.  */
13378
13379 #include <unistd.h>
13380 #include <stdlib.h>
13381 #include <string.h>
13382
13383 int
13384 main ()
13385 {
13386   static char program[] = "program";
13387   static char ab[] = "-ab";
13388   char *argv[3] = { program, ab, NULL };
13389   if (getopt (2, argv, "ab:") != 'a')
13390     return 13;
13391   if (getopt (2, argv, "ab:") != '?')
13392     return 14;
13393   if (optopt != 'b')
13394     return 15;
13395   if (optind != 2)
13396     return 16;
13397   return 0;
13398 }
13399
13400 _ACEOF
13401 if ac_fn_c_try_run "$LINENO"
13402 then :
13403   gl_cv_func_getopt_posix=yes
13404 else
13405   gl_cv_func_getopt_posix=no
13406 fi
13407 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13408   conftest.$ac_objext conftest.beam conftest.$ac_ext
13409 fi
13410
13411           fi
13412         else
13413           case "$host_os" in
13414             darwin* | aix* | mingw*) gl_cv_func_getopt_posix="guessing no";;
13415             *)                       gl_cv_func_getopt_posix="guessing yes";;
13416           esac
13417         fi
13418
13419 fi
13420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
13421 printf "%s\n" "$gl_cv_func_getopt_posix" >&6; }
13422     case "$gl_cv_func_getopt_posix" in
13423       *no) gl_replace_getopt=yes ;;
13424     esac
13425   fi
13426
13427   if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
13428     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
13429 printf %s "checking for working GNU getopt function... " >&6; }
13430 if test ${gl_cv_func_getopt_gnu+y}
13431 then :
13432   printf %s "(cached) " >&6
13433 else
13434   # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
13435        # optstring is necessary for programs like m4 that have POSIX-mandated
13436        # semantics for supporting options interspersed with files.
13437        # Also, since getopt_long is a GNU extension, we require optind=0.
13438        # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
13439        # so take care to revert to the correct (non-)export state.
13440        gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
13441        case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
13442          xx) gl_had_POSIXLY_CORRECT=exported ;;
13443          x)  gl_had_POSIXLY_CORRECT=yes      ;;
13444          *)  gl_had_POSIXLY_CORRECT=         ;;
13445        esac
13446        POSIXLY_CORRECT=1
13447        export POSIXLY_CORRECT
13448        if test "$cross_compiling" = yes
13449 then :
13450            gl_cv_func_getopt_gnu="guessing no"
13451
13452 else
13453   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13454 /* end confdefs.h.  */
13455 #include <getopt.h>
13456                            #include <stddef.h>
13457                            #include <string.h>
13458
13459 #include <stdlib.h>
13460 #if defined __MACH__ && defined __APPLE__
13461 /* Avoid a crash on Mac OS X.  */
13462 #include <mach/mach.h>
13463 #include <mach/mach_error.h>
13464 #include <mach/thread_status.h>
13465 #include <mach/exception.h>
13466 #include <mach/task.h>
13467 #include <pthread.h>
13468 /* The exception port on which our thread listens.  */
13469 static mach_port_t our_exception_port;
13470 /* The main function of the thread listening for exceptions of type
13471    EXC_BAD_ACCESS.  */
13472 static void *
13473 mach_exception_thread (void *arg)
13474 {
13475   /* Buffer for a message to be received.  */
13476   struct {
13477     mach_msg_header_t head;
13478     mach_msg_body_t msgh_body;
13479     char data[1024];
13480   } msg;
13481   mach_msg_return_t retval;
13482   /* Wait for a message on the exception port.  */
13483   retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
13484                      our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
13485   if (retval != MACH_MSG_SUCCESS)
13486     abort ();
13487   exit (1);
13488 }
13489 static void
13490 nocrash_init (void)
13491 {
13492   mach_port_t self = mach_task_self ();
13493   /* Allocate a port on which the thread shall listen for exceptions.  */
13494   if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
13495       == KERN_SUCCESS) {
13496     /* See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html.  */
13497     if (mach_port_insert_right (self, our_exception_port, our_exception_port,
13498                                 MACH_MSG_TYPE_MAKE_SEND)
13499         == KERN_SUCCESS) {
13500       /* The exceptions we want to catch.  Only EXC_BAD_ACCESS is interesting
13501          for us.  */
13502       exception_mask_t mask = EXC_MASK_BAD_ACCESS;
13503       /* Create the thread listening on the exception port.  */
13504       pthread_attr_t attr;
13505       pthread_t thread;
13506       if (pthread_attr_init (&attr) == 0
13507           && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
13508           && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
13509         pthread_attr_destroy (&attr);
13510         /* Replace the exception port info for these exceptions with our own.
13511            Note that we replace the exception port for the entire task, not only
13512            for a particular thread.  This has the effect that when our exception
13513            port gets the message, the thread specific exception port has already
13514            been asked, and we don't need to bother about it.
13515            See http://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html.  */
13516         task_set_exception_ports (self, mask, our_exception_port,
13517                                   EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
13518       }
13519     }
13520   }
13521 }
13522 #elif defined _WIN32 && ! defined __CYGWIN__
13523 /* Avoid a crash on native Windows.  */
13524 #define WIN32_LEAN_AND_MEAN
13525 #include <windows.h>
13526 #include <winerror.h>
13527 static LONG WINAPI
13528 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
13529 {
13530   switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
13531     {
13532     case EXCEPTION_ACCESS_VIOLATION:
13533     case EXCEPTION_IN_PAGE_ERROR:
13534     case EXCEPTION_STACK_OVERFLOW:
13535     case EXCEPTION_GUARD_PAGE:
13536     case EXCEPTION_PRIV_INSTRUCTION:
13537     case EXCEPTION_ILLEGAL_INSTRUCTION:
13538     case EXCEPTION_DATATYPE_MISALIGNMENT:
13539     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
13540     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
13541       exit (1);
13542     }
13543   return EXCEPTION_CONTINUE_SEARCH;
13544 }
13545 static void
13546 nocrash_init (void)
13547 {
13548   SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
13549 }
13550 #else
13551 /* Avoid a crash on POSIX systems.  */
13552 #include <signal.h>
13553 #include <unistd.h>
13554 /* A POSIX signal handler.  */
13555 static void
13556 exception_handler (int sig)
13557 {
13558   _exit (1);
13559 }
13560 static void
13561 nocrash_init (void)
13562 {
13563 #ifdef SIGSEGV
13564   signal (SIGSEGV, exception_handler);
13565 #endif
13566 #ifdef SIGBUS
13567   signal (SIGBUS, exception_handler);
13568 #endif
13569 }
13570 #endif
13571
13572
13573 int
13574 main (void)
13575 {
13576
13577              int result = 0;
13578
13579              nocrash_init();
13580
13581              /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
13582                 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
13583                 OSF/1 5.1, Solaris 10.  */
13584              {
13585                static char conftest[] = "conftest";
13586                static char plus[] = "-+";
13587                char *argv[3] = { conftest, plus, NULL };
13588                opterr = 0;
13589                if (getopt (2, argv, "+a") != '?')
13590                  result |= 1;
13591              }
13592              /* This code succeeds on glibc 2.8, mingw,
13593                 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
13594                 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x.  */
13595              {
13596                static char program[] = "program";
13597                static char p[] = "-p";
13598                static char foo[] = "foo";
13599                static char bar[] = "bar";
13600                char *argv[] = { program, p, foo, bar, NULL };
13601
13602                optind = 1;
13603                if (getopt (4, argv, "p::") != 'p')
13604                  result |= 2;
13605                else if (optarg != NULL)
13606                  result |= 4;
13607                else if (getopt (4, argv, "p::") != -1)
13608                  result |= 6;
13609                else if (optind != 2)
13610                  result |= 8;
13611              }
13612              /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0.  */
13613              {
13614                static char program[] = "program";
13615                static char foo[] = "foo";
13616                static char p[] = "-p";
13617                char *argv[] = { program, foo, p, NULL };
13618                optind = 0;
13619                if (getopt (3, argv, "-p") != 1)
13620                  result |= 16;
13621                else if (getopt (3, argv, "-p") != 'p')
13622                  result |= 16;
13623              }
13624              /* This code fails on glibc 2.11.  */
13625              {
13626                static char program[] = "program";
13627                static char b[] = "-b";
13628                static char a[] = "-a";
13629                char *argv[] = { program, b, a, NULL };
13630                optind = opterr = 0;
13631                if (getopt (3, argv, "+:a:b") != 'b')
13632                  result |= 32;
13633                else if (getopt (3, argv, "+:a:b") != ':')
13634                  result |= 32;
13635              }
13636              /* This code dumps core on glibc 2.14.  */
13637              {
13638                static char program[] = "program";
13639                static char w[] = "-W";
13640                static char dummy[] = "dummy";
13641                char *argv[] = { program, w, dummy, NULL };
13642                optind = opterr = 1;
13643                if (getopt (3, argv, "W;") != 'W')
13644                  result |= 64;
13645              }
13646              return result;
13647
13648   ;
13649   return 0;
13650 }
13651 _ACEOF
13652 if ac_fn_c_try_run "$LINENO"
13653 then :
13654   gl_cv_func_getopt_gnu=yes
13655 else
13656   gl_cv_func_getopt_gnu=no
13657 fi
13658 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13659   conftest.$ac_objext conftest.beam conftest.$ac_ext
13660 fi
13661
13662        case $gl_had_POSIXLY_CORRECT in
13663          exported) ;;
13664          yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
13665          *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
13666        esac
13667
13668 fi
13669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
13670 printf "%s\n" "$gl_cv_func_getopt_gnu" >&6; }
13671     if test "$gl_cv_func_getopt_gnu" != yes; then
13672       gl_replace_getopt=yes
13673     else
13674       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
13675 printf %s "checking for working GNU getopt_long function... " >&6; }
13676 if test ${gl_cv_func_getopt_long_gnu+y}
13677 then :
13678   printf %s "(cached) " >&6
13679 else
13680   if test "$cross_compiling" = yes
13681 then :
13682               case "$host_os" in
13683               openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
13684               *)        gl_cv_func_getopt_long_gnu="guessing yes";;
13685             esac
13686
13687 else
13688   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13689 /* end confdefs.h.  */
13690 #include <getopt.h>
13691                 #include <stddef.h>
13692                 #include <string.h>
13693
13694 int
13695 main (void)
13696 {
13697 static const struct option long_options[] =
13698                   {
13699                     { "xtremely-",no_argument,       NULL, 1003 },
13700                     { "xtra",     no_argument,       NULL, 1001 },
13701                     { "xtreme",   no_argument,       NULL, 1002 },
13702                     { "xtremely", no_argument,       NULL, 1003 },
13703                     { NULL,       0,                 NULL, 0 }
13704                   };
13705                 /* This code fails on OpenBSD 5.0.  */
13706                 {
13707                   static char program[] = "program";
13708                   static char xtremel[] = "--xtremel";
13709                   char *argv[] = { program, xtremel, NULL };
13710                   int option_index;
13711                   optind = 1; opterr = 0;
13712                   if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
13713                     return 1;
13714                 }
13715                 return 0;
13716
13717   ;
13718   return 0;
13719 }
13720 _ACEOF
13721 if ac_fn_c_try_run "$LINENO"
13722 then :
13723   gl_cv_func_getopt_long_gnu=yes
13724 else
13725   gl_cv_func_getopt_long_gnu=no
13726 fi
13727 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13728   conftest.$ac_objext conftest.beam conftest.$ac_ext
13729 fi
13730
13731
13732 fi
13733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
13734 printf "%s\n" "$gl_cv_func_getopt_long_gnu" >&6; }
13735       case "$gl_cv_func_getopt_long_gnu" in
13736         *yes) ;;
13737         *) gl_replace_getopt=yes ;;
13738       esac
13739     fi
13740   fi
13741
13742
13743
13744
13745 :
13746
13747
13748   GNULIB_GETTIMEOFDAY=0;
13749     HAVE_GETTIMEOFDAY=1;
13750   HAVE_STRUCT_TIMEVAL=1;
13751   HAVE_SYS_TIME_H=1;
13752   REPLACE_GETTIMEOFDAY=0;
13753   REPLACE_STRUCT_TIMEVAL=0;
13754
13755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
13756 printf %s "checking for C/C++ restrict keyword... " >&6; }
13757 if test ${ac_cv_c_restrict+y}
13758 then :
13759   printf %s "(cached) " >&6
13760 else
13761   ac_cv_c_restrict=no
13762    # The order here caters to the fact that C++ does not require restrict.
13763    for ac_kw in __restrict __restrict__ _Restrict restrict; do
13764      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h.  */
13766 typedef int *int_ptr;
13767            int foo (int_ptr $ac_kw ip) { return ip[0]; }
13768            int bar (int [$ac_kw]); /* Catch GCC bug 14050.  */
13769            int bar (int ip[$ac_kw]) { return ip[0]; }
13770
13771 int
13772 main (void)
13773 {
13774 int s[1];
13775            int *$ac_kw t = s;
13776            t[0] = 0;
13777            return foo (t) + bar (t);
13778
13779   ;
13780   return 0;
13781 }
13782 _ACEOF
13783 if ac_fn_c_try_compile "$LINENO"
13784 then :
13785   ac_cv_c_restrict=$ac_kw
13786 fi
13787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13788      test "$ac_cv_c_restrict" != no && break
13789    done
13790
13791 fi
13792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
13793 printf "%s\n" "$ac_cv_c_restrict" >&6; }
13794
13795  case $ac_cv_c_restrict in
13796    restrict) ;;
13797    no) printf "%s\n" "#define restrict /**/" >>confdefs.h
13798  ;;
13799    *)  printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
13800  ;;
13801  esac
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817      if test $gl_cv_have_include_next = yes; then
13818        gl_cv_next_sys_time_h='<'sys/time.h'>'
13819      else
13820        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/time.h>" >&5
13821 printf %s "checking absolute name of <sys/time.h>... " >&6; }
13822 if test ${gl_cv_next_sys_time_h+y}
13823 then :
13824   printf %s "(cached) " >&6
13825 else
13826
13827              if test $ac_cv_header_sys_time_h = yes; then
13828
13829
13830
13831
13832   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13833 /* end confdefs.h.  */
13834 #include <sys/time.h>
13835 _ACEOF
13836                 case "$host_os" in
13837     aix*) gl_absname_cpp="$ac_cpp -C" ;;
13838     *)    gl_absname_cpp="$ac_cpp" ;;
13839   esac
13840
13841   case "$host_os" in
13842     mingw*)
13843                                           gl_dirsep_regex='[/\\]'
13844       ;;
13845     *)
13846       gl_dirsep_regex='\/'
13847       ;;
13848   esac
13849       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13850   gl_header_literal_regex=`echo 'sys/time.h' \
13851                            | sed -e "$gl_make_literal_regex_sed"`
13852   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13853       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13854       s|^/[^/]|//&|
13855       p
13856       q
13857     }'
13858
13859         gl_cv_absolute_sys_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13860   sed -n "$gl_absolute_header_sed"`
13861
13862            gl_header=$gl_cv_absolute_sys_time_h
13863            gl_cv_next_sys_time_h='"'$gl_header'"'
13864           else
13865                gl_cv_next_sys_time_h='<'sys/time.h'>'
13866              fi
13867
13868
13869 fi
13870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_time_h" >&5
13871 printf "%s\n" "$gl_cv_next_sys_time_h" >&6; }
13872      fi
13873      NEXT_SYS_TIME_H=$gl_cv_next_sys_time_h
13874
13875      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13876        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13877        gl_next_as_first_directive='<'sys/time.h'>'
13878      else
13879        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13880        gl_next_as_first_directive=$gl_cv_next_sys_time_h
13881      fi
13882      NEXT_AS_FIRST_DIRECTIVE_SYS_TIME_H=$gl_next_as_first_directive
13883
13884
13885
13886
13887
13888   if test $ac_cv_header_sys_time_h != yes; then
13889     HAVE_SYS_TIME_H=0
13890   fi
13891
13892
13893
13894
13895
13896   if test $ac_cv_header_sys_socket_h != yes; then
13897                     ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
13898 if test "x$ac_cv_header_winsock2_h" = xyes
13899 then :
13900   printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
13901
13902 fi
13903
13904   fi
13905   if test "$ac_cv_header_winsock2_h" = yes; then
13906     HAVE_WINSOCK2_H=1
13907     UNISTD_H_HAVE_WINSOCK2_H=1
13908     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
13909   else
13910     HAVE_WINSOCK2_H=0
13911   fi
13912
13913
13914   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
13915 printf %s "checking for struct timeval... " >&6; }
13916 if test ${gl_cv_sys_struct_timeval+y}
13917 then :
13918   printf %s "(cached) " >&6
13919 else
13920   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13921 /* end confdefs.h.  */
13922 #if HAVE_SYS_TIME_H
13923              #include <sys/time.h>
13924             #endif
13925             #include <time.h>
13926             #if HAVE_WINSOCK2_H
13927             # include <winsock2.h>
13928             #endif
13929
13930 int
13931 main (void)
13932 {
13933 static struct timeval x; x.tv_sec = x.tv_usec;
13934   ;
13935   return 0;
13936 }
13937 _ACEOF
13938 if ac_fn_c_try_compile "$LINENO"
13939 then :
13940   gl_cv_sys_struct_timeval=yes
13941 else
13942   gl_cv_sys_struct_timeval=no
13943 fi
13944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13945
13946 fi
13947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval" >&5
13948 printf "%s\n" "$gl_cv_sys_struct_timeval" >&6; }
13949   if test $gl_cv_sys_struct_timeval != yes; then
13950     HAVE_STRUCT_TIMEVAL=0
13951   else
13952                             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wide-enough struct timeval.tv_sec member" >&5
13953 printf %s "checking for wide-enough struct timeval.tv_sec member... " >&6; }
13954 if test ${gl_cv_sys_struct_timeval_tv_sec+y}
13955 then :
13956   printf %s "(cached) " >&6
13957 else
13958   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13959 /* end confdefs.h.  */
13960 #if HAVE_SYS_TIME_H
13961                #include <sys/time.h>
13962               #endif
13963               #include <time.h>
13964               #if HAVE_WINSOCK2_H
13965               # include <winsock2.h>
13966               #endif
13967
13968 int
13969 main (void)
13970 {
13971 static struct timeval x;
13972               typedef int verify_tv_sec_type[
13973                 sizeof (time_t) <= sizeof x.tv_sec ? 1 : -1
13974               ];
13975
13976   ;
13977   return 0;
13978 }
13979 _ACEOF
13980 if ac_fn_c_try_compile "$LINENO"
13981 then :
13982   gl_cv_sys_struct_timeval_tv_sec=yes
13983 else
13984   gl_cv_sys_struct_timeval_tv_sec=no
13985 fi
13986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13987
13988 fi
13989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timeval_tv_sec" >&5
13990 printf "%s\n" "$gl_cv_sys_struct_timeval_tv_sec" >&6; }
13991     if test $gl_cv_sys_struct_timeval_tv_sec != yes; then
13992       REPLACE_STRUCT_TIMEVAL=1
13993     fi
13994   fi
13995
13996
13997
13998
13999
14000
14001
14002   NEED_LOCALTIME_BUFFER=0
14003
14004
14005   GNULIB_CTIME=0;
14006   GNULIB_MKTIME=0;
14007   GNULIB_LOCALTIME=0;
14008   GNULIB_NANOSLEEP=0;
14009   GNULIB_STRFTIME=0;
14010   GNULIB_STRPTIME=0;
14011   GNULIB_TIMEGM=0;
14012   GNULIB_TIME_R=0;
14013   GNULIB_TIME_RZ=0;
14014   GNULIB_TZSET=0;
14015     HAVE_DECL_LOCALTIME_R=1;
14016   HAVE_NANOSLEEP=1;
14017   HAVE_STRPTIME=1;
14018   HAVE_TIMEGM=1;
14019   HAVE_TZSET=1;
14020     HAVE_TIMEZONE_T=0;
14021         REPLACE_CTIME=GNULIB_PORTCHECK;
14022   REPLACE_LOCALTIME_R=GNULIB_PORTCHECK;
14023   REPLACE_MKTIME=GNULIB_PORTCHECK;
14024   REPLACE_NANOSLEEP=GNULIB_PORTCHECK;
14025   REPLACE_STRFTIME=GNULIB_PORTCHECK;
14026   REPLACE_TIMEGM=GNULIB_PORTCHECK;
14027   REPLACE_TZSET=GNULIB_PORTCHECK;
14028
14029       : ${GNULIB_GETTIMEOFDAY=0};
14030         REPLACE_GMTIME=0;
14031   REPLACE_LOCALTIME=0;
14032
14033
14034   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
14035 printf %s "checking where to find the exponent in a 'float'... " >&6; }
14036 if test ${gl_cv_cc_float_expbit0+y}
14037 then :
14038   printf %s "(cached) " >&6
14039 else
14040
14041       if test "$cross_compiling" = yes
14042 then :
14043   gl_cv_cc_float_expbit0="word 0 bit 23"
14044 else
14045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14046 /* end confdefs.h.  */
14047
14048 #include <float.h>
14049 #include <stddef.h>
14050 #include <stdio.h>
14051 #include <string.h>
14052 #define NWORDS \
14053   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
14054 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
14055 static unsigned int ored_words[NWORDS];
14056 static unsigned int anded_words[NWORDS];
14057 static void add_to_ored_words (float x)
14058 {
14059   memory_float m;
14060   size_t i;
14061   /* Clear it first, in case
14062      sizeof (float) < sizeof (memory_float).  */
14063   memset (&m, 0, sizeof (memory_float));
14064   m.value = x;
14065   for (i = 0; i < NWORDS; i++)
14066     {
14067       ored_words[i] |= m.word[i];
14068       anded_words[i] &= m.word[i];
14069     }
14070 }
14071 int main ()
14072 {
14073   size_t j;
14074   FILE *fp = fopen ("conftest.out", "w");
14075   if (fp == NULL)
14076     return 1;
14077   for (j = 0; j < NWORDS; j++)
14078     anded_words[j] = ~ (unsigned int) 0;
14079   add_to_ored_words (0.25f);
14080   add_to_ored_words (0.5f);
14081   add_to_ored_words (1.0f);
14082   add_to_ored_words (2.0f);
14083   add_to_ored_words (4.0f);
14084   /* Remove bits that are common (e.g. if representation of the first mantissa
14085      bit is explicit).  */
14086   for (j = 0; j < NWORDS; j++)
14087     ored_words[j] &= ~anded_words[j];
14088   /* Now find the nonzero word.  */
14089   for (j = 0; j < NWORDS; j++)
14090     if (ored_words[j] != 0)
14091       break;
14092   if (j < NWORDS)
14093     {
14094       size_t i;
14095       for (i = j + 1; i < NWORDS; i++)
14096         if (ored_words[i] != 0)
14097           {
14098             fprintf (fp, "unknown");
14099             return (fclose (fp) != 0);
14100           }
14101       for (i = 0; ; i++)
14102         if ((ored_words[j] >> i) & 1)
14103           {
14104             fprintf (fp, "word %d bit %d", (int) j, (int) i);
14105             return (fclose (fp) != 0);
14106           }
14107     }
14108   fprintf (fp, "unknown");
14109   return (fclose (fp) != 0);
14110 }
14111
14112 _ACEOF
14113 if ac_fn_c_try_run "$LINENO"
14114 then :
14115   gl_cv_cc_float_expbit0=`cat conftest.out`
14116 else
14117   gl_cv_cc_float_expbit0="unknown"
14118 fi
14119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14120   conftest.$ac_objext conftest.beam conftest.$ac_ext
14121 fi
14122
14123       rm -f conftest.out
14124
14125 fi
14126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
14127 printf "%s\n" "$gl_cv_cc_float_expbit0" >&6; }
14128   case "$gl_cv_cc_float_expbit0" in
14129     word*bit*)
14130       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
14131       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
14132
14133 printf "%s\n" "#define FLT_EXPBIT0_WORD $word" >>confdefs.h
14134
14135
14136 printf "%s\n" "#define FLT_EXPBIT0_BIT $bit" >>confdefs.h
14137
14138       ;;
14139   esac
14140
14141
14142
14143
14144
14145
14146
14147
14148
14149
14150
14151
14152      if test $gl_cv_have_include_next = yes; then
14153        gl_cv_next_limits_h='<'limits.h'>'
14154      else
14155        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
14156 printf %s "checking absolute name of <limits.h>... " >&6; }
14157 if test ${gl_cv_next_limits_h+y}
14158 then :
14159   printf %s "(cached) " >&6
14160 else
14161
14162              if test $ac_cv_header_limits_h = yes; then
14163
14164
14165
14166
14167   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14168 /* end confdefs.h.  */
14169 #include <limits.h>
14170 _ACEOF
14171                 case "$host_os" in
14172     aix*) gl_absname_cpp="$ac_cpp -C" ;;
14173     *)    gl_absname_cpp="$ac_cpp" ;;
14174   esac
14175
14176   case "$host_os" in
14177     mingw*)
14178                                           gl_dirsep_regex='[/\\]'
14179       ;;
14180     *)
14181       gl_dirsep_regex='\/'
14182       ;;
14183   esac
14184       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14185   gl_header_literal_regex=`echo 'limits.h' \
14186                            | sed -e "$gl_make_literal_regex_sed"`
14187   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14188       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14189       s|^/[^/]|//&|
14190       p
14191       q
14192     }'
14193
14194         gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14195   sed -n "$gl_absolute_header_sed"`
14196
14197            gl_header=$gl_cv_absolute_limits_h
14198            gl_cv_next_limits_h='"'$gl_header'"'
14199           else
14200                gl_cv_next_limits_h='<'limits.h'>'
14201              fi
14202
14203
14204 fi
14205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
14206 printf "%s\n" "$gl_cv_next_limits_h" >&6; }
14207      fi
14208      NEXT_LIMITS_H=$gl_cv_next_limits_h
14209
14210      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14211        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14212        gl_next_as_first_directive='<'limits.h'>'
14213      else
14214        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14215        gl_next_as_first_directive=$gl_cv_next_limits_h
14216      fi
14217      NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
14218
14219
14220
14221
14222
14223   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc." >&5
14224 printf %s "checking whether limits.h has LLONG_MAX, WORD_BIT, ULLONG_WIDTH etc.... " >&6; }
14225 if test ${gl_cv_header_limits_width+y}
14226 then :
14227   printf %s "(cached) " >&6
14228 else
14229   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14230 /* end confdefs.h.  */
14231 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
14232              #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
14233             #endif
14234             #include <limits.h>
14235             long long llm = LLONG_MAX;
14236             int wb = WORD_BIT;
14237             int ullw = ULLONG_WIDTH;
14238
14239 int
14240 main (void)
14241 {
14242
14243   ;
14244   return 0;
14245 }
14246 _ACEOF
14247 if ac_fn_c_try_compile "$LINENO"
14248 then :
14249   gl_cv_header_limits_width=yes
14250 else
14251   gl_cv_header_limits_width=no
14252 fi
14253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14254 fi
14255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
14256 printf "%s\n" "$gl_cv_header_limits_width" >&6; }
14257   if test "$gl_cv_header_limits_width" = yes; then
14258     LIMITS_H=
14259   else
14260     LIMITS_H=limits.h
14261   fi
14262
14263    if test -n "$LIMITS_H"; then
14264   GL_GENERATE_LIMITS_H_TRUE=
14265   GL_GENERATE_LIMITS_H_FALSE='#'
14266 else
14267   GL_GENERATE_LIMITS_H_TRUE='#'
14268   GL_GENERATE_LIMITS_H_FALSE=
14269 fi
14270
14271
14272
14273       if test "X$prefix" = "XNONE"; then
14274     acl_final_prefix="$ac_default_prefix"
14275   else
14276     acl_final_prefix="$prefix"
14277   fi
14278   if test "X$exec_prefix" = "XNONE"; then
14279     acl_final_exec_prefix='${prefix}'
14280   else
14281     acl_final_exec_prefix="$exec_prefix"
14282   fi
14283   acl_save_prefix="$prefix"
14284   prefix="$acl_final_prefix"
14285   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
14286   prefix="$acl_save_prefix"
14287
14288
14289
14290 # Check whether --with-gnu-ld was given.
14291 if test ${with_gnu_ld+y}
14292 then :
14293   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14294 else
14295   with_gnu_ld=no
14296 fi
14297
14298 # Prepare PATH_SEPARATOR.
14299 # The user is always right.
14300 if test "${PATH_SEPARATOR+set}" != set; then
14301   # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
14302   # contains only /bin. Note that ksh looks also at the FPATH variable,
14303   # so we have to set that as well for the test.
14304   PATH_SEPARATOR=:
14305   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14306     && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
14307            || PATH_SEPARATOR=';'
14308        }
14309 fi
14310
14311 if test -n "$LD"; then
14312   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5
14313 printf %s "checking for ld... " >&6; }
14314 elif test "$GCC" = yes; then
14315   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14316 printf %s "checking for ld used by $CC... " >&6; }
14317 elif test "$with_gnu_ld" = yes; then
14318   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14319 printf %s "checking for GNU ld... " >&6; }
14320 else
14321   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14322 printf %s "checking for non-GNU ld... " >&6; }
14323 fi
14324 if test -n "$LD"; then
14325   # Let the user override the test with a path.
14326   :
14327 else
14328   if test ${acl_cv_path_LD+y}
14329 then :
14330   printf %s "(cached) " >&6
14331 else
14332
14333     acl_cv_path_LD= # Final result of this test
14334     ac_prog=ld # Program to search in $PATH
14335     if test "$GCC" = yes; then
14336       # Check if gcc -print-prog-name=ld gives a path.
14337       case $host in
14338         *-*-mingw*)
14339           # gcc leaves a trailing carriage return which upsets mingw
14340           acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14341         *)
14342           acl_output=`($CC -print-prog-name=ld) 2>&5` ;;
14343       esac
14344       case $acl_output in
14345         # Accept absolute paths.
14346         [\\/]* | ?:[\\/]*)
14347           re_direlt='/[^/][^/]*/\.\./'
14348           # Canonicalize the pathname of ld
14349           acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'`
14350           while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do
14351             acl_output=`echo $acl_output | sed "s%$re_direlt%/%"`
14352           done
14353           # Got the pathname. No search in PATH is needed.
14354           acl_cv_path_LD="$acl_output"
14355           ac_prog=
14356           ;;
14357         "")
14358           # If it fails, then pretend we aren't using GCC.
14359           ;;
14360         *)
14361           # If it is relative, then search for the first ld in PATH.
14362           with_gnu_ld=unknown
14363           ;;
14364       esac
14365     fi
14366     if test -n "$ac_prog"; then
14367       # Search for $ac_prog in $PATH.
14368       acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14369       for ac_dir in $PATH; do
14370         IFS="$acl_save_ifs"
14371         test -z "$ac_dir" && ac_dir=.
14372         if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14373           acl_cv_path_LD="$ac_dir/$ac_prog"
14374           # Check to see if the program is GNU ld.  I'd rather use --version,
14375           # but apparently some variants of GNU ld only accept -v.
14376           # Break only if it was the GNU/non-GNU ld that we prefer.
14377           case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
14378             *GNU* | *'with BFD'*)
14379               test "$with_gnu_ld" != no && break
14380               ;;
14381             *)
14382               test "$with_gnu_ld" != yes && break
14383               ;;
14384           esac
14385         fi
14386       done
14387       IFS="$acl_save_ifs"
14388     fi
14389     case $host in
14390       *-*-aix*)
14391         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14392 /* end confdefs.h.  */
14393 #if defined __powerpc64__ || defined _ARCH_PPC64
14394                 int ok;
14395                #else
14396                 error fail
14397                #endif
14398
14399 _ACEOF
14400 if ac_fn_c_try_compile "$LINENO"
14401 then :
14402   # The compiler produces 64-bit code. Add option '-b64' so that the
14403            # linker groks 64-bit object files.
14404            case "$acl_cv_path_LD " in
14405              *" -b64 "*) ;;
14406              *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;;
14407            esac
14408
14409 fi
14410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14411         ;;
14412       sparc64-*-netbsd*)
14413         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14414 /* end confdefs.h.  */
14415 #if defined __sparcv9 || defined __arch64__
14416                 int ok;
14417                #else
14418                 error fail
14419                #endif
14420
14421 _ACEOF
14422 if ac_fn_c_try_compile "$LINENO"
14423 then :
14424
14425 else
14426   # The compiler produces 32-bit code. Add option '-m elf32_sparc'
14427            # so that the linker groks 32-bit object files.
14428            case "$acl_cv_path_LD " in
14429              *" -m elf32_sparc "*) ;;
14430              *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;;
14431            esac
14432
14433 fi
14434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14435         ;;
14436     esac
14437
14438 fi
14439
14440   LD="$acl_cv_path_LD"
14441 fi
14442 if test -n "$LD"; then
14443   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
14444 printf "%s\n" "$LD" >&6; }
14445 else
14446   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
14447 printf "%s\n" "no" >&6; }
14448   as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
14449 fi
14450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
14451 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
14452 if test ${acl_cv_prog_gnu_ld+y}
14453 then :
14454   printf %s "(cached) " >&6
14455 else
14456   # I'd rather use --version here, but apparently some GNU lds only accept -v.
14457 case `$LD -v 2>&1 </dev/null` in
14458 *GNU* | *'with BFD'*)
14459   acl_cv_prog_gnu_ld=yes
14460   ;;
14461 *)
14462   acl_cv_prog_gnu_ld=no
14463   ;;
14464 esac
14465 fi
14466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
14467 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
14468 with_gnu_ld=$acl_cv_prog_gnu_ld
14469
14470
14471
14472
14473                                                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
14474 printf %s "checking for shared library run path origin... " >&6; }
14475 if test ${acl_cv_rpath+y}
14476 then :
14477   printf %s "(cached) " >&6
14478 else
14479
14480     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
14481     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
14482     . ./conftest.sh
14483     rm -f ./conftest.sh
14484     acl_cv_rpath=done
14485
14486 fi
14487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
14488 printf "%s\n" "$acl_cv_rpath" >&6; }
14489   wl="$acl_cv_wl"
14490   acl_libext="$acl_cv_libext"
14491   acl_shlibext="$acl_cv_shlibext"
14492   acl_libname_spec="$acl_cv_libname_spec"
14493   acl_library_names_spec="$acl_cv_library_names_spec"
14494   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
14495   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
14496   acl_hardcode_direct="$acl_cv_hardcode_direct"
14497   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
14498     # Check whether --enable-rpath was given.
14499 if test ${enable_rpath+y}
14500 then :
14501   enableval=$enable_rpath; :
14502 else
14503   enable_rpath=yes
14504 fi
14505
14506
14507
14508
14509   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5
14510 printf %s "checking 32-bit host C ABI... " >&6; }
14511 if test ${gl_cv_host_cpu_c_abi_32bit+y}
14512 then :
14513   printf %s "(cached) " >&6
14514 else
14515   if test -n "$gl_cv_host_cpu_c_abi"; then
14516        case "$gl_cv_host_cpu_c_abi" in
14517          i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc)
14518            gl_cv_host_cpu_c_abi_32bit=yes ;;
14519          *)
14520            gl_cv_host_cpu_c_abi_32bit=no ;;
14521        esac
14522      else
14523        case "$host_cpu" in
14524
14525          i[4567]86 )
14526            gl_cv_host_cpu_c_abi_32bit=yes
14527            ;;
14528
14529          x86_64 )
14530            # On x86_64 systems, the C compiler may be generating code in one of
14531            # these ABIs:
14532            # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64.
14533            # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64
14534            #   with native Windows (mingw, MSVC).
14535            # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32.
14536            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386.
14537            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14538 /* end confdefs.h.  */
14539 #if (defined __x86_64__ || defined __amd64__ \
14540                        || defined _M_X64 || defined _M_AMD64) \
14541                       && !(defined __ILP32__ || defined _ILP32)
14542                    int ok;
14543                   #else
14544                    error fail
14545                   #endif
14546
14547 _ACEOF
14548 if ac_fn_c_try_compile "$LINENO"
14549 then :
14550   gl_cv_host_cpu_c_abi_32bit=no
14551 else
14552   gl_cv_host_cpu_c_abi_32bit=yes
14553 fi
14554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14555            ;;
14556
14557          arm* | aarch64 )
14558            # Assume arm with EABI.
14559            # On arm64 systems, the C compiler may be generating code in one of
14560            # these ABIs:
14561            # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64.
14562            # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32.
14563            # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf.
14564            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14565 /* end confdefs.h.  */
14566 #if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32)
14567                    int ok;
14568                   #else
14569                    error fail
14570                   #endif
14571
14572 _ACEOF
14573 if ac_fn_c_try_compile "$LINENO"
14574 then :
14575   gl_cv_host_cpu_c_abi_32bit=no
14576 else
14577   gl_cv_host_cpu_c_abi_32bit=yes
14578 fi
14579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14580            ;;
14581
14582          hppa1.0 | hppa1.1 | hppa2.0* | hppa64 )
14583            # On hppa, the C compiler may be generating 32-bit code or 64-bit
14584            # code. In the latter case, it defines _LP64 and __LP64__.
14585            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14586 /* end confdefs.h.  */
14587 #ifdef __LP64__
14588                    int ok;
14589                   #else
14590                    error fail
14591                   #endif
14592
14593 _ACEOF
14594 if ac_fn_c_try_compile "$LINENO"
14595 then :
14596   gl_cv_host_cpu_c_abi_32bit=no
14597 else
14598   gl_cv_host_cpu_c_abi_32bit=yes
14599 fi
14600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14601            ;;
14602
14603          ia64* )
14604            # On ia64 on HP-UX, the C compiler may be generating 64-bit code or
14605            # 32-bit code. In the latter case, it defines _ILP32.
14606            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14607 /* end confdefs.h.  */
14608 #ifdef _ILP32
14609                    int ok;
14610                   #else
14611                    error fail
14612                   #endif
14613
14614 _ACEOF
14615 if ac_fn_c_try_compile "$LINENO"
14616 then :
14617   gl_cv_host_cpu_c_abi_32bit=yes
14618 else
14619   gl_cv_host_cpu_c_abi_32bit=no
14620 fi
14621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14622            ;;
14623
14624          mips* )
14625            # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this
14626            # at 32.
14627            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14628 /* end confdefs.h.  */
14629 #if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64)
14630                    int ok;
14631                   #else
14632                    error fail
14633                   #endif
14634
14635 _ACEOF
14636 if ac_fn_c_try_compile "$LINENO"
14637 then :
14638   gl_cv_host_cpu_c_abi_32bit=no
14639 else
14640   gl_cv_host_cpu_c_abi_32bit=yes
14641 fi
14642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14643            ;;
14644
14645          powerpc* )
14646            # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD.
14647            # No need to distinguish them here; the caller may distinguish
14648            # them based on the OS.
14649            # On powerpc64 systems, the C compiler may still be generating
14650            # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may
14651            # be generating 64-bit code.
14652            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14653 /* end confdefs.h.  */
14654 #if defined __powerpc64__ || defined _ARCH_PPC64
14655                    int ok;
14656                   #else
14657                    error fail
14658                   #endif
14659
14660 _ACEOF
14661 if ac_fn_c_try_compile "$LINENO"
14662 then :
14663   gl_cv_host_cpu_c_abi_32bit=no
14664 else
14665   gl_cv_host_cpu_c_abi_32bit=yes
14666 fi
14667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14668            ;;
14669
14670          rs6000 )
14671            gl_cv_host_cpu_c_abi_32bit=yes
14672            ;;
14673
14674          riscv32 | riscv64 )
14675            # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d.
14676            # Size of 'long' and 'void *':
14677            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h.  */
14679 #if defined __LP64__
14680                     int ok;
14681                   #else
14682                     error fail
14683                   #endif
14684
14685 _ACEOF
14686 if ac_fn_c_try_compile "$LINENO"
14687 then :
14688   gl_cv_host_cpu_c_abi_32bit=no
14689 else
14690   gl_cv_host_cpu_c_abi_32bit=yes
14691 fi
14692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14693            ;;
14694
14695          s390* )
14696            # On s390x, the C compiler may be generating 64-bit (= s390x) code
14697            # or 31-bit (= s390) code.
14698            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h.  */
14700 #if defined __LP64__ || defined __s390x__
14701                     int ok;
14702                   #else
14703                     error fail
14704                   #endif
14705
14706 _ACEOF
14707 if ac_fn_c_try_compile "$LINENO"
14708 then :
14709   gl_cv_host_cpu_c_abi_32bit=no
14710 else
14711   gl_cv_host_cpu_c_abi_32bit=yes
14712 fi
14713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14714            ;;
14715
14716          sparc | sparc64 )
14717            # UltraSPARCs running Linux have `uname -m` = "sparc64", but the
14718            # C compiler still generates 32-bit code.
14719            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h.  */
14721 #if defined __sparcv9 || defined __arch64__
14722                    int ok;
14723                   #else
14724                    error fail
14725                   #endif
14726
14727 _ACEOF
14728 if ac_fn_c_try_compile "$LINENO"
14729 then :
14730   gl_cv_host_cpu_c_abi_32bit=no
14731 else
14732   gl_cv_host_cpu_c_abi_32bit=yes
14733 fi
14734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14735            ;;
14736
14737          *)
14738            gl_cv_host_cpu_c_abi_32bit=no
14739            ;;
14740        esac
14741      fi
14742
14743 fi
14744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5
14745 printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; }
14746
14747   HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit"
14748
14749
14750
14751
14752
14753   case "$host_os" in
14754     solaris*)
14755       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
14756 printf %s "checking for 64-bit host... " >&6; }
14757 if test ${gl_cv_solaris_64bit+y}
14758 then :
14759   printf %s "(cached) " >&6
14760 else
14761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h.  */
14763 #ifdef _LP64
14764                  int ok;
14765                 #else
14766                  error fail
14767                 #endif
14768
14769 _ACEOF
14770 if ac_fn_c_try_compile "$LINENO"
14771 then :
14772   gl_cv_solaris_64bit=yes
14773 else
14774   gl_cv_solaris_64bit=no
14775 fi
14776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14777
14778 fi
14779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
14780 printf "%s\n" "$gl_cv_solaris_64bit" >&6; };;
14781   esac
14782
14783     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5
14784 printf %s "checking for the common suffixes of directories in the library search path... " >&6; }
14785 if test ${acl_cv_libdirstems+y}
14786 then :
14787   printf %s "(cached) " >&6
14788 else
14789   acl_libdirstem=lib
14790      acl_libdirstem2=
14791      case "$host_os" in
14792        solaris*)
14793                                                       if test $gl_cv_solaris_64bit = yes; then
14794            acl_libdirstem=lib/64
14795            case "$host_cpu" in
14796              sparc*)        acl_libdirstem2=lib/sparcv9 ;;
14797              i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
14798            esac
14799          fi
14800          ;;
14801        *)
14802                            if test "$HOST_CPU_C_ABI_32BIT" != yes; then
14803                                             searchpath=`(if test -f /usr/bin/gcc \
14804                            && LC_ALL=C /usr/bin/gcc -print-search-dirs >/dev/null 2>/dev/null; then \
14805                           LC_ALL=C /usr/bin/gcc -print-search-dirs; \
14806                         else \
14807                           LC_ALL=C $CC -print-search-dirs; \
14808                         fi) 2>/dev/null \
14809                        | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
14810            if test -n "$searchpath"; then
14811              acl_save_IFS="${IFS=       }"; IFS=":"
14812              for searchdir in $searchpath; do
14813                if test -d "$searchdir"; then
14814                  case "$searchdir" in
14815                    */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
14816                    */../ | */.. )
14817                      # Better ignore directories of this form. They are misleading.
14818                      ;;
14819                    *) searchdir=`cd "$searchdir" && pwd`
14820                       case "$searchdir" in
14821                         */lib64 ) acl_libdirstem=lib64 ;;
14822                       esac ;;
14823                  esac
14824                fi
14825              done
14826              IFS="$acl_save_IFS"
14827            fi
14828          fi
14829          ;;
14830      esac
14831      test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
14832      acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2"
14833
14834 fi
14835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5
14836 printf "%s\n" "$acl_cv_libdirstems" >&6; }
14837   # Decompose acl_cv_libdirstems into acl_libdirstem and acl_libdirstem2.
14838   acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'`
14839   acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e '/,/s/.*,//'`
14840
14841
14842
14843   gl_threads_api=none
14844   LIBTHREAD=
14845   LTLIBTHREAD=
14846   LIBMULTITHREAD=
14847   LTLIBMULTITHREAD=
14848   if test "$gl_use_threads" != no; then
14849         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5
14850 printf %s "checking whether imported symbols can be declared weak... " >&6; }
14851 if test ${gl_cv_have_weak+y}
14852 then :
14853   printf %s "(cached) " >&6
14854 else
14855   gl_cv_have_weak=no
14856               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14857 /* end confdefs.h.  */
14858 extern void xyzzy ();
14859 #pragma weak xyzzy
14860 int
14861 main (void)
14862 {
14863 xyzzy();
14864   ;
14865   return 0;
14866 }
14867 _ACEOF
14868 if ac_fn_c_try_link "$LINENO"
14869 then :
14870   gl_cv_have_weak=maybe
14871 fi
14872 rm -f core conftest.err conftest.$ac_objext \
14873     conftest$ac_exeext conftest.$ac_ext
14874        if test $gl_cv_have_weak = maybe; then
14875                            if test "$cross_compiling" = yes
14876 then :
14877                           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14878 /* end confdefs.h.  */
14879 #ifdef __ELF__
14880                Extensible Linking Format
14881                #endif
14882
14883 _ACEOF
14884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14885   $EGREP "Extensible Linking Format" >/dev/null 2>&1
14886 then :
14887   gl_cv_have_weak="guessing yes"
14888 else
14889   gl_cv_have_weak="guessing no"
14890 fi
14891 rm -rf conftest*
14892
14893
14894 else
14895   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14896 /* end confdefs.h.  */
14897
14898 #include <stdio.h>
14899 #pragma weak fputs
14900 int main ()
14901 {
14902   return (fputs == NULL);
14903 }
14904 _ACEOF
14905 if ac_fn_c_try_run "$LINENO"
14906 then :
14907   gl_cv_have_weak=yes
14908 else
14909   gl_cv_have_weak=no
14910 fi
14911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14912   conftest.$ac_objext conftest.beam conftest.$ac_ext
14913 fi
14914
14915        fi
14916               case " $LDFLAGS " in
14917          *" -static "*) gl_cv_have_weak=no ;;
14918        esac
14919
14920 fi
14921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5
14922 printf "%s\n" "$gl_cv_have_weak" >&6; }
14923             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports --as-needed" >&5
14924 printf %s "checking whether the linker supports --as-needed... " >&6; }
14925 if test ${gl_cv_linker_have_as_needed+y}
14926 then :
14927   printf %s "(cached) " >&6
14928 else
14929   if test -n "$GCC"; then
14930          gl_saved_ldflags="$LDFLAGS"
14931          LDFLAGS="$gl_saved_ldflags -Wl,--as-needed -Wl,--no-as-needed"
14932          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h.  */
14934
14935 int
14936 main (void)
14937 {
14938
14939   ;
14940   return 0;
14941 }
14942 _ACEOF
14943 if ac_fn_c_try_link "$LINENO"
14944 then :
14945   gl_cv_linker_have_as_needed=yes
14946 else
14947   gl_cv_linker_have_as_needed=no
14948 fi
14949 rm -f core conftest.err conftest.$ac_objext \
14950     conftest$ac_exeext conftest.$ac_ext
14951          LDFLAGS="$gl_saved_ldflags"
14952        else
14953          gl_cv_linker_have_as_needed=no
14954        fi
14955
14956 fi
14957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_linker_have_as_needed" >&5
14958 printf "%s\n" "$gl_cv_linker_have_as_needed" >&6; }
14959             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the linker supports --push-state" >&5
14960 printf %s "checking whether the linker supports --push-state... " >&6; }
14961 if test ${gl_cv_linker_have_push_state+y}
14962 then :
14963   printf %s "(cached) " >&6
14964 else
14965   if test -n "$GCC"; then
14966          gl_saved_ldflags="$LDFLAGS"
14967          LDFLAGS="$gl_saved_ldflags -Wl,--push-state -Wl,--pop-state"
14968          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14969 /* end confdefs.h.  */
14970
14971 int
14972 main (void)
14973 {
14974
14975   ;
14976   return 0;
14977 }
14978 _ACEOF
14979 if ac_fn_c_try_link "$LINENO"
14980 then :
14981   gl_cv_linker_have_push_state=yes
14982 else
14983   gl_cv_linker_have_push_state=no
14984 fi
14985 rm -f core conftest.err conftest.$ac_objext \
14986     conftest$ac_exeext conftest.$ac_ext
14987          LDFLAGS="$gl_saved_ldflags"
14988        else
14989          gl_cv_linker_have_push_state=no
14990        fi
14991
14992 fi
14993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_linker_have_push_state" >&5
14994 printf "%s\n" "$gl_cv_linker_have_push_state" >&6; }
14995     if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then
14996       # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that
14997       # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY.
14998       ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
14999 if test "x$ac_cv_header_pthread_h" = xyes
15000 then :
15001   gl_have_pthread_h=yes
15002 else
15003   gl_have_pthread_h=no
15004 fi
15005
15006       if test "$gl_have_pthread_h" = yes; then
15007         # Other possible tests:
15008         #   -lpthreads (FSU threads, PCthreads)
15009         #   -lgthreads
15010         gl_have_pthread=
15011         # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist
15012         # in libc. IRIX 6.5 has the first one in both libc and libpthread, but
15013         # the second one only in libpthread, and lock.c needs it.
15014         #
15015         # If -pthread works, prefer it to -lpthread, since Ubuntu 14.04
15016         # needs -pthread for some reason.  See:
15017         # https://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
15018         save_LIBS=$LIBS
15019         for gl_pthread in '' '-pthread'; do
15020           LIBS="$LIBS $gl_pthread"
15021           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h.  */
15023 #include <pthread.h>
15024                  pthread_mutex_t m;
15025                  pthread_mutexattr_t ma;
15026
15027 int
15028 main (void)
15029 {
15030 pthread_mutex_lock (&m);
15031                  pthread_mutexattr_init (&ma);
15032   ;
15033   return 0;
15034 }
15035 _ACEOF
15036 if ac_fn_c_try_link "$LINENO"
15037 then :
15038   gl_have_pthread=yes
15039              LIBTHREAD=$gl_pthread LTLIBTHREAD=$gl_pthread
15040              LIBMULTITHREAD=$gl_pthread LTLIBMULTITHREAD=$gl_pthread
15041 fi
15042 rm -f core conftest.err conftest.$ac_objext \
15043     conftest$ac_exeext conftest.$ac_ext
15044           LIBS=$save_LIBS
15045           test -n "$gl_have_pthread" && break
15046         done
15047
15048         # Test for libpthread by looking for pthread_kill. (Not pthread_self,
15049         # since it is defined as a macro on OSF/1.)
15050         if test -n "$gl_have_pthread" && test -z "$LIBTHREAD"; then
15051           # The program links fine without libpthread. But it may actually
15052           # need to link with libpthread in order to create multiple threads.
15053           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
15054 printf %s "checking for pthread_kill in -lpthread... " >&6; }
15055 if test ${ac_cv_lib_pthread_pthread_kill+y}
15056 then :
15057   printf %s "(cached) " >&6
15058 else
15059   ac_check_lib_save_LIBS=$LIBS
15060 LIBS="-lpthread  $LIBS"
15061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15062 /* end confdefs.h.  */
15063
15064 /* Override any GCC internal prototype to avoid an error.
15065    Use char because int might match the return type of a GCC
15066    builtin and then its argument prototype would still apply.  */
15067 #ifdef __cplusplus
15068 extern "C"
15069 #endif
15070 char pthread_kill ();
15071 int
15072 main (void)
15073 {
15074 return pthread_kill ();
15075   ;
15076   return 0;
15077 }
15078 _ACEOF
15079 if ac_fn_c_try_link "$LINENO"
15080 then :
15081   ac_cv_lib_pthread_pthread_kill=yes
15082 else
15083   ac_cv_lib_pthread_pthread_kill=no
15084 fi
15085 rm -f core conftest.err conftest.$ac_objext \
15086     conftest$ac_exeext conftest.$ac_ext
15087 LIBS=$ac_check_lib_save_LIBS
15088 fi
15089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
15090 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
15091 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
15092 then :
15093   LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
15094              # On Solaris and HP-UX, most pthread functions exist also in libc.
15095              # Therefore pthread_in_use() needs to actually try to create a
15096              # thread: pthread_create from libc will fail, whereas
15097              # pthread_create will actually create a thread.
15098              # On Solaris 10 or newer, this test is no longer needed, because
15099              # libc contains the fully functional pthread functions.
15100              case "$host_os" in
15101                solaris | solaris2.1-9 | solaris2.1-9.* | hpux*)
15102
15103 printf "%s\n" "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h
15104
15105              esac
15106
15107 fi
15108
15109         elif test -z "$gl_have_pthread"; then
15110           # Some library is needed. Try libpthread and libc_r.
15111           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5
15112 printf %s "checking for pthread_kill in -lpthread... " >&6; }
15113 if test ${ac_cv_lib_pthread_pthread_kill+y}
15114 then :
15115   printf %s "(cached) " >&6
15116 else
15117   ac_check_lib_save_LIBS=$LIBS
15118 LIBS="-lpthread  $LIBS"
15119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15120 /* end confdefs.h.  */
15121
15122 /* Override any GCC internal prototype to avoid an error.
15123    Use char because int might match the return type of a GCC
15124    builtin and then its argument prototype would still apply.  */
15125 #ifdef __cplusplus
15126 extern "C"
15127 #endif
15128 char pthread_kill ();
15129 int
15130 main (void)
15131 {
15132 return pthread_kill ();
15133   ;
15134   return 0;
15135 }
15136 _ACEOF
15137 if ac_fn_c_try_link "$LINENO"
15138 then :
15139   ac_cv_lib_pthread_pthread_kill=yes
15140 else
15141   ac_cv_lib_pthread_pthread_kill=no
15142 fi
15143 rm -f core conftest.err conftest.$ac_objext \
15144     conftest$ac_exeext conftest.$ac_ext
15145 LIBS=$ac_check_lib_save_LIBS
15146 fi
15147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5
15148 printf "%s\n" "$ac_cv_lib_pthread_pthread_kill" >&6; }
15149 if test "x$ac_cv_lib_pthread_pthread_kill" = xyes
15150 then :
15151   gl_have_pthread=yes
15152              LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread
15153              LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread
15154 fi
15155
15156           if test -z "$gl_have_pthread"; then
15157             # For FreeBSD 4.
15158             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5
15159 printf %s "checking for pthread_kill in -lc_r... " >&6; }
15160 if test ${ac_cv_lib_c_r_pthread_kill+y}
15161 then :
15162   printf %s "(cached) " >&6
15163 else
15164   ac_check_lib_save_LIBS=$LIBS
15165 LIBS="-lc_r  $LIBS"
15166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15167 /* end confdefs.h.  */
15168
15169 /* Override any GCC internal prototype to avoid an error.
15170    Use char because int might match the return type of a GCC
15171    builtin and then its argument prototype would still apply.  */
15172 #ifdef __cplusplus
15173 extern "C"
15174 #endif
15175 char pthread_kill ();
15176 int
15177 main (void)
15178 {
15179 return pthread_kill ();
15180   ;
15181   return 0;
15182 }
15183 _ACEOF
15184 if ac_fn_c_try_link "$LINENO"
15185 then :
15186   ac_cv_lib_c_r_pthread_kill=yes
15187 else
15188   ac_cv_lib_c_r_pthread_kill=no
15189 fi
15190 rm -f core conftest.err conftest.$ac_objext \
15191     conftest$ac_exeext conftest.$ac_ext
15192 LIBS=$ac_check_lib_save_LIBS
15193 fi
15194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5
15195 printf "%s\n" "$ac_cv_lib_c_r_pthread_kill" >&6; }
15196 if test "x$ac_cv_lib_c_r_pthread_kill" = xyes
15197 then :
15198   gl_have_pthread=yes
15199                LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r
15200                LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r
15201 fi
15202
15203           fi
15204         fi
15205         if test -n "$gl_have_pthread"; then
15206           gl_threads_api=posix
15207
15208 printf "%s\n" "#define USE_POSIX_THREADS 1" >>confdefs.h
15209
15210           if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
15211             if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
15212
15213 printf "%s\n" "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h
15214
15215               LIBTHREAD=
15216               LTLIBTHREAD=
15217                                                                       case "$LIBMULTITHREAD" in
15218                 "") ;;
15219                 -pthread)
15220                   if test $gl_cv_linker_have_as_needed = yes; then
15221                     if test $gl_cv_linker_have_push_state = yes; then
15222                       LIBMULTITHREAD="$LIBMULTITHREAD -Wl,--push-state -Wl,--no-as-needed -lpthread -Wl,--pop-state"
15223                     else
15224                       LIBMULTITHREAD="$LIBMULTITHREAD -Wl,--no-as-needed -lpthread"
15225                     fi
15226                   fi
15227                   ;;
15228                 *)
15229                   if test $gl_cv_linker_have_as_needed = yes; then
15230                     if test $gl_cv_linker_have_push_state = yes; then
15231                       LIBMULTITHREAD="-Wl,--push-state -Wl,--no-as-needed $LIBMULTITHREAD -Wl,--pop-state"
15232                     else
15233                       LIBMULTITHREAD="-Wl,--no-as-needed $LIBMULTITHREAD"
15234                     fi
15235                   fi
15236                   ;;
15237               esac
15238               # TODO: May need to modify LTLIBMULTITHREAD similarly.
15239             fi
15240           fi
15241         fi
15242       fi
15243     fi
15244     if test -z "$gl_have_pthread"; then
15245       if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then
15246         gl_have_solaristhread=
15247         gl_save_LIBS="$LIBS"
15248         LIBS="$LIBS -lthread"
15249         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15250 /* end confdefs.h.  */
15251
15252 #include <thread.h>
15253 #include <synch.h>
15254
15255 int
15256 main (void)
15257 {
15258 thr_self();
15259   ;
15260   return 0;
15261 }
15262 _ACEOF
15263 if ac_fn_c_try_link "$LINENO"
15264 then :
15265   gl_have_solaristhread=yes
15266 fi
15267 rm -f core conftest.err conftest.$ac_objext \
15268     conftest$ac_exeext conftest.$ac_ext
15269         LIBS="$gl_save_LIBS"
15270         if test -n "$gl_have_solaristhread"; then
15271           gl_threads_api=solaris
15272           LIBTHREAD=-lthread
15273           LTLIBTHREAD=-lthread
15274           LIBMULTITHREAD="$LIBTHREAD"
15275           LTLIBMULTITHREAD="$LTLIBTHREAD"
15276
15277 printf "%s\n" "#define USE_SOLARIS_THREADS 1" >>confdefs.h
15278
15279           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
15280
15281 printf "%s\n" "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h
15282
15283             LIBTHREAD=
15284             LTLIBTHREAD=
15285                                                             if test $gl_cv_linker_have_as_needed = yes; then
15286               if test $gl_cv_linker_have_push_state = yes; then
15287                 LIBMULTITHREAD="-Wl,--push-state -Wl,--no-as-needed $LIBMULTITHREAD -Wl,--pop-state"
15288               else
15289                 LIBMULTITHREAD="-Wl,--no-as-needed $LIBMULTITHREAD"
15290               fi
15291             fi
15292             # TODO: May need to modify LTLIBMULTITHREAD similarly.
15293           fi
15294         fi
15295       fi
15296     fi
15297     if test "$gl_use_threads" = pth; then
15298       gl_save_CPPFLAGS="$CPPFLAGS"
15299
15300
15301
15302
15303
15304   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5
15305 printf %s "checking how to link with libpth... " >&6; }
15306 if test ${ac_cv_libpth_libs+y}
15307 then :
15308   printf %s "(cached) " >&6
15309 else
15310
15311
15312
15313
15314
15315
15316
15317     use_additional=yes
15318
15319   acl_save_prefix="$prefix"
15320   prefix="$acl_final_prefix"
15321   acl_save_exec_prefix="$exec_prefix"
15322   exec_prefix="$acl_final_exec_prefix"
15323
15324     eval additional_includedir=\"$includedir\"
15325     eval additional_libdir=\"$libdir\"
15326
15327   exec_prefix="$acl_save_exec_prefix"
15328   prefix="$acl_save_prefix"
15329
15330
15331 # Check whether --with-libpth-prefix was given.
15332 if test ${with_libpth_prefix+y}
15333 then :
15334   withval=$with_libpth_prefix;
15335     if test "X$withval" = "Xno"; then
15336       use_additional=no
15337     else
15338       if test "X$withval" = "X"; then
15339
15340   acl_save_prefix="$prefix"
15341   prefix="$acl_final_prefix"
15342   acl_save_exec_prefix="$exec_prefix"
15343   exec_prefix="$acl_final_exec_prefix"
15344
15345           eval additional_includedir=\"$includedir\"
15346           eval additional_libdir=\"$libdir\"
15347
15348   exec_prefix="$acl_save_exec_prefix"
15349   prefix="$acl_save_prefix"
15350
15351       else
15352         additional_includedir="$withval/include"
15353         additional_libdir="$withval/$acl_libdirstem"
15354         if test "$acl_libdirstem2" != "$acl_libdirstem" \
15355            && test ! -d "$withval/$acl_libdirstem"; then
15356           additional_libdir="$withval/$acl_libdirstem2"
15357         fi
15358       fi
15359     fi
15360
15361 fi
15362
15363       LIBPTH=
15364   LTLIBPTH=
15365   INCPTH=
15366   LIBPTH_PREFIX=
15367       HAVE_LIBPTH=
15368   rpathdirs=
15369   ltrpathdirs=
15370   names_already_handled=
15371   names_next_round='pth '
15372   while test -n "$names_next_round"; do
15373     names_this_round="$names_next_round"
15374     names_next_round=
15375     for name in $names_this_round; do
15376       already_handled=
15377       for n in $names_already_handled; do
15378         if test "$n" = "$name"; then
15379           already_handled=yes
15380           break
15381         fi
15382       done
15383       if test -z "$already_handled"; then
15384         names_already_handled="$names_already_handled $name"
15385                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
15386         eval value=\"\$HAVE_LIB$uppername\"
15387         if test -n "$value"; then
15388           if test "$value" = yes; then
15389             eval value=\"\$LIB$uppername\"
15390             test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value"
15391             eval value=\"\$LTLIB$uppername\"
15392             test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value"
15393           else
15394                                     :
15395           fi
15396         else
15397                               found_dir=
15398           found_la=
15399           found_so=
15400           found_a=
15401           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
15402           if test -n "$acl_shlibext"; then
15403             shrext=".$acl_shlibext"             # typically: shrext=.so
15404           else
15405             shrext=
15406           fi
15407           if test $use_additional = yes; then
15408             dir="$additional_libdir"
15409                                     if test -n "$acl_shlibext"; then
15410               if test -f "$dir/$libname$shrext"; then
15411                 found_dir="$dir"
15412                 found_so="$dir/$libname$shrext"
15413               else
15414                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15415                   ver=`(cd "$dir" && \
15416                         for f in "$libname$shrext".*; do echo "$f"; done \
15417                         | sed -e "s,^$libname$shrext\\\\.,," \
15418                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15419                         | sed 1q ) 2>/dev/null`
15420                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15421                     found_dir="$dir"
15422                     found_so="$dir/$libname$shrext.$ver"
15423                   fi
15424                 else
15425                   eval library_names=\"$acl_library_names_spec\"
15426                   for f in $library_names; do
15427                     if test -f "$dir/$f"; then
15428                       found_dir="$dir"
15429                       found_so="$dir/$f"
15430                       break
15431                     fi
15432                   done
15433                 fi
15434               fi
15435             fi
15436                         if test "X$found_dir" = "X"; then
15437               if test -f "$dir/$libname.$acl_libext"; then
15438                 found_dir="$dir"
15439                 found_a="$dir/$libname.$acl_libext"
15440               fi
15441             fi
15442             if test "X$found_dir" != "X"; then
15443               if test -f "$dir/$libname.la"; then
15444                 found_la="$dir/$libname.la"
15445               fi
15446             fi
15447           fi
15448           if test "X$found_dir" = "X"; then
15449             for x in $LDFLAGS $LTLIBPTH; do
15450
15451   acl_save_prefix="$prefix"
15452   prefix="$acl_final_prefix"
15453   acl_save_exec_prefix="$exec_prefix"
15454   exec_prefix="$acl_final_exec_prefix"
15455   eval x=\"$x\"
15456   exec_prefix="$acl_save_exec_prefix"
15457   prefix="$acl_save_prefix"
15458
15459               case "$x" in
15460                 -L*)
15461                   dir=`echo "X$x" | sed -e 's/^X-L//'`
15462                                     if test -n "$acl_shlibext"; then
15463                     if test -f "$dir/$libname$shrext"; then
15464                       found_dir="$dir"
15465                       found_so="$dir/$libname$shrext"
15466                     else
15467                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
15468                         ver=`(cd "$dir" && \
15469                               for f in "$libname$shrext".*; do echo "$f"; done \
15470                               | sed -e "s,^$libname$shrext\\\\.,," \
15471                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
15472                               | sed 1q ) 2>/dev/null`
15473                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
15474                           found_dir="$dir"
15475                           found_so="$dir/$libname$shrext.$ver"
15476                         fi
15477                       else
15478                         eval library_names=\"$acl_library_names_spec\"
15479                         for f in $library_names; do
15480                           if test -f "$dir/$f"; then
15481                             found_dir="$dir"
15482                             found_so="$dir/$f"
15483                             break
15484                           fi
15485                         done
15486                       fi
15487                     fi
15488                   fi
15489                                     if test "X$found_dir" = "X"; then
15490                     if test -f "$dir/$libname.$acl_libext"; then
15491                       found_dir="$dir"
15492                       found_a="$dir/$libname.$acl_libext"
15493                     fi
15494                   fi
15495                   if test "X$found_dir" != "X"; then
15496                     if test -f "$dir/$libname.la"; then
15497                       found_la="$dir/$libname.la"
15498                     fi
15499                   fi
15500                   ;;
15501               esac
15502               if test "X$found_dir" != "X"; then
15503                 break
15504               fi
15505             done
15506           fi
15507           if test "X$found_dir" != "X"; then
15508                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name"
15509             if test "X$found_so" != "X"; then
15510                                                         if test "$enable_rpath" = no \
15511                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
15512                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
15513                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
15514               else
15515                                                                                 haveit=
15516                 for x in $ltrpathdirs; do
15517                   if test "X$x" = "X$found_dir"; then
15518                     haveit=yes
15519                     break
15520                   fi
15521                 done
15522                 if test -z "$haveit"; then
15523                   ltrpathdirs="$ltrpathdirs $found_dir"
15524                 fi
15525                                 if test "$acl_hardcode_direct" = yes; then
15526                                                       LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
15527                 else
15528                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
15529                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
15530                                                             haveit=
15531                     for x in $rpathdirs; do
15532                       if test "X$x" = "X$found_dir"; then
15533                         haveit=yes
15534                         break
15535                       fi
15536                     done
15537                     if test -z "$haveit"; then
15538                       rpathdirs="$rpathdirs $found_dir"
15539                     fi
15540                   else
15541                                                                                 haveit=
15542                     for x in $LDFLAGS $LIBPTH; do
15543
15544   acl_save_prefix="$prefix"
15545   prefix="$acl_final_prefix"
15546   acl_save_exec_prefix="$exec_prefix"
15547   exec_prefix="$acl_final_exec_prefix"
15548   eval x=\"$x\"
15549   exec_prefix="$acl_save_exec_prefix"
15550   prefix="$acl_save_prefix"
15551
15552                       if test "X$x" = "X-L$found_dir"; then
15553                         haveit=yes
15554                         break
15555                       fi
15556                     done
15557                     if test -z "$haveit"; then
15558                       LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir"
15559                     fi
15560                     if test "$acl_hardcode_minus_L" != no; then
15561                                                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so"
15562                     else
15563                                                                                                                                                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
15564                     fi
15565                   fi
15566                 fi
15567               fi
15568             else
15569               if test "X$found_a" != "X"; then
15570                                 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a"
15571               else
15572                                                 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name"
15573               fi
15574             fi
15575                         additional_includedir=
15576             case "$found_dir" in
15577               */$acl_libdirstem | */$acl_libdirstem/)
15578                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
15579                 if test "$name" = 'pth'; then
15580                   LIBPTH_PREFIX="$basedir"
15581                 fi
15582                 additional_includedir="$basedir/include"
15583                 ;;
15584               */$acl_libdirstem2 | */$acl_libdirstem2/)
15585                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
15586                 if test "$name" = 'pth'; then
15587                   LIBPTH_PREFIX="$basedir"
15588                 fi
15589                 additional_includedir="$basedir/include"
15590                 ;;
15591             esac
15592             if test "X$additional_includedir" != "X"; then
15593                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
15594                 haveit=
15595                 if test "X$additional_includedir" = "X/usr/local/include"; then
15596                   if test -n "$GCC"; then
15597                     case $host_os in
15598                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15599                     esac
15600                   fi
15601                 fi
15602                 if test -z "$haveit"; then
15603                   for x in $CPPFLAGS $INCPTH; do
15604
15605   acl_save_prefix="$prefix"
15606   prefix="$acl_final_prefix"
15607   acl_save_exec_prefix="$exec_prefix"
15608   exec_prefix="$acl_final_exec_prefix"
15609   eval x=\"$x\"
15610   exec_prefix="$acl_save_exec_prefix"
15611   prefix="$acl_save_prefix"
15612
15613                     if test "X$x" = "X-I$additional_includedir"; then
15614                       haveit=yes
15615                       break
15616                     fi
15617                   done
15618                   if test -z "$haveit"; then
15619                     if test -d "$additional_includedir"; then
15620                                             INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir"
15621                     fi
15622                   fi
15623                 fi
15624               fi
15625             fi
15626                         if test -n "$found_la"; then
15627                                                         save_libdir="$libdir"
15628               case "$found_la" in
15629                 */* | *\\*) . "$found_la" ;;
15630                 *) . "./$found_la" ;;
15631               esac
15632               libdir="$save_libdir"
15633                             for dep in $dependency_libs; do
15634                 case "$dep" in
15635                   -L*)
15636                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
15637                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
15638                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
15639                       haveit=
15640                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
15641                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
15642                         if test -n "$GCC"; then
15643                           case $host_os in
15644                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
15645                           esac
15646                         fi
15647                       fi
15648                       if test -z "$haveit"; then
15649                         haveit=
15650                         for x in $LDFLAGS $LIBPTH; do
15651
15652   acl_save_prefix="$prefix"
15653   prefix="$acl_final_prefix"
15654   acl_save_exec_prefix="$exec_prefix"
15655   exec_prefix="$acl_final_exec_prefix"
15656   eval x=\"$x\"
15657   exec_prefix="$acl_save_exec_prefix"
15658   prefix="$acl_save_prefix"
15659
15660                           if test "X$x" = "X-L$additional_libdir"; then
15661                             haveit=yes
15662                             break
15663                           fi
15664                         done
15665                         if test -z "$haveit"; then
15666                           if test -d "$additional_libdir"; then
15667                                                         LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir"
15668                           fi
15669                         fi
15670                         haveit=
15671                         for x in $LDFLAGS $LTLIBPTH; do
15672
15673   acl_save_prefix="$prefix"
15674   prefix="$acl_final_prefix"
15675   acl_save_exec_prefix="$exec_prefix"
15676   exec_prefix="$acl_final_exec_prefix"
15677   eval x=\"$x\"
15678   exec_prefix="$acl_save_exec_prefix"
15679   prefix="$acl_save_prefix"
15680
15681                           if test "X$x" = "X-L$additional_libdir"; then
15682                             haveit=yes
15683                             break
15684                           fi
15685                         done
15686                         if test -z "$haveit"; then
15687                           if test -d "$additional_libdir"; then
15688                                                         LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir"
15689                           fi
15690                         fi
15691                       fi
15692                     fi
15693                     ;;
15694                   -R*)
15695                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
15696                     if test "$enable_rpath" != no; then
15697                                                                   haveit=
15698                       for x in $rpathdirs; do
15699                         if test "X$x" = "X$dir"; then
15700                           haveit=yes
15701                           break
15702                         fi
15703                       done
15704                       if test -z "$haveit"; then
15705                         rpathdirs="$rpathdirs $dir"
15706                       fi
15707                                                                   haveit=
15708                       for x in $ltrpathdirs; do
15709                         if test "X$x" = "X$dir"; then
15710                           haveit=yes
15711                           break
15712                         fi
15713                       done
15714                       if test -z "$haveit"; then
15715                         ltrpathdirs="$ltrpathdirs $dir"
15716                       fi
15717                     fi
15718                     ;;
15719                   -l*)
15720                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
15721                     ;;
15722                   *.la)
15723                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
15724                     ;;
15725                   *)
15726                                         LIBPTH="${LIBPTH}${LIBPTH:+ }$dep"
15727                     LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep"
15728                     ;;
15729                 esac
15730               done
15731             fi
15732           else
15733                                                             LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name"
15734             LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name"
15735           fi
15736         fi
15737       fi
15738     done
15739   done
15740   if test "X$rpathdirs" != "X"; then
15741     if test -n "$acl_hardcode_libdir_separator"; then
15742                         alldirs=
15743       for found_dir in $rpathdirs; do
15744         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
15745       done
15746             acl_save_libdir="$libdir"
15747       libdir="$alldirs"
15748       eval flag=\"$acl_hardcode_libdir_flag_spec\"
15749       libdir="$acl_save_libdir"
15750       LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
15751     else
15752             for found_dir in $rpathdirs; do
15753         acl_save_libdir="$libdir"
15754         libdir="$found_dir"
15755         eval flag=\"$acl_hardcode_libdir_flag_spec\"
15756         libdir="$acl_save_libdir"
15757         LIBPTH="${LIBPTH}${LIBPTH:+ }$flag"
15758       done
15759     fi
15760   fi
15761   if test "X$ltrpathdirs" != "X"; then
15762             for found_dir in $ltrpathdirs; do
15763       LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir"
15764     done
15765   fi
15766
15767
15768
15769
15770
15771     ac_cv_libpth_libs="$LIBPTH"
15772     ac_cv_libpth_ltlibs="$LTLIBPTH"
15773     ac_cv_libpth_cppflags="$INCPTH"
15774     ac_cv_libpth_prefix="$LIBPTH_PREFIX"
15775
15776 fi
15777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5
15778 printf "%s\n" "$ac_cv_libpth_libs" >&6; }
15779   LIBPTH="$ac_cv_libpth_libs"
15780   LTLIBPTH="$ac_cv_libpth_ltlibs"
15781   INCPTH="$ac_cv_libpth_cppflags"
15782   LIBPTH_PREFIX="$ac_cv_libpth_prefix"
15783
15784   for element in $INCPTH; do
15785     haveit=
15786     for x in $CPPFLAGS; do
15787
15788   acl_save_prefix="$prefix"
15789   prefix="$acl_final_prefix"
15790   acl_save_exec_prefix="$exec_prefix"
15791   exec_prefix="$acl_final_exec_prefix"
15792   eval x=\"$x\"
15793   exec_prefix="$acl_save_exec_prefix"
15794   prefix="$acl_save_prefix"
15795
15796       if test "X$x" = "X$element"; then
15797         haveit=yes
15798         break
15799       fi
15800     done
15801     if test -z "$haveit"; then
15802       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
15803     fi
15804   done
15805
15806
15807
15808
15809       HAVE_LIBPTH=yes
15810
15811
15812
15813       gl_have_pth=
15814       gl_save_LIBS="$LIBS"
15815       LIBS="$LIBS $LIBPTH"
15816       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817 /* end confdefs.h.  */
15818 #include <pth.h>
15819 int
15820 main (void)
15821 {
15822 pth_self();
15823   ;
15824   return 0;
15825 }
15826 _ACEOF
15827 if ac_fn_c_try_link "$LINENO"
15828 then :
15829   gl_have_pth=yes
15830 fi
15831 rm -f core conftest.err conftest.$ac_objext \
15832     conftest$ac_exeext conftest.$ac_ext
15833       LIBS="$gl_save_LIBS"
15834       if test -n "$gl_have_pth"; then
15835         gl_threads_api=pth
15836         LIBTHREAD="$LIBPTH"
15837         LTLIBTHREAD="$LTLIBPTH"
15838         LIBMULTITHREAD="$LIBTHREAD"
15839         LTLIBMULTITHREAD="$LTLIBTHREAD"
15840
15841 printf "%s\n" "#define USE_PTH_THREADS 1" >>confdefs.h
15842
15843         if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then
15844           if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then
15845
15846 printf "%s\n" "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h
15847
15848             LIBTHREAD=
15849             LTLIBTHREAD=
15850                                                             if test $gl_cv_linker_have_as_needed = yes; then
15851               if test $gl_cv_linker_have_push_state = yes; then
15852                 LIBMULTITHREAD="-Wl,--push-state -Wl,--no-as-needed $LIBMULTITHREAD -Wl,--pop-state"
15853               else
15854                 LIBMULTITHREAD="-Wl,--no-as-needed $LIBMULTITHREAD"
15855               fi
15856             fi
15857             # TODO: May need to modify LTLIBMULTITHREAD similarly.
15858           fi
15859         fi
15860       else
15861         CPPFLAGS="$gl_save_CPPFLAGS"
15862       fi
15863     fi
15864     if test -z "$gl_have_pthread"; then
15865       case "$gl_use_threads" in
15866         yes | windows | win32) # The 'win32' is for backward compatibility.
15867           if { case "$host_os" in
15868                  mingw*) true;;
15869                  *) false;;
15870                esac
15871              }; then
15872             gl_threads_api=windows
15873
15874 printf "%s\n" "#define USE_WINDOWS_THREADS 1" >>confdefs.h
15875
15876           fi
15877           ;;
15878       esac
15879     fi
15880   fi
15881   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5
15882 printf %s "checking for multithread API to use... " >&6; }
15883   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5
15884 printf "%s\n" "$gl_threads_api" >&6; }
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
15896 printf %s "checking for a sed that does not truncate output... " >&6; }
15897 if test ${ac_cv_path_SED+y}
15898 then :
15899   printf %s "(cached) " >&6
15900 else
15901             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
15902      for ac_i in 1 2 3 4 5 6 7; do
15903        ac_script="$ac_script$as_nl$ac_script"
15904      done
15905      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
15906      { ac_script=; unset ac_script;}
15907      if test -z "$SED"; then
15908   ac_path_SED_found=false
15909   # Loop through the user's path and test for each of PROGNAME-LIST
15910   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15911 for as_dir in $PATH
15912 do
15913   IFS=$as_save_IFS
15914   case $as_dir in #(((
15915     '') as_dir=./ ;;
15916     */) ;;
15917     *) as_dir=$as_dir/ ;;
15918   esac
15919     for ac_prog in sed gsed
15920    do
15921     for ac_exec_ext in '' $ac_executable_extensions; do
15922       ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
15923       as_fn_executable_p "$ac_path_SED" || continue
15924 # Check for GNU ac_path_SED and select it if it is found.
15925   # Check for GNU $ac_path_SED
15926 case `"$ac_path_SED" --version 2>&1` in
15927 *GNU*)
15928   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
15929 *)
15930   ac_count=0
15931   printf %s 0123456789 >"conftest.in"
15932   while :
15933   do
15934     cat "conftest.in" "conftest.in" >"conftest.tmp"
15935     mv "conftest.tmp" "conftest.in"
15936     cp "conftest.in" "conftest.nl"
15937     printf "%s\n" '' >> "conftest.nl"
15938     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
15939     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
15940     as_fn_arith $ac_count + 1 && ac_count=$as_val
15941     if test $ac_count -gt ${ac_path_SED_max-0}; then
15942       # Best one so far, save it but keep looking for a better one
15943       ac_cv_path_SED="$ac_path_SED"
15944       ac_path_SED_max=$ac_count
15945     fi
15946     # 10*(2^10) chars as input seems more than enough
15947     test $ac_count -gt 10 && break
15948   done
15949   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
15950 esac
15951
15952       $ac_path_SED_found && break 3
15953     done
15954   done
15955   done
15956 IFS=$as_save_IFS
15957   if test -z "$ac_cv_path_SED"; then
15958     as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
15959   fi
15960 else
15961   ac_cv_path_SED=$SED
15962 fi
15963
15964 fi
15965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
15966 printf "%s\n" "$ac_cv_path_SED" >&6; }
15967  SED="$ac_cv_path_SED"
15968   rm -f conftest.sed
15969
15970 # Autoupdate added the following line to ensure that your configure
15971 # script's behavior did not change.  It is probably safe to remove.
15972
15973
15974
15975       ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
15976 if test "x$ac_cv_header_stdlib_h" = xyes
15977 then :
15978   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
15979
15980 fi
15981
15982   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
15983 printf %s "checking for GNU libc compatible malloc... " >&6; }
15984 if test ${ac_cv_func_malloc_0_nonnull+y}
15985 then :
15986   printf %s "(cached) " >&6
15987 else
15988   if test "$cross_compiling" = yes
15989 then :
15990   case "$host_os" in
15991           # Guess yes on platforms where we know the result.
15992           *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \
15993           | hpux* | solaris* | cygwin* | mingw*)
15994             ac_cv_func_malloc_0_nonnull=yes ;;
15995           # If we don't know, assume the worst.
15996           *) ac_cv_func_malloc_0_nonnull=no ;;
15997         esac
15998
15999 else
16000   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16001 /* end confdefs.h.  */
16002 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
16003             # include <stdlib.h>
16004             #else
16005             char *malloc ();
16006             #endif
16007
16008 int
16009 main (void)
16010 {
16011 char *p = malloc (0);
16012             int result = !p;
16013             free (p);
16014             return result;
16015   ;
16016   return 0;
16017 }
16018
16019 _ACEOF
16020 if ac_fn_c_try_run "$LINENO"
16021 then :
16022   ac_cv_func_malloc_0_nonnull=yes
16023 else
16024   ac_cv_func_malloc_0_nonnull=no
16025 fi
16026 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16027   conftest.$ac_objext conftest.beam conftest.$ac_ext
16028 fi
16029
16030
16031 fi
16032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
16033 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
16034   if test $ac_cv_func_malloc_0_nonnull = yes
16035 then :
16036   gl_cv_func_malloc_0_nonnull=1
16037 else
16038   gl_cv_func_malloc_0_nonnull=0
16039 fi
16040
16041
16042 printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h
16043
16044
16045
16046
16047
16048
16049   GNULIB_EXPLICIT_BZERO=0;
16050   GNULIB_FFSL=0;
16051   GNULIB_FFSLL=0;
16052   GNULIB_MEMCHR=0;
16053   GNULIB_MEMMEM=0;
16054   GNULIB_MEMPCPY=0;
16055   GNULIB_MEMRCHR=0;
16056   GNULIB_RAWMEMCHR=0;
16057   GNULIB_STPCPY=0;
16058   GNULIB_STPNCPY=0;
16059   GNULIB_STRCHRNUL=0;
16060   GNULIB_STRDUP=0;
16061   GNULIB_STRNCAT=0;
16062   GNULIB_STRNDUP=0;
16063   GNULIB_STRNLEN=0;
16064   GNULIB_STRPBRK=0;
16065   GNULIB_STRSEP=0;
16066   GNULIB_STRSTR=0;
16067   GNULIB_STRCASESTR=0;
16068   GNULIB_STRTOK_R=0;
16069   GNULIB_MBSLEN=0;
16070   GNULIB_MBSNLEN=0;
16071   GNULIB_MBSCHR=0;
16072   GNULIB_MBSRCHR=0;
16073   GNULIB_MBSSTR=0;
16074   GNULIB_MBSCASECMP=0;
16075   GNULIB_MBSNCASECMP=0;
16076   GNULIB_MBSPCASECMP=0;
16077   GNULIB_MBSCASESTR=0;
16078   GNULIB_MBSCSPN=0;
16079   GNULIB_MBSPBRK=0;
16080   GNULIB_MBSSPN=0;
16081   GNULIB_MBSSEP=0;
16082   GNULIB_MBSTOK_R=0;
16083   GNULIB_STRERROR=0;
16084   GNULIB_STRERROR_R=0;
16085   GNULIB_STRSIGNAL=0;
16086   GNULIB_STRVERSCMP=0;
16087   HAVE_MBSLEN=0;
16088     HAVE_EXPLICIT_BZERO=1;
16089   HAVE_FFSL=1;
16090   HAVE_FFSLL=1;
16091   HAVE_MEMCHR=1;
16092   HAVE_DECL_MEMMEM=1;
16093   HAVE_MEMPCPY=1;
16094   HAVE_DECL_MEMRCHR=1;
16095   HAVE_RAWMEMCHR=1;
16096   HAVE_STPCPY=1;
16097   HAVE_STPNCPY=1;
16098   HAVE_STRCHRNUL=1;
16099   HAVE_DECL_STRDUP=1;
16100   HAVE_DECL_STRNDUP=1;
16101   HAVE_DECL_STRNLEN=1;
16102   HAVE_STRPBRK=1;
16103   HAVE_STRSEP=1;
16104   HAVE_STRCASESTR=1;
16105   HAVE_DECL_STRTOK_R=1;
16106   HAVE_DECL_STRERROR_R=1;
16107   HAVE_DECL_STRSIGNAL=1;
16108   HAVE_STRVERSCMP=1;
16109   REPLACE_MEMCHR=0;
16110   REPLACE_MEMMEM=0;
16111   REPLACE_STPNCPY=0;
16112   REPLACE_STRCHRNUL=0;
16113   REPLACE_STRDUP=0;
16114   REPLACE_STRNCAT=0;
16115   REPLACE_STRNDUP=0;
16116   REPLACE_STRNLEN=0;
16117   REPLACE_STRSTR=0;
16118   REPLACE_STRCASESTR=0;
16119   REPLACE_STRTOK_R=0;
16120   REPLACE_STRERROR=0;
16121   REPLACE_STRERROR_R=0;
16122   REPLACE_STRSIGNAL=0;
16123   UNDEFINE_STRTOK_R=0;
16124
16125
16126
16127
16128
16129
16130   # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
16131   # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
16132   # irrelevant for anonymous mappings.
16133   ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
16134 if test "x$ac_cv_func_mmap" = xyes
16135 then :
16136   gl_have_mmap=yes
16137 else
16138   gl_have_mmap=no
16139 fi
16140
16141
16142   # Try to allow MAP_ANONYMOUS.
16143   gl_have_mmap_anonymous=no
16144   if test $gl_have_mmap = yes; then
16145     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
16146 printf %s "checking for MAP_ANONYMOUS... " >&6; }
16147     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16148 /* end confdefs.h.  */
16149
16150 #include <sys/mman.h>
16151 #ifdef MAP_ANONYMOUS
16152     I cannot identify this map
16153 #endif
16154
16155 _ACEOF
16156 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16157   $EGREP "I cannot identify this map" >/dev/null 2>&1
16158 then :
16159   gl_have_mmap_anonymous=yes
16160 fi
16161 rm -rf conftest*
16162
16163     if test $gl_have_mmap_anonymous != yes; then
16164       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16165 /* end confdefs.h.  */
16166
16167 #include <sys/mman.h>
16168 #ifdef MAP_ANON
16169     I cannot identify this map
16170 #endif
16171
16172 _ACEOF
16173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16174   $EGREP "I cannot identify this map" >/dev/null 2>&1
16175 then :
16176
16177 printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
16178
16179          gl_have_mmap_anonymous=yes
16180 fi
16181 rm -rf conftest*
16182
16183     fi
16184     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
16185 printf "%s\n" "$gl_have_mmap_anonymous" >&6; }
16186     if test $gl_have_mmap_anonymous = yes; then
16187
16188 printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
16189
16190     fi
16191   fi
16192
16193
16194
16195
16196
16197
16198   if test $HAVE_MEMCHR = 1; then
16199     # Detect platform-specific bugs in some versions of glibc:
16200     # memchr should not dereference anything with length 0
16201     #   https://bugzilla.redhat.com/show_bug.cgi?id=499689
16202     # memchr should not dereference overestimated length after a match
16203     #   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
16204     #   https://sourceware.org/bugzilla/show_bug.cgi?id=10162
16205     # Assume that memchr works on platforms that lack mprotect.
16206     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
16207 printf %s "checking whether memchr works... " >&6; }
16208 if test ${gl_cv_func_memchr_works+y}
16209 then :
16210   printf %s "(cached) " >&6
16211 else
16212   if test "$cross_compiling" = yes
16213 then :
16214   case "$host_os" in
16215                     # Guess yes on native Windows.
16216             mingw*) gl_cv_func_memchr_works="guessing yes" ;;
16217                     # Be pessimistic for now.
16218             *)      gl_cv_func_memchr_works="guessing no" ;;
16219           esac
16220
16221 else
16222   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16223 /* end confdefs.h.  */
16224
16225 #include <string.h>
16226 #if HAVE_SYS_MMAN_H
16227 # include <fcntl.h>
16228 # include <unistd.h>
16229 # include <sys/types.h>
16230 # include <sys/mman.h>
16231 # ifndef MAP_FILE
16232 #  define MAP_FILE 0
16233 # endif
16234 #endif
16235
16236 int
16237 main (void)
16238 {
16239
16240   int result = 0;
16241   char *fence = NULL;
16242 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
16243 # if HAVE_MAP_ANONYMOUS
16244   const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
16245   const int fd = -1;
16246 # else /* !HAVE_MAP_ANONYMOUS */
16247   const int flags = MAP_FILE | MAP_PRIVATE;
16248   int fd = open ("/dev/zero", O_RDONLY, 0666);
16249   if (fd >= 0)
16250 # endif
16251     {
16252       int pagesize = getpagesize ();
16253       char *two_pages =
16254         (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
16255                        flags, fd, 0);
16256       if (two_pages != (char *)(-1)
16257           && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
16258         fence = two_pages + pagesize;
16259     }
16260 #endif
16261   if (fence)
16262     {
16263       if (memchr (fence, 0, 0))
16264         result |= 1;
16265       strcpy (fence - 9, "12345678");
16266       if (memchr (fence - 9, 0, 79) != fence - 1)
16267         result |= 2;
16268       if (memchr (fence - 1, 0, 3) != fence - 1)
16269         result |= 4;
16270     }
16271   return result;
16272
16273   ;
16274   return 0;
16275 }
16276 _ACEOF
16277 if ac_fn_c_try_run "$LINENO"
16278 then :
16279   gl_cv_func_memchr_works=yes
16280 else
16281   gl_cv_func_memchr_works=no
16282 fi
16283 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16284   conftest.$ac_objext conftest.beam conftest.$ac_ext
16285 fi
16286
16287
16288 fi
16289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
16290 printf "%s\n" "$gl_cv_func_memchr_works" >&6; }
16291     case "$gl_cv_func_memchr_works" in
16292       *yes) ;;
16293       *) REPLACE_MEMCHR=1 ;;
16294     esac
16295   fi
16296
16297 ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default"
16298 if test "x$ac_cv_have_decl_memrchr" = xyes
16299 then :
16300   ac_have_decl=1
16301 else
16302   ac_have_decl=0
16303 fi
16304
16305 printf "%s\n" "#define HAVE_DECL_MEMRCHR $ac_have_decl" >>confdefs.h
16306
16307
16308
16309
16310
16311   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
16312 printf %s "checking for O_CLOEXEC... " >&6; }
16313 if test ${gl_cv_macro_O_CLOEXEC+y}
16314 then :
16315   printf %s "(cached) " >&6
16316 else
16317   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16318 /* end confdefs.h.  */
16319 #include <fcntl.h>
16320                           #ifndef O_CLOEXEC
16321                             choke me;
16322                           #endif
16323
16324 int
16325 main (void)
16326 {
16327 return O_CLOEXEC;
16328   ;
16329   return 0;
16330 }
16331 _ACEOF
16332 if ac_fn_c_try_compile "$LINENO"
16333 then :
16334   gl_cv_macro_O_CLOEXEC=yes
16335 else
16336   gl_cv_macro_O_CLOEXEC=no
16337 fi
16338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16339 fi
16340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
16341 printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; }
16342
16343
16344
16345      REPLACE_STRERROR_0=0
16346   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
16347 printf %s "checking whether strerror(0) succeeds... " >&6; }
16348 if test ${gl_cv_func_strerror_0_works+y}
16349 then :
16350   printf %s "(cached) " >&6
16351 else
16352   if test "$cross_compiling" = yes
16353 then :
16354   case "$host_os" in
16355                         # Guess yes on glibc systems.
16356          *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
16357                         # Guess yes on native Windows.
16358          mingw*)        gl_cv_func_strerror_0_works="guessing yes" ;;
16359                         # If we don't know, assume the worst.
16360          *)             gl_cv_func_strerror_0_works="guessing no" ;;
16361        esac
16362
16363 else
16364   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h.  */
16366 #include <string.h>
16367            #include <errno.h>
16368
16369 int
16370 main (void)
16371 {
16372 int result = 0;
16373            char *str;
16374            errno = 0;
16375            str = strerror (0);
16376            if (!*str) result |= 1;
16377            if (errno) result |= 2;
16378            if (strstr (str, "nknown") || strstr (str, "ndefined"))
16379              result |= 4;
16380            return result;
16381   ;
16382   return 0;
16383 }
16384 _ACEOF
16385 if ac_fn_c_try_run "$LINENO"
16386 then :
16387   gl_cv_func_strerror_0_works=yes
16388 else
16389   gl_cv_func_strerror_0_works=no
16390 fi
16391 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16392   conftest.$ac_objext conftest.beam conftest.$ac_ext
16393 fi
16394
16395
16396 fi
16397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
16398 printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; }
16399   case "$gl_cv_func_strerror_0_works" in
16400     *yes) ;;
16401     *)
16402       REPLACE_STRERROR_0=1
16403
16404 printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h
16405
16406       ;;
16407   esac
16408
16409
16410
16411
16412
16413
16414
16415   if test $ac_cv_func_strerror_r = yes; then
16416     if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
16417                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for strerror_r with POSIX signature" >&5
16418 printf %s "checking for strerror_r with POSIX signature... " >&6; }
16419 if test ${gl_cv_func_strerror_r_posix_signature+y}
16420 then :
16421   printf %s "(cached) " >&6
16422 else
16423   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16424 /* end confdefs.h.  */
16425 #include <string.h>
16426                 int strerror_r (int, char *, size_t);
16427
16428 int
16429 main (void)
16430 {
16431
16432   ;
16433   return 0;
16434 }
16435 _ACEOF
16436 if ac_fn_c_try_compile "$LINENO"
16437 then :
16438   gl_cv_func_strerror_r_posix_signature=yes
16439 else
16440   gl_cv_func_strerror_r_posix_signature=no
16441 fi
16442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16443
16444 fi
16445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_posix_signature" >&5
16446 printf "%s\n" "$gl_cv_func_strerror_r_posix_signature" >&6; }
16447       if test $gl_cv_func_strerror_r_posix_signature = yes; then
16448                                                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r works" >&5
16449 printf %s "checking whether strerror_r works... " >&6; }
16450 if test ${gl_cv_func_strerror_r_works+y}
16451 then :
16452   printf %s "(cached) " >&6
16453 else
16454   if test "$cross_compiling" = yes
16455 then :
16456
16457               case "$host_os" in
16458                        # Guess no on AIX.
16459                 aix*)  gl_cv_func_strerror_r_works="guessing no";;
16460                        # Guess no on HP-UX.
16461                 hpux*) gl_cv_func_strerror_r_works="guessing no";;
16462                        # Guess no on BSD variants.
16463                 *bsd*)  gl_cv_func_strerror_r_works="guessing no";;
16464                        # Guess yes otherwise.
16465                 *)     gl_cv_func_strerror_r_works="guessing yes";;
16466               esac
16467
16468 else
16469   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16470 /* end confdefs.h.  */
16471 #include <errno.h>
16472                   #include <string.h>
16473
16474 int
16475 main (void)
16476 {
16477 int result = 0;
16478                   char buf[79];
16479                   if (strerror_r (EACCES, buf, 0) < 0)
16480                     result |= 1;
16481                   errno = 0;
16482                   if (strerror_r (EACCES, buf, sizeof buf) != 0)
16483                     result |= 2;
16484                   strcpy (buf, "Unknown");
16485                   if (strerror_r (0, buf, sizeof buf) != 0)
16486                     result |= 4;
16487                   if (errno)
16488                     result |= 8;
16489                   if (strstr (buf, "nknown") || strstr (buf, "ndefined"))
16490                     result |= 0x10;
16491                   errno = 0;
16492                   *buf = 0;
16493                   if (strerror_r (-3, buf, sizeof buf) < 0)
16494                     result |= 0x20;
16495                   if (errno)
16496                     result |= 0x40;
16497                   if (!*buf)
16498                     result |= 0x80;
16499                   return result;
16500
16501   ;
16502   return 0;
16503 }
16504 _ACEOF
16505 if ac_fn_c_try_run "$LINENO"
16506 then :
16507   gl_cv_func_strerror_r_works=yes
16508 else
16509   gl_cv_func_strerror_r_works=no
16510 fi
16511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16512   conftest.$ac_objext conftest.beam conftest.$ac_ext
16513 fi
16514
16515
16516 fi
16517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16518 printf "%s\n" "$gl_cv_func_strerror_r_works" >&6; }
16519       else
16520
16521                         if test $ac_cv_func___xpg_strerror_r = yes; then
16522           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __xpg_strerror_r works" >&5
16523 printf %s "checking whether __xpg_strerror_r works... " >&6; }
16524 if test ${gl_cv_func_strerror_r_works+y}
16525 then :
16526   printf %s "(cached) " >&6
16527 else
16528   if test "$cross_compiling" = yes
16529 then :
16530                                   gl_cv_func_strerror_r_works="guessing no"
16531
16532 else
16533   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h.  */
16535 #include <errno.h>
16536                     #include <string.h>
16537                     extern
16538                     #ifdef __cplusplus
16539                     "C"
16540                     #endif
16541                     int __xpg_strerror_r(int, char *, size_t);
16542
16543 int
16544 main (void)
16545 {
16546 int result = 0;
16547                     char buf[256] = "^";
16548                     char copy[256];
16549                     char *str = strerror (-1);
16550                     strcpy (copy, str);
16551                     if (__xpg_strerror_r (-2, buf, 1) == 0)
16552                       result |= 1;
16553                     if (*buf)
16554                       result |= 2;
16555                     __xpg_strerror_r (-2, buf, 256);
16556                     if (strcmp (str, copy))
16557                       result |= 4;
16558                     return result;
16559
16560   ;
16561   return 0;
16562 }
16563 _ACEOF
16564 if ac_fn_c_try_run "$LINENO"
16565 then :
16566   gl_cv_func_strerror_r_works=yes
16567 else
16568   gl_cv_func_strerror_r_works=no
16569 fi
16570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16571   conftest.$ac_objext conftest.beam conftest.$ac_ext
16572 fi
16573
16574
16575 fi
16576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_r_works" >&5
16577 printf "%s\n" "$gl_cv_func_strerror_r_works" >&6; }
16578         fi
16579       fi
16580     fi
16581   fi
16582
16583
16584
16585
16586
16587
16588
16589
16590   if test $ac_cv_have_decl_strerror_r = no; then
16591     HAVE_DECL_STRERROR_R=0
16592   fi
16593
16594   if test $ac_cv_func_strerror_r = yes; then
16595     if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
16596       if test $gl_cv_func_strerror_r_posix_signature = yes; then
16597         case "$gl_cv_func_strerror_r_works" in
16598                     *no) REPLACE_STRERROR_R=1 ;;
16599         esac
16600       else
16601                 REPLACE_STRERROR_R=1
16602       fi
16603     else
16604                   REPLACE_STRERROR_R=1
16605     fi
16606   fi
16607
16608
16609
16610
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623   gl_cv_func_vfprintf_posix=no
16624   case "$gl_cv_func_printf_sizes_c99" in
16625     *yes)
16626       case "$gl_cv_func_printf_long_double" in
16627         *yes)
16628           case "$gl_cv_func_printf_infinite" in
16629             *yes)
16630               case "$gl_cv_func_printf_infinite_long_double" in
16631                 *yes)
16632                   case "$gl_cv_func_printf_directive_a" in
16633                     *yes)
16634                       case "$gl_cv_func_printf_directive_f" in
16635                         *yes)
16636                           case "$gl_cv_func_printf_directive_n" in
16637                             *yes)
16638                               case "$gl_cv_func_printf_directive_ls" in
16639                                 *yes)
16640                                   case "$gl_cv_func_printf_positions" in
16641                                     *yes)
16642                                       case "$gl_cv_func_printf_flag_grouping" in
16643                                         *yes)
16644                                           case "$gl_cv_func_printf_flag_leftadjust" in
16645                                             *yes)
16646                                               case "$gl_cv_func_printf_flag_zero" in
16647                                                 *yes)
16648                                                   case "$gl_cv_func_printf_precision" in
16649                                                     *yes)
16650                                                       case "$gl_cv_func_printf_enomem" in
16651                                                         *yes)
16652                                                           # vfprintf exists and is
16653                                                           # already POSIX compliant.
16654                                                           gl_cv_func_vfprintf_posix=yes
16655                                                           ;;
16656                                                       esac
16657                                                       ;;
16658                                                   esac
16659                                                   ;;
16660                                               esac
16661                                               ;;
16662                                           esac
16663                                           ;;
16664                                       esac
16665                                       ;;
16666                                   esac
16667                                   ;;
16668                               esac
16669                               ;;
16670                           esac
16671                           ;;
16672                       esac
16673                       ;;
16674                   esac
16675                   ;;
16676               esac
16677               ;;
16678           esac
16679           ;;
16680       esac
16681       ;;
16682   esac
16683   if test $gl_cv_func_vfprintf_posix = no; then
16684
16685
16686
16687   case "$gl_cv_func_printf_infinite" in
16688     *yes)
16689       ;;
16690     *)
16691
16692 printf "%s\n" "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
16693
16694       ;;
16695   esac
16696
16697
16698
16699
16700   case "$gl_cv_func_printf_long_double" in
16701     *yes)
16702       case "$gl_cv_func_printf_infinite_long_double" in
16703         *yes)
16704           ;;
16705         *)
16706
16707 printf "%s\n" "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
16708
16709           ;;
16710       esac
16711       ;;
16712   esac
16713
16714
16715
16716   case "$gl_cv_func_printf_directive_a" in
16717     *yes)
16718       ;;
16719     *)
16720
16721 printf "%s\n" "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
16722
16723       ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
16724 if test "x$ac_cv_func_nl_langinfo" = xyes
16725 then :
16726   printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
16727
16728 fi
16729
16730       ;;
16731   esac
16732
16733
16734
16735   case "$gl_cv_func_printf_directive_f" in
16736     *yes)
16737       ;;
16738     *)
16739
16740 printf "%s\n" "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
16741
16742       ;;
16743   esac
16744
16745
16746
16747   case "$gl_cv_func_printf_directive_ls" in
16748     *yes)
16749       ;;
16750     *)
16751
16752 printf "%s\n" "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
16753
16754       ;;
16755   esac
16756
16757
16758
16759   case "$gl_cv_func_printf_flag_grouping" in
16760     *yes)
16761       ;;
16762     *)
16763
16764 printf "%s\n" "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
16765
16766       ;;
16767   esac
16768
16769
16770
16771   case "$gl_cv_func_printf_flag_leftadjust" in
16772     *yes)
16773       ;;
16774     *)
16775
16776 printf "%s\n" "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
16777
16778       ;;
16779   esac
16780
16781
16782
16783   case "$gl_cv_func_printf_flag_zero" in
16784     *yes)
16785       ;;
16786     *)
16787
16788 printf "%s\n" "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
16789
16790       ;;
16791   esac
16792
16793
16794
16795   case "$gl_cv_func_printf_precision" in
16796     *yes)
16797       ;;
16798     *)
16799
16800 printf "%s\n" "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
16801
16802
16803 printf "%s\n" "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
16804
16805
16806 printf "%s\n" "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
16807
16808       ;;
16809   esac
16810
16811
16812
16813   case "$gl_cv_func_printf_enomem" in
16814     *yes)
16815       ;;
16816     *)
16817
16818 printf "%s\n" "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
16819
16820
16821 printf "%s\n" "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
16822
16823
16824 printf "%s\n" "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
16825
16826       ;;
16827   esac
16828
16829
16830
16831
16832
16833
16834
16835
16836
16837
16838
16839   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
16840
16841
16842
16843
16844
16845
16846
16847
16848
16849   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
16850
16851
16852
16853
16854
16855
16856
16857
16858
16859   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
16860
16861
16862
16863
16864
16865
16866
16867
16868
16869   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
16870
16871   if test $ac_cv_func_vasnprintf = yes; then
16872
16873 printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h
16874
16875   fi
16876
16877
16878
16879
16880
16881
16882
16883
16884
16885
16886
16887   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
16888 if test "x$ac_cv_type_ptrdiff_t" = xyes
16889 then :
16890
16891 else
16892
16893 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
16894
16895
16896 fi
16897
16898
16899
16900
16901
16902
16903
16904
16905
16906
16907
16908
16909
16910
16911
16912
16913
16914   gl_LIBOBJS="$gl_LIBOBJS vfprintf.$ac_objext"
16915
16916   REPLACE_VFPRINTF=1
16917
16918 printf "%s\n" "#define REPLACE_VFPRINTF_POSIX 1" >>confdefs.h
16919
16920   :
16921
16922   fi
16923
16924
16925   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926 /* end confdefs.h.  */
16927
16928 #ifdef _MSC_VER
16929 MicrosoftCompiler
16930 #endif
16931
16932 _ACEOF
16933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16934   $EGREP "MicrosoftCompiler" >/dev/null 2>&1
16935 then :
16936   gl_asmext='asm'
16937      gl_c_asm_opt='-c -Fa'
16938
16939 else
16940   gl_asmext='s'
16941      gl_c_asm_opt='-S'
16942
16943 fi
16944 rm -rf conftest*
16945
16946
16947
16948
16949
16950   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C symbols are prefixed with underscore at the linker level" >&5
16951 printf %s "checking whether C symbols are prefixed with underscore at the linker level... " >&6; }
16952 if test ${gl_cv_prog_as_underscore+y}
16953 then :
16954   printf %s "(cached) " >&6
16955 else
16956   cat > conftest.c <<EOF
16957 #ifdef __cplusplus
16958 extern "C" int foo (void);
16959 #endif
16960 int foo(void) { return 0; }
16961 EOF
16962      # Look for the assembly language name in the .s file.
16963      { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c'
16964   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16965   (eval $ac_try) 2>&5
16966   ac_status=$?
16967   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16968   test $ac_status = 0; }; } >/dev/null 2>&1
16969      if LC_ALL=C $EGREP '(^|[^a-zA-Z0-9_])_foo([^a-zA-Z0-9_]|$)' conftest.$gl_asmext >/dev/null; then
16970        gl_cv_prog_as_underscore=yes
16971      else
16972        gl_cv_prog_as_underscore=no
16973      fi
16974      rm -f conftest*
16975
16976 fi
16977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_as_underscore" >&5
16978 printf "%s\n" "$gl_cv_prog_as_underscore" >&6; }
16979   if test $gl_cv_prog_as_underscore = yes; then
16980     USER_LABEL_PREFIX=_
16981   else
16982     USER_LABEL_PREFIX=
16983   fi
16984
16985 printf "%s\n" "#define USER_LABEL_PREFIX $USER_LABEL_PREFIX" >>confdefs.h
16986
16987   ASM_SYMBOL_PREFIX='"'${USER_LABEL_PREFIX}'"'
16988
16989
16990
16991   GNULIB_PTHREAD_SIGMASK=0;
16992   GNULIB_RAISE=0;
16993   GNULIB_SIGNAL_H_SIGPIPE=0;
16994   GNULIB_SIGPROCMASK=0;
16995   GNULIB_SIGACTION=0;
16996     HAVE_POSIX_SIGNALBLOCKING=1;
16997   HAVE_PTHREAD_SIGMASK=1;
16998   HAVE_RAISE=1;
16999   HAVE_SIGSET_T=1;
17000   HAVE_SIGINFO_T=1;
17001   HAVE_SIGACTION=1;
17002   HAVE_STRUCT_SIGACTION_SA_SIGACTION=1;
17003
17004   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=1;
17005
17006   HAVE_SIGHANDLER_T=1;
17007   REPLACE_PTHREAD_SIGMASK=0;
17008   REPLACE_RAISE=0;
17009
17010
17011   ac_fn_c_check_type "$LINENO" "sigset_t" "ac_cv_type_sigset_t" "
17012       #include <signal.h>
17013       /* Mingw defines sigset_t not in <signal.h>, but in <sys/types.h>.  */
17014       #include <sys/types.h>
17015
17016 "
17017 if test "x$ac_cv_type_sigset_t" = xyes
17018 then :
17019
17020 printf "%s\n" "#define HAVE_SIGSET_T 1" >>confdefs.h
17021
17022 gl_cv_type_sigset_t=yes
17023 else
17024   gl_cv_type_sigset_t=no
17025 fi
17026
17027   if test $gl_cv_type_sigset_t != yes; then
17028     HAVE_SIGSET_T=0
17029   fi
17030
17031
17032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17033 printf %s "checking for uid_t in sys/types.h... " >&6; }
17034 if test ${ac_cv_type_uid_t+y}
17035 then :
17036   printf %s "(cached) " >&6
17037 else
17038   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17039 /* end confdefs.h.  */
17040 #include <sys/types.h>
17041
17042 _ACEOF
17043 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17044   $EGREP "uid_t" >/dev/null 2>&1
17045 then :
17046   ac_cv_type_uid_t=yes
17047 else
17048   ac_cv_type_uid_t=no
17049 fi
17050 rm -rf conftest*
17051
17052 fi
17053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17054 printf "%s\n" "$ac_cv_type_uid_t" >&6; }
17055 if test $ac_cv_type_uid_t = no; then
17056
17057 printf "%s\n" "#define uid_t int" >>confdefs.h
17058
17059
17060 printf "%s\n" "#define gid_t int" >>confdefs.h
17061
17062 fi
17063
17064 :
17065
17066
17067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
17068 printf %s "checking for stdbool.h that conforms to C99... " >&6; }
17069 if test ${ac_cv_header_stdbool_h+y}
17070 then :
17071   printf %s "(cached) " >&6
17072 else
17073   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17074 /* end confdefs.h.  */
17075
17076              #include <stdbool.h>
17077
17078              #ifdef __cplusplus
17079               typedef bool Bool;
17080              #else
17081               typedef _Bool Bool;
17082               #ifndef bool
17083                "error: bool is not defined"
17084               #endif
17085               #ifndef false
17086                "error: false is not defined"
17087               #endif
17088               #if false
17089                "error: false is not 0"
17090               #endif
17091               #ifndef true
17092                "error: true is not defined"
17093               #endif
17094               #if true != 1
17095                "error: true is not 1"
17096               #endif
17097              #endif
17098
17099              #ifndef __bool_true_false_are_defined
17100               "error: __bool_true_false_are_defined is not defined"
17101              #endif
17102
17103              struct s { Bool s: 1; Bool t; bool u: 1; bool v; } s;
17104
17105              char a[true == 1 ? 1 : -1];
17106              char b[false == 0 ? 1 : -1];
17107              char c[__bool_true_false_are_defined == 1 ? 1 : -1];
17108              char d[(bool) 0.5 == true ? 1 : -1];
17109              /* See body of main program for 'e'.  */
17110              char f[(Bool) 0.0 == false ? 1 : -1];
17111              char g[true];
17112              char h[sizeof (Bool)];
17113              char i[sizeof s.t];
17114              enum { j = false, k = true, l = false * true, m = true * 256 };
17115              /* The following fails for
17116                 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
17117              Bool n[m];
17118              char o[sizeof n == m * sizeof n[0] ? 1 : -1];
17119              char p[-1 - (Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
17120              /* Catch a bug in an HP-UX C compiler.  See
17121                 https://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
17122                 https://lists.gnu.org/r/bug-coreutils/2005-11/msg00161.html
17123               */
17124              Bool q = true;
17125              Bool *pq = &q;
17126              bool *qq = &q;
17127
17128 int
17129 main (void)
17130 {
17131
17132              bool e = &s;
17133              *pq |= q; *pq |= ! q;
17134              *qq |= q; *qq |= ! q;
17135              /* Refer to every declared value, to avoid compiler optimizations.  */
17136              return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
17137                      + !m + !n + !o + !p + !q + !pq + !qq);
17138
17139   ;
17140   return 0;
17141 }
17142 _ACEOF
17143 if ac_fn_c_try_compile "$LINENO"
17144 then :
17145   ac_cv_header_stdbool_h=yes
17146 else
17147   ac_cv_header_stdbool_h=no
17148 fi
17149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17150 fi
17151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
17152 printf "%s\n" "$ac_cv_header_stdbool_h" >&6; }
17153    ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
17154 if test "x$ac_cv_type__Bool" = xyes
17155 then :
17156
17157 printf "%s\n" "#define HAVE__BOOL 1" >>confdefs.h
17158
17159
17160 fi
17161
17162
17163
17164     REPLACE_NULL=0;
17165   HAVE_MAX_ALIGN_T=1;
17166   HAVE_WCHAR_T=1;
17167
17168
17169
17170
17171
17172
17173
17174
17175   if test $ac_cv_type_long_long_int = yes; then
17176     HAVE_LONG_LONG_INT=1
17177   else
17178     HAVE_LONG_LONG_INT=0
17179   fi
17180
17181
17182   if test $ac_cv_type_unsigned_long_long_int = yes; then
17183     HAVE_UNSIGNED_LONG_LONG_INT=1
17184   else
17185     HAVE_UNSIGNED_LONG_LONG_INT=0
17186   fi
17187
17188
17189
17190   if test $ac_cv_header_wchar_h = yes; then
17191     HAVE_WCHAR_H=1
17192   else
17193     HAVE_WCHAR_H=0
17194   fi
17195
17196
17197       if test $ac_cv_header_inttypes_h = yes; then
17198     HAVE_INTTYPES_H=1
17199   else
17200     HAVE_INTTYPES_H=0
17201   fi
17202
17203
17204       if test $ac_cv_header_sys_types_h = yes; then
17205     HAVE_SYS_TYPES_H=1
17206   else
17207     HAVE_SYS_TYPES_H=0
17208   fi
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218
17219
17220      if test $gl_cv_have_include_next = yes; then
17221        gl_cv_next_stdint_h='<'stdint.h'>'
17222      else
17223        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
17224 printf %s "checking absolute name of <stdint.h>... " >&6; }
17225 if test ${gl_cv_next_stdint_h+y}
17226 then :
17227   printf %s "(cached) " >&6
17228 else
17229
17230              if test $ac_cv_header_stdint_h = yes; then
17231
17232
17233
17234
17235   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17236 /* end confdefs.h.  */
17237 #include <stdint.h>
17238 _ACEOF
17239                 case "$host_os" in
17240     aix*) gl_absname_cpp="$ac_cpp -C" ;;
17241     *)    gl_absname_cpp="$ac_cpp" ;;
17242   esac
17243
17244   case "$host_os" in
17245     mingw*)
17246                                           gl_dirsep_regex='[/\\]'
17247       ;;
17248     *)
17249       gl_dirsep_regex='\/'
17250       ;;
17251   esac
17252       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17253   gl_header_literal_regex=`echo 'stdint.h' \
17254                            | sed -e "$gl_make_literal_regex_sed"`
17255   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17256       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17257       s|^/[^/]|//&|
17258       p
17259       q
17260     }'
17261
17262         gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17263   sed -n "$gl_absolute_header_sed"`
17264
17265            gl_header=$gl_cv_absolute_stdint_h
17266            gl_cv_next_stdint_h='"'$gl_header'"'
17267           else
17268                gl_cv_next_stdint_h='<'stdint.h'>'
17269              fi
17270
17271
17272 fi
17273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
17274 printf "%s\n" "$gl_cv_next_stdint_h" >&6; }
17275      fi
17276      NEXT_STDINT_H=$gl_cv_next_stdint_h
17277
17278      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17279        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17280        gl_next_as_first_directive='<'stdint.h'>'
17281      else
17282        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17283        gl_next_as_first_directive=$gl_cv_next_stdint_h
17284      fi
17285      NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
17286
17287
17288
17289
17290   if test $ac_cv_header_stdint_h = yes; then
17291     HAVE_STDINT_H=1
17292   else
17293     HAVE_STDINT_H=0
17294   fi
17295
17296
17297     if test $ac_cv_header_stdint_h = yes; then
17298     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
17299 printf %s "checking whether stdint.h conforms to C99... " >&6; }
17300 if test ${gl_cv_header_working_stdint_h+y}
17301 then :
17302   printf %s "(cached) " >&6
17303 else
17304   gl_cv_header_working_stdint_h=no
17305        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17306 /* end confdefs.h.  */
17307
17308
17309 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17310 #define __STDC_CONSTANT_MACROS 1
17311 #define __STDC_LIMIT_MACROS 1
17312 #include <stdint.h>
17313 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>.  */
17314 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
17315 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
17316 #endif
17317
17318
17319   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17320      included before <wchar.h>.  */
17321   #include <stddef.h>
17322   #include <signal.h>
17323   #if HAVE_WCHAR_H
17324   # include <stdio.h>
17325   # include <time.h>
17326   # include <wchar.h>
17327   #endif
17328
17329
17330 #ifdef INT8_MAX
17331 int8_t a1 = INT8_MAX;
17332 int8_t a1min = INT8_MIN;
17333 #endif
17334 #ifdef INT16_MAX
17335 int16_t a2 = INT16_MAX;
17336 int16_t a2min = INT16_MIN;
17337 #endif
17338 #ifdef INT32_MAX
17339 int32_t a3 = INT32_MAX;
17340 int32_t a3min = INT32_MIN;
17341 #endif
17342 #ifdef INT64_MAX
17343 int64_t a4 = INT64_MAX;
17344 int64_t a4min = INT64_MIN;
17345 #endif
17346 #ifdef UINT8_MAX
17347 uint8_t b1 = UINT8_MAX;
17348 #else
17349 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
17350 #endif
17351 #ifdef UINT16_MAX
17352 uint16_t b2 = UINT16_MAX;
17353 #endif
17354 #ifdef UINT32_MAX
17355 uint32_t b3 = UINT32_MAX;
17356 #endif
17357 #ifdef UINT64_MAX
17358 uint64_t b4 = UINT64_MAX;
17359 #endif
17360 int_least8_t c1 = INT8_C (0x7f);
17361 int_least8_t c1max = INT_LEAST8_MAX;
17362 int_least8_t c1min = INT_LEAST8_MIN;
17363 int_least16_t c2 = INT16_C (0x7fff);
17364 int_least16_t c2max = INT_LEAST16_MAX;
17365 int_least16_t c2min = INT_LEAST16_MIN;
17366 int_least32_t c3 = INT32_C (0x7fffffff);
17367 int_least32_t c3max = INT_LEAST32_MAX;
17368 int_least32_t c3min = INT_LEAST32_MIN;
17369 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
17370 int_least64_t c4max = INT_LEAST64_MAX;
17371 int_least64_t c4min = INT_LEAST64_MIN;
17372 uint_least8_t d1 = UINT8_C (0xff);
17373 uint_least8_t d1max = UINT_LEAST8_MAX;
17374 uint_least16_t d2 = UINT16_C (0xffff);
17375 uint_least16_t d2max = UINT_LEAST16_MAX;
17376 uint_least32_t d3 = UINT32_C (0xffffffff);
17377 uint_least32_t d3max = UINT_LEAST32_MAX;
17378 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
17379 uint_least64_t d4max = UINT_LEAST64_MAX;
17380 int_fast8_t e1 = INT_FAST8_MAX;
17381 int_fast8_t e1min = INT_FAST8_MIN;
17382 int_fast16_t e2 = INT_FAST16_MAX;
17383 int_fast16_t e2min = INT_FAST16_MIN;
17384 int_fast32_t e3 = INT_FAST32_MAX;
17385 int_fast32_t e3min = INT_FAST32_MIN;
17386 int_fast64_t e4 = INT_FAST64_MAX;
17387 int_fast64_t e4min = INT_FAST64_MIN;
17388 uint_fast8_t f1 = UINT_FAST8_MAX;
17389 uint_fast16_t f2 = UINT_FAST16_MAX;
17390 uint_fast32_t f3 = UINT_FAST32_MAX;
17391 uint_fast64_t f4 = UINT_FAST64_MAX;
17392 #ifdef INTPTR_MAX
17393 intptr_t g = INTPTR_MAX;
17394 intptr_t gmin = INTPTR_MIN;
17395 #endif
17396 #ifdef UINTPTR_MAX
17397 uintptr_t h = UINTPTR_MAX;
17398 #endif
17399 intmax_t i = INTMAX_MAX;
17400 uintmax_t j = UINTMAX_MAX;
17401
17402 /* Check that SIZE_MAX has the correct type, if possible.  */
17403 #if 201112 <= __STDC_VERSION__
17404 int k = _Generic (SIZE_MAX, size_t: 0);
17405 #elif (2 <= __GNUC__ || defined __IBM__TYPEOF__ \
17406        || (0x5110 <= __SUNPRO_C && !__STDC__))
17407 extern size_t k;
17408 extern __typeof__ (SIZE_MAX) k;
17409 #endif
17410
17411 #include <limits.h> /* for CHAR_BIT */
17412 #define TYPE_MINIMUM(t) \
17413   ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
17414 #define TYPE_MAXIMUM(t) \
17415   ((t) ((t) 0 < (t) -1 \
17416         ? (t) -1 \
17417         : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
17418 struct s {
17419   int check_PTRDIFF:
17420       PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
17421       && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
17422       ? 1 : -1;
17423   /* Detect bug in FreeBSD 6.0 / ia64.  */
17424   int check_SIG_ATOMIC:
17425       SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
17426       && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
17427       ? 1 : -1;
17428   int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
17429   int check_WCHAR:
17430       WCHAR_MIN == TYPE_MINIMUM (wchar_t)
17431       && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
17432       ? 1 : -1;
17433   /* Detect bug in mingw.  */
17434   int check_WINT:
17435       WINT_MIN == TYPE_MINIMUM (wint_t)
17436       && WINT_MAX == TYPE_MAXIMUM (wint_t)
17437       ? 1 : -1;
17438
17439   /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others.  */
17440   int check_UINT8_C:
17441         (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
17442   int check_UINT16_C:
17443         (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
17444
17445   /* Detect bugs in OpenBSD 3.9 stdint.h.  */
17446 #ifdef UINT8_MAX
17447   int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
17448 #endif
17449 #ifdef UINT16_MAX
17450   int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
17451 #endif
17452 #ifdef UINT32_MAX
17453   int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
17454 #endif
17455 #ifdef UINT64_MAX
17456   int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
17457 #endif
17458   int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
17459   int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
17460   int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
17461   int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
17462   int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
17463   int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
17464   int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
17465   int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
17466   int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
17467   int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
17468   int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
17469 };
17470
17471 int
17472 main (void)
17473 {
17474
17475   ;
17476   return 0;
17477 }
17478 _ACEOF
17479 if ac_fn_c_try_compile "$LINENO"
17480 then :
17481                                                     if test "$cross_compiling" = yes
17482 then :
17483   case "$host_os" in
17484                          # Guess yes on native Windows.
17485                  mingw*) gl_cv_header_working_stdint_h="guessing yes" ;;
17486                          # In general, assume it works.
17487                  *)      gl_cv_header_working_stdint_h="guessing yes" ;;
17488                esac
17489
17490 else
17491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17492 /* end confdefs.h.  */
17493
17494
17495 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17496 #define __STDC_CONSTANT_MACROS 1
17497 #define __STDC_LIMIT_MACROS 1
17498 #include <stdint.h>
17499
17500
17501   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17502      included before <wchar.h>.  */
17503   #include <stddef.h>
17504   #include <signal.h>
17505   #if HAVE_WCHAR_H
17506   # include <stdio.h>
17507   # include <time.h>
17508   # include <wchar.h>
17509   #endif
17510
17511
17512 #include <stdio.h>
17513 #include <string.h>
17514 #define MVAL(macro) MVAL1(macro)
17515 #define MVAL1(expression) #expression
17516 static const char *macro_values[] =
17517   {
17518 #ifdef INT8_MAX
17519     MVAL (INT8_MAX),
17520 #endif
17521 #ifdef INT16_MAX
17522     MVAL (INT16_MAX),
17523 #endif
17524 #ifdef INT32_MAX
17525     MVAL (INT32_MAX),
17526 #endif
17527 #ifdef INT64_MAX
17528     MVAL (INT64_MAX),
17529 #endif
17530 #ifdef UINT8_MAX
17531     MVAL (UINT8_MAX),
17532 #endif
17533 #ifdef UINT16_MAX
17534     MVAL (UINT16_MAX),
17535 #endif
17536 #ifdef UINT32_MAX
17537     MVAL (UINT32_MAX),
17538 #endif
17539 #ifdef UINT64_MAX
17540     MVAL (UINT64_MAX),
17541 #endif
17542     NULL
17543   };
17544
17545 int
17546 main (void)
17547 {
17548
17549   const char **mv;
17550   for (mv = macro_values; *mv != NULL; mv++)
17551     {
17552       const char *value = *mv;
17553       /* Test whether it looks like a cast expression.  */
17554       if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
17555           || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
17556           || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
17557           || strncmp (value, "((int)"/*)*/, 6) == 0
17558           || strncmp (value, "((signed short)"/*)*/, 15) == 0
17559           || strncmp (value, "((signed char)"/*)*/, 14) == 0)
17560         return mv - macro_values + 1;
17561     }
17562   return 0;
17563
17564   ;
17565   return 0;
17566 }
17567 _ACEOF
17568 if ac_fn_c_try_run "$LINENO"
17569 then :
17570   gl_cv_header_working_stdint_h=yes
17571 fi
17572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17573   conftest.$ac_objext conftest.beam conftest.$ac_ext
17574 fi
17575
17576
17577 fi
17578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17579
17580 fi
17581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
17582 printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; }
17583   fi
17584
17585   HAVE_C99_STDINT_H=0
17586   HAVE_SYS_BITYPES_H=0
17587   HAVE_SYS_INTTYPES_H=0
17588   STDINT_H=stdint.h
17589   case "$gl_cv_header_working_stdint_h" in
17590     *yes)
17591       HAVE_C99_STDINT_H=1
17592                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h predates C++11" >&5
17593 printf %s "checking whether stdint.h predates C++11... " >&6; }
17594 if test ${gl_cv_header_stdint_predates_cxx11_h+y}
17595 then :
17596   printf %s "(cached) " >&6
17597 else
17598   gl_cv_header_stdint_predates_cxx11_h=yes
17599          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17600 /* end confdefs.h.  */
17601
17602
17603 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
17604 #include <stdint.h>
17605
17606
17607   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17608      included before <wchar.h>.  */
17609   #include <stddef.h>
17610   #include <signal.h>
17611   #if HAVE_WCHAR_H
17612   # include <stdio.h>
17613   # include <time.h>
17614   # include <wchar.h>
17615   #endif
17616
17617
17618 intmax_t im = INTMAX_MAX;
17619 int32_t i32 = INT32_C (0x7fffffff);
17620
17621 int
17622 main (void)
17623 {
17624
17625   ;
17626   return 0;
17627 }
17628 _ACEOF
17629 if ac_fn_c_try_compile "$LINENO"
17630 then :
17631   gl_cv_header_stdint_predates_cxx11_h=no
17632 fi
17633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17634 fi
17635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_predates_cxx11_h" >&5
17636 printf "%s\n" "$gl_cv_header_stdint_predates_cxx11_h" >&6; }
17637
17638       if test "$gl_cv_header_stdint_predates_cxx11_h" = yes; then
17639
17640 printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
17641
17642
17643 printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
17644
17645       fi
17646       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
17647 printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
17648 if test ${gl_cv_header_stdint_width+y}
17649 then :
17650   printf %s "(cached) " >&6
17651 else
17652   gl_cv_header_stdint_width=no
17653          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17654 /* end confdefs.h.  */
17655
17656               /* Work if build is not clean.  */
17657               #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
17658               #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
17659                #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
17660               #endif
17661               #include <stdint.h>
17662
17663   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17664      included before <wchar.h>.  */
17665   #include <stddef.h>
17666   #include <signal.h>
17667   #if HAVE_WCHAR_H
17668   # include <stdio.h>
17669   # include <time.h>
17670   # include <wchar.h>
17671   #endif
17672
17673               int iw = UINTMAX_WIDTH;
17674
17675 int
17676 main (void)
17677 {
17678
17679   ;
17680   return 0;
17681 }
17682 _ACEOF
17683 if ac_fn_c_try_compile "$LINENO"
17684 then :
17685   gl_cv_header_stdint_width=yes
17686 fi
17687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17688 fi
17689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
17690 printf "%s\n" "$gl_cv_header_stdint_width" >&6; }
17691       if test "$gl_cv_header_stdint_width" = yes; then
17692         STDINT_H=
17693       fi
17694       ;;
17695     *)
17696                   ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
17697 if test "x$ac_cv_header_sys_inttypes_h" = xyes
17698 then :
17699   printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h
17700
17701 fi
17702 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
17703 if test "x$ac_cv_header_sys_bitypes_h" = xyes
17704 then :
17705   printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
17706
17707 fi
17708
17709       if test $ac_cv_header_sys_inttypes_h = yes; then
17710         HAVE_SYS_INTTYPES_H=1
17711       fi
17712       if test $ac_cv_header_sys_bitypes_h = yes; then
17713         HAVE_SYS_BITYPES_H=1
17714       fi
17715
17716
17717   if test $APPLE_UNIVERSAL_BUILD = 0; then
17718
17719
17720   for gltype in ptrdiff_t size_t ; do
17721     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17722 printf %s "checking for bit size of $gltype... " >&6; }
17723 if eval test \${gl_cv_bitsizeof_${gltype}+y}
17724 then :
17725   printf %s "(cached) " >&6
17726 else
17727   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
17728   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17729      included before <wchar.h>.  */
17730   #include <stddef.h>
17731   #include <signal.h>
17732   #if HAVE_WCHAR_H
17733   # include <stdio.h>
17734   # include <time.h>
17735   # include <wchar.h>
17736   #endif
17737
17738 #include <limits.h>"
17739 then :
17740
17741 else
17742   result=unknown
17743 fi
17744
17745        eval gl_cv_bitsizeof_${gltype}=\$result
17746
17747 fi
17748 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17749                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17750 printf "%s\n" "$ac_res" >&6; }
17751     eval result=\$gl_cv_bitsizeof_${gltype}
17752     if test $result = unknown; then
17753                                                 result=0
17754     fi
17755     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17756     printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
17757
17758     eval BITSIZEOF_${GLTYPE}=\$result
17759   done
17760
17761
17762   fi
17763
17764
17765   for gltype in sig_atomic_t wchar_t wint_t ; do
17766     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
17767 printf %s "checking for bit size of $gltype... " >&6; }
17768 if eval test \${gl_cv_bitsizeof_${gltype}+y}
17769 then :
17770   printf %s "(cached) " >&6
17771 else
17772   if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result"        "
17773   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17774      included before <wchar.h>.  */
17775   #include <stddef.h>
17776   #include <signal.h>
17777   #if HAVE_WCHAR_H
17778   # include <stdio.h>
17779   # include <time.h>
17780   # include <wchar.h>
17781   #endif
17782
17783 #include <limits.h>"
17784 then :
17785
17786 else
17787   result=unknown
17788 fi
17789
17790        eval gl_cv_bitsizeof_${gltype}=\$result
17791
17792 fi
17793 eval ac_res=\$gl_cv_bitsizeof_${gltype}
17794                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17795 printf "%s\n" "$ac_res" >&6; }
17796     eval result=\$gl_cv_bitsizeof_${gltype}
17797     if test $result = unknown; then
17798                                                 result=0
17799     fi
17800     GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17801     printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
17802
17803     eval BITSIZEOF_${GLTYPE}=\$result
17804   done
17805
17806
17807
17808
17809   for gltype in sig_atomic_t wchar_t wint_t ; do
17810     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
17811 printf %s "checking whether $gltype is signed... " >&6; }
17812 if eval test \${gl_cv_type_${gltype}_signed+y}
17813 then :
17814   printf %s "(cached) " >&6
17815 else
17816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17817 /* end confdefs.h.  */
17818
17819   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17820      included before <wchar.h>.  */
17821   #include <stddef.h>
17822   #include <signal.h>
17823   #if HAVE_WCHAR_H
17824   # include <stdio.h>
17825   # include <time.h>
17826   # include <wchar.h>
17827   #endif
17828
17829             int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
17830 int
17831 main (void)
17832 {
17833
17834   ;
17835   return 0;
17836 }
17837 _ACEOF
17838 if ac_fn_c_try_compile "$LINENO"
17839 then :
17840   result=yes
17841 else
17842   result=no
17843 fi
17844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845        eval gl_cv_type_${gltype}_signed=\$result
17846
17847 fi
17848 eval ac_res=\$gl_cv_type_${gltype}_signed
17849                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17850 printf "%s\n" "$ac_res" >&6; }
17851     eval result=\$gl_cv_type_${gltype}_signed
17852     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17853     if test "$result" = yes; then
17854       printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h
17855
17856       eval HAVE_SIGNED_${GLTYPE}=1
17857     else
17858       eval HAVE_SIGNED_${GLTYPE}=0
17859     fi
17860   done
17861
17862
17863   gl_cv_type_ptrdiff_t_signed=yes
17864   gl_cv_type_size_t_signed=no
17865   if test $APPLE_UNIVERSAL_BUILD = 0; then
17866
17867
17868   for gltype in ptrdiff_t size_t ; do
17869     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17870 printf %s "checking for $gltype integer literal suffix... " >&6; }
17871 if eval test \${gl_cv_type_${gltype}_suffix+y}
17872 then :
17873   printf %s "(cached) " >&6
17874 else
17875   eval gl_cv_type_${gltype}_suffix=no
17876        eval result=\$gl_cv_type_${gltype}_signed
17877        if test "$result" = yes; then
17878          glsufu=
17879        else
17880          glsufu=u
17881        fi
17882        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17883          case $glsuf in
17884            '')  gltype1='int';;
17885            l)   gltype1='long int';;
17886            ll)  gltype1='long long int';;
17887            i64) gltype1='__int64';;
17888            u)   gltype1='unsigned int';;
17889            ul)  gltype1='unsigned long int';;
17890            ull) gltype1='unsigned long long int';;
17891            ui64)gltype1='unsigned __int64';;
17892          esac
17893          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17894 /* end confdefs.h.  */
17895
17896   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17897      included before <wchar.h>.  */
17898   #include <stddef.h>
17899   #include <signal.h>
17900   #if HAVE_WCHAR_H
17901   # include <stdio.h>
17902   # include <time.h>
17903   # include <wchar.h>
17904   #endif
17905
17906               extern $gltype foo;
17907               extern $gltype1 foo;
17908 int
17909 main (void)
17910 {
17911
17912   ;
17913   return 0;
17914 }
17915 _ACEOF
17916 if ac_fn_c_try_compile "$LINENO"
17917 then :
17918   eval gl_cv_type_${gltype}_suffix=\$glsuf
17919 fi
17920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17921          eval result=\$gl_cv_type_${gltype}_suffix
17922          test "$result" != no && break
17923        done
17924 fi
17925 eval ac_res=\$gl_cv_type_${gltype}_suffix
17926                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17927 printf "%s\n" "$ac_res" >&6; }
17928     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
17929     eval result=\$gl_cv_type_${gltype}_suffix
17930     test "$result" = no && result=
17931     eval ${GLTYPE}_SUFFIX=\$result
17932     printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
17933
17934   done
17935
17936
17937   fi
17938
17939
17940   for gltype in sig_atomic_t wchar_t wint_t ; do
17941     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
17942 printf %s "checking for $gltype integer literal suffix... " >&6; }
17943 if eval test \${gl_cv_type_${gltype}_suffix+y}
17944 then :
17945   printf %s "(cached) " >&6
17946 else
17947   eval gl_cv_type_${gltype}_suffix=no
17948        eval result=\$gl_cv_type_${gltype}_signed
17949        if test "$result" = yes; then
17950          glsufu=
17951        else
17952          glsufu=u
17953        fi
17954        for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
17955          case $glsuf in
17956            '')  gltype1='int';;
17957            l)   gltype1='long int';;
17958            ll)  gltype1='long long int';;
17959            i64) gltype1='__int64';;
17960            u)   gltype1='unsigned int';;
17961            ul)  gltype1='unsigned long int';;
17962            ull) gltype1='unsigned long long int';;
17963            ui64)gltype1='unsigned __int64';;
17964          esac
17965          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17966 /* end confdefs.h.  */
17967
17968   /* BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
17969      included before <wchar.h>.  */
17970   #include <stddef.h>
17971   #include <signal.h>
17972   #if HAVE_WCHAR_H
17973   # include <stdio.h>
17974   # include <time.h>
17975   # include <wchar.h>
17976   #endif
17977
17978               extern $gltype foo;
17979               extern $gltype1 foo;
17980 int
17981 main (void)
17982 {
17983
17984   ;
17985   return 0;
17986 }
17987 _ACEOF
17988 if ac_fn_c_try_compile "$LINENO"
17989 then :
17990   eval gl_cv_type_${gltype}_suffix=\$glsuf
17991 fi
17992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17993          eval result=\$gl_cv_type_${gltype}_suffix
17994          test "$result" != no && break
17995        done
17996 fi
17997 eval ac_res=\$gl_cv_type_${gltype}_suffix
17998                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
17999 printf "%s\n" "$ac_res" >&6; }
18000     GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
18001     eval result=\$gl_cv_type_${gltype}_suffix
18002     test "$result" = no && result=
18003     eval ${GLTYPE}_SUFFIX=\$result
18004     printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
18005
18006   done
18007
18008
18009
18010           if test $GNULIB_OVERRIDES_WINT_T = 1; then
18011     BITSIZEOF_WINT_T=32
18012   fi
18013
18014       ;;
18015   esac
18016
18017
18018
18019   LIMITS_H='limits.h'
18020    if test -n "$LIMITS_H"; then
18021   GL_GENERATE_LIMITS_H_TRUE=
18022   GL_GENERATE_LIMITS_H_FALSE='#'
18023 else
18024   GL_GENERATE_LIMITS_H_TRUE='#'
18025   GL_GENERATE_LIMITS_H_FALSE=
18026 fi
18027
18028
18029
18030
18031
18032
18033
18034    if test -n "$STDINT_H"; then
18035   GL_GENERATE_STDINT_H_TRUE=
18036   GL_GENERATE_STDINT_H_FALSE='#'
18037 else
18038   GL_GENERATE_STDINT_H_TRUE='#'
18039   GL_GENERATE_STDINT_H_FALSE=
18040 fi
18041
18042
18043
18044 ac_fn_c_check_decl "$LINENO" "strdup" "ac_cv_have_decl_strdup" "$ac_includes_default"
18045 if test "x$ac_cv_have_decl_strdup" = xyes
18046 then :
18047   ac_have_decl=1
18048 else
18049   ac_have_decl=0
18050 fi
18051
18052 printf "%s\n" "#define HAVE_DECL_STRDUP $ac_have_decl" >>confdefs.h
18053
18054
18055
18056
18057
18058
18059
18060
18061
18062
18063
18064
18065
18066      if test $gl_cv_have_include_next = yes; then
18067        gl_cv_next_string_h='<'string.h'>'
18068      else
18069        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
18070 printf %s "checking absolute name of <string.h>... " >&6; }
18071 if test ${gl_cv_next_string_h+y}
18072 then :
18073   printf %s "(cached) " >&6
18074 else
18075
18076
18077
18078   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18079 /* end confdefs.h.  */
18080 #include <string.h>
18081 _ACEOF
18082                 case "$host_os" in
18083     aix*) gl_absname_cpp="$ac_cpp -C" ;;
18084     *)    gl_absname_cpp="$ac_cpp" ;;
18085   esac
18086
18087   case "$host_os" in
18088     mingw*)
18089                                           gl_dirsep_regex='[/\\]'
18090       ;;
18091     *)
18092       gl_dirsep_regex='\/'
18093       ;;
18094   esac
18095       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18096   gl_header_literal_regex=`echo 'string.h' \
18097                            | sed -e "$gl_make_literal_regex_sed"`
18098   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18099       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18100       s|^/[^/]|//&|
18101       p
18102       q
18103     }'
18104
18105         gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18106   sed -n "$gl_absolute_header_sed"`
18107
18108            gl_header=$gl_cv_absolute_string_h
18109            gl_cv_next_string_h='"'$gl_header'"'
18110
18111
18112 fi
18113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
18114 printf "%s\n" "$gl_cv_next_string_h" >&6; }
18115      fi
18116      NEXT_STRING_H=$gl_cv_next_string_h
18117
18118      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18119        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18120        gl_next_as_first_directive='<'string.h'>'
18121      else
18122        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18123        gl_next_as_first_directive=$gl_cv_next_string_h
18124      fi
18125      NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
18136 printf %s "checking for struct timespec in <time.h>... " >&6; }
18137 if test ${gl_cv_sys_struct_timespec_in_time_h+y}
18138 then :
18139   printf %s "(cached) " >&6
18140 else
18141   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18142 /* end confdefs.h.  */
18143 #include <time.h>
18144
18145 int
18146 main (void)
18147 {
18148 static struct timespec x; x.tv_sec = x.tv_nsec;
18149   ;
18150   return 0;
18151 }
18152 _ACEOF
18153 if ac_fn_c_try_compile "$LINENO"
18154 then :
18155   gl_cv_sys_struct_timespec_in_time_h=yes
18156 else
18157   gl_cv_sys_struct_timespec_in_time_h=no
18158 fi
18159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18160 fi
18161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
18162 printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
18163
18164   TIME_H_DEFINES_STRUCT_TIMESPEC=0
18165   SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
18166   PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
18167   UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
18168   if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
18169     TIME_H_DEFINES_STRUCT_TIMESPEC=1
18170   else
18171     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
18172 printf %s "checking for struct timespec in <sys/time.h>... " >&6; }
18173 if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y}
18174 then :
18175   printf %s "(cached) " >&6
18176 else
18177   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18178 /* end confdefs.h.  */
18179 #include <sys/time.h>
18180
18181 int
18182 main (void)
18183 {
18184 static struct timespec x; x.tv_sec = x.tv_nsec;
18185   ;
18186   return 0;
18187 }
18188 _ACEOF
18189 if ac_fn_c_try_compile "$LINENO"
18190 then :
18191   gl_cv_sys_struct_timespec_in_sys_time_h=yes
18192 else
18193   gl_cv_sys_struct_timespec_in_sys_time_h=no
18194 fi
18195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18196 fi
18197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
18198 printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
18199     if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
18200       SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
18201     else
18202       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
18203 printf %s "checking for struct timespec in <pthread.h>... " >&6; }
18204 if test ${gl_cv_sys_struct_timespec_in_pthread_h+y}
18205 then :
18206   printf %s "(cached) " >&6
18207 else
18208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18209 /* end confdefs.h.  */
18210 #include <pthread.h>
18211
18212 int
18213 main (void)
18214 {
18215 static struct timespec x; x.tv_sec = x.tv_nsec;
18216   ;
18217   return 0;
18218 }
18219 _ACEOF
18220 if ac_fn_c_try_compile "$LINENO"
18221 then :
18222   gl_cv_sys_struct_timespec_in_pthread_h=yes
18223 else
18224   gl_cv_sys_struct_timespec_in_pthread_h=no
18225 fi
18226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18227 fi
18228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
18229 printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
18230       if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
18231         PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
18232       else
18233         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
18234 printf %s "checking for struct timespec in <unistd.h>... " >&6; }
18235 if test ${gl_cv_sys_struct_timespec_in_unistd_h+y}
18236 then :
18237   printf %s "(cached) " >&6
18238 else
18239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18240 /* end confdefs.h.  */
18241 #include <unistd.h>
18242
18243 int
18244 main (void)
18245 {
18246 static struct timespec x; x.tv_sec = x.tv_nsec;
18247   ;
18248   return 0;
18249 }
18250 _ACEOF
18251 if ac_fn_c_try_compile "$LINENO"
18252 then :
18253   gl_cv_sys_struct_timespec_in_unistd_h=yes
18254 else
18255   gl_cv_sys_struct_timespec_in_unistd_h=no
18256 fi
18257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18258 fi
18259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
18260 printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
18261         if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
18262           UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
18263         fi
18264       fi
18265     fi
18266   fi
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276
18277
18278
18279
18280
18281
18282
18283      if test $gl_cv_have_include_next = yes; then
18284        gl_cv_next_time_h='<'time.h'>'
18285      else
18286        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
18287 printf %s "checking absolute name of <time.h>... " >&6; }
18288 if test ${gl_cv_next_time_h+y}
18289 then :
18290   printf %s "(cached) " >&6
18291 else
18292
18293
18294
18295   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h.  */
18297 #include <time.h>
18298 _ACEOF
18299                 case "$host_os" in
18300     aix*) gl_absname_cpp="$ac_cpp -C" ;;
18301     *)    gl_absname_cpp="$ac_cpp" ;;
18302   esac
18303
18304   case "$host_os" in
18305     mingw*)
18306                                           gl_dirsep_regex='[/\\]'
18307       ;;
18308     *)
18309       gl_dirsep_regex='\/'
18310       ;;
18311   esac
18312       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
18313   gl_header_literal_regex=`echo 'time.h' \
18314                            | sed -e "$gl_make_literal_regex_sed"`
18315   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
18316       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
18317       s|^/[^/]|//&|
18318       p
18319       q
18320     }'
18321
18322         gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
18323   sed -n "$gl_absolute_header_sed"`
18324
18325            gl_header=$gl_cv_absolute_time_h
18326            gl_cv_next_time_h='"'$gl_header'"'
18327
18328
18329 fi
18330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
18331 printf "%s\n" "$gl_cv_next_time_h" >&6; }
18332      fi
18333      NEXT_TIME_H=$gl_cv_next_time_h
18334
18335      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
18336        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
18337        gl_next_as_first_directive='<'time.h'>'
18338      else
18339        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
18340        gl_next_as_first_directive=$gl_cv_next_time_h
18341      fi
18342      NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352   GNULIB_UTIME=0;
18353     HAVE_UTIME=1;
18354   REPLACE_UTIME=0;
18355
18356
18357
18358
18359      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the utimes function works" >&5
18360 printf %s "checking whether the utimes function works... " >&6; }
18361 if test ${gl_cv_func_working_utimes+y}
18362 then :
18363   printf %s "(cached) " >&6
18364 else
18365   if test "$cross_compiling" = yes
18366 then :
18367   case "$host_os" in
18368                   # Guess no on native Windows.
18369           mingw*) gl_cv_func_working_utimes="guessing no" ;;
18370           *)      gl_cv_func_working_utimes="guessing no" ;;
18371         esac
18372
18373 else
18374   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h.  */
18376
18377 #include <sys/types.h>
18378 #include <sys/stat.h>
18379 #include <fcntl.h>
18380 #include <sys/time.h>
18381 #include <time.h>
18382 #include <unistd.h>
18383 #include <stdlib.h>
18384 #include <stdio.h>
18385 #include <utime.h>
18386 #include <errno.h>
18387
18388 static int
18389 inorder (time_t a, time_t b, time_t c)
18390 {
18391   return a <= b && b <= c;
18392 }
18393
18394 int
18395 main ()
18396 {
18397   int result = 0;
18398   char const *file = "conftest.utimes";
18399   /* On OS/2, file timestamps must be on or after 1980 in local time,
18400      with an even number of seconds.  */
18401   static struct timeval timeval[2] = {{315620000 + 10, 10},
18402                                       {315620000 + 1000000, 999998}};
18403
18404   /* Test whether utimes() essentially works.  */
18405   {
18406     struct stat sbuf;
18407     FILE *f = fopen (file, "w");
18408     if (f == NULL)
18409       result |= 1;
18410     else if (fclose (f) != 0)
18411       result |= 1;
18412     else if (utimes (file, timeval) != 0)
18413       result |= 2;
18414     else if (lstat (file, &sbuf) != 0)
18415       result |= 1;
18416     else if (!(sbuf.st_atime == timeval[0].tv_sec
18417                && sbuf.st_mtime == timeval[1].tv_sec))
18418       result |= 4;
18419     if (unlink (file) != 0)
18420       result |= 1;
18421   }
18422
18423   /* Test whether utimes() with a NULL argument sets the file's timestamp
18424      to the current time.  Use 'fstat' as well as 'time' to
18425      determine the "current" time, to accommodate NFS file systems
18426      if there is a time skew between the host and the NFS server.  */
18427   {
18428     int fd = open (file, O_WRONLY|O_CREAT, 0644);
18429     if (fd < 0)
18430       result |= 1;
18431     else
18432       {
18433         time_t t0, t2;
18434         struct stat st0, st1, st2;
18435         if (time (&t0) == (time_t) -1)
18436           result |= 1;
18437         else if (fstat (fd, &st0) != 0)
18438           result |= 1;
18439         else if (utimes (file, timeval) != 0
18440                  && (errno != EACCES
18441                      /* OS/2 kLIBC utimes fails on opened files.  */
18442                      || close (fd) != 0
18443                      || utimes (file, timeval) != 0
18444                      || (fd = open (file, O_WRONLY)) < 0))
18445           result |= 2;
18446         else if (utimes (file, NULL) != 0
18447                  && (errno != EACCES
18448                      /* OS/2 kLIBC utimes fails on opened files.  */
18449                      || close (fd) != 0
18450                      || utimes (file, NULL) != 0
18451                      || (fd = open (file, O_WRONLY)) < 0))
18452           result |= 8;
18453         else if (fstat (fd, &st1) != 0)
18454           result |= 1;
18455         else if (write (fd, "\n", 1) != 1)
18456           result |= 1;
18457         else if (fstat (fd, &st2) != 0)
18458           result |= 1;
18459         else if (time (&t2) == (time_t) -1)
18460           result |= 1;
18461         else
18462           {
18463             int m_ok_POSIX = inorder (t0, st1.st_mtime, t2);
18464             int m_ok_NFS = inorder (st0.st_mtime, st1.st_mtime, st2.st_mtime);
18465             if (! (st1.st_atime == st1.st_mtime))
18466               result |= 16;
18467             if (! (m_ok_POSIX || m_ok_NFS))
18468               result |= 32;
18469           }
18470         if (close (fd) != 0)
18471           result |= 1;
18472       }
18473     if (unlink (file) != 0)
18474       result |= 1;
18475   }
18476
18477   /* Test whether utimes() with a NULL argument works on read-only files.  */
18478   {
18479     int fd = open (file, O_WRONLY|O_CREAT, 0444);
18480     if (fd < 0)
18481       result |= 1;
18482     else if (close (fd) != 0)
18483       result |= 1;
18484     else if (utimes (file, NULL) != 0)
18485       result |= 64;
18486     if (unlink (file) != 0)
18487       result |= 1;
18488   }
18489
18490   return result;
18491 }
18492
18493 _ACEOF
18494 if ac_fn_c_try_run "$LINENO"
18495 then :
18496   gl_cv_func_working_utimes=yes
18497 else
18498   gl_cv_func_working_utimes=no
18499 fi
18500 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18501   conftest.$ac_objext conftest.beam conftest.$ac_ext
18502 fi
18503
18504
18505 fi
18506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_utimes" >&5
18507 printf "%s\n" "$gl_cv_func_working_utimes" >&6; }
18508
18509   case "$gl_cv_func_working_utimes" in
18510     *yes)
18511
18512 printf "%s\n" "#define HAVE_WORKING_UTIMES 1" >>confdefs.h
18513
18514       ;;
18515   esac
18516
18517
18518
18519
18520
18521
18522
18523   GNULIB_BTOWC=0;
18524   GNULIB_WCTOB=0;
18525   GNULIB_MBSINIT=0;
18526   GNULIB_MBRTOWC=0;
18527   GNULIB_MBRLEN=0;
18528   GNULIB_MBSRTOWCS=0;
18529   GNULIB_MBSNRTOWCS=0;
18530   GNULIB_WCRTOMB=0;
18531   GNULIB_WCSRTOMBS=0;
18532   GNULIB_WCSNRTOMBS=0;
18533   GNULIB_WCWIDTH=0;
18534   GNULIB_WMEMCHR=0;
18535   GNULIB_WMEMCMP=0;
18536   GNULIB_WMEMCPY=0;
18537   GNULIB_WMEMMOVE=0;
18538   GNULIB_WMEMSET=0;
18539   GNULIB_WCSLEN=0;
18540   GNULIB_WCSNLEN=0;
18541   GNULIB_WCSCPY=0;
18542   GNULIB_WCPCPY=0;
18543   GNULIB_WCSNCPY=0;
18544   GNULIB_WCPNCPY=0;
18545   GNULIB_WCSCAT=0;
18546   GNULIB_WCSNCAT=0;
18547   GNULIB_WCSCMP=0;
18548   GNULIB_WCSNCMP=0;
18549   GNULIB_WCSCASECMP=0;
18550   GNULIB_WCSNCASECMP=0;
18551   GNULIB_WCSCOLL=0;
18552   GNULIB_WCSXFRM=0;
18553   GNULIB_WCSDUP=0;
18554   GNULIB_WCSCHR=0;
18555   GNULIB_WCSRCHR=0;
18556   GNULIB_WCSCSPN=0;
18557   GNULIB_WCSSPN=0;
18558   GNULIB_WCSPBRK=0;
18559   GNULIB_WCSSTR=0;
18560   GNULIB_WCSTOK=0;
18561   GNULIB_WCSWIDTH=0;
18562   GNULIB_WCSFTIME=0;
18563     HAVE_BTOWC=1;
18564   HAVE_MBSINIT=1;
18565   HAVE_MBRTOWC=1;
18566   HAVE_MBRLEN=1;
18567   HAVE_MBSRTOWCS=1;
18568   HAVE_MBSNRTOWCS=1;
18569   HAVE_WCRTOMB=1;
18570   HAVE_WCSRTOMBS=1;
18571   HAVE_WCSNRTOMBS=1;
18572   HAVE_WMEMCHR=1;
18573   HAVE_WMEMCMP=1;
18574   HAVE_WMEMCPY=1;
18575   HAVE_WMEMMOVE=1;
18576   HAVE_WMEMSET=1;
18577   HAVE_WCSLEN=1;
18578   HAVE_WCSNLEN=1;
18579   HAVE_WCSCPY=1;
18580   HAVE_WCPCPY=1;
18581   HAVE_WCSNCPY=1;
18582   HAVE_WCPNCPY=1;
18583   HAVE_WCSCAT=1;
18584   HAVE_WCSNCAT=1;
18585   HAVE_WCSCMP=1;
18586   HAVE_WCSNCMP=1;
18587   HAVE_WCSCASECMP=1;
18588   HAVE_WCSNCASECMP=1;
18589   HAVE_WCSCOLL=1;
18590   HAVE_WCSXFRM=1;
18591   HAVE_WCSDUP=1;
18592   HAVE_WCSCHR=1;
18593   HAVE_WCSRCHR=1;
18594   HAVE_WCSCSPN=1;
18595   HAVE_WCSSPN=1;
18596   HAVE_WCSPBRK=1;
18597   HAVE_WCSSTR=1;
18598   HAVE_WCSTOK=1;
18599   HAVE_WCSWIDTH=1;
18600   HAVE_WCSFTIME=1;
18601   HAVE_DECL_WCTOB=1;
18602   HAVE_DECL_WCWIDTH=1;
18603   REPLACE_MBSTATE_T=0;
18604   REPLACE_BTOWC=0;
18605   REPLACE_WCTOB=0;
18606   REPLACE_MBSINIT=0;
18607   REPLACE_MBRTOWC=0;
18608   REPLACE_MBRLEN=0;
18609   REPLACE_MBSRTOWCS=0;
18610   REPLACE_MBSNRTOWCS=0;
18611   REPLACE_WCRTOMB=0;
18612   REPLACE_WCSRTOMBS=0;
18613   REPLACE_WCSNRTOMBS=0;
18614   REPLACE_WCWIDTH=0;
18615   REPLACE_WCSWIDTH=0;
18616   REPLACE_WCSFTIME=0;
18617
18618
18619             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
18620 printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
18621 if test ${gl_cv_header_wchar_h_correct_inline+y}
18622 then :
18623   printf %s "(cached) " >&6
18624 else
18625   gl_cv_header_wchar_h_correct_inline=yes
18626      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18627 /* end confdefs.h.  */
18628
18629        #define wcstod renamed_wcstod
18630 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18631    <wchar.h>.
18632    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18633    included before <wchar.h>.  */
18634 #include <stddef.h>
18635 #include <stdio.h>
18636 #include <time.h>
18637 #include <wchar.h>
18638 extern int zero (void);
18639 int main () { return zero(); }
18640
18641 _ACEOF
18642                               save_ac_compile="$ac_compile"
18643      ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
18644      if echo '#include "conftest.c"' >conftest1.c &&
18645         { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18646   (eval $ac_compile) 2>&5
18647   ac_status=$?
18648   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18649   test $ac_status = 0; }; then
18650        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651 /* end confdefs.h.  */
18652
18653          #define wcstod renamed_wcstod
18654 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
18655    <wchar.h>.
18656    BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
18657    included before <wchar.h>.  */
18658 #include <stddef.h>
18659 #include <stdio.h>
18660 #include <time.h>
18661 #include <wchar.h>
18662 int zero (void) { return 0; }
18663
18664 _ACEOF
18665               ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
18666        if echo '#include "conftest.c"' >conftest2.c &&
18667           { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18668   (eval $ac_compile) 2>&5
18669   ac_status=$?
18670   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18671   test $ac_status = 0; }; then
18672          if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
18673            :
18674          else
18675            gl_cv_header_wchar_h_correct_inline=no
18676          fi
18677        fi
18678      fi
18679      ac_compile="$save_ac_compile"
18680      rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
18681
18682 fi
18683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
18684 printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; }
18685   if test $gl_cv_header_wchar_h_correct_inline = no; then
18686     as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
18687 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
18688 C99 mode. You have four options:
18689   - Add the flag -fgnu89-inline to CC and reconfigure, or
18690   - Fix your include files, using parts of
18691     <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
18692   - Use a gcc version older than 4.3, or
18693   - Don't use the flags -std=c99 or -std=gnu99.
18694 Configuration aborted." "$LINENO" 5
18695   fi
18696
18697
18698
18699
18700   if test $ac_cv_header_crtdefs_h = yes; then
18701     HAVE_CRTDEFS_H=1
18702   else
18703     HAVE_CRTDEFS_H=0
18704   fi
18705
18706
18707
18708                               { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit time_t" >&5
18709 printf %s "checking for 64-bit time_t... " >&6; }
18710 if test ${gl_cv_type_time_t_64+y}
18711 then :
18712   printf %s "(cached) " >&6
18713 else
18714   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h.  */
18716 #include <time.h>
18717             int verify_time_t_size[sizeof (time_t) >= 8 ? 1 : -1];
18718
18719 int
18720 main (void)
18721 {
18722
18723   ;
18724   return 0;
18725 }
18726 _ACEOF
18727 if ac_fn_c_try_compile "$LINENO"
18728 then :
18729   gl_cv_type_time_t_64=yes
18730 else
18731   gl_cv_type_time_t_64=no
18732 fi
18733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18734
18735 fi
18736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_time_t_64" >&5
18737 printf "%s\n" "$gl_cv_type_time_t_64" >&6; }
18738   if test $gl_cv_type_time_t_64 = no; then
18739     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18740 /* end confdefs.h.  */
18741 #ifdef _USE_32BIT_TIME_T
18742              int ok;
18743            #else
18744              error fail
18745            #endif
18746
18747 _ACEOF
18748 if ac_fn_c_try_compile "$LINENO"
18749 then :
18750   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18751 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18752 as_fn_error $? "This package requires a 64-bit 'time_t' type. Remove _USE_32BIT_TIME_T from the compiler flags.
18753 See \`config.log' for more details" "$LINENO" 5; }
18754 else
18755   # If TIME_T_32_BIT_OK is "no" (the default) and not cross-compiling
18756        # and 'touch' works with a large timestamp, then evidently 64-bit time_t
18757        # is desired and supported, so fail and ask the builder to fix the
18758        # problem.  Otherwise, just warn the builder.
18759        if test "${TIME_T_32_BIT_OK-no}" = no \
18760           && test $cross_compiling = no \
18761           && TZ=UTC0 touch -t 210602070628.16 conftest.time 2>/dev/null; then
18762          rm -f conftest.time
18763          { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18764 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18765 as_fn_error $? "This package requires a 64-bit 'time_t' type, which your system appears to support. You might try configuring with 'CPPFLAGS=\"-m64\" LDFLAGS=\"-m64\"'. To build with a 32-bit time_t anyway (not recommended), configure with 'TIME_T_32_BIT_OK=yes'.
18766 See \`config.log' for more details" "$LINENO" 5; }
18767        else
18768          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: This package requires a 64-bit 'time_t' type if there is any way to access timestamps outside the year range 1901-2038 on your platform. Perhaps you should configure with 'CPPFLAGS=\"-m64\" LDFLAGS=\"-m64\"'?" >&5
18769 printf "%s\n" "$as_me: WARNING: This package requires a 64-bit 'time_t' type if there is any way to access timestamps outside the year range 1901-2038 on your platform. Perhaps you should configure with 'CPPFLAGS=\"-m64\" LDFLAGS=\"-m64\"'?" >&2;}
18770        fi
18771
18772 fi
18773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18774   fi
18775
18776
18777    if false; then
18778   GL_COND_LIBTOOL_TRUE=
18779   GL_COND_LIBTOOL_FALSE='#'
18780 else
18781   GL_COND_LIBTOOL_TRUE='#'
18782   GL_COND_LIBTOOL_FALSE=
18783 fi
18784
18785   gl_cond_libtool=false
18786   gl_libdeps=
18787   gl_ltlibdeps=
18788   gl_m4_base='m4'
18789
18790
18791
18792
18793
18794
18795
18796
18797
18798   gl_source_base='lib'
18799
18800
18801   if test $ac_cv_func_alloca_works = no; then
18802     :
18803   fi
18804
18805   # Define an additional variable used in the Makefile substitution.
18806   if test $ac_cv_working_alloca_h = yes; then
18807     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
18808 printf %s "checking for alloca as a compiler built-in... " >&6; }
18809 if test ${gl_cv_rpl_alloca+y}
18810 then :
18811   printf %s "(cached) " >&6
18812 else
18813
18814       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18815 /* end confdefs.h.  */
18816
18817 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
18818         Need own alloca
18819 #endif
18820
18821 _ACEOF
18822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18823   $EGREP "Need own alloca" >/dev/null 2>&1
18824 then :
18825   gl_cv_rpl_alloca=yes
18826 else
18827   gl_cv_rpl_alloca=no
18828 fi
18829 rm -rf conftest*
18830
18831
18832 fi
18833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
18834 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
18835     if test $gl_cv_rpl_alloca = yes; then
18836
18837 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
18838
18839       ALLOCA_H=alloca.h
18840     else
18841                   ALLOCA_H=
18842     fi
18843   else
18844     ALLOCA_H=alloca.h
18845   fi
18846
18847    if test -n "$ALLOCA_H"; then
18848   GL_GENERATE_ALLOCA_H_TRUE=
18849   GL_GENERATE_ALLOCA_H_FALSE='#'
18850 else
18851   GL_GENERATE_ALLOCA_H_TRUE='#'
18852   GL_GENERATE_ALLOCA_H_FALSE=
18853 fi
18854
18855
18856
18857
18858
18859
18860
18861
18862
18863
18864   gl_LIBOBJS="$gl_LIBOBJS openat-proc.$ac_objext"
18865
18866
18867
18868
18869        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible calloc" >&5
18870 printf %s "checking for GNU libc compatible calloc... " >&6; }
18871 if test ${ac_cv_func_calloc_0_nonnull+y}
18872 then :
18873   printf %s "(cached) " >&6
18874 else
18875   if test "$cross_compiling" = yes
18876 then :
18877   case "$host_os" in
18878                          # Guess yes on glibc systems.
18879           *-gnu* | gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
18880                          # Guess yes on native Windows.
18881           mingw*)        ac_cv_func_calloc_0_nonnull="guessing yes" ;;
18882                          # If we don't know, assume the worst.
18883           *)             ac_cv_func_calloc_0_nonnull="guessing no" ;;
18884         esac
18885
18886 else
18887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18888 /* end confdefs.h.  */
18889 $ac_includes_default
18890 int
18891 main (void)
18892 {
18893 int result = 0;
18894             char *p = calloc (0, 0);
18895             if (!p)
18896               result |= 1;
18897             free (p);
18898             p = calloc ((size_t) -1 / 8 + 1, 8);
18899             if (p)
18900               result |= 2;
18901             free (p);
18902             return result;
18903
18904   ;
18905   return 0;
18906 }
18907 _ACEOF
18908 if ac_fn_c_try_run "$LINENO"
18909 then :
18910   ac_cv_func_calloc_0_nonnull=yes
18911 else
18912   ac_cv_func_calloc_0_nonnull=no
18913 fi
18914 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18915   conftest.$ac_objext conftest.beam conftest.$ac_ext
18916 fi
18917
18918 fi
18919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5
18920 printf "%s\n" "$ac_cv_func_calloc_0_nonnull" >&6; }
18921   case "$ac_cv_func_calloc_0_nonnull" in
18922     *yes)
18923
18924 printf "%s\n" "#define HAVE_CALLOC_GNU 1" >>confdefs.h
18925
18926       ;;
18927     *)
18928       printf "%s\n" "#define HAVE_CALLOC_GNU 0" >>confdefs.h
18929
18930      REPLACE_CALLOC=1
18931
18932       ;;
18933   esac
18934
18935
18936   if test $REPLACE_CALLOC = 1; then
18937
18938
18939
18940
18941
18942
18943
18944
18945   gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
18946
18947   fi
18948
18949
18950 printf "%s\n" "#define GNULIB_CALLOC_GNU 1" >>confdefs.h
18951
18952
18953
18954
18955
18956   if test $gl_cv_func_malloc_posix = yes; then
18957
18958 printf "%s\n" "#define HAVE_CALLOC_POSIX 1" >>confdefs.h
18959
18960   else
18961     REPLACE_CALLOC=1
18962   fi
18963
18964   if test $REPLACE_CALLOC = 1; then
18965
18966
18967
18968
18969
18970
18971
18972
18973   gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
18974
18975   fi
18976
18977
18978
18979
18980
18981           GNULIB_CALLOC_POSIX=1
18982
18983
18984
18985
18986
18987 printf "%s\n" "#define GNULIB_TEST_CALLOC_POSIX 1" >>confdefs.h
18988
18989
18990
18991
18992
18993
18994
18995
18996           GNULIB_CHDIR=1
18997
18998
18999
19000
19001
19002 printf "%s\n" "#define GNULIB_TEST_CHDIR 1" >>confdefs.h
19003
19004
19005
19006
19007
19008   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether this system has an arbitrary file name length limit" >&5
19009 printf %s "checking whether this system has an arbitrary file name length limit... " >&6; }
19010 if test ${gl_cv_have_arbitrary_file_name_length_limit+y}
19011 then :
19012   printf %s "(cached) " >&6
19013 else
19014   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19015 /* end confdefs.h.  */
19016
19017 /* Arrange to define PATH_MAX, like "pathmax.h" does. */
19018 #if HAVE_UNISTD_H
19019 # include <unistd.h>
19020 #endif
19021 #include <limits.h>
19022 #if defined HAVE_SYS_PARAM_H && !defined PATH_MAX && !defined MAXPATHLEN
19023 # include <sys/param.h>
19024 #endif
19025 #if !defined PATH_MAX && defined MAXPATHLEN
19026 # define PATH_MAX MAXPATHLEN
19027 #endif
19028 #ifdef __hpux
19029 # undef PATH_MAX
19030 # define PATH_MAX 1024
19031 #endif
19032 #if defined _WIN32 && ! defined __CYGWIN__
19033 # undef PATH_MAX
19034 # define PATH_MAX 260
19035 #endif
19036
19037 #ifdef PATH_MAX
19038 have_arbitrary_file_name_length_limit
19039 #endif
19040 _ACEOF
19041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19042   $EGREP "have_arbitrary_file_name_length_limit" >/dev/null 2>&1
19043 then :
19044   gl_cv_have_arbitrary_file_name_length_limit=yes
19045 else
19046   gl_cv_have_arbitrary_file_name_length_limit=no
19047 fi
19048 rm -rf conftest*
19049
19050 fi
19051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_arbitrary_file_name_length_limit" >&5
19052 printf "%s\n" "$gl_cv_have_arbitrary_file_name_length_limit" >&6; }
19053
19054   if test $gl_cv_have_arbitrary_file_name_length_limit = yes; then
19055
19056
19057
19058
19059
19060
19061
19062
19063   gl_LIBOBJS="$gl_LIBOBJS chdir-long.$ac_objext"
19064
19065     :
19066   fi
19067
19068
19069
19070   # Solaris 2.5.1 needs -lposix4 to get the clock_gettime function.
19071   # Solaris 7 prefers the library name -lrt to the obsolescent name -lposix4.
19072
19073   # Save and restore LIBS so e.g., -lrt, isn't added to it.  Otherwise, *all*
19074   # programs in the package would end up linked with that potentially-shared
19075   # library, inducing unnecessary run-time overhead.
19076   LIB_CLOCK_GETTIME=
19077
19078   gl_saved_libs=$LIBS
19079     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
19080 printf %s "checking for library containing clock_gettime... " >&6; }
19081 if test ${ac_cv_search_clock_gettime+y}
19082 then :
19083   printf %s "(cached) " >&6
19084 else
19085   ac_func_search_save_LIBS=$LIBS
19086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19087 /* end confdefs.h.  */
19088
19089 /* Override any GCC internal prototype to avoid an error.
19090    Use char because int might match the return type of a GCC
19091    builtin and then its argument prototype would still apply.  */
19092 #ifdef __cplusplus
19093 extern "C"
19094 #endif
19095 char clock_gettime ();
19096 int
19097 main (void)
19098 {
19099 return clock_gettime ();
19100   ;
19101   return 0;
19102 }
19103 _ACEOF
19104 for ac_lib in '' rt posix4
19105 do
19106   if test -z "$ac_lib"; then
19107     ac_res="none required"
19108   else
19109     ac_res=-l$ac_lib
19110     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19111   fi
19112   if ac_fn_c_try_link "$LINENO"
19113 then :
19114   ac_cv_search_clock_gettime=$ac_res
19115 fi
19116 rm -f core conftest.err conftest.$ac_objext \
19117     conftest$ac_exeext
19118   if test ${ac_cv_search_clock_gettime+y}
19119 then :
19120   break
19121 fi
19122 done
19123 if test ${ac_cv_search_clock_gettime+y}
19124 then :
19125
19126 else
19127   ac_cv_search_clock_gettime=no
19128 fi
19129 rm conftest.$ac_ext
19130 LIBS=$ac_func_search_save_LIBS
19131 fi
19132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
19133 printf "%s\n" "$ac_cv_search_clock_gettime" >&6; }
19134 ac_res=$ac_cv_search_clock_gettime
19135 if test "$ac_res" != no
19136 then :
19137   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19138   test "$ac_cv_search_clock_gettime" = "none required" ||
19139                     LIB_CLOCK_GETTIME=$ac_cv_search_clock_gettime
19140 fi
19141
19142     ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
19143 if test "x$ac_cv_func_clock_gettime" = xyes
19144 then :
19145   printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
19146
19147 fi
19148 ac_fn_c_check_func "$LINENO" "clock_settime" "ac_cv_func_clock_settime"
19149 if test "x$ac_cv_func_clock_settime" = xyes
19150 then :
19151   printf "%s\n" "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
19152
19153 fi
19154
19155   LIBS=$gl_saved_libs
19156
19157
19158
19159 printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
19160
19161
19162
19163
19164
19165
19166     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19167       REPLACE_CLOSE=1
19168     fi
19169
19170
19171
19172
19173
19174
19175   if test $ac_cv_header_sys_socket_h != yes; then
19176                     ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19177 if test "x$ac_cv_header_winsock2_h" = xyes
19178 then :
19179   printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
19180
19181 fi
19182
19183   fi
19184   if test "$ac_cv_header_winsock2_h" = yes; then
19185     HAVE_WINSOCK2_H=1
19186     UNISTD_H_HAVE_WINSOCK2_H=1
19187     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19188   else
19189     HAVE_WINSOCK2_H=0
19190   fi
19191
19192
19193     if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
19194                         REPLACE_CLOSE=1
19195     fi
19196
19197
19198     if test $REPLACE_CLOSE = 0; then
19199
19200
19201
19202   if test $ac_cv_func_fchdir = no; then
19203     HAVE_FCHDIR=0
19204   fi
19205
19206       if test $HAVE_FCHDIR = 0; then
19207         REPLACE_CLOSE=1
19208       fi
19209     fi
19210
19211
19212   if test $REPLACE_CLOSE = 1; then
19213
19214
19215
19216
19217
19218
19219
19220
19221   gl_LIBOBJS="$gl_LIBOBJS close.$ac_objext"
19222
19223   fi
19224
19225
19226
19227
19228
19229           GNULIB_CLOSE=1
19230
19231
19232
19233
19234
19235 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
19236
19237
19238
19239
19240
19241
19242   ac_fn_c_check_func "$LINENO" "closedir" "ac_cv_func_closedir"
19243 if test "x$ac_cv_func_closedir" = xyes
19244 then :
19245   printf "%s\n" "#define HAVE_CLOSEDIR 1" >>confdefs.h
19246
19247 fi
19248
19249   if test $ac_cv_func_closedir = no; then
19250     HAVE_CLOSEDIR=0
19251   fi
19252
19253
19254
19255
19256   if test $ac_cv_func_fchdir = no; then
19257     HAVE_FCHDIR=0
19258   fi
19259
19260     if test $HAVE_FCHDIR = 0; then
19261       if test $HAVE_CLOSEDIR = 1; then
19262         REPLACE_CLOSEDIR=1
19263       fi
19264     fi
19265
19266     case $host_os,$HAVE_CLOSEDIR in
19267     os2*,1)
19268       REPLACE_CLOSEDIR=1;;
19269   esac
19270
19271   if test $HAVE_CLOSEDIR = 0 || test $REPLACE_CLOSEDIR = 1; then
19272
19273
19274
19275
19276
19277
19278
19279
19280   gl_LIBOBJS="$gl_LIBOBJS closedir.$ac_objext"
19281
19282   fi
19283
19284
19285
19286
19287
19288           GNULIB_CLOSEDIR=1
19289
19290
19291
19292
19293
19294 printf "%s\n" "#define GNULIB_TEST_CLOSEDIR 1" >>confdefs.h
19295
19296
19297
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308
19309
19310      if test $gl_cv_have_include_next = yes; then
19311        gl_cv_next_dirent_h='<'dirent.h'>'
19312      else
19313        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <dirent.h>" >&5
19314 printf %s "checking absolute name of <dirent.h>... " >&6; }
19315 if test ${gl_cv_next_dirent_h+y}
19316 then :
19317   printf %s "(cached) " >&6
19318 else
19319
19320              if test $ac_cv_header_dirent_h = yes; then
19321
19322
19323
19324
19325   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19326 /* end confdefs.h.  */
19327 #include <dirent.h>
19328 _ACEOF
19329                 case "$host_os" in
19330     aix*) gl_absname_cpp="$ac_cpp -C" ;;
19331     *)    gl_absname_cpp="$ac_cpp" ;;
19332   esac
19333
19334   case "$host_os" in
19335     mingw*)
19336                                           gl_dirsep_regex='[/\\]'
19337       ;;
19338     *)
19339       gl_dirsep_regex='\/'
19340       ;;
19341   esac
19342       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
19343   gl_header_literal_regex=`echo 'dirent.h' \
19344                            | sed -e "$gl_make_literal_regex_sed"`
19345   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
19346       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
19347       s|^/[^/]|//&|
19348       p
19349       q
19350     }'
19351
19352         gl_cv_absolute_dirent_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
19353   sed -n "$gl_absolute_header_sed"`
19354
19355            gl_header=$gl_cv_absolute_dirent_h
19356            gl_cv_next_dirent_h='"'$gl_header'"'
19357           else
19358                gl_cv_next_dirent_h='<'dirent.h'>'
19359              fi
19360
19361
19362 fi
19363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_dirent_h" >&5
19364 printf "%s\n" "$gl_cv_next_dirent_h" >&6; }
19365      fi
19366      NEXT_DIRENT_H=$gl_cv_next_dirent_h
19367
19368      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
19369        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
19370        gl_next_as_first_directive='<'dirent.h'>'
19371      else
19372        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
19373        gl_next_as_first_directive=$gl_cv_next_dirent_h
19374      fi
19375      NEXT_AS_FIRST_DIRECTIVE_DIRENT_H=$gl_next_as_first_directive
19376
19377
19378
19379
19380   if test $ac_cv_header_dirent_h = yes; then
19381     HAVE_DIRENT_H=1
19382   else
19383     HAVE_DIRENT_H=0
19384   fi
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394 printf "%s\n" "#define GNULIB_DIRENT_SAFER 1" >>confdefs.h
19395
19396
19397
19398
19399
19400
19401
19402   ac_fn_c_check_func "$LINENO" "dirfd" "ac_cv_func_dirfd"
19403 if test "x$ac_cv_func_dirfd" = xyes
19404 then :
19405   printf "%s\n" "#define HAVE_DIRFD 1" >>confdefs.h
19406
19407 fi
19408
19409   ac_fn_c_check_decl "$LINENO" "dirfd" "ac_cv_have_decl_dirfd" "#include <sys/types.h>
19410       #include <dirent.h>
19411 "
19412 if test "x$ac_cv_have_decl_dirfd" = xyes
19413 then :
19414   ac_have_decl=1
19415 else
19416   ac_have_decl=0
19417 fi
19418
19419 printf "%s\n" "#define HAVE_DECL_DIRFD $ac_have_decl" >>confdefs.h
19420
19421   if test $ac_cv_have_decl_dirfd = no; then
19422     HAVE_DECL_DIRFD=0
19423   fi
19424
19425   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dirfd is a macro" >&5
19426 printf %s "checking whether dirfd is a macro... " >&6; }
19427 if test ${gl_cv_func_dirfd_macro+y}
19428 then :
19429   printf %s "(cached) " >&6
19430 else
19431   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19432 /* end confdefs.h.  */
19433
19434 #include <sys/types.h>
19435 #include <dirent.h>
19436 #ifdef dirfd
19437  dirent_header_defines_dirfd
19438 #endif
19439 _ACEOF
19440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19441   $EGREP "dirent_header_defines_dirfd" >/dev/null 2>&1
19442 then :
19443   gl_cv_func_dirfd_macro=yes
19444 else
19445   gl_cv_func_dirfd_macro=no
19446 fi
19447 rm -rf conftest*
19448
19449 fi
19450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dirfd_macro" >&5
19451 printf "%s\n" "$gl_cv_func_dirfd_macro" >&6; }
19452
19453   # Use the replacement if we have no function or macro with that name,
19454   # or if OS/2 kLIBC whose dirfd() does not work.
19455   # Replace only if the system declares dirfd already.
19456   case $ac_cv_func_dirfd,$gl_cv_func_dirfd_macro,$host_os,$ac_cv_have_decl_dirfd in
19457     no,no,*,yes | *,*,os2*,yes)
19458       REPLACE_DIRFD=1
19459
19460 printf "%s\n" "#define REPLACE_DIRFD 1" >>confdefs.h
19461 ;;
19462   esac
19463
19464   if test $ac_cv_func_dirfd = no && test $gl_cv_func_dirfd_macro = no \
19465      || test $REPLACE_DIRFD = 1; then
19466
19467
19468
19469
19470
19471
19472
19473
19474   gl_LIBOBJS="$gl_LIBOBJS dirfd.$ac_objext"
19475
19476
19477   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to get the file descriptor associated with an open DIR*" >&5
19478 printf %s "checking how to get the file descriptor associated with an open DIR*... " >&6; }
19479 if test ${gl_cv_sys_dir_fd_member_name+y}
19480 then :
19481   printf %s "(cached) " >&6
19482 else
19483
19484       dirfd_save_CFLAGS=$CFLAGS
19485       for ac_expr in d_fd dd_fd; do
19486
19487         CFLAGS="$CFLAGS -DDIR_FD_MEMBER_NAME=$ac_expr"
19488         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19489 /* end confdefs.h.  */
19490
19491            #include <sys/types.h>
19492            #include <dirent.h>
19493 int
19494 main (void)
19495 {
19496 DIR *dir_p = opendir("."); (void) dir_p->DIR_FD_MEMBER_NAME;
19497   ;
19498   return 0;
19499 }
19500 _ACEOF
19501 if ac_fn_c_try_compile "$LINENO"
19502 then :
19503   dir_fd_found=yes
19504
19505 fi
19506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19507         CFLAGS=$dirfd_save_CFLAGS
19508         test "$dir_fd_found" = yes && break
19509       done
19510       test "$dir_fd_found" = yes || ac_expr=no_such_member
19511
19512       gl_cv_sys_dir_fd_member_name=$ac_expr
19513
19514
19515 fi
19516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_dir_fd_member_name" >&5
19517 printf "%s\n" "$gl_cv_sys_dir_fd_member_name" >&6; }
19518   if test $gl_cv_sys_dir_fd_member_name != no_such_member; then
19519
19520 printf "%s\n" "#define DIR_FD_MEMBER_NAME $gl_cv_sys_dir_fd_member_name" >>confdefs.h
19521
19522   fi
19523
19524
19525   fi
19526
19527
19528
19529
19530
19531           GNULIB_DIRFD=1
19532
19533
19534
19535
19536
19537 printf "%s\n" "#define GNULIB_TEST_DIRFD 1" >>confdefs.h
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
19548 printf %s "checking whether // is distinct from /... " >&6; }
19549 if test ${gl_cv_double_slash_root+y}
19550 then :
19551   printf %s "(cached) " >&6
19552 else
19553    if test x"$cross_compiling" = xyes ; then
19554         # When cross-compiling, there is no way to tell whether // is special
19555         # short of a list of hosts.  However, the only known hosts to date
19556         # that have a distinct // are Apollo DomainOS (too old to port to),
19557         # Cygwin, and z/OS.  If anyone knows of another system for which // has
19558         # special semantics and is distinct from /, please report it to
19559         # <bug-gnulib@gnu.org>.
19560         case $host in
19561           *-cygwin | i370-ibm-openedition)
19562             gl_cv_double_slash_root=yes ;;
19563           *)
19564             # Be optimistic and assume that / and // are the same when we
19565             # don't know.
19566             gl_cv_double_slash_root='unknown, assuming no' ;;
19567         esac
19568       else
19569         set x `ls -di / // 2>/dev/null`
19570         if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
19571           gl_cv_double_slash_root=no
19572         else
19573           gl_cv_double_slash_root=yes
19574         fi
19575       fi
19576 fi
19577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
19578 printf "%s\n" "$gl_cv_double_slash_root" >&6; }
19579   if test "$gl_cv_double_slash_root" = yes; then
19580
19581 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
19582
19583   fi
19584
19585
19586
19587
19588
19589     if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19590       REPLACE_DUP=1
19591     fi
19592
19593
19594
19595
19596
19597   if test $ac_cv_func_fchdir = no; then
19598     HAVE_FCHDIR=0
19599   fi
19600
19601     if test $HAVE_FCHDIR = 0; then
19602       REPLACE_DUP=1
19603     fi
19604
19605   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup works" >&5
19606 printf %s "checking whether dup works... " >&6; }
19607 if test ${gl_cv_func_dup_works+y}
19608 then :
19609   printf %s "(cached) " >&6
19610 else
19611   if test "$cross_compiling" = yes
19612 then :
19613   case "$host_os" in
19614                  # Guess no on native Windows.
19615          mingw*) gl_cv_func_dup_works="guessing no" ;;
19616          *)      gl_cv_func_dup_works="guessing yes" ;;
19617        esac
19618
19619 else
19620   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19621 /* end confdefs.h.  */
19622 #include <unistd.h>
19623                          #include <fcntl.h>
19624                          #include <errno.h>
19625 int
19626 main (void)
19627 {
19628 /* On OS/2 kLIBC, dup does not work on a directory fd.  */
19629            int fd = open (".", O_RDONLY);
19630            return fd < 0 ? 1 : dup (fd) < 0 ? 2 : 0;
19631
19632   ;
19633   return 0;
19634 }
19635
19636 _ACEOF
19637 if ac_fn_c_try_run "$LINENO"
19638 then :
19639   gl_cv_func_dup_works=yes
19640 else
19641   gl_cv_func_dup_works=no
19642 fi
19643 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19644   conftest.$ac_objext conftest.beam conftest.$ac_ext
19645 fi
19646
19647
19648 fi
19649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup_works" >&5
19650 printf "%s\n" "$gl_cv_func_dup_works" >&6; }
19651   case "$gl_cv_func_dup_works" in
19652     *yes) ;;
19653     *)
19654       REPLACE_DUP=1
19655       ;;
19656   esac
19657
19658   if test $REPLACE_DUP = 1; then
19659
19660
19661
19662
19663
19664
19665
19666
19667   gl_LIBOBJS="$gl_LIBOBJS dup.$ac_objext"
19668
19669     :
19670   fi
19671
19672
19673
19674
19675
19676           GNULIB_DUP=1
19677
19678
19679
19680
19681
19682 printf "%s\n" "#define GNULIB_TEST_DUP 1" >>confdefs.h
19683
19684
19685
19686
19687
19688
19689
19690
19691 printf "%s\n" "#define HAVE_DUP2 1" >>confdefs.h
19692
19693
19694   if test $HAVE_DUP2 = 1; then
19695     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
19696 printf %s "checking whether dup2 works... " >&6; }
19697 if test ${gl_cv_func_dup2_works+y}
19698 then :
19699   printf %s "(cached) " >&6
19700 else
19701   if test "$cross_compiling" = yes
19702 then :
19703   case "$host_os" in
19704            mingw*) # on this platform, dup2 always returns 0 for success
19705              gl_cv_func_dup2_works="guessing no" ;;
19706            cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
19707              gl_cv_func_dup2_works="guessing no" ;;
19708            aix* | freebsd*)
19709                    # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
19710                    # not EBADF.
19711              gl_cv_func_dup2_works="guessing no" ;;
19712            haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
19713              gl_cv_func_dup2_works="guessing no" ;;
19714            *-android*) # implemented using dup3(), which fails if oldfd == newfd
19715              gl_cv_func_dup2_works="guessing no" ;;
19716            os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
19717              gl_cv_func_dup2_works="guessing no" ;;
19718            *) gl_cv_func_dup2_works="guessing yes" ;;
19719          esac
19720 else
19721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19722 /* end confdefs.h.  */
19723
19724          #include <errno.h>
19725              #include <fcntl.h>
19726              #include <limits.h>
19727              #include <sys/resource.h>
19728              #include <unistd.h>
19729              #ifndef RLIM_SAVED_CUR
19730              # define RLIM_SAVED_CUR RLIM_INFINITY
19731              #endif
19732              #ifndef RLIM_SAVED_MAX
19733              # define RLIM_SAVED_MAX RLIM_INFINITY
19734              #endif
19735
19736 int
19737 main (void)
19738 {
19739 int result = 0;
19740              int bad_fd = INT_MAX;
19741              struct rlimit rlim;
19742              if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
19743                  && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
19744                  && rlim.rlim_cur != RLIM_INFINITY
19745                  && rlim.rlim_cur != RLIM_SAVED_MAX
19746                  && rlim.rlim_cur != RLIM_SAVED_CUR)
19747                bad_fd = rlim.rlim_cur;
19748              #ifdef FD_CLOEXEC
19749                if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
19750                  result |= 1;
19751              #endif
19752              if (dup2 (1, 1) != 1)
19753                result |= 2;
19754              #ifdef FD_CLOEXEC
19755                if (fcntl (1, F_GETFD) != FD_CLOEXEC)
19756                  result |= 4;
19757              #endif
19758              close (0);
19759              if (dup2 (0, 0) != -1)
19760                result |= 8;
19761              /* Many gnulib modules require POSIX conformance of EBADF.  */
19762              if (dup2 (2, bad_fd) == -1 && errno != EBADF)
19763                result |= 16;
19764              /* Flush out some cygwin core dumps.  */
19765              if (dup2 (2, -1) != -1 || errno != EBADF)
19766                result |= 32;
19767              dup2 (2, 255);
19768              dup2 (2, 256);
19769              /* On OS/2 kLIBC, dup2() does not work on a directory fd.  */
19770              {
19771                int fd = open (".", O_RDONLY);
19772                if (fd == -1)
19773                  result |= 64;
19774                else if (dup2 (fd, fd + 1) == -1)
19775                  result |= 128;
19776
19777                close (fd);
19778              }
19779              return result;
19780   ;
19781   return 0;
19782 }
19783
19784 _ACEOF
19785 if ac_fn_c_try_run "$LINENO"
19786 then :
19787   gl_cv_func_dup2_works=yes
19788 else
19789   gl_cv_func_dup2_works=no
19790 fi
19791 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19792   conftest.$ac_objext conftest.beam conftest.$ac_ext
19793 fi
19794
19795
19796 fi
19797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
19798 printf "%s\n" "$gl_cv_func_dup2_works" >&6; }
19799     case "$gl_cv_func_dup2_works" in
19800       *yes) ;;
19801       *)
19802         REPLACE_DUP2=1
19803         ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
19804 if test "x$ac_cv_func_setdtablesize" = xyes
19805 then :
19806   printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
19807
19808 fi
19809
19810         ;;
19811     esac
19812   fi
19813
19814
19815
19816
19817   if test $ac_cv_func_fchdir = no; then
19818     HAVE_FCHDIR=0
19819   fi
19820
19821     if test $HAVE_FCHDIR = 0; then
19822       if test $HAVE_DUP2 = 1; then
19823         REPLACE_DUP2=1
19824       fi
19825     fi
19826
19827
19828   if test $HAVE_DUP2 = 0 || test $REPLACE_DUP2 = 1; then
19829
19830
19831
19832
19833
19834
19835
19836
19837   gl_LIBOBJS="$gl_LIBOBJS dup2.$ac_objext"
19838
19839
19840   fi
19841
19842
19843
19844
19845
19846           GNULIB_DUP2=1
19847
19848
19849
19850
19851
19852 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h
19853
19854
19855
19856
19857
19858       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
19859 printf %s "checking for error_at_line... " >&6; }
19860 if test ${ac_cv_lib_error_at_line+y}
19861 then :
19862   printf %s "(cached) " >&6
19863 else
19864   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19865 /* end confdefs.h.  */
19866 #include <error.h>
19867 int
19868 main (void)
19869 {
19870 error_at_line (0, 0, "", 0, "an error occurred");
19871   ;
19872   return 0;
19873 }
19874 _ACEOF
19875 if ac_fn_c_try_link "$LINENO"
19876 then :
19877   ac_cv_lib_error_at_line=yes
19878 else
19879   ac_cv_lib_error_at_line=no
19880 fi
19881 rm -f core conftest.err conftest.$ac_objext \
19882     conftest$ac_exeext conftest.$ac_ext
19883 fi
19884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
19885 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
19886
19887   if test $ac_cv_lib_error_at_line = no; then
19888
19889
19890
19891
19892
19893
19894
19895
19896   gl_LIBOBJS="$gl_LIBOBJS error.$ac_objext"
19897
19898
19899
19900   :
19901
19902   fi
19903
19904
19905   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
19906
19907
19908
19909   XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
19910
19911
19912
19913
19914
19915
19916
19917   if test $ac_cv_have_decl_fchdir = no; then
19918     HAVE_DECL_FCHDIR=0
19919   fi
19920
19921
19922   if test $HAVE_FCHDIR = 0; then
19923
19924
19925
19926
19927
19928
19929
19930
19931   gl_LIBOBJS="$gl_LIBOBJS fchdir.$ac_objext"
19932
19933     :
19934
19935 printf "%s\n" "#define REPLACE_FCHDIR 1" >>confdefs.h
19936
19937                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open can visit directories" >&5
19938 printf %s "checking whether open can visit directories... " >&6; }
19939 if test ${gl_cv_func_open_directory_works+y}
19940 then :
19941   printf %s "(cached) " >&6
19942 else
19943   if test "$cross_compiling" = yes
19944 then :
19945   case "$host_os" in
19946                             # Guess yes on Linux systems.
19947            linux-* | linux) gl_cv_func_open_directory_works="guessing yes" ;;
19948                             # Guess yes on glibc systems.
19949            *-gnu* | gnu*)   gl_cv_func_open_directory_works="guessing yes" ;;
19950                             # Guess no on native Windows.
19951            mingw*)          gl_cv_func_open_directory_works="guessing no" ;;
19952                             # If we don't know, assume the worst.
19953            *)               gl_cv_func_open_directory_works="guessing no" ;;
19954          esac
19955
19956 else
19957   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19958 /* end confdefs.h.  */
19959 #include <fcntl.h>
19960
19961 int
19962 main (void)
19963 {
19964 return open(".", O_RDONLY) < 0;
19965   ;
19966   return 0;
19967 }
19968 _ACEOF
19969 if ac_fn_c_try_run "$LINENO"
19970 then :
19971   gl_cv_func_open_directory_works=yes
19972 else
19973   gl_cv_func_open_directory_works=no
19974 fi
19975 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19976   conftest.$ac_objext conftest.beam conftest.$ac_ext
19977 fi
19978
19979 fi
19980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_directory_works" >&5
19981 printf "%s\n" "$gl_cv_func_open_directory_works" >&6; }
19982     case "$gl_cv_func_open_directory_works" in
19983       *yes) ;;
19984       *)
19985
19986 printf "%s\n" "#define REPLACE_OPEN_DIRECTORY 1" >>confdefs.h
19987
19988         ;;
19989     esac
19990   fi
19991
19992
19993
19994
19995
19996
19997           GNULIB_FCHDIR=1
19998
19999
20000
20001
20002
20003 printf "%s\n" "#define GNULIB_TEST_FCHDIR 1" >>confdefs.h
20004
20005
20006
20007
20008
20009
20010
20011
20012
20013   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5
20014 printf %s "checking whether fflush works on input streams... " >&6; }
20015 if test ${gl_cv_func_fflush_stdin+y}
20016 then :
20017   printf %s "(cached) " >&6
20018 else
20019   echo hello world > conftest.txt
20020      if test "$cross_compiling" = yes
20021 then :
20022   case "$host_os" in
20023                   # Guess no on native Windows.
20024           mingw*) gl_cv_func_fflush_stdin="guessing no" ;;
20025           *)      gl_cv_func_fflush_stdin=cross ;;
20026         esac
20027
20028 else
20029   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20030 /* end confdefs.h.  */
20031
20032 #include <stdio.h>
20033 #if HAVE_UNISTD_H
20034 # include <unistd.h>
20035 #else /* on Windows with MSVC */
20036 # include <io.h>
20037 #endif
20038
20039 int
20040 main (void)
20041 {
20042 FILE *f = fopen ("conftest.txt", "r");
20043          char buffer[10];
20044          int fd;
20045          int c;
20046          if (f == NULL)
20047            return 1;
20048          fd = fileno (f);
20049          if (fd < 0 || fread (buffer, 1, 5, f) != 5)
20050            { fclose (f); return 2; }
20051          /* For deterministic results, ensure f read a bigger buffer.  */
20052          if (lseek (fd, 0, SEEK_CUR) == 5)
20053            { fclose (f); return 3; }
20054          /* POSIX requires fflush-fseek to set file offset of fd.  This fails
20055             on BSD systems and on mingw.  */
20056          if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0)
20057            { fclose (f); return 4; }
20058          if (lseek (fd, 0, SEEK_CUR) != 5)
20059            { fclose (f); return 5; }
20060          /* Verify behaviour of fflush after ungetc. See
20061             <http://www.opengroup.org/austin/aardvark/latest/xshbug3.txt>  */
20062          /* Verify behaviour of fflush after a backup ungetc.  This fails on
20063             mingw.  */
20064          c = fgetc (f);
20065          ungetc (c, f);
20066          fflush (f);
20067          if (fgetc (f) != c)
20068            { fclose (f); return 6; }
20069          /* Verify behaviour of fflush after a non-backup ungetc.  This fails
20070             on glibc 2.8 and on BSD systems.  */
20071          c = fgetc (f);
20072          ungetc ('@', f);
20073          fflush (f);
20074          if (fgetc (f) != c)
20075            { fclose (f); return 7; }
20076          fclose (f);
20077          return 0;
20078
20079   ;
20080   return 0;
20081 }
20082 _ACEOF
20083 if ac_fn_c_try_run "$LINENO"
20084 then :
20085   gl_cv_func_fflush_stdin=yes
20086 else
20087   gl_cv_func_fflush_stdin=no
20088 fi
20089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20090   conftest.$ac_objext conftest.beam conftest.$ac_ext
20091 fi
20092
20093      rm conftest.txt
20094
20095 fi
20096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5
20097 printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; }
20098   case "$gl_cv_func_fflush_stdin" in
20099     *yes) gl_func_fflush_stdin=1 ;;
20100     *no)  gl_func_fflush_stdin=0 ;;
20101     *)    gl_func_fflush_stdin='(-1)' ;;
20102   esac
20103
20104 printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h
20105
20106
20107   case "$gl_cv_func_fflush_stdin" in
20108     *yes) ;;
20109     *) REPLACE_FCLOSE=1 ;;
20110   esac
20111
20112
20113   if test $REPLACE_CLOSE = 1; then
20114     REPLACE_FCLOSE=1
20115   fi
20116
20117   case "$host_os" in
20118     openedition) REPLACE_FCLOSE=1 ;;
20119   esac
20120
20121   if test $REPLACE_FCLOSE = 1; then
20122
20123
20124
20125
20126
20127
20128
20129
20130   gl_LIBOBJS="$gl_LIBOBJS fclose.$ac_objext"
20131
20132   fi
20133
20134
20135
20136
20137
20138           GNULIB_FCLOSE=1
20139
20140
20141
20142
20143
20144 printf "%s\n" "#define GNULIB_TEST_FCLOSE 1" >>confdefs.h
20145
20146
20147
20148
20149
20150
20151
20152
20153   if test $ac_cv_func_fcntl = no; then
20154
20155
20156
20157   if test $ac_cv_func_fcntl = no; then
20158     HAVE_FCNTL=0
20159   else
20160     REPLACE_FCNTL=1
20161   fi
20162
20163   else
20164             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
20165 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; }
20166 if test ${gl_cv_func_fcntl_f_dupfd_works+y}
20167 then :
20168   printf %s "(cached) " >&6
20169 else
20170   if test "$cross_compiling" = yes
20171 then :
20172   case $host_os in
20173             aix* | cygwin* | haiku*)
20174                gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
20175             *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
20176           esac
20177 else
20178   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20179 /* end confdefs.h.  */
20180 #include <errno.h>
20181               #include <fcntl.h>
20182               #include <limits.h>
20183               #include <sys/resource.h>
20184               #include <unistd.h>
20185               #ifndef RLIM_SAVED_CUR
20186               # define RLIM_SAVED_CUR RLIM_INFINITY
20187               #endif
20188               #ifndef RLIM_SAVED_MAX
20189               # define RLIM_SAVED_MAX RLIM_INFINITY
20190               #endif
20191
20192 int
20193 main (void)
20194 {
20195 int result = 0;
20196               int bad_fd = INT_MAX;
20197               struct rlimit rlim;
20198               if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
20199                   && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
20200                   && rlim.rlim_cur != RLIM_INFINITY
20201                   && rlim.rlim_cur != RLIM_SAVED_MAX
20202                   && rlim.rlim_cur != RLIM_SAVED_CUR)
20203                 bad_fd = rlim.rlim_cur;
20204               if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
20205               if (errno != EINVAL) result |= 2;
20206               if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
20207               if (errno != EINVAL) result |= 8;
20208               /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
20209               {
20210                 int fd;
20211                 fd = open (".", O_RDONLY);
20212                 if (fd == -1)
20213                   result |= 16;
20214                 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
20215                   result |= 32;
20216
20217                 close (fd);
20218               }
20219               return result;
20220   ;
20221   return 0;
20222 }
20223 _ACEOF
20224 if ac_fn_c_try_run "$LINENO"
20225 then :
20226   gl_cv_func_fcntl_f_dupfd_works=yes
20227 else
20228   gl_cv_func_fcntl_f_dupfd_works=no
20229 fi
20230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20231   conftest.$ac_objext conftest.beam conftest.$ac_ext
20232 fi
20233
20234 fi
20235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
20236 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
20237     case $gl_cv_func_fcntl_f_dupfd_works in
20238       *yes) ;;
20239       *)
20240
20241
20242   if test $ac_cv_func_fcntl = no; then
20243     HAVE_FCNTL=0
20244   else
20245     REPLACE_FCNTL=1
20246   fi
20247
20248
20249 printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
20250  ;;
20251     esac
20252
20253         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
20254 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
20255 if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y}
20256 then :
20257   printf %s "(cached) " >&6
20258 else
20259   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20260 /* end confdefs.h.  */
20261
20262 #include <fcntl.h>
20263 #ifndef F_DUPFD_CLOEXEC
20264 choke me
20265 #endif
20266
20267 int
20268 main (void)
20269 {
20270
20271   ;
20272   return 0;
20273 }
20274 _ACEOF
20275 if ac_fn_c_try_compile "$LINENO"
20276 then :
20277   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20278 /* end confdefs.h.  */
20279
20280 #ifdef __linux__
20281 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
20282    it to support the semantics on older kernels that failed with EINVAL.  */
20283 choke me
20284 #endif
20285
20286 int
20287 main (void)
20288 {
20289
20290   ;
20291   return 0;
20292 }
20293 _ACEOF
20294 if ac_fn_c_try_compile "$LINENO"
20295 then :
20296   gl_cv_func_fcntl_f_dupfd_cloexec=yes
20297 else
20298   gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
20299 fi
20300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20301 else
20302   gl_cv_func_fcntl_f_dupfd_cloexec=no
20303 fi
20304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20305 fi
20306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
20307 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
20308     if test "$gl_cv_func_fcntl_f_dupfd_cloexec" != yes; then
20309
20310
20311
20312   if test $ac_cv_func_fcntl = no; then
20313     HAVE_FCNTL=0
20314   else
20315     REPLACE_FCNTL=1
20316   fi
20317
20318           fi
20319   fi
20320
20321
20322
20323
20324   if test $ac_cv_func_fchdir = no; then
20325     HAVE_FCHDIR=0
20326   fi
20327
20328     if test $HAVE_FCHDIR = 0; then
20329
20330
20331
20332   if test $ac_cv_func_fcntl = no; then
20333     HAVE_FCNTL=0
20334   else
20335     REPLACE_FCNTL=1
20336   fi
20337
20338     fi
20339
20340
20341   if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
20342
20343
20344
20345
20346
20347
20348
20349
20350   gl_LIBOBJS="$gl_LIBOBJS fcntl.$ac_objext"
20351
20352   fi
20353
20354
20355
20356
20357
20358           GNULIB_FCNTL=1
20359
20360
20361
20362
20363
20364 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
20365
20366
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376
20377
20378
20379      if test $gl_cv_have_include_next = yes; then
20380        gl_cv_next_fcntl_h='<'fcntl.h'>'
20381      else
20382        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
20383 printf %s "checking absolute name of <fcntl.h>... " >&6; }
20384 if test ${gl_cv_next_fcntl_h+y}
20385 then :
20386   printf %s "(cached) " >&6
20387 else
20388
20389
20390
20391   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20392 /* end confdefs.h.  */
20393 #include <fcntl.h>
20394 _ACEOF
20395                 case "$host_os" in
20396     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20397     *)    gl_absname_cpp="$ac_cpp" ;;
20398   esac
20399
20400   case "$host_os" in
20401     mingw*)
20402                                           gl_dirsep_regex='[/\\]'
20403       ;;
20404     *)
20405       gl_dirsep_regex='\/'
20406       ;;
20407   esac
20408       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
20409   gl_header_literal_regex=`echo 'fcntl.h' \
20410                            | sed -e "$gl_make_literal_regex_sed"`
20411   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
20412       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
20413       s|^/[^/]|//&|
20414       p
20415       q
20416     }'
20417
20418         gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
20419   sed -n "$gl_absolute_header_sed"`
20420
20421            gl_header=$gl_cv_absolute_fcntl_h
20422            gl_cv_next_fcntl_h='"'$gl_header'"'
20423
20424
20425 fi
20426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
20427 printf "%s\n" "$gl_cv_next_fcntl_h" >&6; }
20428      fi
20429      NEXT_FCNTL_H=$gl_cv_next_fcntl_h
20430
20431      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
20432        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
20433        gl_next_as_first_directive='<'fcntl.h'>'
20434      else
20435        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
20436        gl_next_as_first_directive=$gl_cv_next_fcntl_h
20437      fi
20438      NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453
20454
20455 printf "%s\n" "#define GNULIB_FCNTL_SAFER 1" >>confdefs.h
20456
20457
20458
20459
20460 printf "%s\n" "#define GNULIB_FD_SAFER_FLAG 1" >>confdefs.h
20461
20462
20463
20464
20465
20466
20467   LIB_FDATASYNC=
20468
20469
20470   if test $ac_cv_have_decl_fdatasync = no; then
20471     HAVE_DECL_FDATASYNC=0
20472         ac_fn_c_check_func "$LINENO" "fdatasync" "ac_cv_func_fdatasync"
20473 if test "x$ac_cv_func_fdatasync" = xyes
20474 then :
20475   printf "%s\n" "#define HAVE_FDATASYNC 1" >>confdefs.h
20476
20477 fi
20478
20479     if test $ac_cv_func_fdatasync = no; then
20480       HAVE_FDATASYNC=0
20481     fi
20482   else
20483             gl_saved_libs=$LIBS
20484     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing fdatasync" >&5
20485 printf %s "checking for library containing fdatasync... " >&6; }
20486 if test ${ac_cv_search_fdatasync+y}
20487 then :
20488   printf %s "(cached) " >&6
20489 else
20490   ac_func_search_save_LIBS=$LIBS
20491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20492 /* end confdefs.h.  */
20493
20494 /* Override any GCC internal prototype to avoid an error.
20495    Use char because int might match the return type of a GCC
20496    builtin and then its argument prototype would still apply.  */
20497 #ifdef __cplusplus
20498 extern "C"
20499 #endif
20500 char fdatasync ();
20501 int
20502 main (void)
20503 {
20504 return fdatasync ();
20505   ;
20506   return 0;
20507 }
20508 _ACEOF
20509 for ac_lib in '' rt posix4
20510 do
20511   if test -z "$ac_lib"; then
20512     ac_res="none required"
20513   else
20514     ac_res=-l$ac_lib
20515     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
20516   fi
20517   if ac_fn_c_try_link "$LINENO"
20518 then :
20519   ac_cv_search_fdatasync=$ac_res
20520 fi
20521 rm -f core conftest.err conftest.$ac_objext \
20522     conftest$ac_exeext
20523   if test ${ac_cv_search_fdatasync+y}
20524 then :
20525   break
20526 fi
20527 done
20528 if test ${ac_cv_search_fdatasync+y}
20529 then :
20530
20531 else
20532   ac_cv_search_fdatasync=no
20533 fi
20534 rm conftest.$ac_ext
20535 LIBS=$ac_func_search_save_LIBS
20536 fi
20537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_fdatasync" >&5
20538 printf "%s\n" "$ac_cv_search_fdatasync" >&6; }
20539 ac_res=$ac_cv_search_fdatasync
20540 if test "$ac_res" != no
20541 then :
20542   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20543   test "$ac_cv_search_fdatasync" = "none required" ||
20544                     LIB_FDATASYNC=$ac_cv_search_fdatasync
20545 fi
20546
20547     LIBS=$gl_saved_libs
20548   fi
20549
20550   if test $HAVE_FDATASYNC = 0; then
20551
20552
20553
20554
20555
20556
20557
20558
20559   gl_LIBOBJS="$gl_LIBOBJS fdatasync.$ac_objext"
20560
20561   fi
20562
20563
20564
20565
20566
20567           GNULIB_FDATASYNC=1
20568
20569
20570
20571
20572
20573 printf "%s\n" "#define GNULIB_TEST_FDATASYNC 1" >>confdefs.h
20574
20575
20576
20577
20578
20579
20580
20581
20582     ac_fn_c_check_decl "$LINENO" "fdopendir" "ac_cv_have_decl_fdopendir" "
20583 #include <dirent.h>
20584
20585 "
20586 if test "x$ac_cv_have_decl_fdopendir" = xyes
20587 then :
20588   ac_have_decl=1
20589 else
20590   ac_have_decl=0
20591 fi
20592
20593 printf "%s\n" "#define HAVE_DECL_FDOPENDIR $ac_have_decl" >>confdefs.h
20594 if test $ac_have_decl = 1
20595 then :
20596
20597 else
20598   HAVE_DECL_FDOPENDIR=0
20599 fi
20600
20601
20602   if test $ac_cv_func_fdopendir = no; then
20603     HAVE_FDOPENDIR=0
20604   else
20605     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fdopendir works" >&5
20606 printf %s "checking whether fdopendir works... " >&6; }
20607 if test ${gl_cv_func_fdopendir_works+y}
20608 then :
20609   printf %s "(cached) " >&6
20610 else
20611   if test "$cross_compiling" = yes
20612 then :
20613   case "$host_os" in
20614                     # Guess yes on glibc systems.
20615             *-gnu*) gl_cv_func_fdopendir_works="guessing yes" ;;
20616                     # If we don't know, assume the worst.
20617             *)      gl_cv_func_fdopendir_works="guessing no" ;;
20618           esac
20619
20620 else
20621   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20622 /* end confdefs.h.  */
20623
20624 #include <dirent.h>
20625 #include <fcntl.h>
20626 #include <unistd.h>
20627 #if !HAVE_DECL_FDOPENDIR
20628 extern
20629 # ifdef __cplusplus
20630 "C"
20631 # endif
20632 DIR *fdopendir (int);
20633 #endif
20634
20635 int
20636 main (void)
20637 {
20638 int result = 0;
20639      int fd = open ("conftest.c", O_RDONLY);
20640      if (fd < 0) result |= 1;
20641      if (fdopendir (fd)) result |= 2;
20642      if (close (fd)) result |= 4;
20643      return result;
20644   ;
20645   return 0;
20646 }
20647 _ACEOF
20648 if ac_fn_c_try_run "$LINENO"
20649 then :
20650   gl_cv_func_fdopendir_works=yes
20651 else
20652   gl_cv_func_fdopendir_works=no
20653 fi
20654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20655   conftest.$ac_objext conftest.beam conftest.$ac_ext
20656 fi
20657
20658 fi
20659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fdopendir_works" >&5
20660 printf "%s\n" "$gl_cv_func_fdopendir_works" >&6; }
20661     case "$gl_cv_func_fdopendir_works" in
20662       *yes) ;;
20663       *)
20664         REPLACE_FDOPENDIR=1
20665         ;;
20666     esac
20667   fi
20668
20669   if test $HAVE_FDOPENDIR = 0 || test $REPLACE_FDOPENDIR = 1; then
20670
20671
20672
20673
20674
20675
20676
20677
20678   gl_LIBOBJS="$gl_LIBOBJS fdopendir.$ac_objext"
20679
20680   fi
20681
20682
20683
20684
20685
20686           GNULIB_FDOPENDIR=1
20687
20688
20689
20690
20691
20692 printf "%s\n" "#define GNULIB_TEST_FDOPENDIR 1" >>confdefs.h
20693
20694
20695
20696
20697
20698 printf "%s\n" "#define GNULIB_FDOPENDIR 1" >>confdefs.h
20699
20700
20701
20702
20703
20704
20705   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5
20706 printf %s "checking whether fflush works on input streams... " >&6; }
20707 if test ${gl_cv_func_fflush_stdin+y}
20708 then :
20709   printf %s "(cached) " >&6
20710 else
20711   echo hello world > conftest.txt
20712      if test "$cross_compiling" = yes
20713 then :
20714   case "$host_os" in
20715                   # Guess no on native Windows.
20716           mingw*) gl_cv_func_fflush_stdin="guessing no" ;;
20717           *)      gl_cv_func_fflush_stdin=cross ;;
20718         esac
20719
20720 else
20721   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20722 /* end confdefs.h.  */
20723
20724 #include <stdio.h>
20725 #if HAVE_UNISTD_H
20726 # include <unistd.h>
20727 #else /* on Windows with MSVC */
20728 # include <io.h>
20729 #endif
20730
20731 int
20732 main (void)
20733 {
20734 FILE *f = fopen ("conftest.txt", "r");
20735          char buffer[10];
20736          int fd;
20737          int c;
20738          if (f == NULL)
20739            return 1;
20740          fd = fileno (f);
20741          if (fd < 0 || fread (buffer, 1, 5, f) != 5)
20742            { fclose (f); return 2; }
20743          /* For deterministic results, ensure f read a bigger buffer.  */
20744          if (lseek (fd, 0, SEEK_CUR) == 5)
20745            { fclose (f); return 3; }
20746          /* POSIX requires fflush-fseek to set file offset of fd.  This fails
20747             on BSD systems and on mingw.  */
20748          if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0)
20749            { fclose (f); return 4; }
20750          if (lseek (fd, 0, SEEK_CUR) != 5)
20751            { fclose (f); return 5; }
20752          /* Verify behaviour of fflush after ungetc. See
20753             <http://www.opengroup.org/austin/aardvark/latest/xshbug3.txt>  */
20754          /* Verify behaviour of fflush after a backup ungetc.  This fails on
20755             mingw.  */
20756          c = fgetc (f);
20757          ungetc (c, f);
20758          fflush (f);
20759          if (fgetc (f) != c)
20760            { fclose (f); return 6; }
20761          /* Verify behaviour of fflush after a non-backup ungetc.  This fails
20762             on glibc 2.8 and on BSD systems.  */
20763          c = fgetc (f);
20764          ungetc ('@', f);
20765          fflush (f);
20766          if (fgetc (f) != c)
20767            { fclose (f); return 7; }
20768          fclose (f);
20769          return 0;
20770
20771   ;
20772   return 0;
20773 }
20774 _ACEOF
20775 if ac_fn_c_try_run "$LINENO"
20776 then :
20777   gl_cv_func_fflush_stdin=yes
20778 else
20779   gl_cv_func_fflush_stdin=no
20780 fi
20781 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20782   conftest.$ac_objext conftest.beam conftest.$ac_ext
20783 fi
20784
20785      rm conftest.txt
20786
20787 fi
20788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5
20789 printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; }
20790   case "$gl_cv_func_fflush_stdin" in
20791     *yes) gl_func_fflush_stdin=1 ;;
20792     *no)  gl_func_fflush_stdin=0 ;;
20793     *)    gl_func_fflush_stdin='(-1)' ;;
20794   esac
20795
20796 printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h
20797
20798
20799   case "$gl_cv_func_fflush_stdin" in
20800     *yes) ;;
20801     *) REPLACE_FFLUSH=1 ;;
20802   esac
20803
20804   if test $REPLACE_FFLUSH = 1; then
20805
20806
20807
20808
20809
20810
20811
20812
20813   gl_LIBOBJS="$gl_LIBOBJS fflush.$ac_objext"
20814
20815     :
20816   fi
20817
20818
20819 printf "%s\n" "#define GNULIB_FFLUSH 1" >>confdefs.h
20820
20821
20822
20823
20824
20825
20826
20827           GNULIB_FFLUSH=1
20828
20829
20830
20831
20832
20833 printf "%s\n" "#define GNULIB_TEST_FFLUSH 1" >>confdefs.h
20834
20835
20836
20837
20838
20839
20840
20841
20842
20843   FLOAT_H=
20844   REPLACE_FLOAT_LDBL=0
20845   case "$host_os" in
20846     aix* | beos* | openbsd* | mirbsd* | irix*)
20847       FLOAT_H=float.h
20848       ;;
20849     freebsd* | dragonfly*)
20850       case "$host_cpu" in
20851         i[34567]86 )
20852           FLOAT_H=float.h
20853           ;;
20854         x86_64 )
20855           # On x86_64 systems, the C compiler may still be generating
20856           # 32-bit code.
20857           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20858 /* end confdefs.h.  */
20859 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
20860                   int ok;
20861                  #else
20862                   error fail
20863                  #endif
20864
20865 _ACEOF
20866 if ac_fn_c_try_compile "$LINENO"
20867 then :
20868
20869 else
20870   FLOAT_H=float.h
20871 fi
20872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20873           ;;
20874       esac
20875       ;;
20876     linux*)
20877       case "$host_cpu" in
20878         powerpc*)
20879           FLOAT_H=float.h
20880           ;;
20881       esac
20882       ;;
20883   esac
20884   case "$host_os" in
20885     aix* | freebsd* | dragonfly* | linux*)
20886       if test -n "$FLOAT_H"; then
20887         REPLACE_FLOAT_LDBL=1
20888       fi
20889       ;;
20890   esac
20891
20892     REPLACE_ITOLD=0
20893   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
20894 printf %s "checking whether conversion from 'int' to 'long double' works... " >&6; }
20895 if test ${gl_cv_func_itold_works+y}
20896 then :
20897   printf %s "(cached) " >&6
20898 else
20899
20900       if test "$cross_compiling" = yes
20901 then :
20902   case "$host" in
20903            sparc*-*-linux*)
20904              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20905 /* end confdefs.h.  */
20906 #if defined __LP64__ || defined __arch64__
20907                     int ok;
20908                    #else
20909                     error fail
20910                    #endif
20911
20912 _ACEOF
20913 if ac_fn_c_try_compile "$LINENO"
20914 then :
20915   gl_cv_func_itold_works="guessing no"
20916 else
20917   gl_cv_func_itold_works="guessing yes"
20918 fi
20919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20920              ;;
20921                    # Guess yes on native Windows.
20922            mingw*) gl_cv_func_itold_works="guessing yes" ;;
20923            *)      gl_cv_func_itold_works="guessing yes" ;;
20924          esac
20925
20926 else
20927   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20928 /* end confdefs.h.  */
20929
20930 int i = -1;
20931 volatile long double ld;
20932 int main ()
20933 {
20934   ld += i * 1.0L;
20935   if (ld > 0)
20936     return 1;
20937   return 0;
20938 }
20939 _ACEOF
20940 if ac_fn_c_try_run "$LINENO"
20941 then :
20942   gl_cv_func_itold_works=yes
20943 else
20944   gl_cv_func_itold_works=no
20945 fi
20946 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20947   conftest.$ac_objext conftest.beam conftest.$ac_ext
20948 fi
20949
20950
20951 fi
20952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
20953 printf "%s\n" "$gl_cv_func_itold_works" >&6; }
20954   case "$gl_cv_func_itold_works" in
20955     *no)
20956       REPLACE_ITOLD=1
20957                   FLOAT_H=float.h
20958       ;;
20959   esac
20960
20961   if test -n "$FLOAT_H"; then
20962
20963
20964
20965
20966
20967
20968
20969
20970      if test $gl_cv_have_include_next = yes; then
20971        gl_cv_next_float_h='<'float.h'>'
20972      else
20973        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
20974 printf %s "checking absolute name of <float.h>... " >&6; }
20975 if test ${gl_cv_next_float_h+y}
20976 then :
20977   printf %s "(cached) " >&6
20978 else
20979
20980
20981
20982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20983 /* end confdefs.h.  */
20984 #include <float.h>
20985 _ACEOF
20986                 case "$host_os" in
20987     aix*) gl_absname_cpp="$ac_cpp -C" ;;
20988     *)    gl_absname_cpp="$ac_cpp" ;;
20989   esac
20990
20991   case "$host_os" in
20992     mingw*)
20993                                           gl_dirsep_regex='[/\\]'
20994       ;;
20995     *)
20996       gl_dirsep_regex='\/'
20997       ;;
20998   esac
20999       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
21000   gl_header_literal_regex=`echo 'float.h' \
21001                            | sed -e "$gl_make_literal_regex_sed"`
21002   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
21003       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
21004       s|^/[^/]|//&|
21005       p
21006       q
21007     }'
21008
21009         gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
21010   sed -n "$gl_absolute_header_sed"`
21011
21012            gl_header=$gl_cv_absolute_float_h
21013            gl_cv_next_float_h='"'$gl_header'"'
21014
21015
21016 fi
21017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
21018 printf "%s\n" "$gl_cv_next_float_h" >&6; }
21019      fi
21020      NEXT_FLOAT_H=$gl_cv_next_float_h
21021
21022      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
21023        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
21024        gl_next_as_first_directive='<'float.h'>'
21025      else
21026        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
21027        gl_next_as_first_directive=$gl_cv_next_float_h
21028      fi
21029      NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
21030
21031
21032
21033
21034   fi
21035
21036    if test -n "$FLOAT_H"; then
21037   GL_GENERATE_FLOAT_H_TRUE=
21038   GL_GENERATE_FLOAT_H_FALSE='#'
21039 else
21040   GL_GENERATE_FLOAT_H_TRUE='#'
21041   GL_GENERATE_FLOAT_H_FALSE=
21042 fi
21043
21044
21045
21046   if test $REPLACE_FLOAT_LDBL = 1; then
21047
21048
21049
21050
21051
21052
21053
21054
21055   gl_LIBOBJS="$gl_LIBOBJS float.$ac_objext"
21056
21057   fi
21058   if test $REPLACE_ITOLD = 1; then
21059
21060
21061
21062
21063
21064
21065
21066
21067   gl_LIBOBJS="$gl_LIBOBJS itold.$ac_objext"
21068
21069   fi
21070
21071
21072
21073
21074
21075
21076
21077
21078
21079
21080
21081
21082
21083
21084
21085   gl_cv_func_fprintf_posix=no
21086   case "$gl_cv_func_printf_sizes_c99" in
21087     *yes)
21088       case "$gl_cv_func_printf_long_double" in
21089         *yes)
21090           case "$gl_cv_func_printf_infinite" in
21091             *yes)
21092               case "$gl_cv_func_printf_infinite_long_double" in
21093                 *yes)
21094                   case "$gl_cv_func_printf_directive_a" in
21095                     *yes)
21096                       case "$gl_cv_func_printf_directive_f" in
21097                         *yes)
21098                           case "$gl_cv_func_printf_directive_n" in
21099                             *yes)
21100                               case "$gl_cv_func_printf_directive_ls" in
21101                                 *yes)
21102                                   case "$gl_cv_func_printf_positions" in
21103                                     *yes)
21104                                       case "$gl_cv_func_printf_flag_grouping" in
21105                                         *yes)
21106                                           case "$gl_cv_func_printf_flag_leftadjust" in
21107                                             *yes)
21108                                               case "$gl_cv_func_printf_flag_zero" in
21109                                                 *yes)
21110                                                   case "$gl_cv_func_printf_precision" in
21111                                                     *yes)
21112                                                       case "$gl_cv_func_printf_enomem" in
21113                                                         *yes)
21114                                                           # fprintf exists and is
21115                                                           # already POSIX compliant.
21116                                                           gl_cv_func_fprintf_posix=yes
21117                                                           ;;
21118                                                       esac
21119                                                       ;;
21120                                                   esac
21121                                                   ;;
21122                                               esac
21123                                               ;;
21124                                           esac
21125                                           ;;
21126                                       esac
21127                                       ;;
21128                                   esac
21129                                   ;;
21130                               esac
21131                               ;;
21132                           esac
21133                           ;;
21134                       esac
21135                       ;;
21136                   esac
21137                   ;;
21138               esac
21139               ;;
21140           esac
21141           ;;
21142       esac
21143       ;;
21144   esac
21145   if test $gl_cv_func_fprintf_posix = no; then
21146
21147
21148
21149   case "$gl_cv_func_printf_infinite" in
21150     *yes)
21151       ;;
21152     *)
21153
21154 printf "%s\n" "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
21155
21156       ;;
21157   esac
21158
21159
21160
21161
21162   case "$gl_cv_func_printf_long_double" in
21163     *yes)
21164       case "$gl_cv_func_printf_infinite_long_double" in
21165         *yes)
21166           ;;
21167         *)
21168
21169 printf "%s\n" "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
21170
21171           ;;
21172       esac
21173       ;;
21174   esac
21175
21176
21177
21178   case "$gl_cv_func_printf_directive_a" in
21179     *yes)
21180       ;;
21181     *)
21182
21183 printf "%s\n" "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
21184
21185       ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
21186 if test "x$ac_cv_func_nl_langinfo" = xyes
21187 then :
21188   printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
21189
21190 fi
21191
21192       ;;
21193   esac
21194
21195
21196
21197   case "$gl_cv_func_printf_directive_f" in
21198     *yes)
21199       ;;
21200     *)
21201
21202 printf "%s\n" "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
21203
21204       ;;
21205   esac
21206
21207
21208
21209   case "$gl_cv_func_printf_directive_ls" in
21210     *yes)
21211       ;;
21212     *)
21213
21214 printf "%s\n" "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
21215
21216       ;;
21217   esac
21218
21219
21220
21221   case "$gl_cv_func_printf_flag_grouping" in
21222     *yes)
21223       ;;
21224     *)
21225
21226 printf "%s\n" "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
21227
21228       ;;
21229   esac
21230
21231
21232
21233   case "$gl_cv_func_printf_flag_leftadjust" in
21234     *yes)
21235       ;;
21236     *)
21237
21238 printf "%s\n" "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
21239
21240       ;;
21241   esac
21242
21243
21244
21245   case "$gl_cv_func_printf_flag_zero" in
21246     *yes)
21247       ;;
21248     *)
21249
21250 printf "%s\n" "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
21251
21252       ;;
21253   esac
21254
21255
21256
21257   case "$gl_cv_func_printf_precision" in
21258     *yes)
21259       ;;
21260     *)
21261
21262 printf "%s\n" "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
21263
21264
21265 printf "%s\n" "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
21266
21267
21268 printf "%s\n" "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
21269
21270       ;;
21271   esac
21272
21273
21274
21275   case "$gl_cv_func_printf_enomem" in
21276     *yes)
21277       ;;
21278     *)
21279
21280 printf "%s\n" "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
21281
21282
21283 printf "%s\n" "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
21284
21285
21286 printf "%s\n" "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
21287
21288       ;;
21289   esac
21290
21291
21292
21293
21294
21295
21296
21297
21298
21299
21300
21301   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
21302
21303
21304
21305
21306
21307
21308
21309
21310
21311   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
21312
21313
21314
21315
21316
21317
21318
21319
21320
21321   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
21322
21323
21324
21325
21326
21327
21328
21329
21330
21331   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
21332
21333   if test $ac_cv_func_vasnprintf = yes; then
21334
21335 printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h
21336
21337   fi
21338
21339
21340
21341
21342
21343
21344
21345
21346
21347
21348
21349   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
21350 if test "x$ac_cv_type_ptrdiff_t" = xyes
21351 then :
21352
21353 else
21354
21355 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
21356
21357
21358 fi
21359
21360
21361
21362
21363
21364
21365
21366
21367
21368
21369
21370
21371
21372
21373
21374
21375
21376   gl_LIBOBJS="$gl_LIBOBJS fprintf.$ac_objext"
21377
21378   REPLACE_FPRINTF=1
21379
21380 printf "%s\n" "#define REPLACE_FPRINTF_POSIX 1" >>confdefs.h
21381
21382   :
21383
21384   fi
21385
21386
21387
21388
21389
21390
21391           GNULIB_FPRINTF_POSIX=1
21392
21393
21394
21395
21396
21397 printf "%s\n" "#define GNULIB_TEST_FPRINTF_POSIX 1" >>confdefs.h
21398
21399
21400
21401
21402
21403
21404
21405   ac_fn_c_check_decl "$LINENO" "fpurge" "ac_cv_have_decl_fpurge" "#include <stdio.h>
21406 "
21407 if test "x$ac_cv_have_decl_fpurge" = xyes
21408 then :
21409   ac_have_decl=1
21410 else
21411   ac_have_decl=0
21412 fi
21413
21414 printf "%s\n" "#define HAVE_DECL_FPURGE $ac_have_decl" >>confdefs.h
21415
21416   if test "x$ac_cv_func_fpurge" = xyes; then
21417     HAVE_FPURGE=1
21418     # Detect BSD bug.  Only cygwin 1.7 is known to be immune.
21419     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fpurge works" >&5
21420 printf %s "checking whether fpurge works... " >&6; }
21421 if test ${gl_cv_func_fpurge_works+y}
21422 then :
21423   printf %s "(cached) " >&6
21424 else
21425   if test "$cross_compiling" = yes
21426 then :
21427   gl_cv_func_fpurge_works='guessing no'
21428 else
21429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21430 /* end confdefs.h.  */
21431 #include <stdio.h>
21432
21433 int
21434 main (void)
21435 {
21436 FILE *f = fopen ("conftest.txt", "w+");
21437              if (!f)
21438                return 1;
21439              if (fputc ('a', f) != 'a')
21440                { fclose (f); return 2; }
21441              rewind (f);
21442              if (fgetc (f) != 'a')
21443                { fclose (f); return 3; }
21444              if (fgetc (f) != EOF)
21445                { fclose (f); return 4; }
21446              if (fpurge (f) != 0)
21447                { fclose (f); return 5; }
21448              if (putc ('b', f) != 'b')
21449                { fclose (f); return 6; }
21450              if (fclose (f) != 0)
21451                return 7;
21452              if ((f = fopen ("conftest.txt", "r")) == NULL)
21453                return 8;
21454              if (fgetc (f) != 'a')
21455                { fclose (f); return 9; }
21456              if (fgetc (f) != 'b')
21457                { fclose (f); return 10; }
21458              if (fgetc (f) != EOF)
21459                { fclose (f); return 11; }
21460              if (fclose (f) != 0)
21461                return 12;
21462              if (remove ("conftest.txt") != 0)
21463                return 13;
21464              return 0;
21465
21466   ;
21467   return 0;
21468 }
21469 _ACEOF
21470 if ac_fn_c_try_run "$LINENO"
21471 then :
21472   gl_cv_func_fpurge_works=yes
21473 else
21474   gl_cv_func_fpurge_works=no
21475 fi
21476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21477   conftest.$ac_objext conftest.beam conftest.$ac_ext
21478 fi
21479
21480 fi
21481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fpurge_works" >&5
21482 printf "%s\n" "$gl_cv_func_fpurge_works" >&6; }
21483     if test "x$gl_cv_func_fpurge_works" != xyes; then
21484       REPLACE_FPURGE=1
21485     fi
21486   else
21487     HAVE_FPURGE=0
21488   fi
21489   if test "x$ac_cv_have_decl_fpurge" = xno; then
21490     HAVE_DECL_FPURGE=0
21491   fi
21492
21493   if test $HAVE_FPURGE = 0 || test $REPLACE_FPURGE = 1; then
21494
21495
21496
21497
21498
21499
21500
21501
21502   gl_LIBOBJS="$gl_LIBOBJS fpurge.$ac_objext"
21503
21504   fi
21505
21506
21507
21508
21509
21510           GNULIB_FPURGE=1
21511
21512
21513
21514
21515
21516 printf "%s\n" "#define GNULIB_TEST_FPURGE 1" >>confdefs.h
21517
21518
21519
21520
21521
21522
21523
21524
21525
21526   if test $gl_cv_func_frexp_no_libm = yes; then
21527
21528
21529
21530   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
21531 printf %s "checking whether frexp works... " >&6; }
21532 if test ${gl_cv_func_frexp_works+y}
21533 then :
21534   printf %s "(cached) " >&6
21535 else
21536
21537       if test "$cross_compiling" = yes
21538 then :
21539   case "$host_os" in
21540            netbsd* | irix*) gl_cv_func_frexp_works="guessing no" ;;
21541            mingw*) # Guess yes with MSVC, no with mingw.
21542              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h.  */
21544
21545 #ifdef _MSC_VER
21546  Good
21547 #endif
21548
21549 _ACEOF
21550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21551   $EGREP "Good" >/dev/null 2>&1
21552 then :
21553   gl_cv_func_frexp_works="guessing yes"
21554 else
21555   gl_cv_func_frexp_works="guessing no"
21556 fi
21557 rm -rf conftest*
21558
21559              ;;
21560            *) gl_cv_func_frexp_works="guessing yes" ;;
21561          esac
21562
21563 else
21564   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21565 /* end confdefs.h.  */
21566
21567 #include <float.h>
21568 #include <math.h>
21569 #include <string.h>
21570 #if HAVE_DECL_ALARM
21571 # include <signal.h>
21572 # include <unistd.h>
21573 #endif
21574 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
21575    ICC 10.0 has a bug when optimizing the expression -zero.
21576    The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
21577    to PowerPC on Mac OS X 10.5.  */
21578 #if defined __hpux || defined __sgi || defined __ICC
21579 static double
21580 compute_minus_zero (void)
21581 {
21582   return -DBL_MIN * DBL_MIN;
21583 }
21584 # define minus_zero compute_minus_zero ()
21585 #else
21586 double minus_zero = -0.0;
21587 #endif
21588 int main()
21589 {
21590   int result = 0;
21591   int i;
21592   volatile double x;
21593   double zero = 0.0;
21594 #if HAVE_DECL_ALARM
21595   /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
21596      number.  Let the test fail in this case.  */
21597   signal (SIGALRM, SIG_DFL);
21598   alarm (5);
21599 #endif
21600   /* Test on denormalized numbers.  */
21601   for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
21602     ;
21603   if (x > 0.0)
21604     {
21605       int exp;
21606       double y = frexp (x, &exp);
21607       /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
21608          On NetBSD: y = 0.75. Correct: y = 0.5.  */
21609       if (y != 0.5)
21610         result |= 1;
21611     }
21612   /* Test on infinite numbers.  */
21613   x = 1.0 / zero;
21614   {
21615     int exp;
21616     double y = frexp (x, &exp);
21617     if (y != x)
21618       result |= 2;
21619   }
21620   /* Test on negative zero.  */
21621   x = minus_zero;
21622   {
21623     int exp;
21624     double y = frexp (x, &exp);
21625     if (memcmp (&y, &x, sizeof x))
21626       result |= 4;
21627   }
21628   return result;
21629 }
21630 _ACEOF
21631 if ac_fn_c_try_run "$LINENO"
21632 then :
21633   gl_cv_func_frexp_works=yes
21634 else
21635   gl_cv_func_frexp_works=no
21636 fi
21637 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21638   conftest.$ac_objext conftest.beam conftest.$ac_ext
21639 fi
21640
21641
21642 fi
21643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
21644 printf "%s\n" "$gl_cv_func_frexp_works" >&6; }
21645
21646     case "$gl_cv_func_frexp_works" in
21647       *yes) gl_func_frexp_no_libm=yes ;;
21648       *)    gl_func_frexp_no_libm=no; REPLACE_FREXP=1 ;;
21649     esac
21650   else
21651     gl_func_frexp_no_libm=no
21652         REPLACE_FREXP=1
21653   fi
21654   if test $gl_func_frexp_no_libm = yes; then
21655
21656 printf "%s\n" "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
21657
21658   fi
21659
21660   if test $gl_func_frexp_no_libm != yes; then
21661
21662
21663
21664
21665
21666
21667
21668
21669   gl_LIBOBJS="$gl_LIBOBJS frexp.$ac_objext"
21670
21671   fi
21672
21673
21674
21675
21676
21677           GNULIB_FREXP=1
21678
21679
21680
21681
21682
21683 printf "%s\n" "#define GNULIB_TEST_FREXP 1" >>confdefs.h
21684
21685
21686
21687
21688
21689
21690       ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
21691 "
21692 if test "x$ac_cv_have_decl_frexpl" = xyes
21693 then :
21694
21695 else
21696   HAVE_DECL_FREXPL=0
21697 fi
21698
21699   if test $HAVE_DECL_FREXPL = 1; then
21700
21701   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
21702 printf %s "checking whether frexpl() can be used without linking with libm... " >&6; }
21703 if test ${gl_cv_func_frexpl_no_libm+y}
21704 then :
21705   printf %s "(cached) " >&6
21706 else
21707
21708       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21709 /* end confdefs.h.  */
21710 #include <math.h>
21711              long double x;
21712 int
21713 main (void)
21714 {
21715 int e; return frexpl (x, &e) > 0;
21716   ;
21717   return 0;
21718 }
21719 _ACEOF
21720 if ac_fn_c_try_link "$LINENO"
21721 then :
21722   gl_cv_func_frexpl_no_libm=yes
21723 else
21724   gl_cv_func_frexpl_no_libm=no
21725 fi
21726 rm -f core conftest.err conftest.$ac_objext \
21727     conftest$ac_exeext conftest.$ac_ext
21728
21729 fi
21730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
21731 printf "%s\n" "$gl_cv_func_frexpl_no_libm" >&6; }
21732
21733     if test $gl_cv_func_frexpl_no_libm = yes; then
21734
21735
21736      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
21737 printf %s "checking whether frexpl works... " >&6; }
21738 if test ${gl_cv_func_frexpl_works+y}
21739 then :
21740   printf %s "(cached) " >&6
21741 else
21742
21743       if test "$cross_compiling" = yes
21744 then :
21745
21746          case "$host_os" in
21747            aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
21748               gl_cv_func_frexpl_works="guessing no";;
21749            *) gl_cv_func_frexpl_works="guessing yes";;
21750          esac
21751
21752 else
21753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21754 /* end confdefs.h.  */
21755
21756 #include <float.h>
21757 #include <math.h>
21758 /* Override the values of <float.h>, like done in float.in.h.  */
21759 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
21760 # undef LDBL_MIN_EXP
21761 # define LDBL_MIN_EXP    (-16381)
21762 #endif
21763 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
21764 # undef LDBL_MIN_EXP
21765 # define LDBL_MIN_EXP    (-16381)
21766 #endif
21767 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
21768 # undef LDBL_MIN_EXP
21769 # define LDBL_MIN_EXP DBL_MIN_EXP
21770 #endif
21771 #if defined __sgi && (LDBL_MANT_DIG >= 106)
21772 # if defined __GNUC__
21773 #  undef LDBL_MIN_EXP
21774 #  define LDBL_MIN_EXP DBL_MIN_EXP
21775 # endif
21776 #endif
21777 extern
21778 #ifdef __cplusplus
21779 "C"
21780 #endif
21781 long double frexpl (long double, int *);
21782 int main()
21783 {
21784   int result = 0;
21785   volatile long double x;
21786   /* Test on finite numbers that fails on AIX 5.1.  */
21787   x = 16.0L;
21788   {
21789     int exp = -9999;
21790     frexpl (x, &exp);
21791     if (exp != 5)
21792       result |= 1;
21793   }
21794   /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
21795      function returns an invalid (incorrectly normalized) value: it returns
21796                y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
21797      but the correct result is
21798           0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
21799   x = 1.01L;
21800   {
21801     int exp = -9999;
21802     long double y = frexpl (x, &exp);
21803     if (!(exp == 1 && y == 0.505L))
21804       result |= 2;
21805   }
21806   /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
21807      LDBL_MAX_EXP = 16384.
21808      In the loop end test, we test x against Infinity, rather than comparing
21809      i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
21810   {
21811     int i;
21812     for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
21813       {
21814         int exp = -9999;
21815         frexpl (x, &exp);
21816         if (exp != i)
21817           {
21818             result |= 4;
21819             break;
21820           }
21821       }
21822   }
21823   /* Test on denormalized numbers.  */
21824   {
21825     int i;
21826     for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
21827       ;
21828     if (x > 0.0L)
21829       {
21830         int exp;
21831         long double y = frexpl (x, &exp);
21832         /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
21833            exp = -16382, y = 0.5.  On Mac OS X 10.5: exp = -16384, y = 0.5.  */
21834         if (exp != LDBL_MIN_EXP - 1)
21835           result |= 8;
21836       }
21837   }
21838   /* Test on infinite numbers.  */
21839   x = 1.0L / 0.0L;
21840   {
21841     int exp;
21842     long double y = frexpl (x, &exp);
21843     if (y != x)
21844       result |= 16;
21845   }
21846   return result;
21847 }
21848 _ACEOF
21849 if ac_fn_c_try_run "$LINENO"
21850 then :
21851   gl_cv_func_frexpl_works=yes
21852 else
21853   gl_cv_func_frexpl_works=no
21854 fi
21855 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21856   conftest.$ac_objext conftest.beam conftest.$ac_ext
21857 fi
21858
21859
21860 fi
21861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
21862 printf "%s\n" "$gl_cv_func_frexpl_works" >&6; }
21863
21864       case "$gl_cv_func_frexpl_works" in
21865         *yes) gl_func_frexpl_no_libm=yes ;;
21866         *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
21867       esac
21868     else
21869       gl_func_frexpl_no_libm=no
21870             REPLACE_FREXPL=1
21871     fi
21872     if test $gl_func_frexpl_no_libm = yes; then
21873
21874 printf "%s\n" "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
21875
21876     fi
21877   fi
21878
21879   if test $HAVE_DECL_FREXPL = 0 || test $gl_func_frexpl_no_libm = no; then
21880
21881
21882
21883
21884
21885
21886
21887
21888   gl_LIBOBJS="$gl_LIBOBJS frexpl.$ac_objext"
21889
21890   fi
21891
21892
21893
21894
21895
21896           GNULIB_FREXPL=1
21897
21898
21899
21900
21901
21902 printf "%s\n" "#define GNULIB_TEST_FREXPL 1" >>confdefs.h
21903
21904
21905
21906
21907
21908
21909     if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
21910     REPLACE_FSEEK=1
21911   fi
21912
21913   if test $REPLACE_FSEEK = 1; then
21914
21915
21916
21917
21918
21919
21920
21921
21922   gl_LIBOBJS="$gl_LIBOBJS fseek.$ac_objext"
21923
21924   fi
21925
21926
21927
21928
21929
21930           GNULIB_FSEEK=1
21931
21932
21933
21934
21935
21936 printf "%s\n" "#define GNULIB_TEST_FSEEK 1" >>confdefs.h
21937
21938
21939
21940
21941
21942
21943
21944
21945
21946
21947
21948   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fseeko" >&5
21949 printf %s "checking for fseeko... " >&6; }
21950 if test ${gl_cv_func_fseeko+y}
21951 then :
21952   printf %s "(cached) " >&6
21953 else
21954
21955       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21956 /* end confdefs.h.  */
21957 #include <stdio.h>
21958
21959 int
21960 main (void)
21961 {
21962 fseeko (stdin, 0, 0);
21963   ;
21964   return 0;
21965 }
21966 _ACEOF
21967 if ac_fn_c_try_link "$LINENO"
21968 then :
21969   gl_cv_func_fseeko=yes
21970 else
21971   gl_cv_func_fseeko=no
21972 fi
21973 rm -f core conftest.err conftest.$ac_objext \
21974     conftest$ac_exeext conftest.$ac_ext
21975
21976 fi
21977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fseeko" >&5
21978 printf "%s\n" "$gl_cv_func_fseeko" >&6; }
21979
21980
21981   if test $ac_cv_have_decl_fseeko = no; then
21982     HAVE_DECL_FSEEKO=0
21983   fi
21984
21985   if test $gl_cv_func_fseeko = no; then
21986     HAVE_FSEEKO=0
21987   else
21988     if test $WINDOWS_64_BIT_OFF_T = 1; then
21989       REPLACE_FSEEKO=1
21990     fi
21991     if test $gl_cv_var_stdin_large_offset = no; then
21992       REPLACE_FSEEKO=1
21993     fi
21994
21995
21996
21997   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5
21998 printf %s "checking whether fflush works on input streams... " >&6; }
21999 if test ${gl_cv_func_fflush_stdin+y}
22000 then :
22001   printf %s "(cached) " >&6
22002 else
22003   echo hello world > conftest.txt
22004      if test "$cross_compiling" = yes
22005 then :
22006   case "$host_os" in
22007                   # Guess no on native Windows.
22008           mingw*) gl_cv_func_fflush_stdin="guessing no" ;;
22009           *)      gl_cv_func_fflush_stdin=cross ;;
22010         esac
22011
22012 else
22013   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22014 /* end confdefs.h.  */
22015
22016 #include <stdio.h>
22017 #if HAVE_UNISTD_H
22018 # include <unistd.h>
22019 #else /* on Windows with MSVC */
22020 # include <io.h>
22021 #endif
22022
22023 int
22024 main (void)
22025 {
22026 FILE *f = fopen ("conftest.txt", "r");
22027          char buffer[10];
22028          int fd;
22029          int c;
22030          if (f == NULL)
22031            return 1;
22032          fd = fileno (f);
22033          if (fd < 0 || fread (buffer, 1, 5, f) != 5)
22034            { fclose (f); return 2; }
22035          /* For deterministic results, ensure f read a bigger buffer.  */
22036          if (lseek (fd, 0, SEEK_CUR) == 5)
22037            { fclose (f); return 3; }
22038          /* POSIX requires fflush-fseek to set file offset of fd.  This fails
22039             on BSD systems and on mingw.  */
22040          if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0)
22041            { fclose (f); return 4; }
22042          if (lseek (fd, 0, SEEK_CUR) != 5)
22043            { fclose (f); return 5; }
22044          /* Verify behaviour of fflush after ungetc. See
22045             <http://www.opengroup.org/austin/aardvark/latest/xshbug3.txt>  */
22046          /* Verify behaviour of fflush after a backup ungetc.  This fails on
22047             mingw.  */
22048          c = fgetc (f);
22049          ungetc (c, f);
22050          fflush (f);
22051          if (fgetc (f) != c)
22052            { fclose (f); return 6; }
22053          /* Verify behaviour of fflush after a non-backup ungetc.  This fails
22054             on glibc 2.8 and on BSD systems.  */
22055          c = fgetc (f);
22056          ungetc ('@', f);
22057          fflush (f);
22058          if (fgetc (f) != c)
22059            { fclose (f); return 7; }
22060          fclose (f);
22061          return 0;
22062
22063   ;
22064   return 0;
22065 }
22066 _ACEOF
22067 if ac_fn_c_try_run "$LINENO"
22068 then :
22069   gl_cv_func_fflush_stdin=yes
22070 else
22071   gl_cv_func_fflush_stdin=no
22072 fi
22073 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22074   conftest.$ac_objext conftest.beam conftest.$ac_ext
22075 fi
22076
22077      rm conftest.txt
22078
22079 fi
22080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5
22081 printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; }
22082   case "$gl_cv_func_fflush_stdin" in
22083     *yes) gl_func_fflush_stdin=1 ;;
22084     *no)  gl_func_fflush_stdin=0 ;;
22085     *)    gl_func_fflush_stdin='(-1)' ;;
22086   esac
22087
22088 printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h
22089
22090
22091       case "$gl_cv_func_fflush_stdin" in
22092         *yes) ;;
22093         *) REPLACE_FSEEKO=1 ;;
22094       esac
22095
22096   fi
22097
22098   if test $HAVE_FSEEKO = 0 || test $REPLACE_FSEEKO = 1; then
22099
22100
22101
22102
22103
22104
22105
22106
22107   gl_LIBOBJS="$gl_LIBOBJS fseeko.$ac_objext"
22108
22109
22110       ac_fn_c_check_func "$LINENO" "_fseeki64" "ac_cv_func__fseeki64"
22111 if test "x$ac_cv_func__fseeki64" = xyes
22112 then :
22113   printf "%s\n" "#define HAVE__FSEEKI64 1" >>confdefs.h
22114
22115 fi
22116
22117   if test $ac_cv_func__fseeki64 = yes; then
22118     ac_fn_c_check_decl "$LINENO" "_fseeki64" "ac_cv_have_decl__fseeki64" "$ac_includes_default"
22119 if test "x$ac_cv_have_decl__fseeki64" = xyes
22120 then :
22121   ac_have_decl=1
22122 else
22123   ac_have_decl=0
22124 fi
22125
22126 printf "%s\n" "#define HAVE_DECL__FSEEKI64 $ac_have_decl" >>confdefs.h
22127
22128   fi
22129
22130   fi
22131
22132
22133
22134
22135
22136           GNULIB_FSEEKO=1
22137
22138
22139
22140
22141
22142 printf "%s\n" "#define GNULIB_TEST_FSEEKO 1" >>confdefs.h
22143
22144
22145
22146
22147
22148
22149   if test $ac_cv_func___fseterr = no; then
22150
22151
22152
22153
22154
22155
22156
22157
22158   gl_LIBOBJS="$gl_LIBOBJS fseterr.$ac_objext"
22159
22160   fi
22161
22162
22163
22164
22165   case "$host_os" in
22166     mingw* | solaris*)
22167                         REPLACE_FSTAT=1
22168       ;;
22169   esac
22170
22171
22172
22173
22174
22175   if test $ac_cv_func_fchdir = no; then
22176     HAVE_FCHDIR=0
22177   fi
22178
22179     if test $HAVE_FCHDIR = 0; then
22180       case "$gl_cv_func_open_directory_works" in
22181         *yes) ;;
22182         *)
22183           REPLACE_FSTAT=1
22184           ;;
22185       esac
22186     fi
22187
22188
22189   if test $REPLACE_FSTAT = 1; then
22190
22191
22192
22193
22194
22195
22196
22197
22198   gl_LIBOBJS="$gl_LIBOBJS fstat.$ac_objext"
22199
22200     case "$host_os" in
22201       mingw*)
22202
22203
22204
22205
22206
22207
22208
22209
22210   gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
22211
22212         ;;
22213     esac
22214
22215
22216   :
22217
22218   fi
22219
22220
22221
22222
22223
22224           GNULIB_FSTAT=1
22225
22226
22227
22228
22229
22230 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
22231
22232
22233
22234
22235
22236
22237
22238
22239
22240
22241   if test $ac_cv_func_fstatat = no; then
22242     HAVE_FSTATAT=0
22243   else
22244             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fstatat (..., 0) works" >&5
22245 printf %s "checking whether fstatat (..., 0) works... " >&6; }
22246 if test ${gl_cv_func_fstatat_zero_flag+y}
22247 then :
22248   printf %s "(cached) " >&6
22249 else
22250   if test "$cross_compiling" = yes
22251 then :
22252   case "$host_os" in
22253             aix*) gl_cv_func_fstatat_zero_flag="guessing no";;
22254             *)    gl_cv_func_fstatat_zero_flag="guessing yes";;
22255           esac
22256
22257 else
22258   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22259 /* end confdefs.h.  */
22260
22261               #include <fcntl.h>
22262               #include <sys/stat.h>
22263               int
22264               main (void)
22265               {
22266                 struct stat a;
22267                 return fstatat (AT_FDCWD, ".", &a, 0) != 0;
22268               }
22269
22270 _ACEOF
22271 if ac_fn_c_try_run "$LINENO"
22272 then :
22273   gl_cv_func_fstatat_zero_flag=yes
22274 else
22275   gl_cv_func_fstatat_zero_flag=no
22276 fi
22277 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22278   conftest.$ac_objext conftest.beam conftest.$ac_ext
22279 fi
22280
22281
22282 fi
22283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fstatat_zero_flag" >&5
22284 printf "%s\n" "$gl_cv_func_fstatat_zero_flag" >&6; }
22285
22286     case $gl_cv_func_fstatat_zero_flag+$gl_cv_func_lstat_dereferences_slashed_symlink in
22287     *yes+*yes) ;;
22288     *) REPLACE_FSTATAT=1 ;;
22289     esac
22290
22291     case $host_os in
22292       solaris*)
22293         REPLACE_FSTATAT=1 ;;
22294     esac
22295
22296     case $REPLACE_FSTATAT,$gl_cv_func_fstatat_zero_flag in
22297       1,*yes)
22298
22299 printf "%s\n" "#define HAVE_WORKING_FSTATAT_ZERO_FLAG 1" >>confdefs.h
22300
22301          ;;
22302     esac
22303   fi
22304
22305   if test $HAVE_FSTATAT = 0 || test $REPLACE_FSTATAT = 1; then
22306
22307
22308
22309
22310
22311
22312
22313
22314   gl_LIBOBJS="$gl_LIBOBJS fstatat.$ac_objext"
22315
22316   fi
22317
22318
22319
22320
22321
22322           GNULIB_FSTATAT=1
22323
22324
22325
22326
22327
22328 printf "%s\n" "#define GNULIB_TEST_FSTATAT 1" >>confdefs.h
22329
22330
22331
22332
22333
22334
22335   if test $ac_cv_func_fsync = no; then
22336     HAVE_FSYNC=0
22337   fi
22338
22339   if test $HAVE_FSYNC = 0; then
22340
22341
22342
22343
22344
22345
22346
22347
22348   gl_LIBOBJS="$gl_LIBOBJS fsync.$ac_objext"
22349
22350     :
22351   fi
22352
22353
22354
22355
22356
22357           GNULIB_FSYNC=1
22358
22359
22360
22361
22362
22363 printf "%s\n" "#define GNULIB_TEST_FSYNC 1" >>confdefs.h
22364
22365
22366
22367
22368
22369
22370     if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
22371     REPLACE_FTELL=1
22372   fi
22373
22374   if test $REPLACE_FTELL = 1; then
22375
22376
22377
22378
22379
22380
22381
22382
22383   gl_LIBOBJS="$gl_LIBOBJS ftell.$ac_objext"
22384
22385   fi
22386
22387
22388
22389
22390
22391           GNULIB_FTELL=1
22392
22393
22394
22395
22396
22397 printf "%s\n" "#define GNULIB_TEST_FTELL 1" >>confdefs.h
22398
22399
22400
22401
22402
22403
22404
22405
22406
22407
22408
22409
22410   if test $ac_cv_have_decl_ftello = no; then
22411     HAVE_DECL_FTELLO=0
22412   fi
22413
22414   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
22415 printf %s "checking for ftello... " >&6; }
22416 if test ${gl_cv_func_ftello+y}
22417 then :
22418   printf %s "(cached) " >&6
22419 else
22420
22421       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22422 /* end confdefs.h.  */
22423 #include <stdio.h>
22424 int
22425 main (void)
22426 {
22427 ftello (stdin);
22428   ;
22429   return 0;
22430 }
22431 _ACEOF
22432 if ac_fn_c_try_link "$LINENO"
22433 then :
22434   gl_cv_func_ftello=yes
22435 else
22436   gl_cv_func_ftello=no
22437 fi
22438 rm -f core conftest.err conftest.$ac_objext \
22439     conftest$ac_exeext conftest.$ac_ext
22440
22441 fi
22442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
22443 printf "%s\n" "$gl_cv_func_ftello" >&6; }
22444   if test $gl_cv_func_ftello = no; then
22445     HAVE_FTELLO=0
22446   else
22447     if test $WINDOWS_64_BIT_OFF_T = 1; then
22448       REPLACE_FTELLO=1
22449     fi
22450     if test $gl_cv_var_stdin_large_offset = no; then
22451       REPLACE_FTELLO=1
22452     fi
22453     if test $REPLACE_FTELLO = 0; then
22454
22455       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
22456 printf %s "checking whether ftello works... " >&6; }
22457 if test ${gl_cv_func_ftello_works+y}
22458 then :
22459   printf %s "(cached) " >&6
22460 else
22461
22462                               case "$host_os" in
22463                       # Guess no on Solaris.
22464             solaris*) gl_cv_func_ftello_works="guessing no" ;;
22465                       # Guess yes on native Windows.
22466             mingw*)   gl_cv_func_ftello_works="guessing yes" ;;
22467                       # Guess yes otherwise.
22468             *)        gl_cv_func_ftello_works="guessing yes" ;;
22469           esac
22470           if test "$cross_compiling" = yes
22471 then :
22472   :
22473 else
22474   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22475 /* end confdefs.h.  */
22476
22477 #include <stdio.h>
22478 #include <stdlib.h>
22479 #include <string.h>
22480 #define TESTFILE "conftest.tmp"
22481 int
22482 main (void)
22483 {
22484   FILE *fp;
22485
22486   /* Create a file with some contents.  */
22487   fp = fopen (TESTFILE, "w");
22488   if (fp == NULL)
22489     return 70;
22490   if (fwrite ("foogarsh", 1, 8, fp) < 8)
22491     { fclose (fp); return 71; }
22492   if (fclose (fp))
22493     return 72;
22494
22495   /* The file's contents is now "foogarsh".  */
22496
22497   /* Try writing after reading to EOF.  */
22498   fp = fopen (TESTFILE, "r+");
22499   if (fp == NULL)
22500     return 73;
22501   if (fseek (fp, -1, SEEK_END))
22502     { fclose (fp); return 74; }
22503   if (!(getc (fp) == 'h'))
22504     { fclose (fp); return 1; }
22505   if (!(getc (fp) == EOF))
22506     { fclose (fp); return 2; }
22507   if (!(ftell (fp) == 8))
22508     { fclose (fp); return 3; }
22509   if (!(ftell (fp) == 8))
22510     { fclose (fp); return 4; }
22511   if (!(putc ('!', fp) == '!'))
22512     { fclose (fp); return 5; }
22513   if (!(ftell (fp) == 9))
22514     { fclose (fp); return 6; }
22515   if (!(fclose (fp) == 0))
22516     return 7;
22517   fp = fopen (TESTFILE, "r");
22518   if (fp == NULL)
22519     return 75;
22520   {
22521     char buf[10];
22522     if (!(fread (buf, 1, 10, fp) == 9))
22523       { fclose (fp); return 10; }
22524     if (!(memcmp (buf, "foogarsh!", 9) == 0))
22525       { fclose (fp); return 11; }
22526   }
22527   if (!(fclose (fp) == 0))
22528     return 12;
22529
22530   /* The file's contents is now "foogarsh!".  */
22531
22532   return 0;
22533 }
22534 _ACEOF
22535 if ac_fn_c_try_run "$LINENO"
22536 then :
22537   gl_cv_func_ftello_works=yes
22538 else
22539   gl_cv_func_ftello_works=no
22540 fi
22541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22542   conftest.$ac_objext conftest.beam conftest.$ac_ext
22543 fi
22544
22545
22546 fi
22547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
22548 printf "%s\n" "$gl_cv_func_ftello_works" >&6; }
22549       case "$gl_cv_func_ftello_works" in
22550         *yes) ;;
22551         *)
22552           REPLACE_FTELLO=1
22553
22554 printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
22555
22556           ;;
22557       esac
22558     fi
22559   fi
22560
22561   if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
22562
22563
22564
22565
22566
22567
22568
22569
22570   gl_LIBOBJS="$gl_LIBOBJS ftello.$ac_objext"
22571
22572
22573       ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
22574 if test "x$ac_cv_func__ftelli64" = xyes
22575 then :
22576   printf "%s\n" "#define HAVE__FTELLI64 1" >>confdefs.h
22577
22578 fi
22579
22580
22581   fi
22582
22583
22584
22585
22586
22587           GNULIB_FTELLO=1
22588
22589
22590
22591
22592
22593 printf "%s\n" "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
22594
22595
22596
22597
22598
22599
22600
22601
22602   case $gl_cv_func_getcwd_null,$gl_cv_func_getcwd_posix_signature in
22603   *yes,yes) ;;
22604   *)
22605         REPLACE_GETCWD=1
22606     ;;
22607   esac
22608
22609   if test $REPLACE_GETCWD = 1; then
22610
22611
22612
22613
22614
22615
22616
22617
22618   gl_LIBOBJS="$gl_LIBOBJS getcwd-lgpl.$ac_objext"
22619
22620   fi
22621
22622
22623
22624
22625
22626           GNULIB_GETCWD=1
22627
22628
22629
22630
22631
22632 printf "%s\n" "#define GNULIB_TEST_GETCWD 1" >>confdefs.h
22633
22634
22635
22636
22637
22638
22639
22640
22641   if test $ac_cv_func_getdtablesize = yes &&
22642      test $ac_cv_have_decl_getdtablesize = yes; then
22643     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
22644 printf %s "checking whether getdtablesize works... " >&6; }
22645 if test ${gl_cv_func_getdtablesize_works+y}
22646 then :
22647   printf %s "(cached) " >&6
22648 else
22649                                                    case "$host_os" in
22650          vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
22651          *)
22652                                                        if test "$cross_compiling" = yes
22653 then :
22654   case "$host_os" in
22655                 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
22656                   gl_cv_func_getdtablesize_works="guessing no" ;;
22657                 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
22658               esac
22659
22660 else
22661   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22662 /* end confdefs.h.  */
22663
22664              #include <unistd.h>
22665 int
22666 main (void)
22667 {
22668 int size = getdtablesize();
22669                 if (dup2 (0, getdtablesize()) != -1)
22670                   return 1;
22671                 if (size != getdtablesize())
22672                   return 2;
22673
22674   ;
22675   return 0;
22676 }
22677 _ACEOF
22678 if ac_fn_c_try_run "$LINENO"
22679 then :
22680   gl_cv_func_getdtablesize_works=yes
22681 else
22682   gl_cv_func_getdtablesize_works=no
22683 fi
22684 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22685   conftest.$ac_objext conftest.beam conftest.$ac_ext
22686 fi
22687
22688            ;;
22689        esac
22690
22691 fi
22692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
22693 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; }
22694     case "$gl_cv_func_getdtablesize_works" in
22695       *yes | "no (limitation)") ;;
22696       *) REPLACE_GETDTABLESIZE=1 ;;
22697     esac
22698   else
22699     HAVE_GETDTABLESIZE=0
22700   fi
22701
22702   if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
22703
22704
22705
22706
22707
22708
22709
22710
22711   gl_LIBOBJS="$gl_LIBOBJS getdtablesize.$ac_objext"
22712
22713     :
22714   fi
22715
22716
22717
22718
22719
22720           GNULIB_GETDTABLESIZE=1
22721
22722
22723
22724
22725
22726 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736
22737
22738
22739     REPLACE_GETOPT=0
22740     if test -n "$gl_replace_getopt"; then
22741       REPLACE_GETOPT=1
22742     fi
22743
22744   if test $REPLACE_GETOPT = 1; then
22745
22746
22747   if test $ac_cv_header_sys_cdefs_h = yes; then
22748     HAVE_SYS_CDEFS_H=1
22749   else
22750     HAVE_SYS_CDEFS_H=0
22751   fi
22752
22753
22754
22755 printf "%s\n" "#define __GETOPT_PREFIX rpl_" >>confdefs.h
22756
22757   GETOPT_H=getopt.h
22758   GETOPT_CDEFS_H=getopt-cdefs.h
22759
22760
22761
22762   fi
22763
22764   if test $REPLACE_GETOPT = 1; then
22765
22766
22767
22768
22769
22770
22771
22772
22773   gl_LIBOBJS="$gl_LIBOBJS getopt.$ac_objext"
22774
22775
22776
22777
22778
22779
22780
22781
22782
22783   gl_LIBOBJS="$gl_LIBOBJS getopt1.$ac_objext"
22784
22785         GNULIB_GL_UNISTD_H_GETOPT=1
22786   fi
22787
22788
22789
22790
22791   ac_found=0
22792   ac_fn_c_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
22793 "
22794 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
22795 then :
22796   ac_have_decl=1
22797 else
22798   ac_have_decl=0
22799 fi
22800
22801 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
22802 if test $ac_have_decl = 1
22803 then :
22804   ac_found=1
22805 fi
22806
22807   ac_fn_c_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
22808 "
22809 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
22810 then :
22811   ac_have_decl=1
22812 else
22813   ac_have_decl=0
22814 fi
22815
22816 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
22817 if test $ac_have_decl = 1
22818 then :
22819   ac_found=1
22820 fi
22821
22822   ac_fn_c_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
22823 "
22824 if test "x$ac_cv_have_decl___argv" = xyes
22825 then :
22826   ac_have_decl=1
22827 else
22828   ac_have_decl=0
22829 fi
22830
22831 printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h
22832 if test $ac_have_decl = 1
22833 then :
22834   ac_found=1
22835 fi
22836
22837
22838   # Incur the cost of this test only if none of the above worked.
22839   if test $ac_found = 0; then
22840     # On OpenBSD 5.1, using the global __progname variable appears to be
22841     # the only way to implement getprogname.
22842     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
22843 printf %s "checking whether __progname is defined in default libraries... " >&6; }
22844 if test ${gl_cv_var___progname+y}
22845 then :
22846   printf %s "(cached) " >&6
22847 else
22848
22849         gl_cv_var___progname=
22850         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22851 /* end confdefs.h.  */
22852 extern char *__progname;
22853 int
22854 main (void)
22855 {
22856 return *__progname;
22857
22858   ;
22859   return 0;
22860 }
22861 _ACEOF
22862 if ac_fn_c_try_link "$LINENO"
22863 then :
22864   gl_cv_var___progname=yes
22865
22866 fi
22867 rm -f core conftest.err conftest.$ac_objext \
22868     conftest$ac_exeext conftest.$ac_ext
22869
22870
22871 fi
22872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
22873 printf "%s\n" "$gl_cv_var___progname" >&6; }
22874     if test "$gl_cv_var___progname" = yes; then
22875
22876 printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
22877
22878     fi
22879   fi
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895   gl_gettimeofday_timezone=void
22896   if test $ac_cv_func_gettimeofday != yes; then
22897     HAVE_GETTIMEOFDAY=0
22898   else
22899
22900
22901
22902
22903  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday clobbers localtime buffer" >&5
22904 printf %s "checking whether gettimeofday clobbers localtime buffer... " >&6; }
22905 if test ${gl_cv_func_gettimeofday_clobber+y}
22906 then :
22907   printf %s "(cached) " >&6
22908 else
22909   if test "$cross_compiling" = yes
22910 then :
22911   # When cross-compiling:
22912       case "$host_os" in
22913                        # Guess all is fine on glibc systems.
22914         *-gnu* | gnu*) gl_cv_func_gettimeofday_clobber="guessing no" ;;
22915                        # Guess no on native Windows.
22916         mingw*)        gl_cv_func_gettimeofday_clobber="guessing no" ;;
22917                        # If we don't know, assume the worst.
22918         *)             gl_cv_func_gettimeofday_clobber="guessing yes" ;;
22919       esac
22920
22921 else
22922   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22923 /* end confdefs.h.  */
22924 #include <string.h>
22925           #include <sys/time.h>
22926           #include <time.h>
22927           #include <stdlib.h>
22928
22929 int
22930 main (void)
22931 {
22932
22933           time_t t = 0;
22934           struct tm *lt;
22935           struct tm saved_lt;
22936           struct timeval tv;
22937           lt = localtime (&t);
22938           saved_lt = *lt;
22939           gettimeofday (&tv, NULL);
22940           return memcmp (lt, &saved_lt, sizeof (struct tm)) != 0;
22941
22942   ;
22943   return 0;
22944 }
22945 _ACEOF
22946 if ac_fn_c_try_run "$LINENO"
22947 then :
22948   gl_cv_func_gettimeofday_clobber=no
22949 else
22950   gl_cv_func_gettimeofday_clobber=yes
22951 fi
22952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22953   conftest.$ac_objext conftest.beam conftest.$ac_ext
22954 fi
22955
22956 fi
22957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_clobber" >&5
22958 printf "%s\n" "$gl_cv_func_gettimeofday_clobber" >&6; }
22959
22960  case "$gl_cv_func_gettimeofday_clobber" in
22961    *yes)
22962      REPLACE_GETTIMEOFDAY=1
22963
22964 printf "%s\n" "#define GETTIMEOFDAY_CLOBBERS_LOCALTIME 1" >>confdefs.h
22965
22966
22967
22968
22969   NEED_LOCALTIME_BUFFER=1
22970   REPLACE_GMTIME=1
22971   REPLACE_LOCALTIME=1
22972
22973      ;;
22974  esac
22975
22976     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettimeofday with POSIX signature" >&5
22977 printf %s "checking for gettimeofday with POSIX signature... " >&6; }
22978 if test ${gl_cv_func_gettimeofday_posix_signature+y}
22979 then :
22980   printf %s "(cached) " >&6
22981 else
22982   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22983 /* end confdefs.h.  */
22984 #include <sys/time.h>
22985               struct timeval c;
22986               int gettimeofday (struct timeval *restrict, void *restrict);
22987
22988 int
22989 main (void)
22990 {
22991 /* glibc uses struct timezone * rather than the POSIX void *
22992                  if _GNU_SOURCE is defined.  However, since the only portable
22993                  use of gettimeofday uses NULL as the second parameter, and
22994                  since the glibc definition is actually more typesafe, it is
22995                  not worth wrapping this to get a compliant signature.  */
22996               int (*f) (struct timeval *restrict, void *restrict)
22997                 = gettimeofday;
22998               int x = f (&c, 0);
22999               return !(x | c.tv_sec | c.tv_usec);
23000
23001   ;
23002   return 0;
23003 }
23004 _ACEOF
23005 if ac_fn_c_try_compile "$LINENO"
23006 then :
23007   gl_cv_func_gettimeofday_posix_signature=yes
23008 else
23009   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23010 /* end confdefs.h.  */
23011 #include <sys/time.h>
23012 int gettimeofday (struct timeval *restrict, struct timezone *restrict);
23013
23014 int
23015 main (void)
23016 {
23017
23018   ;
23019   return 0;
23020 }
23021 _ACEOF
23022 if ac_fn_c_try_compile "$LINENO"
23023 then :
23024   gl_cv_func_gettimeofday_posix_signature=almost
23025 else
23026   gl_cv_func_gettimeofday_posix_signature=no
23027 fi
23028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23029 fi
23030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031 fi
23032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gettimeofday_posix_signature" >&5
23033 printf "%s\n" "$gl_cv_func_gettimeofday_posix_signature" >&6; }
23034     if test $gl_cv_func_gettimeofday_posix_signature = almost; then
23035       gl_gettimeofday_timezone='struct timezone'
23036     elif test $gl_cv_func_gettimeofday_posix_signature != yes; then
23037       REPLACE_GETTIMEOFDAY=1
23038     fi
23039         if test $REPLACE_STRUCT_TIMEVAL = 1; then
23040       REPLACE_GETTIMEOFDAY=1
23041     fi
23042             case "$host_os" in
23043       mingw*) REPLACE_GETTIMEOFDAY=1 ;;
23044     esac
23045   fi
23046
23047 printf "%s\n" "#define GETTIMEOFDAY_TIMEZONE $gl_gettimeofday_timezone" >>confdefs.h
23048
23049
23050   if test $HAVE_GETTIMEOFDAY = 0 || test $REPLACE_GETTIMEOFDAY = 1; then
23051
23052
23053
23054
23055
23056
23057
23058
23059   gl_LIBOBJS="$gl_LIBOBJS gettimeofday.$ac_objext"
23060
23061     :
23062   fi
23063
23064
23065
23066
23067
23068           GNULIB_GETTIMEOFDAY=1
23069
23070
23071
23072
23073
23074 printf "%s\n" "#define GNULIB_TEST_GETTIMEOFDAY 1" >>confdefs.h
23075
23076
23077
23078
23079    if LC_ALL=C ${MAKE-make} --version 2>/dev/null | sed -e '2,$d' | grep GNU >/dev/null; then
23080   GNU_MAKE_TRUE=
23081   GNU_MAKE_FALSE='#'
23082 else
23083   GNU_MAKE_TRUE='#'
23084   GNU_MAKE_FALSE=
23085 fi
23086
23087
23088   # Autoconf 2.61a.99 and earlier don't support linking a file only
23089   # in VPATH builds.  But since GNUmakefile is for maintainer use
23090   # only, it does not matter if we skip the link with older autoconf.
23091   # Automake 1.10.1 and earlier try to remove GNUmakefile in non-VPATH
23092   # builds, so use a shell variable to bypass this.
23093   GNUmakefile=GNUmakefile
23094   ac_config_links="$ac_config_links $GNUmakefile:$GNUmakefile"
23095
23096
23097
23098   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether isnan(double) can be used without linking with libm" >&5
23099 printf %s "checking whether isnan(double) can be used without linking with libm... " >&6; }
23100 if test ${gl_cv_func_isnand_no_libm+y}
23101 then :
23102   printf %s "(cached) " >&6
23103 else
23104
23105       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23106 /* end confdefs.h.  */
23107 #include <math.h>
23108              #if __GNUC__ >= 4
23109              # undef isnand
23110              # define isnand(x) __builtin_isnan ((double)(x))
23111              #else
23112              # undef isnand
23113              # define isnand(x) isnan ((double)(x))
23114              #endif
23115              double x;
23116 int
23117 main (void)
23118 {
23119 return isnand (x);
23120   ;
23121   return 0;
23122 }
23123 _ACEOF
23124 if ac_fn_c_try_link "$LINENO"
23125 then :
23126   gl_cv_func_isnand_no_libm=yes
23127 else
23128   gl_cv_func_isnand_no_libm=no
23129 fi
23130 rm -f core conftest.err conftest.$ac_objext \
23131     conftest$ac_exeext conftest.$ac_ext
23132
23133 fi
23134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnand_no_libm" >&5
23135 printf "%s\n" "$gl_cv_func_isnand_no_libm" >&6; }
23136
23137   gl_func_isnand_no_libm=$gl_cv_func_isnand_no_libm
23138   if test $gl_cv_func_isnand_no_libm = yes; then
23139
23140 printf "%s\n" "#define HAVE_ISNAND_IN_LIBC 1" >>confdefs.h
23141
23142   fi
23143
23144   if test $gl_func_isnand_no_libm != yes; then
23145
23146
23147
23148
23149
23150
23151
23152
23153   gl_LIBOBJS="$gl_LIBOBJS isnand.$ac_objext"
23154
23155
23156
23157
23158   fi
23159
23160
23161   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) can be used without linking with libm" >&5
23162 printf %s "checking whether isnan(float) can be used without linking with libm... " >&6; }
23163 if test ${gl_cv_func_isnanf_no_libm+y}
23164 then :
23165   printf %s "(cached) " >&6
23166 else
23167
23168       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23169 /* end confdefs.h.  */
23170 #include <math.h>
23171              #if __GNUC__ >= 4
23172              # undef isnanf
23173              # define isnanf(x) __builtin_isnanf ((float)(x))
23174              #elif defined isnan
23175              # undef isnanf
23176              # define isnanf(x) isnan ((float)(x))
23177              #endif
23178              float x;
23179 int
23180 main (void)
23181 {
23182 return isnanf (x);
23183   ;
23184   return 0;
23185 }
23186 _ACEOF
23187 if ac_fn_c_try_link "$LINENO"
23188 then :
23189   gl_cv_func_isnanf_no_libm=yes
23190 else
23191   gl_cv_func_isnanf_no_libm=no
23192 fi
23193 rm -f core conftest.err conftest.$ac_objext \
23194     conftest$ac_exeext conftest.$ac_ext
23195
23196 fi
23197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_no_libm" >&5
23198 printf "%s\n" "$gl_cv_func_isnanf_no_libm" >&6; }
23199
23200   if test $gl_cv_func_isnanf_no_libm = yes; then
23201
23202
23203
23204   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether isnan(float) works" >&5
23205 printf %s "checking whether isnan(float) works... " >&6; }
23206 if test ${gl_cv_func_isnanf_works+y}
23207 then :
23208   printf %s "(cached) " >&6
23209 else
23210
23211       if test "$cross_compiling" = yes
23212 then :
23213   case "$host_os" in
23214            irix* | solaris*) gl_cv_func_isnanf_works="guessing no" ;;
23215            mingw*) # Guess yes on mingw, no on MSVC.
23216              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23217 /* end confdefs.h.  */
23218
23219 #ifdef __MINGW32__
23220  Known
23221 #endif
23222
23223 _ACEOF
23224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23225   $EGREP "Known" >/dev/null 2>&1
23226 then :
23227   gl_cv_func_isnanf_works="guessing yes"
23228 else
23229   gl_cv_func_isnanf_works="guessing no"
23230 fi
23231 rm -rf conftest*
23232
23233              ;;
23234            *) gl_cv_func_isnanf_works="guessing yes" ;;
23235          esac
23236
23237 else
23238   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23239 /* end confdefs.h.  */
23240
23241 #include <math.h>
23242 #if __GNUC__ >= 4
23243 # undef isnanf
23244 # define isnanf(x) __builtin_isnanf ((float)(x))
23245 #elif defined isnan
23246 # undef isnanf
23247 # define isnanf(x) isnan ((float)(x))
23248 #endif
23249 /* The Compaq (ex-DEC) C 6.4 compiler chokes on the expression 0.0 / 0.0.  */
23250 #ifdef __DECC
23251 static float
23252 NaN ()
23253 {
23254   static float zero = 0.0f;
23255   return zero / zero;
23256 }
23257 #else
23258 # define NaN() (0.0f / 0.0f)
23259 #endif
23260 #define NWORDS \
23261   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
23262 typedef union { unsigned int word[NWORDS]; float value; } memory_float;
23263 int main()
23264 {
23265   int result = 0;
23266
23267   if (isnanf (1.0f / 0.0f))
23268     result |= 1;
23269
23270   if (!isnanf (NaN ()))
23271     result |= 2;
23272
23273 #if defined FLT_EXPBIT0_WORD && defined FLT_EXPBIT0_BIT
23274   /* The isnanf function should be immune against changes in the sign bit and
23275      in the mantissa bits.  The xor operation twiddles a bit that can only be
23276      a sign bit or a mantissa bit.  */
23277   if (FLT_EXPBIT0_WORD == 0 && FLT_EXPBIT0_BIT > 0)
23278     {
23279       memory_float m;
23280
23281       m.value = NaN ();
23282       /* Set the bits below the exponent to 01111...111.  */
23283       m.word[0] &= -1U << FLT_EXPBIT0_BIT;
23284       m.word[0] |= 1U << (FLT_EXPBIT0_BIT - 1) - 1;
23285       if (!isnanf (m.value))
23286         result |= 4;
23287     }
23288 #endif
23289
23290   return result;
23291 }
23292 _ACEOF
23293 if ac_fn_c_try_run "$LINENO"
23294 then :
23295   gl_cv_func_isnanf_works=yes
23296 else
23297   gl_cv_func_isnanf_works=no
23298 fi
23299 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23300   conftest.$ac_objext conftest.beam conftest.$ac_ext
23301 fi
23302
23303
23304 fi
23305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanf_works" >&5
23306 printf "%s\n" "$gl_cv_func_isnanf_works" >&6; }
23307
23308   fi
23309   if test $gl_cv_func_isnanf_no_libm = yes \
23310      && { case "$gl_cv_func_isnanf_works" in
23311             *yes) true;;
23312             *) false;;
23313           esac
23314         }; then
23315     gl_func_isnanf_no_libm=yes
23316
23317 printf "%s\n" "#define HAVE_ISNANF_IN_LIBC 1" >>confdefs.h
23318
23319   else
23320     gl_func_isnanf_no_libm=no
23321   fi
23322
23323   if test $gl_func_isnanf_no_libm != yes; then
23324
23325
23326
23327
23328
23329
23330
23331
23332   gl_LIBOBJS="$gl_LIBOBJS isnanf.$ac_objext"
23333
23334
23335
23336   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'float'" >&5
23337 printf %s "checking where to find the exponent in a 'float'... " >&6; }
23338 if test ${gl_cv_cc_float_expbit0+y}
23339 then :
23340   printf %s "(cached) " >&6
23341 else
23342
23343       if test "$cross_compiling" = yes
23344 then :
23345   gl_cv_cc_float_expbit0="word 0 bit 23"
23346 else
23347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23348 /* end confdefs.h.  */
23349
23350 #include <float.h>
23351 #include <stddef.h>
23352 #include <stdio.h>
23353 #include <string.h>
23354 #define NWORDS \
23355   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
23356 typedef union { float value; unsigned int word[NWORDS]; } memory_float;
23357 static unsigned int ored_words[NWORDS];
23358 static unsigned int anded_words[NWORDS];
23359 static void add_to_ored_words (float x)
23360 {
23361   memory_float m;
23362   size_t i;
23363   /* Clear it first, in case
23364      sizeof (float) < sizeof (memory_float).  */
23365   memset (&m, 0, sizeof (memory_float));
23366   m.value = x;
23367   for (i = 0; i < NWORDS; i++)
23368     {
23369       ored_words[i] |= m.word[i];
23370       anded_words[i] &= m.word[i];
23371     }
23372 }
23373 int main ()
23374 {
23375   size_t j;
23376   FILE *fp = fopen ("conftest.out", "w");
23377   if (fp == NULL)
23378     return 1;
23379   for (j = 0; j < NWORDS; j++)
23380     anded_words[j] = ~ (unsigned int) 0;
23381   add_to_ored_words (0.25f);
23382   add_to_ored_words (0.5f);
23383   add_to_ored_words (1.0f);
23384   add_to_ored_words (2.0f);
23385   add_to_ored_words (4.0f);
23386   /* Remove bits that are common (e.g. if representation of the first mantissa
23387      bit is explicit).  */
23388   for (j = 0; j < NWORDS; j++)
23389     ored_words[j] &= ~anded_words[j];
23390   /* Now find the nonzero word.  */
23391   for (j = 0; j < NWORDS; j++)
23392     if (ored_words[j] != 0)
23393       break;
23394   if (j < NWORDS)
23395     {
23396       size_t i;
23397       for (i = j + 1; i < NWORDS; i++)
23398         if (ored_words[i] != 0)
23399           {
23400             fprintf (fp, "unknown");
23401             return (fclose (fp) != 0);
23402           }
23403       for (i = 0; ; i++)
23404         if ((ored_words[j] >> i) & 1)
23405           {
23406             fprintf (fp, "word %d bit %d", (int) j, (int) i);
23407             return (fclose (fp) != 0);
23408           }
23409     }
23410   fprintf (fp, "unknown");
23411   return (fclose (fp) != 0);
23412 }
23413
23414 _ACEOF
23415 if ac_fn_c_try_run "$LINENO"
23416 then :
23417   gl_cv_cc_float_expbit0=`cat conftest.out`
23418 else
23419   gl_cv_cc_float_expbit0="unknown"
23420 fi
23421 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23422   conftest.$ac_objext conftest.beam conftest.$ac_ext
23423 fi
23424
23425       rm -f conftest.out
23426
23427 fi
23428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_expbit0" >&5
23429 printf "%s\n" "$gl_cv_cc_float_expbit0" >&6; }
23430   case "$gl_cv_cc_float_expbit0" in
23431     word*bit*)
23432       word=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
23433       bit=`echo "$gl_cv_cc_float_expbit0" | sed -e 's/word.*bit //'`
23434
23435 printf "%s\n" "#define FLT_EXPBIT0_WORD $word" >>confdefs.h
23436
23437
23438 printf "%s\n" "#define FLT_EXPBIT0_BIT $bit" >>confdefs.h
23439
23440       ;;
23441   esac
23442
23443
23444   fi
23445
23446
23447   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether isnan(long double) can be used without linking with libm" >&5
23448 printf %s "checking whether isnan(long double) can be used without linking with libm... " >&6; }
23449 if test ${gl_cv_func_isnanl_no_libm+y}
23450 then :
23451   printf %s "(cached) " >&6
23452 else
23453
23454       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23455 /* end confdefs.h.  */
23456 #include <math.h>
23457              #if __GNUC__ >= 4
23458              # undef isnanl
23459              # define isnanl(x) __builtin_isnanl ((long double)(x))
23460              #elif defined isnan
23461              # undef isnanl
23462              # define isnanl(x) isnan ((long double)(x))
23463              #endif
23464              long double x;
23465 int
23466 main (void)
23467 {
23468 return isnanl (x);
23469   ;
23470   return 0;
23471 }
23472 _ACEOF
23473 if ac_fn_c_try_link "$LINENO"
23474 then :
23475   gl_cv_func_isnanl_no_libm=yes
23476 else
23477   gl_cv_func_isnanl_no_libm=no
23478 fi
23479 rm -f core conftest.err conftest.$ac_objext \
23480     conftest$ac_exeext conftest.$ac_ext
23481
23482 fi
23483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_no_libm" >&5
23484 printf "%s\n" "$gl_cv_func_isnanl_no_libm" >&6; }
23485
23486   gl_func_isnanl_no_libm=$gl_cv_func_isnanl_no_libm
23487   if test $gl_func_isnanl_no_libm = yes; then
23488
23489
23490
23491
23492      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether isnanl works" >&5
23493 printf %s "checking whether isnanl works... " >&6; }
23494 if test ${gl_cv_func_isnanl_works+y}
23495 then :
23496   printf %s "(cached) " >&6
23497 else
23498
23499       if test "$cross_compiling" = yes
23500 then :
23501   case "$host_os" in
23502            mingw*) # Guess yes on mingw, no on MSVC.
23503              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23504 /* end confdefs.h.  */
23505
23506 #ifdef __MINGW32__
23507  Known
23508 #endif
23509
23510 _ACEOF
23511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23512   $EGREP "Known" >/dev/null 2>&1
23513 then :
23514   gl_cv_func_isnanl_works="guessing yes"
23515 else
23516   gl_cv_func_isnanl_works="guessing no"
23517 fi
23518 rm -rf conftest*
23519
23520              ;;
23521            *) gl_cv_func_isnanl_works="guessing yes" ;;
23522          esac
23523
23524 else
23525   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23526 /* end confdefs.h.  */
23527
23528 #include <float.h>
23529 #include <limits.h>
23530 #include <math.h>
23531 #if __GNUC__ >= 4
23532 # undef isnanl
23533 # define isnanl(x) __builtin_isnanl ((long double)(x))
23534 #elif defined isnan
23535 # undef isnanl
23536 # define isnanl(x) isnan ((long double)(x))
23537 #endif
23538 #define NWORDS \
23539   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
23540 typedef union { unsigned int word[NWORDS]; long double value; }
23541         memory_long_double;
23542 /* On Irix 6.5, gcc 3.4.3 can't compute compile-time NaN, and needs the
23543    runtime type conversion.  */
23544 #ifdef __sgi
23545 static long double NaNl ()
23546 {
23547   double zero = 0.0;
23548   return zero / zero;
23549 }
23550 #else
23551 # define NaNl() (0.0L / 0.0L)
23552 #endif
23553 int main ()
23554 {
23555   int result = 0;
23556
23557   if (!isnanl (NaNl ()))
23558     result |= 1;
23559
23560   {
23561     memory_long_double m;
23562     unsigned int i;
23563
23564     /* The isnanl function should be immune against changes in the sign bit and
23565        in the mantissa bits.  The xor operation twiddles a bit that can only be
23566        a sign bit or a mantissa bit (since the exponent never extends to
23567        bit 31).  */
23568     m.value = NaNl ();
23569     m.word[NWORDS / 2] ^= (unsigned int) 1 << (sizeof (unsigned int) * CHAR_BIT - 1);
23570     for (i = 0; i < NWORDS; i++)
23571       m.word[i] |= 1;
23572     if (!isnanl (m.value))
23573       result |= 1;
23574   }
23575
23576 #if ((defined __ia64 && LDBL_MANT_DIG == 64) || (defined __x86_64__ || defined __amd64__) || (defined __i386 || defined __i386__ || defined _I386 || defined _M_IX86 || defined _X86_)) && !HAVE_SAME_LONG_DOUBLE_AS_DOUBLE
23577 /* Representation of an 80-bit 'long double' as an initializer for a sequence
23578    of 'unsigned int' words.  */
23579 # ifdef WORDS_BIGENDIAN
23580 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
23581      { ((unsigned int) (exponent) << 16) | ((unsigned int) (manthi) >> 16), \
23582        ((unsigned int) (manthi) << 16) | ((unsigned int) (mantlo) >> 16),   \
23583        (unsigned int) (mantlo) << 16                                        \
23584      }
23585 # else
23586 #  define LDBL80_WORDS(exponent,manthi,mantlo) \
23587      { mantlo, manthi, exponent }
23588 # endif
23589   { /* Quiet NaN.  */
23590     static memory_long_double x =
23591       { LDBL80_WORDS (0xFFFF, 0xC3333333, 0x00000000) };
23592     if (!isnanl (x.value))
23593       result |= 2;
23594   }
23595   {
23596     /* Signalling NaN.  */
23597     static memory_long_double x =
23598       { LDBL80_WORDS (0xFFFF, 0x83333333, 0x00000000) };
23599     if (!isnanl (x.value))
23600       result |= 2;
23601   }
23602   /* isnanl should return something even for noncanonical values.  */
23603   { /* Pseudo-NaN.  */
23604     static memory_long_double x =
23605       { LDBL80_WORDS (0xFFFF, 0x40000001, 0x00000000) };
23606     if (isnanl (x.value) && !isnanl (x.value))
23607       result |= 4;
23608   }
23609   { /* Pseudo-Infinity.  */
23610     static memory_long_double x =
23611       { LDBL80_WORDS (0xFFFF, 0x00000000, 0x00000000) };
23612     if (isnanl (x.value) && !isnanl (x.value))
23613       result |= 8;
23614   }
23615   { /* Pseudo-Zero.  */
23616     static memory_long_double x =
23617       { LDBL80_WORDS (0x4004, 0x00000000, 0x00000000) };
23618     if (isnanl (x.value) && !isnanl (x.value))
23619       result |= 16;
23620   }
23621   { /* Unnormalized number.  */
23622     static memory_long_double x =
23623       { LDBL80_WORDS (0x4000, 0x63333333, 0x00000000) };
23624     if (isnanl (x.value) && !isnanl (x.value))
23625       result |= 32;
23626   }
23627   { /* Pseudo-Denormal.  */
23628     static memory_long_double x =
23629       { LDBL80_WORDS (0x0000, 0x83333333, 0x00000000) };
23630     if (isnanl (x.value) && !isnanl (x.value))
23631       result |= 64;
23632   }
23633 #endif
23634
23635   return result;
23636 }
23637 _ACEOF
23638 if ac_fn_c_try_run "$LINENO"
23639 then :
23640   gl_cv_func_isnanl_works=yes
23641 else
23642   gl_cv_func_isnanl_works=no
23643 fi
23644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23645   conftest.$ac_objext conftest.beam conftest.$ac_ext
23646 fi
23647
23648
23649 fi
23650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_isnanl_works" >&5
23651 printf "%s\n" "$gl_cv_func_isnanl_works" >&6; }
23652
23653     case "$gl_cv_func_isnanl_works" in
23654       *yes) ;;
23655       *)    gl_func_isnanl_no_libm=no ;;
23656     esac
23657   fi
23658   if test $gl_func_isnanl_no_libm = yes; then
23659
23660 printf "%s\n" "#define HAVE_ISNANL_IN_LIBC 1" >>confdefs.h
23661
23662   fi
23663
23664   if test $gl_func_isnanl_no_libm != yes; then
23665
23666
23667
23668
23669
23670
23671
23672
23673   gl_LIBOBJS="$gl_LIBOBJS isnanl.$ac_objext"
23674
23675
23676
23677
23678      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'long double'" >&5
23679 printf %s "checking where to find the exponent in a 'long double'... " >&6; }
23680 if test ${gl_cv_cc_long_double_expbit0+y}
23681 then :
23682   printf %s "(cached) " >&6
23683 else
23684
23685       if test "$cross_compiling" = yes
23686 then :
23687
23688                               gl_cv_cc_long_double_expbit0="unknown"
23689           case "$host_os" in
23690             mingw*) # On native Windows (little-endian), we know the result
23691                     # in two cases: mingw, MSVC.
23692               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23693 /* end confdefs.h.  */
23694
23695 #ifdef __MINGW32__
23696  Known
23697 #endif
23698
23699 _ACEOF
23700 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23701   $EGREP "Known" >/dev/null 2>&1
23702 then :
23703   gl_cv_cc_long_double_expbit0="word 2 bit 0"
23704 fi
23705 rm -rf conftest*
23706
23707               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23708 /* end confdefs.h.  */
23709
23710 #ifdef _MSC_VER
23711  Known
23712 #endif
23713
23714 _ACEOF
23715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23716   $EGREP "Known" >/dev/null 2>&1
23717 then :
23718   gl_cv_cc_long_double_expbit0="word 1 bit 20"
23719 fi
23720 rm -rf conftest*
23721
23722               ;;
23723           esac
23724
23725 else
23726   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23727 /* end confdefs.h.  */
23728
23729 #include <float.h>
23730 #include <stddef.h>
23731 #include <stdio.h>
23732 #include <string.h>
23733 #define NWORDS \
23734   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
23735 typedef union { long double value; unsigned int word[NWORDS]; }
23736         memory_long_double;
23737 static unsigned int ored_words[NWORDS];
23738 static unsigned int anded_words[NWORDS];
23739 static void add_to_ored_words (long double x)
23740 {
23741   memory_long_double m;
23742   size_t i;
23743   /* Clear it first, in case
23744      sizeof (long double) < sizeof (memory_long_double).  */
23745   memset (&m, 0, sizeof (memory_long_double));
23746   m.value = x;
23747   for (i = 0; i < NWORDS; i++)
23748     {
23749       ored_words[i] |= m.word[i];
23750       anded_words[i] &= m.word[i];
23751     }
23752 }
23753 int main ()
23754 {
23755   size_t j;
23756   FILE *fp = fopen ("conftest.out", "w");
23757   if (fp == NULL)
23758     return 1;
23759   for (j = 0; j < NWORDS; j++)
23760     anded_words[j] = ~ (unsigned int) 0;
23761   add_to_ored_words (0.25L);
23762   add_to_ored_words (0.5L);
23763   add_to_ored_words (1.0L);
23764   add_to_ored_words (2.0L);
23765   add_to_ored_words (4.0L);
23766   /* Remove bits that are common (e.g. if representation of the first mantissa
23767      bit is explicit).  */
23768   for (j = 0; j < NWORDS; j++)
23769     ored_words[j] &= ~anded_words[j];
23770   /* Now find the nonzero word.  */
23771   for (j = 0; j < NWORDS; j++)
23772     if (ored_words[j] != 0)
23773       break;
23774   if (j < NWORDS)
23775     {
23776       size_t i;
23777       for (i = j + 1; i < NWORDS; i++)
23778         if (ored_words[i] != 0)
23779           {
23780             fprintf (fp, "unknown");
23781             return (fclose (fp) != 0);
23782           }
23783       for (i = 0; ; i++)
23784         if ((ored_words[j] >> i) & 1)
23785           {
23786             fprintf (fp, "word %d bit %d", (int) j, (int) i);
23787             return (fclose (fp) != 0);
23788           }
23789     }
23790   fprintf (fp, "unknown");
23791   return (fclose (fp) != 0);
23792 }
23793
23794 _ACEOF
23795 if ac_fn_c_try_run "$LINENO"
23796 then :
23797   gl_cv_cc_long_double_expbit0=`cat conftest.out`
23798 else
23799   gl_cv_cc_long_double_expbit0="unknown"
23800 fi
23801 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23802   conftest.$ac_objext conftest.beam conftest.$ac_ext
23803 fi
23804
23805       rm -f conftest.out
23806
23807 fi
23808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_expbit0" >&5
23809 printf "%s\n" "$gl_cv_cc_long_double_expbit0" >&6; }
23810   case "$gl_cv_cc_long_double_expbit0" in
23811     word*bit*)
23812       word=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
23813       bit=`echo "$gl_cv_cc_long_double_expbit0" | sed -e 's/word.*bit //'`
23814
23815 printf "%s\n" "#define LDBL_EXPBIT0_WORD $word" >>confdefs.h
23816
23817
23818 printf "%s\n" "#define LDBL_EXPBIT0_BIT $bit" >>confdefs.h
23819
23820       ;;
23821   esac
23822
23823
23824
23825   fi
23826
23827
23828   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler flag to ignore unused libraries" >&5
23829 printf %s "checking for C compiler flag to ignore unused libraries... " >&6; }
23830 if test ${gl_cv_prog_c_ignore_unused_libraries+y}
23831 then :
23832   printf %s "(cached) " >&6
23833 else
23834   gl_cv_prog_c_ignore_unused_libraries=none
23835      gl_saved_ldflags=$LDFLAGS
23836      gl_saved_libs=$LIBS
23837      # Link with -lm to detect binutils 2.16 bug with --as-needed; see
23838      # <https://lists.gnu.org/r/bug-gnulib/2006-06/msg00131.html>.
23839      LIBS="$LIBS -lm"
23840      # Use long option sequences like '-z ignore' to test for the feature,
23841      # to forestall problems with linkers that have -z, -i, -g, -n, etc. flags.
23842      # GCC + binutils likes '-Wl,--as-needed'.
23843      # GCC + Solaris ld likes '-Wl,-z,ignore'.
23844      # Sun C likes '-Wl,-z,ignore'. '-z ignore' is accepted but has no effect.
23845      # Don't try bare '--as-needed'; nothing likes it and the HP-UX 11.11
23846      # native cc issues annoying warnings and then ignores it,
23847      # which would cause us to incorrectly conclude that it worked.
23848      for gl_flags in  '-Wl,--as-needed' \
23849   '-Wl,-z,ignore' \
23850   '-z ignore'
23851
23852      do
23853        LDFLAGS="$gl_flags $LDFLAGS"
23854        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23855 /* end confdefs.h.  */
23856
23857 int
23858 main (void)
23859 {
23860
23861   ;
23862   return 0;
23863 }
23864 _ACEOF
23865 if ac_fn_c_try_link "$LINENO"
23866 then :
23867   gl_cv_prog_c_ignore_unused_libraries=$gl_flags
23868 fi
23869 rm -f core conftest.err conftest.$ac_objext \
23870     conftest$ac_exeext conftest.$ac_ext
23871        LDFLAGS=$gl_saved_ldflags
23872        test "$gl_cv_prog_c_ignore_unused_libraries" != none &&
23873          break
23874      done
23875      LIBS=$gl_saved_libs
23876
23877 fi
23878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_prog_c_ignore_unused_libraries" >&5
23879 printf "%s\n" "$gl_cv_prog_c_ignore_unused_libraries" >&6; }
23880   IGNORE_UNUSED_LIBRARIES_CFLAGS=
23881   if test "$gl_cv_prog_c_ignore_unused_libraries" != none; then
23882     IGNORE_UNUSED_LIBRARIES_CFLAGS="$gl_cv_prog_c_ignore_unused_libraries"
23883   fi
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895
23896   gl_LIBOBJS="$gl_LIBOBJS localtime-buffer.$ac_objext"
23897
23898
23899
23900   if test "$gl_threads_api" = posix; then
23901     # OSF/1 4.0 and Mac OS X 10.1 lack the pthread_rwlock_t type and the
23902     # pthread_rwlock_* functions.
23903     has_rwlock=false
23904     ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h>
23905 "
23906 if test "x$ac_cv_type_pthread_rwlock_t" = xyes
23907 then :
23908   has_rwlock=true
23909
23910 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h
23911
23912 fi
23913
23914     if $has_rwlock; then
23915
23916
23917   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether pthread_rwlock_rdlock prefers a writer to a reader" >&5
23918 printf %s "checking whether pthread_rwlock_rdlock prefers a writer to a reader... " >&6; }
23919 if test ${gl_cv_pthread_rwlock_rdlock_prefer_writer+y}
23920 then :
23921   printf %s "(cached) " >&6
23922 else
23923   save_LIBS="$LIBS"
23924      LIBS="$LIBS $LIBMULTITHREAD"
23925      if test "$cross_compiling" = yes
23926 then :
23927   gl_cv_pthread_rwlock_rdlock_prefer_writer="guessing yes"
23928 else
23929   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23930 /* end confdefs.h.  */
23931
23932 #include <errno.h>
23933 #include <pthread.h>
23934 #include <stdlib.h>
23935 #include <unistd.h>
23936
23937 #define SUCCEED() exit (0)
23938 #define FAILURE() exit (1)
23939 #define UNEXPECTED(n) (exit (10 + (n)))
23940
23941 /* The main thread creates the waiting writer and the requesting reader threads
23942    in the default way; this guarantees that they have the same priority.
23943    We can reuse the main thread as first reader thread.  */
23944
23945 static pthread_rwlock_t lock;
23946 static pthread_t reader1;
23947 static pthread_t writer;
23948 static pthread_t reader2;
23949 static pthread_t timer;
23950 /* Used to pass control from writer to reader2 and from reader2 to timer,
23951    as in a relay race.
23952    Passing control from one running thread to another running thread
23953    is most likely faster than to create the second thread.  */
23954 static pthread_mutex_t baton;
23955
23956 static void *
23957 timer_func (void *ignored)
23958 {
23959   /* Step 13 (can be before or after step 12):
23960      The timer thread takes the baton, then waits a moment to make sure
23961      it can tell whether the second reader thread is blocked at step 12.  */
23962   if (pthread_mutex_lock (&baton))
23963     UNEXPECTED (13);
23964   usleep (100000);
23965   /* By the time we get here, it's clear that the second reader thread is
23966      blocked at step 12.  This is the desired behaviour.  */
23967   SUCCEED ();
23968 }
23969
23970 static void *
23971 reader2_func (void *ignored)
23972 {
23973   int err;
23974
23975   /* Step 8 (can be before or after step 7):
23976      The second reader thread takes the baton, then waits a moment to make sure
23977      the writer thread has reached step 7.  */
23978   if (pthread_mutex_lock (&baton))
23979     UNEXPECTED (8);
23980   usleep (100000);
23981   /* Step 9: The second reader thread requests the lock.  */
23982   err = pthread_rwlock_tryrdlock (&lock);
23983   if (err == 0)
23984     FAILURE ();
23985   else if (err != EBUSY)
23986     UNEXPECTED (9);
23987   /* Step 10: Launch a timer, to test whether the next call blocks.  */
23988   if (pthread_create (&timer, NULL, timer_func, NULL))
23989     UNEXPECTED (10);
23990   /* Step 11: Release the baton.  */
23991   if (pthread_mutex_unlock (&baton))
23992     UNEXPECTED (11);
23993   /* Step 12: The second reader thread requests the lock.  */
23994   err = pthread_rwlock_rdlock (&lock);
23995   if (err == 0)
23996     FAILURE ();
23997   else
23998     UNEXPECTED (12);
23999 }
24000
24001 static void *
24002 writer_func (void *ignored)
24003 {
24004   /* Step 4: Take the baton, so that the second reader thread does not go ahead
24005      too early.  */
24006   if (pthread_mutex_lock (&baton))
24007     UNEXPECTED (4);
24008   /* Step 5: Create the second reader thread.  */
24009   if (pthread_create (&reader2, NULL, reader2_func, NULL))
24010     UNEXPECTED (5);
24011   /* Step 6: Release the baton.  */
24012   if (pthread_mutex_unlock (&baton))
24013     UNEXPECTED (6);
24014   /* Step 7: The writer thread requests the lock.  */
24015   if (pthread_rwlock_wrlock (&lock))
24016     UNEXPECTED (7);
24017   return NULL;
24018 }
24019
24020 int
24021 main ()
24022 {
24023   reader1 = pthread_self ();
24024
24025   /* Step 1: The main thread initializes the lock and the baton.  */
24026   if (pthread_rwlock_init (&lock, NULL))
24027     UNEXPECTED (1);
24028   if (pthread_mutex_init (&baton, NULL))
24029     UNEXPECTED (1);
24030   /* Step 2: The main thread acquires the lock as a reader.  */
24031   if (pthread_rwlock_rdlock (&lock))
24032     UNEXPECTED (2);
24033   /* Step 3: Create the writer thread.  */
24034   if (pthread_create (&writer, NULL, writer_func, NULL))
24035     UNEXPECTED (3);
24036   /* Job done.  Go to sleep.  */
24037   for (;;)
24038     {
24039       sleep (1);
24040     }
24041 }
24042
24043 _ACEOF
24044 if ac_fn_c_try_run "$LINENO"
24045 then :
24046   gl_cv_pthread_rwlock_rdlock_prefer_writer=yes
24047 else
24048   gl_cv_pthread_rwlock_rdlock_prefer_writer=no
24049 fi
24050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24051   conftest.$ac_objext conftest.beam conftest.$ac_ext
24052 fi
24053
24054      LIBS="$save_LIBS"
24055
24056 fi
24057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_pthread_rwlock_rdlock_prefer_writer" >&5
24058 printf "%s\n" "$gl_cv_pthread_rwlock_rdlock_prefer_writer" >&6; }
24059   case "$gl_cv_pthread_rwlock_rdlock_prefer_writer" in
24060     *yes)
24061
24062 printf "%s\n" "#define HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER 1" >>confdefs.h
24063
24064       ;;
24065   esac
24066
24067     fi
24068     # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro.
24069     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24070 /* end confdefs.h.  */
24071
24072       #include <pthread.h>
24073 int
24074 main (void)
24075 {
24076
24077 #if __FreeBSD__ == 4
24078 error "No, in FreeBSD 4.0 recursive mutexes actually don't work."
24079 #elif (defined __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ \
24080        && __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 1070)
24081 error "No, in Mac OS X < 10.7 recursive mutexes actually don't work."
24082 #else
24083 int x = (int)PTHREAD_MUTEX_RECURSIVE;
24084 return !x;
24085 #endif
24086
24087   ;
24088   return 0;
24089 }
24090 _ACEOF
24091 if ac_fn_c_try_compile "$LINENO"
24092 then :
24093
24094 printf "%s\n" "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h
24095
24096 fi
24097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24098   fi
24099   :
24100
24101
24102
24103 printf "%s\n" "#define GNULIB_LOCK 1" >>confdefs.h
24104
24105
24106
24107
24108
24109
24110
24111
24112   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
24113 printf %s "checking whether lseek detects pipes... " >&6; }
24114 if test ${gl_cv_func_lseek_pipe+y}
24115 then :
24116   printf %s "(cached) " >&6
24117 else
24118   case "$host_os" in
24119        mingw*)
24120                                                                gl_cv_func_lseek_pipe=no
24121          ;;
24122        *)
24123          if test $cross_compiling = no; then
24124            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24125 /* end confdefs.h.  */
24126
24127 #include <sys/types.h> /* for off_t */
24128 #include <stdio.h> /* for SEEK_CUR */
24129 #if HAVE_UNISTD_H
24130 # include <unistd.h>
24131 #else /* on Windows with MSVC */
24132 # include <io.h>
24133 #endif
24134
24135 int
24136 main (void)
24137 {
24138
24139   /* Exit with success only if stdin is seekable.  */
24140   return lseek (0, (off_t)0, SEEK_CUR) < 0;
24141
24142   ;
24143   return 0;
24144 }
24145 _ACEOF
24146 if ac_fn_c_try_link "$LINENO"
24147 then :
24148   if test -s conftest$ac_exeext \
24149                  && ./conftest$ac_exeext < conftest.$ac_ext \
24150                  && test 1 = "`echo hi \
24151                    | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
24152                 gl_cv_func_lseek_pipe=yes
24153               else
24154                 gl_cv_func_lseek_pipe=no
24155               fi
24156
24157 else
24158   gl_cv_func_lseek_pipe=no
24159 fi
24160 rm -f core conftest.err conftest.$ac_objext \
24161     conftest$ac_exeext conftest.$ac_ext
24162          else
24163            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24164 /* end confdefs.h.  */
24165
24166 #if defined __BEOS__
24167 /* BeOS mistakenly return 0 when trying to seek on pipes.  */
24168   Choke me.
24169 #endif
24170 _ACEOF
24171 if ac_fn_c_try_compile "$LINENO"
24172 then :
24173   gl_cv_func_lseek_pipe=yes
24174 else
24175   gl_cv_func_lseek_pipe=no
24176 fi
24177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24178          fi
24179          ;;
24180      esac
24181
24182 fi
24183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
24184 printf "%s\n" "$gl_cv_func_lseek_pipe" >&6; }
24185   if test $gl_cv_func_lseek_pipe = no; then
24186     REPLACE_LSEEK=1
24187
24188 printf "%s\n" "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
24189
24190   fi
24191
24192
24193   if test $WINDOWS_64_BIT_OFF_T = 1; then
24194     REPLACE_LSEEK=1
24195   fi
24196
24197   if test $REPLACE_LSEEK = 1; then
24198
24199
24200
24201
24202
24203
24204
24205
24206   gl_LIBOBJS="$gl_LIBOBJS lseek.$ac_objext"
24207
24208   fi
24209
24210
24211
24212
24213
24214           GNULIB_LSEEK=1
24215
24216
24217
24218
24219
24220 printf "%s\n" "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
24221
24222
24223
24224
24225
24226
24227
24228   if test $ac_cv_func_lstat = yes; then
24229
24230     case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
24231       solaris* | *no)
24232         REPLACE_LSTAT=1
24233         ;;
24234     esac
24235   else
24236     HAVE_LSTAT=0
24237   fi
24238
24239   if test $REPLACE_LSTAT = 1; then
24240
24241
24242
24243
24244
24245
24246
24247
24248   gl_LIBOBJS="$gl_LIBOBJS lstat.$ac_objext"
24249
24250     :
24251   fi
24252
24253
24254
24255
24256
24257           GNULIB_LSTAT=1
24258
24259
24260
24261
24262
24263 printf "%s\n" "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
24264
24265
24266
24267
24268
24269
24270
24271
24272       ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
24273 if test "x$ac_cv_header_stdlib_h" = xyes
24274 then :
24275   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
24276
24277 fi
24278
24279   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
24280 printf %s "checking for GNU libc compatible malloc... " >&6; }
24281 if test ${ac_cv_func_malloc_0_nonnull+y}
24282 then :
24283   printf %s "(cached) " >&6
24284 else
24285   if test "$cross_compiling" = yes
24286 then :
24287   case "$host_os" in
24288           # Guess yes on platforms where we know the result.
24289           *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \
24290           | hpux* | solaris* | cygwin* | mingw*)
24291             ac_cv_func_malloc_0_nonnull=yes ;;
24292           # If we don't know, assume the worst.
24293           *) ac_cv_func_malloc_0_nonnull=no ;;
24294         esac
24295
24296 else
24297   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24298 /* end confdefs.h.  */
24299 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
24300             # include <stdlib.h>
24301             #else
24302             char *malloc ();
24303             #endif
24304
24305 int
24306 main (void)
24307 {
24308 char *p = malloc (0);
24309             int result = !p;
24310             free (p);
24311             return result;
24312   ;
24313   return 0;
24314 }
24315
24316 _ACEOF
24317 if ac_fn_c_try_run "$LINENO"
24318 then :
24319   ac_cv_func_malloc_0_nonnull=yes
24320 else
24321   ac_cv_func_malloc_0_nonnull=no
24322 fi
24323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24324   conftest.$ac_objext conftest.beam conftest.$ac_ext
24325 fi
24326
24327
24328 fi
24329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
24330 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
24331   if test $ac_cv_func_malloc_0_nonnull = yes
24332 then :
24333
24334 printf "%s\n" "#define HAVE_MALLOC_GNU 1" >>confdefs.h
24335
24336 else
24337   printf "%s\n" "#define HAVE_MALLOC_GNU 0" >>confdefs.h
24338
24339      REPLACE_MALLOC=1
24340
24341 fi
24342
24343
24344   if test $REPLACE_MALLOC = 1; then
24345
24346
24347
24348
24349
24350
24351
24352
24353   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
24354
24355   fi
24356
24357
24358 printf "%s\n" "#define GNULIB_MALLOC_GNU 1" >>confdefs.h
24359
24360
24361
24362
24363
24364   if test $gl_cv_func_malloc_posix = yes; then
24365
24366 printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
24367
24368   else
24369     REPLACE_MALLOC=1
24370   fi
24371
24372   if test $REPLACE_MALLOC = 1; then
24373
24374
24375
24376
24377
24378
24379
24380
24381   gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
24382
24383   fi
24384
24385
24386
24387
24388
24389           GNULIB_MALLOC_POSIX=1
24390
24391
24392
24393
24394
24395 printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
24396
24397
24398
24399
24400
24401
24402
24403
24404
24405
24406
24407
24408
24409
24410
24411
24412
24413
24414      if test $gl_cv_have_include_next = yes; then
24415        gl_cv_next_math_h='<'math.h'>'
24416      else
24417        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <math.h>" >&5
24418 printf %s "checking absolute name of <math.h>... " >&6; }
24419 if test ${gl_cv_next_math_h+y}
24420 then :
24421   printf %s "(cached) " >&6
24422 else
24423
24424              if test $ac_cv_header_math_h = yes; then
24425
24426
24427
24428
24429   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24430 /* end confdefs.h.  */
24431 #include <math.h>
24432 _ACEOF
24433                 case "$host_os" in
24434     aix*) gl_absname_cpp="$ac_cpp -C" ;;
24435     *)    gl_absname_cpp="$ac_cpp" ;;
24436   esac
24437
24438   case "$host_os" in
24439     mingw*)
24440                                           gl_dirsep_regex='[/\\]'
24441       ;;
24442     *)
24443       gl_dirsep_regex='\/'
24444       ;;
24445   esac
24446       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
24447   gl_header_literal_regex=`echo 'math.h' \
24448                            | sed -e "$gl_make_literal_regex_sed"`
24449   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
24450       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
24451       s|^/[^/]|//&|
24452       p
24453       q
24454     }'
24455
24456         gl_cv_absolute_math_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
24457   sed -n "$gl_absolute_header_sed"`
24458
24459            gl_header=$gl_cv_absolute_math_h
24460            gl_cv_next_math_h='"'$gl_header'"'
24461           else
24462                gl_cv_next_math_h='<'math.h'>'
24463              fi
24464
24465
24466 fi
24467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_math_h" >&5
24468 printf "%s\n" "$gl_cv_next_math_h" >&6; }
24469      fi
24470      NEXT_MATH_H=$gl_cv_next_math_h
24471
24472      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
24473        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
24474        gl_next_as_first_directive='<'math.h'>'
24475      else
24476        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
24477        gl_next_as_first_directive=$gl_cv_next_math_h
24478      fi
24479      NEXT_AS_FIRST_DIRECTIVE_MATH_H=$gl_next_as_first_directive
24480
24481
24482
24483
24484
24485   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NAN macro works" >&5
24486 printf %s "checking whether NAN macro works... " >&6; }
24487 if test ${gl_cv_header_math_nan_works+y}
24488 then :
24489   printf %s "(cached) " >&6
24490 else
24491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24492 /* end confdefs.h.  */
24493 #include <math.h>
24494 int
24495 main (void)
24496 {
24497 /* Solaris 10 has a broken definition of NAN.  Other platforms
24498         fail to provide NAN, or provide it only in C99 mode; this
24499         test only needs to fail when NAN is provided but wrong.  */
24500          float f = 1.0f;
24501 #ifdef NAN
24502          f = NAN;
24503 #endif
24504          return f == 0;
24505   ;
24506   return 0;
24507 }
24508 _ACEOF
24509 if ac_fn_c_try_compile "$LINENO"
24510 then :
24511   gl_cv_header_math_nan_works=yes
24512 else
24513   gl_cv_header_math_nan_works=no
24514 fi
24515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24516 fi
24517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_nan_works" >&5
24518 printf "%s\n" "$gl_cv_header_math_nan_works" >&6; }
24519   if test $gl_cv_header_math_nan_works = no; then
24520     REPLACE_NAN=1
24521   fi
24522   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether HUGE_VAL works" >&5
24523 printf %s "checking whether HUGE_VAL works... " >&6; }
24524 if test ${gl_cv_header_math_huge_val_works+y}
24525 then :
24526   printf %s "(cached) " >&6
24527 else
24528   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24529 /* end confdefs.h.  */
24530 #include <math.h>
24531 int
24532 main (void)
24533 {
24534 /* Solaris 10 has a broken definition of HUGE_VAL.  */
24535          double d = HUGE_VAL;
24536          return d == 0;
24537   ;
24538   return 0;
24539 }
24540 _ACEOF
24541 if ac_fn_c_try_compile "$LINENO"
24542 then :
24543   gl_cv_header_math_huge_val_works=yes
24544 else
24545   gl_cv_header_math_huge_val_works=no
24546 fi
24547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24548 fi
24549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_math_huge_val_works" >&5
24550 printf "%s\n" "$gl_cv_header_math_huge_val_works" >&6; }
24551   if test $gl_cv_header_math_huge_val_works = no; then
24552     REPLACE_HUGE_VAL=1
24553   fi
24554
24555
24556
24557
24558   if test $HAVE_MEMCHR = 0 || test $REPLACE_MEMCHR = 1; then
24559
24560
24561
24562
24563
24564
24565
24566
24567   gl_LIBOBJS="$gl_LIBOBJS memchr.$ac_objext"
24568
24569
24570   ac_fn_c_check_header_compile "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
24571 if test "x$ac_cv_header_bp_sym_h" = xyes
24572 then :
24573   printf "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h
24574
24575 fi
24576
24577
24578   fi
24579
24580
24581
24582
24583
24584           GNULIB_MEMCHR=1
24585
24586
24587
24588
24589
24590 printf "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
24591
24592
24593
24594
24595
24596
24597
24598
24599
24600   ac_fn_c_check_func "$LINENO" "mempcpy" "ac_cv_func_mempcpy"
24601 if test "x$ac_cv_func_mempcpy" = xyes
24602 then :
24603   printf "%s\n" "#define HAVE_MEMPCPY 1" >>confdefs.h
24604
24605 fi
24606
24607   if test $ac_cv_func_mempcpy = no; then
24608     HAVE_MEMPCPY=0
24609   fi
24610
24611   if test $HAVE_MEMPCPY = 0; then
24612
24613
24614
24615
24616
24617
24618
24619
24620   gl_LIBOBJS="$gl_LIBOBJS mempcpy.$ac_objext"
24621
24622
24623   :
24624
24625   fi
24626
24627
24628
24629
24630
24631           GNULIB_MEMPCPY=1
24632
24633
24634
24635
24636
24637 printf "%s\n" "#define GNULIB_TEST_MEMPCPY 1" >>confdefs.h
24638
24639
24640
24641
24642
24643
24644
24645
24646   if test $ac_cv_have_decl_memrchr = no; then
24647     HAVE_DECL_MEMRCHR=0
24648   fi
24649
24650   ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr"
24651 if test "x$ac_cv_func_memrchr" = xyes
24652 then :
24653   printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
24654
24655 fi
24656
24657
24658   if test $ac_cv_func_memrchr = no; then
24659
24660
24661
24662
24663
24664
24665
24666
24667   gl_LIBOBJS="$gl_LIBOBJS memrchr.$ac_objext"
24668
24669     :
24670   fi
24671
24672
24673
24674
24675
24676           GNULIB_MEMRCHR=1
24677
24678
24679
24680
24681
24682 printf "%s\n" "#define GNULIB_TEST_MEMRCHR 1" >>confdefs.h
24683
24684
24685
24686
24687   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24688
24689
24690
24691
24692
24693
24694
24695
24696   gl_LIBOBJS="$gl_LIBOBJS msvc-inval.$ac_objext"
24697
24698   fi
24699
24700   if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
24701
24702
24703
24704
24705
24706
24707
24708
24709   gl_LIBOBJS="$gl_LIBOBJS msvc-nothrow.$ac_objext"
24710
24711   fi
24712
24713
24714 printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h
24715
24716
24717
24718
24719
24720
24721   case "$host_os" in
24722     mingw* | pw*)
24723       REPLACE_OPEN=1
24724       ;;
24725     *)
24726
24727       if test "$gl_cv_macro_O_CLOEXEC" != yes; then
24728         REPLACE_OPEN=1
24729       fi
24730       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
24731 printf %s "checking whether open recognizes a trailing slash... " >&6; }
24732 if test ${gl_cv_func_open_slash+y}
24733 then :
24734   printf %s "(cached) " >&6
24735 else
24736   # Assume that if we have lstat, we can also check symlinks.
24737           if test $ac_cv_func_lstat = yes; then
24738             touch conftest.tmp
24739             ln -s conftest.tmp conftest.lnk
24740           fi
24741           if test "$cross_compiling" = yes
24742 then :
24743
24744              case "$host_os" in
24745                freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
24746                  gl_cv_func_open_slash="guessing no" ;;
24747                *)
24748                  gl_cv_func_open_slash="guessing yes" ;;
24749              esac
24750
24751 else
24752   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24753 /* end confdefs.h.  */
24754
24755 #include <fcntl.h>
24756 #if HAVE_UNISTD_H
24757 # include <unistd.h>
24758 #endif
24759 int main ()
24760 {
24761   int result = 0;
24762 #if HAVE_LSTAT
24763   if (open ("conftest.lnk/", O_RDONLY) != -1)
24764     result |= 1;
24765 #endif
24766   if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
24767     result |= 2;
24768   return result;
24769 }
24770 _ACEOF
24771 if ac_fn_c_try_run "$LINENO"
24772 then :
24773   gl_cv_func_open_slash=yes
24774 else
24775   gl_cv_func_open_slash=no
24776 fi
24777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24778   conftest.$ac_objext conftest.beam conftest.$ac_ext
24779 fi
24780
24781           rm -f conftest.sl conftest.tmp conftest.lnk
24782
24783 fi
24784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
24785 printf "%s\n" "$gl_cv_func_open_slash" >&6; }
24786       case "$gl_cv_func_open_slash" in
24787         *no)
24788
24789 printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
24790
24791           REPLACE_OPEN=1
24792           ;;
24793       esac
24794       ;;
24795   esac
24796
24797     if test $REPLACE_OPEN = 0; then
24798
24799
24800
24801   if test $ac_cv_func_fchdir = no; then
24802     HAVE_FCHDIR=0
24803   fi
24804
24805       if test $HAVE_FCHDIR = 0; then
24806         REPLACE_OPEN=1
24807       fi
24808     fi
24809
24810
24811
24812   if test $REPLACE_OPEN = 1; then
24813
24814
24815
24816
24817
24818
24819
24820
24821   gl_LIBOBJS="$gl_LIBOBJS open.$ac_objext"
24822
24823
24824
24825   :
24826
24827   fi
24828
24829
24830
24831
24832
24833           GNULIB_OPEN=1
24834
24835
24836
24837
24838
24839 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h
24840
24841
24842
24843
24844
24845
24846
24847
24848
24849   case $ac_cv_func_openat+$gl_cv_func_lstat_dereferences_slashed_symlink+$gl_cv_macro_O_CLOEXEC in
24850   yes+*yes+yes)
24851     ;;
24852   yes+*)
24853     # Solaris 10 lacks O_CLOEXEC.
24854     # Solaris 9 has *at functions, but uniformly mishandles trailing
24855     # slash in all of them.
24856     REPLACE_OPENAT=1
24857     ;;
24858   *)
24859     HAVE_OPENAT=0
24860     ;;
24861   esac
24862
24863   if test $HAVE_OPENAT = 0 || test $REPLACE_OPENAT = 1; then
24864
24865
24866
24867
24868
24869
24870
24871
24872   gl_LIBOBJS="$gl_LIBOBJS openat.$ac_objext"
24873
24874
24875
24876   :
24877
24878   fi
24879
24880
24881 printf "%s\n" "#define GNULIB_OPENAT 1" >>confdefs.h
24882
24883
24884
24885
24886
24887
24888           GNULIB_OPENAT=1
24889
24890
24891
24892
24893
24894 printf "%s\n" "#define GNULIB_TEST_OPENAT 1" >>confdefs.h
24895
24896
24897
24898
24899
24900
24901
24902
24903 printf "%s\n" "#define GNULIB_OPENAT_SAFER 1" >>confdefs.h
24904
24905
24906
24907
24908
24909   ac_fn_c_check_func "$LINENO" "opendir" "ac_cv_func_opendir"
24910 if test "x$ac_cv_func_opendir" = xyes
24911 then :
24912   printf "%s\n" "#define HAVE_OPENDIR 1" >>confdefs.h
24913
24914 fi
24915
24916   if test $ac_cv_func_opendir = no; then
24917     HAVE_OPENDIR=0
24918   fi
24919
24920
24921
24922
24923   if test $ac_cv_func_fchdir = no; then
24924     HAVE_FCHDIR=0
24925   fi
24926
24927     if test $HAVE_FCHDIR = 0; then
24928       if test $HAVE_OPENDIR = 1; then
24929         REPLACE_OPENDIR=1
24930       fi
24931     fi
24932
24933       case $host_os,$HAVE_OPENDIR in
24934     os2*,1)
24935       REPLACE_OPENDIR=1;;
24936   esac
24937
24938   if test $HAVE_OPENDIR = 0 || test $REPLACE_OPENDIR = 1; then
24939
24940
24941
24942
24943
24944
24945
24946
24947   gl_LIBOBJS="$gl_LIBOBJS opendir.$ac_objext"
24948
24949   fi
24950
24951
24952
24953
24954
24955           GNULIB_OPENDIR=1
24956
24957
24958
24959
24960
24961 printf "%s\n" "#define GNULIB_TEST_OPENDIR 1" >>confdefs.h
24962
24963
24964
24965
24966
24967
24968
24969
24970
24971
24972
24973              if test "$ERRNO_H:$REPLACE_STRERROR_0" != :0; then
24974             REPLACE_PERROR=1
24975   fi
24976   case ${gl_cv_func_strerror_r_works-unset} in
24977     unset|*yes)
24978       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether perror matches strerror" >&5
24979 printf %s "checking whether perror matches strerror... " >&6; }
24980 if test ${gl_cv_func_perror_works+y}
24981 then :
24982   printf %s "(cached) " >&6
24983 else
24984   if test "$cross_compiling" = yes
24985 then :
24986   case "$host_os" in
24987                       # Guess yes on native Windows.
24988               mingw*) gl_cv_func_perror_works="guessing yes" ;;
24989                       # Otherwise guess no.
24990               *)      gl_cv_func_perror_works="guessing no" ;;
24991             esac
24992
24993 else
24994   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24995 /* end confdefs.h.  */
24996 #include <errno.h>
24997                 #include <stdio.h>
24998                 #include <stdlib.h>
24999                 #include <string.h>
25000
25001 int
25002 main (void)
25003 {
25004 char *str = strerror (-1);
25005                 if (!getenv("CONFTEST_OUTPUT")) return 0;
25006                 if (!str) str = "";
25007                 puts (str);
25008                 errno = -1;
25009                 perror ("");
25010                 return 0;
25011
25012   ;
25013   return 0;
25014 }
25015 _ACEOF
25016 if ac_fn_c_try_run "$LINENO"
25017 then :
25018   if CONFTEST_OUTPUT=1 ./conftest$EXEEXT >conftest.txt1 2>conftest.txt2 \
25019                && cmp conftest.txt1 conftest.txt2 >/dev/null; then
25020               gl_cv_func_perror_works=yes
25021             else
25022               gl_cv_func_perror_works=no
25023             fi
25024             rm -rf conftest.txt1 conftest.txt2
25025 else
25026   gl_cv_func_perror_works=no
25027 fi
25028 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25029   conftest.$ac_objext conftest.beam conftest.$ac_ext
25030 fi
25031
25032
25033 fi
25034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_perror_works" >&5
25035 printf "%s\n" "$gl_cv_func_perror_works" >&6; }
25036       case "$gl_cv_func_perror_works" in
25037         *yes) ;;
25038         *) REPLACE_PERROR=1 ;;
25039       esac
25040       ;;
25041     *)
25042                   REPLACE_PERROR=1
25043       ;;
25044   esac
25045
25046   if test $REPLACE_PERROR = 1; then
25047
25048
25049
25050
25051
25052
25053
25054
25055   gl_LIBOBJS="$gl_LIBOBJS perror.$ac_objext"
25056
25057   fi
25058
25059
25060
25061
25062
25063           GNULIB_PERROR=1
25064
25065
25066
25067
25068
25069 printf "%s\n" "#define GNULIB_TEST_PERROR 1" >>confdefs.h
25070
25071
25072
25073
25074
25075   if test $gl_cv_func_frexp_no_libm = yes; then
25076
25077
25078
25079   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexp works" >&5
25080 printf %s "checking whether frexp works... " >&6; }
25081 if test ${gl_cv_func_frexp_works+y}
25082 then :
25083   printf %s "(cached) " >&6
25084 else
25085
25086       if test "$cross_compiling" = yes
25087 then :
25088   case "$host_os" in
25089            netbsd* | irix*) gl_cv_func_frexp_works="guessing no" ;;
25090            mingw*) # Guess yes with MSVC, no with mingw.
25091              cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25092 /* end confdefs.h.  */
25093
25094 #ifdef _MSC_VER
25095  Good
25096 #endif
25097
25098 _ACEOF
25099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25100   $EGREP "Good" >/dev/null 2>&1
25101 then :
25102   gl_cv_func_frexp_works="guessing yes"
25103 else
25104   gl_cv_func_frexp_works="guessing no"
25105 fi
25106 rm -rf conftest*
25107
25108              ;;
25109            *) gl_cv_func_frexp_works="guessing yes" ;;
25110          esac
25111
25112 else
25113   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25114 /* end confdefs.h.  */
25115
25116 #include <float.h>
25117 #include <math.h>
25118 #include <string.h>
25119 #if HAVE_DECL_ALARM
25120 # include <signal.h>
25121 # include <unistd.h>
25122 #endif
25123 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
25124    ICC 10.0 has a bug when optimizing the expression -zero.
25125    The expression -DBL_MIN * DBL_MIN does not work when cross-compiling
25126    to PowerPC on Mac OS X 10.5.  */
25127 #if defined __hpux || defined __sgi || defined __ICC
25128 static double
25129 compute_minus_zero (void)
25130 {
25131   return -DBL_MIN * DBL_MIN;
25132 }
25133 # define minus_zero compute_minus_zero ()
25134 #else
25135 double minus_zero = -0.0;
25136 #endif
25137 int main()
25138 {
25139   int result = 0;
25140   int i;
25141   volatile double x;
25142   double zero = 0.0;
25143 #if HAVE_DECL_ALARM
25144   /* NeXTstep 3.3 frexp() runs into an endless loop when called on an infinite
25145      number.  Let the test fail in this case.  */
25146   signal (SIGALRM, SIG_DFL);
25147   alarm (5);
25148 #endif
25149   /* Test on denormalized numbers.  */
25150   for (i = 1, x = 1.0; i >= DBL_MIN_EXP; i--, x *= 0.5)
25151     ;
25152   if (x > 0.0)
25153     {
25154       int exp;
25155       double y = frexp (x, &exp);
25156       /* On machines with IEEE754 arithmetic: x = 1.11254e-308, exp = -1022.
25157          On NetBSD: y = 0.75. Correct: y = 0.5.  */
25158       if (y != 0.5)
25159         result |= 1;
25160     }
25161   /* Test on infinite numbers.  */
25162   x = 1.0 / zero;
25163   {
25164     int exp;
25165     double y = frexp (x, &exp);
25166     if (y != x)
25167       result |= 2;
25168   }
25169   /* Test on negative zero.  */
25170   x = minus_zero;
25171   {
25172     int exp;
25173     double y = frexp (x, &exp);
25174     if (memcmp (&y, &x, sizeof x))
25175       result |= 4;
25176   }
25177   return result;
25178 }
25179 _ACEOF
25180 if ac_fn_c_try_run "$LINENO"
25181 then :
25182   gl_cv_func_frexp_works=yes
25183 else
25184   gl_cv_func_frexp_works=no
25185 fi
25186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25187   conftest.$ac_objext conftest.beam conftest.$ac_ext
25188 fi
25189
25190
25191 fi
25192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexp_works" >&5
25193 printf "%s\n" "$gl_cv_func_frexp_works" >&6; }
25194
25195     case "$gl_cv_func_frexp_works" in
25196       *yes)
25197
25198 printf "%s\n" "#define HAVE_FREXP_IN_LIBC 1" >>confdefs.h
25199
25200         ;;
25201     esac
25202   fi
25203
25204   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ldexp can be used without linking with libm" >&5
25205 printf %s "checking whether ldexp can be used without linking with libm... " >&6; }
25206 if test ${gl_cv_func_ldexp_no_libm+y}
25207 then :
25208   printf %s "(cached) " >&6
25209 else
25210
25211       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25212 /* end confdefs.h.  */
25213 #include <math.h>
25214              double x;
25215              int y;
25216 int
25217 main (void)
25218 {
25219 return ldexp (x, y) < 1;
25220   ;
25221   return 0;
25222 }
25223 _ACEOF
25224 if ac_fn_c_try_link "$LINENO"
25225 then :
25226   gl_cv_func_ldexp_no_libm=yes
25227 else
25228   gl_cv_func_ldexp_no_libm=no
25229 fi
25230 rm -f core conftest.err conftest.$ac_objext \
25231     conftest$ac_exeext conftest.$ac_ext
25232
25233 fi
25234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexp_no_libm" >&5
25235 printf "%s\n" "$gl_cv_func_ldexp_no_libm" >&6; }
25236   if test $gl_cv_func_ldexp_no_libm = yes; then
25237
25238 printf "%s\n" "#define HAVE_LDEXP_IN_LIBC 1" >>confdefs.h
25239
25240   fi
25241
25242
25243
25244
25245
25246
25247   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexpl() can be used without linking with libm" >&5
25248 printf %s "checking whether frexpl() can be used without linking with libm... " >&6; }
25249 if test ${gl_cv_func_frexpl_no_libm+y}
25250 then :
25251   printf %s "(cached) " >&6
25252 else
25253
25254       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25255 /* end confdefs.h.  */
25256 #include <math.h>
25257              long double x;
25258 int
25259 main (void)
25260 {
25261 int e; return frexpl (x, &e) > 0;
25262   ;
25263   return 0;
25264 }
25265 _ACEOF
25266 if ac_fn_c_try_link "$LINENO"
25267 then :
25268   gl_cv_func_frexpl_no_libm=yes
25269 else
25270   gl_cv_func_frexpl_no_libm=no
25271 fi
25272 rm -f core conftest.err conftest.$ac_objext \
25273     conftest$ac_exeext conftest.$ac_ext
25274
25275 fi
25276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_no_libm" >&5
25277 printf "%s\n" "$gl_cv_func_frexpl_no_libm" >&6; }
25278
25279   if test $gl_cv_func_frexpl_no_libm = yes; then
25280
25281
25282      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether frexpl works" >&5
25283 printf %s "checking whether frexpl works... " >&6; }
25284 if test ${gl_cv_func_frexpl_works+y}
25285 then :
25286   printf %s "(cached) " >&6
25287 else
25288
25289       if test "$cross_compiling" = yes
25290 then :
25291
25292          case "$host_os" in
25293            aix | aix[3-6]* | beos* | darwin* | irix* | mingw* | pw*)
25294               gl_cv_func_frexpl_works="guessing no";;
25295            *) gl_cv_func_frexpl_works="guessing yes";;
25296          esac
25297
25298 else
25299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25300 /* end confdefs.h.  */
25301
25302 #include <float.h>
25303 #include <math.h>
25304 /* Override the values of <float.h>, like done in float.in.h.  */
25305 #if defined __i386__ && (defined __BEOS__ || defined __OpenBSD__)
25306 # undef LDBL_MIN_EXP
25307 # define LDBL_MIN_EXP    (-16381)
25308 #endif
25309 #if defined __i386__ && (defined __FreeBSD__ || defined __DragonFly__)
25310 # undef LDBL_MIN_EXP
25311 # define LDBL_MIN_EXP    (-16381)
25312 #endif
25313 #if (defined _ARCH_PPC || defined _POWER) && defined _AIX && (LDBL_MANT_DIG == 106) && defined __GNUC__
25314 # undef LDBL_MIN_EXP
25315 # define LDBL_MIN_EXP DBL_MIN_EXP
25316 #endif
25317 #if defined __sgi && (LDBL_MANT_DIG >= 106)
25318 # if defined __GNUC__
25319 #  undef LDBL_MIN_EXP
25320 #  define LDBL_MIN_EXP DBL_MIN_EXP
25321 # endif
25322 #endif
25323 extern
25324 #ifdef __cplusplus
25325 "C"
25326 #endif
25327 long double frexpl (long double, int *);
25328 int main()
25329 {
25330   int result = 0;
25331   volatile long double x;
25332   /* Test on finite numbers that fails on AIX 5.1.  */
25333   x = 16.0L;
25334   {
25335     int exp = -9999;
25336     frexpl (x, &exp);
25337     if (exp != 5)
25338       result |= 1;
25339   }
25340   /* Test on finite numbers that fails on Mac OS X 10.4, because its frexpl
25341      function returns an invalid (incorrectly normalized) value: it returns
25342                y = { 0x3fe028f5, 0xc28f5c28, 0x3c9eb851, 0xeb851eb8 }
25343      but the correct result is
25344           0.505L = { 0x3fe028f5, 0xc28f5c29, 0xbc547ae1, 0x47ae1480 }  */
25345   x = 1.01L;
25346   {
25347     int exp = -9999;
25348     long double y = frexpl (x, &exp);
25349     if (!(exp == 1 && y == 0.505L))
25350       result |= 2;
25351   }
25352   /* Test on large finite numbers.  This fails on BeOS at i = 16322, while
25353      LDBL_MAX_EXP = 16384.
25354      In the loop end test, we test x against Infinity, rather than comparing
25355      i with LDBL_MAX_EXP, because BeOS <float.h> has a wrong LDBL_MAX_EXP.  */
25356   {
25357     int i;
25358     for (i = 1, x = 1.0L; x != x + x; i++, x *= 2.0L)
25359       {
25360         int exp = -9999;
25361         frexpl (x, &exp);
25362         if (exp != i)
25363           {
25364             result |= 4;
25365             break;
25366           }
25367       }
25368   }
25369   /* Test on denormalized numbers.  */
25370   {
25371     int i;
25372     for (i = 1, x = 1.0L; i >= LDBL_MIN_EXP; i--, x *= 0.5L)
25373       ;
25374     if (x > 0.0L)
25375       {
25376         int exp;
25377         long double y = frexpl (x, &exp);
25378         /* On machines with IEEE854 arithmetic: x = 1.68105e-4932,
25379            exp = -16382, y = 0.5.  On Mac OS X 10.5: exp = -16384, y = 0.5.  */
25380         if (exp != LDBL_MIN_EXP - 1)
25381           result |= 8;
25382       }
25383   }
25384   /* Test on infinite numbers.  */
25385   x = 1.0L / 0.0L;
25386   {
25387     int exp;
25388     long double y = frexpl (x, &exp);
25389     if (y != x)
25390       result |= 16;
25391   }
25392   return result;
25393 }
25394 _ACEOF
25395 if ac_fn_c_try_run "$LINENO"
25396 then :
25397   gl_cv_func_frexpl_works=yes
25398 else
25399   gl_cv_func_frexpl_works=no
25400 fi
25401 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25402   conftest.$ac_objext conftest.beam conftest.$ac_ext
25403 fi
25404
25405
25406 fi
25407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_frexpl_works" >&5
25408 printf "%s\n" "$gl_cv_func_frexpl_works" >&6; }
25409
25410     case "$gl_cv_func_frexpl_works" in
25411       *yes) gl_func_frexpl_no_libm=yes ;;
25412       *)    gl_func_frexpl_no_libm=no; REPLACE_FREXPL=1 ;;
25413     esac
25414   else
25415     gl_func_frexpl_no_libm=no
25416         REPLACE_FREXPL=1
25417   fi
25418   if test $gl_func_frexpl_no_libm = yes; then
25419
25420 printf "%s\n" "#define HAVE_FREXPL_IN_LIBC 1" >>confdefs.h
25421
25422             ac_fn_c_check_decl "$LINENO" "frexpl" "ac_cv_have_decl_frexpl" "#include <math.h>
25423 "
25424 if test "x$ac_cv_have_decl_frexpl" = xyes
25425 then :
25426
25427 else
25428   HAVE_DECL_FREXPL=0
25429 fi
25430
25431   fi
25432
25433
25434   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ldexpl() can be used without linking with libm" >&5
25435 printf %s "checking whether ldexpl() can be used without linking with libm... " >&6; }
25436 if test ${gl_cv_func_ldexpl_no_libm+y}
25437 then :
25438   printf %s "(cached) " >&6
25439 else
25440
25441       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25442 /* end confdefs.h.  */
25443 #include <math.h>
25444              long double x;
25445 int
25446 main (void)
25447 {
25448 return ldexpl (x, -1) > 0;
25449   ;
25450   return 0;
25451 }
25452 _ACEOF
25453 if ac_fn_c_try_link "$LINENO"
25454 then :
25455   gl_cv_func_ldexpl_no_libm=yes
25456 else
25457   gl_cv_func_ldexpl_no_libm=no
25458 fi
25459 rm -f core conftest.err conftest.$ac_objext \
25460     conftest$ac_exeext conftest.$ac_ext
25461
25462 fi
25463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_no_libm" >&5
25464 printf "%s\n" "$gl_cv_func_ldexpl_no_libm" >&6; }
25465
25466   if test $gl_cv_func_ldexpl_no_libm = yes; then
25467
25468
25469      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ldexpl works" >&5
25470 printf %s "checking whether ldexpl works... " >&6; }
25471 if test ${gl_cv_func_ldexpl_works+y}
25472 then :
25473   printf %s "(cached) " >&6
25474 else
25475
25476       if test "$cross_compiling" = yes
25477 then :
25478
25479          case "$host_os" in
25480            aix | aix[3-6]*) gl_cv_func_ldexpl_works="guessing no" ;;
25481                             # Guess yes on native Windows.
25482            mingw*)          gl_cv_func_ldexpl_works="guessing yes" ;;
25483            *)               gl_cv_func_ldexpl_works="guessing yes" ;;
25484          esac
25485
25486 else
25487   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25488 /* end confdefs.h.  */
25489
25490 #include <math.h>
25491 extern
25492 #ifdef __cplusplus
25493 "C"
25494 #endif
25495 long double ldexpl (long double, int);
25496 int main()
25497 {
25498   int result = 0;
25499   {
25500     volatile long double x = 1.0;
25501     volatile long double y = ldexpl (x, -1);
25502     if (y != 0.5L)
25503       result |= 1;
25504   }
25505   {
25506     volatile long double x = 1.73205L;
25507     volatile long double y = ldexpl (x, 0);
25508     if (y != x)
25509       result |= 2;
25510   }
25511   return result;
25512 }
25513 _ACEOF
25514 if ac_fn_c_try_run "$LINENO"
25515 then :
25516   gl_cv_func_ldexpl_works=yes
25517 else
25518   gl_cv_func_ldexpl_works=no
25519 fi
25520 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25521   conftest.$ac_objext conftest.beam conftest.$ac_ext
25522 fi
25523
25524
25525 fi
25526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ldexpl_works" >&5
25527 printf "%s\n" "$gl_cv_func_ldexpl_works" >&6; }
25528
25529     case "$gl_cv_func_ldexpl_works" in
25530       *yes)
25531
25532 printf "%s\n" "#define HAVE_LDEXPL_IN_LIBC 1" >>confdefs.h
25533
25534                         ac_fn_c_check_decl "$LINENO" "ldexpl" "ac_cv_have_decl_ldexpl" "#include <math.h>
25535 "
25536 if test "x$ac_cv_have_decl_ldexpl" = xyes
25537 then :
25538
25539 else
25540   HAVE_DECL_LDEXPL=0
25541 fi
25542
25543         ;;
25544     esac
25545   fi
25546
25547
25548
25549   if test $gl_cv_func_vfprintf_posix = no; then
25550
25551
25552
25553
25554
25555
25556
25557
25558
25559
25560
25561   gl_LIBOBJS="$gl_LIBOBJS printf.$ac_objext"
25562
25563   REPLACE_PRINTF=1
25564
25565 printf "%s\n" "#define REPLACE_PRINTF_POSIX 1" >>confdefs.h
25566
25567   :
25568
25569   fi
25570
25571
25572
25573
25574
25575
25576           GNULIB_PRINTF_POSIX=1
25577
25578
25579
25580
25581
25582 printf "%s\n" "#define GNULIB_TEST_PRINTF_POSIX 1" >>confdefs.h
25583
25584
25585
25586
25587
25588
25589
25590   ac_fn_c_check_func "$LINENO" "raise" "ac_cv_func_raise"
25591 if test "x$ac_cv_func_raise" = xyes
25592 then :
25593   printf "%s\n" "#define HAVE_RAISE 1" >>confdefs.h
25594
25595 fi
25596
25597   if test $ac_cv_func_raise = no; then
25598     HAVE_RAISE=0
25599   else
25600
25601
25602       if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
25603         REPLACE_RAISE=1
25604       fi
25605
25606
25607
25608
25609
25610   if test $gl_cv_type_sigset_t = yes; then
25611     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
25612 if test "x$ac_cv_func_sigprocmask" = xyes
25613 then :
25614   gl_cv_func_sigprocmask=1
25615 fi
25616
25617   fi
25618   if test -z "$gl_cv_func_sigprocmask"; then
25619     HAVE_POSIX_SIGNALBLOCKING=0
25620   fi
25621
25622       if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
25623         :
25624       fi
25625
25626   fi
25627
25628   if test $HAVE_RAISE = 0 || test $REPLACE_RAISE = 1; then
25629
25630
25631
25632
25633
25634
25635
25636
25637   gl_LIBOBJS="$gl_LIBOBJS raise.$ac_objext"
25638
25639     :
25640   fi
25641
25642
25643
25644
25645
25646           GNULIB_RAISE=1
25647
25648
25649
25650
25651
25652 printf "%s\n" "#define GNULIB_TEST_RAISE 1" >>confdefs.h
25653
25654
25655
25656
25657
25658
25659   ac_fn_c_check_func "$LINENO" "readdir" "ac_cv_func_readdir"
25660 if test "x$ac_cv_func_readdir" = xyes
25661 then :
25662   printf "%s\n" "#define HAVE_READDIR 1" >>confdefs.h
25663
25664 fi
25665
25666   if test $ac_cv_func_readdir = no; then
25667     HAVE_READDIR=0
25668   fi
25669
25670   if test $HAVE_READDIR = 0; then
25671
25672
25673
25674
25675
25676
25677
25678
25679   gl_LIBOBJS="$gl_LIBOBJS readdir.$ac_objext"
25680
25681   fi
25682
25683
25684
25685
25686
25687           GNULIB_READDIR=1
25688
25689
25690
25691
25692
25693 printf "%s\n" "#define GNULIB_TEST_READDIR 1" >>confdefs.h
25694
25695
25696
25697
25698
25699
25700       ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
25701 if test "x$ac_cv_header_stdlib_h" = xyes
25702 then :
25703   printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
25704
25705 fi
25706
25707   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5
25708 printf %s "checking for GNU libc compatible realloc... " >&6; }
25709 if test ${ac_cv_func_realloc_0_nonnull+y}
25710 then :
25711   printf %s "(cached) " >&6
25712 else
25713   if test "$cross_compiling" = yes
25714 then :
25715   case "$host_os" in
25716           # Guess yes on platforms where we know the result.
25717           *-gnu* | gnu* | freebsd* | netbsd* | openbsd* \
25718           | hpux* | solaris* | cygwin* | mingw*)
25719             ac_cv_func_realloc_0_nonnull=yes ;;
25720           # If we don't know, assume the worst.
25721           *) ac_cv_func_realloc_0_nonnull=no ;;
25722         esac
25723
25724 else
25725   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25726 /* end confdefs.h.  */
25727 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
25728             # include <stdlib.h>
25729             #else
25730             char *realloc ();
25731             #endif
25732
25733 int
25734 main (void)
25735 {
25736 char *p = realloc (0, 0);
25737             int result = !p;
25738             free (p);
25739             return result;
25740   ;
25741   return 0;
25742 }
25743
25744 _ACEOF
25745 if ac_fn_c_try_run "$LINENO"
25746 then :
25747   ac_cv_func_realloc_0_nonnull=yes
25748 else
25749   ac_cv_func_realloc_0_nonnull=no
25750 fi
25751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25752   conftest.$ac_objext conftest.beam conftest.$ac_ext
25753 fi
25754
25755
25756 fi
25757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
25758 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
25759   if test $ac_cv_func_realloc_0_nonnull = yes
25760 then :
25761
25762 printf "%s\n" "#define HAVE_REALLOC_GNU 1" >>confdefs.h
25763
25764 else
25765   printf "%s\n" "#define HAVE_REALLOC_GNU 0" >>confdefs.h
25766
25767      REPLACE_REALLOC=1
25768
25769 fi
25770
25771
25772   if test $REPLACE_REALLOC = 1; then
25773
25774
25775
25776
25777
25778
25779
25780
25781   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
25782
25783   fi
25784
25785
25786 printf "%s\n" "#define GNULIB_REALLOC_GNU 1" >>confdefs.h
25787
25788
25789
25790
25791
25792   if test $gl_cv_func_malloc_posix = yes; then
25793
25794 printf "%s\n" "#define HAVE_REALLOC_POSIX 1" >>confdefs.h
25795
25796   else
25797     REPLACE_REALLOC=1
25798   fi
25799
25800   if test $REPLACE_REALLOC = 1; then
25801
25802
25803
25804
25805
25806
25807
25808
25809   gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
25810
25811   fi
25812
25813
25814
25815
25816
25817           GNULIB_REALLOC_POSIX=1
25818
25819
25820
25821
25822
25823 printf "%s\n" "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
25824
25825
25826
25827
25828
25829
25830   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether rmdir works" >&5
25831 printf %s "checking whether rmdir works... " >&6; }
25832 if test ${gl_cv_func_rmdir_works+y}
25833 then :
25834   printf %s "(cached) " >&6
25835 else
25836   mkdir conftest.dir
25837      touch conftest.file
25838      if test "$cross_compiling" = yes
25839 then :
25840   case "$host_os" in
25841                            # Guess yes on Linux systems.
25842           linux-* | linux) gl_cv_func_rmdir_works="guessing yes" ;;
25843                            # Guess yes on glibc systems.
25844           *-gnu* | gnu*)   gl_cv_func_rmdir_works="guessing yes" ;;
25845                            # Guess no on native Windows.
25846           mingw*)          gl_cv_func_rmdir_works="guessing no" ;;
25847                            # If we don't know, assume the worst.
25848           *)               gl_cv_func_rmdir_works="guessing no" ;;
25849         esac
25850
25851 else
25852   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25853 /* end confdefs.h.  */
25854 #include <stdio.h>
25855            #include <errno.h>
25856            #if HAVE_UNISTD_H
25857            # include <unistd.h>
25858            #else /* on Windows with MSVC */
25859            # include <direct.h>
25860            #endif
25861
25862 int
25863 main (void)
25864 {
25865 int result = 0;
25866       if (!rmdir ("conftest.file/"))
25867         result |= 1;
25868       else if (errno != ENOTDIR)
25869         result |= 2;
25870       if (!rmdir ("conftest.dir/./"))
25871         result |= 4;
25872       return result;
25873
25874   ;
25875   return 0;
25876 }
25877 _ACEOF
25878 if ac_fn_c_try_run "$LINENO"
25879 then :
25880   gl_cv_func_rmdir_works=yes
25881 else
25882   gl_cv_func_rmdir_works=no
25883 fi
25884 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25885   conftest.$ac_objext conftest.beam conftest.$ac_ext
25886 fi
25887
25888      rm -rf conftest.dir conftest.file
25889 fi
25890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_rmdir_works" >&5
25891 printf "%s\n" "$gl_cv_func_rmdir_works" >&6; }
25892   case "$gl_cv_func_rmdir_works" in
25893     *yes) ;;
25894     *)
25895       REPLACE_RMDIR=1
25896       ;;
25897   esac
25898
25899   if test $REPLACE_RMDIR = 1; then
25900
25901
25902
25903
25904
25905
25906
25907
25908   gl_LIBOBJS="$gl_LIBOBJS rmdir.$ac_objext"
25909
25910   fi
25911
25912
25913
25914
25915
25916           GNULIB_RMDIR=1
25917
25918
25919
25920
25921
25922 printf "%s\n" "#define GNULIB_TEST_RMDIR 1" >>confdefs.h
25923
25924
25925
25926
25927
25928
25929
25930   :
25931
25932
25933
25934
25935   if test $ac_cv_func_sigaction = yes; then
25936     ac_fn_c_check_member "$LINENO" "struct sigaction" "sa_sigaction" "ac_cv_member_struct_sigaction_sa_sigaction" "#include <signal.h>
25937 "
25938 if test "x$ac_cv_member_struct_sigaction_sa_sigaction" = xyes
25939 then :
25940
25941 printf "%s\n" "#define HAVE_STRUCT_SIGACTION_SA_SIGACTION 1" >>confdefs.h
25942
25943
25944 fi
25945
25946     if test $ac_cv_member_struct_sigaction_sa_sigaction = no; then
25947       HAVE_STRUCT_SIGACTION_SA_SIGACTION=0
25948     fi
25949   else
25950     HAVE_SIGACTION=0
25951   fi
25952
25953   if test $HAVE_SIGACTION = 0; then
25954
25955
25956
25957
25958
25959
25960
25961
25962   gl_LIBOBJS="$gl_LIBOBJS sigaction.$ac_objext"
25963
25964
25965
25966
25967
25968
25969
25970   ac_fn_c_check_type "$LINENO" "siginfo_t" "ac_cv_type_siginfo_t" "
25971 #include <signal.h>
25972
25973 "
25974 if test "x$ac_cv_type_siginfo_t" = xyes
25975 then :
25976
25977 printf "%s\n" "#define HAVE_SIGINFO_T 1" >>confdefs.h
25978
25979
25980 fi
25981
25982   if test $ac_cv_type_siginfo_t = no; then
25983     HAVE_SIGINFO_T=0
25984   fi
25985
25986   fi
25987
25988
25989
25990
25991
25992           GNULIB_SIGACTION=1
25993
25994
25995
25996
25997
25998 printf "%s\n" "#define GNULIB_TEST_SIGACTION 1" >>confdefs.h
25999
26000
26001
26002
26003
26004
26005
26006
26007
26008
26009
26010
26011
26012
26013      if test $gl_cv_have_include_next = yes; then
26014        gl_cv_next_signal_h='<'signal.h'>'
26015      else
26016        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <signal.h>" >&5
26017 printf %s "checking absolute name of <signal.h>... " >&6; }
26018 if test ${gl_cv_next_signal_h+y}
26019 then :
26020   printf %s "(cached) " >&6
26021 else
26022
26023
26024
26025   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26026 /* end confdefs.h.  */
26027 #include <signal.h>
26028 _ACEOF
26029                 case "$host_os" in
26030     aix*) gl_absname_cpp="$ac_cpp -C" ;;
26031     *)    gl_absname_cpp="$ac_cpp" ;;
26032   esac
26033
26034   case "$host_os" in
26035     mingw*)
26036                                           gl_dirsep_regex='[/\\]'
26037       ;;
26038     *)
26039       gl_dirsep_regex='\/'
26040       ;;
26041   esac
26042       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
26043   gl_header_literal_regex=`echo 'signal.h' \
26044                            | sed -e "$gl_make_literal_regex_sed"`
26045   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
26046       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
26047       s|^/[^/]|//&|
26048       p
26049       q
26050     }'
26051
26052         gl_cv_absolute_signal_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
26053   sed -n "$gl_absolute_header_sed"`
26054
26055            gl_header=$gl_cv_absolute_signal_h
26056            gl_cv_next_signal_h='"'$gl_header'"'
26057
26058
26059 fi
26060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_signal_h" >&5
26061 printf "%s\n" "$gl_cv_next_signal_h" >&6; }
26062      fi
26063      NEXT_SIGNAL_H=$gl_cv_next_signal_h
26064
26065      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
26066        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
26067        gl_next_as_first_directive='<'signal.h'>'
26068      else
26069        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
26070        gl_next_as_first_directive=$gl_cv_next_signal_h
26071      fi
26072      NEXT_AS_FIRST_DIRECTIVE_SIGNAL_H=$gl_next_as_first_directive
26073
26074
26075
26076
26077
26078 # AIX declares sig_atomic_t to already include volatile, and C89 compilers
26079 # then choke on 'volatile sig_atomic_t'.  C99 requires that it compile.
26080   ac_fn_c_check_type "$LINENO" "volatile sig_atomic_t" "ac_cv_type_volatile_sig_atomic_t" "
26081 #include <signal.h>
26082
26083 "
26084 if test "x$ac_cv_type_volatile_sig_atomic_t" = xyes
26085 then :
26086
26087 else
26088   HAVE_TYPE_VOLATILE_SIG_ATOMIC_T=0
26089 fi
26090
26091
26092
26093
26094
26095
26096
26097   ac_fn_c_check_type "$LINENO" "sighandler_t" "ac_cv_type_sighandler_t" "
26098 #include <signal.h>
26099
26100 "
26101 if test "x$ac_cv_type_sighandler_t" = xyes
26102 then :
26103
26104 else
26105   HAVE_SIGHANDLER_T=0
26106 fi
26107
26108
26109
26110
26111
26112
26113      { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for signbit macro" >&5
26114 printf %s "checking for signbit macro... " >&6; }
26115 if test ${gl_cv_func_signbit+y}
26116 then :
26117   printf %s "(cached) " >&6
26118 else
26119
26120       if test "$cross_compiling" = yes
26121 then :
26122   case "$host_os" in
26123                           # Guess yes on glibc systems.
26124            *-gnu* | gnu*) gl_cv_func_signbit="guessing yes" ;;
26125                           # Guess yes on native Windows.
26126            mingw*)        gl_cv_func_signbit="guessing yes" ;;
26127                           # If we don't know, assume the worst.
26128            *)             gl_cv_func_signbit="guessing no" ;;
26129          esac
26130
26131 else
26132   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26133 /* end confdefs.h.  */
26134
26135 #include <math.h>
26136 /* If signbit is defined as a function, don't use it, since calling it for
26137    'float' or 'long double' arguments would involve conversions.
26138    If signbit is not declared at all but exists as a library function, don't
26139    use it, since the prototype may not match.
26140    If signbit is not declared at all but exists as a compiler built-in, don't
26141    use it, since it's preferable to use __builtin_signbit* (no warnings,
26142    no conversions).  */
26143 #ifndef signbit
26144 # error "signbit should be a macro"
26145 #endif
26146 #include <string.h>
26147
26148 /* Global variables.
26149    Needed because GCC 4 constant-folds __builtin_signbitl (literal)
26150    but cannot constant-fold            __builtin_signbitl (variable).  */
26151 float vf;
26152 double vd;
26153 long double vl;
26154 int main ()
26155 {
26156 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
26157    So we use -p0f and -p0d instead.  */
26158 float p0f = 0.0f;
26159 float m0f = -p0f;
26160 double p0d = 0.0;
26161 double m0d = -p0d;
26162 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
26163    So we use another constant expression instead.
26164    But that expression does not work on other platforms, such as when
26165    cross-compiling to PowerPC on Mac OS X 10.5.  */
26166 long double p0l = 0.0L;
26167 #if defined __hpux || defined __sgi
26168 long double m0l = -LDBL_MIN * LDBL_MIN;
26169 #else
26170 long double m0l = -p0l;
26171 #endif
26172   int result = 0;
26173   if (signbit (vf)) /* link check */
26174     vf++;
26175   {
26176     float plus_inf = 1.0f / p0f;
26177     float minus_inf = -1.0f / p0f;
26178     if (!(!signbit (255.0f)
26179           && signbit (-255.0f)
26180           && !signbit (p0f)
26181           && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
26182           && !signbit (plus_inf)
26183           && signbit (minus_inf)))
26184       result |= 1;
26185   }
26186   if (signbit (vd)) /* link check */
26187     vd++;
26188   {
26189     double plus_inf = 1.0 / p0d;
26190     double minus_inf = -1.0 / p0d;
26191     if (!(!signbit (255.0)
26192           && signbit (-255.0)
26193           && !signbit (p0d)
26194           && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
26195           && !signbit (plus_inf)
26196           && signbit (minus_inf)))
26197       result |= 2;
26198   }
26199   if (signbit (vl)) /* link check */
26200     vl++;
26201   {
26202     long double plus_inf = 1.0L / p0l;
26203     long double minus_inf = -1.0L / p0l;
26204     if (signbit (255.0L))
26205       result |= 4;
26206     if (!signbit (-255.0L))
26207       result |= 4;
26208     if (signbit (p0l))
26209       result |= 8;
26210     if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
26211       result |= 16;
26212     if (signbit (plus_inf))
26213       result |= 32;
26214     if (!signbit (minus_inf))
26215       result |= 64;
26216   }
26217   return result;
26218 }
26219
26220
26221 _ACEOF
26222 if ac_fn_c_try_run "$LINENO"
26223 then :
26224   gl_cv_func_signbit=yes
26225 else
26226   gl_cv_func_signbit=no
26227 fi
26228 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26229   conftest.$ac_objext conftest.beam conftest.$ac_ext
26230 fi
26231
26232
26233 fi
26234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit" >&5
26235 printf "%s\n" "$gl_cv_func_signbit" >&6; }
26236           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for signbit compiler built-ins" >&5
26237 printf %s "checking for signbit compiler built-ins... " >&6; }
26238 if test ${gl_cv_func_signbit_gcc+y}
26239 then :
26240   printf %s "(cached) " >&6
26241 else
26242
26243       if test "$cross_compiling" = yes
26244 then :
26245   case "$host_os" in
26246                           # Guess yes on glibc systems.
26247            *-gnu* | gnu*) gl_cv_func_signbit_gcc="guessing yes" ;;
26248                           # Guess yes on mingw, no on MSVC.
26249            mingw*)        if test -n "$GCC"; then
26250                             gl_cv_func_signbit_gcc="guessing yes"
26251                           else
26252                             gl_cv_func_signbit_gcc="guessing no"
26253                           fi
26254                           ;;
26255                           # If we don't know, assume the worst.
26256            *)             gl_cv_func_signbit_gcc="guessing no" ;;
26257          esac
26258
26259 else
26260   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26261 /* end confdefs.h.  */
26262
26263 #if __GNUC__ >= 4
26264 # define signbit(x) \
26265    (sizeof (x) == sizeof (long double) ? __builtin_signbitl (x) : \
26266     sizeof (x) == sizeof (double) ? __builtin_signbit (x) : \
26267     __builtin_signbitf (x))
26268 #else
26269 # error "signbit should be three compiler built-ins"
26270 #endif
26271 #include <string.h>
26272
26273 /* Global variables.
26274    Needed because GCC 4 constant-folds __builtin_signbitl (literal)
26275    but cannot constant-fold            __builtin_signbitl (variable).  */
26276 float vf;
26277 double vd;
26278 long double vl;
26279 int main ()
26280 {
26281 /* HP cc on HP-UX 10.20 has a bug with the constant expression -0.0.
26282    So we use -p0f and -p0d instead.  */
26283 float p0f = 0.0f;
26284 float m0f = -p0f;
26285 double p0d = 0.0;
26286 double m0d = -p0d;
26287 /* On HP-UX 10.20, negating 0.0L does not yield -0.0L.
26288    So we use another constant expression instead.
26289    But that expression does not work on other platforms, such as when
26290    cross-compiling to PowerPC on Mac OS X 10.5.  */
26291 long double p0l = 0.0L;
26292 #if defined __hpux || defined __sgi
26293 long double m0l = -LDBL_MIN * LDBL_MIN;
26294 #else
26295 long double m0l = -p0l;
26296 #endif
26297   int result = 0;
26298   if (signbit (vf)) /* link check */
26299     vf++;
26300   {
26301     float plus_inf = 1.0f / p0f;
26302     float minus_inf = -1.0f / p0f;
26303     if (!(!signbit (255.0f)
26304           && signbit (-255.0f)
26305           && !signbit (p0f)
26306           && (memcmp (&m0f, &p0f, sizeof (float)) == 0 || signbit (m0f))
26307           && !signbit (plus_inf)
26308           && signbit (minus_inf)))
26309       result |= 1;
26310   }
26311   if (signbit (vd)) /* link check */
26312     vd++;
26313   {
26314     double plus_inf = 1.0 / p0d;
26315     double minus_inf = -1.0 / p0d;
26316     if (!(!signbit (255.0)
26317           && signbit (-255.0)
26318           && !signbit (p0d)
26319           && (memcmp (&m0d, &p0d, sizeof (double)) == 0 || signbit (m0d))
26320           && !signbit (plus_inf)
26321           && signbit (minus_inf)))
26322       result |= 2;
26323   }
26324   if (signbit (vl)) /* link check */
26325     vl++;
26326   {
26327     long double plus_inf = 1.0L / p0l;
26328     long double minus_inf = -1.0L / p0l;
26329     if (signbit (255.0L))
26330       result |= 4;
26331     if (!signbit (-255.0L))
26332       result |= 4;
26333     if (signbit (p0l))
26334       result |= 8;
26335     if (!(memcmp (&m0l, &p0l, sizeof (long double)) == 0 || signbit (m0l)))
26336       result |= 16;
26337     if (signbit (plus_inf))
26338       result |= 32;
26339     if (!signbit (minus_inf))
26340       result |= 64;
26341   }
26342   return result;
26343 }
26344
26345
26346 _ACEOF
26347 if ac_fn_c_try_run "$LINENO"
26348 then :
26349   gl_cv_func_signbit_gcc=yes
26350 else
26351   gl_cv_func_signbit_gcc=no
26352 fi
26353 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26354   conftest.$ac_objext conftest.beam conftest.$ac_ext
26355 fi
26356
26357
26358 fi
26359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_signbit_gcc" >&5
26360 printf "%s\n" "$gl_cv_func_signbit_gcc" >&6; }
26361       case "$gl_cv_func_signbit_gcc" in
26362     *yes)
26363       REPLACE_SIGNBIT_USING_GCC=1
26364       ;;
26365     *)
26366       case "$gl_cv_func_signbit" in
26367         *yes) ;;
26368         *)
26369                     REPLACE_SIGNBIT=1
26370
26371
26372   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'float'" >&5
26373 printf %s "checking where to find the sign bit in a 'float'... " >&6; }
26374 if test ${gl_cv_cc_float_signbit+y}
26375 then :
26376   printf %s "(cached) " >&6
26377 else
26378
26379       if test "$cross_compiling" = yes
26380 then :
26381
26382                               gl_cv_cc_float_signbit="unknown"
26383
26384 else
26385   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26386 /* end confdefs.h.  */
26387
26388 #include <stddef.h>
26389 #include <stdio.h>
26390 #define NWORDS \
26391   ((sizeof (float) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
26392 typedef union { float value; unsigned int word[NWORDS]; }
26393         memory_float;
26394 static memory_float plus = { 1.0f };
26395 static memory_float minus = { -1.0f };
26396 int main ()
26397 {
26398   size_t j, k, i;
26399   unsigned int m;
26400   FILE *fp = fopen ("conftest.out", "w");
26401   if (fp == NULL)
26402     return 1;
26403   /* Find the different bit.  */
26404   k = 0; m = 0;
26405   for (j = 0; j < NWORDS; j++)
26406     {
26407       unsigned int x = plus.word[j] ^ minus.word[j];
26408       if ((x & (x - 1)) || (x && m))
26409         {
26410           /* More than one bit difference.  */
26411           fprintf (fp, "unknown");
26412           fclose (fp);
26413           return 2;
26414         }
26415       if (x)
26416         {
26417           k = j;
26418           m = x;
26419         }
26420     }
26421   if (m == 0)
26422     {
26423       /* No difference.  */
26424       fprintf (fp, "unknown");
26425       fclose (fp);
26426       return 3;
26427     }
26428   /* Now m = plus.word[k] ^ ~minus.word[k].  */
26429   if (plus.word[k] & ~minus.word[k])
26430     {
26431       /* Oh? The sign bit is set in the positive and cleared in the negative
26432          numbers?  */
26433       fprintf (fp, "unknown");
26434       fclose (fp);
26435       return 4;
26436     }
26437   for (i = 0; ; i++)
26438     if ((m >> i) & 1)
26439       break;
26440   fprintf (fp, "word %d bit %d", (int) k, (int) i);
26441   if (fclose (fp) != 0)
26442     return 5;
26443   return 0;
26444 }
26445
26446 _ACEOF
26447 if ac_fn_c_try_run "$LINENO"
26448 then :
26449   gl_cv_cc_float_signbit=`cat conftest.out`
26450 else
26451   gl_cv_cc_float_signbit="unknown"
26452 fi
26453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26454   conftest.$ac_objext conftest.beam conftest.$ac_ext
26455 fi
26456
26457       rm -f conftest.out
26458
26459 fi
26460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_float_signbit" >&5
26461 printf "%s\n" "$gl_cv_cc_float_signbit" >&6; }
26462   case "$gl_cv_cc_float_signbit" in
26463     word*bit*)
26464       word=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
26465       bit=`echo "$gl_cv_cc_float_signbit" | sed -e 's/word.*bit //'`
26466
26467 printf "%s\n" "#define FLT_SIGNBIT_WORD $word" >>confdefs.h
26468
26469
26470 printf "%s\n" "#define FLT_SIGNBIT_BIT $bit" >>confdefs.h
26471
26472       ;;
26473   esac
26474
26475
26476
26477
26478   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'double'" >&5
26479 printf %s "checking where to find the sign bit in a 'double'... " >&6; }
26480 if test ${gl_cv_cc_double_signbit+y}
26481 then :
26482   printf %s "(cached) " >&6
26483 else
26484
26485       if test "$cross_compiling" = yes
26486 then :
26487
26488                               gl_cv_cc_double_signbit="unknown"
26489
26490 else
26491   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26492 /* end confdefs.h.  */
26493
26494 #include <stddef.h>
26495 #include <stdio.h>
26496 #define NWORDS \
26497   ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
26498 typedef union { double value; unsigned int word[NWORDS]; }
26499         memory_float;
26500 static memory_float plus = { 1.0 };
26501 static memory_float minus = { -1.0 };
26502 int main ()
26503 {
26504   size_t j, k, i;
26505   unsigned int m;
26506   FILE *fp = fopen ("conftest.out", "w");
26507   if (fp == NULL)
26508     return 1;
26509   /* Find the different bit.  */
26510   k = 0; m = 0;
26511   for (j = 0; j < NWORDS; j++)
26512     {
26513       unsigned int x = plus.word[j] ^ minus.word[j];
26514       if ((x & (x - 1)) || (x && m))
26515         {
26516           /* More than one bit difference.  */
26517           fprintf (fp, "unknown");
26518           fclose (fp);
26519           return 2;
26520         }
26521       if (x)
26522         {
26523           k = j;
26524           m = x;
26525         }
26526     }
26527   if (m == 0)
26528     {
26529       /* No difference.  */
26530       fprintf (fp, "unknown");
26531       fclose (fp);
26532       return 3;
26533     }
26534   /* Now m = plus.word[k] ^ ~minus.word[k].  */
26535   if (plus.word[k] & ~minus.word[k])
26536     {
26537       /* Oh? The sign bit is set in the positive and cleared in the negative
26538          numbers?  */
26539       fprintf (fp, "unknown");
26540       fclose (fp);
26541       return 4;
26542     }
26543   for (i = 0; ; i++)
26544     if ((m >> i) & 1)
26545       break;
26546   fprintf (fp, "word %d bit %d", (int) k, (int) i);
26547   if (fclose (fp) != 0)
26548     return 5;
26549   return 0;
26550 }
26551
26552 _ACEOF
26553 if ac_fn_c_try_run "$LINENO"
26554 then :
26555   gl_cv_cc_double_signbit=`cat conftest.out`
26556 else
26557   gl_cv_cc_double_signbit="unknown"
26558 fi
26559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26560   conftest.$ac_objext conftest.beam conftest.$ac_ext
26561 fi
26562
26563       rm -f conftest.out
26564
26565 fi
26566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_signbit" >&5
26567 printf "%s\n" "$gl_cv_cc_double_signbit" >&6; }
26568   case "$gl_cv_cc_double_signbit" in
26569     word*bit*)
26570       word=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
26571       bit=`echo "$gl_cv_cc_double_signbit" | sed -e 's/word.*bit //'`
26572
26573 printf "%s\n" "#define DBL_SIGNBIT_WORD $word" >>confdefs.h
26574
26575
26576 printf "%s\n" "#define DBL_SIGNBIT_BIT $bit" >>confdefs.h
26577
26578       ;;
26579   esac
26580
26581
26582
26583
26584   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the sign bit in a 'long double'" >&5
26585 printf %s "checking where to find the sign bit in a 'long double'... " >&6; }
26586 if test ${gl_cv_cc_long_double_signbit+y}
26587 then :
26588   printf %s "(cached) " >&6
26589 else
26590
26591       if test "$cross_compiling" = yes
26592 then :
26593
26594                               gl_cv_cc_long_double_signbit="unknown"
26595
26596 else
26597   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26598 /* end confdefs.h.  */
26599
26600 #include <stddef.h>
26601 #include <stdio.h>
26602 #define NWORDS \
26603   ((sizeof (long double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
26604 typedef union { long double value; unsigned int word[NWORDS]; }
26605         memory_float;
26606 static memory_float plus = { 1.0L };
26607 static memory_float minus = { -1.0L };
26608 int main ()
26609 {
26610   size_t j, k, i;
26611   unsigned int m;
26612   FILE *fp = fopen ("conftest.out", "w");
26613   if (fp == NULL)
26614     return 1;
26615   /* Find the different bit.  */
26616   k = 0; m = 0;
26617   for (j = 0; j < NWORDS; j++)
26618     {
26619       unsigned int x = plus.word[j] ^ minus.word[j];
26620       if ((x & (x - 1)) || (x && m))
26621         {
26622           /* More than one bit difference.  */
26623           fprintf (fp, "unknown");
26624           fclose (fp);
26625           return 2;
26626         }
26627       if (x)
26628         {
26629           k = j;
26630           m = x;
26631         }
26632     }
26633   if (m == 0)
26634     {
26635       /* No difference.  */
26636       fprintf (fp, "unknown");
26637       fclose (fp);
26638       return 3;
26639     }
26640   /* Now m = plus.word[k] ^ ~minus.word[k].  */
26641   if (plus.word[k] & ~minus.word[k])
26642     {
26643       /* Oh? The sign bit is set in the positive and cleared in the negative
26644          numbers?  */
26645       fprintf (fp, "unknown");
26646       fclose (fp);
26647       return 4;
26648     }
26649   for (i = 0; ; i++)
26650     if ((m >> i) & 1)
26651       break;
26652   fprintf (fp, "word %d bit %d", (int) k, (int) i);
26653   if (fclose (fp) != 0)
26654     return 5;
26655   return 0;
26656 }
26657
26658 _ACEOF
26659 if ac_fn_c_try_run "$LINENO"
26660 then :
26661   gl_cv_cc_long_double_signbit=`cat conftest.out`
26662 else
26663   gl_cv_cc_long_double_signbit="unknown"
26664 fi
26665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26666   conftest.$ac_objext conftest.beam conftest.$ac_ext
26667 fi
26668
26669       rm -f conftest.out
26670
26671 fi
26672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_long_double_signbit" >&5
26673 printf "%s\n" "$gl_cv_cc_long_double_signbit" >&6; }
26674   case "$gl_cv_cc_long_double_signbit" in
26675     word*bit*)
26676       word=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word //' -e 's/ bit.*//'`
26677       bit=`echo "$gl_cv_cc_long_double_signbit" | sed -e 's/word.*bit //'`
26678
26679 printf "%s\n" "#define LDBL_SIGNBIT_WORD $word" >>confdefs.h
26680
26681
26682 printf "%s\n" "#define LDBL_SIGNBIT_BIT $bit" >>confdefs.h
26683
26684       ;;
26685   esac
26686
26687
26688           if test "$gl_cv_cc_float_signbit" = unknown; then
26689                         ac_fn_c_check_decl "$LINENO" "copysignf" "ac_cv_have_decl_copysignf" "#include <math.h>
26690 "
26691 if test "x$ac_cv_have_decl_copysignf" = xyes
26692 then :
26693   ac_have_decl=1
26694 else
26695   ac_have_decl=0
26696 fi
26697
26698 printf "%s\n" "#define HAVE_DECL_COPYSIGNF $ac_have_decl" >>confdefs.h
26699
26700             if test "$ac_cv_have_decl_copysignf" = yes; then
26701                             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether copysignf can be used without linking with libm" >&5
26702 printf %s "checking whether copysignf can be used without linking with libm... " >&6; }
26703 if test ${gl_cv_func_copysignf_no_libm+y}
26704 then :
26705   printf %s "(cached) " >&6
26706 else
26707
26708                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26709 /* end confdefs.h.  */
26710 #include <math.h>
26711                          float x, y;
26712 int
26713 main (void)
26714 {
26715 return copysignf (x, y) < 0;
26716   ;
26717   return 0;
26718 }
26719 _ACEOF
26720 if ac_fn_c_try_link "$LINENO"
26721 then :
26722   gl_cv_func_copysignf_no_libm=yes
26723 else
26724   gl_cv_func_copysignf_no_libm=no
26725 fi
26726 rm -f core conftest.err conftest.$ac_objext \
26727     conftest$ac_exeext conftest.$ac_ext
26728
26729 fi
26730 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignf_no_libm" >&5
26731 printf "%s\n" "$gl_cv_func_copysignf_no_libm" >&6; }
26732               if test $gl_cv_func_copysignf_no_libm = yes; then
26733
26734 printf "%s\n" "#define HAVE_COPYSIGNF_IN_LIBC 1" >>confdefs.h
26735
26736               fi
26737             fi
26738           fi
26739           if test "$gl_cv_cc_double_signbit" = unknown; then
26740                         ac_fn_c_check_decl "$LINENO" "copysign" "ac_cv_have_decl_copysign" "#include <math.h>
26741 "
26742 if test "x$ac_cv_have_decl_copysign" = xyes
26743 then :
26744   ac_have_decl=1
26745 else
26746   ac_have_decl=0
26747 fi
26748
26749 printf "%s\n" "#define HAVE_DECL_COPYSIGN $ac_have_decl" >>confdefs.h
26750
26751             if test "$ac_cv_have_decl_copysign" = yes; then
26752                             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether copysign can be used without linking with libm" >&5
26753 printf %s "checking whether copysign can be used without linking with libm... " >&6; }
26754 if test ${gl_cv_func_copysign_no_libm+y}
26755 then :
26756   printf %s "(cached) " >&6
26757 else
26758
26759                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26760 /* end confdefs.h.  */
26761 #include <math.h>
26762                          double x, y;
26763 int
26764 main (void)
26765 {
26766 return copysign (x, y) < 0;
26767   ;
26768   return 0;
26769 }
26770 _ACEOF
26771 if ac_fn_c_try_link "$LINENO"
26772 then :
26773   gl_cv_func_copysign_no_libm=yes
26774 else
26775   gl_cv_func_copysign_no_libm=no
26776 fi
26777 rm -f core conftest.err conftest.$ac_objext \
26778     conftest$ac_exeext conftest.$ac_ext
26779
26780 fi
26781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysign_no_libm" >&5
26782 printf "%s\n" "$gl_cv_func_copysign_no_libm" >&6; }
26783               if test $gl_cv_func_copysign_no_libm = yes; then
26784
26785 printf "%s\n" "#define HAVE_COPYSIGN_IN_LIBC 1" >>confdefs.h
26786
26787               fi
26788             fi
26789           fi
26790           if test "$gl_cv_cc_long_double_signbit" = unknown; then
26791                         ac_fn_c_check_decl "$LINENO" "copysignl" "ac_cv_have_decl_copysignl" "#include <math.h>
26792 "
26793 if test "x$ac_cv_have_decl_copysignl" = xyes
26794 then :
26795   ac_have_decl=1
26796 else
26797   ac_have_decl=0
26798 fi
26799
26800 printf "%s\n" "#define HAVE_DECL_COPYSIGNL $ac_have_decl" >>confdefs.h
26801
26802             if test "$ac_cv_have_decl_copysignl" = yes; then
26803                             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether copysignl can be used without linking with libm" >&5
26804 printf %s "checking whether copysignl can be used without linking with libm... " >&6; }
26805 if test ${gl_cv_func_copysignl_no_libm+y}
26806 then :
26807   printf %s "(cached) " >&6
26808 else
26809
26810                   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26811 /* end confdefs.h.  */
26812 #include <math.h>
26813                          long double x, y;
26814 int
26815 main (void)
26816 {
26817 return copysignl (x, y) < 0;
26818   ;
26819   return 0;
26820 }
26821 _ACEOF
26822 if ac_fn_c_try_link "$LINENO"
26823 then :
26824   gl_cv_func_copysignl_no_libm=yes
26825 else
26826   gl_cv_func_copysignl_no_libm=no
26827 fi
26828 rm -f core conftest.err conftest.$ac_objext \
26829     conftest$ac_exeext conftest.$ac_ext
26830
26831 fi
26832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_copysignl_no_libm" >&5
26833 printf "%s\n" "$gl_cv_func_copysignl_no_libm" >&6; }
26834               if test $gl_cv_func_copysignl_no_libm = yes; then
26835
26836 printf "%s\n" "#define HAVE_COPYSIGNL_IN_LIBC 1" >>confdefs.h
26837
26838               fi
26839             fi
26840           fi
26841           ;;
26842       esac
26843       ;;
26844   esac
26845
26846   if test $REPLACE_SIGNBIT = 1; then
26847
26848
26849
26850
26851
26852
26853
26854
26855   gl_LIBOBJS="$gl_LIBOBJS signbitf.$ac_objext"
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865   gl_LIBOBJS="$gl_LIBOBJS signbitd.$ac_objext"
26866
26867
26868
26869
26870
26871
26872
26873
26874
26875   gl_LIBOBJS="$gl_LIBOBJS signbitl.$ac_objext"
26876
26877   fi
26878
26879
26880
26881
26882
26883           GNULIB_SIGNBIT=1
26884
26885
26886
26887
26888
26889 printf "%s\n" "#define GNULIB_TEST_SIGNBIT 1" >>confdefs.h
26890
26891
26892
26893
26894
26895
26896   if test $gl_cv_type_sigset_t = yes; then
26897     ac_fn_c_check_func "$LINENO" "sigprocmask" "ac_cv_func_sigprocmask"
26898 if test "x$ac_cv_func_sigprocmask" = xyes
26899 then :
26900   gl_cv_func_sigprocmask=1
26901 fi
26902
26903   fi
26904   if test -z "$gl_cv_func_sigprocmask"; then
26905     HAVE_POSIX_SIGNALBLOCKING=0
26906   fi
26907
26908   if test $HAVE_POSIX_SIGNALBLOCKING = 0; then
26909
26910
26911
26912
26913
26914
26915
26916
26917   gl_LIBOBJS="$gl_LIBOBJS sigprocmask.$ac_objext"
26918
26919     :
26920   fi
26921
26922
26923
26924
26925
26926           GNULIB_SIGPROCMASK=1
26927
26928
26929
26930
26931
26932 printf "%s\n" "#define GNULIB_TEST_SIGPROCMASK 1" >>confdefs.h
26933
26934
26935
26936
26937   ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
26938 if test "x$ac_cv_header_stdint_h" = xyes
26939 then :
26940   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
26941
26942 fi
26943
26944     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
26945 printf %s "checking for SIZE_MAX... " >&6; }
26946 if test ${gl_cv_size_max+y}
26947 then :
26948   printf %s "(cached) " >&6
26949 else
26950
26951     gl_cv_size_max=
26952     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26953 /* end confdefs.h.  */
26954
26955 #include <limits.h>
26956 #if HAVE_STDINT_H
26957 #include <stdint.h>
26958 #endif
26959 #ifdef SIZE_MAX
26960 Found it
26961 #endif
26962
26963 _ACEOF
26964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26965   $EGREP "Found it" >/dev/null 2>&1
26966 then :
26967   gl_cv_size_max=yes
26968 fi
26969 rm -rf conftest*
26970
26971     if test -z "$gl_cv_size_max"; then
26972                         if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1"        "#include <stddef.h>
26973 #include <limits.h>"
26974 then :
26975
26976 else
26977   size_t_bits_minus_1=
26978 fi
26979
26980       if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint"        "#include <stddef.h>"
26981 then :
26982
26983 else
26984   fits_in_uint=
26985 fi
26986
26987       if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
26988         if test $fits_in_uint = 1; then
26989                               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26990 /* end confdefs.h.  */
26991 #include <stddef.h>
26992                  extern size_t foo;
26993                  extern unsigned long foo;
26994
26995 int
26996 main (void)
26997 {
26998
26999   ;
27000   return 0;
27001 }
27002 _ACEOF
27003 if ac_fn_c_try_compile "$LINENO"
27004 then :
27005   fits_in_uint=0
27006 fi
27007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27008         fi
27009                                 if test $fits_in_uint = 1; then
27010           gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
27011         else
27012           gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
27013         fi
27014       else
27015                 gl_cv_size_max='((size_t)~(size_t)0)'
27016       fi
27017     fi
27018
27019 fi
27020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
27021 printf "%s\n" "$gl_cv_size_max" >&6; }
27022   if test "$gl_cv_size_max" != yes; then
27023
27024 printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h
27025
27026   fi
27027
27028
27029
27030   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
27031 printf %s "checking for ssize_t... " >&6; }
27032 if test ${gt_cv_ssize_t+y}
27033 then :
27034   printf %s "(cached) " >&6
27035 else
27036   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27037 /* end confdefs.h.  */
27038 #include <sys/types.h>
27039 int
27040 main (void)
27041 {
27042 int x = sizeof (ssize_t *) + sizeof (ssize_t);
27043             return !x;
27044   ;
27045   return 0;
27046 }
27047 _ACEOF
27048 if ac_fn_c_try_compile "$LINENO"
27049 then :
27050   gt_cv_ssize_t=yes
27051 else
27052   gt_cv_ssize_t=no
27053 fi
27054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27055 fi
27056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_ssize_t" >&5
27057 printf "%s\n" "$gt_cv_ssize_t" >&6; }
27058   if test $gt_cv_ssize_t = no; then
27059
27060 printf "%s\n" "#define ssize_t int" >>confdefs.h
27061
27062   fi
27063
27064
27065
27066
27067
27068   case "$host_os" in
27069     mingw*)
27070                   REPLACE_STAT=1
27071       ;;
27072     *)
27073                         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
27074 printf %s "checking whether stat handles trailing slashes on files... " >&6; }
27075 if test ${gl_cv_func_stat_file_slash+y}
27076 then :
27077   printf %s "(cached) " >&6
27078 else
27079   touch conftest.tmp
27080          # Assume that if we have lstat, we can also check symlinks.
27081          if test $ac_cv_func_lstat = yes; then
27082            ln -s conftest.tmp conftest.lnk
27083          fi
27084          if test "$cross_compiling" = yes
27085 then :
27086   case "$host_os" in
27087                                # Guess yes on Linux systems.
27088               linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
27089                                # Guess yes on glibc systems.
27090               *-gnu* | gnu*)   gl_cv_func_stat_file_slash="guessing yes" ;;
27091                                # If we don't know, assume the worst.
27092               *)               gl_cv_func_stat_file_slash="guessing no" ;;
27093             esac
27094
27095 else
27096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27097 /* end confdefs.h.  */
27098 #include <sys/stat.h>
27099
27100 int
27101 main (void)
27102 {
27103 int result = 0;
27104                struct stat st;
27105                if (!stat ("conftest.tmp/", &st))
27106                  result |= 1;
27107 #if HAVE_LSTAT
27108                if (!stat ("conftest.lnk/", &st))
27109                  result |= 2;
27110 #endif
27111                return result;
27112
27113   ;
27114   return 0;
27115 }
27116 _ACEOF
27117 if ac_fn_c_try_run "$LINENO"
27118 then :
27119   gl_cv_func_stat_file_slash=yes
27120 else
27121   gl_cv_func_stat_file_slash=no
27122 fi
27123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27124   conftest.$ac_objext conftest.beam conftest.$ac_ext
27125 fi
27126
27127          rm -f conftest.tmp conftest.lnk
27128 fi
27129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
27130 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; }
27131       case $gl_cv_func_stat_file_slash in
27132         *no)
27133           REPLACE_STAT=1
27134
27135 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
27136 ;;
27137       esac
27138       case $host_os in
27139                 solaris*)
27140           REPLACE_FSTAT=1 ;;
27141       esac
27142       ;;
27143   esac
27144
27145   if test $REPLACE_STAT = 1; then
27146
27147
27148
27149
27150
27151
27152
27153
27154   gl_LIBOBJS="$gl_LIBOBJS stat.$ac_objext"
27155
27156     case "$host_os" in
27157       mingw*)
27158
27159
27160
27161
27162
27163
27164
27165
27166   gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
27167
27168         ;;
27169     esac
27170
27171
27172   :
27173
27174   fi
27175
27176
27177
27178
27179
27180           GNULIB_STAT=1
27181
27182
27183
27184
27185
27186 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h
27187
27188
27189
27190
27191
27192
27193
27194   ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.tv_nsec" "ac_cv_member_struct_stat_st_atim_tv_nsec" "#include <sys/types.h>
27195      #include <sys/stat.h>
27196 "
27197 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
27198 then :
27199
27200 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
27201
27202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
27203 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
27204 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
27205 then :
27206   printf %s "(cached) " >&6
27207 else
27208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27209 /* end confdefs.h.  */
27210
27211             #include <sys/types.h>
27212             #include <sys/stat.h>
27213             #if HAVE_SYS_TIME_H
27214             # include <sys/time.h>
27215             #endif
27216             #include <time.h>
27217             struct timespec ts;
27218             struct stat st;
27219
27220 int
27221 main (void)
27222 {
27223
27224             st.st_atim = ts;
27225
27226   ;
27227   return 0;
27228 }
27229 _ACEOF
27230 if ac_fn_c_try_compile "$LINENO"
27231 then :
27232   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
27233 else
27234   ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
27235 fi
27236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27237 fi
27238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
27239 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
27240      if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
27241
27242 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
27243
27244      fi
27245 else
27246   ac_fn_c_check_member "$LINENO" "struct stat" "st_atimespec.tv_nsec" "ac_cv_member_struct_stat_st_atimespec_tv_nsec" "#include <sys/types.h>
27247         #include <sys/stat.h>
27248 "
27249 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
27250 then :
27251
27252 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
27253
27254
27255 else
27256   ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
27257            #include <sys/stat.h>
27258 "
27259 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
27260 then :
27261
27262 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
27263
27264
27265 else
27266   ac_fn_c_check_member "$LINENO" "struct stat" "st_atim.st__tim.tv_nsec" "ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" "#include <sys/types.h>
27267               #include <sys/stat.h>
27268 "
27269 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
27270 then :
27271
27272 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
27273
27274
27275 fi
27276
27277 fi
27278
27279 fi
27280
27281 fi
27282
27283
27284
27285
27286
27287   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimespec.tv_nsec" "ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" "#include <sys/types.h>
27288      #include <sys/stat.h>
27289 "
27290 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
27291 then :
27292
27293 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
27294
27295
27296 else
27297   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
27298         #include <sys/stat.h>
27299 "
27300 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
27301 then :
27302
27303 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
27304
27305
27306 else
27307   ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtim.tv_nsec" "ac_cv_member_struct_stat_st_birthtim_tv_nsec" "#include <sys/types.h>
27308           #include <sys/stat.h>
27309 "
27310 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
27311 then :
27312
27313 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h
27314
27315
27316 fi
27317
27318 fi
27319
27320 fi
27321
27322
27323
27324
27325 printf "%s\n" "#define GNULIB_STATAT 1" >>confdefs.h
27326
27327
27328
27329
27330   # Define two additional variables used in the Makefile substitution.
27331
27332   if test "$ac_cv_header_stdbool_h" = yes; then
27333     STDBOOL_H=''
27334   else
27335     STDBOOL_H='stdbool.h'
27336   fi
27337
27338    if test -n "$STDBOOL_H"; then
27339   GL_GENERATE_STDBOOL_H_TRUE=
27340   GL_GENERATE_STDBOOL_H_FALSE='#'
27341 else
27342   GL_GENERATE_STDBOOL_H_TRUE='#'
27343   GL_GENERATE_STDBOOL_H_FALSE=
27344 fi
27345
27346
27347   if test "$ac_cv_type__Bool" = yes; then
27348     HAVE__BOOL=1
27349   else
27350     HAVE__BOOL=0
27351   fi
27352
27353
27354
27355
27356
27357   STDDEF_H=
27358
27359       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
27360 printf %s "checking for good max_align_t... " >&6; }
27361 if test ${gl_cv_type_max_align_t+y}
27362 then :
27363   printf %s "(cached) " >&6
27364 else
27365   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27366 /* end confdefs.h.  */
27367 #include <stddef.h>
27368             unsigned int s = sizeof (max_align_t);
27369             #if defined __GNUC__ || defined __IBM__ALIGNOF__
27370             int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
27371             int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
27372             #endif
27373
27374 int
27375 main (void)
27376 {
27377
27378   ;
27379   return 0;
27380 }
27381 _ACEOF
27382 if ac_fn_c_try_compile "$LINENO"
27383 then :
27384   gl_cv_type_max_align_t=yes
27385 else
27386   gl_cv_type_max_align_t=no
27387 fi
27388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27389
27390 fi
27391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
27392 printf "%s\n" "$gl_cv_type_max_align_t" >&6; }
27393   if test $gl_cv_type_max_align_t = no; then
27394     HAVE_MAX_ALIGN_T=0
27395     STDDEF_H=stddef.h
27396   fi
27397
27398   if test $gt_cv_c_wchar_t = no; then
27399     HAVE_WCHAR_T=0
27400     STDDEF_H=stddef.h
27401   fi
27402
27403   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
27404 printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; }
27405 if test ${gl_cv_decl_null_works+y}
27406 then :
27407   printf %s "(cached) " >&6
27408 else
27409   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27410 /* end confdefs.h.  */
27411 #include <stddef.h>
27412       int test[2 * (sizeof NULL == sizeof (void *)) -1];
27413
27414 int
27415 main (void)
27416 {
27417
27418   ;
27419   return 0;
27420 }
27421 _ACEOF
27422 if ac_fn_c_try_compile "$LINENO"
27423 then :
27424   gl_cv_decl_null_works=yes
27425 else
27426   gl_cv_decl_null_works=no
27427 fi
27428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27429 fi
27430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
27431 printf "%s\n" "$gl_cv_decl_null_works" >&6; }
27432   if test $gl_cv_decl_null_works = no; then
27433     REPLACE_NULL=1
27434     STDDEF_H=stddef.h
27435   fi
27436
27437
27438    if test -n "$STDDEF_H"; then
27439   GL_GENERATE_STDDEF_H_TRUE=
27440   GL_GENERATE_STDDEF_H_FALSE='#'
27441 else
27442   GL_GENERATE_STDDEF_H_TRUE='#'
27443   GL_GENERATE_STDDEF_H_FALSE=
27444 fi
27445
27446   if test -n "$STDDEF_H"; then
27447
27448
27449
27450
27451
27452
27453
27454
27455      if test $gl_cv_have_include_next = yes; then
27456        gl_cv_next_stddef_h='<'stddef.h'>'
27457      else
27458        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
27459 printf %s "checking absolute name of <stddef.h>... " >&6; }
27460 if test ${gl_cv_next_stddef_h+y}
27461 then :
27462   printf %s "(cached) " >&6
27463 else
27464
27465
27466
27467   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27468 /* end confdefs.h.  */
27469 #include <stddef.h>
27470 _ACEOF
27471                 case "$host_os" in
27472     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27473     *)    gl_absname_cpp="$ac_cpp" ;;
27474   esac
27475
27476   case "$host_os" in
27477     mingw*)
27478                                           gl_dirsep_regex='[/\\]'
27479       ;;
27480     *)
27481       gl_dirsep_regex='\/'
27482       ;;
27483   esac
27484       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27485   gl_header_literal_regex=`echo 'stddef.h' \
27486                            | sed -e "$gl_make_literal_regex_sed"`
27487   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27488       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27489       s|^/[^/]|//&|
27490       p
27491       q
27492     }'
27493
27494         gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27495   sed -n "$gl_absolute_header_sed"`
27496
27497            gl_header=$gl_cv_absolute_stddef_h
27498            gl_cv_next_stddef_h='"'$gl_header'"'
27499
27500
27501 fi
27502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
27503 printf "%s\n" "$gl_cv_next_stddef_h" >&6; }
27504      fi
27505      NEXT_STDDEF_H=$gl_cv_next_stddef_h
27506
27507      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27508        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27509        gl_next_as_first_directive='<'stddef.h'>'
27510      else
27511        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27512        gl_next_as_first_directive=$gl_cv_next_stddef_h
27513      fi
27514      NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
27515
27516
27517
27518
27519   fi
27520
27521
27522
27523
27524   printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
27525
27526
27527
27528
27529
27530
27531
27532
27533
27534
27535      if test $gl_cv_have_include_next = yes; then
27536        gl_cv_next_stdio_h='<'stdio.h'>'
27537      else
27538        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
27539 printf %s "checking absolute name of <stdio.h>... " >&6; }
27540 if test ${gl_cv_next_stdio_h+y}
27541 then :
27542   printf %s "(cached) " >&6
27543 else
27544
27545
27546
27547   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27548 /* end confdefs.h.  */
27549 #include <stdio.h>
27550 _ACEOF
27551                 case "$host_os" in
27552     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27553     *)    gl_absname_cpp="$ac_cpp" ;;
27554   esac
27555
27556   case "$host_os" in
27557     mingw*)
27558                                           gl_dirsep_regex='[/\\]'
27559       ;;
27560     *)
27561       gl_dirsep_regex='\/'
27562       ;;
27563   esac
27564       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27565   gl_header_literal_regex=`echo 'stdio.h' \
27566                            | sed -e "$gl_make_literal_regex_sed"`
27567   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27568       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27569       s|^/[^/]|//&|
27570       p
27571       q
27572     }'
27573
27574         gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27575   sed -n "$gl_absolute_header_sed"`
27576
27577            gl_header=$gl_cv_absolute_stdio_h
27578            gl_cv_next_stdio_h='"'$gl_header'"'
27579
27580
27581 fi
27582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
27583 printf "%s\n" "$gl_cv_next_stdio_h" >&6; }
27584      fi
27585      NEXT_STDIO_H=$gl_cv_next_stdio_h
27586
27587      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27588        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27589        gl_next_as_first_directive='<'stdio.h'>'
27590      else
27591        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27592        gl_next_as_first_directive=$gl_cv_next_stdio_h
27593      fi
27594      NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
27595
27596
27597
27598
27599
27600         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
27601 printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; }
27602 if test ${gl_cv_func_printf_attribute_flavor+y}
27603 then :
27604   printf %s "(cached) " >&6
27605 else
27606   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27607 /* end confdefs.h.  */
27608
27609        #define __STDC_FORMAT_MACROS 1
27610        #include <stdio.h>
27611        #include <inttypes.h>
27612        /* For non-mingw systems, compilation will trivially succeed.
27613           For mingw, compilation will succeed for older mingw (system
27614           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
27615        #if (defined _WIN32 && ! defined __CYGWIN__) && \
27616          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
27617        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
27618        #endif
27619
27620 int
27621 main (void)
27622 {
27623
27624   ;
27625   return 0;
27626 }
27627 _ACEOF
27628 if ac_fn_c_try_compile "$LINENO"
27629 then :
27630   gl_cv_func_printf_attribute_flavor=system
27631 else
27632   gl_cv_func_printf_attribute_flavor=gnu
27633 fi
27634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27635 fi
27636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
27637 printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; }
27638   if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
27639
27640 printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
27641
27642   fi
27643
27644       GNULIB_FSCANF=1
27645
27646
27647 printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h
27648
27649
27650   GNULIB_SCANF=1
27651
27652
27653 printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h
27654
27655
27656   GNULIB_FGETC=1
27657   GNULIB_GETC=1
27658   GNULIB_GETCHAR=1
27659   GNULIB_FGETS=1
27660   GNULIB_FREAD=1
27661
27662
27663       GNULIB_FPRINTF=1
27664   GNULIB_PRINTF=1
27665   GNULIB_VFPRINTF=1
27666   GNULIB_VPRINTF=1
27667   GNULIB_FPUTC=1
27668   GNULIB_PUTC=1
27669   GNULIB_PUTCHAR=1
27670   GNULIB_FPUTS=1
27671   GNULIB_PUTS=1
27672   GNULIB_FWRITE=1
27673
27674
27675
27676
27677
27678
27679
27680
27681
27682
27683
27684
27685
27686
27687
27688      if test $gl_cv_have_include_next = yes; then
27689        gl_cv_next_stdlib_h='<'stdlib.h'>'
27690      else
27691        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
27692 printf %s "checking absolute name of <stdlib.h>... " >&6; }
27693 if test ${gl_cv_next_stdlib_h+y}
27694 then :
27695   printf %s "(cached) " >&6
27696 else
27697
27698
27699
27700   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27701 /* end confdefs.h.  */
27702 #include <stdlib.h>
27703 _ACEOF
27704                 case "$host_os" in
27705     aix*) gl_absname_cpp="$ac_cpp -C" ;;
27706     *)    gl_absname_cpp="$ac_cpp" ;;
27707   esac
27708
27709   case "$host_os" in
27710     mingw*)
27711                                           gl_dirsep_regex='[/\\]'
27712       ;;
27713     *)
27714       gl_dirsep_regex='\/'
27715       ;;
27716   esac
27717       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
27718   gl_header_literal_regex=`echo 'stdlib.h' \
27719                            | sed -e "$gl_make_literal_regex_sed"`
27720   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
27721       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
27722       s|^/[^/]|//&|
27723       p
27724       q
27725     }'
27726
27727         gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
27728   sed -n "$gl_absolute_header_sed"`
27729
27730            gl_header=$gl_cv_absolute_stdlib_h
27731            gl_cv_next_stdlib_h='"'$gl_header'"'
27732
27733
27734 fi
27735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
27736 printf "%s\n" "$gl_cv_next_stdlib_h" >&6; }
27737      fi
27738      NEXT_STDLIB_H=$gl_cv_next_stdlib_h
27739
27740      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
27741        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
27742        gl_next_as_first_directive='<'stdlib.h'>'
27743      else
27744        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
27745        gl_next_as_first_directive=$gl_cv_next_stdlib_h
27746      fi
27747      NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
27748
27749
27750
27751
27752
27753
27754
27755
27756
27757   case "$host_os" in
27758     cygwin*)
27759                         STDNORETURN_H='stdnoreturn.h'
27760       ;;
27761     *)
27762       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working stdnoreturn.h" >&5
27763 printf %s "checking for working stdnoreturn.h... " >&6; }
27764 if test ${gl_cv_header_working_stdnoreturn_h+y}
27765 then :
27766   printf %s "(cached) " >&6
27767 else
27768   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27769 /* end confdefs.h.  */
27770 #include <stdlib.h>
27771                 #include <stdnoreturn.h>
27772                 /* Do not check for 'noreturn' after the return type.
27773                    C11 allows it, but it's rarely done that way
27774                    and circa-2012 bleeding-edge GCC rejects it when given
27775                    -Werror=old-style-declaration.  */
27776                 noreturn void foo1 (void) { exit (0); }
27777                 _Noreturn void foo2 (void) { exit (0); }
27778                 int testit (int argc, char **argv)
27779                 {
27780                   if (argc & 1)
27781                     return 0;
27782                   (argv[0][0] ? foo1 : foo2) ();
27783                 }
27784
27785 int
27786 main (void)
27787 {
27788
27789   ;
27790   return 0;
27791 }
27792 _ACEOF
27793 if ac_fn_c_try_compile "$LINENO"
27794 then :
27795   gl_cv_header_working_stdnoreturn_h=yes
27796 else
27797   gl_cv_header_working_stdnoreturn_h=no
27798 fi
27799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27800 fi
27801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdnoreturn_h" >&5
27802 printf "%s\n" "$gl_cv_header_working_stdnoreturn_h" >&6; }
27803       if test $gl_cv_header_working_stdnoreturn_h = yes; then
27804         STDNORETURN_H=''
27805       else
27806         STDNORETURN_H='stdnoreturn.h'
27807       fi
27808       ;;
27809   esac
27810
27811    if test -n "$STDNORETURN_H"; then
27812   GL_GENERATE_STDNORETURN_H_TRUE=
27813   GL_GENERATE_STDNORETURN_H_FALSE='#'
27814 else
27815   GL_GENERATE_STDNORETURN_H_TRUE='#'
27816   GL_GENERATE_STDNORETURN_H_FALSE=
27817 fi
27818
27819
27820
27821
27822
27823
27824
27825
27826   ac_fn_c_check_func "$LINENO" "stpcpy" "ac_cv_func_stpcpy"
27827 if test "x$ac_cv_func_stpcpy" = xyes
27828 then :
27829   printf "%s\n" "#define HAVE_STPCPY 1" >>confdefs.h
27830
27831 fi
27832
27833   if test $ac_cv_func_stpcpy = no; then
27834     HAVE_STPCPY=0
27835   fi
27836
27837   if test $HAVE_STPCPY = 0; then
27838
27839
27840
27841
27842
27843
27844
27845
27846   gl_LIBOBJS="$gl_LIBOBJS stpcpy.$ac_objext"
27847
27848
27849   :
27850
27851   fi
27852
27853
27854
27855
27856
27857           GNULIB_STPCPY=1
27858
27859
27860
27861
27862
27863 printf "%s\n" "#define GNULIB_TEST_STPCPY 1" >>confdefs.h
27864
27865
27866
27867
27868
27869
27870
27871   if test $ac_cv_func_strdup = yes; then
27872     if test $gl_cv_func_malloc_posix != yes; then
27873       REPLACE_STRDUP=1
27874     fi
27875   fi
27876
27877   if test $ac_cv_have_decl_strdup = no; then
27878     HAVE_DECL_STRDUP=0
27879   fi
27880
27881   if test $ac_cv_func_strdup = no || test $REPLACE_STRDUP = 1; then
27882
27883
27884
27885
27886
27887
27888
27889
27890   gl_LIBOBJS="$gl_LIBOBJS strdup.$ac_objext"
27891
27892     :
27893   fi
27894
27895
27896
27897
27898
27899           GNULIB_STRDUP=1
27900
27901
27902
27903
27904
27905 printf "%s\n" "#define GNULIB_TEST_STRDUP 1" >>confdefs.h
27906
27907
27908
27909
27910
27911
27912
27913
27914
27915
27916   if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
27917     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
27918 printf %s "checking for working strerror function... " >&6; }
27919 if test ${gl_cv_func_working_strerror+y}
27920 then :
27921   printf %s "(cached) " >&6
27922 else
27923   if test "$cross_compiling" = yes
27924 then :
27925   case "$host_os" in
27926                           # Guess yes on glibc systems.
27927            *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
27928                           # If we don't know, assume the worst.
27929            *)             gl_cv_func_working_strerror="guessing no" ;;
27930          esac
27931
27932 else
27933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27934 /* end confdefs.h.  */
27935 #include <string.h>
27936
27937 int
27938 main (void)
27939 {
27940 if (!*strerror (-2)) return 1;
27941   ;
27942   return 0;
27943 }
27944 _ACEOF
27945 if ac_fn_c_try_run "$LINENO"
27946 then :
27947   gl_cv_func_working_strerror=yes
27948 else
27949   gl_cv_func_working_strerror=no
27950 fi
27951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27952   conftest.$ac_objext conftest.beam conftest.$ac_ext
27953 fi
27954
27955
27956 fi
27957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
27958 printf "%s\n" "$gl_cv_func_working_strerror" >&6; }
27959     case "$gl_cv_func_working_strerror" in
27960       *yes) ;;
27961       *)
27962                         REPLACE_STRERROR=1
27963         ;;
27964     esac
27965
27966                   case "$gl_cv_func_strerror_r_works" in
27967         *no) REPLACE_STRERROR=1 ;;
27968       esac
27969
27970   else
27971             REPLACE_STRERROR=1
27972   fi
27973
27974   if test $REPLACE_STRERROR = 1; then
27975
27976
27977
27978
27979
27980
27981
27982
27983   gl_LIBOBJS="$gl_LIBOBJS strerror.$ac_objext"
27984
27985   fi
27986
27987
27988 printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h
27989
27990
27991
27992
27993
27994
27995
27996           GNULIB_STRERROR=1
27997
27998
27999
28000
28001
28002 printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
28003
28004
28005
28006
28007
28008   if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
28009
28010
28011
28012
28013
28014
28015
28016
28017   gl_LIBOBJS="$gl_LIBOBJS strerror-override.$ac_objext"
28018
28019
28020
28021
28022
28023   if test $ac_cv_header_sys_socket_h != yes; then
28024                     ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
28025 if test "x$ac_cv_header_winsock2_h" = xyes
28026 then :
28027   printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
28028
28029 fi
28030
28031   fi
28032   if test "$ac_cv_header_winsock2_h" = yes; then
28033     HAVE_WINSOCK2_H=1
28034     UNISTD_H_HAVE_WINSOCK2_H=1
28035     SYS_IOCTL_H_HAVE_WINSOCK2_H=1
28036   else
28037     HAVE_WINSOCK2_H=0
28038   fi
28039
28040
28041   fi
28042
28043
28044
28045
28046
28047
28048
28049   if test $ac_cv_have_decl_strerror_r = no; then
28050     HAVE_DECL_STRERROR_R=0
28051   fi
28052
28053   if test $ac_cv_func_strerror_r = yes; then
28054     if test "$ERRNO_H:$REPLACE_STRERROR_0" = :0; then
28055       if test $gl_cv_func_strerror_r_posix_signature = yes; then
28056         case "$gl_cv_func_strerror_r_works" in
28057                     *no) REPLACE_STRERROR_R=1 ;;
28058         esac
28059       else
28060                 REPLACE_STRERROR_R=1
28061       fi
28062     else
28063                   REPLACE_STRERROR_R=1
28064     fi
28065   fi
28066
28067   if test $HAVE_DECL_STRERROR_R = 0 || test $REPLACE_STRERROR_R = 1; then
28068
28069
28070
28071
28072
28073
28074
28075
28076   gl_LIBOBJS="$gl_LIBOBJS strerror_r.$ac_objext"
28077
28078
28079
28080
28081
28082
28083   fi
28084
28085
28086
28087
28088
28089           GNULIB_STRERROR_R=1
28090
28091
28092
28093
28094
28095 printf "%s\n" "#define GNULIB_TEST_STRERROR_R 1" >>confdefs.h
28096
28097
28098
28099
28100
28101 printf "%s\n" "#define GNULIB_STRERROR_R_POSIX 1" >>confdefs.h
28102
28103
28104
28105
28106
28107
28108
28109
28110
28111
28112
28113
28114
28115
28116
28117
28118
28119
28120
28121      if test $gl_cv_have_include_next = yes; then
28122        gl_cv_next_sys_stat_h='<'sys/stat.h'>'
28123      else
28124        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
28125 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
28126 if test ${gl_cv_next_sys_stat_h+y}
28127 then :
28128   printf %s "(cached) " >&6
28129 else
28130
28131              if test $ac_cv_header_sys_stat_h = yes; then
28132
28133
28134
28135
28136   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28137 /* end confdefs.h.  */
28138 #include <sys/stat.h>
28139 _ACEOF
28140                 case "$host_os" in
28141     aix*) gl_absname_cpp="$ac_cpp -C" ;;
28142     *)    gl_absname_cpp="$ac_cpp" ;;
28143   esac
28144
28145   case "$host_os" in
28146     mingw*)
28147                                           gl_dirsep_regex='[/\\]'
28148       ;;
28149     *)
28150       gl_dirsep_regex='\/'
28151       ;;
28152   esac
28153       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28154   gl_header_literal_regex=`echo 'sys/stat.h' \
28155                            | sed -e "$gl_make_literal_regex_sed"`
28156   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28157       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28158       s|^/[^/]|//&|
28159       p
28160       q
28161     }'
28162
28163         gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28164   sed -n "$gl_absolute_header_sed"`
28165
28166            gl_header=$gl_cv_absolute_sys_stat_h
28167            gl_cv_next_sys_stat_h='"'$gl_header'"'
28168           else
28169                gl_cv_next_sys_stat_h='<'sys/stat.h'>'
28170              fi
28171
28172
28173 fi
28174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
28175 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
28176      fi
28177      NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
28178
28179      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28180        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28181        gl_next_as_first_directive='<'sys/stat.h'>'
28182      else
28183        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28184        gl_next_as_first_directive=$gl_cv_next_sys_stat_h
28185      fi
28186      NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
28187
28188
28189
28190
28191
28192
28193
28194
28195     WINDOWS_STAT_TIMESPEC=0
28196
28197
28198
28199
28200
28201
28202
28203
28204       ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
28205      #include <sys/stat.h>
28206 "
28207 if test "x$ac_cv_type_nlink_t" = xyes
28208 then :
28209
28210 else
28211
28212 printf "%s\n" "#define nlink_t int" >>confdefs.h
28213
28214 fi
28215
28216
28217
28218
28219
28220
28221
28222
28223
28224
28225
28226
28227
28228
28229
28230
28231
28232
28233   :
28234
28235
28236
28237
28238
28239
28240
28241
28242
28243
28244
28245
28246      if test $gl_cv_have_include_next = yes; then
28247        gl_cv_next_unistd_h='<'unistd.h'>'
28248      else
28249        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
28250 printf %s "checking absolute name of <unistd.h>... " >&6; }
28251 if test ${gl_cv_next_unistd_h+y}
28252 then :
28253   printf %s "(cached) " >&6
28254 else
28255
28256              if test $ac_cv_header_unistd_h = yes; then
28257
28258
28259
28260
28261   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28262 /* end confdefs.h.  */
28263 #include <unistd.h>
28264 _ACEOF
28265                 case "$host_os" in
28266     aix*) gl_absname_cpp="$ac_cpp -C" ;;
28267     *)    gl_absname_cpp="$ac_cpp" ;;
28268   esac
28269
28270   case "$host_os" in
28271     mingw*)
28272                                           gl_dirsep_regex='[/\\]'
28273       ;;
28274     *)
28275       gl_dirsep_regex='\/'
28276       ;;
28277   esac
28278       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28279   gl_header_literal_regex=`echo 'unistd.h' \
28280                            | sed -e "$gl_make_literal_regex_sed"`
28281   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28282       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28283       s|^/[^/]|//&|
28284       p
28285       q
28286     }'
28287
28288         gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28289   sed -n "$gl_absolute_header_sed"`
28290
28291            gl_header=$gl_cv_absolute_unistd_h
28292            gl_cv_next_unistd_h='"'$gl_header'"'
28293           else
28294                gl_cv_next_unistd_h='<'unistd.h'>'
28295              fi
28296
28297
28298 fi
28299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
28300 printf "%s\n" "$gl_cv_next_unistd_h" >&6; }
28301      fi
28302      NEXT_UNISTD_H=$gl_cv_next_unistd_h
28303
28304      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28305        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28306        gl_next_as_first_directive='<'unistd.h'>'
28307      else
28308        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28309        gl_next_as_first_directive=$gl_cv_next_unistd_h
28310      fi
28311      NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
28312
28313
28314
28315
28316   if test $ac_cv_header_unistd_h = yes; then
28317     HAVE_UNISTD_H=1
28318   else
28319     HAVE_UNISTD_H=0
28320   fi
28321
28322
28323
28324
28325
28326
28327
28328
28329
28330
28331
28332
28333
28334
28335
28336
28337     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether unlink honors trailing slashes" >&5
28338 printf %s "checking whether unlink honors trailing slashes... " >&6; }
28339 if test ${gl_cv_func_unlink_honors_slashes+y}
28340 then :
28341   printf %s "(cached) " >&6
28342 else
28343   touch conftest.file
28344      # Assume that if we have lstat, we can also check symlinks.
28345      if test $ac_cv_func_lstat = yes; then
28346        ln -s conftest.file conftest.lnk
28347      fi
28348      if test "$cross_compiling" = yes
28349 then :
28350   case "$host_os" in
28351                           # Guess yes on Linux systems.
28352          linux-* | linux) gl_cv_func_unlink_honors_slashes="guessing yes" ;;
28353                           # Guess yes on glibc systems.
28354          *-gnu*)          gl_cv_func_unlink_honors_slashes="guessing yes" ;;
28355                           # Guess no on native Windows.
28356          mingw*)          gl_cv_func_unlink_honors_slashes="guessing no" ;;
28357                           # If we don't know, assume the worst.
28358          *)               gl_cv_func_unlink_honors_slashes="guessing no" ;;
28359        esac
28360
28361 else
28362   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28363 /* end confdefs.h.  */
28364 #if HAVE_UNISTD_H
28365            # include <unistd.h>
28366            #else /* on Windows with MSVC */
28367            # include <io.h>
28368            #endif
28369            #include <errno.h>
28370
28371 int
28372 main (void)
28373 {
28374 int result = 0;
28375            if (!unlink ("conftest.file/"))
28376              result |= 1;
28377            else if (errno != ENOTDIR)
28378              result |= 2;
28379 #if HAVE_LSTAT
28380            if (!unlink ("conftest.lnk/"))
28381              result |= 4;
28382            else if (errno != ENOTDIR)
28383              result |= 8;
28384 #endif
28385            return result;
28386
28387   ;
28388   return 0;
28389 }
28390 _ACEOF
28391 if ac_fn_c_try_run "$LINENO"
28392 then :
28393   gl_cv_func_unlink_honors_slashes=yes
28394 else
28395   gl_cv_func_unlink_honors_slashes=no
28396 fi
28397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28398   conftest.$ac_objext conftest.beam conftest.$ac_ext
28399 fi
28400
28401      rm -f conftest.file conftest.lnk
28402 fi
28403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unlink_honors_slashes" >&5
28404 printf "%s\n" "$gl_cv_func_unlink_honors_slashes" >&6; }
28405   case "$gl_cv_func_unlink_honors_slashes" in
28406     *no)
28407       REPLACE_UNLINK=1
28408       ;;
28409   esac
28410
28411       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether unlink of a parent directory fails as it should" >&5
28412 printf %s "checking whether unlink of a parent directory fails as it should... " >&6; }
28413 if test ${gl_cv_func_unlink_parent_fails+y}
28414 then :
28415   printf %s "(cached) " >&6
28416 else
28417   case "$host_os" in
28418        darwin*)
28419                                                       if {
28420               # Use the mktemp program if available. If not available, hide the error
28421               # message.
28422               tmp=`(umask 077 && mktemp -d /tmp/gtXXXXXX) 2>/dev/null` &&
28423               test -n "$tmp" && test -d "$tmp"
28424             } ||
28425             {
28426               # Use a simple mkdir command. It is guaranteed to fail if the directory
28427               # already exists.  $RANDOM is bash specific and expands to empty in shells
28428               # other than bash, ksh and zsh.  Its use does not increase security;
28429               # rather, it minimizes the probability of failure in a very cluttered /tmp
28430               # directory.
28431               tmp=/tmp/gt$$-$RANDOM
28432               (umask 077 && mkdir "$tmp")
28433             }; then
28434            mkdir "$tmp/subdir"
28435            GL_SUBDIR_FOR_UNLINK="$tmp/subdir"
28436            export GL_SUBDIR_FOR_UNLINK
28437            if test "$cross_compiling" = yes
28438 then :
28439   # If we don't know, assume the worst.
28440               gl_cv_func_unlink_parent_fails="guessing no"
28441
28442 else
28443   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28444 /* end confdefs.h.  */
28445
28446                 #include <stdlib.h>
28447                 #if HAVE_UNISTD_H
28448                 # include <unistd.h>
28449                 #else /* on Windows with MSVC */
28450                 # include <direct.h>
28451                 # include <io.h>
28452                 #endif
28453                 int main ()
28454                 {
28455                   int result = 0;
28456                   if (chdir (getenv ("GL_SUBDIR_FOR_UNLINK")) != 0)
28457                     result |= 1;
28458                   else if (unlink ("..") == 0)
28459                     result |= 2;
28460                   return result;
28461                 }
28462
28463 _ACEOF
28464 if ac_fn_c_try_run "$LINENO"
28465 then :
28466   gl_cv_func_unlink_parent_fails=yes
28467 else
28468   gl_cv_func_unlink_parent_fails=no
28469 fi
28470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28471   conftest.$ac_objext conftest.beam conftest.$ac_ext
28472 fi
28473
28474            unset GL_SUBDIR_FOR_UNLINK
28475            rm -rf "$tmp"
28476          else
28477            gl_cv_func_unlink_parent_fails="guessing no"
28478          fi
28479          ;;
28480        *)
28481          gl_cv_func_unlink_parent_fails="guessing yes"
28482          ;;
28483      esac
28484
28485 fi
28486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unlink_parent_fails" >&5
28487 printf "%s\n" "$gl_cv_func_unlink_parent_fails" >&6; }
28488   case "$gl_cv_func_unlink_parent_fails" in
28489     *no)
28490       REPLACE_UNLINK=1
28491
28492 printf "%s\n" "#define UNLINK_PARENT_BUG 1" >>confdefs.h
28493
28494       ;;
28495   esac
28496
28497   if test $REPLACE_UNLINK = 1; then
28498
28499
28500
28501
28502
28503
28504
28505
28506   gl_LIBOBJS="$gl_LIBOBJS unlink.$ac_objext"
28507
28508   fi
28509
28510
28511
28512
28513
28514           GNULIB_UNLINK=1
28515
28516
28517
28518
28519
28520 printf "%s\n" "#define GNULIB_TEST_UNLINK 1" >>confdefs.h
28521
28522
28523
28524
28525
28526
28527
28528
28529
28530   if test $ac_cv_func_unlinkat = no; then
28531     HAVE_UNLINKAT=0
28532   else
28533     case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
28534       *no)
28535         # Solaris 9 has *at functions, but uniformly mishandles trailing
28536         # slash in all of them.
28537         REPLACE_UNLINKAT=1
28538         ;;
28539       *)
28540         # GNU/Hurd has unlinkat, but it has the same bug as unlink.
28541         # Darwin has unlinkat, but it has the same UNLINK_PARENT_BUG.
28542         if test $REPLACE_UNLINK = 1; then
28543           REPLACE_UNLINKAT=1
28544         fi
28545         ;;
28546     esac
28547   fi
28548
28549   if test $HAVE_UNLINKAT = 0 || test $REPLACE_UNLINKAT = 1; then
28550
28551
28552
28553
28554
28555
28556
28557
28558   gl_LIBOBJS="$gl_LIBOBJS unlinkat.$ac_objext"
28559
28560   fi
28561
28562
28563
28564
28565
28566           GNULIB_UNLINKAT=1
28567
28568
28569
28570
28571
28572 printf "%s\n" "#define GNULIB_TEST_UNLINKAT 1" >>confdefs.h
28573
28574
28575
28576
28577
28578
28579
28580   if test $ac_cv_func_utime = no; then
28581     HAVE_UTIME=0
28582   else
28583     case "$host_os" in
28584       mingw*)
28585                         REPLACE_UTIME=1
28586         ;;
28587     esac
28588   fi
28589
28590   if test $HAVE_UTIME = 0 || test $REPLACE_UTIME = 1; then
28591
28592
28593
28594
28595
28596
28597
28598
28599   gl_LIBOBJS="$gl_LIBOBJS utime.$ac_objext"
28600
28601     :
28602   fi
28603
28604
28605
28606
28607
28608           GNULIB_UTIME=1
28609
28610
28611
28612
28613
28614 printf "%s\n" "#define GNULIB_TEST_UTIME 1" >>confdefs.h
28615
28616
28617
28618
28619
28620
28621
28622
28623
28624
28625
28626
28627
28628
28629
28630
28631
28632      if test $gl_cv_have_include_next = yes; then
28633        gl_cv_next_utime_h='<'utime.h'>'
28634      else
28635        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <utime.h>" >&5
28636 printf %s "checking absolute name of <utime.h>... " >&6; }
28637 if test ${gl_cv_next_utime_h+y}
28638 then :
28639   printf %s "(cached) " >&6
28640 else
28641
28642              if test $ac_cv_header_utime_h = yes; then
28643
28644
28645
28646
28647   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28648 /* end confdefs.h.  */
28649 #include <utime.h>
28650 _ACEOF
28651                 case "$host_os" in
28652     aix*) gl_absname_cpp="$ac_cpp -C" ;;
28653     *)    gl_absname_cpp="$ac_cpp" ;;
28654   esac
28655
28656   case "$host_os" in
28657     mingw*)
28658                                           gl_dirsep_regex='[/\\]'
28659       ;;
28660     *)
28661       gl_dirsep_regex='\/'
28662       ;;
28663   esac
28664       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
28665   gl_header_literal_regex=`echo 'utime.h' \
28666                            | sed -e "$gl_make_literal_regex_sed"`
28667   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
28668       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
28669       s|^/[^/]|//&|
28670       p
28671       q
28672     }'
28673
28674         gl_cv_absolute_utime_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
28675   sed -n "$gl_absolute_header_sed"`
28676
28677            gl_header=$gl_cv_absolute_utime_h
28678            gl_cv_next_utime_h='"'$gl_header'"'
28679           else
28680                gl_cv_next_utime_h='<'utime.h'>'
28681              fi
28682
28683
28684 fi
28685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_utime_h" >&5
28686 printf "%s\n" "$gl_cv_next_utime_h" >&6; }
28687      fi
28688      NEXT_UTIME_H=$gl_cv_next_utime_h
28689
28690      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
28691        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
28692        gl_next_as_first_directive='<'utime.h'>'
28693      else
28694        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
28695        gl_next_as_first_directive=$gl_cv_next_utime_h
28696      fi
28697      NEXT_AS_FIRST_DIRECTIVE_UTIME_H=$gl_next_as_first_directive
28698
28699
28700
28701
28702
28703   if test $ac_cv_header_utime_h = yes; then
28704     HAVE_UTIME_H=1
28705   else
28706     HAVE_UTIME_H=0
28707   fi
28708
28709
28710   UTIME_H=''
28711      if false; then
28712               UTIME_H=utime.h
28713      else
28714        if test $ac_cv_header_utime_h != yes; then
28715                   UTIME_H=utime.h
28716        else
28717          case "$host_os" in
28718            mingw*)              UTIME_H=utime.h
28719              ;;
28720          esac
28721        fi
28722      fi
28723
28724
28725    if test -n "$UTIME_H"; then
28726   GL_GENERATE_UTIME_H_TRUE=
28727   GL_GENERATE_UTIME_H_FALSE='#'
28728 else
28729   GL_GENERATE_UTIME_H_TRUE='#'
28730   GL_GENERATE_UTIME_H_FALSE=
28731 fi
28732
28733
28734
28735
28736
28737
28738
28739
28740
28741   if test $ac_cv_func_futimens = no && test $ac_cv_func_futimesat = yes; then
28742                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether futimesat handles NULL file" >&5
28743 printf %s "checking whether futimesat handles NULL file... " >&6; }
28744 if test ${gl_cv_func_futimesat_works+y}
28745 then :
28746   printf %s "(cached) " >&6
28747 else
28748   touch conftest.file
28749        if test "$cross_compiling" = yes
28750 then :
28751   case "$host_os" in
28752                             # Guess yes on Linux systems.
28753            linux-* | linux) gl_cv_func_futimesat_works="guessing yes" ;;
28754                             # Guess yes on glibc systems.
28755            *-gnu*)          gl_cv_func_futimesat_works="guessing yes" ;;
28756                             # If we don't know, assume the worst.
28757            *)               gl_cv_func_futimesat_works="guessing no" ;;
28758          esac
28759
28760 else
28761   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28762 /* end confdefs.h.  */
28763
28764 #include <stddef.h>
28765 #include <sys/times.h>
28766 #include <fcntl.h>
28767
28768 int
28769 main (void)
28770 {
28771     int fd = open ("conftest.file", O_RDWR);
28772           if (fd < 0) return 1;
28773           if (futimesat (fd, NULL, NULL)) return 2;
28774
28775   ;
28776   return 0;
28777 }
28778 _ACEOF
28779 if ac_fn_c_try_run "$LINENO"
28780 then :
28781   gl_cv_func_futimesat_works=yes
28782 else
28783   gl_cv_func_futimesat_works=no
28784 fi
28785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28786   conftest.$ac_objext conftest.beam conftest.$ac_ext
28787 fi
28788
28789       rm -f conftest.file
28790 fi
28791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_futimesat_works" >&5
28792 printf "%s\n" "$gl_cv_func_futimesat_works" >&6; }
28793     case "$gl_cv_func_futimesat_works" in
28794       *yes) ;;
28795       *)
28796
28797 printf "%s\n" "#define FUTIMESAT_NULL_BUG 1" >>confdefs.h
28798
28799         ;;
28800     esac
28801   fi
28802
28803
28804
28805   if test $ac_cv_func_vasnprintf = no; then
28806
28807
28808
28809
28810
28811
28812
28813
28814
28815
28816   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
28817
28818
28819
28820
28821
28822
28823
28824
28825
28826   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
28827
28828
28829
28830
28831
28832
28833
28834
28835
28836   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
28837
28838
28839
28840
28841
28842
28843
28844
28845
28846   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
28847
28848   if test $ac_cv_func_vasnprintf = yes; then
28849
28850 printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h
28851
28852   fi
28853
28854
28855
28856
28857
28858
28859
28860
28861
28862
28863
28864   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
28865 if test "x$ac_cv_type_ptrdiff_t" = xyes
28866 then :
28867
28868 else
28869
28870 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
28871
28872
28873 fi
28874
28875
28876
28877
28878
28879
28880
28881   fi
28882
28883
28884
28885
28886
28887
28888
28889
28890
28891
28892
28893
28894
28895
28896
28897
28898   gl_cv_func_vfprintf_posix=no
28899   case "$gl_cv_func_printf_sizes_c99" in
28900     *yes)
28901       case "$gl_cv_func_printf_long_double" in
28902         *yes)
28903           case "$gl_cv_func_printf_infinite" in
28904             *yes)
28905               case "$gl_cv_func_printf_infinite_long_double" in
28906                 *yes)
28907                   case "$gl_cv_func_printf_directive_a" in
28908                     *yes)
28909                       case "$gl_cv_func_printf_directive_f" in
28910                         *yes)
28911                           case "$gl_cv_func_printf_directive_n" in
28912                             *yes)
28913                               case "$gl_cv_func_printf_directive_ls" in
28914                                 *yes)
28915                                   case "$gl_cv_func_printf_positions" in
28916                                     *yes)
28917                                       case "$gl_cv_func_printf_flag_grouping" in
28918                                         *yes)
28919                                           case "$gl_cv_func_printf_flag_leftadjust" in
28920                                             *yes)
28921                                               case "$gl_cv_func_printf_flag_zero" in
28922                                                 *yes)
28923                                                   case "$gl_cv_func_printf_precision" in
28924                                                     *yes)
28925                                                       case "$gl_cv_func_printf_enomem" in
28926                                                         *yes)
28927                                                           # vfprintf exists and is
28928                                                           # already POSIX compliant.
28929                                                           gl_cv_func_vfprintf_posix=yes
28930                                                           ;;
28931                                                       esac
28932                                                       ;;
28933                                                   esac
28934                                                   ;;
28935                                               esac
28936                                               ;;
28937                                           esac
28938                                           ;;
28939                                       esac
28940                                       ;;
28941                                   esac
28942                                   ;;
28943                               esac
28944                               ;;
28945                           esac
28946                           ;;
28947                       esac
28948                       ;;
28949                   esac
28950                   ;;
28951               esac
28952               ;;
28953           esac
28954           ;;
28955       esac
28956       ;;
28957   esac
28958   if test $gl_cv_func_vfprintf_posix = no; then
28959
28960
28961
28962   case "$gl_cv_func_printf_infinite" in
28963     *yes)
28964       ;;
28965     *)
28966
28967 printf "%s\n" "#define NEED_PRINTF_INFINITE_DOUBLE 1" >>confdefs.h
28968
28969       ;;
28970   esac
28971
28972
28973
28974
28975   case "$gl_cv_func_printf_long_double" in
28976     *yes)
28977       case "$gl_cv_func_printf_infinite_long_double" in
28978         *yes)
28979           ;;
28980         *)
28981
28982 printf "%s\n" "#define NEED_PRINTF_INFINITE_LONG_DOUBLE 1" >>confdefs.h
28983
28984           ;;
28985       esac
28986       ;;
28987   esac
28988
28989
28990
28991   case "$gl_cv_func_printf_directive_a" in
28992     *yes)
28993       ;;
28994     *)
28995
28996 printf "%s\n" "#define NEED_PRINTF_DIRECTIVE_A 1" >>confdefs.h
28997
28998       ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo"
28999 if test "x$ac_cv_func_nl_langinfo" = xyes
29000 then :
29001   printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h
29002
29003 fi
29004
29005       ;;
29006   esac
29007
29008
29009
29010   case "$gl_cv_func_printf_directive_f" in
29011     *yes)
29012       ;;
29013     *)
29014
29015 printf "%s\n" "#define NEED_PRINTF_DIRECTIVE_F 1" >>confdefs.h
29016
29017       ;;
29018   esac
29019
29020
29021
29022   case "$gl_cv_func_printf_directive_ls" in
29023     *yes)
29024       ;;
29025     *)
29026
29027 printf "%s\n" "#define NEED_PRINTF_DIRECTIVE_LS 1" >>confdefs.h
29028
29029       ;;
29030   esac
29031
29032
29033
29034   case "$gl_cv_func_printf_flag_grouping" in
29035     *yes)
29036       ;;
29037     *)
29038
29039 printf "%s\n" "#define NEED_PRINTF_FLAG_GROUPING 1" >>confdefs.h
29040
29041       ;;
29042   esac
29043
29044
29045
29046   case "$gl_cv_func_printf_flag_leftadjust" in
29047     *yes)
29048       ;;
29049     *)
29050
29051 printf "%s\n" "#define NEED_PRINTF_FLAG_LEFTADJUST 1" >>confdefs.h
29052
29053       ;;
29054   esac
29055
29056
29057
29058   case "$gl_cv_func_printf_flag_zero" in
29059     *yes)
29060       ;;
29061     *)
29062
29063 printf "%s\n" "#define NEED_PRINTF_FLAG_ZERO 1" >>confdefs.h
29064
29065       ;;
29066   esac
29067
29068
29069
29070   case "$gl_cv_func_printf_precision" in
29071     *yes)
29072       ;;
29073     *)
29074
29075 printf "%s\n" "#define NEED_PRINTF_UNBOUNDED_PRECISION 1" >>confdefs.h
29076
29077
29078 printf "%s\n" "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
29079
29080
29081 printf "%s\n" "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
29082
29083       ;;
29084   esac
29085
29086
29087
29088   case "$gl_cv_func_printf_enomem" in
29089     *yes)
29090       ;;
29091     *)
29092
29093 printf "%s\n" "#define NEED_PRINTF_ENOMEM 1" >>confdefs.h
29094
29095
29096 printf "%s\n" "#define NEED_PRINTF_DOUBLE 1" >>confdefs.h
29097
29098
29099 printf "%s\n" "#define NEED_PRINTF_LONG_DOUBLE 1" >>confdefs.h
29100
29101       ;;
29102   esac
29103
29104
29105
29106
29107
29108
29109
29110
29111
29112
29113
29114   gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
29115
29116
29117
29118
29119
29120
29121
29122
29123
29124   gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
29125
29126
29127
29128
29129
29130
29131
29132
29133
29134   gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
29135
29136
29137
29138
29139
29140
29141
29142
29143
29144   gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
29145
29146   if test $ac_cv_func_vasnprintf = yes; then
29147
29148 printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h
29149
29150   fi
29151
29152
29153
29154
29155
29156
29157
29158
29159
29160
29161
29162   ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
29163 if test "x$ac_cv_type_ptrdiff_t" = xyes
29164 then :
29165
29166 else
29167
29168 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
29169
29170
29171 fi
29172
29173
29174
29175
29176
29177
29178
29179
29180
29181
29182
29183
29184
29185
29186
29187
29188
29189   gl_LIBOBJS="$gl_LIBOBJS vfprintf.$ac_objext"
29190
29191   REPLACE_VFPRINTF=1
29192
29193 printf "%s\n" "#define REPLACE_VFPRINTF_POSIX 1" >>confdefs.h
29194
29195   :
29196
29197   fi
29198
29199
29200
29201
29202
29203
29204           GNULIB_VFPRINTF_POSIX=1
29205
29206
29207
29208
29209
29210 printf "%s\n" "#define GNULIB_TEST_VFPRINTF_POSIX 1" >>confdefs.h
29211
29212
29213
29214
29215
29216
29217
29218
29219
29220
29221
29222
29223
29224
29225
29226      if test $gl_cv_have_include_next = yes; then
29227        gl_cv_next_wchar_h='<'wchar.h'>'
29228      else
29229        { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
29230 printf %s "checking absolute name of <wchar.h>... " >&6; }
29231 if test ${gl_cv_next_wchar_h+y}
29232 then :
29233   printf %s "(cached) " >&6
29234 else
29235
29236              if test $ac_cv_header_wchar_h = yes; then
29237
29238
29239
29240
29241   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29242 /* end confdefs.h.  */
29243 #include <wchar.h>
29244 _ACEOF
29245                 case "$host_os" in
29246     aix*) gl_absname_cpp="$ac_cpp -C" ;;
29247     *)    gl_absname_cpp="$ac_cpp" ;;
29248   esac
29249
29250   case "$host_os" in
29251     mingw*)
29252                                           gl_dirsep_regex='[/\\]'
29253       ;;
29254     *)
29255       gl_dirsep_regex='\/'
29256       ;;
29257   esac
29258       gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
29259   gl_header_literal_regex=`echo 'wchar.h' \
29260                            | sed -e "$gl_make_literal_regex_sed"`
29261   gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
29262       s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
29263       s|^/[^/]|//&|
29264       p
29265       q
29266     }'
29267
29268         gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
29269   sed -n "$gl_absolute_header_sed"`
29270
29271            gl_header=$gl_cv_absolute_wchar_h
29272            gl_cv_next_wchar_h='"'$gl_header'"'
29273           else
29274                gl_cv_next_wchar_h='<'wchar.h'>'
29275              fi
29276
29277
29278 fi
29279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
29280 printf "%s\n" "$gl_cv_next_wchar_h" >&6; }
29281      fi
29282      NEXT_WCHAR_H=$gl_cv_next_wchar_h
29283
29284      if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
29285        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
29286        gl_next_as_first_directive='<'wchar.h'>'
29287      else
29288        # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
29289        gl_next_as_first_directive=$gl_cv_next_wchar_h
29290      fi
29291      NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
29292
29293
29294
29295
29296   if test $ac_cv_header_wchar_h = yes; then
29297     HAVE_WCHAR_H=1
29298   else
29299     HAVE_WCHAR_H=0
29300   fi
29301
29302
29303
29304
29305
29306   if test $gt_cv_c_wint_t = yes; then
29307     HAVE_WINT_T=1
29308   else
29309     HAVE_WINT_T=0
29310   fi
29311
29312
29313
29314
29315
29316
29317   :
29318
29319
29320   ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
29321 if test "x$ac_cv_header_stdint_h" = xyes
29322 then :
29323   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
29324
29325 fi
29326
29327
29328
29329
29330     :
29331
29332   # End of code from modules
29333
29334
29335
29336
29337
29338
29339
29340
29341
29342   gltests_libdeps=
29343   gltests_ltlibdeps=
29344
29345
29346
29347
29348
29349
29350
29351
29352
29353   gl_source_base='tests'
29354   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
29355
29356   gl_module_indicator_condition=$gltests_WITNESS
29357
29358
29359
29360
29361
29362
29363
29364
29365
29366   LIBGZIP_LIBDEPS="$gl_libdeps"
29367
29368   LIBGZIP_LTLIBDEPS="$gl_ltlibdeps"
29369
29370
29371
29372 # Check whether --enable-gcc-warnings was given.
29373 if test ${enable_gcc_warnings+y}
29374 then :
29375   enableval=$enable_gcc_warnings; case $enableval in
29376      yes|no) ;;
29377      *)      as_fn_error $? "bad value $enableval for gcc-warnings option" "$LINENO" 5 ;;
29378    esac
29379    gl_gcc_warnings=$enableval
29380 else
29381   if test -d "$srcdir"/.git; then
29382      gl_gcc_warnings=yes
29383    else
29384      gl_gcc_warnings=no
29385    fi
29386
29387 fi
29388
29389
29390 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])
29391 # ------------------------------------------------
29392 # If $CPP is gcc-MAJOR.MINOR or newer, then run RUN-IF-FOUND.
29393 # Otherwise, run RUN-IF-NOT-FOUND.
29394
29395
29396 if test "$gl_gcc_warnings" = yes; then
29397
29398   ac_ext=c
29399 ac_cpp='$CPP $CPPFLAGS'
29400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29403
29404
29405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror -Wunknown-warning-option" >&5
29406 printf %s "checking whether C compiler handles -Werror -Wunknown-warning-option... " >&6; }
29407 if test ${gl_cv_warn_c__Werror__Wunknown_warning_option+y}
29408 then :
29409   printf %s "(cached) " >&6
29410 else
29411
29412   gl_save_compiler_FLAGS="$CFLAGS"
29413   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror -Wunknown-warning-option"
29414   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29415 /* end confdefs.h.  */
29416
29417 int
29418 main (void)
29419 {
29420
29421   ;
29422   return 0;
29423 }
29424 _ACEOF
29425 if ac_fn_c_try_link "$LINENO"
29426 then :
29427   gl_cv_warn_c__Werror__Wunknown_warning_option=yes
29428 else
29429   gl_cv_warn_c__Werror__Wunknown_warning_option=no
29430 fi
29431 rm -f core conftest.err conftest.$ac_objext \
29432     conftest$ac_exeext conftest.$ac_ext
29433   CFLAGS="$gl_save_compiler_FLAGS"
29434
29435 fi
29436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror__Wunknown_warning_option" >&5
29437 printf "%s\n" "$gl_cv_warn_c__Werror__Wunknown_warning_option" >&6; }
29438 if test "x$gl_cv_warn_c__Werror__Wunknown_warning_option" = xyes
29439 then :
29440   gl_unknown_warnings_are_errors='-Wunknown-warning-option -Werror'
29441 else
29442   gl_unknown_warnings_are_errors=
29443 fi
29444
29445   ac_ext=c
29446 ac_cpp='$CPP $CPPFLAGS'
29447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29450
29451
29452
29453
29454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Werror" >&5
29455 printf %s "checking whether C compiler handles -Werror... " >&6; }
29456 if test ${gl_cv_warn_c__Werror+y}
29457 then :
29458   printf %s "(cached) " >&6
29459 else
29460
29461   gl_save_compiler_FLAGS="$CFLAGS"
29462   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Werror"
29463   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29464 /* end confdefs.h.  */
29465
29466 int
29467 main (void)
29468 {
29469
29470   ;
29471   return 0;
29472 }
29473 _ACEOF
29474 if ac_fn_c_try_link "$LINENO"
29475 then :
29476   gl_cv_warn_c__Werror=yes
29477 else
29478   gl_cv_warn_c__Werror=no
29479 fi
29480 rm -f core conftest.err conftest.$ac_objext \
29481     conftest$ac_exeext conftest.$ac_ext
29482   CFLAGS="$gl_save_compiler_FLAGS"
29483
29484 fi
29485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Werror" >&5
29486 printf "%s\n" "$gl_cv_warn_c__Werror" >&6; }
29487 if test "x$gl_cv_warn_c__Werror" = xyes
29488 then :
29489   as_fn_append WERROR_CFLAGS " -Werror"
29490 fi
29491
29492
29493
29494
29495   nw=
29496   # This, $nw, is the list of warnings we disable.
29497   nw="$nw -Wdeclaration-after-statement" # too useful to forbid
29498   nw="$nw -Waggregate-return"       # anachronistic
29499   nw="$nw -Wlong-long"              # C90 is anachronistic (lib/gethrxtime.h)
29500   nw="$nw -Wc++-compat"             # We don't care about C++ compilers
29501   nw="$nw -Wundef"                  # Warns on '#if GNULIB_FOO' etc in gnulib
29502   nw="$nw -Wtraditional"            # Warns on #elif which we use often
29503   nw="$nw -Wcast-qual"              # Too many warnings for now
29504   nw="$nw -Wconversion"             # Too many warnings for now
29505   nw="$nw -Wduplicated-branches"    # Too many false alarms
29506   nw="$nw -Wsystem-headers"         # Don't let system headers trigger warnings
29507   nw="$nw -Wsign-conversion"        # Too many warnings for now
29508   nw="$nw -Wtraditional-conversion" # Too many warnings for now
29509   nw="$nw -Wpadded"                 # Our structs are not padded
29510   nw="$nw -Wredundant-decls"        # openat.h declares e.g., mkdirat
29511   nw="$nw -Wlogical-op"             # any use of fwrite provokes this
29512   nw="$nw -Wformat-nonliteral"      # who.c and pinky.c strftime uses
29513   nw="$nw -Wvla"                    # warnings in gettext.h
29514   nw="$nw -Wnested-externs"         # use of XARGMATCH/verify_function__
29515   nw="$nw -Wswitch-enum"            # Too many warnings for now
29516   nw="$nw -Wswitch-default"         # Too many warnings for now
29517   nw="$nw -Wstack-protector"        # not worth working around
29518   # things I might fix soon:
29519   nw="$nw -Wfloat-equal"            # sort.c, seq.c
29520   nw="$nw -Wmissing-format-attribute" # copy.c
29521   nw="$nw -Wunsafe-loop-optimizations" # a few src/*.c
29522   nw="$nw -Winline"                 # system.h's readdir_ignoring_dot_and_dotdot
29523
29524   # Warnings that gzip runs afoul of but coreutils does not.
29525   nw="$nw -Wold-style-definition"
29526   nw="$nw -Wshadow"
29527   nw="$nw -Wstrict-overflow"
29528
29529   # Using -Wstrict-overflow is a pain, but the alternative is worse.
29530   # For an example, see the code that provoked this report:
29531   # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=33498
29532   # Code like that still infloops with gcc-4.6.0 and -O2.  Scary indeed.
29533
29534
29535   ac_ext=c
29536 ac_cpp='$CPP $CPPFLAGS'
29537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29540
29541
29542
29543   if test -n "$GCC"; then
29544
29545             { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is supported" >&5
29546 printf %s "checking whether -Wno-missing-field-initializers is supported... " >&6; }
29547 if test ${gl_cv_cc_nomfi_supported+y}
29548 then :
29549   printf %s "(cached) " >&6
29550 else
29551   gl_save_CFLAGS="$CFLAGS"
29552        CFLAGS="$CFLAGS -W -Werror -Wno-missing-field-initializers"
29553        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29554 /* end confdefs.h.  */
29555
29556 int
29557 main (void)
29558 {
29559
29560   ;
29561   return 0;
29562 }
29563 _ACEOF
29564 if ac_fn_c_try_compile "$LINENO"
29565 then :
29566   gl_cv_cc_nomfi_supported=yes
29567 else
29568   gl_cv_cc_nomfi_supported=no
29569 fi
29570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29571        CFLAGS="$gl_save_CFLAGS"
29572
29573 fi
29574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_supported" >&5
29575 printf "%s\n" "$gl_cv_cc_nomfi_supported" >&6; }
29576
29577     if test "$gl_cv_cc_nomfi_supported" = yes; then
29578                   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wno-missing-field-initializers is needed" >&5
29579 printf %s "checking whether -Wno-missing-field-initializers is needed... " >&6; }
29580 if test ${gl_cv_cc_nomfi_needed+y}
29581 then :
29582   printf %s "(cached) " >&6
29583 else
29584   gl_save_CFLAGS="$CFLAGS"
29585          CFLAGS="$CFLAGS -W -Werror"
29586          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29587 /* end confdefs.h.  */
29588 int f (void)
29589                 {
29590                   typedef struct { int a; int b; } s_t;
29591                   s_t s1 = { 0, };
29592                   return s1.b;
29593                 }
29594
29595 int
29596 main (void)
29597 {
29598
29599   ;
29600   return 0;
29601 }
29602 _ACEOF
29603 if ac_fn_c_try_compile "$LINENO"
29604 then :
29605   gl_cv_cc_nomfi_needed=no
29606 else
29607   gl_cv_cc_nomfi_needed=yes
29608 fi
29609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29610          CFLAGS="$gl_save_CFLAGS"
29611
29612 fi
29613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_nomfi_needed" >&5
29614 printf "%s\n" "$gl_cv_cc_nomfi_needed" >&6; }
29615     fi
29616
29617                 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -Wuninitialized is supported" >&5
29618 printf %s "checking whether -Wuninitialized is supported... " >&6; }
29619 if test ${gl_cv_cc_uninitialized_supported+y}
29620 then :
29621   printf %s "(cached) " >&6
29622 else
29623   gl_save_CFLAGS="$CFLAGS"
29624        CFLAGS="$CFLAGS -Werror -Wuninitialized"
29625        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29626 /* end confdefs.h.  */
29627
29628 int
29629 main (void)
29630 {
29631
29632   ;
29633   return 0;
29634 }
29635 _ACEOF
29636 if ac_fn_c_try_compile "$LINENO"
29637 then :
29638   gl_cv_cc_uninitialized_supported=yes
29639 else
29640   gl_cv_cc_uninitialized_supported=no
29641 fi
29642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29643        CFLAGS="$gl_save_CFLAGS"
29644
29645 fi
29646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_uninitialized_supported" >&5
29647 printf "%s\n" "$gl_cv_cc_uninitialized_supported" >&6; }
29648
29649   fi
29650
29651   # List all gcc warning categories.
29652   # To compare this list to your installed GCC's, run this Bash command:
29653   #
29654   # comm -3 \
29655   #  <((sed -n 's/^  *\(-[^ 0-9][^ ]*\) .*/\1/p' manywarnings.m4; \
29656   #     awk '/^[^#]/ {print ws}' ../build-aux/gcc-warning.spec) | sort) \
29657   #  <(LC_ALL=C gcc --help=warnings | sed -n 's/^  \(-[^ ]*\) .*/\1/p' | sort)
29658
29659   gl_manywarn_set=
29660   for gl_manywarn_item in -fno-common \
29661     -W \
29662     -Waddress \
29663     -Waggressive-loop-optimizations \
29664     -Wall \
29665     -Wattribute-alias \
29666     -Wattributes \
29667     -Wbad-function-cast \
29668     -Wbool-compare \
29669     -Wbool-operation \
29670     -Wbuiltin-declaration-mismatch \
29671     -Wbuiltin-macro-redefined \
29672     -Wcast-align \
29673     -Wcast-align=strict \
29674     -Wcast-function-type \
29675     -Wchar-subscripts \
29676     -Wclobbered \
29677     -Wcomment \
29678     -Wcomments \
29679     -Wcoverage-mismatch \
29680     -Wcpp \
29681     -Wdangling-else \
29682     -Wdate-time \
29683     -Wdeprecated \
29684     -Wdeprecated-declarations \
29685     -Wdesignated-init \
29686     -Wdisabled-optimization \
29687     -Wdiscarded-array-qualifiers \
29688     -Wdiscarded-qualifiers \
29689     -Wdiv-by-zero \
29690     -Wdouble-promotion \
29691     -Wduplicated-branches \
29692     -Wduplicated-cond \
29693     -Wduplicate-decl-specifier \
29694     -Wempty-body \
29695     -Wendif-labels \
29696     -Wenum-compare \
29697     -Wexpansion-to-defined \
29698     -Wextra \
29699     -Wformat-contains-nul \
29700     -Wformat-extra-args \
29701     -Wformat-nonliteral \
29702     -Wformat-security \
29703     -Wformat-signedness \
29704     -Wformat-y2k \
29705     -Wformat-zero-length \
29706     -Wframe-address \
29707     -Wfree-nonheap-object \
29708     -Whsa \
29709     -Wif-not-aligned \
29710     -Wignored-attributes \
29711     -Wignored-qualifiers \
29712     -Wimplicit \
29713     -Wimplicit-function-declaration \
29714     -Wimplicit-int \
29715     -Wincompatible-pointer-types \
29716     -Winit-self \
29717     -Winline \
29718     -Wint-conversion \
29719     -Wint-in-bool-context \
29720     -Wint-to-pointer-cast \
29721     -Winvalid-memory-model \
29722     -Winvalid-pch \
29723     -Wlogical-not-parentheses \
29724     -Wlogical-op \
29725     -Wmain \
29726     -Wmaybe-uninitialized \
29727     -Wmemset-elt-size \
29728     -Wmemset-transposed-args \
29729     -Wmisleading-indentation \
29730     -Wmissing-attributes \
29731     -Wmissing-braces \
29732     -Wmissing-declarations \
29733     -Wmissing-field-initializers \
29734     -Wmissing-include-dirs \
29735     -Wmissing-parameter-type \
29736     -Wmissing-prototypes \
29737     -Wmultichar \
29738     -Wmultistatement-macros \
29739     -Wnarrowing \
29740     -Wnested-externs \
29741     -Wnonnull \
29742     -Wnonnull-compare \
29743     -Wnull-dereference \
29744     -Wodr \
29745     -Wold-style-declaration \
29746     -Wold-style-definition \
29747     -Wopenmp-simd \
29748     -Woverflow \
29749     -Woverlength-strings \
29750     -Woverride-init \
29751     -Wpacked \
29752     -Wpacked-bitfield-compat \
29753     -Wpacked-not-aligned \
29754     -Wparentheses \
29755     -Wpointer-arith \
29756     -Wpointer-compare \
29757     -Wpointer-sign \
29758     -Wpointer-to-int-cast \
29759     -Wpragmas \
29760     -Wpsabi \
29761     -Wrestrict \
29762     -Wreturn-local-addr \
29763     -Wreturn-type \
29764     -Wscalar-storage-order \
29765     -Wsequence-point \
29766     -Wshadow \
29767     -Wshift-count-negative \
29768     -Wshift-count-overflow \
29769     -Wshift-negative-value \
29770     -Wsizeof-array-argument \
29771     -Wsizeof-pointer-div \
29772     -Wsizeof-pointer-memaccess \
29773     -Wstack-protector \
29774     -Wstrict-aliasing \
29775     -Wstrict-overflow \
29776     -Wstrict-prototypes \
29777     -Wstringop-truncation \
29778     -Wsuggest-attribute=cold \
29779     -Wsuggest-attribute=const \
29780     -Wsuggest-attribute=format \
29781     -Wsuggest-attribute=malloc \
29782     -Wsuggest-attribute=noreturn \
29783     -Wsuggest-attribute=pure \
29784     -Wsuggest-final-methods \
29785     -Wsuggest-final-types \
29786     -Wswitch \
29787     -Wswitch-bool \
29788     -Wswitch-unreachable \
29789     -Wsync-nand \
29790     -Wsystem-headers \
29791     -Wtautological-compare \
29792     -Wtrampolines \
29793     -Wtrigraphs \
29794     -Wtype-limits \
29795     -Wuninitialized \
29796     -Wunknown-pragmas \
29797     -Wunsafe-loop-optimizations \
29798     -Wunused \
29799     -Wunused-but-set-parameter \
29800     -Wunused-but-set-variable \
29801     -Wunused-function \
29802     -Wunused-label \
29803     -Wunused-local-typedefs \
29804     -Wunused-macros \
29805     -Wunused-parameter \
29806     -Wunused-result \
29807     -Wunused-value \
29808     -Wunused-variable \
29809     -Wvarargs \
29810     -Wvariadic-macros \
29811     -Wvector-operation-performance \
29812     -Wvla \
29813     -Wvolatile-register-var \
29814     -Wwrite-strings \
29815     \
29816     ; do
29817     gl_manywarn_set="$gl_manywarn_set $gl_manywarn_item"
29818   done
29819
29820   # gcc --help=warnings outputs an unusual form for these options; list
29821   # them here so that the above 'comm' command doesn't report a false match.
29822   # Would prefer "min (PTRDIFF_MAX, SIZE_MAX)", but it must be a literal.
29823   # Also, AC_COMPUTE_INT requires it to fit in a long; it is 2**63 on
29824   # the only platforms where it does not fit in a long, so make that
29825   # a special case.
29826   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking max safe object size" >&5
29827 printf %s "checking max safe object size... " >&6; }
29828   if ac_fn_c_compute_int "$LINENO" "LONG_MAX < (PTRDIFF_MAX < (size_t) -1 ? PTRDIFF_MAX : (size_t) -1)
29829      ? -1
29830      : PTRDIFF_MAX < (size_t) -1 ? (long) PTRDIFF_MAX : (long) (size_t) -1" "gl_alloc_max"        "#include <limits.h>
29831       #include <stddef.h>
29832       #include <stdint.h>
29833     "
29834 then :
29835
29836 else
29837   gl_alloc_max=2147483647
29838 fi
29839
29840   case $gl_alloc_max in
29841     -1) gl_alloc_max=9223372036854775807;;
29842   esac
29843   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_alloc_max" >&5
29844 printf "%s\n" "$gl_alloc_max" >&6; }
29845   gl_manywarn_set="$gl_manywarn_set -Walloc-size-larger-than=$gl_alloc_max"
29846   gl_manywarn_set="$gl_manywarn_set -Warray-bounds=2"
29847   gl_manywarn_set="$gl_manywarn_set -Wformat-overflow=2"
29848   gl_manywarn_set="$gl_manywarn_set -Wformat-truncation=2"
29849   gl_manywarn_set="$gl_manywarn_set -Wimplicit-fallthrough=5"
29850   gl_manywarn_set="$gl_manywarn_set -Wnormalized=nfc"
29851   gl_manywarn_set="$gl_manywarn_set -Wshift-overflow=2"
29852   gl_manywarn_set="$gl_manywarn_set -Wstringop-overflow=2"
29853   gl_manywarn_set="$gl_manywarn_set -Wunused-const-variable=2"
29854   gl_manywarn_set="$gl_manywarn_set -Wvla-larger-than=4031"
29855
29856   # These are needed for older GCC versions.
29857   if test -n "$GCC"; then
29858     case `($CC --version) 2>/dev/null` in
29859       'gcc (GCC) '[0-3].* | \
29860       'gcc (GCC) '4.[0-7].*)
29861         gl_manywarn_set="$gl_manywarn_set -fdiagnostics-show-option"
29862         gl_manywarn_set="$gl_manywarn_set -funit-at-a-time"
29863           ;;
29864     esac
29865   fi
29866
29867   # Disable specific options as needed.
29868   if test "$gl_cv_cc_nomfi_needed" = yes; then
29869     gl_manywarn_set="$gl_manywarn_set -Wno-missing-field-initializers"
29870   fi
29871
29872   if test "$gl_cv_cc_uninitialized_supported" = no; then
29873     gl_manywarn_set="$gl_manywarn_set -Wno-uninitialized"
29874   fi
29875
29876   ws=$gl_manywarn_set
29877
29878   ac_ext=c
29879 ac_cpp='$CPP $CPPFLAGS'
29880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29883
29884
29885
29886   gl_warn_set=
29887   set x $ws; shift
29888   for gl_warn_item
29889   do
29890     case " $nw " in
29891       *" $gl_warn_item "*)
29892         ;;
29893       *)
29894         gl_warn_set="$gl_warn_set $gl_warn_item"
29895         ;;
29896     esac
29897   done
29898   ws=$gl_warn_set
29899
29900   for w in $ws; do
29901
29902
29903 as_gl_Warn=`printf "%s\n" "gl_cv_warn_c_$w" | $as_tr_sh`
29904 gl_positive="$w"
29905 case $gl_positive in
29906   -Wno-*) gl_positive=-W`expr "X$gl_positive" : 'X-Wno-\(.*\)'` ;;
29907 esac
29908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles $w" >&5
29909 printf %s "checking whether C compiler handles $w... " >&6; }
29910 if eval test \${$as_gl_Warn+y}
29911 then :
29912   printf %s "(cached) " >&6
29913 else
29914
29915   gl_save_compiler_FLAGS="$CFLAGS"
29916   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors $gl_positive"
29917   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29918 /* end confdefs.h.  */
29919
29920 int
29921 main (void)
29922 {
29923
29924   ;
29925   return 0;
29926 }
29927 _ACEOF
29928 if ac_fn_c_try_link "$LINENO"
29929 then :
29930   eval "$as_gl_Warn=yes"
29931 else
29932   eval "$as_gl_Warn=no"
29933 fi
29934 rm -f core conftest.err conftest.$ac_objext \
29935     conftest$ac_exeext conftest.$ac_ext
29936   CFLAGS="$gl_save_compiler_FLAGS"
29937
29938 fi
29939 eval ac_res=\$$as_gl_Warn
29940                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
29941 printf "%s\n" "$ac_res" >&6; }
29942 if eval test \"x\$"$as_gl_Warn"\" = x"yes"
29943 then :
29944   as_fn_append WARN_CFLAGS " $w"
29945 fi
29946
29947
29948   done
29949
29950
29951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-sign-compare" >&5
29952 printf %s "checking whether C compiler handles -Wno-sign-compare... " >&6; }
29953 if test ${gl_cv_warn_c__Wno_sign_compare+y}
29954 then :
29955   printf %s "(cached) " >&6
29956 else
29957
29958   gl_save_compiler_FLAGS="$CFLAGS"
29959   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsign-compare"
29960   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29961 /* end confdefs.h.  */
29962
29963 int
29964 main (void)
29965 {
29966
29967   ;
29968   return 0;
29969 }
29970 _ACEOF
29971 if ac_fn_c_try_link "$LINENO"
29972 then :
29973   gl_cv_warn_c__Wno_sign_compare=yes
29974 else
29975   gl_cv_warn_c__Wno_sign_compare=no
29976 fi
29977 rm -f core conftest.err conftest.$ac_objext \
29978     conftest$ac_exeext conftest.$ac_ext
29979   CFLAGS="$gl_save_compiler_FLAGS"
29980
29981 fi
29982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_sign_compare" >&5
29983 printf "%s\n" "$gl_cv_warn_c__Wno_sign_compare" >&6; }
29984 if test "x$gl_cv_warn_c__Wno_sign_compare" = xyes
29985 then :
29986   as_fn_append WARN_CFLAGS " -Wno-sign-compare"
29987 fi
29988
29989      # Too many warnings for now
29990
29991
29992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-unused-parameter" >&5
29993 printf %s "checking whether C compiler handles -Wno-unused-parameter... " >&6; }
29994 if test ${gl_cv_warn_c__Wno_unused_parameter+y}
29995 then :
29996   printf %s "(cached) " >&6
29997 else
29998
29999   gl_save_compiler_FLAGS="$CFLAGS"
30000   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wunused-parameter"
30001   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30002 /* end confdefs.h.  */
30003
30004 int
30005 main (void)
30006 {
30007
30008   ;
30009   return 0;
30010 }
30011 _ACEOF
30012 if ac_fn_c_try_link "$LINENO"
30013 then :
30014   gl_cv_warn_c__Wno_unused_parameter=yes
30015 else
30016   gl_cv_warn_c__Wno_unused_parameter=no
30017 fi
30018 rm -f core conftest.err conftest.$ac_objext \
30019     conftest$ac_exeext conftest.$ac_ext
30020   CFLAGS="$gl_save_compiler_FLAGS"
30021
30022 fi
30023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_unused_parameter" >&5
30024 printf "%s\n" "$gl_cv_warn_c__Wno_unused_parameter" >&6; }
30025 if test "x$gl_cv_warn_c__Wno_unused_parameter" = xyes
30026 then :
30027   as_fn_append WARN_CFLAGS " -Wno-unused-parameter"
30028 fi
30029
30030  # Too many warnings for now
30031
30032
30033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wsuggest-attribute=const" >&5
30034 printf %s "checking whether C compiler handles -Wsuggest-attribute=const... " >&6; }
30035 if test ${gl_cv_warn_c__Wsuggest_attribute_const+y}
30036 then :
30037   printf %s "(cached) " >&6
30038 else
30039
30040   gl_save_compiler_FLAGS="$CFLAGS"
30041   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsuggest-attribute=const"
30042   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30043 /* end confdefs.h.  */
30044
30045 int
30046 main (void)
30047 {
30048
30049   ;
30050   return 0;
30051 }
30052 _ACEOF
30053 if ac_fn_c_try_link "$LINENO"
30054 then :
30055   gl_cv_warn_c__Wsuggest_attribute_const=yes
30056 else
30057   gl_cv_warn_c__Wsuggest_attribute_const=no
30058 fi
30059 rm -f core conftest.err conftest.$ac_objext \
30060     conftest$ac_exeext conftest.$ac_ext
30061   CFLAGS="$gl_save_compiler_FLAGS"
30062
30063 fi
30064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wsuggest_attribute_const" >&5
30065 printf "%s\n" "$gl_cv_warn_c__Wsuggest_attribute_const" >&6; }
30066 if test "x$gl_cv_warn_c__Wsuggest_attribute_const" = xyes
30067 then :
30068   as_fn_append WARN_CFLAGS " -Wsuggest-attribute=const"
30069 fi
30070
30071
30072
30073
30074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wsuggest-attribute=noreturn" >&5
30075 printf %s "checking whether C compiler handles -Wsuggest-attribute=noreturn... " >&6; }
30076 if test ${gl_cv_warn_c__Wsuggest_attribute_noreturn+y}
30077 then :
30078   printf %s "(cached) " >&6
30079 else
30080
30081   gl_save_compiler_FLAGS="$CFLAGS"
30082   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsuggest-attribute=noreturn"
30083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30084 /* end confdefs.h.  */
30085
30086 int
30087 main (void)
30088 {
30089
30090   ;
30091   return 0;
30092 }
30093 _ACEOF
30094 if ac_fn_c_try_link "$LINENO"
30095 then :
30096   gl_cv_warn_c__Wsuggest_attribute_noreturn=yes
30097 else
30098   gl_cv_warn_c__Wsuggest_attribute_noreturn=no
30099 fi
30100 rm -f core conftest.err conftest.$ac_objext \
30101     conftest$ac_exeext conftest.$ac_ext
30102   CFLAGS="$gl_save_compiler_FLAGS"
30103
30104 fi
30105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wsuggest_attribute_noreturn" >&5
30106 printf "%s\n" "$gl_cv_warn_c__Wsuggest_attribute_noreturn" >&6; }
30107 if test "x$gl_cv_warn_c__Wsuggest_attribute_noreturn" = xyes
30108 then :
30109   as_fn_append WARN_CFLAGS " -Wsuggest-attribute=noreturn"
30110 fi
30111
30112
30113
30114
30115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-format-nonliteral" >&5
30116 printf %s "checking whether C compiler handles -Wno-format-nonliteral... " >&6; }
30117 if test ${gl_cv_warn_c__Wno_format_nonliteral+y}
30118 then :
30119   printf %s "(cached) " >&6
30120 else
30121
30122   gl_save_compiler_FLAGS="$CFLAGS"
30123   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wformat-nonliteral"
30124   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30125 /* end confdefs.h.  */
30126
30127 int
30128 main (void)
30129 {
30130
30131   ;
30132   return 0;
30133 }
30134 _ACEOF
30135 if ac_fn_c_try_link "$LINENO"
30136 then :
30137   gl_cv_warn_c__Wno_format_nonliteral=yes
30138 else
30139   gl_cv_warn_c__Wno_format_nonliteral=no
30140 fi
30141 rm -f core conftest.err conftest.$ac_objext \
30142     conftest$ac_exeext conftest.$ac_ext
30143   CFLAGS="$gl_save_compiler_FLAGS"
30144
30145 fi
30146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_format_nonliteral" >&5
30147 printf "%s\n" "$gl_cv_warn_c__Wno_format_nonliteral" >&6; }
30148 if test "x$gl_cv_warn_c__Wno_format_nonliteral" = xyes
30149 then :
30150   as_fn_append WARN_CFLAGS " -Wno-format-nonliteral"
30151 fi
30152
30153
30154
30155   # Enable this warning only with gcc-4.7 and newer.  With 4.6.2 20111027,
30156   # it suggests test.c's advance function may be pure, even though it
30157   # increments a global variable.  Oops.
30158   # Normally we'd write code to test for the precise failure, but that
30159   # requires a relatively large input to make gcc exhibit the failure.
30160   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30161 /* end confdefs.h.  */
30162
30163 #if (4) < __GNUC__ || ((4) == __GNUC__ && (7) <= __GNUC_MINOR__)
30164 /* ok */
30165 #else
30166 # error "your version of gcc is older than 4.7"
30167 #endif
30168
30169 int
30170 main (void)
30171 {
30172
30173   ;
30174   return 0;
30175 },
30176
30177 _ACEOF
30178 if ac_fn_c_try_cpp "$LINENO"
30179 then :
30180
30181
30182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wsuggest-attribute=pure" >&5
30183 printf %s "checking whether C compiler handles -Wsuggest-attribute=pure... " >&6; }
30184 if test ${gl_cv_warn_c__Wsuggest_attribute_pure+y}
30185 then :
30186   printf %s "(cached) " >&6
30187 else
30188
30189   gl_save_compiler_FLAGS="$CFLAGS"
30190   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wsuggest-attribute=pure"
30191   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30192 /* end confdefs.h.  */
30193
30194 int
30195 main (void)
30196 {
30197
30198   ;
30199   return 0;
30200 }
30201 _ACEOF
30202 if ac_fn_c_try_link "$LINENO"
30203 then :
30204   gl_cv_warn_c__Wsuggest_attribute_pure=yes
30205 else
30206   gl_cv_warn_c__Wsuggest_attribute_pure=no
30207 fi
30208 rm -f core conftest.err conftest.$ac_objext \
30209     conftest$ac_exeext conftest.$ac_ext
30210   CFLAGS="$gl_save_compiler_FLAGS"
30211
30212 fi
30213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wsuggest_attribute_pure" >&5
30214 printf "%s\n" "$gl_cv_warn_c__Wsuggest_attribute_pure" >&6; }
30215 if test "x$gl_cv_warn_c__Wsuggest_attribute_pure" = xyes
30216 then :
30217   as_fn_append WARN_CFLAGS " -Wsuggest-attribute=pure"
30218 fi
30219
30220
30221 fi
30222 rm -f conftest.err conftest.i conftest.$ac_ext
30223
30224
30225
30226   # In spite of excluding -Wlogical-op above, it is enabled, as of
30227   # gcc 4.5.0 20090517, and it provokes warnings in cat.c, dd.c, truncate.c
30228
30229
30230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -Wno-logical-op" >&5
30231 printf %s "checking whether C compiler handles -Wno-logical-op... " >&6; }
30232 if test ${gl_cv_warn_c__Wno_logical_op+y}
30233 then :
30234   printf %s "(cached) " >&6
30235 else
30236
30237   gl_save_compiler_FLAGS="$CFLAGS"
30238   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -Wlogical-op"
30239   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30240 /* end confdefs.h.  */
30241
30242 int
30243 main (void)
30244 {
30245
30246   ;
30247   return 0;
30248 }
30249 _ACEOF
30250 if ac_fn_c_try_link "$LINENO"
30251 then :
30252   gl_cv_warn_c__Wno_logical_op=yes
30253 else
30254   gl_cv_warn_c__Wno_logical_op=no
30255 fi
30256 rm -f core conftest.err conftest.$ac_objext \
30257     conftest$ac_exeext conftest.$ac_ext
30258   CFLAGS="$gl_save_compiler_FLAGS"
30259
30260 fi
30261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__Wno_logical_op" >&5
30262 printf "%s\n" "$gl_cv_warn_c__Wno_logical_op" >&6; }
30263 if test "x$gl_cv_warn_c__Wno_logical_op" = xyes
30264 then :
30265   as_fn_append WARN_CFLAGS " -Wno-logical-op"
30266 fi
30267
30268
30269
30270
30271
30272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -fdiagnostics-show-option" >&5
30273 printf %s "checking whether C compiler handles -fdiagnostics-show-option... " >&6; }
30274 if test ${gl_cv_warn_c__fdiagnostics_show_option+y}
30275 then :
30276   printf %s "(cached) " >&6
30277 else
30278
30279   gl_save_compiler_FLAGS="$CFLAGS"
30280   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -fdiagnostics-show-option"
30281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30282 /* end confdefs.h.  */
30283
30284 int
30285 main (void)
30286 {
30287
30288   ;
30289   return 0;
30290 }
30291 _ACEOF
30292 if ac_fn_c_try_link "$LINENO"
30293 then :
30294   gl_cv_warn_c__fdiagnostics_show_option=yes
30295 else
30296   gl_cv_warn_c__fdiagnostics_show_option=no
30297 fi
30298 rm -f core conftest.err conftest.$ac_objext \
30299     conftest$ac_exeext conftest.$ac_ext
30300   CFLAGS="$gl_save_compiler_FLAGS"
30301
30302 fi
30303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__fdiagnostics_show_option" >&5
30304 printf "%s\n" "$gl_cv_warn_c__fdiagnostics_show_option" >&6; }
30305 if test "x$gl_cv_warn_c__fdiagnostics_show_option" = xyes
30306 then :
30307   as_fn_append WARN_CFLAGS " -fdiagnostics-show-option"
30308 fi
30309
30310
30311
30312
30313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether C compiler handles -funit-at-a-time" >&5
30314 printf %s "checking whether C compiler handles -funit-at-a-time... " >&6; }
30315 if test ${gl_cv_warn_c__funit_at_a_time+y}
30316 then :
30317   printf %s "(cached) " >&6
30318 else
30319
30320   gl_save_compiler_FLAGS="$CFLAGS"
30321   as_fn_append CFLAGS " $gl_unknown_warnings_are_errors -funit-at-a-time"
30322   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30323 /* end confdefs.h.  */
30324
30325 int
30326 main (void)
30327 {
30328
30329   ;
30330   return 0;
30331 }
30332 _ACEOF
30333 if ac_fn_c_try_link "$LINENO"
30334 then :
30335   gl_cv_warn_c__funit_at_a_time=yes
30336 else
30337   gl_cv_warn_c__funit_at_a_time=no
30338 fi
30339 rm -f core conftest.err conftest.$ac_objext \
30340     conftest$ac_exeext conftest.$ac_ext
30341   CFLAGS="$gl_save_compiler_FLAGS"
30342
30343 fi
30344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_warn_c__funit_at_a_time" >&5
30345 printf "%s\n" "$gl_cv_warn_c__funit_at_a_time" >&6; }
30346 if test "x$gl_cv_warn_c__funit_at_a_time" = xyes
30347 then :
30348   as_fn_append WARN_CFLAGS " -funit-at-a-time"
30349 fi
30350
30351
30352
30353
30354
30355
30356 printf "%s\n" "#define lint 1" >>confdefs.h
30357
30358
30359
30360 printf "%s\n" "#define GNULIB_PORTCHECK 1" >>confdefs.h
30361
30362
30363   # We use a slightly smaller set of warning options for lib/.
30364   # Remove the following and save the result in GNULIB_WARN_CFLAGS.
30365   nw=
30366   nw="$nw -Wstrict-overflow"
30367   nw="$nw -Wformat-truncation=2"
30368   nw="$nw -Wuninitialized"
30369   nw="$nw -Wunused-macros"
30370   nw="$nw -Wmissing-prototypes"
30371   nw="$nw -Wold-style-definition"
30372
30373   gl_warn_set=
30374   set x $WARN_CFLAGS; shift
30375   for gl_warn_item
30376   do
30377     case " $nw " in
30378       *" $gl_warn_item "*)
30379         ;;
30380       *)
30381         gl_warn_set="$gl_warn_set $gl_warn_item"
30382         ;;
30383     esac
30384   done
30385   GNULIB_WARN_CFLAGS=$gl_warn_set
30386
30387
30388 fi
30389
30390 # cc -E produces incorrect asm files on SVR4, so postprocess it.
30391 ASCPPPOST="sed '/^ *\\#/d; s,//.*,,; s/% /%/g; s/\\. /./g'"
30392
30393
30394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for underline in external names" >&5
30395 printf %s "checking for underline in external names... " >&6; }
30396 if test ${gzip_cv_underline+y}
30397 then :
30398   printf %s "(cached) " >&6
30399 else
30400   gzip_cv_underline=yes
30401    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30402 /* end confdefs.h.  */
30403 int foo() {return 0;}
30404 int
30405 main (void)
30406 {
30407
30408   ;
30409   return 0;
30410 }
30411 _ACEOF
30412 if ac_fn_c_try_compile "$LINENO"
30413 then :
30414   $NM conftest.$OBJEXT | grep _foo >/dev/null 2>&1 ||
30415         gzip_cv_underline=no
30416 fi
30417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30418 fi
30419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gzip_cv_underline" >&5
30420 printf "%s\n" "$gzip_cv_underline" >&6; }
30421 ASCPPFLAGS=
30422 if test $gzip_cv_underline = no; then
30423   ASCPPFLAGS='-DNO_UNDERLINE'
30424 fi
30425
30426
30427
30428 # Try to assemble match.S.
30429 # "gcc -E match.s" ignores -E, so we must use _match.S.
30430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an assembler syntax supported by this package" >&5
30431 printf %s "checking for an assembler syntax supported by this package... " >&6; }
30432 if test ${gzip_cv_assembler+y}
30433 then :
30434   printf %s "(cached) " >&6
30435 else
30436   gzip_cv_assembler=no
30437    case $DEFS in
30438    *NO_ASM*) ;;
30439    *)
30440      if cp $srcdir/lib/match.c _match.S &&
30441         eval "$CPP $CPPFLAGS $ASCPPFLAGS _match.S > _match.i" &&
30442         eval "$ASCPPPOST < _match.i > match_.s"; then
30443        if test ! -s match_.s || grep error < match_.s > /dev/null; then
30444          :
30445        elif eval "$CC $CPPFLAGS $CFLAGS -c match_.s >/dev/null" &&
30446             test -f match_.$OBJEXT; then
30447          rm -f match_.$OBJEXT
30448          gzip_cv_assembler=yes
30449          if echo 'void foo (void) {}' > conftest.c &&
30450             eval "$CC $CPPFLAGS $CFLAGS -S conftest.c >/dev/null" &&
30451             grep '\.note\.GNU-stack' conftest.s >/dev/null &&
30452             eval "$CC $CPPFLAGS $CFLAGS -c -Wa,--noexecstack match_.s >/dev/null" &&
30453             test -f match_.$OBJEXT; then
30454            gzip_cv_assembler='yes, with -Wa,--noexecstack'
30455          fi
30456        fi
30457      fi
30458      rm -f conftest* _match.i _match.S match_.s match_.$OBJEXT;;
30459    esac
30460 fi
30461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gzip_cv_assembler" >&5
30462 printf "%s\n" "$gzip_cv_assembler" >&6; }
30463 if test "$gzip_cv_assembler" != no; then
30464
30465 printf "%s\n" "#define ASMV /**/" >>confdefs.h
30466
30467   case " $LIBOBJS " in
30468   *" match.$ac_objext "* ) ;;
30469   *) LIBOBJS="$LIBOBJS match.$ac_objext"
30470  ;;
30471 esac
30472
30473 fi
30474 if test "$gzip_cv_assembler" = 'yes, with -Wa,--noexecstack'; then
30475   ASFLAGS_config='-Wa,--noexecstack'
30476 else
30477   ASFLAGS_config=
30478 fi
30479
30480
30481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
30482 printf %s "checking for library containing strerror... " >&6; }
30483 if test ${ac_cv_search_strerror+y}
30484 then :
30485   printf %s "(cached) " >&6
30486 else
30487   ac_func_search_save_LIBS=$LIBS
30488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30489 /* end confdefs.h.  */
30490
30491 /* Override any GCC internal prototype to avoid an error.
30492    Use char because int might match the return type of a GCC
30493    builtin and then its argument prototype would still apply.  */
30494 #ifdef __cplusplus
30495 extern "C"
30496 #endif
30497 char strerror ();
30498 int
30499 main (void)
30500 {
30501 return strerror ();
30502   ;
30503   return 0;
30504 }
30505 _ACEOF
30506 for ac_lib in '' cposix
30507 do
30508   if test -z "$ac_lib"; then
30509     ac_res="none required"
30510   else
30511     ac_res=-l$ac_lib
30512     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30513   fi
30514   if ac_fn_c_try_link "$LINENO"
30515 then :
30516   ac_cv_search_strerror=$ac_res
30517 fi
30518 rm -f core conftest.err conftest.$ac_objext \
30519     conftest$ac_exeext
30520   if test ${ac_cv_search_strerror+y}
30521 then :
30522   break
30523 fi
30524 done
30525 if test ${ac_cv_search_strerror+y}
30526 then :
30527
30528 else
30529   ac_cv_search_strerror=no
30530 fi
30531 rm conftest.$ac_ext
30532 LIBS=$ac_func_search_save_LIBS
30533 fi
30534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
30535 printf "%s\n" "$ac_cv_search_strerror" >&6; }
30536 ac_res=$ac_cv_search_strerror
30537 if test "$ac_res" != no
30538 then :
30539   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30540
30541 fi
30542
30543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
30544 printf %s "checking for an ANSI C-conforming const... " >&6; }
30545 if test ${ac_cv_c_const+y}
30546 then :
30547   printf %s "(cached) " >&6
30548 else
30549   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30550 /* end confdefs.h.  */
30551
30552 int
30553 main (void)
30554 {
30555
30556 #ifndef __cplusplus
30557   /* Ultrix mips cc rejects this sort of thing.  */
30558   typedef int charset[2];
30559   const charset cs = { 0, 0 };
30560   /* SunOS 4.1.1 cc rejects this.  */
30561   char const *const *pcpcc;
30562   char **ppc;
30563   /* NEC SVR4.0.2 mips cc rejects this.  */
30564   struct point {int x, y;};
30565   static struct point const zero = {0,0};
30566   /* IBM XL C 1.02.0.0 rejects this.
30567      It does not let you subtract one const X* pointer from another in
30568      an arm of an if-expression whose if-part is not a constant
30569      expression */
30570   const char *g = "string";
30571   pcpcc = &g + (g ? g-g : 0);
30572   /* HPUX 7.0 cc rejects these. */
30573   ++pcpcc;
30574   ppc = (char**) pcpcc;
30575   pcpcc = (char const *const *) ppc;
30576   { /* SCO 3.2v4 cc rejects this sort of thing.  */
30577     char tx;
30578     char *t = &tx;
30579     char const *s = 0 ? (char *) 0 : (char const *) 0;
30580
30581     *t++ = 0;
30582     if (s) return 0;
30583   }
30584   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
30585     int x[] = {25, 17};
30586     const int *foo = &x[0];
30587     ++foo;
30588   }
30589   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
30590     typedef const int *iptr;
30591     iptr p = 0;
30592     ++p;
30593   }
30594   { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
30595        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
30596     struct s { int j; const int *ap[3]; } bx;
30597     struct s *b = &bx; b->j = 5;
30598   }
30599   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
30600     const int foo = 10;
30601     if (!foo) return 0;
30602   }
30603   return !cs[0] && !zero.x;
30604 #endif
30605
30606   ;
30607   return 0;
30608 }
30609 _ACEOF
30610 if ac_fn_c_try_compile "$LINENO"
30611 then :
30612   ac_cv_c_const=yes
30613 else
30614   ac_cv_c_const=no
30615 fi
30616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30617 fi
30618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
30619 printf "%s\n" "$ac_cv_c_const" >&6; }
30620 if test $ac_cv_c_const = no; then
30621
30622 printf "%s\n" "#define const /**/" >>confdefs.h
30623
30624 fi
30625
30626 # Autoupdate added the following line to ensure that your configure
30627 # script's behavior did not change.  It is probably safe to remove.
30628
30629
30630
30631
30632
30633
30634
30635
30636
30637 ac_header_dirent=no
30638 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
30639   as_ac_Header=`printf "%s\n" "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
30640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
30641 printf %s "checking for $ac_hdr that defines DIR... " >&6; }
30642 if eval test \${$as_ac_Header+y}
30643 then :
30644   printf %s "(cached) " >&6
30645 else
30646   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30647 /* end confdefs.h.  */
30648 #include <sys/types.h>
30649 #include <$ac_hdr>
30650
30651 int
30652 main (void)
30653 {
30654 if ((DIR *) 0)
30655 return 0;
30656   ;
30657   return 0;
30658 }
30659 _ACEOF
30660 if ac_fn_c_try_compile "$LINENO"
30661 then :
30662   eval "$as_ac_Header=yes"
30663 else
30664   eval "$as_ac_Header=no"
30665 fi
30666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30667 fi
30668 eval ac_res=\$$as_ac_Header
30669                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
30670 printf "%s\n" "$ac_res" >&6; }
30671 if eval test \"x\$"$as_ac_Header"\" = x"yes"
30672 then :
30673   cat >>confdefs.h <<_ACEOF
30674 #define `printf "%s\n" "HAVE_$ac_hdr" | $as_tr_cpp` 1
30675 _ACEOF
30676
30677 ac_header_dirent=$ac_hdr; break
30678 fi
30679
30680 done
30681 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
30682 if test $ac_header_dirent = dirent.h; then
30683   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
30684 printf %s "checking for library containing opendir... " >&6; }
30685 if test ${ac_cv_search_opendir+y}
30686 then :
30687   printf %s "(cached) " >&6
30688 else
30689   ac_func_search_save_LIBS=$LIBS
30690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30691 /* end confdefs.h.  */
30692
30693 /* Override any GCC internal prototype to avoid an error.
30694    Use char because int might match the return type of a GCC
30695    builtin and then its argument prototype would still apply.  */
30696 #ifdef __cplusplus
30697 extern "C"
30698 #endif
30699 char opendir ();
30700 int
30701 main (void)
30702 {
30703 return opendir ();
30704   ;
30705   return 0;
30706 }
30707 _ACEOF
30708 for ac_lib in '' dir
30709 do
30710   if test -z "$ac_lib"; then
30711     ac_res="none required"
30712   else
30713     ac_res=-l$ac_lib
30714     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30715   fi
30716   if ac_fn_c_try_link "$LINENO"
30717 then :
30718   ac_cv_search_opendir=$ac_res
30719 fi
30720 rm -f core conftest.err conftest.$ac_objext \
30721     conftest$ac_exeext
30722   if test ${ac_cv_search_opendir+y}
30723 then :
30724   break
30725 fi
30726 done
30727 if test ${ac_cv_search_opendir+y}
30728 then :
30729
30730 else
30731   ac_cv_search_opendir=no
30732 fi
30733 rm conftest.$ac_ext
30734 LIBS=$ac_func_search_save_LIBS
30735 fi
30736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
30737 printf "%s\n" "$ac_cv_search_opendir" >&6; }
30738 ac_res=$ac_cv_search_opendir
30739 if test "$ac_res" != no
30740 then :
30741   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30742
30743 fi
30744
30745 else
30746   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
30747 printf %s "checking for library containing opendir... " >&6; }
30748 if test ${ac_cv_search_opendir+y}
30749 then :
30750   printf %s "(cached) " >&6
30751 else
30752   ac_func_search_save_LIBS=$LIBS
30753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30754 /* end confdefs.h.  */
30755
30756 /* Override any GCC internal prototype to avoid an error.
30757    Use char because int might match the return type of a GCC
30758    builtin and then its argument prototype would still apply.  */
30759 #ifdef __cplusplus
30760 extern "C"
30761 #endif
30762 char opendir ();
30763 int
30764 main (void)
30765 {
30766 return opendir ();
30767   ;
30768   return 0;
30769 }
30770 _ACEOF
30771 for ac_lib in '' x
30772 do
30773   if test -z "$ac_lib"; then
30774     ac_res="none required"
30775   else
30776     ac_res=-l$ac_lib
30777     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
30778   fi
30779   if ac_fn_c_try_link "$LINENO"
30780 then :
30781   ac_cv_search_opendir=$ac_res
30782 fi
30783 rm -f core conftest.err conftest.$ac_objext \
30784     conftest$ac_exeext
30785   if test ${ac_cv_search_opendir+y}
30786 then :
30787   break
30788 fi
30789 done
30790 if test ${ac_cv_search_opendir+y}
30791 then :
30792
30793 else
30794   ac_cv_search_opendir=no
30795 fi
30796 rm conftest.$ac_ext
30797 LIBS=$ac_func_search_save_LIBS
30798 fi
30799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
30800 printf "%s\n" "$ac_cv_search_opendir" >&6; }
30801 ac_res=$ac_cv_search_opendir
30802 if test "$ac_res" != no
30803 then :
30804   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
30805
30806 fi
30807
30808 fi
30809
30810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
30811 printf %s "checking return type of signal handlers... " >&6; }
30812 if test ${ac_cv_type_signal+y}
30813 then :
30814   printf %s "(cached) " >&6
30815 else
30816   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30817 /* end confdefs.h.  */
30818 #include <sys/types.h>
30819 #include <signal.h>
30820
30821 int
30822 main (void)
30823 {
30824 return *(signal (0, 0)) (0) == 1;
30825   ;
30826   return 0;
30827 }
30828 _ACEOF
30829 if ac_fn_c_try_compile "$LINENO"
30830 then :
30831   ac_cv_type_signal=int
30832 else
30833   ac_cv_type_signal=void
30834 fi
30835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30836 fi
30837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
30838 printf "%s\n" "$ac_cv_type_signal" >&6; }
30839
30840 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
30841
30842
30843 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
30844 if test "x$ac_cv_type_size_t" = xyes
30845 then :
30846
30847 else
30848
30849 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
30850
30851 fi
30852
30853 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
30854 if test "x$ac_cv_type_off_t" = xyes
30855 then :
30856
30857 else
30858
30859 printf "%s\n" "#define off_t long int" >>confdefs.h
30860
30861 fi
30862
30863
30864 ac_config_files="$ac_config_files Makefile doc/Makefile lib/Makefile tests/Makefile"
30865
30866 cat >confcache <<\_ACEOF
30867 # This file is a shell script that caches the results of configure
30868 # tests run on this system so they can be shared between configure
30869 # scripts and configure runs, see configure's option --config-cache.
30870 # It is not useful on other systems.  If it contains results you don't
30871 # want to keep, you may remove or edit it.
30872 #
30873 # config.status only pays attention to the cache file if you give it
30874 # the --recheck option to rerun configure.
30875 #
30876 # `ac_cv_env_foo' variables (set or unset) will be overridden when
30877 # loading this file, other *unset* `ac_cv_foo' will be assigned the
30878 # following values.
30879
30880 _ACEOF
30881
30882 # The following way of writing the cache mishandles newlines in values,
30883 # but we know of no workaround that is simple, portable, and efficient.
30884 # So, we kill variables containing newlines.
30885 # Ultrix sh set writes to stderr and can't be redirected directly,
30886 # and sets the high bit in the cache file unless we assign to the vars.
30887 (
30888   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
30889     eval ac_val=\$$ac_var
30890     case $ac_val in #(
30891     *${as_nl}*)
30892       case $ac_var in #(
30893       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
30894 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
30895       esac
30896       case $ac_var in #(
30897       _ | IFS | as_nl) ;; #(
30898       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
30899       *) { eval $ac_var=; unset $ac_var;} ;;
30900       esac ;;
30901     esac
30902   done
30903
30904   (set) 2>&1 |
30905     case $as_nl`(ac_space=' '; set) 2>&1` in #(
30906     *${as_nl}ac_space=\ *)
30907       # `set' does not quote correctly, so add quotes: double-quote
30908       # substitution turns \\\\ into \\, and sed turns \\ into \.
30909       sed -n \
30910         "s/'/'\\\\''/g;
30911           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
30912       ;; #(
30913     *)
30914       # `set' quotes correctly as required by POSIX, so do not add quotes.
30915       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
30916       ;;
30917     esac |
30918     sort
30919 ) |
30920   sed '
30921      /^ac_cv_env_/b end
30922      t clear
30923      :clear
30924      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
30925      t end
30926      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
30927      :end' >>confcache
30928 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
30929   if test -w "$cache_file"; then
30930     if test "x$cache_file" != "x/dev/null"; then
30931       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
30932 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
30933       if test ! -f "$cache_file" || test -h "$cache_file"; then
30934         cat confcache >"$cache_file"
30935       else
30936         case $cache_file in #(
30937         */* | ?:*)
30938           mv -f confcache "$cache_file"$$ &&
30939           mv -f "$cache_file"$$ "$cache_file" ;; #(
30940         *)
30941           mv -f confcache "$cache_file" ;;
30942         esac
30943       fi
30944     fi
30945   else
30946     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
30947 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
30948   fi
30949 fi
30950 rm -f confcache
30951
30952 test "x$prefix" = xNONE && prefix=$ac_default_prefix
30953 # Let make expand exec_prefix.
30954 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
30955
30956 DEFS=-DHAVE_CONFIG_H
30957
30958 ac_libobjs=
30959 ac_ltlibobjs=
30960 U=
30961 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
30962   # 1. Remove the extension, and $U if already installed.
30963   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
30964   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
30965   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
30966   #    will be set to the directory where LIBOBJS objects are built.
30967   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
30968   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
30969 done
30970 LIBOBJS=$ac_libobjs
30971
30972 LTLIBOBJS=$ac_ltlibobjs
30973
30974
30975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
30976 printf %s "checking that generated files are newer than configure... " >&6; }
30977    if test -n "$am_sleep_pid"; then
30978      # Hide warnings about reused PIDs.
30979      wait $am_sleep_pid 2>/dev/null
30980    fi
30981    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
30982 printf "%s\n" "done" >&6; }
30983  if test -n "$EXEEXT"; then
30984   am__EXEEXT_TRUE=
30985   am__EXEEXT_FALSE='#'
30986 else
30987   am__EXEEXT_TRUE='#'
30988   am__EXEEXT_FALSE=
30989 fi
30990
30991 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
30992   as_fn_error $? "conditional \"AMDEP\" was never defined.
30993 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30994 fi
30995 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
30996   as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
30997 Usually this means the macro was only invoked conditionally." "$LINENO" 5
30998 fi
30999 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
31000   as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
31001 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31002 fi
31003 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
31004   as_fn_error $? "conditional \"GL_GENERATE_ALLOCA_H\" was never defined.
31005 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31006 fi
31007 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
31008   as_fn_error $? "conditional \"GL_GENERATE_ERRNO_H\" was never defined.
31009 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31010 fi
31011 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
31012   as_fn_error $? "conditional \"GL_GENERATE_FLOAT_H\" was never defined.
31013 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31014 fi
31015
31016
31017 if test -z "${GNU_MAKE_TRUE}" && test -z "${GNU_MAKE_FALSE}"; then
31018   as_fn_error $? "conditional \"GNU_MAKE\" was never defined.
31019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31020 fi
31021 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
31022   as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
31023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31024 fi
31025 CONFIG_INCLUDE=lib/config.h
31026
31027 if test -z "${GL_GENERATE_STDBOOL_H_TRUE}" && test -z "${GL_GENERATE_STDBOOL_H_FALSE}"; then
31028   as_fn_error $? "conditional \"GL_GENERATE_STDBOOL_H\" was never defined.
31029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31030 fi
31031 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
31032   as_fn_error $? "conditional \"GL_GENERATE_STDDEF_H\" was never defined.
31033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31034 fi
31035 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
31036   as_fn_error $? "conditional \"GL_GENERATE_LIMITS_H\" was never defined.
31037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31038 fi
31039 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
31040   as_fn_error $? "conditional \"GL_GENERATE_STDINT_H\" was never defined.
31041 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31042 fi
31043 if test -z "${GL_GENERATE_STDNORETURN_H_TRUE}" && test -z "${GL_GENERATE_STDNORETURN_H_FALSE}"; then
31044   as_fn_error $? "conditional \"GL_GENERATE_STDNORETURN_H\" was never defined.
31045 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31046 fi
31047 if test -z "${GL_GENERATE_UTIME_H_TRUE}" && test -z "${GL_GENERATE_UTIME_H_FALSE}"; then
31048   as_fn_error $? "conditional \"GL_GENERATE_UTIME_H\" was never defined.
31049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
31050 fi
31051
31052     gl_libobjs=
31053     gl_ltlibobjs=
31054     if test -n "$gl_LIBOBJS"; then
31055       # Remove the extension.
31056       sed_drop_objext='s/\.o$//;s/\.obj$//'
31057       for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
31058         gl_libobjs="$gl_libobjs $i.$ac_objext"
31059         gl_ltlibobjs="$gl_ltlibobjs $i.lo"
31060       done
31061     fi
31062     gl_LIBOBJS=$gl_libobjs
31063
31064     gl_LTLIBOBJS=$gl_ltlibobjs
31065
31066
31067
31068     gltests_libobjs=
31069     gltests_ltlibobjs=
31070     if test -n "$gltests_LIBOBJS"; then
31071       # Remove the extension.
31072       sed_drop_objext='s/\.o$//;s/\.obj$//'
31073       for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
31074         gltests_libobjs="$gltests_libobjs $i.$ac_objext"
31075         gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
31076       done
31077     fi
31078     gltests_LIBOBJS=$gltests_libobjs
31079
31080     gltests_LTLIBOBJS=$gltests_ltlibobjs
31081
31082
31083
31084 : "${CONFIG_STATUS=./config.status}"
31085 ac_write_fail=0
31086 ac_clean_files_save=$ac_clean_files
31087 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
31088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
31089 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
31090 as_write_fail=0
31091 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
31092 #! $SHELL
31093 # Generated by $as_me.
31094 # Run this file to recreate the current configuration.
31095 # Compiler output produced by configure, useful for debugging
31096 # configure, is in config.log if it exists.
31097
31098 debug=false
31099 ac_cs_recheck=false
31100 ac_cs_silent=false
31101
31102 SHELL=\${CONFIG_SHELL-$SHELL}
31103 export SHELL
31104 _ASEOF
31105 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
31106 ## -------------------- ##
31107 ## M4sh Initialization. ##
31108 ## -------------------- ##
31109
31110 # Be more Bourne compatible
31111 DUALCASE=1; export DUALCASE # for MKS sh
31112 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
31113 then :
31114   emulate sh
31115   NULLCMD=:
31116   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
31117   # is contrary to our usage.  Disable this feature.
31118   alias -g '${1+"$@"}'='"$@"'
31119   setopt NO_GLOB_SUBST
31120 else
31121   case `(set -o) 2>/dev/null` in #(
31122   *posix*) :
31123     set -o posix ;; #(
31124   *) :
31125      ;;
31126 esac
31127 fi
31128
31129
31130 # The user is always right.
31131 if ${PATH_SEPARATOR+false} :; then
31132   PATH_SEPARATOR=:
31133   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
31134     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
31135       PATH_SEPARATOR=';'
31136   }
31137 fi
31138
31139
31140 # IFS
31141 # We need space, tab and new line, in precisely that order.  Quoting is
31142 # there to prevent editors from complaining about space-tab.
31143 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
31144 # splitting by setting IFS to empty value.)
31145 as_nl='
31146 '
31147 export as_nl
31148 IFS=" ""        $as_nl"
31149
31150 # Find who we are.  Look in the path if we contain no directory separator.
31151 as_myself=
31152 case $0 in #((
31153   *[\\/]* ) as_myself=$0 ;;
31154   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31155 for as_dir in $PATH
31156 do
31157   IFS=$as_save_IFS
31158   case $as_dir in #(((
31159     '') as_dir=./ ;;
31160     */) ;;
31161     *) as_dir=$as_dir/ ;;
31162   esac
31163     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
31164   done
31165 IFS=$as_save_IFS
31166
31167      ;;
31168 esac
31169 # We did not find ourselves, most probably we were run as `sh COMMAND'
31170 # in which case we are not to be found in the path.
31171 if test "x$as_myself" = x; then
31172   as_myself=$0
31173 fi
31174 if test ! -f "$as_myself"; then
31175   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
31176   exit 1
31177 fi
31178
31179 # Unset variables that we do not need and which cause bugs (e.g. in
31180 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
31181 # suppresses any "Segmentation fault" message there.  '((' could
31182 # trigger a bug in pdksh 5.2.14.
31183 for as_var in BASH_ENV ENV MAIL MAILPATH
31184 do eval test \${$as_var+y} \
31185   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31186 done
31187 PS1='$ '
31188 PS2='> '
31189 PS4='+ '
31190
31191 # NLS nuisances.
31192 LC_ALL=C
31193 export LC_ALL
31194 LANGUAGE=C
31195 export LANGUAGE
31196
31197 # CDPATH.
31198 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
31199
31200
31201 # as_fn_error STATUS ERROR [LINENO LOG_FD]
31202 # ----------------------------------------
31203 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
31204 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
31205 # script with STATUS, using 1 if that was 0.
31206 as_fn_error ()
31207 {
31208   as_status=$1; test $as_status -eq 0 && as_status=1
31209   if test "$4"; then
31210     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
31211     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
31212   fi
31213   printf "%s\n" "$as_me: error: $2" >&2
31214   as_fn_exit $as_status
31215 } # as_fn_error
31216
31217
31218 # as_fn_set_status STATUS
31219 # -----------------------
31220 # Set $? to STATUS, without forking.
31221 as_fn_set_status ()
31222 {
31223   return $1
31224 } # as_fn_set_status
31225
31226 # as_fn_exit STATUS
31227 # -----------------
31228 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
31229 as_fn_exit ()
31230 {
31231   set +e
31232   as_fn_set_status $1
31233   exit $1
31234 } # as_fn_exit
31235
31236 # as_fn_unset VAR
31237 # ---------------
31238 # Portably unset VAR.
31239 as_fn_unset ()
31240 {
31241   { eval $1=; unset $1;}
31242 }
31243 as_unset=as_fn_unset
31244 # as_fn_append VAR VALUE
31245 # ----------------------
31246 # Append the text in VALUE to the end of the definition contained in VAR. Take
31247 # advantage of any shell optimizations that allow amortized linear growth over
31248 # repeated appends, instead of the typical quadratic growth present in naive
31249 # implementations.
31250 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
31251 then :
31252   eval 'as_fn_append ()
31253   {
31254     eval $1+=\$2
31255   }'
31256 else
31257   as_fn_append ()
31258   {
31259     eval $1=\$$1\$2
31260   }
31261 fi # as_fn_append
31262
31263 # as_fn_arith ARG...
31264 # ------------------
31265 # Perform arithmetic evaluation on the ARGs, and store the result in the
31266 # global $as_val. Take advantage of shells that can avoid forks. The arguments
31267 # must be portable across $(()) and expr.
31268 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
31269 then :
31270   eval 'as_fn_arith ()
31271   {
31272     as_val=$(( $* ))
31273   }'
31274 else
31275   as_fn_arith ()
31276   {
31277     as_val=`expr "$@" || test $? -eq 1`
31278   }
31279 fi # as_fn_arith
31280
31281
31282 if expr a : '\(a\)' >/dev/null 2>&1 &&
31283    test "X`expr 00001 : '.*\(...\)'`" = X001; then
31284   as_expr=expr
31285 else
31286   as_expr=false
31287 fi
31288
31289 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
31290   as_basename=basename
31291 else
31292   as_basename=false
31293 fi
31294
31295 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
31296   as_dirname=dirname
31297 else
31298   as_dirname=false
31299 fi
31300
31301 as_me=`$as_basename -- "$0" ||
31302 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
31303          X"$0" : 'X\(//\)$' \| \
31304          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
31305 printf "%s\n" X/"$0" |
31306     sed '/^.*\/\([^/][^/]*\)\/*$/{
31307             s//\1/
31308             q
31309           }
31310           /^X\/\(\/\/\)$/{
31311             s//\1/
31312             q
31313           }
31314           /^X\/\(\/\).*/{
31315             s//\1/
31316             q
31317           }
31318           s/.*/./; q'`
31319
31320 # Avoid depending upon Character Ranges.
31321 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31322 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
31323 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
31324 as_cr_digits='0123456789'
31325 as_cr_alnum=$as_cr_Letters$as_cr_digits
31326
31327 ECHO_C= ECHO_N= ECHO_T=
31328 case `echo -n x` in #(((((
31329 -n*)
31330   case `echo 'xy\c'` in
31331   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
31332   xy)  ECHO_C='\c';;
31333   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
31334        ECHO_T=' ';;
31335   esac;;
31336 *)
31337   ECHO_N='-n';;
31338 esac
31339
31340 rm -f conf$$ conf$$.exe conf$$.file
31341 if test -d conf$$.dir; then
31342   rm -f conf$$.dir/conf$$.file
31343 else
31344   rm -f conf$$.dir
31345   mkdir conf$$.dir 2>/dev/null
31346 fi
31347 if (echo >conf$$.file) 2>/dev/null; then
31348   if ln -s conf$$.file conf$$ 2>/dev/null; then
31349     as_ln_s='ln -s'
31350     # ... but there are two gotchas:
31351     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
31352     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
31353     # In both cases, we have to default to `cp -pR'.
31354     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
31355       as_ln_s='cp -pR'
31356   elif ln conf$$.file conf$$ 2>/dev/null; then
31357     as_ln_s=ln
31358   else
31359     as_ln_s='cp -pR'
31360   fi
31361 else
31362   as_ln_s='cp -pR'
31363 fi
31364 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
31365 rmdir conf$$.dir 2>/dev/null
31366
31367
31368 # as_fn_mkdir_p
31369 # -------------
31370 # Create "$as_dir" as a directory, including parents if necessary.
31371 as_fn_mkdir_p ()
31372 {
31373
31374   case $as_dir in #(
31375   -*) as_dir=./$as_dir;;
31376   esac
31377   test -d "$as_dir" || eval $as_mkdir_p || {
31378     as_dirs=
31379     while :; do
31380       case $as_dir in #(
31381       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
31382       *) as_qdir=$as_dir;;
31383       esac
31384       as_dirs="'$as_qdir' $as_dirs"
31385       as_dir=`$as_dirname -- "$as_dir" ||
31386 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
31387          X"$as_dir" : 'X\(//\)[^/]' \| \
31388          X"$as_dir" : 'X\(//\)$' \| \
31389          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
31390 printf "%s\n" X"$as_dir" |
31391     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
31392             s//\1/
31393             q
31394           }
31395           /^X\(\/\/\)[^/].*/{
31396             s//\1/
31397             q
31398           }
31399           /^X\(\/\/\)$/{
31400             s//\1/
31401             q
31402           }
31403           /^X\(\/\).*/{
31404             s//\1/
31405             q
31406           }
31407           s/.*/./; q'`
31408       test -d "$as_dir" && break
31409     done
31410     test -z "$as_dirs" || eval "mkdir $as_dirs"
31411   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
31412
31413
31414 } # as_fn_mkdir_p
31415 if mkdir -p . 2>/dev/null; then
31416   as_mkdir_p='mkdir -p "$as_dir"'
31417 else
31418   test -d ./-p && rmdir ./-p
31419   as_mkdir_p=false
31420 fi
31421
31422
31423 # as_fn_executable_p FILE
31424 # -----------------------
31425 # Test if FILE is an executable regular file.
31426 as_fn_executable_p ()
31427 {
31428   test -f "$1" && test -x "$1"
31429 } # as_fn_executable_p
31430 as_test_x='test -x'
31431 as_executable_p=as_fn_executable_p
31432
31433 # Sed expression to map a string onto a valid CPP name.
31434 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31435
31436 # Sed expression to map a string onto a valid variable name.
31437 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31438
31439
31440 exec 6>&1
31441 ## ----------------------------------- ##
31442 ## Main body of $CONFIG_STATUS script. ##
31443 ## ----------------------------------- ##
31444 _ASEOF
31445 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
31446
31447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31448 # Save the log message, to keep $0 and so on meaningful, and to
31449 # report actual input values of CONFIG_FILES etc. instead of their
31450 # values after options handling.
31451 ac_log="
31452 This file was extended by gzip $as_me 1.10, which was
31453 generated by GNU Autoconf 2.69.197-b8fd7.  Invocation command line was
31454
31455   CONFIG_FILES    = $CONFIG_FILES
31456   CONFIG_HEADERS  = $CONFIG_HEADERS
31457   CONFIG_LINKS    = $CONFIG_LINKS
31458   CONFIG_COMMANDS = $CONFIG_COMMANDS
31459   $ $0 $@
31460
31461 on `(hostname || uname -n) 2>/dev/null | sed 1q`
31462 "
31463
31464 _ACEOF
31465
31466 case $ac_config_files in *"
31467 "*) set x $ac_config_files; shift; ac_config_files=$*;;
31468 esac
31469
31470 case $ac_config_headers in *"
31471 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
31472 esac
31473
31474
31475 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31476 # Files that config.status was made for.
31477 config_files="$ac_config_files"
31478 config_headers="$ac_config_headers"
31479 config_links="$ac_config_links"
31480 config_commands="$ac_config_commands"
31481
31482 _ACEOF
31483
31484 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31485 ac_cs_usage="\
31486 \`$as_me' instantiates files and other configuration actions
31487 from templates according to the current configuration.  Unless the files
31488 and actions are specified as TAGs, all are instantiated by default.
31489
31490 Usage: $0 [OPTION]... [TAG]...
31491
31492   -h, --help       print this help, then exit
31493   -V, --version    print version number and configuration settings, then exit
31494       --config     print configuration, then exit
31495   -q, --quiet, --silent
31496                    do not print progress messages
31497   -d, --debug      don't remove temporary files
31498       --recheck    update $as_me by reconfiguring in the same conditions
31499       --file=FILE[:TEMPLATE]
31500                    instantiate the configuration file FILE
31501       --header=FILE[:TEMPLATE]
31502                    instantiate the configuration header FILE
31503
31504 Configuration files:
31505 $config_files
31506
31507 Configuration headers:
31508 $config_headers
31509
31510 Configuration links:
31511 $config_links
31512
31513 Configuration commands:
31514 $config_commands
31515
31516 Report bugs to <bug-gzip@gnu.org>."
31517
31518 _ACEOF
31519 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
31520 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
31521 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31522 ac_cs_config='$ac_cs_config_escaped'
31523 ac_cs_version="\\
31524 gzip config.status 1.10
31525 configured by $0, generated by GNU Autoconf 2.69.197-b8fd7,
31526   with options \\"\$ac_cs_config\\"
31527
31528 Copyright (C) 2017 Free Software Foundation, Inc.
31529 This config.status script is free software; the Free Software Foundation
31530 gives unlimited permission to copy, distribute and modify it."
31531
31532 ac_pwd='$ac_pwd'
31533 srcdir='$srcdir'
31534 INSTALL='$INSTALL'
31535 MKDIR_P='$MKDIR_P'
31536 AWK='$AWK'
31537 test -n "\$AWK" || AWK=awk
31538 _ACEOF
31539
31540 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31541 # The default lists apply if the user does not specify any file.
31542 ac_need_defaults=:
31543 while test $# != 0
31544 do
31545   case $1 in
31546   --*=?*)
31547     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31548     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
31549     ac_shift=:
31550     ;;
31551   --*=)
31552     ac_option=`expr "X$1" : 'X\([^=]*\)='`
31553     ac_optarg=
31554     ac_shift=:
31555     ;;
31556   *)
31557     ac_option=$1
31558     ac_optarg=$2
31559     ac_shift=shift
31560     ;;
31561   esac
31562
31563   case $ac_option in
31564   # Handling of the options.
31565   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
31566     ac_cs_recheck=: ;;
31567   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
31568     printf "%s\n" "$ac_cs_version"; exit ;;
31569   --config | --confi | --conf | --con | --co | --c )
31570     printf "%s\n" "$ac_cs_config"; exit ;;
31571   --debug | --debu | --deb | --de | --d | -d )
31572     debug=: ;;
31573   --file | --fil | --fi | --f )
31574     $ac_shift
31575     case $ac_optarg in
31576     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31577     '') as_fn_error $? "missing file argument" ;;
31578     esac
31579     as_fn_append CONFIG_FILES " '$ac_optarg'"
31580     ac_need_defaults=false;;
31581   --header | --heade | --head | --hea )
31582     $ac_shift
31583     case $ac_optarg in
31584     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
31585     esac
31586     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
31587     ac_need_defaults=false;;
31588   --he | --h)
31589     # Conflict between --help and --header
31590     as_fn_error $? "ambiguous option: \`$1'
31591 Try \`$0 --help' for more information.";;
31592   --help | --hel | -h )
31593     printf "%s\n" "$ac_cs_usage"; exit ;;
31594   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
31595   | -silent | --silent | --silen | --sile | --sil | --si | --s)
31596     ac_cs_silent=: ;;
31597
31598   # This is an error.
31599   -*) as_fn_error $? "unrecognized option: \`$1'
31600 Try \`$0 --help' for more information." ;;
31601
31602   *) as_fn_append ac_config_targets " $1"
31603      ac_need_defaults=false ;;
31604
31605   esac
31606   shift
31607 done
31608
31609 ac_configure_extra_args=
31610
31611 if $ac_cs_silent; then
31612   exec 6>/dev/null
31613   ac_configure_extra_args="$ac_configure_extra_args --silent"
31614 fi
31615
31616 _ACEOF
31617 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31618 if \$ac_cs_recheck; then
31619   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
31620   shift
31621   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
31622   CONFIG_SHELL='$SHELL'
31623   export CONFIG_SHELL
31624   exec "\$@"
31625 fi
31626
31627 _ACEOF
31628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31629 exec 5>>config.log
31630 {
31631   echo
31632   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
31633 ## Running $as_me. ##
31634 _ASBOX
31635   printf "%s\n" "$ac_log"
31636 } >&5
31637
31638 _ACEOF
31639 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31640 #
31641 # INIT-COMMANDS
31642 #
31643 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
31644 GNUmakefile=$GNUmakefile
31645
31646 _ACEOF
31647
31648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31649
31650 # Handling of arguments.
31651 for ac_config_target in $ac_config_targets
31652 do
31653   case $ac_config_target in
31654     "lib/config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/config.h:lib/config.hin" ;;
31655     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
31656     "$GNUmakefile") CONFIG_LINKS="$CONFIG_LINKS $GNUmakefile:$GNUmakefile" ;;
31657     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
31658     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
31659     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
31660     "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
31661
31662   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
31663   esac
31664 done
31665
31666
31667 # If the user did not use the arguments to specify the items to instantiate,
31668 # then the envvar interface is used.  Set only those that are not.
31669 # We use the long form for the default assignment because of an extremely
31670 # bizarre bug on SunOS 4.1.3.
31671 if $ac_need_defaults; then
31672   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
31673   test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
31674   test ${CONFIG_LINKS+y} || CONFIG_LINKS=$config_links
31675   test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
31676 fi
31677
31678 # Have a temporary directory for convenience.  Make it in the build tree
31679 # simply because there is no reason against having it here, and in addition,
31680 # creating and moving files from /tmp can sometimes cause problems.
31681 # Hook for its removal unless debugging.
31682 # Note that there is a small window in which the directory will not be cleaned:
31683 # after its creation but before its name has been assigned to `$tmp'.
31684 $debug ||
31685 {
31686   tmp= ac_tmp=
31687   trap 'exit_status=$?
31688   : "${ac_tmp:=$tmp}"
31689   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31690 ' 0
31691   trap 'as_fn_exit 1' 1 2 13 15
31692 }
31693 # Create a (secure) tmp directory for tmp files.
31694
31695 {
31696   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
31697   test -d "$tmp"
31698 }  ||
31699 {
31700   tmp=./conf$$-$RANDOM
31701   (umask 077 && mkdir "$tmp")
31702 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
31703 ac_tmp=$tmp
31704
31705 # Set up the scripts for CONFIG_FILES section.
31706 # No need to generate them if there are no CONFIG_FILES.
31707 # This happens for instance with `./config.status config.h'.
31708 if test -n "$CONFIG_FILES"; then
31709
31710
31711 ac_cr=`echo X | tr X '\015'`
31712 # On cygwin, bash can eat \r inside `` if the user requested igncr.
31713 # But we know of no other shell where ac_cr would be empty at this
31714 # point, so we can use a bashism as a fallback.
31715 if test "x$ac_cr" = x; then
31716   eval ac_cr=\$\'\\r\'
31717 fi
31718 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
31719 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
31720   ac_cs_awk_cr='\\r'
31721 else
31722   ac_cs_awk_cr=$ac_cr
31723 fi
31724
31725 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31726 _ACEOF
31727
31728
31729 {
31730   echo "cat >conf$$subs.awk <<_ACEOF" &&
31731   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
31732   echo "_ACEOF"
31733 } >conf$$subs.sh ||
31734   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31735 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31736 ac_delim='%!_!# '
31737 for ac_last_try in false false false false false :; do
31738   . ./conf$$subs.sh ||
31739     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31740
31741   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
31742   if test $ac_delim_n = $ac_delim_num; then
31743     break
31744   elif $ac_last_try; then
31745     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31746   else
31747     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31748   fi
31749 done
31750 rm -f conf$$subs.sh
31751
31752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31753 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
31754 _ACEOF
31755 sed -n '
31756 h
31757 s/^/S["/; s/!.*/"]=/
31758 p
31759 g
31760 s/^[^!]*!//
31761 :repl
31762 t repl
31763 s/'"$ac_delim"'$//
31764 t delim
31765 :nl
31766 h
31767 s/\(.\{148\}\)..*/\1/
31768 t more1
31769 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
31770 p
31771 n
31772 b repl
31773 :more1
31774 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31775 p
31776 g
31777 s/.\{148\}//
31778 t nl
31779 :delim
31780 h
31781 s/\(.\{148\}\)..*/\1/
31782 t more2
31783 s/["\\]/\\&/g; s/^/"/; s/$/"/
31784 p
31785 b
31786 :more2
31787 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
31788 p
31789 g
31790 s/.\{148\}//
31791 t delim
31792 ' <conf$$subs.awk | sed '
31793 /^[^""]/{
31794   N
31795   s/\n//
31796 }
31797 ' >>$CONFIG_STATUS || ac_write_fail=1
31798 rm -f conf$$subs.awk
31799 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31800 _ACAWK
31801 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
31802   for (key in S) S_is_set[key] = 1
31803   FS = "\a"
31804
31805 }
31806 {
31807   line = $ 0
31808   nfields = split(line, field, "@")
31809   substed = 0
31810   len = length(field[1])
31811   for (i = 2; i < nfields; i++) {
31812     key = field[i]
31813     keylen = length(key)
31814     if (S_is_set[key]) {
31815       value = S[key]
31816       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
31817       len += length(value) + length(field[++i])
31818       substed = 1
31819     } else
31820       len += 1 + keylen
31821   }
31822
31823   print line
31824 }
31825
31826 _ACAWK
31827 _ACEOF
31828 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31829 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
31830   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
31831 else
31832   cat
31833 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
31834   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
31835 _ACEOF
31836
31837 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
31838 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31839 # trailing colons and then remove the whole line if VPATH becomes empty
31840 # (actually we leave an empty line to preserve line numbers).
31841 if test "x$srcdir" = x.; then
31842   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
31843 h
31844 s///
31845 s/^/:/
31846 s/[      ]*$/:/
31847 s/:\$(srcdir):/:/g
31848 s/:\${srcdir}:/:/g
31849 s/:@srcdir@:/:/g
31850 s/^:*//
31851 s/:*$//
31852 x
31853 s/\(=[   ]*\).*/\1/
31854 G
31855 s/\n//
31856 s/^[^=]*=[       ]*$//
31857 }'
31858 fi
31859
31860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31861 fi # test -n "$CONFIG_FILES"
31862
31863 # Set up the scripts for CONFIG_HEADERS section.
31864 # No need to generate them if there are no CONFIG_HEADERS.
31865 # This happens for instance with `./config.status Makefile'.
31866 if test -n "$CONFIG_HEADERS"; then
31867 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
31868 BEGIN {
31869 _ACEOF
31870
31871 # Transform confdefs.h into an awk script `defines.awk', embedded as
31872 # here-document in config.status, that substitutes the proper values into
31873 # config.h.in to produce config.h.
31874
31875 # Create a delimiter string that does not exist in confdefs.h, to ease
31876 # handling of long lines.
31877 ac_delim='%!_!# '
31878 for ac_last_try in false false :; do
31879   ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
31880   if test -z "$ac_tt"; then
31881     break
31882   elif $ac_last_try; then
31883     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
31884   else
31885     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
31886   fi
31887 done
31888
31889 # For the awk script, D is an array of macro values keyed by name,
31890 # likewise P contains macro parameters if any.  Preserve backslash
31891 # newline sequences.
31892
31893 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
31894 sed -n '
31895 s/.\{148\}/&'"$ac_delim"'/g
31896 t rset
31897 :rset
31898 s/^[     ]*#[    ]*define[       ][      ]*/ /
31899 t def
31900 d
31901 :def
31902 s/\\$//
31903 t bsnl
31904 s/["\\]/\\&/g
31905 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31906 D["\1"]=" \3"/p
31907 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
31908 d
31909 :bsnl
31910 s/["\\]/\\&/g
31911 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
31912 D["\1"]=" \3\\\\\\n"\\/p
31913 t cont
31914 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
31915 t cont
31916 d
31917 :cont
31918 n
31919 s/.\{148\}/&'"$ac_delim"'/g
31920 t clear
31921 :clear
31922 s/\\$//
31923 t bsnlc
31924 s/["\\]/\\&/g; s/^/"/; s/$/"/p
31925 d
31926 :bsnlc
31927 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
31928 b cont
31929 ' <confdefs.h | sed '
31930 s/'"$ac_delim"'/"\\\
31931 "/g' >>$CONFIG_STATUS || ac_write_fail=1
31932
31933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31934   for (key in D) D_is_set[key] = 1
31935   FS = "\a"
31936 }
31937 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
31938   line = \$ 0
31939   split(line, arg, " ")
31940   if (arg[1] == "#") {
31941     defundef = arg[2]
31942     mac1 = arg[3]
31943   } else {
31944     defundef = substr(arg[1], 2)
31945     mac1 = arg[2]
31946   }
31947   split(mac1, mac2, "(") #)
31948   macro = mac2[1]
31949   prefix = substr(line, 1, index(line, defundef) - 1)
31950   if (D_is_set[macro]) {
31951     # Preserve the white space surrounding the "#".
31952     print prefix "define", macro P[macro] D[macro]
31953     next
31954   } else {
31955     # Replace #undef with comments.  This is necessary, for example,
31956     # in the case of _POSIX_SOURCE, which is predefined and required
31957     # on some systems where configure will not decide to define it.
31958     if (defundef == "undef") {
31959       print "/*", prefix defundef, macro, "*/"
31960       next
31961     }
31962   }
31963 }
31964 { print }
31965 _ACAWK
31966 _ACEOF
31967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31968   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
31969 fi # test -n "$CONFIG_HEADERS"
31970
31971
31972 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
31973 shift
31974 for ac_tag
31975 do
31976   case $ac_tag in
31977   :[FHLC]) ac_mode=$ac_tag; continue;;
31978   esac
31979   case $ac_mode$ac_tag in
31980   :[FHL]*:*);;
31981   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31982   :[FH]-) ac_tag=-:-;;
31983   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
31984   esac
31985   ac_save_IFS=$IFS
31986   IFS=:
31987   set x $ac_tag
31988   IFS=$ac_save_IFS
31989   shift
31990   ac_file=$1
31991   shift
31992
31993   case $ac_mode in
31994   :L) ac_source=$1;;
31995   :[FH])
31996     ac_file_inputs=
31997     for ac_f
31998     do
31999       case $ac_f in
32000       -) ac_f="$ac_tmp/stdin";;
32001       *) # Look for the file first in the build tree, then in the source tree
32002          # (if the path is not absolute).  The absolute path cannot be DOS-style,
32003          # because $ac_f cannot contain `:'.
32004          test -f "$ac_f" ||
32005            case $ac_f in
32006            [\\/$]*) false;;
32007            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
32008            esac ||
32009            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
32010       esac
32011       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
32012       as_fn_append ac_file_inputs " '$ac_f'"
32013     done
32014
32015     # Let's still pretend it is `configure' which instantiates (i.e., don't
32016     # use $as_me), people would be surprised to read:
32017     #    /* config.h.  Generated by config.status.  */
32018     configure_input='Generated from '`
32019           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
32020         `' by configure.'
32021     if test x"$ac_file" != x-; then
32022       configure_input="$ac_file.  $configure_input"
32023       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
32024 printf "%s\n" "$as_me: creating $ac_file" >&6;}
32025     fi
32026     # Neutralize special characters interpreted by sed in replacement strings.
32027     case $configure_input in #(
32028     *\&* | *\|* | *\\* )
32029        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
32030        sed 's/[\\\\&|]/\\\\&/g'`;; #(
32031     *) ac_sed_conf_input=$configure_input;;
32032     esac
32033
32034     case $ac_tag in
32035     *:-:* | *:-) cat >"$ac_tmp/stdin" \
32036       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
32037     esac
32038     ;;
32039   esac
32040
32041   ac_dir=`$as_dirname -- "$ac_file" ||
32042 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32043          X"$ac_file" : 'X\(//\)[^/]' \| \
32044          X"$ac_file" : 'X\(//\)$' \| \
32045          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
32046 printf "%s\n" X"$ac_file" |
32047     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32048             s//\1/
32049             q
32050           }
32051           /^X\(\/\/\)[^/].*/{
32052             s//\1/
32053             q
32054           }
32055           /^X\(\/\/\)$/{
32056             s//\1/
32057             q
32058           }
32059           /^X\(\/\).*/{
32060             s//\1/
32061             q
32062           }
32063           s/.*/./; q'`
32064   as_dir="$ac_dir"; as_fn_mkdir_p
32065   ac_builddir=.
32066
32067 case "$ac_dir" in
32068 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
32069 *)
32070   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
32071   # A ".." for each directory in $ac_dir_suffix.
32072   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
32073   case $ac_top_builddir_sub in
32074   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
32075   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
32076   esac ;;
32077 esac
32078 ac_abs_top_builddir=$ac_pwd
32079 ac_abs_builddir=$ac_pwd$ac_dir_suffix
32080 # for backward compatibility:
32081 ac_top_builddir=$ac_top_build_prefix
32082
32083 case $srcdir in
32084   .)  # We are building in place.
32085     ac_srcdir=.
32086     ac_top_srcdir=$ac_top_builddir_sub
32087     ac_abs_top_srcdir=$ac_pwd ;;
32088   [\\/]* | ?:[\\/]* )  # Absolute name.
32089     ac_srcdir=$srcdir$ac_dir_suffix;
32090     ac_top_srcdir=$srcdir
32091     ac_abs_top_srcdir=$srcdir ;;
32092   *) # Relative name.
32093     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
32094     ac_top_srcdir=$ac_top_build_prefix$srcdir
32095     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
32096 esac
32097 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
32098
32099
32100   case $ac_mode in
32101   :F)
32102   #
32103   # CONFIG_FILE
32104   #
32105
32106   case $INSTALL in
32107   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32108   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
32109   esac
32110   ac_MKDIR_P=$MKDIR_P
32111   case $MKDIR_P in
32112   [\\/$]* | ?:[\\/]* ) ;;
32113   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
32114   esac
32115 _ACEOF
32116
32117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32118 # If the template does not know about datarootdir, expand it.
32119 # FIXME: This hack should be removed a few years after 2.60.
32120 ac_datarootdir_hack=; ac_datarootdir_seen=
32121 ac_sed_dataroot='
32122 /datarootdir/ {
32123   p
32124   q
32125 }
32126 /@datadir@/p
32127 /@docdir@/p
32128 /@infodir@/p
32129 /@localedir@/p
32130 /@mandir@/p'
32131 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
32132 *datarootdir*) ac_datarootdir_seen=yes;;
32133 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
32134   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
32135 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
32136 _ACEOF
32137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32138   ac_datarootdir_hack='
32139   s&@datadir@&$datadir&g
32140   s&@docdir@&$docdir&g
32141   s&@infodir@&$infodir&g
32142   s&@localedir@&$localedir&g
32143   s&@mandir@&$mandir&g
32144   s&\\\${datarootdir}&$datarootdir&g' ;;
32145 esac
32146 _ACEOF
32147
32148 # Neutralize VPATH when `$srcdir' = `.'.
32149 # Shell code in configure.ac might set extrasub.
32150 # FIXME: do we really want to maintain this feature?
32151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
32152 ac_sed_extra="$ac_vpsub
32153 $extrasub
32154 _ACEOF
32155 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
32156 :t
32157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32158 s|@configure_input@|$ac_sed_conf_input|;t t
32159 s&@top_builddir@&$ac_top_builddir_sub&;t t
32160 s&@top_build_prefix@&$ac_top_build_prefix&;t t
32161 s&@srcdir@&$ac_srcdir&;t t
32162 s&@abs_srcdir@&$ac_abs_srcdir&;t t
32163 s&@top_srcdir@&$ac_top_srcdir&;t t
32164 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
32165 s&@builddir@&$ac_builddir&;t t
32166 s&@abs_builddir@&$ac_abs_builddir&;t t
32167 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
32168 s&@INSTALL@&$ac_INSTALL&;t t
32169 s&@MKDIR_P@&$ac_MKDIR_P&;t t
32170 $ac_datarootdir_hack
32171 "
32172 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
32173   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32174
32175 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
32176   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
32177   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
32178       "$ac_tmp/out"`; test -z "$ac_out"; } &&
32179   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32180 which seems to be undefined.  Please make sure it is defined" >&5
32181 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
32182 which seems to be undefined.  Please make sure it is defined" >&2;}
32183
32184   rm -f "$ac_tmp/stdin"
32185   case $ac_file in
32186   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
32187   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
32188   esac \
32189   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32190  ;;
32191   :H)
32192   #
32193   # CONFIG_HEADER
32194   #
32195   if test x"$ac_file" != x-; then
32196     {
32197       printf "%s\n" "/* $configure_input  */" \
32198       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
32199     } >"$ac_tmp/config.h" \
32200       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32201     if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
32202       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
32203 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
32204     else
32205       rm -f "$ac_file"
32206       mv "$ac_tmp/config.h" "$ac_file" \
32207         || as_fn_error $? "could not create $ac_file" "$LINENO" 5
32208     fi
32209   else
32210     printf "%s\n" "/* $configure_input  */" \
32211       && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
32212       || as_fn_error $? "could not create -" "$LINENO" 5
32213   fi
32214 # Compute "$ac_file"'s index in $config_headers.
32215 _am_arg="$ac_file"
32216 _am_stamp_count=1
32217 for _am_header in $config_headers :; do
32218   case $_am_header in
32219     $_am_arg | $_am_arg:* )
32220       break ;;
32221     * )
32222       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
32223   esac
32224 done
32225 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
32226 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32227          X"$_am_arg" : 'X\(//\)[^/]' \| \
32228          X"$_am_arg" : 'X\(//\)$' \| \
32229          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
32230 printf "%s\n" X"$_am_arg" |
32231     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32232             s//\1/
32233             q
32234           }
32235           /^X\(\/\/\)[^/].*/{
32236             s//\1/
32237             q
32238           }
32239           /^X\(\/\/\)$/{
32240             s//\1/
32241             q
32242           }
32243           /^X\(\/\).*/{
32244             s//\1/
32245             q
32246           }
32247           s/.*/./; q'`/stamp-h$_am_stamp_count
32248  ;;
32249   :L)
32250   #
32251   # CONFIG_LINK
32252   #
32253
32254   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
32255     :
32256   else
32257     # Prefer the file from the source tree if names are identical.
32258     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
32259       ac_source=$srcdir/$ac_source
32260     fi
32261
32262     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
32263 printf "%s\n" "$as_me: linking $ac_source to $ac_file" >&6;}
32264
32265     if test ! -r "$ac_source"; then
32266       as_fn_error $? "$ac_source: file not found" "$LINENO" 5
32267     fi
32268     rm -f "$ac_file"
32269
32270     # Try a relative symlink, then a hard link, then a copy.
32271     case $ac_source in
32272     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
32273         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
32274     esac
32275     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
32276       ln "$ac_source" "$ac_file" 2>/dev/null ||
32277       cp -p "$ac_source" "$ac_file" ||
32278       as_fn_error $? "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
32279   fi
32280  ;;
32281   :C)  { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
32282 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
32283  ;;
32284   esac
32285
32286
32287   case $ac_file$ac_mode in
32288     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
32289   # Older Autoconf quotes --file arguments for eval, but not when files
32290   # are listed without --file.  Let's play safe and only enable the eval
32291   # if we detect the quoting.
32292   # TODO: see whether this extra hack can be removed once we start
32293   # requiring Autoconf 2.70 or later.
32294   case $CONFIG_FILES in #(
32295   *\'*) :
32296     eval set x "$CONFIG_FILES" ;; #(
32297   *) :
32298     set x $CONFIG_FILES ;; #(
32299   *) :
32300      ;;
32301 esac
32302   shift
32303   # Used to flag and report bootstrapping failures.
32304   am_rc=0
32305   for am_mf
32306   do
32307     # Strip MF so we end up with the name of the file.
32308     am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
32309     # Check whether this is an Automake generated Makefile which includes
32310     # dependency-tracking related rules and includes.
32311     # Grep'ing the whole file directly is not great: AIX grep has a line
32312     # limit of 2048, but all sed's we know have understand at least 4000.
32313     sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
32314       || continue
32315     am_dirpart=`$as_dirname -- "$am_mf" ||
32316 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32317          X"$am_mf" : 'X\(//\)[^/]' \| \
32318          X"$am_mf" : 'X\(//\)$' \| \
32319          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
32320 printf "%s\n" X"$am_mf" |
32321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
32322             s//\1/
32323             q
32324           }
32325           /^X\(\/\/\)[^/].*/{
32326             s//\1/
32327             q
32328           }
32329           /^X\(\/\/\)$/{
32330             s//\1/
32331             q
32332           }
32333           /^X\(\/\).*/{
32334             s//\1/
32335             q
32336           }
32337           s/.*/./; q'`
32338     am_filepart=`$as_basename -- "$am_mf" ||
32339 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
32340          X"$am_mf" : 'X\(//\)$' \| \
32341          X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
32342 printf "%s\n" X/"$am_mf" |
32343     sed '/^.*\/\([^/][^/]*\)\/*$/{
32344             s//\1/
32345             q
32346           }
32347           /^X\/\(\/\/\)$/{
32348             s//\1/
32349             q
32350           }
32351           /^X\/\(\/\).*/{
32352             s//\1/
32353             q
32354           }
32355           s/.*/./; q'`
32356     { echo "$as_me:$LINENO: cd "$am_dirpart" \
32357       && sed -e '/# am--include-marker/d' "$am_filepart" \
32358         | $MAKE -f - am--depfiles" >&5
32359    (cd "$am_dirpart" \
32360       && sed -e '/# am--include-marker/d' "$am_filepart" \
32361         | $MAKE -f - am--depfiles) >&5 2>&5
32362    ac_status=$?
32363    echo "$as_me:$LINENO: \$? = $ac_status" >&5
32364    (exit $ac_status); } || am_rc=$?
32365   done
32366   if test $am_rc -ne 0; then
32367     { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32368 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
32369 as_fn_error $? "Something went wrong bootstrapping makefile fragments
32370     for automatic dependency tracking.  Try re-running configure with the
32371     '--disable-dependency-tracking' option to at least be able to build
32372     the package (albeit without support for automatic dependency tracking).
32373 See \`config.log' for more details" "$LINENO" 5; }
32374   fi
32375   { am_dirpart=; unset am_dirpart;}
32376   { am_filepart=; unset am_filepart;}
32377   { am_mf=; unset am_mf;}
32378   { am_rc=; unset am_rc;}
32379   rm -f conftest-deps.mk
32380 }
32381  ;;
32382
32383   esac
32384 done # for ac_tag
32385
32386
32387 as_fn_exit 0
32388 _ACEOF
32389 ac_clean_files=$ac_clean_files_save
32390
32391 test $ac_write_fail = 0 ||
32392   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
32393
32394
32395 # configure is writing to config.log, and then calls config.status.
32396 # config.status does its own redirection, appending to config.log.
32397 # Unfortunately, on DOS this fails, as config.log is still kept open
32398 # by configure, so config.status won't be able to write to it; its
32399 # output is simply discarded.  So we exec the FD to /dev/null,
32400 # effectively closing config.log, so it can be properly (re)opened and
32401 # appended to by config.status.  When coming back to configure, we
32402 # need to make the FD available again.
32403 if test "$no_create" != yes; then
32404   ac_cs_success=:
32405   ac_config_status_args=
32406   test "$silent" = yes &&
32407     ac_config_status_args="$ac_config_status_args --quiet"
32408   exec 5>/dev/null
32409   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
32410   exec 5>>config.log
32411   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
32412   # would make configure fail if this is the last instruction.
32413   $ac_cs_success || as_fn_exit 1
32414 fi
32415 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
32416   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
32417 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
32418 fi
32419