Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for patchutils 0.4.5.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2023 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19 then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else case e in #(
27 e) case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" "" $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77 PATH_SEPARATOR=:
78 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80 PATH_SEPARATOR=';'
81 }
82 fi
83
84
85 # Find who we are. Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88 *[\\/]* ) as_myself=$0 ;;
89 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92 IFS=$as_save_IFS
93 case $as_dir in #(((
94 '') as_dir=./ ;;
95 */) ;;
96 *) as_dir=$as_dir/ ;;
97 esac
98 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as 'sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116 # into an infinite loop, continuously re-executing ourselves.
117 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118 _as_can_reexec=no; export _as_can_reexec;
119 # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127 *v*x* | *x*v* ) as_opts=-vx ;;
128 *v* ) as_opts=-v ;;
129 *x* ) as_opts=-x ;;
130 * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed 'exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137 fi
138 # We don't want this to propagate to other subprocesses.
139 { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141 as_bourne_compatible="if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
142 then :
143 emulate sh
144 NULLCMD=:
145 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
146 # is contrary to our usage. Disable this feature.
147 alias -g '\${1+\"\$@\"}'='\"\$@\"'
148 setopt NO_GLOB_SUBST
149 else case e in #(
150 e) case \`(set -o) 2>/dev/null\` in #(
151 *posix*) :
152 set -o posix ;; #(
153 *) :
154 ;;
155 esac ;;
156 esac
157 fi
158 "
159 as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else case e in #(
174 e) exitcode=1; echo positional parameters were not saved. ;;
175 esac
176 fi
177 test x\$exitcode = x0 || exit 1
178 blah=\$(echo \$(echo blah))
179 test x\"\$blah\" = xblah || exit 1
180 test -x / || exit 1"
181 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
182 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
183 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
184 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
185 test \$(( 1 + 1 )) = 2 || exit 1"
186 if (eval "$as_required") 2>/dev/null
187 then :
188 as_have_required=yes
189 else case e in #(
190 e) as_have_required=no ;;
191 esac
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else case e in #(
197 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
198 as_found=false
199 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
200 do
201 IFS=$as_save_IFS
202 case $as_dir in #(((
203 '') as_dir=./ ;;
204 */) ;;
205 *) as_dir=$as_dir/ ;;
206 esac
207 as_found=:
208 case $as_dir in #(
209 /*)
210 for as_base in sh bash ksh sh5; do
211 # Try only shells that exist, to save several forks.
212 as_shell=$as_dir$as_base
213 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
215 then :
216 CONFIG_SHELL=$as_shell as_have_required=yes
217 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
218 then :
219 break 2
220 fi
221 fi
222 done;;
223 esac
224 as_found=false
225 done
226 IFS=$as_save_IFS
227 if $as_found
228 then :
229
230 else case e in #(
231 e) if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
233 then :
234 CONFIG_SHELL=$SHELL as_have_required=yes
235 fi ;;
236 esac
237 fi
238
239
240 if test "x$CONFIG_SHELL" != x
241 then :
242 export CONFIG_SHELL
243 # We cannot yet assume a decent shell, so we have to provide a
244 # neutralization value for shells without unset; and this also
245 # works around shells that cannot unset nonexistent variables.
246 # Preserve -v and -x to the replacement shell.
247 BASH_ENV=/dev/null
248 ENV=/dev/null
249 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
250 case $- in # ((((
251 *v*x* | *x*v* ) as_opts=-vx ;;
252 *v* ) as_opts=-v ;;
253 *x* ) as_opts=-x ;;
254 * ) as_opts= ;;
255 esac
256 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
257 # Admittedly, this is quite paranoid, since all the known shells bail
258 # out after a failed 'exec'.
259 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
260 exit 255
261 fi
262
263 if test x$as_have_required = xno
264 then :
265 printf "%s\n" "$0: This script requires a shell more modern than all"
266 printf "%s\n" "$0: the shells that I found on your system."
267 if test ${ZSH_VERSION+y} ; then
268 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
269 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
270 else
271 printf "%s\n" "$0: Please tell [email protected] about your system,
272 $0: including any error possibly output before this
273 $0: message. Then install a modern shell, or manually run
274 $0: the script under such a shell if you do have one."
275 fi
276 exit 1
277 fi ;;
278 esac
279 fi
280 fi
281 SHELL=${CONFIG_SHELL-/bin/sh}
282 export SHELL
283 # Unset more variables known to interfere with behavior of common tools.
284 CLICOLOR_FORCE= GREP_OPTIONS=
285 unset CLICOLOR_FORCE GREP_OPTIONS
286
287 ## --------------------- ##
288 ## M4sh Shell Functions. ##
289 ## --------------------- ##
290 # as_fn_unset VAR
291 # ---------------
292 # Portably unset VAR.
293 as_fn_unset ()
294 {
295 { eval $1=; unset $1;}
296 }
297 as_unset=as_fn_unset
298
299
300 # as_fn_set_status STATUS
301 # -----------------------
302 # Set $? to STATUS, without forking.
303 as_fn_set_status ()
304 {
305 return $1
306 } # as_fn_set_status
307
308 # as_fn_exit STATUS
309 # -----------------
310 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
311 as_fn_exit ()
312 {
313 set +e
314 as_fn_set_status $1
315 exit $1
316 } # as_fn_exit
317
318 # as_fn_mkdir_p
319 # -------------
320 # Create "$as_dir" as a directory, including parents if necessary.
321 as_fn_mkdir_p ()
322 {
323
324 case $as_dir in #(
325 -*) as_dir=./$as_dir;;
326 esac
327 test -d "$as_dir" || eval $as_mkdir_p || {
328 as_dirs=
329 while :; do
330 case $as_dir in #(
331 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
332 *) as_qdir=$as_dir;;
333 esac
334 as_dirs="'$as_qdir' $as_dirs"
335 as_dir=`$as_dirname -- "$as_dir" ||
336 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
337 X"$as_dir" : 'X\(//\)[^/]' \| \
338 X"$as_dir" : 'X\(//\)$' \| \
339 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
340 printf "%s\n" X"$as_dir" |
341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
342 s//\1/
343 q
344 }
345 /^X\(\/\/\)[^/].*/{
346 s//\1/
347 q
348 }
349 /^X\(\/\/\)$/{
350 s//\1/
351 q
352 }
353 /^X\(\/\).*/{
354 s//\1/
355 q
356 }
357 s/.*/./; q'`
358 test -d "$as_dir" && break
359 done
360 test -z "$as_dirs" || eval "mkdir $as_dirs"
361 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
362
363
364 } # as_fn_mkdir_p
365
366 # as_fn_executable_p FILE
367 # -----------------------
368 # Test if FILE is an executable regular file.
369 as_fn_executable_p ()
370 {
371 test -f "$1" && test -x "$1"
372 } # as_fn_executable_p
373 # as_fn_append VAR VALUE
374 # ----------------------
375 # Append the text in VALUE to the end of the definition contained in VAR. Take
376 # advantage of any shell optimizations that allow amortized linear growth over
377 # repeated appends, instead of the typical quadratic growth present in naive
378 # implementations.
379 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
380 then :
381 eval 'as_fn_append ()
382 {
383 eval $1+=\$2
384 }'
385 else case e in #(
386 e) as_fn_append ()
387 {
388 eval $1=\$$1\$2
389 } ;;
390 esac
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
399 then :
400 eval 'as_fn_arith ()
401 {
402 as_val=$(( $* ))
403 }'
404 else case e in #(
405 e) as_fn_arith ()
406 {
407 as_val=`expr "$@" || test $? -eq 1`
408 } ;;
409 esac
410 fi # as_fn_arith
411
412
413 # as_fn_error STATUS ERROR [LINENO LOG_FD]
414 # ----------------------------------------
415 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
416 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
417 # script with STATUS, using 1 if that was 0.
418 as_fn_error ()
419 {
420 as_status=$1; test $as_status -eq 0 && as_status=1
421 if test "$4"; then
422 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
424 fi
425 printf "%s\n" "$as_me: error: $2" >&2
426 as_fn_exit $as_status
427 } # as_fn_error
428
429 if expr a : '\(a\)' >/dev/null 2>&1 &&
430 test "X`expr 00001 : '.*\(...\)'`" = X001; then
431 as_expr=expr
432 else
433 as_expr=false
434 fi
435
436 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
437 as_basename=basename
438 else
439 as_basename=false
440 fi
441
442 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
443 as_dirname=dirname
444 else
445 as_dirname=false
446 fi
447
448 as_me=`$as_basename -- "$0" ||
449 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
450 X"$0" : 'X\(//\)$' \| \
451 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
452 printf "%s\n" X/"$0" |
453 sed '/^.*\/\([^/][^/]*\)\/*$/{
454 s//\1/
455 q
456 }
457 /^X\/\(\/\/\)$/{
458 s//\1/
459 q
460 }
461 /^X\/\(\/\).*/{
462 s//\1/
463 q
464 }
465 s/.*/./; q'`
466
467 # Avoid depending upon Character Ranges.
468 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
469 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
470 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
471 as_cr_digits='0123456789'
472 as_cr_alnum=$as_cr_Letters$as_cr_digits
473
474
475 as_lineno_1=$LINENO as_lineno_1a=$LINENO
476 as_lineno_2=$LINENO as_lineno_2a=$LINENO
477 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
478 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
479 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
480 sed -n '
481 p
482 /[$]LINENO/=
483 ' <$as_myself |
484 sed '
485 t clear
486 :clear
487 s/[$]LINENO.*/&-/
488 t lineno
489 b
490 :lineno
491 N
492 :loop
493 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
494 t loop
495 s/-\n.*//
496 ' >$as_me.lineno &&
497 chmod +x "$as_me.lineno" ||
498 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
499
500 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
501 # already done that, so ensure we don't try to do so again and fall
502 # in an infinite loop. This has already happened in practice.
503 _as_can_reexec=no; export _as_can_reexec
504 # Don't try to exec as it changes $[0], causing all sort of problems
505 # (the dirname of $[0] is not the place where we might find the
506 # original and so on. Autoconf is especially sensitive to this).
507 . "./$as_me.lineno"
508 # Exit status is that of the last command.
509 exit
510 }
511
512
513 # Determine whether it's possible to make 'echo' print without a newline.
514 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
515 # for compatibility with existing Makefiles.
516 ECHO_C= ECHO_N= ECHO_T=
517 case `echo -n x` in #(((((
518 -n*)
519 case `echo 'xy\c'` in
520 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
521 xy) ECHO_C='\c';;
522 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
523 ECHO_T=' ';;
524 esac;;
525 *)
526 ECHO_N='-n';;
527 esac
528
529 # For backward compatibility with old third-party macros, we provide
530 # the shell variables $as_echo and $as_echo_n. New code should use
531 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
532 as_echo='printf %s\n'
533 as_echo_n='printf %s'
534
535 rm -f conf$$ conf$$.exe conf$$.file
536 if test -d conf$$.dir; then
537 rm -f conf$$.dir/conf$$.file
538 else
539 rm -f conf$$.dir
540 mkdir conf$$.dir 2>/dev/null
541 fi
542 if (echo >conf$$.file) 2>/dev/null; then
543 if ln -s conf$$.file conf$$ 2>/dev/null; then
544 as_ln_s='ln -s'
545 # ... but there are two gotchas:
546 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
547 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
548 # In both cases, we have to default to 'cp -pR'.
549 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
550 as_ln_s='cp -pR'
551 elif ln conf$$.file conf$$ 2>/dev/null; then
552 as_ln_s=ln
553 else
554 as_ln_s='cp -pR'
555 fi
556 else
557 as_ln_s='cp -pR'
558 fi
559 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
560 rmdir conf$$.dir 2>/dev/null
561
562 if mkdir -p . 2>/dev/null; then
563 as_mkdir_p='mkdir -p "$as_dir"'
564 else
565 test -d ./-p && rmdir ./-p
566 as_mkdir_p=false
567 fi
568
569 as_test_x='test -x'
570 as_executable_p=as_fn_executable_p
571
572 # Sed expression to map a string onto a valid CPP name.
573 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
574 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
575
576 # Sed expression to map a string onto a valid variable name.
577 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
578 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
579
580
581 test -n "$DJDIR" || exec 7<&0 </dev/null
582 exec 6>&1
583
584 # Name of the host.
585 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
586 # so uname gets run too.
587 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
588
589 #
590 # Initializations.
591 #
592 ac_default_prefix=/usr/local
593 ac_clean_files=
594 ac_config_libobj_dir=.
595 LIBOBJS=
596 cross_compiling=no
597 subdirs=
598 MFLAGS=
599 MAKEFLAGS=
600
601 # Identity of this package.
602 PACKAGE_NAME='patchutils'
603 PACKAGE_TARNAME='patchutils'
604 PACKAGE_VERSION='0.4.5'
605 PACKAGE_STRING='patchutils 0.4.5'
606 PACKAGE_BUGREPORT=''
607 PACKAGE_URL=''
608
609 ac_unique_file="patchutils.spec.in"
610 # Factoring default headers for most tests.
611 ac_includes_default="\
612 #include <stddef.h>
613 #ifdef HAVE_STDIO_H
614 # include <stdio.h>
615 #endif
616 #ifdef HAVE_STDLIB_H
617 # include <stdlib.h>
618 #endif
619 #ifdef HAVE_STRING_H
620 # include <string.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_STRINGS_H
629 # include <strings.h>
630 #endif
631 #ifdef HAVE_SYS_TYPES_H
632 # include <sys/types.h>
633 #endif
634 #ifdef HAVE_SYS_STAT_H
635 # include <sys/stat.h>
636 #endif
637 #ifdef HAVE_UNISTD_H
638 # include <unistd.h>
639 #endif"
640
641 ac_header_c_list=
642 ac_func_c_list=
643 enable_year2038=no
644 ac_subst_vars='gltests_libgnu_LIBOBJDEPS
645 gltests_libgnu_LTLIBOBJS
646 gltests_libgnu_LIBOBJS
647 gltests_LIBOBJDEPS
648 gltests_LTLIBOBJS
649 gltests_LIBOBJS
650 gl_libgnu_LIBOBJDEPS
651 gl_libgnu_LTLIBOBJS
652 gl_libgnu_LIBOBJS
653 gl_LIBOBJDEPS
654 gl_LTLIBOBJS
655 gl_LIBOBJS
656 am__EXEEXT_FALSE
657 am__EXEEXT_TRUE
658 LTLIBOBJS
659 LIBOBJS
660 LIBGNU_LTLIBDEPS
661 LIBGNU_LIBDEPS
662 GL_CFLAG_GNULIB_WARNINGS
663 GL_CFLAG_ALLOW_WARNINGS
664 gltests_WITNESS
665 HAVE_UNISTD_H
666 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
667 NEXT_UNISTD_H
668 GL_GNULIB_MDA_TZSET
669 GL_GNULIB_TZSET
670 GL_GNULIB_TZNAME
671 GL_GNULIB_TIME_RZ
672 GL_GNULIB_TIME_R
673 GL_GNULIB_TIMESPEC_GETRES
674 GL_GNULIB_TIMESPEC_GET
675 GL_GNULIB_TIMEGM
676 GL_GNULIB_TIME
677 GL_GNULIB_STRPTIME
678 GL_GNULIB_STRFTIME
679 GL_GNULIB_NANOSLEEP
680 GL_GNULIB_LOCALTIME
681 GL_GNULIB_MKTIME
682 GL_GNULIB_CTIME
683 TIME_H_DEFINES_TIME_UTC
684 UNISTD_H_DEFINES_STRUCT_TIMESPEC
685 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
686 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
687 TIME_H_DEFINES_STRUCT_TIMESPEC
688 NEXT_AS_FIRST_DIRECTIVE_TIME_H
689 NEXT_TIME_H
690 REPLACE_TZSET
691 REPLACE_TIMESPEC_GETRES
692 REPLACE_TIMESPEC_GET
693 REPLACE_TIMEGM
694 REPLACE_TIME
695 REPLACE_STRFTIME
696 REPLACE_NANOSLEEP
697 REPLACE_MKTIME_Z
698 REPLACE_MKTIME
699 REPLACE_LOCALTIME_RZ
700 REPLACE_LOCALTIME_R
701 REPLACE_LOCALTIME
702 REPLACE_GMTIME
703 REPLACE_CTIME
704 HAVE_TZALLOC
705 HAVE_TIMEZONE_T
706 HAVE_TIMESPEC_GETRES
707 HAVE_TIMESPEC_GET
708 HAVE_TIMEGM
709 HAVE_STRPTIME
710 HAVE_NANOSLEEP
711 HAVE_DECL_LOCALTIME_R
712 HAVE_BLKCNT_T
713 HAVE_BLKSIZE_T
714 WINDOWS_STAT_INODES
715 HAVE_OFF64_T
716 WINDOWS_64_BIT_OFF_T
717 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
718 NEXT_SYS_TYPES_H
719 NEXT_AS_FIRST_DIRECTIVE_STRING_H
720 NEXT_STRING_H
721 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE
722 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE
723 GL_GNULIB_MDA_STRDUP
724 GL_GNULIB_MDA_MEMCCPY
725 GL_GNULIB_STRVERSCMP
726 GL_GNULIB_STRSIGNAL
727 GL_GNULIB_SIGDESCR_NP
728 GL_GNULIB_SIGABBREV_NP
729 GL_GNULIB_STRERRORNAME_NP
730 GL_GNULIB_STRERROR_L
731 GL_GNULIB_STRERROR_R
732 GL_GNULIB_STRERROR
733 GL_GNULIB_MBS_ENDSWITH
734 GL_GNULIB_MBS_STARTSWITH
735 GL_GNULIB_MBSTOK_R
736 GL_GNULIB_MBSSEP
737 GL_GNULIB_MBSSPN
738 GL_GNULIB_MBSPBRK
739 GL_GNULIB_MBSCSPN
740 GL_GNULIB_MBSCASESTR
741 GL_GNULIB_MBSPCASECMP
742 GL_GNULIB_MBSNCASECMP
743 GL_GNULIB_MBSCASECMP
744 GL_GNULIB_MBSSTR
745 GL_GNULIB_MBSRCHR
746 GL_GNULIB_MBSCHR
747 GL_GNULIB_MBSNLEN
748 GL_GNULIB_MBSLEN
749 GL_GNULIB_STR_ENDSWITH
750 GL_GNULIB_STR_STARTSWITH
751 GL_GNULIB_STRNUL
752 GL_GNULIB_STRTOK_R
753 GL_GNULIB_STRCASESTR
754 GL_GNULIB_STRSTR
755 GL_GNULIB_STRSEP
756 GL_GNULIB_STRPBRK
757 GL_GNULIB_STRNLEN
758 GL_GNULIB_STRNDUP
759 GL_GNULIB_STRNCPY
760 GL_GNULIB_STRNCAT
761 GL_GNULIB_STRINGEQ
762 GL_GNULIB_STRDUP
763 GL_GNULIB_STRCHRNUL
764 GL_GNULIB_STPNCPY
765 GL_GNULIB_STPCPY
766 GL_GNULIB_RAWMEMCHR
767 GL_GNULIB_MEMSET_EXPLICIT
768 GL_GNULIB_MEMRCHR
769 GL_GNULIB_MEMPCPY
770 GL_GNULIB_MEMMEM
771 GL_GNULIB_MEMCHR
772 GL_GNULIB_FFSLL
773 GL_GNULIB_FFSL
774 GL_GNULIB_EXPLICIT_BZERO
775 GL_COND_OBJ_STRERROR_FALSE
776 GL_COND_OBJ_STRERROR_TRUE
777 UNDEFINE_STRTOK_R
778 REPLACE_STRVERSCMP
779 REPLACE_STRSIGNAL
780 REPLACE_STRERRORNAME_NP
781 REPLACE_STRERROR_L
782 REPLACE_STRERROR_R
783 REPLACE_STRERROR
784 REPLACE_STRTOK_R
785 REPLACE_STRCASESTR
786 REPLACE_STRSTR
787 REPLACE_STRNLEN
788 REPLACE_STRNDUP
789 REPLACE_STRNCPY
790 REPLACE_STRNCAT
791 REPLACE_STRDUP
792 REPLACE_STRCHRNUL
793 REPLACE_STPNCPY
794 REPLACE_STPCPY
795 REPLACE_MEMSET_EXPLICIT
796 REPLACE_MEMPCPY
797 REPLACE_MEMMEM
798 REPLACE_MEMCHR
799 REPLACE_FFSLL
800 HAVE_STRVERSCMP
801 HAVE_DECL_STRSIGNAL
802 HAVE_SIGDESCR_NP
803 HAVE_SIGABBREV_NP
804 HAVE_STRERRORNAME_NP
805 HAVE_STRERROR_L
806 HAVE_DECL_STRERROR_R
807 HAVE_DECL_STRTOK_R
808 HAVE_STRCASESTR
809 HAVE_STRSEP
810 HAVE_STRPBRK
811 HAVE_DECL_STRNLEN
812 HAVE_DECL_STRNDUP
813 HAVE_DECL_STREQ
814 HAVE_DECL_STRDUP
815 HAVE_STRCHRNUL
816 HAVE_STPNCPY
817 HAVE_STPCPY
818 HAVE_RAWMEMCHR
819 HAVE_DECL_MEMRCHR
820 HAVE_MEMSET_EXPLICIT
821 HAVE_MEMPCPY
822 HAVE_DECL_MEMMEM
823 HAVE_DECL_MEMEQ
824 HAVE_FFSLL
825 HAVE_FFSL
826 HAVE_EXPLICIT_BZERO
827 HAVE_MBSLEN
828 LOCALE_EN_UTF8
829 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
830 NEXT_STDLIB_H
831 GL_COND_OBJ_STDIO_CONSOLESAFE_FALSE
832 GL_COND_OBJ_STDIO_CONSOLESAFE_TRUE
833 GL_COND_OBJ_STDIO_WRITE_FALSE
834 GL_COND_OBJ_STDIO_WRITE_TRUE
835 GL_COND_OBJ_STDIO_READ_FALSE
836 GL_COND_OBJ_STDIO_READ_TRUE
837 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
838 NEXT_STDIO_H
839 GL_GENERATE_STDINT_H_FALSE
840 GL_GENERATE_STDINT_H_TRUE
841 STDINT_H
842 HAVE_SYS_INTTYPES_H
843 HAVE_SYS_BITYPES_H
844 HAVE_C99_STDINT_H
845 WINT_T_SUFFIX
846 WCHAR_T_SUFFIX
847 SIG_ATOMIC_T_SUFFIX
848 SIZE_T_SUFFIX
849 PTRDIFF_T_SUFFIX
850 HAVE_SIGNED_WINT_T
851 HAVE_SIGNED_WCHAR_T
852 HAVE_SIGNED_SIG_ATOMIC_T
853 BITSIZEOF_WINT_T
854 BITSIZEOF_WCHAR_T
855 BITSIZEOF_SIG_ATOMIC_T
856 BITSIZEOF_SIZE_T
857 BITSIZEOF_PTRDIFF_T
858 HAVE_STDINT_H
859 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
860 NEXT_STDINT_H
861 HAVE_SYS_TYPES_H
862 HAVE_INTTYPES_H
863 HAVE_WCHAR_H
864 GNULIBHEADERS_OVERRIDE_WINT_T
865 GL_GENERATE_STDDEF_H_FALSE
866 GL_GENERATE_STDDEF_H_TRUE
867 STDDEF_H
868 GL_GENERATE_STDCKDINT_H_FALSE
869 GL_GENERATE_STDCKDINT_H_TRUE
870 STDCKDINT_H
871 HAVE_WORKING_CXX_STDCKDINT_H
872 HAVE_CXX_STDCKDINT_H
873 HAVE_WORKING_C_STDCKDINT_H
874 HAVE_C_STDCKDINT_H
875 HAVE_STDCKDINT_H
876 NEXT_AS_FIRST_DIRECTIVE_STDCKDINT_H
877 NEXT_STDCKDINT_H
878 GL_COND_OBJ_STAT_FALSE
879 GL_COND_OBJ_STAT_TRUE
880 GL_COND_OBJ_OPEN_FALSE
881 GL_COND_OBJ_OPEN_TRUE
882 APPLE_UNIVERSAL_BUILD
883 GL_COND_OBJ_MSVC_NOTHROW_FALSE
884 GL_COND_OBJ_MSVC_NOTHROW_TRUE
885 GL_COND_OBJ_MSVC_INVAL_FALSE
886 GL_COND_OBJ_MSVC_INVAL_TRUE
887 GL_COND_OBJ_LSTAT_FALSE
888 GL_COND_OBJ_LSTAT_TRUE
889 GL_GNULIB_LOCALENAME_UNSAFE
890 GL_GNULIB_GETLOCALENAME_L_UNSAFE
891 GL_GNULIB_GETLOCALENAME_L
892 GL_GNULIB_FREELOCALE
893 GL_GNULIB_DUPLOCALE
894 GL_GNULIB_NEWLOCALE
895 GL_GNULIB_SETLOCALE_NULL
896 GL_GNULIB_SETLOCALE
897 GL_GNULIB_LOCALECONV
898 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
899 NEXT_LOCALE_H
900 HAVE_WINDOWS_LOCALE_T
901 HAVE_LOCALE_T
902 HAVE_XLOCALE_H
903 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
904 NEXT_STDDEF_H
905 HAVE_C_UNREACHABLE
906 HAVE_MAX_ALIGN_T
907 REPLACE_NULL
908 STDDEF_NOT_IDEMPOTENT
909 NULLPTR_T_NEEDS_STDDEF
910 LOCALENAME_ENHANCE_LOCALE_FUNCS
911 REPLACE_STRUCT_LCONV
912 REPLACE_GETLOCALENAME_L
913 REPLACE_FREELOCALE
914 REPLACE_DUPLOCALE
915 REPLACE_NEWLOCALE
916 REPLACE_SETLOCALE
917 REPLACE_LOCALECONV
918 HAVE_GETLOCALENAME_L
919 HAVE_FREELOCALE
920 HAVE_DUPLOCALE
921 HAVE_NEWLOCALE
922 GL_GENERATE_LIMITS_H_FALSE
923 GL_GENERATE_LIMITS_H_TRUE
924 LIMITS_H
925 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
926 NEXT_LIMITS_H
927 GNULIB_LOCALEDIR_c_make
928 GNULIB_LOCALEDIR_c
929 GNULIB_LOCALEDIR
930 LTLIBINTL
931 LIBINTL
932 GL_GNULIB_MDA_PUTENV
933 GL_GNULIB_MDA_MKTEMP
934 GL_GNULIB_MDA_GCVT
935 GL_GNULIB_MDA_FCVT
936 GL_GNULIB_MDA_ECVT
937 GL_GNULIB_WCTOMB
938 GL_GNULIB_UNSETENV
939 GL_GNULIB_UNLOCKPT
940 GL_GNULIB_SYSTEM_POSIX
941 GL_GNULIB_STRTOULL
942 GL_GNULIB_STRTOUL
943 GL_GNULIB_STRTOLL
944 GL_GNULIB_STRTOLD
945 GL_GNULIB_STRTOL
946 GL_GNULIB_STRTOF
947 GL_GNULIB_STRTOD
948 GL_GNULIB_STACK_TRACE
949 GL_GNULIB_SETENV
950 GL_GNULIB_SECURE_GETENV
951 GL_GNULIB_RPMATCH
952 GL_GNULIB_REALPATH
953 GL_GNULIB_REALLOC_POSIX
954 GL_GNULIB_REALLOCARRAY
955 GL_GNULIB_RANDOM_R
956 GL_GNULIB_RANDOM
957 GL_GNULIB_RAND
958 GL_GNULIB_QSORT_R
959 GL_GNULIB_PUTENV
960 GL_GNULIB_PTSNAME_R
961 GL_GNULIB_PTSNAME
962 GL_GNULIB_POSIX_OPENPT
963 GL_GNULIB_POSIX_MEMALIGN
964 GL_GNULIB_MKSTEMPS
965 GL_GNULIB_MKSTEMP
966 GL_GNULIB_MKOSTEMPS
967 GL_GNULIB_MKOSTEMP
968 GL_GNULIB_MKDTEMP
969 GL_GNULIB_MBTOWC
970 GL_GNULIB_MBSTOWCS
971 GL_GNULIB_MALLOC_POSIX
972 GL_GNULIB_MALLOC_GNU
973 GL_GNULIB_GRANTPT
974 GL_GNULIB_GETSUBOPT
975 GL_GNULIB_GETPROGNAME
976 GL_GNULIB_GETLOADAVG
977 GL_GNULIB_FREE_POSIX
978 GL_GNULIB_CANONICALIZE_FILE_NAME
979 GL_GNULIB_CALLOC_POSIX
980 GL_GNULIB_CALLOC_GNU
981 GL_GNULIB_ATOLL
982 GL_GNULIB_ALIGNED_ALLOC
983 GL_GNULIB_ABORT_DEBUG
984 GL_GNULIB__EXIT
985 GL_COND_OBJ_GETPROGNAME_FALSE
986 GL_COND_OBJ_GETPROGNAME_TRUE
987 CAN_PRINT_STACK_TRACE
988 REPLACE_WCTOMB
989 REPLACE_UNSETENV
990 REPLACE_STRTOULL
991 REPLACE_STRTOUL
992 REPLACE_STRTOLL
993 REPLACE_STRTOLD
994 REPLACE_STRTOL
995 REPLACE_STRTOF
996 REPLACE_STRTOD
997 REPLACE_SETSTATE
998 REPLACE_SETENV
999 REPLACE_REALPATH
1000 REPLACE_REALLOCARRAY
1001 REPLACE_REALLOC_FOR_REALLOC_POSIX
1002 REPLACE_RANDOM_R
1003 REPLACE_RANDOM
1004 REPLACE_RAND
1005 REPLACE_QSORT_R
1006 REPLACE_PUTENV
1007 REPLACE_PTSNAME_R
1008 REPLACE_PTSNAME
1009 REPLACE_POSIX_OPENPT
1010 REPLACE_POSIX_MEMALIGN
1011 REPLACE_MKSTEMP
1012 REPLACE_MKOSTEMPS
1013 REPLACE_MKOSTEMP
1014 REPLACE_MBTOWC
1015 REPLACE_MBSTOWCS
1016 REPLACE_MB_CUR_MAX
1017 REPLACE_MALLOC_FOR_MALLOC_POSIX
1018 REPLACE_MALLOC_FOR_MALLOC_GNU
1019 REPLACE_INITSTATE
1020 REPLACE_GETSUBOPT
1021 REPLACE_GETPROGNAME
1022 REPLACE_GETLOADAVG
1023 REPLACE_FREE
1024 REPLACE_CANONICALIZE_FILE_NAME
1025 REPLACE_CALLOC_FOR_CALLOC_POSIX
1026 REPLACE_CALLOC_FOR_CALLOC_GNU
1027 REPLACE_ALIGNED_ALLOC
1028 REPLACE_ABORT
1029 REPLACE__EXIT
1030 HAVE_DECL_UNSETENV
1031 HAVE_UNLOCKPT
1032 HAVE_SYS_PROCESS_H
1033 HAVE_SYS_LOADAVG_H
1034 HAVE_STRUCT_RANDOM_DATA
1035 HAVE_STRTOULL
1036 HAVE_STRTOUL
1037 HAVE_STRTOLL
1038 HAVE_STRTOLD
1039 HAVE_STRTOL
1040 HAVE_STRTOF
1041 HAVE_STRTOD
1042 HAVE_DECL_SETSTATE
1043 HAVE_SETSTATE
1044 HAVE_DECL_SETENV
1045 HAVE_SETENV
1046 HAVE_SECURE_GETENV
1047 HAVE_RPMATCH
1048 HAVE_REALPATH
1049 HAVE_REALLOCARRAY
1050 HAVE_RANDOM_R
1051 HAVE_RANDOM
1052 HAVE_QSORT_R
1053 HAVE_PTSNAME_R
1054 HAVE_PTSNAME
1055 HAVE_POSIX_OPENPT
1056 HAVE_POSIX_MEMALIGN
1057 HAVE_MKSTEMPS
1058 HAVE_MKSTEMP
1059 HAVE_MKOSTEMPS
1060 HAVE_MKOSTEMP
1061 HAVE_MKDTEMP
1062 HAVE_MBTOWC
1063 HAVE_DECL_INITSTATE
1064 HAVE_INITSTATE
1065 HAVE_GRANTPT
1066 HAVE_GETSUBOPT
1067 HAVE_GETPROGNAME
1068 HAVE_DECL_PROGRAM_INVOCATION_NAME
1069 HAVE_DECL_GETLOADAVG
1070 HAVE_DECL_GCVT
1071 HAVE_DECL_FCVT
1072 HAVE_DECL_ECVT
1073 HAVE_CANONICALIZE_FILE_NAME
1074 HAVE_ATOLL
1075 HAVE_ALIGNED_ALLOC
1076 HAVE__EXIT
1077 GL_COND_OBJ_GETLINE_FALSE
1078 GL_COND_OBJ_GETLINE_TRUE
1079 GL_COND_OBJ_GETDTABLESIZE_FALSE
1080 GL_COND_OBJ_GETDTABLESIZE_TRUE
1081 GL_GNULIB_MDA_TEMPNAM
1082 GL_GNULIB_MDA_PUTW
1083 GL_GNULIB_MDA_GETW
1084 GL_GNULIB_MDA_FILENO
1085 GL_GNULIB_MDA_FDOPEN
1086 GL_GNULIB_MDA_FCLOSEALL
1087 GL_GNULIB_ZPRINTF
1088 GL_GNULIB_VZPRINTF
1089 GL_GNULIB_VSZPRINTF
1090 GL_GNULIB_VSPRINTF_POSIX
1091 GL_GNULIB_VSNZPRINTF
1092 GL_GNULIB_VSNPRINTF
1093 GL_GNULIB_VPRINTF_POSIX
1094 GL_GNULIB_VPRINTF
1095 GL_GNULIB_VFZPRINTF
1096 GL_GNULIB_VFPRINTF_POSIX
1097 GL_GNULIB_VFPRINTF
1098 GL_GNULIB_VDZPRINTF
1099 GL_GNULIB_VDPRINTF
1100 GL_GNULIB_VSCANF
1101 GL_GNULIB_VFSCANF
1102 GL_GNULIB_VASZPRINTF
1103 GL_GNULIB_VASPRINTF
1104 GL_GNULIB_TMPFILE
1105 GL_GNULIB_SZPRINTF
1106 GL_GNULIB_STDIO_H_SIGPIPE
1107 GL_GNULIB_STDIO_H_NONBLOCKING
1108 GL_GNULIB_SPRINTF_POSIX
1109 GL_GNULIB_SNZPRINTF
1110 GL_GNULIB_SNPRINTF
1111 GL_GNULIB_SCANF
1112 GL_GNULIB_RENAMEAT
1113 GL_GNULIB_RENAME
1114 GL_GNULIB_REMOVE
1115 GL_GNULIB_PUTS
1116 GL_GNULIB_PUTCHAR
1117 GL_GNULIB_PUTC
1118 GL_GNULIB_PRINTF_POSIX
1119 GL_GNULIB_PRINTF
1120 GL_GNULIB_POPEN
1121 GL_GNULIB_PERROR
1122 GL_GNULIB_PCLOSE
1123 GL_GNULIB_OBSTACK_ZPRINTF
1124 GL_GNULIB_OBSTACK_PRINTF_POSIX
1125 GL_GNULIB_OBSTACK_PRINTF
1126 GL_GNULIB_GETLINE
1127 GL_GNULIB_GETDELIM
1128 GL_GNULIB_GETCHAR
1129 GL_GNULIB_GETC
1130 GL_GNULIB_FZPRINTF
1131 GL_GNULIB_FWRITE
1132 GL_GNULIB_FTELLO
1133 GL_GNULIB_FTELL
1134 GL_GNULIB_FSEEKO
1135 GL_GNULIB_FSEEK
1136 GL_GNULIB_FSCANF
1137 GL_GNULIB_FREOPEN
1138 GL_GNULIB_FREAD
1139 GL_GNULIB_FPUTS
1140 GL_GNULIB_FPUTC
1141 GL_GNULIB_FPURGE
1142 GL_GNULIB_FPRINTF_POSIX
1143 GL_GNULIB_FPRINTF
1144 GL_GNULIB_FOPEN_GNU
1145 GL_GNULIB_FOPEN
1146 GL_GNULIB_FGETS
1147 GL_GNULIB_FGETC
1148 GL_GNULIB_FFLUSH
1149 GL_GNULIB_FDOPEN
1150 GL_GNULIB_FCLOSE
1151 GL_GNULIB_DZPRINTF
1152 GL_GNULIB_DPRINTF
1153 GL_COND_OBJ_GETDELIM_FALSE
1154 GL_COND_OBJ_GETDELIM_TRUE
1155 REPLACE_VSPRINTF
1156 REPLACE_VSNPRINTF
1157 REPLACE_VPRINTF
1158 REPLACE_VFPRINTF
1159 REPLACE_VDPRINTF
1160 REPLACE_VASPRINTF
1161 REPLACE_TMPFILE
1162 REPLACE_STDIO_WRITE_FUNCS
1163 REPLACE_STDIO_READ_FUNCS
1164 REPLACE_SPRINTF
1165 REPLACE_SNPRINTF
1166 REPLACE_RENAMEAT
1167 REPLACE_RENAME
1168 REPLACE_REMOVE
1169 REPLACE_PRINTF
1170 REPLACE_POPEN
1171 REPLACE_PERROR
1172 REPLACE_OBSTACK_PRINTF
1173 REPLACE_GETLINE
1174 REPLACE_GETDELIM
1175 REPLACE_FTELLO
1176 REPLACE_FTELL
1177 REPLACE_FSEEKO
1178 REPLACE_FSEEK
1179 REPLACE_FREOPEN
1180 REPLACE_FPURGE
1181 REPLACE_FPRINTF
1182 REPLACE_FOPEN_FOR_FOPEN_GNU
1183 REPLACE_FOPEN
1184 REPLACE_FFLUSH
1185 REPLACE_FDOPEN
1186 REPLACE_FCLOSE
1187 REPLACE_DPRINTF
1188 HAVE_VDPRINTF
1189 HAVE_VASPRINTF
1190 HAVE_RENAMEAT
1191 HAVE_POPEN
1192 HAVE_PCLOSE
1193 HAVE_FTELLO
1194 HAVE_FSEEKO
1195 HAVE_DPRINTF
1196 HAVE_DECL_VSNPRINTF
1197 HAVE_DECL_SNPRINTF
1198 HAVE_DECL_PUTW
1199 HAVE_DECL_OBSTACK_PRINTF
1200 HAVE_DECL_GETW
1201 HAVE_DECL_GETLINE
1202 HAVE_DECL_GETDELIM
1203 HAVE_DECL_FTELLO
1204 HAVE_DECL_FSEEKO
1205 HAVE_DECL_FPURGE
1206 HAVE_DECL_FCLOSEALL
1207 GL_GNULIB_MDA_UMASK
1208 GL_GNULIB_MDA_MKDIR
1209 GL_GNULIB_MDA_CHMOD
1210 GL_GNULIB_OVERRIDES_STRUCT_STAT
1211 GL_GNULIB_UTIMENSAT
1212 GL_GNULIB_STAT
1213 GL_GNULIB_MKNODAT
1214 GL_GNULIB_MKNOD
1215 GL_GNULIB_MKFIFOAT
1216 GL_GNULIB_MKFIFO
1217 GL_GNULIB_MKDIRAT
1218 GL_GNULIB_MKDIR
1219 GL_GNULIB_LSTAT
1220 GL_GNULIB_LCHMOD
1221 GL_GNULIB_GETUMASK
1222 GL_GNULIB_FUTIMENS
1223 GL_GNULIB_FSTATAT
1224 GL_GNULIB_FSTAT
1225 GL_GNULIB_FCHMODAT
1226 GL_GNULIB_CHMOD
1227 WINDOWS_64_BIT_ST_SIZE
1228 WINDOWS_STAT_TIMESPEC
1229 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1230 NEXT_SYS_STAT_H
1231 GL_COND_OBJ_FSTAT_FALSE
1232 GL_COND_OBJ_FSTAT_TRUE
1233 REPLACE_UTIMENSAT
1234 REPLACE_STAT
1235 REPLACE_MKNODAT
1236 REPLACE_MKNOD
1237 REPLACE_MKFIFOAT
1238 REPLACE_MKFIFO
1239 REPLACE_MKDIR
1240 REPLACE_LSTAT
1241 REPLACE_FUTIMENS
1242 REPLACE_FSTATAT
1243 REPLACE_FSTAT
1244 REPLACE_FCHMODAT
1245 REPLACE_CHMOD
1246 HAVE_UTIMENSAT
1247 HAVE_MKNODAT
1248 HAVE_MKNOD
1249 HAVE_MKFIFOAT
1250 HAVE_MKFIFO
1251 HAVE_MKDIRAT
1252 HAVE_LSTAT
1253 HAVE_LCHMOD
1254 HAVE_GETUMASK
1255 HAVE_FUTIMENS
1256 HAVE_FSTATAT
1257 HAVE_FCHMODAT
1258 GL_COND_OBJ_FSETERR_FALSE
1259 GL_COND_OBJ_FSETERR_TRUE
1260 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1261 NEXT_FCNTL_H
1262 GL_GNULIB_MDA_OPEN
1263 GL_GNULIB_MDA_CREAT
1264 GL_GNULIB_OPENAT2
1265 GL_GNULIB_OPENAT
1266 GL_GNULIB_OPEN
1267 GL_GNULIB_NONBLOCKING
1268 GL_GNULIB_FCNTL
1269 GL_GNULIB_CREAT
1270 GL_COND_OBJ_FCNTL_FALSE
1271 GL_COND_OBJ_FCNTL_TRUE
1272 REPLACE_OPENAT
1273 REPLACE_OPEN
1274 REPLACE_FCNTL
1275 REPLACE_CREAT
1276 HAVE_OPENAT2
1277 HAVE_OPENAT
1278 HAVE_FCNTL
1279 GL_COND_OBJ_ERROR_FALSE
1280 GL_COND_OBJ_ERROR_TRUE
1281 REPLACE_ERROR_AT_LINE
1282 REPLACE_ERROR
1283 HAVE_ERROR_AT_LINE
1284 HAVE_ERROR
1285 HAVE_ERROR_H
1286 NEXT_AS_FIRST_DIRECTIVE_ERROR_H
1287 NEXT_ERROR_H
1288 GL_GENERATE_ERRNO_H_FALSE
1289 GL_GENERATE_ERRNO_H_TRUE
1290 ERRNO_H
1291 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1292 NEXT_ERRNO_H
1293 GL_COND_OBJ_DUP2_FALSE
1294 GL_COND_OBJ_DUP2_TRUE
1295 GL_GNULIB_MDA_WRITE
1296 GL_GNULIB_MDA_UNLINK
1297 GL_GNULIB_MDA_SWAB
1298 GL_GNULIB_MDA_RMDIR
1299 GL_GNULIB_MDA_READ
1300 GL_GNULIB_MDA_LSEEK
1301 GL_GNULIB_MDA_ISATTY
1302 GL_GNULIB_MDA_GETPID
1303 GL_GNULIB_MDA_GETCWD
1304 GL_GNULIB_MDA_EXECVPE
1305 GL_GNULIB_MDA_EXECVP
1306 GL_GNULIB_MDA_EXECVE
1307 GL_GNULIB_MDA_EXECV
1308 GL_GNULIB_MDA_EXECLP
1309 GL_GNULIB_MDA_EXECLE
1310 GL_GNULIB_MDA_EXECL
1311 GL_GNULIB_MDA_DUP2
1312 GL_GNULIB_MDA_DUP
1313 GL_GNULIB_MDA_CLOSE
1314 GL_GNULIB_MDA_CHDIR
1315 GL_GNULIB_MDA_ACCESS
1316 GL_GNULIB_WRITE
1317 GL_GNULIB_USLEEP
1318 GL_GNULIB_UNLINKAT
1319 GL_GNULIB_UNLINK
1320 GL_GNULIB_UNISTD_H_SIGPIPE
1321 GL_GNULIB_UNISTD_H_NONBLOCKING
1322 GL_GNULIB_UNISTD_H_GETOPT
1323 GL_GNULIB_TTYNAME_R
1324 GL_GNULIB_TRUNCATE
1325 GL_GNULIB_SYMLINKAT
1326 GL_GNULIB_SYMLINK
1327 GL_GNULIB_SLEEP
1328 GL_GNULIB_SETHOSTNAME
1329 GL_GNULIB_RMDIR
1330 GL_GNULIB_READLINKAT
1331 GL_GNULIB_READLINK
1332 GL_GNULIB_READ
1333 GL_GNULIB_PWRITE
1334 GL_GNULIB_PREAD
1335 GL_GNULIB_PIPE2
1336 GL_GNULIB_PIPE
1337 GL_GNULIB_LSEEK
1338 GL_GNULIB_LINKAT
1339 GL_GNULIB_LINK
1340 GL_GNULIB_LCHOWN
1341 GL_GNULIB_ISATTY
1342 GL_GNULIB_GROUP_MEMBER
1343 GL_GNULIB_GETUSERSHELL
1344 GL_GNULIB_GETPASS_GNU
1345 GL_GNULIB_GETPASS
1346 GL_GNULIB_GETPAGESIZE
1347 GL_GNULIB_GETOPT_POSIX
1348 GL_GNULIB_GETLOGIN_R
1349 GL_GNULIB_GETLOGIN
1350 GL_GNULIB_GETHOSTNAME
1351 GL_GNULIB_GETGROUPS
1352 GL_GNULIB_GETENTROPY
1353 GL_GNULIB_GETDTABLESIZE
1354 GL_GNULIB_GETDOMAINNAME
1355 GL_GNULIB_GETCWD
1356 GL_GNULIB_FTRUNCATE
1357 GL_GNULIB_FSYNC
1358 GL_GNULIB_FDATASYNC
1359 GL_GNULIB_FCHOWNAT
1360 GL_GNULIB_FCHDIR
1361 GL_GNULIB_FACCESSAT
1362 GL_GNULIB_EXECVPE
1363 GL_GNULIB_EXECVP
1364 GL_GNULIB_EXECVE
1365 GL_GNULIB_EXECV
1366 GL_GNULIB_EXECLP
1367 GL_GNULIB_EXECLE
1368 GL_GNULIB_EXECL
1369 GL_GNULIB_EUIDACCESS
1370 GL_GNULIB_ENVIRON
1371 GL_GNULIB_DUP3
1372 GL_GNULIB_DUP2
1373 GL_GNULIB_DUP
1374 GL_GNULIB_COPY_FILE_RANGE
1375 GL_GNULIB_CLOSE
1376 GL_GNULIB_CHOWN
1377 GL_GNULIB_CHDIR
1378 GL_GNULIB_ACCESS
1379 GL_COND_OBJ_CLOSE_FALSE
1380 GL_COND_OBJ_CLOSE_TRUE
1381 HAVE_WINSOCK2_H
1382 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1383 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1384 UNISTD_H_HAVE_WINSOCK2_H
1385 UNISTD_H_HAVE_SYS_RANDOM_H
1386 REPLACE_WRITE
1387 REPLACE_USLEEP
1388 REPLACE_UNLINKAT
1389 REPLACE_UNLINK
1390 REPLACE_TTYNAME_R
1391 REPLACE_TRUNCATE
1392 REPLACE_SYMLINKAT
1393 REPLACE_SYMLINK
1394 REPLACE_SLEEP
1395 REPLACE_SETHOSTNAME
1396 REPLACE_RMDIR
1397 REPLACE_READLINKAT
1398 REPLACE_READLINK
1399 REPLACE_READ
1400 REPLACE_PWRITE
1401 REPLACE_PREAD
1402 REPLACE_PIPE2
1403 REPLACE_LSEEK
1404 REPLACE_LINKAT
1405 REPLACE_LINK
1406 REPLACE_LCHOWN
1407 REPLACE_ISATTY
1408 REPLACE_GETUSERSHELL
1409 REPLACE_GETPASS_FOR_GETPASS_GNU
1410 REPLACE_GETPASS
1411 REPLACE_GETPAGESIZE
1412 REPLACE_GETGROUPS
1413 REPLACE_GETLOGIN_R
1414 REPLACE_GETLOGIN
1415 REPLACE_GETENTROPY
1416 REPLACE_GETDTABLESIZE
1417 REPLACE_GETDOMAINNAME
1418 REPLACE_GETCWD
1419 REPLACE_FTRUNCATE
1420 REPLACE_FDATASYNC
1421 REPLACE_FCHOWNAT
1422 REPLACE_FCHDIR
1423 REPLACE_FACCESSAT
1424 REPLACE_EXECVPE
1425 REPLACE_EXECVP
1426 REPLACE_EXECVE
1427 REPLACE_EXECV
1428 REPLACE_EXECLP
1429 REPLACE_EXECLE
1430 REPLACE_EXECL
1431 REPLACE_DUP3
1432 REPLACE_DUP2
1433 REPLACE_DUP
1434 REPLACE_COPY_FILE_RANGE
1435 REPLACE_CLOSE
1436 REPLACE_CHOWN
1437 REPLACE_ACCESS
1438 HAVE_SYS_PARAM_H
1439 HAVE_OS_H
1440 HAVE_DECL_TTYNAME_R
1441 HAVE_DECL_TRUNCATE
1442 HAVE_DECL_SETHOSTNAME
1443 HAVE_DECL_GETUSERSHELL
1444 HAVE_DECL_GETPAGESIZE
1445 HAVE_DECL_GETLOGIN_R
1446 HAVE_DECL_GETLOGIN
1447 HAVE_DECL_GETDOMAINNAME
1448 HAVE_DECL_FDATASYNC
1449 HAVE_DECL_FCHDIR
1450 HAVE_DECL_EXECVPE
1451 HAVE_DECL_ENVIRON
1452 HAVE_USLEEP
1453 HAVE_UNLINKAT
1454 HAVE_SYMLINKAT
1455 HAVE_SYMLINK
1456 HAVE_SLEEP
1457 HAVE_SETHOSTNAME
1458 HAVE_READLINKAT
1459 HAVE_READLINK
1460 HAVE_PWRITE
1461 HAVE_PREAD
1462 HAVE_PIPE2
1463 HAVE_PIPE
1464 HAVE_LINKAT
1465 HAVE_LINK
1466 HAVE_LCHOWN
1467 HAVE_GROUP_MEMBER
1468 HAVE_GETPASS
1469 HAVE_GETPAGESIZE
1470 HAVE_GETLOGIN
1471 HAVE_GETHOSTNAME
1472 HAVE_GETGROUPS
1473 HAVE_GETENTROPY
1474 HAVE_GETDTABLESIZE
1475 HAVE_FTRUNCATE
1476 HAVE_FSYNC
1477 HAVE_FDATASYNC
1478 HAVE_FCHOWNAT
1479 HAVE_FCHDIR
1480 HAVE_FACCESSAT
1481 HAVE_EXECVPE
1482 HAVE_EUIDACCESS
1483 HAVE_DUP3
1484 HAVE_COPY_FILE_RANGE
1485 HAVE_CHOWN
1486 GL_GENERATE_ASSERT_H_FALSE
1487 GL_GENERATE_ASSERT_H_TRUE
1488 ASSERT_H
1489 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H
1490 NEXT_ASSERT_H
1491 PRAGMA_COLUMNS
1492 PRAGMA_SYSTEM_HEADER
1493 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1494 INCLUDE_NEXT
1495 GL_GENERATE_ALLOCA_H_FALSE
1496 GL_GENERATE_ALLOCA_H_TRUE
1497 ALLOCA_H
1498 HAVE_ALLOCA_H
1499 GL_COND_LIBTOOL_FALSE
1500 GL_COND_LIBTOOL_TRUE
1501 FUZZ_CPPFLAGS
1502 FUZZ_CFLAGS
1503 AFL_CXX
1504 AFL_CC
1505 ENABLE_FUZZING_FALSE
1506 ENABLE_FUZZING_TRUE
1507 ALLOCA
1508 DEFAULT_EDITOR
1509 PERL
1510 HAVE_XMLTO_FALSE
1511 HAVE_XMLTO_TRUE
1512 XMLTO
1513 LN_S
1514 RANLIB
1515 ARFLAGS
1516 AR
1517 CPP
1518 host_os
1519 host_vendor
1520 host_cpu
1521 host
1522 build_os
1523 build_vendor
1524 build_cpu
1525 build
1526 am__fastdepCC_FALSE
1527 am__fastdepCC_TRUE
1528 CCDEPMODE
1529 am__nodep
1530 AMDEPBACKSLASH
1531 AMDEP_FALSE
1532 AMDEP_TRUE
1533 am__include
1534 DEPDIR
1535 OBJEXT
1536 EXEEXT
1537 ac_ct_CC
1538 CPPFLAGS
1539 LDFLAGS
1540 CFLAGS
1541 CC
1542 am__xargs_n
1543 am__rm_f_notfound
1544 AM_BACKSLASH
1545 AM_DEFAULT_VERBOSITY
1546 AM_DEFAULT_V
1547 AM_V
1548 CSCOPE
1549 ETAGS
1550 CTAGS
1551 am__untar
1552 am__tar
1553 AMTAR
1554 am__leading_dot
1555 SET_MAKE
1556 AWK
1557 mkdir_p
1558 MKDIR_P
1559 INSTALL_STRIP_PROGRAM
1560 STRIP
1561 install_sh
1562 MAKEINFO
1563 AUTOHEADER
1564 AUTOMAKE
1565 AUTOCONF
1566 ACLOCAL
1567 VERSION
1568 PACKAGE
1569 CYGPATH_W
1570 am__isrc
1571 INSTALL_DATA
1572 INSTALL_SCRIPT
1573 INSTALL_PROGRAM
1574 target_alias
1575 host_alias
1576 build_alias
1577 LIBS
1578 ECHO_T
1579 ECHO_N
1580 ECHO_C
1581 DEFS
1582 mandir
1583 localedir
1584 libdir
1585 psdir
1586 pdfdir
1587 dvidir
1588 htmldir
1589 infodir
1590 docdir
1591 oldincludedir
1592 includedir
1593 runstatedir
1594 localstatedir
1595 sharedstatedir
1596 sysconfdir
1597 datadir
1598 datarootdir
1599 libexecdir
1600 sbindir
1601 bindir
1602 program_transform_name
1603 prefix
1604 exec_prefix
1605 PACKAGE_URL
1606 PACKAGE_BUGREPORT
1607 PACKAGE_STRING
1608 PACKAGE_VERSION
1609 PACKAGE_TARNAME
1610 PACKAGE_NAME
1611 PATH_SEPARATOR
1612 SHELL
1613 am__quote'
1614 ac_subst_files=''
1615 ac_user_opts='
1616 enable_option_checking
1617 enable_silent_rules
1618 enable_dependency_tracking
1619 enable_largefile
1620 with_pcre2
1621 enable_fuzzing
1622 with_diff
1623 with_patch
1624 enable_cross_guesses
1625 with_gnulib_prefix
1626 enable_year2038
1627 '
1628 ac_precious_vars='build_alias
1629 host_alias
1630 target_alias
1631 CC
1632 CFLAGS
1633 LDFLAGS
1634 LIBS
1635 CPPFLAGS
1636 CPP'
1637
1638
1639 # Initialize some variables set by options.
1640 ac_init_help=
1641 ac_init_version=false
1642 ac_unrecognized_opts=
1643 ac_unrecognized_sep=
1644 # The variables have the same names as the options, with
1645 # dashes changed to underlines.
1646 cache_file=/dev/null
1647 exec_prefix=NONE
1648 no_create=
1649 no_recursion=
1650 prefix=NONE
1651 program_prefix=NONE
1652 program_suffix=NONE
1653 program_transform_name=s,x,x,
1654 silent=
1655 site=
1656 srcdir=
1657 verbose=
1658 x_includes=NONE
1659 x_libraries=NONE
1660
1661 # Installation directory options.
1662 # These are left unexpanded so users can "make install exec_prefix=/foo"
1663 # and all the variables that are supposed to be based on exec_prefix
1664 # by default will actually change.
1665 # Use braces instead of parens because sh, perl, etc. also accept them.
1666 # (The list follows the same order as the GNU Coding Standards.)
1667 bindir='${exec_prefix}/bin'
1668 sbindir='${exec_prefix}/sbin'
1669 libexecdir='${exec_prefix}/libexec'
1670 datarootdir='${prefix}/share'
1671 datadir='${datarootdir}'
1672 sysconfdir='${prefix}/etc'
1673 sharedstatedir='${prefix}/com'
1674 localstatedir='${prefix}/var'
1675 runstatedir='${localstatedir}/run'
1676 includedir='${prefix}/include'
1677 oldincludedir='/usr/include'
1678 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1679 infodir='${datarootdir}/info'
1680 htmldir='${docdir}'
1681 dvidir='${docdir}'
1682 pdfdir='${docdir}'
1683 psdir='${docdir}'
1684 libdir='${exec_prefix}/lib'
1685 localedir='${datarootdir}/locale'
1686 mandir='${datarootdir}/man'
1687
1688 ac_prev=
1689 ac_dashdash=
1690 for ac_option
1691 do
1692 # If the previous option needs an argument, assign it.
1693 if test -n "$ac_prev"; then
1694 eval $ac_prev=\$ac_option
1695 ac_prev=
1696 continue
1697 fi
1698
1699 case $ac_option in
1700 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1701 *=) ac_optarg= ;;
1702 *) ac_optarg=yes ;;
1703 esac
1704
1705 case $ac_dashdash$ac_option in
1706 --)
1707 ac_dashdash=yes ;;
1708
1709 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1710 ac_prev=bindir ;;
1711 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1712 bindir=$ac_optarg ;;
1713
1714 -build | --build | --buil | --bui | --bu)
1715 ac_prev=build_alias ;;
1716 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1717 build_alias=$ac_optarg ;;
1718
1719 -cache-file | --cache-file | --cache-fil | --cache-fi \
1720 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1721 ac_prev=cache_file ;;
1722 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1723 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1724 cache_file=$ac_optarg ;;
1725
1726 --config-cache | -C)
1727 cache_file=config.cache ;;
1728
1729 -datadir | --datadir | --datadi | --datad)
1730 ac_prev=datadir ;;
1731 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1732 datadir=$ac_optarg ;;
1733
1734 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1735 | --dataroo | --dataro | --datar)
1736 ac_prev=datarootdir ;;
1737 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1738 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1739 datarootdir=$ac_optarg ;;
1740
1741 -disable-* | --disable-*)
1742 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1743 # Reject names that are not valid shell variable names.
1744 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1745 as_fn_error $? "invalid feature name: '$ac_useropt'"
1746 ac_useropt_orig=$ac_useropt
1747 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1748 case $ac_user_opts in
1749 *"
1750 "enable_$ac_useropt"
1751 "*) ;;
1752 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1753 ac_unrecognized_sep=', ';;
1754 esac
1755 eval enable_$ac_useropt=no ;;
1756
1757 -docdir | --docdir | --docdi | --doc | --do)
1758 ac_prev=docdir ;;
1759 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1760 docdir=$ac_optarg ;;
1761
1762 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1763 ac_prev=dvidir ;;
1764 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1765 dvidir=$ac_optarg ;;
1766
1767 -enable-* | --enable-*)
1768 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1769 # Reject names that are not valid shell variable names.
1770 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1771 as_fn_error $? "invalid feature name: '$ac_useropt'"
1772 ac_useropt_orig=$ac_useropt
1773 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1774 case $ac_user_opts in
1775 *"
1776 "enable_$ac_useropt"
1777 "*) ;;
1778 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1779 ac_unrecognized_sep=', ';;
1780 esac
1781 eval enable_$ac_useropt=\$ac_optarg ;;
1782
1783 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1784 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1785 | --exec | --exe | --ex)
1786 ac_prev=exec_prefix ;;
1787 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1788 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1789 | --exec=* | --exe=* | --ex=*)
1790 exec_prefix=$ac_optarg ;;
1791
1792 -gas | --gas | --ga | --g)
1793 # Obsolete; use --with-gas.
1794 with_gas=yes ;;
1795
1796 -help | --help | --hel | --he | -h)
1797 ac_init_help=long ;;
1798 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1799 ac_init_help=recursive ;;
1800 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1801 ac_init_help=short ;;
1802
1803 -host | --host | --hos | --ho)
1804 ac_prev=host_alias ;;
1805 -host=* | --host=* | --hos=* | --ho=*)
1806 host_alias=$ac_optarg ;;
1807
1808 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1809 ac_prev=htmldir ;;
1810 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1811 | --ht=*)
1812 htmldir=$ac_optarg ;;
1813
1814 -includedir | --includedir | --includedi | --included | --include \
1815 | --includ | --inclu | --incl | --inc)
1816 ac_prev=includedir ;;
1817 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1818 | --includ=* | --inclu=* | --incl=* | --inc=*)
1819 includedir=$ac_optarg ;;
1820
1821 -infodir | --infodir | --infodi | --infod | --info | --inf)
1822 ac_prev=infodir ;;
1823 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1824 infodir=$ac_optarg ;;
1825
1826 -libdir | --libdir | --libdi | --libd)
1827 ac_prev=libdir ;;
1828 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1829 libdir=$ac_optarg ;;
1830
1831 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1832 | --libexe | --libex | --libe)
1833 ac_prev=libexecdir ;;
1834 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1835 | --libexe=* | --libex=* | --libe=*)
1836 libexecdir=$ac_optarg ;;
1837
1838 -localedir | --localedir | --localedi | --localed | --locale)
1839 ac_prev=localedir ;;
1840 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1841 localedir=$ac_optarg ;;
1842
1843 -localstatedir | --localstatedir | --localstatedi | --localstated \
1844 | --localstate | --localstat | --localsta | --localst | --locals)
1845 ac_prev=localstatedir ;;
1846 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1847 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1848 localstatedir=$ac_optarg ;;
1849
1850 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1851 ac_prev=mandir ;;
1852 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1853 mandir=$ac_optarg ;;
1854
1855 -nfp | --nfp | --nf)
1856 # Obsolete; use --without-fp.
1857 with_fp=no ;;
1858
1859 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1860 | --no-cr | --no-c | -n)
1861 no_create=yes ;;
1862
1863 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1864 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1865 no_recursion=yes ;;
1866
1867 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1868 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1869 | --oldin | --oldi | --old | --ol | --o)
1870 ac_prev=oldincludedir ;;
1871 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1872 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1873 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1874 oldincludedir=$ac_optarg ;;
1875
1876 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1877 ac_prev=prefix ;;
1878 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1879 prefix=$ac_optarg ;;
1880
1881 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1882 | --program-pre | --program-pr | --program-p)
1883 ac_prev=program_prefix ;;
1884 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1885 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1886 program_prefix=$ac_optarg ;;
1887
1888 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1889 | --program-suf | --program-su | --program-s)
1890 ac_prev=program_suffix ;;
1891 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1892 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1893 program_suffix=$ac_optarg ;;
1894
1895 -program-transform-name | --program-transform-name \
1896 | --program-transform-nam | --program-transform-na \
1897 | --program-transform-n | --program-transform- \
1898 | --program-transform | --program-transfor \
1899 | --program-transfo | --program-transf \
1900 | --program-trans | --program-tran \
1901 | --progr-tra | --program-tr | --program-t)
1902 ac_prev=program_transform_name ;;
1903 -program-transform-name=* | --program-transform-name=* \
1904 | --program-transform-nam=* | --program-transform-na=* \
1905 | --program-transform-n=* | --program-transform-=* \
1906 | --program-transform=* | --program-transfor=* \
1907 | --program-transfo=* | --program-transf=* \
1908 | --program-trans=* | --program-tran=* \
1909 | --progr-tra=* | --program-tr=* | --program-t=*)
1910 program_transform_name=$ac_optarg ;;
1911
1912 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1913 ac_prev=pdfdir ;;
1914 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1915 pdfdir=$ac_optarg ;;
1916
1917 -psdir | --psdir | --psdi | --psd | --ps)
1918 ac_prev=psdir ;;
1919 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1920 psdir=$ac_optarg ;;
1921
1922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1923 | -silent | --silent | --silen | --sile | --sil)
1924 silent=yes ;;
1925
1926 -runstatedir | --runstatedir | --runstatedi | --runstated \
1927 | --runstate | --runstat | --runsta | --runst | --runs \
1928 | --run | --ru | --r)
1929 ac_prev=runstatedir ;;
1930 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1931 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1932 | --run=* | --ru=* | --r=*)
1933 runstatedir=$ac_optarg ;;
1934
1935 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1936 ac_prev=sbindir ;;
1937 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1938 | --sbi=* | --sb=*)
1939 sbindir=$ac_optarg ;;
1940
1941 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1942 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1943 | --sharedst | --shareds | --shared | --share | --shar \
1944 | --sha | --sh)
1945 ac_prev=sharedstatedir ;;
1946 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1947 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1948 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1949 | --sha=* | --sh=*)
1950 sharedstatedir=$ac_optarg ;;
1951
1952 -site | --site | --sit)
1953 ac_prev=site ;;
1954 -site=* | --site=* | --sit=*)
1955 site=$ac_optarg ;;
1956
1957 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1958 ac_prev=srcdir ;;
1959 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1960 srcdir=$ac_optarg ;;
1961
1962 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1963 | --syscon | --sysco | --sysc | --sys | --sy)
1964 ac_prev=sysconfdir ;;
1965 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1966 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1967 sysconfdir=$ac_optarg ;;
1968
1969 -target | --target | --targe | --targ | --tar | --ta | --t)
1970 ac_prev=target_alias ;;
1971 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1972 target_alias=$ac_optarg ;;
1973
1974 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1975 verbose=yes ;;
1976
1977 -version | --version | --versio | --versi | --vers | -V)
1978 ac_init_version=: ;;
1979
1980 -with-* | --with-*)
1981 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1982 # Reject names that are not valid shell variable names.
1983 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1984 as_fn_error $? "invalid package name: '$ac_useropt'"
1985 ac_useropt_orig=$ac_useropt
1986 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1987 case $ac_user_opts in
1988 *"
1989 "with_$ac_useropt"
1990 "*) ;;
1991 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1992 ac_unrecognized_sep=', ';;
1993 esac
1994 eval with_$ac_useropt=\$ac_optarg ;;
1995
1996 -without-* | --without-*)
1997 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1998 # Reject names that are not valid shell variable names.
1999 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2000 as_fn_error $? "invalid package name: '$ac_useropt'"
2001 ac_useropt_orig=$ac_useropt
2002 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2003 case $ac_user_opts in
2004 *"
2005 "with_$ac_useropt"
2006 "*) ;;
2007 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2008 ac_unrecognized_sep=', ';;
2009 esac
2010 eval with_$ac_useropt=no ;;
2011
2012 --x)
2013 # Obsolete; use --with-x.
2014 with_x=yes ;;
2015
2016 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2017 | --x-incl | --x-inc | --x-in | --x-i)
2018 ac_prev=x_includes ;;
2019 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2020 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2021 x_includes=$ac_optarg ;;
2022
2023 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2024 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2025 ac_prev=x_libraries ;;
2026 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2027 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2028 x_libraries=$ac_optarg ;;
2029
2030 -*) as_fn_error $? "unrecognized option: '$ac_option'
2031 Try '$0 --help' for more information"
2032 ;;
2033
2034 *=*)
2035 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2036 # Reject names that are not valid shell variable names.
2037 case $ac_envvar in #(
2038 '' | [0-9]* | *[!_$as_cr_alnum]* )
2039 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
2040 esac
2041 eval $ac_envvar=\$ac_optarg
2042 export $ac_envvar ;;
2043
2044 *)
2045 # FIXME: should be removed in autoconf 3.0.
2046 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
2047 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2048 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
2049 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2050 ;;
2051
2052 esac
2053 done
2054
2055 if test -n "$ac_prev"; then
2056 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2057 as_fn_error $? "missing argument to $ac_option"
2058 fi
2059
2060 if test -n "$ac_unrecognized_opts"; then
2061 case $enable_option_checking in
2062 no) ;;
2063 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2064 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2065 esac
2066 fi
2067
2068 # Check all directory arguments for consistency.
2069 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2070 datadir sysconfdir sharedstatedir localstatedir includedir \
2071 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2072 libdir localedir mandir runstatedir
2073 do
2074 eval ac_val=\$$ac_var
2075 # Remove trailing slashes.
2076 case $ac_val in
2077 */ )
2078 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2079 eval $ac_var=\$ac_val;;
2080 esac
2081 # Be sure to have absolute directory names.
2082 case $ac_val in
2083 [\\/$]* | ?:[\\/]* ) continue;;
2084 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2085 esac
2086 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2087 done
2088
2089 # There might be people who depend on the old broken behavior: '$host'
2090 # used to hold the argument of --host etc.
2091 # FIXME: To remove some day.
2092 build=$build_alias
2093 host=$host_alias
2094 target=$target_alias
2095
2096 # FIXME: To remove some day.
2097 if test "x$host_alias" != x; then
2098 if test "x$build_alias" = x; then
2099 cross_compiling=maybe
2100 elif test "x$build_alias" != "x$host_alias"; then
2101 cross_compiling=yes
2102 fi
2103 fi
2104
2105 ac_tool_prefix=
2106 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2107
2108 test "$silent" = yes && exec 6>/dev/null
2109
2110
2111 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2112 ac_ls_di=`ls -di .` &&
2113 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2114 as_fn_error $? "working directory cannot be determined"
2115 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2116 as_fn_error $? "pwd does not report name of working directory"
2117
2118
2119 # Find the source files, if location was not specified.
2120 if test -z "$srcdir"; then
2121 ac_srcdir_defaulted=yes
2122 # Try the directory containing this script, then the parent directory.
2123 ac_confdir=`$as_dirname -- "$as_myself" ||
2124 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2125 X"$as_myself" : 'X\(//\)[^/]' \| \
2126 X"$as_myself" : 'X\(//\)$' \| \
2127 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2128 printf "%s\n" X"$as_myself" |
2129 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2130 s//\1/
2131 q
2132 }
2133 /^X\(\/\/\)[^/].*/{
2134 s//\1/
2135 q
2136 }
2137 /^X\(\/\/\)$/{
2138 s//\1/
2139 q
2140 }
2141 /^X\(\/\).*/{
2142 s//\1/
2143 q
2144 }
2145 s/.*/./; q'`
2146 srcdir=$ac_confdir
2147 if test ! -r "$srcdir/$ac_unique_file"; then
2148 srcdir=..
2149 fi
2150 else
2151 ac_srcdir_defaulted=no
2152 fi
2153 if test ! -r "$srcdir/$ac_unique_file"; then
2154 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2155 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2156 fi
2157 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
2158 ac_abs_confdir=`(
2159 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2160 pwd)`
2161 # When building in place, set srcdir=.
2162 if test "$ac_abs_confdir" = "$ac_pwd"; then
2163 srcdir=.
2164 fi
2165 # Remove unnecessary trailing slashes from srcdir.
2166 # Double slashes in file names in object file debugging info
2167 # mess up M-x gdb in Emacs.
2168 case $srcdir in
2169 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2170 esac
2171 for ac_var in $ac_precious_vars; do
2172 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2173 eval ac_env_${ac_var}_value=\$${ac_var}
2174 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2175 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2176 done
2177
2178 #
2179 # Report the --help message.
2180 #
2181 if test "$ac_init_help" = "long"; then
2182 # Omit some internal or obsolete options to make the list less imposing.
2183 # This message is too long to be a string in the A/UX 3.1 sh.
2184 cat <<_ACEOF
2185 'configure' configures patchutils 0.4.5 to adapt to many kinds of systems.
2186
2187 Usage: $0 [OPTION]... [VAR=VALUE]...
2188
2189 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2190 VAR=VALUE. See below for descriptions of some of the useful variables.
2191
2192 Defaults for the options are specified in brackets.
2193
2194 Configuration:
2195 -h, --help display this help and exit
2196 --help=short display options specific to this package
2197 --help=recursive display the short help of all the included packages
2198 -V, --version display version information and exit
2199 -q, --quiet, --silent do not print 'checking ...' messages
2200 --cache-file=FILE cache test results in FILE [disabled]
2201 -C, --config-cache alias for '--cache-file=config.cache'
2202 -n, --no-create do not create output files
2203 --srcdir=DIR find the sources in DIR [configure dir or '..']
2204
2205 Installation directories:
2206 --prefix=PREFIX install architecture-independent files in PREFIX
2207 [$ac_default_prefix]
2208 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2209 [PREFIX]
2210
2211 By default, 'make install' will install all the files in
2212 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
2213 an installation prefix other than '$ac_default_prefix' using '--prefix',
2214 for instance '--prefix=\$HOME'.
2215
2216 For better control, use the options below.
2217
2218 Fine tuning of the installation directories:
2219 --bindir=DIR user executables [EPREFIX/bin]
2220 --sbindir=DIR system admin executables [EPREFIX/sbin]
2221 --libexecdir=DIR program executables [EPREFIX/libexec]
2222 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2223 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2224 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2225 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2226 --libdir=DIR object code libraries [EPREFIX/lib]
2227 --includedir=DIR C header files [PREFIX/include]
2228 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2229 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2230 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2231 --infodir=DIR info documentation [DATAROOTDIR/info]
2232 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2233 --mandir=DIR man documentation [DATAROOTDIR/man]
2234 --docdir=DIR documentation root [DATAROOTDIR/doc/patchutils]
2235 --htmldir=DIR html documentation [DOCDIR]
2236 --dvidir=DIR dvi documentation [DOCDIR]
2237 --pdfdir=DIR pdf documentation [DOCDIR]
2238 --psdir=DIR ps documentation [DOCDIR]
2239 _ACEOF
2240
2241 cat <<\_ACEOF
2242
2243 Program names:
2244 --program-prefix=PREFIX prepend PREFIX to installed program names
2245 --program-suffix=SUFFIX append SUFFIX to installed program names
2246 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2247
2248 System types:
2249 --build=BUILD configure for building on BUILD [guessed]
2250 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2251 _ACEOF
2252 fi
2253
2254 if test -n "$ac_init_help"; then
2255 case $ac_init_help in
2256 short | recursive ) echo "Configuration of patchutils 0.4.5:";;
2257 esac
2258 cat <<\_ACEOF
2259
2260 Optional Features:
2261 --disable-option-checking ignore unrecognized --enable/--with options
2262 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2263 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2264 --enable-silent-rules less verbose build output (undo: "make V=1")
2265 --disable-silent-rules verbose build output (undo: "make V=0")
2266 --enable-dependency-tracking
2267 do not reject slow dependency extractors
2268 --disable-dependency-tracking
2269 speeds up one-time build
2270 --disable-largefile omit support for large files
2271 --enable-fuzzing enable AFL++ fuzzing instrumentation [default=no]
2272 --enable-cross-guesses={conservative|risky}
2273 specify policy for cross-compilation guesses
2274 --enable-year2038 support timestamps after 2038
2275
2276 Optional Packages:
2277 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2278 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2279 --with-pcre2[=PATH] use pcre2 regex library, optionally from PATH
2280 [default=check]
2281 --with-diff=DIFF name of the diff program
2282 --with-patch=PATCH name of the patch program
2283 --with-gnulib-prefix=DIR search for gnulib's runtime data in DIR/share
2284
2285 Some influential environment variables:
2286 CC C compiler command
2287 CFLAGS C compiler flags
2288 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2289 nonstandard directory <lib dir>
2290 LIBS libraries to pass to the linker, e.g. -l<library>
2291 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2292 you have headers in a nonstandard directory <include dir>
2293 CPP C preprocessor
2294
2295 Use these variables to override the choices made by 'configure' or to help
2296 it to find libraries and programs with nonstandard names/locations.
2297
2298 Report bugs to the package provider.
2299 _ACEOF
2300 ac_status=$?
2301 fi
2302
2303 if test "$ac_init_help" = "recursive"; then
2304 # If there are subdirs, report their specific --help.
2305 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2306 test -d "$ac_dir" ||
2307 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2308 continue
2309 ac_builddir=.
2310
2311 case "$ac_dir" in
2312 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2313 *)
2314 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2315 # A ".." for each directory in $ac_dir_suffix.
2316 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2317 case $ac_top_builddir_sub in
2318 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2319 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2320 esac ;;
2321 esac
2322 ac_abs_top_builddir=$ac_pwd
2323 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2324 # for backward compatibility:
2325 ac_top_builddir=$ac_top_build_prefix
2326
2327 case $srcdir in
2328 .) # We are building in place.
2329 ac_srcdir=.
2330 ac_top_srcdir=$ac_top_builddir_sub
2331 ac_abs_top_srcdir=$ac_pwd ;;
2332 [\\/]* | ?:[\\/]* ) # Absolute name.
2333 ac_srcdir=$srcdir$ac_dir_suffix;
2334 ac_top_srcdir=$srcdir
2335 ac_abs_top_srcdir=$srcdir ;;
2336 *) # Relative name.
2337 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2338 ac_top_srcdir=$ac_top_build_prefix$srcdir
2339 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2340 esac
2341 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2342
2343 cd "$ac_dir" || { ac_status=$?; continue; }
2344 # Check for configure.gnu first; this name is used for a wrapper for
2345 # Metaconfig's "Configure" on case-insensitive file systems.
2346 if test -f "$ac_srcdir/configure.gnu"; then
2347 echo &&
2348 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2349 elif test -f "$ac_srcdir/configure"; then
2350 echo &&
2351 $SHELL "$ac_srcdir/configure" --help=recursive
2352 else
2353 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2354 fi || ac_status=$?
2355 cd "$ac_pwd" || { ac_status=$?; break; }
2356 done
2357 fi
2358
2359 test -n "$ac_init_help" && exit $ac_status
2360 if $ac_init_version; then
2361 cat <<\_ACEOF
2362 patchutils configure 0.4.5
2363 generated by GNU Autoconf 2.72
2364
2365 Copyright (C) 2023 Free Software Foundation, Inc.
2366 This configure script is free software; the Free Software Foundation
2367 gives unlimited permission to copy, distribute and modify it.
2368 _ACEOF
2369 exit
2370 fi
2371
2372 ## ------------------------ ##
2373 ## Autoconf initialization. ##
2374 ## ------------------------ ##
2375
2376 # ac_fn_c_try_compile LINENO
2377 # --------------------------
2378 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2379 ac_fn_c_try_compile ()
2380 {
2381 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2382 rm -f conftest.$ac_objext conftest.beam
2383 if { { ac_try="$ac_compile"
2384 case "(($ac_try" in
2385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2386 *) ac_try_echo=$ac_try;;
2387 esac
2388 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2389 printf "%s\n" "$ac_try_echo"; } >&5
2390 (eval "$ac_compile") 2>conftest.err
2391 ac_status=$?
2392 if test -s conftest.err; then
2393 grep -v '^ *+' conftest.err >conftest.er1
2394 cat conftest.er1 >&5
2395 mv -f conftest.er1 conftest.err
2396 fi
2397 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2398 test $ac_status = 0; } && {
2399 test -z "$ac_c_werror_flag" ||
2400 test ! -s conftest.err
2401 } && test -s conftest.$ac_objext
2402 then :
2403 ac_retval=0
2404 else case e in #(
2405 e) printf "%s\n" "$as_me: failed program was:" >&5
2406 sed 's/^/| /' conftest.$ac_ext >&5
2407
2408 ac_retval=1 ;;
2409 esac
2410 fi
2411 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2412 as_fn_set_status $ac_retval
2413
2414 } # ac_fn_c_try_compile
2415
2416 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2417 # -------------------------------------------------------
2418 # Tests whether HEADER exists and can be compiled using the include files in
2419 # INCLUDES, setting the cache variable VAR accordingly.
2420 ac_fn_c_check_header_compile ()
2421 {
2422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424 printf %s "checking for $2... " >&6; }
2425 if eval test \${$3+y}
2426 then :
2427 printf %s "(cached) " >&6
2428 else case e in #(
2429 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2431 $4
2432 #include <$2>
2433 _ACEOF
2434 if ac_fn_c_try_compile "$LINENO"
2435 then :
2436 eval "$3=yes"
2437 else case e in #(
2438 e) eval "$3=no" ;;
2439 esac
2440 fi
2441 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2442 esac
2443 fi
2444 eval ac_res=\$$3
2445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2446 printf "%s\n" "$ac_res" >&6; }
2447 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2448
2449 } # ac_fn_c_check_header_compile
2450
2451 # ac_fn_c_try_cpp LINENO
2452 # ----------------------
2453 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2454 ac_fn_c_try_cpp ()
2455 {
2456 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2457 if { { ac_try="$ac_cpp conftest.$ac_ext"
2458 case "(($ac_try" in
2459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2460 *) ac_try_echo=$ac_try;;
2461 esac
2462 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2463 printf "%s\n" "$ac_try_echo"; } >&5
2464 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2465 ac_status=$?
2466 if test -s conftest.err; then
2467 grep -v '^ *+' conftest.err >conftest.er1
2468 cat conftest.er1 >&5
2469 mv -f conftest.er1 conftest.err
2470 fi
2471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2472 test $ac_status = 0; } > conftest.i && {
2473 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2474 test ! -s conftest.err
2475 }
2476 then :
2477 ac_retval=0
2478 else case e in #(
2479 e) printf "%s\n" "$as_me: failed program was:" >&5
2480 sed 's/^/| /' conftest.$ac_ext >&5
2481
2482 ac_retval=1 ;;
2483 esac
2484 fi
2485 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2486 as_fn_set_status $ac_retval
2487
2488 } # ac_fn_c_try_cpp
2489
2490 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2491 # -------------------------------------------
2492 # Tests whether TYPE exists after having included INCLUDES, setting cache
2493 # variable VAR accordingly.
2494 ac_fn_c_check_type ()
2495 {
2496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2498 printf %s "checking for $2... " >&6; }
2499 if eval test \${$3+y}
2500 then :
2501 printf %s "(cached) " >&6
2502 else case e in #(
2503 e) eval "$3=no"
2504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2505 /* end confdefs.h. */
2506 $4
2507 int
2508 main (void)
2509 {
2510 if (sizeof ($2))
2511 return 0;
2512 ;
2513 return 0;
2514 }
2515 _ACEOF
2516 if ac_fn_c_try_compile "$LINENO"
2517 then :
2518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2519 /* end confdefs.h. */
2520 $4
2521 int
2522 main (void)
2523 {
2524 if (sizeof (($2)))
2525 return 0;
2526 ;
2527 return 0;
2528 }
2529 _ACEOF
2530 if ac_fn_c_try_compile "$LINENO"
2531 then :
2532
2533 else case e in #(
2534 e) eval "$3=yes" ;;
2535 esac
2536 fi
2537 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2538 fi
2539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2540 esac
2541 fi
2542 eval ac_res=\$$3
2543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2544 printf "%s\n" "$ac_res" >&6; }
2545 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2546
2547 } # ac_fn_c_check_type
2548
2549 # ac_fn_c_try_link LINENO
2550 # -----------------------
2551 # Try to link conftest.$ac_ext, and return whether this succeeded.
2552 ac_fn_c_try_link ()
2553 {
2554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2556 if { { ac_try="$ac_link"
2557 case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560 esac
2561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2562 printf "%s\n" "$ac_try_echo"; } >&5
2563 (eval "$ac_link") 2>conftest.err
2564 ac_status=$?
2565 if test -s conftest.err; then
2566 grep -v '^ *+' conftest.err >conftest.er1
2567 cat conftest.er1 >&5
2568 mv -f conftest.er1 conftest.err
2569 fi
2570 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2571 test $ac_status = 0; } && {
2572 test -z "$ac_c_werror_flag" ||
2573 test ! -s conftest.err
2574 } && test -s conftest$ac_exeext && {
2575 test "$cross_compiling" = yes ||
2576 test -x conftest$ac_exeext
2577 }
2578 then :
2579 ac_retval=0
2580 else case e in #(
2581 e) printf "%s\n" "$as_me: failed program was:" >&5
2582 sed 's/^/| /' conftest.$ac_ext >&5
2583
2584 ac_retval=1 ;;
2585 esac
2586 fi
2587 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2588 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2589 # interfere with the next link command; also delete a directory that is
2590 # left behind by Apple's compiler. We do this before executing the actions.
2591 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2592 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2593 as_fn_set_status $ac_retval
2594
2595 } # ac_fn_c_try_link
2596
2597 # ac_fn_c_try_run LINENO
2598 # ----------------------
2599 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2600 # executables *can* be run.
2601 ac_fn_c_try_run ()
2602 {
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 if { { ac_try="$ac_link"
2605 case "(($ac_try" in
2606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2607 *) ac_try_echo=$ac_try;;
2608 esac
2609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2610 printf "%s\n" "$ac_try_echo"; } >&5
2611 (eval "$ac_link") 2>&5
2612 ac_status=$?
2613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2614 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2615 { { case "(($ac_try" in
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2618 esac
2619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2620 printf "%s\n" "$ac_try_echo"; } >&5
2621 (eval "$ac_try") 2>&5
2622 ac_status=$?
2623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2624 test $ac_status = 0; }; }
2625 then :
2626 ac_retval=0
2627 else case e in #(
2628 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2629 printf "%s\n" "$as_me: failed program was:" >&5
2630 sed 's/^/| /' conftest.$ac_ext >&5
2631
2632 ac_retval=$ac_status ;;
2633 esac
2634 fi
2635 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2637 as_fn_set_status $ac_retval
2638
2639 } # ac_fn_c_try_run
2640
2641 # ac_fn_c_check_func LINENO FUNC VAR
2642 # ----------------------------------
2643 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2644 ac_fn_c_check_func ()
2645 {
2646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2648 printf %s "checking for $2... " >&6; }
2649 if eval test \${$3+y}
2650 then :
2651 printf %s "(cached) " >&6
2652 else case e in #(
2653 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2654 /* end confdefs.h. */
2655 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2657 #define $2 innocuous_$2
2658
2659 /* System header to define __stub macros and hopefully few prototypes,
2660 which can conflict with char $2 (void); below. */
2661
2662 #include <limits.h>
2663 #undef $2
2664
2665 /* Override any GCC internal prototype to avoid an error.
2666 Use char because int might match the return type of a GCC
2667 builtin and then its argument prototype would still apply. */
2668 #ifdef __cplusplus
2669 extern "C"
2670 #endif
2671 char $2 (void);
2672 /* The GNU C library defines this for functions which it implements
2673 to always fail with ENOSYS. Some functions are actually named
2674 something starting with __ and the normal name is an alias. */
2675 #if defined __stub_$2 || defined __stub___$2
2676 choke me
2677 #endif
2678
2679 int
2680 main (void)
2681 {
2682 return $2 ();
2683 ;
2684 return 0;
2685 }
2686 _ACEOF
2687 if ac_fn_c_try_link "$LINENO"
2688 then :
2689 eval "$3=yes"
2690 else case e in #(
2691 e) eval "$3=no" ;;
2692 esac
2693 fi
2694 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2695 conftest$ac_exeext conftest.$ac_ext ;;
2696 esac
2697 fi
2698 eval ac_res=\$$3
2699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2700 printf "%s\n" "$ac_res" >&6; }
2701 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2702
2703 } # ac_fn_c_check_func
2704
2705 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2706 # ------------------------------------------------------------------
2707 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2708 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2709 ac_fn_check_decl ()
2710 {
2711 ac_saved_ac_compile="$ac_compile"
2712 if test -n "$ac_compile_for_check_decl"; then
2713 ac_compile="$ac_compile_for_check_decl"
2714 fi
2715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2716 as_decl_name=`echo $2|sed 's/ *(.*//'`
2717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2718 printf %s "checking whether $as_decl_name is declared... " >&6; }
2719 if eval test \${$3+y}
2720 then :
2721 printf %s "(cached) " >&6
2722 else case e in #(
2723 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2724 eval ac_save_FLAGS=\$$6
2725 as_fn_append $6 " $5"
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727 /* end confdefs.h. */
2728 $4
2729 int
2730 main (void)
2731 {
2732 #ifndef $as_decl_name
2733 #ifdef __cplusplus
2734 (void) $as_decl_use;
2735 #else
2736 (void) $as_decl_name;
2737 #endif
2738 #endif
2739
2740 ;
2741 return 0;
2742 }
2743 _ACEOF
2744 if ac_fn_c_try_compile "$LINENO"
2745 then :
2746 eval "$3=yes"
2747 else case e in #(
2748 e) eval "$3=no" ;;
2749 esac
2750 fi
2751 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2752 eval $6=\$ac_save_FLAGS
2753 ;;
2754 esac
2755 fi
2756 eval ac_res=\$$3
2757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2758 printf "%s\n" "$ac_res" >&6; }
2759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2760 ac_compile="$ac_saved_ac_compile"
2761
2762 } # ac_fn_check_decl
2763
2764 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2765 # ----------------------------------------------------
2766 # Tries to find if the field MEMBER exists in type AGGR, after including
2767 # INCLUDES, setting cache variable VAR accordingly.
2768 ac_fn_c_check_member ()
2769 {
2770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2772 printf %s "checking for $2.$3... " >&6; }
2773 if eval test \${$4+y}
2774 then :
2775 printf %s "(cached) " >&6
2776 else case e in #(
2777 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2778 /* end confdefs.h. */
2779 $5
2780 int
2781 main (void)
2782 {
2783 static $2 ac_aggr;
2784 if (ac_aggr.$3)
2785 return 0;
2786 ;
2787 return 0;
2788 }
2789 _ACEOF
2790 if ac_fn_c_try_compile "$LINENO"
2791 then :
2792 eval "$4=yes"
2793 else case e in #(
2794 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2795 /* end confdefs.h. */
2796 $5
2797 int
2798 main (void)
2799 {
2800 static $2 ac_aggr;
2801 if (sizeof ac_aggr.$3)
2802 return 0;
2803 ;
2804 return 0;
2805 }
2806 _ACEOF
2807 if ac_fn_c_try_compile "$LINENO"
2808 then :
2809 eval "$4=yes"
2810 else case e in #(
2811 e) eval "$4=no" ;;
2812 esac
2813 fi
2814 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2815 esac
2816 fi
2817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2818 esac
2819 fi
2820 eval ac_res=\$$4
2821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2822 printf "%s\n" "$ac_res" >&6; }
2823 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2824
2825 } # ac_fn_c_check_member
2826
2827 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2828 # --------------------------------------------
2829 # Tries to find the compile-time value of EXPR in a program that includes
2830 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2831 # computed
2832 ac_fn_c_compute_int ()
2833 {
2834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2835 if test "$cross_compiling" = yes; then
2836 # Depending upon the size, compute the lo and hi bounds.
2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838 /* end confdefs.h. */
2839 $4
2840 int
2841 main (void)
2842 {
2843 static int test_array [1 - 2 * !(($2) >= 0)];
2844 test_array [0] = 0;
2845 return test_array [0];
2846
2847 ;
2848 return 0;
2849 }
2850 _ACEOF
2851 if ac_fn_c_try_compile "$LINENO"
2852 then :
2853 ac_lo=0 ac_mid=0
2854 while :; do
2855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2856 /* end confdefs.h. */
2857 $4
2858 int
2859 main (void)
2860 {
2861 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2862 test_array [0] = 0;
2863 return test_array [0];
2864
2865 ;
2866 return 0;
2867 }
2868 _ACEOF
2869 if ac_fn_c_try_compile "$LINENO"
2870 then :
2871 ac_hi=$ac_mid; break
2872 else case e in #(
2873 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2874 if test $ac_lo -le $ac_mid; then
2875 ac_lo= ac_hi=
2876 break
2877 fi
2878 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val ;;
2879 esac
2880 fi
2881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2882 done
2883 else case e in #(
2884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2885 /* end confdefs.h. */
2886 $4
2887 int
2888 main (void)
2889 {
2890 static int test_array [1 - 2 * !(($2) < 0)];
2891 test_array [0] = 0;
2892 return test_array [0];
2893
2894 ;
2895 return 0;
2896 }
2897 _ACEOF
2898 if ac_fn_c_try_compile "$LINENO"
2899 then :
2900 ac_hi=-1 ac_mid=-1
2901 while :; do
2902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2903 /* end confdefs.h. */
2904 $4
2905 int
2906 main (void)
2907 {
2908 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2909 test_array [0] = 0;
2910 return test_array [0];
2911
2912 ;
2913 return 0;
2914 }
2915 _ACEOF
2916 if ac_fn_c_try_compile "$LINENO"
2917 then :
2918 ac_lo=$ac_mid; break
2919 else case e in #(
2920 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2921 if test $ac_mid -le $ac_hi; then
2922 ac_lo= ac_hi=
2923 break
2924 fi
2925 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2926 esac
2927 fi
2928 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2929 done
2930 else case e in #(
2931 e) ac_lo= ac_hi= ;;
2932 esac
2933 fi
2934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2935 esac
2936 fi
2937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2938 # Binary search between lo and hi bounds.
2939 while test "x$ac_lo" != "x$ac_hi"; do
2940 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2942 /* end confdefs.h. */
2943 $4
2944 int
2945 main (void)
2946 {
2947 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2948 test_array [0] = 0;
2949 return test_array [0];
2950
2951 ;
2952 return 0;
2953 }
2954 _ACEOF
2955 if ac_fn_c_try_compile "$LINENO"
2956 then :
2957 ac_hi=$ac_mid
2958 else case e in #(
2959 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
2960 esac
2961 fi
2962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2963 done
2964 case $ac_lo in #((
2965 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2966 '') ac_retval=1 ;;
2967 esac
2968 else
2969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2970 /* end confdefs.h. */
2971 $4
2972 static long int longval (void) { return $2; }
2973 static unsigned long int ulongval (void) { return $2; }
2974 #include <stdio.h>
2975 #include <stdlib.h>
2976 int
2977 main (void)
2978 {
2979
2980 FILE *f = fopen ("conftest.val", "w");
2981 if (! f)
2982 return 1;
2983 if (($2) < 0)
2984 {
2985 long int i = longval ();
2986 if (i != ($2))
2987 return 1;
2988 fprintf (f, "%ld", i);
2989 }
2990 else
2991 {
2992 unsigned long int i = ulongval ();
2993 if (i != ($2))
2994 return 1;
2995 fprintf (f, "%lu", i);
2996 }
2997 /* Do not output a trailing newline, as this causes \r\n confusion
2998 on some platforms. */
2999 return ferror (f) || fclose (f) != 0;
3000
3001 ;
3002 return 0;
3003 }
3004 _ACEOF
3005 if ac_fn_c_try_run "$LINENO"
3006 then :
3007 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3008 else case e in #(
3009 e) ac_retval=1 ;;
3010 esac
3011 fi
3012 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3013 conftest.$ac_objext conftest.beam conftest.$ac_ext
3014 rm -f conftest.val
3015
3016 fi
3017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3018 as_fn_set_status $ac_retval
3019
3020 } # ac_fn_c_compute_int
3021 ac_configure_args_raw=
3022 for ac_arg
3023 do
3024 case $ac_arg in
3025 *\'*)
3026 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3027 esac
3028 as_fn_append ac_configure_args_raw " '$ac_arg'"
3029 done
3030
3031 case $ac_configure_args_raw in
3032 *$as_nl*)
3033 ac_safe_unquote= ;;
3034 *)
3035 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
3036 ac_unsafe_a="$ac_unsafe_z#~"
3037 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3038 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3039 esac
3040
3041 cat >config.log <<_ACEOF
3042 This file contains any messages produced by compilers while
3043 running configure, to aid debugging if configure makes a mistake.
3044
3045 It was created by patchutils $as_me 0.4.5, which was
3046 generated by GNU Autoconf 2.72. Invocation command line was
3047
3048 $ $0$ac_configure_args_raw
3049
3050 _ACEOF
3051 exec 5>>config.log
3052 {
3053 cat <<_ASUNAME
3054 ## --------- ##
3055 ## Platform. ##
3056 ## --------- ##
3057
3058 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3059 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3060 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3061 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3062 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3063
3064 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3065 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3066
3067 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3068 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3069 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3070 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3071 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3072 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3073 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3074
3075 _ASUNAME
3076
3077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3078 for as_dir in $PATH
3079 do
3080 IFS=$as_save_IFS
3081 case $as_dir in #(((
3082 '') as_dir=./ ;;
3083 */) ;;
3084 *) as_dir=$as_dir/ ;;
3085 esac
3086 printf "%s\n" "PATH: $as_dir"
3087 done
3088 IFS=$as_save_IFS
3089
3090 } >&5
3091
3092 cat >&5 <<_ACEOF
3093
3094
3095 ## ----------- ##
3096 ## Core tests. ##
3097 ## ----------- ##
3098
3099 _ACEOF
3100
3101
3102 # Keep a trace of the command line.
3103 # Strip out --no-create and --no-recursion so they do not pile up.
3104 # Strip out --silent because we don't want to record it for future runs.
3105 # Also quote any args containing shell meta-characters.
3106 # Make two passes to allow for proper duplicate-argument suppression.
3107 ac_configure_args=
3108 ac_configure_args0=
3109 ac_configure_args1=
3110 ac_must_keep_next=false
3111 for ac_pass in 1 2
3112 do
3113 for ac_arg
3114 do
3115 case $ac_arg in
3116 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3117 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3118 | -silent | --silent | --silen | --sile | --sil)
3119 continue ;;
3120 *\'*)
3121 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3122 esac
3123 case $ac_pass in
3124 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3125 2)
3126 as_fn_append ac_configure_args1 " '$ac_arg'"
3127 if test $ac_must_keep_next = true; then
3128 ac_must_keep_next=false # Got value, back to normal.
3129 else
3130 case $ac_arg in
3131 *=* | --config-cache | -C | -disable-* | --disable-* \
3132 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3133 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3134 | -with-* | --with-* | -without-* | --without-* | --x)
3135 case "$ac_configure_args0 " in
3136 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3137 esac
3138 ;;
3139 -* ) ac_must_keep_next=true ;;
3140 esac
3141 fi
3142 as_fn_append ac_configure_args " '$ac_arg'"
3143 ;;
3144 esac
3145 done
3146 done
3147 { ac_configure_args0=; unset ac_configure_args0;}
3148 { ac_configure_args1=; unset ac_configure_args1;}
3149
3150 # When interrupted or exit'd, cleanup temporary files, and complete
3151 # config.log. We remove comments because anyway the quotes in there
3152 # would cause problems or look ugly.
3153 # WARNING: Use '\'' to represent an apostrophe within the trap.
3154 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3155 trap 'exit_status=$?
3156 # Sanitize IFS.
3157 IFS=" "" $as_nl"
3158 # Save into config.log some information that might help in debugging.
3159 {
3160 echo
3161
3162 printf "%s\n" "## ---------------- ##
3163 ## Cache variables. ##
3164 ## ---------------- ##"
3165 echo
3166 # The following way of writing the cache mishandles newlines in values,
3167 (
3168 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3169 eval ac_val=\$$ac_var
3170 case $ac_val in #(
3171 *${as_nl}*)
3172 case $ac_var in #(
3173 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3174 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3175 esac
3176 case $ac_var in #(
3177 _ | IFS | as_nl) ;; #(
3178 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3179 *) { eval $ac_var=; unset $ac_var;} ;;
3180 esac ;;
3181 esac
3182 done
3183 (set) 2>&1 |
3184 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3185 *${as_nl}ac_space=\ *)
3186 sed -n \
3187 "s/'\''/'\''\\\\'\'''\''/g;
3188 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3189 ;; #(
3190 *)
3191 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3192 ;;
3193 esac |
3194 sort
3195 )
3196 echo
3197
3198 printf "%s\n" "## ----------------- ##
3199 ## Output variables. ##
3200 ## ----------------- ##"
3201 echo
3202 for ac_var in $ac_subst_vars
3203 do
3204 eval ac_val=\$$ac_var
3205 case $ac_val in
3206 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3207 esac
3208 printf "%s\n" "$ac_var='\''$ac_val'\''"
3209 done | sort
3210 echo
3211
3212 if test -n "$ac_subst_files"; then
3213 printf "%s\n" "## ------------------- ##
3214 ## File substitutions. ##
3215 ## ------------------- ##"
3216 echo
3217 for ac_var in $ac_subst_files
3218 do
3219 eval ac_val=\$$ac_var
3220 case $ac_val in
3221 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3222 esac
3223 printf "%s\n" "$ac_var='\''$ac_val'\''"
3224 done | sort
3225 echo
3226 fi
3227
3228 if test -s confdefs.h; then
3229 printf "%s\n" "## ----------- ##
3230 ## confdefs.h. ##
3231 ## ----------- ##"
3232 echo
3233 cat confdefs.h
3234 echo
3235 fi
3236 test "$ac_signal" != 0 &&
3237 printf "%s\n" "$as_me: caught signal $ac_signal"
3238 printf "%s\n" "$as_me: exit $exit_status"
3239 } >&5
3240 rm -f core *.core core.conftest.* &&
3241 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3242 exit $exit_status
3243 ' 0
3244 for ac_signal in 1 2 13 15; do
3245 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3246 done
3247 ac_signal=0
3248
3249 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3250 rm -f -r conftest* confdefs.h
3251
3252 printf "%s\n" "/* confdefs.h */" > confdefs.h
3253
3254 # Predefined preprocessor variables.
3255
3256 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3257
3258 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3259
3260 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3261
3262 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3263
3264 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3265
3266 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3267
3268
3269 # Let the site file select an alternate cache file if it wants to.
3270 # Prefer an explicitly selected file to automatically selected ones.
3271 if test -n "$CONFIG_SITE"; then
3272 ac_site_files="$CONFIG_SITE"
3273 elif test "x$prefix" != xNONE; then
3274 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3275 else
3276 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3277 fi
3278
3279 for ac_site_file in $ac_site_files
3280 do
3281 case $ac_site_file in #(
3282 */*) :
3283 ;; #(
3284 *) :
3285 ac_site_file=./$ac_site_file ;;
3286 esac
3287 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3289 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3290 sed 's/^/| /' "$ac_site_file" >&5
3291 . "$ac_site_file" \
3292 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3293 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3294 as_fn_error $? "failed to load site script $ac_site_file
3295 See 'config.log' for more details" "$LINENO" 5; }
3296 fi
3297 done
3298
3299 if test -r "$cache_file"; then
3300 # Some versions of bash will fail to source /dev/null (special files
3301 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3302 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3304 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3305 case $cache_file in
3306 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3307 *) . "./$cache_file";;
3308 esac
3309 fi
3310 else
3311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3312 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3313 >$cache_file
3314 fi
3315
3316 # Test code for whether the C compiler supports C89 (global declarations)
3317 ac_c_conftest_c89_globals='
3318 /* Does the compiler advertise C89 conformance?
3319 Do not test the value of __STDC__, because some compilers set it to 0
3320 while being otherwise adequately conformant. */
3321 #if !defined __STDC__
3322 # error "Compiler does not advertise C89 conformance"
3323 #endif
3324
3325 #include <stddef.h>
3326 #include <stdarg.h>
3327 struct stat;
3328 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3329 struct buf { int x; };
3330 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3331 static char *e (char **p, int i)
3332 {
3333 return p[i];
3334 }
3335 static char *f (char * (*g) (char **, int), char **p, ...)
3336 {
3337 char *s;
3338 va_list v;
3339 va_start (v,p);
3340 s = g (p, va_arg (v,int));
3341 va_end (v);
3342 return s;
3343 }
3344
3345 /* C89 style stringification. */
3346 #define noexpand_stringify(a) #a
3347 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
3348
3349 /* C89 style token pasting. Exercises some of the corner cases that
3350 e.g. old MSVC gets wrong, but not very hard. */
3351 #define noexpand_concat(a,b) a##b
3352 #define expand_concat(a,b) noexpand_concat(a,b)
3353 extern int vA;
3354 extern int vbee;
3355 #define aye A
3356 #define bee B
3357 int *pvA = &expand_concat(v,aye);
3358 int *pvbee = &noexpand_concat(v,bee);
3359
3360 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3361 function prototypes and stuff, but not \xHH hex character constants.
3362 These do not provoke an error unfortunately, instead are silently treated
3363 as an "x". The following induces an error, until -std is added to get
3364 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3365 array size at least. It is necessary to write \x00 == 0 to get something
3366 that is true only with -std. */
3367 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3368
3369 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3370 inside strings and character constants. */
3371 #define FOO(x) '\''x'\''
3372 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3373
3374 int test (int i, double x);
3375 struct s1 {int (*f) (int a);};
3376 struct s2 {int (*f) (double a);};
3377 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3378 int, int);'
3379
3380 # Test code for whether the C compiler supports C89 (body of main).
3381 ac_c_conftest_c89_main='
3382 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3383 '
3384
3385 # Test code for whether the C compiler supports C99 (global declarations)
3386 ac_c_conftest_c99_globals='
3387 /* Does the compiler advertise C99 conformance? */
3388 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3389 # error "Compiler does not advertise C99 conformance"
3390 #endif
3391
3392 // See if C++-style comments work.
3393
3394 #include <stdbool.h>
3395 extern int puts (const char *);
3396 extern int printf (const char *, ...);
3397 extern int dprintf (int, const char *, ...);
3398 extern void *malloc (size_t);
3399 extern void free (void *);
3400
3401 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3402 // dprintf is used instead of fprintf to avoid needing to declare
3403 // FILE and stderr.
3404 #define debug(...) dprintf (2, __VA_ARGS__)
3405 #define showlist(...) puts (#__VA_ARGS__)
3406 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3407 static void
3408 test_varargs_macros (void)
3409 {
3410 int x = 1234;
3411 int y = 5678;
3412 debug ("Flag");
3413 debug ("X = %d\n", x);
3414 showlist (The first, second, and third items.);
3415 report (x>y, "x is %d but y is %d", x, y);
3416 }
3417
3418 // Check long long types.
3419 #define BIG64 18446744073709551615ull
3420 #define BIG32 4294967295ul
3421 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3422 #if !BIG_OK
3423 #error "your preprocessor is broken"
3424 #endif
3425 #if BIG_OK
3426 #else
3427 #error "your preprocessor is broken"
3428 #endif
3429 static long long int bignum = -9223372036854775807LL;
3430 static unsigned long long int ubignum = BIG64;
3431
3432 struct incomplete_array
3433 {
3434 int datasize;
3435 double data[];
3436 };
3437
3438 struct named_init {
3439 int number;
3440 const wchar_t *name;
3441 double average;
3442 };
3443
3444 typedef const char *ccp;
3445
3446 static inline int
3447 test_restrict (ccp restrict text)
3448 {
3449 // Iterate through items via the restricted pointer.
3450 // Also check for declarations in for loops.
3451 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3452 continue;
3453 return 0;
3454 }
3455
3456 // Check varargs and va_copy.
3457 static bool
3458 test_varargs (const char *format, ...)
3459 {
3460 va_list args;
3461 va_start (args, format);
3462 va_list args_copy;
3463 va_copy (args_copy, args);
3464
3465 const char *str = "";
3466 int number = 0;
3467 float fnumber = 0;
3468
3469 while (*format)
3470 {
3471 switch (*format++)
3472 {
3473 case '\''s'\'': // string
3474 str = va_arg (args_copy, const char *);
3475 break;
3476 case '\''d'\'': // int
3477 number = va_arg (args_copy, int);
3478 break;
3479 case '\''f'\'': // float
3480 fnumber = va_arg (args_copy, double);
3481 break;
3482 default:
3483 break;
3484 }
3485 }
3486 va_end (args_copy);
3487 va_end (args);
3488
3489 return *str && number && fnumber;
3490 }
3491 '
3492
3493 # Test code for whether the C compiler supports C99 (body of main).
3494 ac_c_conftest_c99_main='
3495 // Check bool.
3496 _Bool success = false;
3497 success |= (argc != 0);
3498
3499 // Check restrict.
3500 if (test_restrict ("String literal") == 0)
3501 success = true;
3502 char *restrict newvar = "Another string";
3503
3504 // Check varargs.
3505 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3506 test_varargs_macros ();
3507
3508 // Check flexible array members.
3509 struct incomplete_array *ia =
3510 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3511 ia->datasize = 10;
3512 for (int i = 0; i < ia->datasize; ++i)
3513 ia->data[i] = i * 1.234;
3514 // Work around memory leak warnings.
3515 free (ia);
3516
3517 // Check named initializers.
3518 struct named_init ni = {
3519 .number = 34,
3520 .name = L"Test wide string",
3521 .average = 543.34343,
3522 };
3523
3524 ni.number = 58;
3525
3526 int dynamic_array[ni.number];
3527 dynamic_array[0] = argv[0][0];
3528 dynamic_array[ni.number - 1] = 543;
3529
3530 // work around unused variable warnings
3531 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3532 || dynamic_array[ni.number - 1] != 543);
3533 '
3534
3535 # Test code for whether the C compiler supports C11 (global declarations)
3536 ac_c_conftest_c11_globals='
3537 /* Does the compiler advertise C11 conformance? */
3538 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3539 # error "Compiler does not advertise C11 conformance"
3540 #endif
3541
3542 // Check _Alignas.
3543 char _Alignas (double) aligned_as_double;
3544 char _Alignas (0) no_special_alignment;
3545 extern char aligned_as_int;
3546 char _Alignas (0) _Alignas (int) aligned_as_int;
3547
3548 // Check _Alignof.
3549 enum
3550 {
3551 int_alignment = _Alignof (int),
3552 int_array_alignment = _Alignof (int[100]),
3553 char_alignment = _Alignof (char)
3554 };
3555 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3556
3557 // Check _Noreturn.
3558 int _Noreturn does_not_return (void) { for (;;) continue; }
3559
3560 // Check _Static_assert.
3561 struct test_static_assert
3562 {
3563 int x;
3564 _Static_assert (sizeof (int) <= sizeof (long int),
3565 "_Static_assert does not work in struct");
3566 long int y;
3567 };
3568
3569 // Check UTF-8 literals.
3570 #define u8 syntax error!
3571 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3572
3573 // Check duplicate typedefs.
3574 typedef long *long_ptr;
3575 typedef long int *long_ptr;
3576 typedef long_ptr long_ptr;
3577
3578 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3579 struct anonymous
3580 {
3581 union {
3582 struct { int i; int j; };
3583 struct { int k; long int l; } w;
3584 };
3585 int m;
3586 } v1;
3587 '
3588
3589 # Test code for whether the C compiler supports C11 (body of main).
3590 ac_c_conftest_c11_main='
3591 _Static_assert ((offsetof (struct anonymous, i)
3592 == offsetof (struct anonymous, w.k)),
3593 "Anonymous union alignment botch");
3594 v1.i = 2;
3595 v1.w.k = 5;
3596 ok |= v1.i != 5;
3597 '
3598
3599 # Test code for whether the C compiler supports C11 (complete).
3600 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3601 ${ac_c_conftest_c99_globals}
3602 ${ac_c_conftest_c11_globals}
3603
3604 int
3605 main (int argc, char **argv)
3606 {
3607 int ok = 0;
3608 ${ac_c_conftest_c89_main}
3609 ${ac_c_conftest_c99_main}
3610 ${ac_c_conftest_c11_main}
3611 return ok;
3612 }
3613 "
3614
3615 # Test code for whether the C compiler supports C99 (complete).
3616 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3617 ${ac_c_conftest_c99_globals}
3618
3619 int
3620 main (int argc, char **argv)
3621 {
3622 int ok = 0;
3623 ${ac_c_conftest_c89_main}
3624 ${ac_c_conftest_c99_main}
3625 return ok;
3626 }
3627 "
3628
3629 # Test code for whether the C compiler supports C89 (complete).
3630 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3631
3632 int
3633 main (int argc, char **argv)
3634 {
3635 int ok = 0;
3636 ${ac_c_conftest_c89_main}
3637 return ok;
3638 }
3639 "
3640
3641 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3642 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3643 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3644 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3645 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3646 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3647 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3648 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3649 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3650 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3651 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3652 as_fn_append ac_header_c_list " stdbool.h stdbool_h HAVE_STDBOOL_H"
3653 as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER"
3654 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
3655 as_fn_append ac_header_c_list " error.h error_h HAVE_ERROR_H"
3656 as_fn_append ac_func_c_list " fcntl HAVE_FCNTL"
3657 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
3658 as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE"
3659 as_fn_append ac_header_c_list " sys/process.h sys_process_h HAVE_SYS_PROCESS_H"
3660 as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME"
3661 as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
3662 as_fn_append ac_header_c_list " xlocale.h xlocale_h HAVE_XLOCALE_H"
3663 as_fn_append ac_func_c_list " lstat HAVE_LSTAT"
3664 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3665 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3666 as_fn_append ac_header_c_list " stdckdint.h stdckdint_h HAVE_STDCKDINT_H"
3667
3668 # Auxiliary files required by this configure script.
3669 ac_aux_files="config.guess config.sub compile missing install-sh"
3670
3671 # Locations in which to look for auxiliary files.
3672 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3673
3674 # Search for a directory containing all of the required auxiliary files,
3675 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3676 # If we don't find one directory that contains all the files we need,
3677 # we report the set of missing files from the *first* directory in
3678 # $ac_aux_dir_candidates and give up.
3679 ac_missing_aux_files=""
3680 ac_first_candidate=:
3681 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3683 as_found=false
3684 for as_dir in $ac_aux_dir_candidates
3685 do
3686 IFS=$as_save_IFS
3687 case $as_dir in #(((
3688 '') as_dir=./ ;;
3689 */) ;;
3690 *) as_dir=$as_dir/ ;;
3691 esac
3692 as_found=:
3693
3694 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3695 ac_aux_dir_found=yes
3696 ac_install_sh=
3697 for ac_aux in $ac_aux_files
3698 do
3699 # As a special case, if "install-sh" is required, that requirement
3700 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3701 # and $ac_install_sh is set appropriately for whichever one is found.
3702 if test x"$ac_aux" = x"install-sh"
3703 then
3704 if test -f "${as_dir}install-sh"; then
3705 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3706 ac_install_sh="${as_dir}install-sh -c"
3707 elif test -f "${as_dir}install.sh"; then
3708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3709 ac_install_sh="${as_dir}install.sh -c"
3710 elif test -f "${as_dir}shtool"; then
3711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3712 ac_install_sh="${as_dir}shtool install -c"
3713 else
3714 ac_aux_dir_found=no
3715 if $ac_first_candidate; then
3716 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3717 else
3718 break
3719 fi
3720 fi
3721 else
3722 if test -f "${as_dir}${ac_aux}"; then
3723 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3724 else
3725 ac_aux_dir_found=no
3726 if $ac_first_candidate; then
3727 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3728 else
3729 break
3730 fi
3731 fi
3732 fi
3733 done
3734 if test "$ac_aux_dir_found" = yes; then
3735 ac_aux_dir="$as_dir"
3736 break
3737 fi
3738 ac_first_candidate=false
3739
3740 as_found=false
3741 done
3742 IFS=$as_save_IFS
3743 if $as_found
3744 then :
3745
3746 else case e in #(
3747 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
3748 esac
3749 fi
3750
3751
3752 # These three variables are undocumented and unsupported,
3753 # and are intended to be withdrawn in a future Autoconf release.
3754 # They can cause serious problems if a builder's source tree is in a directory
3755 # whose full name contains unusual characters.
3756 if test -f "${ac_aux_dir}config.guess"; then
3757 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3758 fi
3759 if test -f "${ac_aux_dir}config.sub"; then
3760 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3761 fi
3762 if test -f "$ac_aux_dir/configure"; then
3763 ac_configure="$SHELL ${ac_aux_dir}configure"
3764 fi
3765
3766 # Check that the precious variables saved in the cache have kept the same
3767 # value.
3768 ac_cache_corrupted=false
3769 for ac_var in $ac_precious_vars; do
3770 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3771 eval ac_new_set=\$ac_env_${ac_var}_set
3772 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3773 eval ac_new_val=\$ac_env_${ac_var}_value
3774 case $ac_old_set,$ac_new_set in
3775 set,)
3776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
3777 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
3778 ac_cache_corrupted=: ;;
3779 ,set)
3780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
3781 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
3782 ac_cache_corrupted=: ;;
3783 ,);;
3784 *)
3785 if test "x$ac_old_val" != "x$ac_new_val"; then
3786 # differences in whitespace do not lead to failure.
3787 ac_old_val_w=`echo x $ac_old_val`
3788 ac_new_val_w=`echo x $ac_new_val`
3789 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
3791 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
3792 ac_cache_corrupted=:
3793 else
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
3795 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
3796 eval $ac_var=\$ac_old_val
3797 fi
3798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
3799 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
3800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
3801 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
3802 fi;;
3803 esac
3804 # Pass precious variables to config.status.
3805 if test "$ac_new_set" = set; then
3806 case $ac_new_val in
3807 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3808 *) ac_arg=$ac_var=$ac_new_val ;;
3809 esac
3810 case " $ac_configure_args " in
3811 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3812 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3813 esac
3814 fi
3815 done
3816 if $ac_cache_corrupted; then
3817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3818 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3820 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3821 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
3822 and start over" "$LINENO" 5
3823 fi
3824 ## -------------------- ##
3825 ## Main body of script. ##
3826 ## -------------------- ##
3827
3828 ac_ext=c
3829 ac_cpp='$CPP $CPPFLAGS'
3830 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3831 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3832 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833
3834
3835
3836 ac_config_headers="$ac_config_headers config.h"
3837
3838
3839 am__api_version='1.18'
3840
3841
3842
3843 # Find a good install program. We prefer a C program (faster),
3844 # so one script is as good as another. But avoid the broken or
3845 # incompatible versions:
3846 # SysV /etc/install, /usr/sbin/install
3847 # SunOS /usr/etc/install
3848 # IRIX /sbin/install
3849 # AIX /bin/install
3850 # AmigaOS /C/install, which installs bootblocks on floppy discs
3851 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3852 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3853 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3854 # OS/2's system install, which has a completely different semantic
3855 # ./install, which can be erroneously created by make from ./install.sh.
3856 # Reject install programs that cannot install multiple files.
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3858 printf %s "checking for a BSD-compatible install... " >&6; }
3859 if test -z "$INSTALL"; then
3860 if test ${ac_cv_path_install+y}
3861 then :
3862 printf %s "(cached) " >&6
3863 else case e in #(
3864 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3865 for as_dir in $PATH
3866 do
3867 IFS=$as_save_IFS
3868 case $as_dir in #(((
3869 '') as_dir=./ ;;
3870 */) ;;
3871 *) as_dir=$as_dir/ ;;
3872 esac
3873 # Account for fact that we put trailing slashes in our PATH walk.
3874 case $as_dir in #((
3875 ./ | /[cC]/* | \
3876 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3877 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3878 /usr/ucb/* ) ;;
3879 *)
3880 # OSF1 and SCO ODT 3.0 have their own names for install.
3881 # Don't use installbsd from OSF since it installs stuff as root
3882 # by default.
3883 for ac_prog in ginstall scoinst install; do
3884 for ac_exec_ext in '' $ac_executable_extensions; do
3885 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3886 if test $ac_prog = install &&
3887 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3888 # AIX install. It has an incompatible calling convention.
3889 :
3890 elif test $ac_prog = install &&
3891 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3892 # program-specific install script used by HP pwplus--don't use.
3893 :
3894 else
3895 rm -rf conftest.one conftest.two conftest.dir
3896 echo one > conftest.one
3897 echo two > conftest.two
3898 mkdir conftest.dir
3899 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3900 test -s conftest.one && test -s conftest.two &&
3901 test -s conftest.dir/conftest.one &&
3902 test -s conftest.dir/conftest.two
3903 then
3904 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3905 break 3
3906 fi
3907 fi
3908 fi
3909 done
3910 done
3911 ;;
3912 esac
3913
3914 done
3915 IFS=$as_save_IFS
3916
3917 rm -rf conftest.one conftest.two conftest.dir
3918 ;;
3919 esac
3920 fi
3921 if test ${ac_cv_path_install+y}; then
3922 INSTALL=$ac_cv_path_install
3923 else
3924 # As a last resort, use the slow shell script. Don't cache a
3925 # value for INSTALL within a source directory, because that will
3926 # break other packages using the cache if that directory is
3927 # removed, or if the value is a relative name.
3928 INSTALL=$ac_install_sh
3929 fi
3930 fi
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3932 printf "%s\n" "$INSTALL" >&6; }
3933
3934 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3935 # It thinks the first close brace ends the variable substitution.
3936 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3937
3938 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3939
3940 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3941
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
3943 printf %s "checking whether sleep supports fractional seconds... " >&6; }
3944 if test ${am_cv_sleep_fractional_seconds+y}
3945 then :
3946 printf %s "(cached) " >&6
3947 else case e in #(
3948 e) if sleep 0.001 2>/dev/null
3949 then :
3950 am_cv_sleep_fractional_seconds=yes
3951 else case e in #(
3952 e) am_cv_sleep_fractional_seconds=no ;;
3953 esac
3954 fi
3955 ;;
3956 esac
3957 fi
3958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
3959 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
3960
3961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
3962 printf %s "checking filesystem timestamp resolution... " >&6; }
3963 if test ${am_cv_filesystem_timestamp_resolution+y}
3964 then :
3965 printf %s "(cached) " >&6
3966 else case e in #(
3967 e) # Default to the worst case.
3968 am_cv_filesystem_timestamp_resolution=2
3969
3970 # Only try to go finer than 1 sec if sleep can do it.
3971 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
3972 # - 1 sec is not much of a win compared to 2 sec, and
3973 # - it takes 2 seconds to perform the test whether 1 sec works.
3974 #
3975 # Instead, just use the default 2s on platforms that have 1s resolution,
3976 # accept the extra 1s delay when using $sleep in the Automake tests, in
3977 # exchange for not incurring the 2s delay for running the test for all
3978 # packages.
3979 #
3980 am_try_resolutions=
3981 if test "$am_cv_sleep_fractional_seconds" = yes; then
3982 # Even a millisecond often causes a bunch of false positives,
3983 # so just try a hundredth of a second. The time saved between .001 and
3984 # .01 is not terribly consequential.
3985 am_try_resolutions="0.01 0.1 $am_try_resolutions"
3986 fi
3987
3988 # In order to catch current-generation FAT out, we must *modify* files
3989 # that already exist; the *creation* timestamp is finer. Use names
3990 # that make ls -t sort them differently when they have equal
3991 # timestamps than when they have distinct timestamps, keeping
3992 # in mind that ls -t prints the *newest* file first.
3993 rm -f conftest.ts?
3994 : > conftest.ts1
3995 : > conftest.ts2
3996 : > conftest.ts3
3997
3998 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
3999 # clobber the current shell's arguments. (Outer-level square brackets
4000 # are removed by m4; they're present so that m4 does not expand
4001 # <dollar><star>; be careful, easy to get confused.)
4002 if (
4003 set X `ls -t conftest.ts[12]` &&
4004 {
4005 test "$*" != "X conftest.ts1 conftest.ts2" ||
4006 test "$*" != "X conftest.ts2 conftest.ts1";
4007 }
4008 ); then :; else
4009 # If neither matched, then we have a broken ls. This can happen
4010 # if, for instance, CONFIG_SHELL is bash and it inherits a
4011 # broken ls alias from the environment. This has actually
4012 # happened. Such a system could not be considered "sane".
4013 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4014 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4015 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4016 as_fn_error $? "ls -t produces unexpected output.
4017 Make sure there is not a broken ls alias in your environment.
4018 See 'config.log' for more details" "$LINENO" 5; }
4019 fi
4020
4021 for am_try_res in $am_try_resolutions; do
4022 # Any one fine-grained sleep might happen to cross the boundary
4023 # between two values of a coarser actual resolution, but if we do
4024 # two fine-grained sleeps in a row, at least one of them will fall
4025 # entirely within a coarse interval.
4026 echo alpha > conftest.ts1
4027 sleep $am_try_res
4028 echo beta > conftest.ts2
4029 sleep $am_try_res
4030 echo gamma > conftest.ts3
4031
4032 # We assume that 'ls -t' will make use of high-resolution
4033 # timestamps if the operating system supports them at all.
4034 if (set X `ls -t conftest.ts?` &&
4035 test "$2" = conftest.ts3 &&
4036 test "$3" = conftest.ts2 &&
4037 test "$4" = conftest.ts1); then
4038 #
4039 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4040 # because we don't need to test make.
4041 make_ok=true
4042 if test $am_try_res != 1; then
4043 # But if we've succeeded so far with a subsecond resolution, we
4044 # have one more thing to check: make. It can happen that
4045 # everything else supports the subsecond mtimes, but make doesn't;
4046 # notably on macOS, which ships make 3.81 from 2006 (the last one
4047 # released under GPLv2). https://bugs.gnu.org/68808
4048 #
4049 # We test $MAKE if it is defined in the environment, else "make".
4050 # It might get overridden later, but our hope is that in practice
4051 # it does not matter: it is the system "make" which is (by far)
4052 # the most likely to be broken, whereas if the user overrides it,
4053 # probably they did so with a better, or at least not worse, make.
4054 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4055 #
4056 # Create a Makefile (real tab character here):
4057 rm -f conftest.mk
4058 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4059 echo ' touch conftest.ts2' >>conftest.mk
4060 #
4061 # Now, running
4062 # touch conftest.ts1; touch conftest.ts2; make
4063 # should touch ts1 because ts2 is newer. This could happen by luck,
4064 # but most often, it will fail if make's support is insufficient. So
4065 # test for several consecutive successes.
4066 #
4067 # (We reuse conftest.ts[12] because we still want to modify existing
4068 # files, not create new ones, per above.)
4069 n=0
4070 make=${MAKE-make}
4071 until test $n -eq 3; do
4072 echo one > conftest.ts1
4073 sleep $am_try_res
4074 echo two > conftest.ts2 # ts2 should now be newer than ts1
4075 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4076 make_ok=false
4077 break # out of $n loop
4078 fi
4079 n=`expr $n + 1`
4080 done
4081 fi
4082 #
4083 if $make_ok; then
4084 # Everything we know to check worked out, so call this resolution good.
4085 am_cv_filesystem_timestamp_resolution=$am_try_res
4086 break # out of $am_try_res loop
4087 fi
4088 # Otherwise, we'll go on to check the next resolution.
4089 fi
4090 done
4091 rm -f conftest.ts?
4092 # (end _am_filesystem_timestamp_resolution)
4093 ;;
4094 esac
4095 fi
4096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4097 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4098
4099 # This check should not be cached, as it may vary across builds of
4100 # different projects.
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4102 printf %s "checking whether build environment is sane... " >&6; }
4103 # Reject unsafe characters in $srcdir or the absolute working directory
4104 # name. Accept space and tab only in the latter.
4105 am_lf='
4106 '
4107 case `pwd` in
4108 *[\\\"\#\$\&\'\`$am_lf]*)
4109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110 printf "%s\n" "no" >&6; }
4111 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4112 esac
4113 case $srcdir in
4114 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 printf "%s\n" "no" >&6; }
4117 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4118 esac
4119
4120 # Do 'set' in a subshell so we don't clobber the current shell's
4121 # arguments. Must try -L first in case configure is actually a
4122 # symlink; some systems play weird games with the mod time of symlinks
4123 # (eg FreeBSD returns the mod time of the symlink's containing
4124 # directory).
4125 am_build_env_is_sane=no
4126 am_has_slept=no
4127 rm -f conftest.file
4128 for am_try in 1 2; do
4129 echo "timestamp, slept: $am_has_slept" > conftest.file
4130 if (
4131 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4132 if test "$*" = "X"; then
4133 # -L didn't work.
4134 set X `ls -t "$srcdir/configure" conftest.file`
4135 fi
4136 test "$2" = conftest.file
4137 ); then
4138 am_build_env_is_sane=yes
4139 break
4140 fi
4141 # Just in case.
4142 sleep "$am_cv_filesystem_timestamp_resolution"
4143 am_has_slept=yes
4144 done
4145
4146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4147 printf "%s\n" "$am_build_env_is_sane" >&6; }
4148 if test "$am_build_env_is_sane" = no; then
4149 as_fn_error $? "newly created file is older than distributed files!
4150 Check your system clock" "$LINENO" 5
4151 fi
4152
4153 # If we didn't sleep, we still need to ensure time stamps of config.status and
4154 # generated files are strictly newer.
4155 am_sleep_pid=
4156 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4157 then :
4158
4159 else case e in #(
4160 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4161 am_sleep_pid=$!
4162 ;;
4163 esac
4164 fi
4165
4166 rm -f conftest.file
4167
4168 test "$program_prefix" != NONE &&
4169 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4170 # Use a double $ so make ignores it.
4171 test "$program_suffix" != NONE &&
4172 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4173 # Double any \ or $.
4174 # By default was 's,x,x', remove it if useless.
4175 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4176 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4177
4178
4179 # Expand $ac_aux_dir to an absolute path.
4180 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4181
4182
4183 if test x"${MISSING+set}" != xset; then
4184 MISSING="\${SHELL} '$am_aux_dir/missing'"
4185 fi
4186 # Use eval to expand $SHELL
4187 if eval "$MISSING --is-lightweight"; then
4188 am_missing_run="$MISSING "
4189 else
4190 am_missing_run=
4191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4192 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4193 fi
4194
4195 if test x"${install_sh+set}" != xset; then
4196 case $am_aux_dir in
4197 *\ * | *\ *)
4198 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4199 *)
4200 install_sh="\${SHELL} $am_aux_dir/install-sh"
4201 esac
4202 fi
4203
4204 # Installed binaries are usually stripped using 'strip' when the user
4205 # run "make install-strip". However 'strip' might not be the right
4206 # tool to use in cross-compilation environments, therefore Automake
4207 # will honor the 'STRIP' environment variable to overrule this program.
4208 if test "$cross_compiling" != no; then
4209 if test -n "$ac_tool_prefix"; then
4210 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4211 set dummy ${ac_tool_prefix}strip; ac_word=$2
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4213 printf %s "checking for $ac_word... " >&6; }
4214 if test ${ac_cv_prog_STRIP+y}
4215 then :
4216 printf %s "(cached) " >&6
4217 else case e in #(
4218 e) if test -n "$STRIP"; then
4219 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4220 else
4221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4222 for as_dir in $PATH
4223 do
4224 IFS=$as_save_IFS
4225 case $as_dir in #(((
4226 '') as_dir=./ ;;
4227 */) ;;
4228 *) as_dir=$as_dir/ ;;
4229 esac
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4233 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4234 break 2
4235 fi
4236 done
4237 done
4238 IFS=$as_save_IFS
4239
4240 fi ;;
4241 esac
4242 fi
4243 STRIP=$ac_cv_prog_STRIP
4244 if test -n "$STRIP"; then
4245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4246 printf "%s\n" "$STRIP" >&6; }
4247 else
4248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4249 printf "%s\n" "no" >&6; }
4250 fi
4251
4252
4253 fi
4254 if test -z "$ac_cv_prog_STRIP"; then
4255 ac_ct_STRIP=$STRIP
4256 # Extract the first word of "strip", so it can be a program name with args.
4257 set dummy strip; ac_word=$2
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 printf %s "checking for $ac_word... " >&6; }
4260 if test ${ac_cv_prog_ac_ct_STRIP+y}
4261 then :
4262 printf %s "(cached) " >&6
4263 else case e in #(
4264 e) if test -n "$ac_ct_STRIP"; then
4265 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4266 else
4267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4268 for as_dir in $PATH
4269 do
4270 IFS=$as_save_IFS
4271 case $as_dir in #(((
4272 '') as_dir=./ ;;
4273 */) ;;
4274 *) as_dir=$as_dir/ ;;
4275 esac
4276 for ac_exec_ext in '' $ac_executable_extensions; do
4277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4278 ac_cv_prog_ac_ct_STRIP="strip"
4279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4280 break 2
4281 fi
4282 done
4283 done
4284 IFS=$as_save_IFS
4285
4286 fi ;;
4287 esac
4288 fi
4289 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4290 if test -n "$ac_ct_STRIP"; then
4291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4292 printf "%s\n" "$ac_ct_STRIP" >&6; }
4293 else
4294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4295 printf "%s\n" "no" >&6; }
4296 fi
4297
4298 if test "x$ac_ct_STRIP" = x; then
4299 STRIP=":"
4300 else
4301 case $cross_compiling:$ac_tool_warned in
4302 yes:)
4303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4304 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4305 ac_tool_warned=yes ;;
4306 esac
4307 STRIP=$ac_ct_STRIP
4308 fi
4309 else
4310 STRIP="$ac_cv_prog_STRIP"
4311 fi
4312
4313 fi
4314 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4315
4316
4317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4318 printf %s "checking for a race-free mkdir -p... " >&6; }
4319 if test -z "$MKDIR_P"; then
4320 if test ${ac_cv_path_mkdir+y}
4321 then :
4322 printf %s "(cached) " >&6
4323 else case e in #(
4324 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4325 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4326 do
4327 IFS=$as_save_IFS
4328 case $as_dir in #(((
4329 '') as_dir=./ ;;
4330 */) ;;
4331 *) as_dir=$as_dir/ ;;
4332 esac
4333 for ac_prog in mkdir gmkdir; do
4334 for ac_exec_ext in '' $ac_executable_extensions; do
4335 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4336 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4337 'mkdir ('*'coreutils) '* | \
4338 *'BusyBox '* | \
4339 'mkdir (fileutils) '4.1*)
4340 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4341 break 3;;
4342 esac
4343 done
4344 done
4345 done
4346 IFS=$as_save_IFS
4347 ;;
4348 esac
4349 fi
4350
4351 test -d ./--version && rmdir ./--version
4352 if test ${ac_cv_path_mkdir+y}; then
4353 MKDIR_P="$ac_cv_path_mkdir -p"
4354 else
4355 # As a last resort, use plain mkdir -p,
4356 # in the hope it doesn't have the bugs of ancient mkdir.
4357 MKDIR_P='mkdir -p'
4358 fi
4359 fi
4360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4361 printf "%s\n" "$MKDIR_P" >&6; }
4362
4363 for ac_prog in gawk mawk nawk awk
4364 do
4365 # Extract the first word of "$ac_prog", so it can be a program name with args.
4366 set dummy $ac_prog; ac_word=$2
4367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4368 printf %s "checking for $ac_word... " >&6; }
4369 if test ${ac_cv_prog_AWK+y}
4370 then :
4371 printf %s "(cached) " >&6
4372 else case e in #(
4373 e) if test -n "$AWK"; then
4374 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4375 else
4376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4377 for as_dir in $PATH
4378 do
4379 IFS=$as_save_IFS
4380 case $as_dir in #(((
4381 '') as_dir=./ ;;
4382 */) ;;
4383 *) as_dir=$as_dir/ ;;
4384 esac
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4387 ac_cv_prog_AWK="$ac_prog"
4388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4389 break 2
4390 fi
4391 done
4392 done
4393 IFS=$as_save_IFS
4394
4395 fi ;;
4396 esac
4397 fi
4398 AWK=$ac_cv_prog_AWK
4399 if test -n "$AWK"; then
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4401 printf "%s\n" "$AWK" >&6; }
4402 else
4403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4404 printf "%s\n" "no" >&6; }
4405 fi
4406
4407
4408 test -n "$AWK" && break
4409 done
4410
4411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4412 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4413 set x ${MAKE-make}
4414 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4415 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4416 then :
4417 printf %s "(cached) " >&6
4418 else case e in #(
4419 e) cat >conftest.make <<\_ACEOF
4420 SHELL = /bin/sh
4421 all:
4422 @echo '@@@%%%=$(MAKE)=@@@%%%'
4423 _ACEOF
4424 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4425 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4426 *@@@%%%=?*=@@@%%%*)
4427 eval ac_cv_prog_make_${ac_make}_set=yes;;
4428 *)
4429 eval ac_cv_prog_make_${ac_make}_set=no;;
4430 esac
4431 rm -f conftest.make ;;
4432 esac
4433 fi
4434 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4436 printf "%s\n" "yes" >&6; }
4437 SET_MAKE=
4438 else
4439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4440 printf "%s\n" "no" >&6; }
4441 SET_MAKE="MAKE=${MAKE-make}"
4442 fi
4443
4444 rm -rf .tst 2>/dev/null
4445 mkdir .tst 2>/dev/null
4446 if test -d .tst; then
4447 am__leading_dot=.
4448 else
4449 am__leading_dot=_
4450 fi
4451 rmdir .tst 2>/dev/null
4452
4453 AM_DEFAULT_VERBOSITY=1
4454 # Check whether --enable-silent-rules was given.
4455 if test ${enable_silent_rules+y}
4456 then :
4457 enableval=$enable_silent_rules;
4458 fi
4459
4460 am_make=${MAKE-make}
4461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4462 printf %s "checking whether $am_make supports nested variables... " >&6; }
4463 if test ${am_cv_make_support_nested_variables+y}
4464 then :
4465 printf %s "(cached) " >&6
4466 else case e in #(
4467 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4468 BAR0=false
4469 BAR1=true
4470 V=1
4471 am__doit:
4472 @$(TRUE)
4473 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4474 am_cv_make_support_nested_variables=yes
4475 else
4476 am_cv_make_support_nested_variables=no
4477 fi ;;
4478 esac
4479 fi
4480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4481 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4482 AM_BACKSLASH='\'
4483
4484 am__rm_f_notfound=
4485 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4486 then :
4487
4488 else case e in #(
4489 e) am__rm_f_notfound='""' ;;
4490 esac
4491 fi
4492
4493
4494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4495 printf %s "checking xargs -n works... " >&6; }
4496 if test ${am_cv_xargs_n_works+y}
4497 then :
4498 printf %s "(cached) " >&6
4499 else case e in #(
4500 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4501 3"
4502 then :
4503 am_cv_xargs_n_works=yes
4504 else case e in #(
4505 e) am_cv_xargs_n_works=no ;;
4506 esac
4507 fi ;;
4508 esac
4509 fi
4510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4511 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4512 if test "$am_cv_xargs_n_works" = yes
4513 then :
4514 am__xargs_n='xargs -n'
4515 else case e in #(
4516 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4517 ;;
4518 esac
4519 fi
4520
4521 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4522 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4523 # is not polluted with repeated "-I."
4524 am__isrc=' -I$(srcdir)'
4525 # test to see if srcdir already configured
4526 if test -f $srcdir/config.status; then
4527 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4528 fi
4529 fi
4530
4531 # test whether we have cygpath
4532 if test -z "$CYGPATH_W"; then
4533 if (cygpath --version) >/dev/null 2>/dev/null; then
4534 CYGPATH_W='cygpath -w'
4535 else
4536 CYGPATH_W=echo
4537 fi
4538 fi
4539
4540
4541 # Define the identity of the package.
4542 PACKAGE='patchutils'
4543 VERSION='0.4.5'
4544
4545
4546 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4547
4548
4549 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4550
4551 # Some tools Automake needs.
4552
4553 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4554
4555
4556 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4557
4558
4559 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4560
4561
4562 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4563
4564
4565 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4566
4567 # For better backward compatibility. To be removed once Automake 1.9.x
4568 # dies out for good. For more background, see:
4569 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4570 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4571 mkdir_p='$(MKDIR_P)'
4572
4573 # We need awk for the "check" target (and possibly the TAP driver). The
4574 # system "awk" is bad on some platforms.
4575 # Always define AMTAR for backward compatibility. Yes, it's still used
4576 # in the wild :-( We should find a proper way to deprecate it ...
4577 AMTAR='$${TAR-tar}'
4578
4579
4580 # We'll loop over all known methods to create a tar archive until one works.
4581 _am_tools='gnutar plaintar pax cpio none'
4582
4583 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4584 # There is notably a 21 bits limit for the UID and the GID. In fact,
4585 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4586 # and bug#13588).
4587 am_max_uid=2097151 # 2^21 - 1
4588 am_max_gid=$am_max_uid
4589 # The $UID and $GID variables are not portable, so we need to resort
4590 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4591 # below are definitely unexpected, so allow the users to see them
4592 # (that is, avoid stderr redirection).
4593 am_uid=`id -u || echo unknown`
4594 am_gid=`id -g || echo unknown`
4595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4596 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4597 if test x$am_uid = xunknown; then
4598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&5
4599 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current UID is ok, but dist-ustar might not work" >&2;}
4600 elif test $am_uid -le $am_max_uid; then
4601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4602 printf "%s\n" "yes" >&6; }
4603 else
4604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 printf "%s\n" "no" >&6; }
4606 _am_tools=none
4607 fi
4608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4609 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4610 if test x$gm_gid = xunknown; then
4611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&5
4612 printf "%s\n" "$as_me: WARNING: ancient id detected; assuming current GID is ok, but dist-ustar might not work" >&2;}
4613 elif test $am_gid -le $am_max_gid; then
4614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4615 printf "%s\n" "yes" >&6; }
4616 else
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4618 printf "%s\n" "no" >&6; }
4619 _am_tools=none
4620 fi
4621
4622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4623 printf %s "checking how to create a ustar tar archive... " >&6; }
4624
4625 # Go ahead even if we have the value already cached. We do so because we
4626 # need to set the values for the 'am__tar' and 'am__untar' variables.
4627 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4628
4629 for _am_tool in $_am_tools; do
4630 case $_am_tool in
4631 gnutar)
4632 for _am_tar in tar gnutar gtar; do
4633 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4634 ($_am_tar --version) >&5 2>&5
4635 ac_status=$?
4636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4637 (exit $ac_status); } && break
4638 done
4639 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4640 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4641 am__untar="$_am_tar -xf -"
4642 ;;
4643 plaintar)
4644 # Must skip GNU tar: if it does not support --format= it doesn't create
4645 # ustar tarball either.
4646 (tar --version) >/dev/null 2>&1 && continue
4647 am__tar='tar chf - "$$tardir"'
4648 am__tar_='tar chf - "$tardir"'
4649 am__untar='tar xf -'
4650 ;;
4651 pax)
4652 am__tar='pax -L -x ustar -w "$$tardir"'
4653 am__tar_='pax -L -x ustar -w "$tardir"'
4654 am__untar='pax -r'
4655 ;;
4656 cpio)
4657 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4658 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4659 am__untar='cpio -i -H ustar -d'
4660 ;;
4661 none)
4662 am__tar=false
4663 am__tar_=false
4664 am__untar=false
4665 ;;
4666 esac
4667
4668 # If the value was cached, stop now. We just wanted to have am__tar
4669 # and am__untar set.
4670 test -n "${am_cv_prog_tar_ustar}" && break
4671
4672 # tar/untar a dummy directory, and stop if the command works.
4673 rm -rf conftest.dir
4674 mkdir conftest.dir
4675 echo GrepMe > conftest.dir/file
4676 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4677 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4678 ac_status=$?
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); }
4681 rm -rf conftest.dir
4682 if test -s conftest.tar; then
4683 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4684 ($am__untar <conftest.tar) >&5 2>&5
4685 ac_status=$?
4686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4687 (exit $ac_status); }
4688 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4689 (cat conftest.dir/file) >&5 2>&5
4690 ac_status=$?
4691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692 (exit $ac_status); }
4693 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4694 fi
4695 done
4696 rm -rf conftest.dir
4697
4698 if test ${am_cv_prog_tar_ustar+y}
4699 then :
4700 printf %s "(cached) " >&6
4701 else case e in #(
4702 e) am_cv_prog_tar_ustar=$_am_tool ;;
4703 esac
4704 fi
4705
4706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4707 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
4708
4709
4710
4711
4712
4713 # Variables for tags utilities; see am/tags.am
4714 if test -z "$CTAGS"; then
4715 CTAGS=ctags
4716 fi
4717
4718 if test -z "$ETAGS"; then
4719 ETAGS=etags
4720 fi
4721
4722 if test -z "$CSCOPE"; then
4723 CSCOPE=cscope
4724 fi
4725
4726
4727
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737
4738
4739
4740
4741
4742
4743 ac_ext=c
4744 ac_cpp='$CPP $CPPFLAGS'
4745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4748 if test -n "$ac_tool_prefix"; then
4749 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4750 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4752 printf %s "checking for $ac_word... " >&6; }
4753 if test ${ac_cv_prog_CC+y}
4754 then :
4755 printf %s "(cached) " >&6
4756 else case e in #(
4757 e) if test -n "$CC"; then
4758 ac_cv_prog_CC="$CC" # Let the user override the test.
4759 else
4760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4761 for as_dir in $PATH
4762 do
4763 IFS=$as_save_IFS
4764 case $as_dir in #(((
4765 '') as_dir=./ ;;
4766 */) ;;
4767 *) as_dir=$as_dir/ ;;
4768 esac
4769 for ac_exec_ext in '' $ac_executable_extensions; do
4770 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4771 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4773 break 2
4774 fi
4775 done
4776 done
4777 IFS=$as_save_IFS
4778
4779 fi ;;
4780 esac
4781 fi
4782 CC=$ac_cv_prog_CC
4783 if test -n "$CC"; then
4784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4785 printf "%s\n" "$CC" >&6; }
4786 else
4787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 printf "%s\n" "no" >&6; }
4789 fi
4790
4791
4792 fi
4793 if test -z "$ac_cv_prog_CC"; then
4794 ac_ct_CC=$CC
4795 # Extract the first word of "gcc", so it can be a program name with args.
4796 set dummy gcc; ac_word=$2
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4798 printf %s "checking for $ac_word... " >&6; }
4799 if test ${ac_cv_prog_ac_ct_CC+y}
4800 then :
4801 printf %s "(cached) " >&6
4802 else case e in #(
4803 e) if test -n "$ac_ct_CC"; then
4804 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4805 else
4806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4807 for as_dir in $PATH
4808 do
4809 IFS=$as_save_IFS
4810 case $as_dir in #(((
4811 '') as_dir=./ ;;
4812 */) ;;
4813 *) as_dir=$as_dir/ ;;
4814 esac
4815 for ac_exec_ext in '' $ac_executable_extensions; do
4816 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4817 ac_cv_prog_ac_ct_CC="gcc"
4818 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4819 break 2
4820 fi
4821 done
4822 done
4823 IFS=$as_save_IFS
4824
4825 fi ;;
4826 esac
4827 fi
4828 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4829 if test -n "$ac_ct_CC"; then
4830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4831 printf "%s\n" "$ac_ct_CC" >&6; }
4832 else
4833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 printf "%s\n" "no" >&6; }
4835 fi
4836
4837 if test "x$ac_ct_CC" = x; then
4838 CC=""
4839 else
4840 case $cross_compiling:$ac_tool_warned in
4841 yes:)
4842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4843 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4844 ac_tool_warned=yes ;;
4845 esac
4846 CC=$ac_ct_CC
4847 fi
4848 else
4849 CC="$ac_cv_prog_CC"
4850 fi
4851
4852 if test -z "$CC"; then
4853 if test -n "$ac_tool_prefix"; then
4854 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4855 set dummy ${ac_tool_prefix}cc; ac_word=$2
4856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4857 printf %s "checking for $ac_word... " >&6; }
4858 if test ${ac_cv_prog_CC+y}
4859 then :
4860 printf %s "(cached) " >&6
4861 else case e in #(
4862 e) if test -n "$CC"; then
4863 ac_cv_prog_CC="$CC" # Let the user override the test.
4864 else
4865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4866 for as_dir in $PATH
4867 do
4868 IFS=$as_save_IFS
4869 case $as_dir in #(((
4870 '') as_dir=./ ;;
4871 */) ;;
4872 *) as_dir=$as_dir/ ;;
4873 esac
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4876 ac_cv_prog_CC="${ac_tool_prefix}cc"
4877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi
4880 done
4881 done
4882 IFS=$as_save_IFS
4883
4884 fi ;;
4885 esac
4886 fi
4887 CC=$ac_cv_prog_CC
4888 if test -n "$CC"; then
4889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4890 printf "%s\n" "$CC" >&6; }
4891 else
4892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4893 printf "%s\n" "no" >&6; }
4894 fi
4895
4896
4897 fi
4898 fi
4899 if test -z "$CC"; then
4900 # Extract the first word of "cc", so it can be a program name with args.
4901 set dummy cc; ac_word=$2
4902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4903 printf %s "checking for $ac_word... " >&6; }
4904 if test ${ac_cv_prog_CC+y}
4905 then :
4906 printf %s "(cached) " >&6
4907 else case e in #(
4908 e) if test -n "$CC"; then
4909 ac_cv_prog_CC="$CC" # Let the user override the test.
4910 else
4911 ac_prog_rejected=no
4912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4913 for as_dir in $PATH
4914 do
4915 IFS=$as_save_IFS
4916 case $as_dir in #(((
4917 '') as_dir=./ ;;
4918 */) ;;
4919 *) as_dir=$as_dir/ ;;
4920 esac
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4923 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4924 ac_prog_rejected=yes
4925 continue
4926 fi
4927 ac_cv_prog_CC="cc"
4928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4929 break 2
4930 fi
4931 done
4932 done
4933 IFS=$as_save_IFS
4934
4935 if test $ac_prog_rejected = yes; then
4936 # We found a bogon in the path, so make sure we never use it.
4937 set dummy $ac_cv_prog_CC
4938 shift
4939 if test $# != 0; then
4940 # We chose a different compiler from the bogus one.
4941 # However, it has the same basename, so the bogon will be chosen
4942 # first if we set CC to just the basename; use the full file name.
4943 shift
4944 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4945 fi
4946 fi
4947 fi ;;
4948 esac
4949 fi
4950 CC=$ac_cv_prog_CC
4951 if test -n "$CC"; then
4952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4953 printf "%s\n" "$CC" >&6; }
4954 else
4955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4956 printf "%s\n" "no" >&6; }
4957 fi
4958
4959
4960 fi
4961 if test -z "$CC"; then
4962 if test -n "$ac_tool_prefix"; then
4963 for ac_prog in cl.exe
4964 do
4965 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4966 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 printf %s "checking for $ac_word... " >&6; }
4969 if test ${ac_cv_prog_CC+y}
4970 then :
4971 printf %s "(cached) " >&6
4972 else case e in #(
4973 e) if test -n "$CC"; then
4974 ac_cv_prog_CC="$CC" # Let the user override the test.
4975 else
4976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4977 for as_dir in $PATH
4978 do
4979 IFS=$as_save_IFS
4980 case $as_dir in #(((
4981 '') as_dir=./ ;;
4982 */) ;;
4983 *) as_dir=$as_dir/ ;;
4984 esac
4985 for ac_exec_ext in '' $ac_executable_extensions; do
4986 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4987 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4988 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4989 break 2
4990 fi
4991 done
4992 done
4993 IFS=$as_save_IFS
4994
4995 fi ;;
4996 esac
4997 fi
4998 CC=$ac_cv_prog_CC
4999 if test -n "$CC"; then
5000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5001 printf "%s\n" "$CC" >&6; }
5002 else
5003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 printf "%s\n" "no" >&6; }
5005 fi
5006
5007
5008 test -n "$CC" && break
5009 done
5010 fi
5011 if test -z "$CC"; then
5012 ac_ct_CC=$CC
5013 for ac_prog in cl.exe
5014 do
5015 # Extract the first word of "$ac_prog", so it can be a program name with args.
5016 set dummy $ac_prog; ac_word=$2
5017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5018 printf %s "checking for $ac_word... " >&6; }
5019 if test ${ac_cv_prog_ac_ct_CC+y}
5020 then :
5021 printf %s "(cached) " >&6
5022 else case e in #(
5023 e) if test -n "$ac_ct_CC"; then
5024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5025 else
5026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5027 for as_dir in $PATH
5028 do
5029 IFS=$as_save_IFS
5030 case $as_dir in #(((
5031 '') as_dir=./ ;;
5032 */) ;;
5033 *) as_dir=$as_dir/ ;;
5034 esac
5035 for ac_exec_ext in '' $ac_executable_extensions; do
5036 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5037 ac_cv_prog_ac_ct_CC="$ac_prog"
5038 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5039 break 2
5040 fi
5041 done
5042 done
5043 IFS=$as_save_IFS
5044
5045 fi ;;
5046 esac
5047 fi
5048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5049 if test -n "$ac_ct_CC"; then
5050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5051 printf "%s\n" "$ac_ct_CC" >&6; }
5052 else
5053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 printf "%s\n" "no" >&6; }
5055 fi
5056
5057
5058 test -n "$ac_ct_CC" && break
5059 done
5060
5061 if test "x$ac_ct_CC" = x; then
5062 CC=""
5063 else
5064 case $cross_compiling:$ac_tool_warned in
5065 yes:)
5066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5067 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5068 ac_tool_warned=yes ;;
5069 esac
5070 CC=$ac_ct_CC
5071 fi
5072 fi
5073
5074 fi
5075 if test -z "$CC"; then
5076 if test -n "$ac_tool_prefix"; then
5077 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5078 set dummy ${ac_tool_prefix}clang; ac_word=$2
5079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5080 printf %s "checking for $ac_word... " >&6; }
5081 if test ${ac_cv_prog_CC+y}
5082 then :
5083 printf %s "(cached) " >&6
5084 else case e in #(
5085 e) if test -n "$CC"; then
5086 ac_cv_prog_CC="$CC" # Let the user override the test.
5087 else
5088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5089 for as_dir in $PATH
5090 do
5091 IFS=$as_save_IFS
5092 case $as_dir in #(((
5093 '') as_dir=./ ;;
5094 */) ;;
5095 *) as_dir=$as_dir/ ;;
5096 esac
5097 for ac_exec_ext in '' $ac_executable_extensions; do
5098 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5099 ac_cv_prog_CC="${ac_tool_prefix}clang"
5100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5101 break 2
5102 fi
5103 done
5104 done
5105 IFS=$as_save_IFS
5106
5107 fi ;;
5108 esac
5109 fi
5110 CC=$ac_cv_prog_CC
5111 if test -n "$CC"; then
5112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5113 printf "%s\n" "$CC" >&6; }
5114 else
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5116 printf "%s\n" "no" >&6; }
5117 fi
5118
5119
5120 fi
5121 if test -z "$ac_cv_prog_CC"; then
5122 ac_ct_CC=$CC
5123 # Extract the first word of "clang", so it can be a program name with args.
5124 set dummy clang; ac_word=$2
5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5126 printf %s "checking for $ac_word... " >&6; }
5127 if test ${ac_cv_prog_ac_ct_CC+y}
5128 then :
5129 printf %s "(cached) " >&6
5130 else case e in #(
5131 e) if test -n "$ac_ct_CC"; then
5132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137 IFS=$as_save_IFS
5138 case $as_dir in #(((
5139 '') as_dir=./ ;;
5140 */) ;;
5141 *) as_dir=$as_dir/ ;;
5142 esac
5143 for ac_exec_ext in '' $ac_executable_extensions; do
5144 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5145 ac_cv_prog_ac_ct_CC="clang"
5146 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5147 break 2
5148 fi
5149 done
5150 done
5151 IFS=$as_save_IFS
5152
5153 fi ;;
5154 esac
5155 fi
5156 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5157 if test -n "$ac_ct_CC"; then
5158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5159 printf "%s\n" "$ac_ct_CC" >&6; }
5160 else
5161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 printf "%s\n" "no" >&6; }
5163 fi
5164
5165 if test "x$ac_ct_CC" = x; then
5166 CC=""
5167 else
5168 case $cross_compiling:$ac_tool_warned in
5169 yes:)
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5171 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5172 ac_tool_warned=yes ;;
5173 esac
5174 CC=$ac_ct_CC
5175 fi
5176 else
5177 CC="$ac_cv_prog_CC"
5178 fi
5179
5180 fi
5181
5182
5183 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5184 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5185 as_fn_error $? "no acceptable C compiler found in \$PATH
5186 See 'config.log' for more details" "$LINENO" 5; }
5187
5188 # Provide some information about the compiler.
5189 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5190 set X $ac_compile
5191 ac_compiler=$2
5192 for ac_option in --version -v -V -qversion -version; do
5193 { { ac_try="$ac_compiler $ac_option >&5"
5194 case "(($ac_try" in
5195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5196 *) ac_try_echo=$ac_try;;
5197 esac
5198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5199 printf "%s\n" "$ac_try_echo"; } >&5
5200 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5201 ac_status=$?
5202 if test -s conftest.err; then
5203 sed '10a\
5204 ... rest of stderr output deleted ...
5205 10q' conftest.err >conftest.er1
5206 cat conftest.er1 >&5
5207 fi
5208 rm -f conftest.er1 conftest.err
5209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5210 test $ac_status = 0; }
5211 done
5212
5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5214 /* end confdefs.h. */
5215
5216 int
5217 main (void)
5218 {
5219
5220 ;
5221 return 0;
5222 }
5223 _ACEOF
5224 ac_clean_files_save=$ac_clean_files
5225 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5226 # Try to create an executable without -o first, disregard a.out.
5227 # It will help us diagnose broken compilers, and finding out an intuition
5228 # of exeext.
5229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5230 printf %s "checking whether the C compiler works... " >&6; }
5231 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5232
5233 # The possible output files:
5234 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5235
5236 ac_rmfiles=
5237 for ac_file in $ac_files
5238 do
5239 case $ac_file in
5240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5242 esac
5243 done
5244 rm -f $ac_rmfiles
5245
5246 if { { ac_try="$ac_link_default"
5247 case "(($ac_try" in
5248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5250 esac
5251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5252 printf "%s\n" "$ac_try_echo"; } >&5
5253 (eval "$ac_link_default") 2>&5
5254 ac_status=$?
5255 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5256 test $ac_status = 0; }
5257 then :
5258 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
5259 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
5260 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5261 # so that the user can short-circuit this test for compilers unknown to
5262 # Autoconf.
5263 for ac_file in $ac_files ''
5264 do
5265 test -f "$ac_file" || continue
5266 case $ac_file in
5267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5268 ;;
5269 [ab].out )
5270 # We found the default executable, but exeext='' is most
5271 # certainly right.
5272 break;;
5273 *.* )
5274 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5275 then :; else
5276 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5277 fi
5278 # We set ac_cv_exeext here because the later test for it is not
5279 # safe: cross compilers may not add the suffix if given an '-o'
5280 # argument, so we may need to know it at that point already.
5281 # Even if this section looks crufty: it has the advantage of
5282 # actually working.
5283 break;;
5284 * )
5285 break;;
5286 esac
5287 done
5288 test "$ac_cv_exeext" = no && ac_cv_exeext=
5289
5290 else case e in #(
5291 e) ac_file='' ;;
5292 esac
5293 fi
5294 if test -z "$ac_file"
5295 then :
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5297 printf "%s\n" "no" >&6; }
5298 printf "%s\n" "$as_me: failed program was:" >&5
5299 sed 's/^/| /' conftest.$ac_ext >&5
5300
5301 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5302 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5303 as_fn_error 77 "C compiler cannot create executables
5304 See 'config.log' for more details" "$LINENO" 5; }
5305 else case e in #(
5306 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5307 printf "%s\n" "yes" >&6; } ;;
5308 esac
5309 fi
5310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5311 printf %s "checking for C compiler default output file name... " >&6; }
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5313 printf "%s\n" "$ac_file" >&6; }
5314 ac_exeext=$ac_cv_exeext
5315
5316 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5317 ac_clean_files=$ac_clean_files_save
5318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5319 printf %s "checking for suffix of executables... " >&6; }
5320 if { { ac_try="$ac_link"
5321 case "(($ac_try" in
5322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5323 *) ac_try_echo=$ac_try;;
5324 esac
5325 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5326 printf "%s\n" "$ac_try_echo"; } >&5
5327 (eval "$ac_link") 2>&5
5328 ac_status=$?
5329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5330 test $ac_status = 0; }
5331 then :
5332 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
5333 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
5334 # work properly (i.e., refer to 'conftest.exe'), while it won't with
5335 # 'rm'.
5336 for ac_file in conftest.exe conftest conftest.*; do
5337 test -f "$ac_file" || continue
5338 case $ac_file in
5339 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5340 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5341 break;;
5342 * ) break;;
5343 esac
5344 done
5345 else case e in #(
5346 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5347 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5348 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5349 See 'config.log' for more details" "$LINENO" 5; } ;;
5350 esac
5351 fi
5352 rm -f conftest conftest$ac_cv_exeext
5353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5354 printf "%s\n" "$ac_cv_exeext" >&6; }
5355
5356 rm -f conftest.$ac_ext
5357 EXEEXT=$ac_cv_exeext
5358 ac_exeext=$EXEEXT
5359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5361 #include <stdio.h>
5362 int
5363 main (void)
5364 {
5365 FILE *f = fopen ("conftest.out", "w");
5366 if (!f)
5367 return 1;
5368 return ferror (f) || fclose (f) != 0;
5369
5370 ;
5371 return 0;
5372 }
5373 _ACEOF
5374 ac_clean_files="$ac_clean_files conftest.out"
5375 # Check that the compiler produces executables we can run. If not, either
5376 # the compiler is broken, or we cross compile.
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5378 printf %s "checking whether we are cross compiling... " >&6; }
5379 if test "$cross_compiling" != yes; then
5380 { { ac_try="$ac_link"
5381 case "(($ac_try" in
5382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5383 *) ac_try_echo=$ac_try;;
5384 esac
5385 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5386 printf "%s\n" "$ac_try_echo"; } >&5
5387 (eval "$ac_link") 2>&5
5388 ac_status=$?
5389 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5390 test $ac_status = 0; }
5391 if { ac_try='./conftest$ac_cv_exeext'
5392 { { case "(($ac_try" in
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5395 esac
5396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5397 printf "%s\n" "$ac_try_echo"; } >&5
5398 (eval "$ac_try") 2>&5
5399 ac_status=$?
5400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5401 test $ac_status = 0; }; }; then
5402 cross_compiling=no
5403 else
5404 if test "$cross_compiling" = maybe; then
5405 cross_compiling=yes
5406 else
5407 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5408 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5409 as_fn_error 77 "cannot run C compiled programs.
5410 If you meant to cross compile, use '--host'.
5411 See 'config.log' for more details" "$LINENO" 5; }
5412 fi
5413 fi
5414 fi
5415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5416 printf "%s\n" "$cross_compiling" >&6; }
5417
5418 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
5419 conftest.o conftest.obj conftest.out
5420 ac_clean_files=$ac_clean_files_save
5421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5422 printf %s "checking for suffix of object files... " >&6; }
5423 if test ${ac_cv_objext+y}
5424 then :
5425 printf %s "(cached) " >&6
5426 else case e in #(
5427 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5428 /* end confdefs.h. */
5429
5430 int
5431 main (void)
5432 {
5433
5434 ;
5435 return 0;
5436 }
5437 _ACEOF
5438 rm -f conftest.o conftest.obj
5439 if { { ac_try="$ac_compile"
5440 case "(($ac_try" in
5441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5442 *) ac_try_echo=$ac_try;;
5443 esac
5444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5445 printf "%s\n" "$ac_try_echo"; } >&5
5446 (eval "$ac_compile") 2>&5
5447 ac_status=$?
5448 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5449 test $ac_status = 0; }
5450 then :
5451 for ac_file in conftest.o conftest.obj conftest.*; do
5452 test -f "$ac_file" || continue;
5453 case $ac_file in
5454 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5455 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5456 break;;
5457 esac
5458 done
5459 else case e in #(
5460 e) printf "%s\n" "$as_me: failed program was:" >&5
5461 sed 's/^/| /' conftest.$ac_ext >&5
5462
5463 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5464 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5465 as_fn_error $? "cannot compute suffix of object files: cannot compile
5466 See 'config.log' for more details" "$LINENO" 5; } ;;
5467 esac
5468 fi
5469 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
5470 esac
5471 fi
5472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5473 printf "%s\n" "$ac_cv_objext" >&6; }
5474 OBJEXT=$ac_cv_objext
5475 ac_objext=$OBJEXT
5476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5477 printf %s "checking whether the compiler supports GNU C... " >&6; }
5478 if test ${ac_cv_c_compiler_gnu+y}
5479 then :
5480 printf %s "(cached) " >&6
5481 else case e in #(
5482 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5484
5485 int
5486 main (void)
5487 {
5488 #ifndef __GNUC__
5489 choke me
5490 #endif
5491
5492 ;
5493 return 0;
5494 }
5495 _ACEOF
5496 if ac_fn_c_try_compile "$LINENO"
5497 then :
5498 ac_compiler_gnu=yes
5499 else case e in #(
5500 e) ac_compiler_gnu=no ;;
5501 esac
5502 fi
5503 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5504 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5505 ;;
5506 esac
5507 fi
5508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5509 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5510 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5511
5512 if test $ac_compiler_gnu = yes; then
5513 GCC=yes
5514 else
5515 GCC=
5516 fi
5517 ac_test_CFLAGS=${CFLAGS+y}
5518 ac_save_CFLAGS=$CFLAGS
5519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5520 printf %s "checking whether $CC accepts -g... " >&6; }
5521 if test ${ac_cv_prog_cc_g+y}
5522 then :
5523 printf %s "(cached) " >&6
5524 else case e in #(
5525 e) ac_save_c_werror_flag=$ac_c_werror_flag
5526 ac_c_werror_flag=yes
5527 ac_cv_prog_cc_g=no
5528 CFLAGS="-g"
5529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5530 /* end confdefs.h. */
5531
5532 int
5533 main (void)
5534 {
5535
5536 ;
5537 return 0;
5538 }
5539 _ACEOF
5540 if ac_fn_c_try_compile "$LINENO"
5541 then :
5542 ac_cv_prog_cc_g=yes
5543 else case e in #(
5544 e) CFLAGS=""
5545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5546 /* end confdefs.h. */
5547
5548 int
5549 main (void)
5550 {
5551
5552 ;
5553 return 0;
5554 }
5555 _ACEOF
5556 if ac_fn_c_try_compile "$LINENO"
5557 then :
5558
5559 else case e in #(
5560 e) ac_c_werror_flag=$ac_save_c_werror_flag
5561 CFLAGS="-g"
5562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5563 /* end confdefs.h. */
5564
5565 int
5566 main (void)
5567 {
5568
5569 ;
5570 return 0;
5571 }
5572 _ACEOF
5573 if ac_fn_c_try_compile "$LINENO"
5574 then :
5575 ac_cv_prog_cc_g=yes
5576 fi
5577 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5578 esac
5579 fi
5580 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5581 esac
5582 fi
5583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5584 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5585 esac
5586 fi
5587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5588 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5589 if test $ac_test_CFLAGS; then
5590 CFLAGS=$ac_save_CFLAGS
5591 elif test $ac_cv_prog_cc_g = yes; then
5592 if test "$GCC" = yes; then
5593 CFLAGS="-g -O2"
5594 else
5595 CFLAGS="-g"
5596 fi
5597 else
5598 if test "$GCC" = yes; then
5599 CFLAGS="-O2"
5600 else
5601 CFLAGS=
5602 fi
5603 fi
5604 ac_prog_cc_stdc=no
5605 if test x$ac_prog_cc_stdc = xno
5606 then :
5607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5608 printf %s "checking for $CC option to enable C11 features... " >&6; }
5609 if test ${ac_cv_prog_cc_c11+y}
5610 then :
5611 printf %s "(cached) " >&6
5612 else case e in #(
5613 e) ac_cv_prog_cc_c11=no
5614 ac_save_CC=$CC
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616 /* end confdefs.h. */
5617 $ac_c_conftest_c11_program
5618 _ACEOF
5619 for ac_arg in '' -std=gnu11
5620 do
5621 CC="$ac_save_CC $ac_arg"
5622 if ac_fn_c_try_compile "$LINENO"
5623 then :
5624 ac_cv_prog_cc_c11=$ac_arg
5625 fi
5626 rm -f core conftest.err conftest.$ac_objext conftest.beam
5627 test "x$ac_cv_prog_cc_c11" != "xno" && break
5628 done
5629 rm -f conftest.$ac_ext
5630 CC=$ac_save_CC ;;
5631 esac
5632 fi
5633
5634 if test "x$ac_cv_prog_cc_c11" = xno
5635 then :
5636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5637 printf "%s\n" "unsupported" >&6; }
5638 else case e in #(
5639 e) if test "x$ac_cv_prog_cc_c11" = x
5640 then :
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5642 printf "%s\n" "none needed" >&6; }
5643 else case e in #(
5644 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5645 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5646 CC="$CC $ac_cv_prog_cc_c11" ;;
5647 esac
5648 fi
5649 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5650 ac_prog_cc_stdc=c11 ;;
5651 esac
5652 fi
5653 fi
5654 if test x$ac_prog_cc_stdc = xno
5655 then :
5656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5657 printf %s "checking for $CC option to enable C99 features... " >&6; }
5658 if test ${ac_cv_prog_cc_c99+y}
5659 then :
5660 printf %s "(cached) " >&6
5661 else case e in #(
5662 e) ac_cv_prog_cc_c99=no
5663 ac_save_CC=$CC
5664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5665 /* end confdefs.h. */
5666 $ac_c_conftest_c99_program
5667 _ACEOF
5668 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5669 do
5670 CC="$ac_save_CC $ac_arg"
5671 if ac_fn_c_try_compile "$LINENO"
5672 then :
5673 ac_cv_prog_cc_c99=$ac_arg
5674 fi
5675 rm -f core conftest.err conftest.$ac_objext conftest.beam
5676 test "x$ac_cv_prog_cc_c99" != "xno" && break
5677 done
5678 rm -f conftest.$ac_ext
5679 CC=$ac_save_CC ;;
5680 esac
5681 fi
5682
5683 if test "x$ac_cv_prog_cc_c99" = xno
5684 then :
5685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5686 printf "%s\n" "unsupported" >&6; }
5687 else case e in #(
5688 e) if test "x$ac_cv_prog_cc_c99" = x
5689 then :
5690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5691 printf "%s\n" "none needed" >&6; }
5692 else case e in #(
5693 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5694 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5695 CC="$CC $ac_cv_prog_cc_c99" ;;
5696 esac
5697 fi
5698 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5699 ac_prog_cc_stdc=c99 ;;
5700 esac
5701 fi
5702 fi
5703 if test x$ac_prog_cc_stdc = xno
5704 then :
5705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5706 printf %s "checking for $CC option to enable C89 features... " >&6; }
5707 if test ${ac_cv_prog_cc_c89+y}
5708 then :
5709 printf %s "(cached) " >&6
5710 else case e in #(
5711 e) ac_cv_prog_cc_c89=no
5712 ac_save_CC=$CC
5713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715 $ac_c_conftest_c89_program
5716 _ACEOF
5717 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5718 do
5719 CC="$ac_save_CC $ac_arg"
5720 if ac_fn_c_try_compile "$LINENO"
5721 then :
5722 ac_cv_prog_cc_c89=$ac_arg
5723 fi
5724 rm -f core conftest.err conftest.$ac_objext conftest.beam
5725 test "x$ac_cv_prog_cc_c89" != "xno" && break
5726 done
5727 rm -f conftest.$ac_ext
5728 CC=$ac_save_CC ;;
5729 esac
5730 fi
5731
5732 if test "x$ac_cv_prog_cc_c89" = xno
5733 then :
5734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5735 printf "%s\n" "unsupported" >&6; }
5736 else case e in #(
5737 e) if test "x$ac_cv_prog_cc_c89" = x
5738 then :
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5740 printf "%s\n" "none needed" >&6; }
5741 else case e in #(
5742 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5743 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5744 CC="$CC $ac_cv_prog_cc_c89" ;;
5745 esac
5746 fi
5747 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5748 ac_prog_cc_stdc=c89 ;;
5749 esac
5750 fi
5751 fi
5752
5753 ac_ext=c
5754 ac_cpp='$CPP $CPPFLAGS'
5755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5758
5759
5760 ac_ext=c
5761 ac_cpp='$CPP $CPPFLAGS'
5762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5766 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5767 if test ${am_cv_prog_cc_c_o+y}
5768 then :
5769 printf %s "(cached) " >&6
5770 else case e in #(
5771 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5772 /* end confdefs.h. */
5773
5774 int
5775 main (void)
5776 {
5777
5778 ;
5779 return 0;
5780 }
5781 _ACEOF
5782 # Make sure it works both with $CC and with simple cc.
5783 # Following AC_PROG_CC_C_O, we do the test twice because some
5784 # compilers refuse to overwrite an existing .o file with -o,
5785 # though they will create one.
5786 am_cv_prog_cc_c_o=yes
5787 for am_i in 1 2; do
5788 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5789 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5790 ac_status=$?
5791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } \
5793 && test -f conftest2.$ac_objext; then
5794 : OK
5795 else
5796 am_cv_prog_cc_c_o=no
5797 break
5798 fi
5799 done
5800 # aligned with autoconf, so not including core; see bug#72225.
5801 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
5802 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
5803 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
5804 unset am_i ;;
5805 esac
5806 fi
5807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5808 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5809 if test "$am_cv_prog_cc_c_o" != yes; then
5810 # Losing compiler, so override with the script.
5811 # FIXME: It is wrong to rewrite CC.
5812 # But if we don't then we get into trouble of one sort or another.
5813 # A longer-term fix would be to have automake use am__CC in this case,
5814 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5815 CC="$am_aux_dir/compile $CC"
5816 fi
5817 ac_ext=c
5818 ac_cpp='$CPP $CPPFLAGS'
5819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5822
5823
5824
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5826 printf %s "checking whether the compiler is clang... " >&6; }
5827 if test ${gl_cv_compiler_clang+y}
5828 then :
5829 printf %s "(cached) " >&6
5830 else case e in #(
5831 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833
5834 #ifdef __clang__
5835 barfbarf
5836 #endif
5837
5838 int
5839 main (void)
5840 {
5841
5842 ;
5843 return 0;
5844 }
5845
5846 _ACEOF
5847 if ac_fn_c_try_compile "$LINENO"
5848 then :
5849 gl_cv_compiler_clang=no
5850 else case e in #(
5851 e) gl_cv_compiler_clang=yes ;;
5852 esac
5853 fi
5854 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5855 ;;
5856 esac
5857 fi
5858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5859 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
5860
5861
5862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5863 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
5864 if test ${gl_cv_compiler_check_decl_option+y}
5865 then :
5866 printf %s "(cached) " >&6
5867 else case e in #(
5868 e) if test $gl_cv_compiler_clang = yes; then
5869 saved_ac_compile="$ac_compile"
5870 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5872 /* end confdefs.h. */
5873
5874 int
5875 main (void)
5876 {
5877
5878 ;
5879 return 0;
5880 }
5881 _ACEOF
5882 if ac_fn_c_try_compile "$LINENO"
5883 then :
5884 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5885 else case e in #(
5886 e) gl_cv_compiler_check_decl_option=none ;;
5887 esac
5888 fi
5889 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5890 ac_compile="$saved_ac_compile"
5891 else
5892 gl_cv_compiler_check_decl_option=none
5893 fi
5894 ;;
5895 esac
5896 fi
5897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5898 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
5899 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5900 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5901 else
5902 ac_compile_for_check_decl="$ac_compile"
5903 fi
5904
5905 DEPDIR="${am__leading_dot}deps"
5906
5907 ac_config_commands="$ac_config_commands depfiles"
5908
5909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5910 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5911 cat > confinc.mk << 'END'
5912 am__doit:
5913 @echo this is the am__doit target >confinc.out
5914 .PHONY: am__doit
5915 END
5916 am__include="#"
5917 am__quote=
5918 # BSD make does it like this.
5919 echo '.include "confinc.mk" # ignored' > confmf.BSD
5920 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5921 echo 'include confinc.mk # ignored' > confmf.GNU
5922 _am_result=no
5923 for s in GNU BSD; do
5924 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5925 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); }
5929 case $?:`cat confinc.out 2>/dev/null` in #(
5930 '0:this is the am__doit target') :
5931 case $s in #(
5932 BSD) :
5933 am__include='.include' am__quote='"' ;; #(
5934 *) :
5935 am__include='include' am__quote='' ;;
5936 esac ;; #(
5937 *) :
5938 ;;
5939 esac
5940 if test "$am__include" != "#"; then
5941 _am_result="yes ($s style)"
5942 break
5943 fi
5944 done
5945 rm -f confinc.* confmf.*
5946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5947 printf "%s\n" "${_am_result}" >&6; }
5948
5949 # Check whether --enable-dependency-tracking was given.
5950 if test ${enable_dependency_tracking+y}
5951 then :
5952 enableval=$enable_dependency_tracking;
5953 fi
5954
5955 if test "x$enable_dependency_tracking" != xno; then
5956 am_depcomp="$ac_aux_dir/depcomp"
5957 AMDEPBACKSLASH='\'
5958 am__nodep='_no'
5959 fi
5960 if test "x$enable_dependency_tracking" != xno; then
5961 AMDEP_TRUE=
5962 AMDEP_FALSE='#'
5963 else
5964 AMDEP_TRUE='#'
5965 AMDEP_FALSE=
5966 fi
5967
5968
5969
5970 depcc="$CC" am_compiler_list=
5971
5972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5973 printf %s "checking dependency style of $depcc... " >&6; }
5974 if test ${am_cv_CC_dependencies_compiler_type+y}
5975 then :
5976 printf %s "(cached) " >&6
5977 else case e in #(
5978 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5979 # We make a subdir and do the tests there. Otherwise we can end up
5980 # making bogus files that we don't know about and never remove. For
5981 # instance it was reported that on HP-UX the gcc test will end up
5982 # making a dummy file named 'D' -- because '-MD' means "put the output
5983 # in D".
5984 rm -rf conftest.dir
5985 mkdir conftest.dir
5986 # Copy depcomp to subdir because otherwise we won't find it if we're
5987 # using a relative directory.
5988 cp "$am_depcomp" conftest.dir
5989 cd conftest.dir
5990 # We will build objects and dependencies in a subdirectory because
5991 # it helps to detect inapplicable dependency modes. For instance
5992 # both Tru64's cc and ICC support -MD to output dependencies as a
5993 # side effect of compilation, but ICC will put the dependencies in
5994 # the current directory while Tru64 will put them in the object
5995 # directory.
5996 mkdir sub
5997
5998 am_cv_CC_dependencies_compiler_type=none
5999 if test "$am_compiler_list" = ""; then
6000 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6001 fi
6002 am__universal=false
6003 case " $depcc " in #(
6004 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6005 esac
6006
6007 for depmode in $am_compiler_list; do
6008 # Setup a source with many dependencies, because some compilers
6009 # like to wrap large dependency lists on column 80 (with \), and
6010 # we should not choose a depcomp mode which is confused by this.
6011 #
6012 # We need to recreate these files for each test, as the compiler may
6013 # overwrite some of them when testing with obscure command lines.
6014 # This happens at least with the AIX C compiler.
6015 : > sub/conftest.c
6016 for i in 1 2 3 4 5 6; do
6017 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6018 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6019 # Solaris 10 /bin/sh.
6020 echo '/* dummy */' > sub/conftst$i.h
6021 done
6022 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6023
6024 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6025 # mode. It turns out that the SunPro C++ compiler does not properly
6026 # handle '-M -o', and we need to detect this. Also, some Intel
6027 # versions had trouble with output in subdirs.
6028 am__obj=sub/conftest.${OBJEXT-o}
6029 am__minus_obj="-o $am__obj"
6030 case $depmode in
6031 gcc)
6032 # This depmode causes a compiler race in universal mode.
6033 test "$am__universal" = false || continue
6034 ;;
6035 nosideeffect)
6036 # After this tag, mechanisms are not by side-effect, so they'll
6037 # only be used when explicitly requested.
6038 if test "x$enable_dependency_tracking" = xyes; then
6039 continue
6040 else
6041 break
6042 fi
6043 ;;
6044 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6045 # This compiler won't grok '-c -o', but also, the minuso test has
6046 # not run yet. These depmodes are late enough in the game, and
6047 # so weak that their functioning should not be impacted.
6048 am__obj=conftest.${OBJEXT-o}
6049 am__minus_obj=
6050 ;;
6051 none) break ;;
6052 esac
6053 if depmode=$depmode \
6054 source=sub/conftest.c object=$am__obj \
6055 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6056 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6057 >/dev/null 2>conftest.err &&
6058 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6059 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6060 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6061 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6062 # icc doesn't choke on unknown options, it will just issue warnings
6063 # or remarks (even with -Werror). So we grep stderr for any message
6064 # that says an option was ignored or not supported.
6065 # When given -MP, icc 7.0 and 7.1 complain thus:
6066 # icc: Command line warning: ignoring option '-M'; no argument required
6067 # The diagnosis changed in icc 8.0:
6068 # icc: Command line remark: option '-MP' not supported
6069 if (grep 'ignoring option' conftest.err ||
6070 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6071 am_cv_CC_dependencies_compiler_type=$depmode
6072 break
6073 fi
6074 fi
6075 done
6076
6077 cd ..
6078 rm -rf conftest.dir
6079 else
6080 am_cv_CC_dependencies_compiler_type=none
6081 fi
6082 ;;
6083 esac
6084 fi
6085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6086 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6087 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6088
6089 if
6090 test "x$enable_dependency_tracking" != xno \
6091 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6092 am__fastdepCC_TRUE=
6093 am__fastdepCC_FALSE='#'
6094 else
6095 am__fastdepCC_TRUE='#'
6096 am__fastdepCC_FALSE=
6097 fi
6098
6099
6100
6101 ac_header= ac_cache=
6102 for ac_item in $ac_header_c_list
6103 do
6104 if test $ac_cache; then
6105 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6106 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6107 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6108 fi
6109 ac_header= ac_cache=
6110 elif test $ac_header; then
6111 ac_cache=$ac_item
6112 else
6113 ac_header=$ac_item
6114 fi
6115 done
6116
6117
6118
6119
6120
6121
6122
6123
6124 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6125 then :
6126
6127 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6128
6129 fi
6130
6131
6132
6133
6134
6135
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6137 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6138 if test ${ac_cv_safe_to_define___extensions__+y}
6139 then :
6140 printf %s "(cached) " >&6
6141 else case e in #(
6142 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143 /* end confdefs.h. */
6144
6145 # define __EXTENSIONS__ 1
6146 $ac_includes_default
6147 int
6148 main (void)
6149 {
6150
6151 ;
6152 return 0;
6153 }
6154 _ACEOF
6155 if ac_fn_c_try_compile "$LINENO"
6156 then :
6157 ac_cv_safe_to_define___extensions__=yes
6158 else case e in #(
6159 e) ac_cv_safe_to_define___extensions__=no ;;
6160 esac
6161 fi
6162 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6163 esac
6164 fi
6165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6166 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6167
6168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6169 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6170 if test ${ac_cv_should_define__xopen_source+y}
6171 then :
6172 printf %s "(cached) " >&6
6173 else case e in #(
6174 e) ac_cv_should_define__xopen_source=no
6175 if test $ac_cv_header_wchar_h = yes
6176 then :
6177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6178 /* end confdefs.h. */
6179
6180 #include <wchar.h>
6181 mbstate_t x;
6182 int
6183 main (void)
6184 {
6185
6186 ;
6187 return 0;
6188 }
6189 _ACEOF
6190 if ac_fn_c_try_compile "$LINENO"
6191 then :
6192
6193 else case e in #(
6194 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6195 /* end confdefs.h. */
6196
6197 #define _XOPEN_SOURCE 500
6198 #include <wchar.h>
6199 mbstate_t x;
6200 int
6201 main (void)
6202 {
6203
6204 ;
6205 return 0;
6206 }
6207 _ACEOF
6208 if ac_fn_c_try_compile "$LINENO"
6209 then :
6210 ac_cv_should_define__xopen_source=yes
6211 fi
6212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6213 esac
6214 fi
6215 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6216 fi ;;
6217 esac
6218 fi
6219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6220 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6221
6222 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6223
6224 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6225
6226 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6227
6228 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6229
6230 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6231
6232 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6233
6234 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6235
6236 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6237
6238 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6239
6240 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6241
6242 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
6243
6244 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6245
6246 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6247
6248 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6249
6250 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6251
6252 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6253
6254 if test $ac_cv_header_minix_config_h = yes
6255 then :
6256 MINIX=yes
6257 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6258
6259 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6260
6261 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6262
6263 else case e in #(
6264 e) MINIX= ;;
6265 esac
6266 fi
6267 if test $ac_cv_safe_to_define___extensions__ = yes
6268 then :
6269 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6270
6271 fi
6272 if test $ac_cv_should_define__xopen_source = yes
6273 then :
6274 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6275
6276 fi
6277
6278
6279
6280 # Make sure we can run config.sub.
6281 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6282 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6283
6284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6285 printf %s "checking build system type... " >&6; }
6286 if test ${ac_cv_build+y}
6287 then :
6288 printf %s "(cached) " >&6
6289 else case e in #(
6290 e) ac_build_alias=$build_alias
6291 test "x$ac_build_alias" = x &&
6292 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6293 test "x$ac_build_alias" = x &&
6294 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6295 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6296 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6297 ;;
6298 esac
6299 fi
6300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6301 printf "%s\n" "$ac_cv_build" >&6; }
6302 case $ac_cv_build in
6303 *-*-*) ;;
6304 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6305 esac
6306 build=$ac_cv_build
6307 ac_save_IFS=$IFS; IFS='-'
6308 set x $ac_cv_build
6309 shift
6310 build_cpu=$1
6311 build_vendor=$2
6312 shift; shift
6313 # Remember, the first character of IFS is used to create $*,
6314 # except with old shells:
6315 build_os=$*
6316 IFS=$ac_save_IFS
6317 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6318
6319
6320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6321 printf %s "checking host system type... " >&6; }
6322 if test ${ac_cv_host+y}
6323 then :
6324 printf %s "(cached) " >&6
6325 else case e in #(
6326 e) if test "x$host_alias" = x; then
6327 ac_cv_host=$ac_cv_build
6328 else
6329 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6330 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6331 fi
6332 ;;
6333 esac
6334 fi
6335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6336 printf "%s\n" "$ac_cv_host" >&6; }
6337 case $ac_cv_host in
6338 *-*-*) ;;
6339 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6340 esac
6341 host=$ac_cv_host
6342 ac_save_IFS=$IFS; IFS='-'
6343 set x $ac_cv_host
6344 shift
6345 host_cpu=$1
6346 host_vendor=$2
6347 shift; shift
6348 # Remember, the first character of IFS is used to create $*,
6349 # except with old shells:
6350 host_os=$*
6351 IFS=$ac_save_IFS
6352 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6353
6354
6355
6356
6357
6358
6359 case "$host_os" in
6360 openbsd*)
6361
6362 printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h
6363
6364 ;;
6365 esac
6366
6367
6368
6369 ac_ext=c
6370 ac_cpp='$CPP $CPPFLAGS'
6371 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6372 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6373 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6375 printf %s "checking how to run the C preprocessor... " >&6; }
6376 # On Suns, sometimes $CPP names a directory.
6377 if test -n "$CPP" && test -d "$CPP"; then
6378 CPP=
6379 fi
6380 if test -z "$CPP"; then
6381 if test ${ac_cv_prog_CPP+y}
6382 then :
6383 printf %s "(cached) " >&6
6384 else case e in #(
6385 e) # Double quotes because $CC needs to be expanded
6386 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6387 do
6388 ac_preproc_ok=false
6389 for ac_c_preproc_warn_flag in '' yes
6390 do
6391 # Use a header file that comes with gcc, so configuring glibc
6392 # with a fresh cross-compiler works.
6393 # On the NeXT, cc -E runs the code through the compiler's parser,
6394 # not just through cpp. "Syntax error" is here to catch this case.
6395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6396 /* end confdefs.h. */
6397 #include <limits.h>
6398 Syntax error
6399 _ACEOF
6400 if ac_fn_c_try_cpp "$LINENO"
6401 then :
6402
6403 else case e in #(
6404 e) # Broken: fails on valid input.
6405 continue ;;
6406 esac
6407 fi
6408 rm -f conftest.err conftest.i conftest.$ac_ext
6409
6410 # OK, works on sane cases. Now check whether nonexistent headers
6411 # can be detected and how.
6412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6413 /* end confdefs.h. */
6414 #include <ac_nonexistent.h>
6415 _ACEOF
6416 if ac_fn_c_try_cpp "$LINENO"
6417 then :
6418 # Broken: success on invalid input.
6419 continue
6420 else case e in #(
6421 e) # Passes both tests.
6422 ac_preproc_ok=:
6423 break ;;
6424 esac
6425 fi
6426 rm -f conftest.err conftest.i conftest.$ac_ext
6427
6428 done
6429 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6430 rm -f conftest.i conftest.err conftest.$ac_ext
6431 if $ac_preproc_ok
6432 then :
6433 break
6434 fi
6435
6436 done
6437 ac_cv_prog_CPP=$CPP
6438 ;;
6439 esac
6440 fi
6441 CPP=$ac_cv_prog_CPP
6442 else
6443 ac_cv_prog_CPP=$CPP
6444 fi
6445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6446 printf "%s\n" "$CPP" >&6; }
6447 ac_preproc_ok=false
6448 for ac_c_preproc_warn_flag in '' yes
6449 do
6450 # Use a header file that comes with gcc, so configuring glibc
6451 # with a fresh cross-compiler works.
6452 # On the NeXT, cc -E runs the code through the compiler's parser,
6453 # not just through cpp. "Syntax error" is here to catch this case.
6454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* end confdefs.h. */
6456 #include <limits.h>
6457 Syntax error
6458 _ACEOF
6459 if ac_fn_c_try_cpp "$LINENO"
6460 then :
6461
6462 else case e in #(
6463 e) # Broken: fails on valid input.
6464 continue ;;
6465 esac
6466 fi
6467 rm -f conftest.err conftest.i conftest.$ac_ext
6468
6469 # OK, works on sane cases. Now check whether nonexistent headers
6470 # can be detected and how.
6471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6472 /* end confdefs.h. */
6473 #include <ac_nonexistent.h>
6474 _ACEOF
6475 if ac_fn_c_try_cpp "$LINENO"
6476 then :
6477 # Broken: success on invalid input.
6478 continue
6479 else case e in #(
6480 e) # Passes both tests.
6481 ac_preproc_ok=:
6482 break ;;
6483 esac
6484 fi
6485 rm -f conftest.err conftest.i conftest.$ac_ext
6486
6487 done
6488 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6489 rm -f conftest.i conftest.err conftest.$ac_ext
6490 if $ac_preproc_ok
6491 then :
6492
6493 else case e in #(
6494 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
6495 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
6496 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6497 See 'config.log' for more details" "$LINENO" 5; } ;;
6498 esac
6499 fi
6500
6501 ac_ext=c
6502 ac_cpp='$CPP $CPPFLAGS'
6503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6506
6507
6508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
6509 printf %s "checking for egrep -e... " >&6; }
6510 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
6511 then :
6512 printf %s "(cached) " >&6
6513 else case e in #(
6514 e) if test -z "$EGREP_TRADITIONAL"; then
6515 ac_path_EGREP_TRADITIONAL_found=false
6516 # Loop through the user's path and test for each of PROGNAME-LIST
6517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6518 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6519 do
6520 IFS=$as_save_IFS
6521 case $as_dir in #(((
6522 '') as_dir=./ ;;
6523 */) ;;
6524 *) as_dir=$as_dir/ ;;
6525 esac
6526 for ac_prog in grep ggrep
6527 do
6528 for ac_exec_ext in '' $ac_executable_extensions; do
6529 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
6530 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
6531 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
6532 # Check for GNU $ac_path_EGREP_TRADITIONAL
6533 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
6534 *GNU*)
6535 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
6536 #(
6537 *)
6538 ac_count=0
6539 printf %s 0123456789 >"conftest.in"
6540 while :
6541 do
6542 cat "conftest.in" "conftest.in" >"conftest.tmp"
6543 mv "conftest.tmp" "conftest.in"
6544 cp "conftest.in" "conftest.nl"
6545 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
6546 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6548 as_fn_arith $ac_count + 1 && ac_count=$as_val
6549 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
6550 # Best one so far, save it but keep looking for a better one
6551 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
6552 ac_path_EGREP_TRADITIONAL_max=$ac_count
6553 fi
6554 # 10*(2^10) chars as input seems more than enough
6555 test $ac_count -gt 10 && break
6556 done
6557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6558 esac
6559
6560 $ac_path_EGREP_TRADITIONAL_found && break 3
6561 done
6562 done
6563 done
6564 IFS=$as_save_IFS
6565 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
6566 :
6567 fi
6568 else
6569 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
6570 fi
6571
6572 if test "$ac_cv_path_EGREP_TRADITIONAL"
6573 then :
6574 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
6575 else case e in #(
6576 e) if test -z "$EGREP_TRADITIONAL"; then
6577 ac_path_EGREP_TRADITIONAL_found=false
6578 # Loop through the user's path and test for each of PROGNAME-LIST
6579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6580 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6581 do
6582 IFS=$as_save_IFS
6583 case $as_dir in #(((
6584 '') as_dir=./ ;;
6585 */) ;;
6586 *) as_dir=$as_dir/ ;;
6587 esac
6588 for ac_prog in egrep
6589 do
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
6592 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
6593 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
6594 # Check for GNU $ac_path_EGREP_TRADITIONAL
6595 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
6596 *GNU*)
6597 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
6598 #(
6599 *)
6600 ac_count=0
6601 printf %s 0123456789 >"conftest.in"
6602 while :
6603 do
6604 cat "conftest.in" "conftest.in" >"conftest.tmp"
6605 mv "conftest.tmp" "conftest.in"
6606 cp "conftest.in" "conftest.nl"
6607 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
6608 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6609 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6610 as_fn_arith $ac_count + 1 && ac_count=$as_val
6611 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
6612 # Best one so far, save it but keep looking for a better one
6613 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
6614 ac_path_EGREP_TRADITIONAL_max=$ac_count
6615 fi
6616 # 10*(2^10) chars as input seems more than enough
6617 test $ac_count -gt 10 && break
6618 done
6619 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6620 esac
6621
6622 $ac_path_EGREP_TRADITIONAL_found && break 3
6623 done
6624 done
6625 done
6626 IFS=$as_save_IFS
6627 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
6628 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6629 fi
6630 else
6631 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
6632 fi
6633 ;;
6634 esac
6635 fi ;;
6636 esac
6637 fi
6638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
6639 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
6640 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
6641
6642
6643
6644
6645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6646 printf %s "checking for Minix Amsterdam compiler... " >&6; }
6647 if test ${gl_cv_c_amsterdam_compiler+y}
6648 then :
6649 printf %s "(cached) " >&6
6650 else case e in #(
6651 e)
6652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6653 /* end confdefs.h. */
6654
6655 #ifdef __ACK__
6656 Amsterdam
6657 #endif
6658
6659 _ACEOF
6660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6661 $EGREP_TRADITIONAL "Amsterdam" >/dev/null 2>&1
6662 then :
6663 gl_cv_c_amsterdam_compiler=yes
6664 else case e in #(
6665 e) gl_cv_c_amsterdam_compiler=no ;;
6666 esac
6667 fi
6668 rm -rf conftest*
6669
6670 ;;
6671 esac
6672 fi
6673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6674 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
6675
6676 if test $gl_cv_c_amsterdam_compiler = yes; then
6677 if test -z "$AR"; then
6678 AR='cc -c.a'
6679 fi
6680 if test -z "$ARFLAGS"; then
6681 ARFLAGS='-o'
6682 fi
6683 else
6684 :
6685 fi
6686
6687 if test -n "$ac_tool_prefix"; then
6688 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6689 set dummy ${ac_tool_prefix}ar; ac_word=$2
6690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 printf %s "checking for $ac_word... " >&6; }
6692 if test ${ac_cv_prog_AR+y}
6693 then :
6694 printf %s "(cached) " >&6
6695 else case e in #(
6696 e) if test -n "$AR"; then
6697 ac_cv_prog_AR="$AR" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702 IFS=$as_save_IFS
6703 case $as_dir in #(((
6704 '') as_dir=./ ;;
6705 */) ;;
6706 *) as_dir=$as_dir/ ;;
6707 esac
6708 for ac_exec_ext in '' $ac_executable_extensions; do
6709 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6710 ac_cv_prog_AR="${ac_tool_prefix}ar"
6711 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6712 break 2
6713 fi
6714 done
6715 done
6716 IFS=$as_save_IFS
6717
6718 fi ;;
6719 esac
6720 fi
6721 AR=$ac_cv_prog_AR
6722 if test -n "$AR"; then
6723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6724 printf "%s\n" "$AR" >&6; }
6725 else
6726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6727 printf "%s\n" "no" >&6; }
6728 fi
6729
6730
6731 fi
6732 if test -z "$ac_cv_prog_AR"; then
6733 ac_ct_AR=$AR
6734 # Extract the first word of "ar", so it can be a program name with args.
6735 set dummy ar; ac_word=$2
6736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6737 printf %s "checking for $ac_word... " >&6; }
6738 if test ${ac_cv_prog_ac_ct_AR+y}
6739 then :
6740 printf %s "(cached) " >&6
6741 else case e in #(
6742 e) if test -n "$ac_ct_AR"; then
6743 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6744 else
6745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6746 for as_dir in $PATH
6747 do
6748 IFS=$as_save_IFS
6749 case $as_dir in #(((
6750 '') as_dir=./ ;;
6751 */) ;;
6752 *) as_dir=$as_dir/ ;;
6753 esac
6754 for ac_exec_ext in '' $ac_executable_extensions; do
6755 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6756 ac_cv_prog_ac_ct_AR="ar"
6757 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6758 break 2
6759 fi
6760 done
6761 done
6762 IFS=$as_save_IFS
6763
6764 fi ;;
6765 esac
6766 fi
6767 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6768 if test -n "$ac_ct_AR"; then
6769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6770 printf "%s\n" "$ac_ct_AR" >&6; }
6771 else
6772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6773 printf "%s\n" "no" >&6; }
6774 fi
6775
6776 if test "x$ac_ct_AR" = x; then
6777 AR="ar"
6778 else
6779 case $cross_compiling:$ac_tool_warned in
6780 yes:)
6781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6782 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6783 ac_tool_warned=yes ;;
6784 esac
6785 AR=$ac_ct_AR
6786 fi
6787 else
6788 AR="$ac_cv_prog_AR"
6789 fi
6790
6791 if test -z "$ARFLAGS"; then
6792 ARFLAGS='cr'
6793 fi
6794
6795
6796
6797 if test -z "$RANLIB"; then
6798 if test $gl_cv_c_amsterdam_compiler = yes; then
6799 RANLIB=':'
6800 else
6801 if test -n "$ac_tool_prefix"; then
6802 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6803 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6805 printf %s "checking for $ac_word... " >&6; }
6806 if test ${ac_cv_prog_RANLIB+y}
6807 then :
6808 printf %s "(cached) " >&6
6809 else case e in #(
6810 e) if test -n "$RANLIB"; then
6811 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6812 else
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6814 for as_dir in $PATH
6815 do
6816 IFS=$as_save_IFS
6817 case $as_dir in #(((
6818 '') as_dir=./ ;;
6819 */) ;;
6820 *) as_dir=$as_dir/ ;;
6821 esac
6822 for ac_exec_ext in '' $ac_executable_extensions; do
6823 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6824 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6825 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6826 break 2
6827 fi
6828 done
6829 done
6830 IFS=$as_save_IFS
6831
6832 fi ;;
6833 esac
6834 fi
6835 RANLIB=$ac_cv_prog_RANLIB
6836 if test -n "$RANLIB"; then
6837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6838 printf "%s\n" "$RANLIB" >&6; }
6839 else
6840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6841 printf "%s\n" "no" >&6; }
6842 fi
6843
6844
6845 fi
6846 if test -z "$ac_cv_prog_RANLIB"; then
6847 ac_ct_RANLIB=$RANLIB
6848 # Extract the first word of "ranlib", so it can be a program name with args.
6849 set dummy ranlib; ac_word=$2
6850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6851 printf %s "checking for $ac_word... " >&6; }
6852 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6853 then :
6854 printf %s "(cached) " >&6
6855 else case e in #(
6856 e) if test -n "$ac_ct_RANLIB"; then
6857 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6858 else
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6860 for as_dir in $PATH
6861 do
6862 IFS=$as_save_IFS
6863 case $as_dir in #(((
6864 '') as_dir=./ ;;
6865 */) ;;
6866 *) as_dir=$as_dir/ ;;
6867 esac
6868 for ac_exec_ext in '' $ac_executable_extensions; do
6869 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6870 ac_cv_prog_ac_ct_RANLIB="ranlib"
6871 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6872 break 2
6873 fi
6874 done
6875 done
6876 IFS=$as_save_IFS
6877
6878 fi ;;
6879 esac
6880 fi
6881 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6882 if test -n "$ac_ct_RANLIB"; then
6883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6884 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6885 else
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6887 printf "%s\n" "no" >&6; }
6888 fi
6889
6890 if test "x$ac_ct_RANLIB" = x; then
6891 RANLIB=":"
6892 else
6893 case $cross_compiling:$ac_tool_warned in
6894 yes:)
6895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6896 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6897 ac_tool_warned=yes ;;
6898 esac
6899 RANLIB=$ac_ct_RANLIB
6900 fi
6901 else
6902 RANLIB="$ac_cv_prog_RANLIB"
6903 fi
6904
6905 fi
6906 fi
6907
6908
6909
6910
6911 printf "%s\n" "#define _LINUX_SOURCE_COMPAT 1" >>confdefs.h
6912
6913
6914 # Check whether --enable-largefile was given.
6915 if test ${enable_largefile+y}
6916 then :
6917 enableval=$enable_largefile;
6918 fi
6919 if test "$enable_largefile,$enable_year2038" != no,no
6920 then :
6921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to support large files" >&5
6922 printf %s "checking for $CC option to support large files... " >&6; }
6923 if test ${ac_cv_sys_largefile_opts+y}
6924 then :
6925 printf %s "(cached) " >&6
6926 else case e in #(
6927 e) ac_save_CPPFLAGS=$CPPFLAGS
6928 ac_opt_found=no
6929 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
6930 if test x"$ac_opt" != x"none needed"
6931 then :
6932 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
6933 fi
6934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6935 /* end confdefs.h. */
6936 #include <sys/types.h>
6937 #ifndef FTYPE
6938 # define FTYPE off_t
6939 #endif
6940 /* Check that FTYPE can represent 2**63 - 1 correctly.
6941 We can't simply define LARGE_FTYPE to be 9223372036854775807,
6942 since some C++ compilers masquerading as C compilers
6943 incorrectly reject 9223372036854775807. */
6944 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
6945 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
6946 && LARGE_FTYPE % 2147483647 == 1)
6947 ? 1 : -1];
6948 int
6949 main (void)
6950 {
6951
6952 ;
6953 return 0;
6954 }
6955 _ACEOF
6956 if ac_fn_c_try_compile "$LINENO"
6957 then :
6958 if test x"$ac_opt" = x"none needed"
6959 then :
6960 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
6961 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
6962 if ac_fn_c_try_compile "$LINENO"
6963 then :
6964
6965 else case e in #(
6966 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
6967 if ac_fn_c_try_compile "$LINENO"
6968 then :
6969 ac_opt='-D_FILE_OFFSET_BITS=64'
6970 fi
6971 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
6972 esac
6973 fi
6974 rm -f core conftest.err conftest.$ac_objext conftest.beam
6975 fi
6976 ac_cv_sys_largefile_opts=$ac_opt
6977 ac_opt_found=yes
6978 fi
6979 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6980 test $ac_opt_found = no || break
6981 done
6982 CPPFLAGS=$ac_save_CPPFLAGS
6983
6984
6985 if test $ac_opt_found != yes; then
6986 case $host_os in #(
6987 mingw* | windows*) :
6988 ac_cv_sys_largefile_opts="supported through gnulib"
6989 ac_opt_found=yes
6990 ;; #(
6991 *) :
6992 ;;
6993 esac
6994 fi
6995
6996 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
6997 esac
6998 fi
6999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
7000 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
7001
7002 ac_have_largefile=yes
7003 case $ac_cv_sys_largefile_opts in #(
7004 "none needed") :
7005 ;; #(
7006 "supported through gnulib") :
7007 ;; #(
7008 "support not detected") :
7009 ac_have_largefile=no ;; #(
7010 "-D_FILE_OFFSET_BITS=64") :
7011
7012 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
7013 ;; #(
7014 "-D_LARGE_FILES=1") :
7015
7016 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
7017 ;; #(
7018 *) :
7019 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
7020 esac
7021
7022 if test "$enable_year2038" != no
7023 then :
7024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to support timestamps after 2038" >&5
7025 printf %s "checking for $CC option to support timestamps after 2038... " >&6; }
7026 if test ${ac_cv_sys_year2038_opts+y}
7027 then :
7028 printf %s "(cached) " >&6
7029 else case e in #(
7030 e) ac_save_CPPFLAGS="$CPPFLAGS"
7031 ac_opt_found=no
7032 for ac_opt in "none needed" "-D_TIME_BITS=64" "-D__MINGW_USE_VC2005_COMPAT" "-U_USE_32_BIT_TIME_T -D__MINGW_USE_VC2005_COMPAT"; do
7033 if test x"$ac_opt" != x"none needed"
7034 then :
7035 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
7036 fi
7037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* end confdefs.h. */
7039
7040 #include <time.h>
7041 /* Check that time_t can represent 2**32 - 1 correctly. */
7042 #define LARGE_TIME_T \\
7043 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
7044 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
7045 && LARGE_TIME_T % 65537 == 0)
7046 ? 1 : -1];
7047
7048 int
7049 main (void)
7050 {
7051
7052 ;
7053 return 0;
7054 }
7055 _ACEOF
7056 if ac_fn_c_try_compile "$LINENO"
7057 then :
7058 ac_cv_sys_year2038_opts="$ac_opt"
7059 ac_opt_found=yes
7060 fi
7061 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7062 test $ac_opt_found = no || break
7063 done
7064 CPPFLAGS="$ac_save_CPPFLAGS"
7065 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
7066 esac
7067 fi
7068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
7069 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
7070
7071 ac_have_year2038=yes
7072 case $ac_cv_sys_year2038_opts in #(
7073 "none needed") :
7074 ;; #(
7075 "support not detected") :
7076 ac_have_year2038=no ;; #(
7077 "-D_TIME_BITS=64") :
7078
7079 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
7080 ;; #(
7081 "-D__MINGW_USE_VC2005_COMPAT") :
7082
7083 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
7084 ;; #(
7085 "-U_USE_32_BIT_TIME_T"*) :
7086 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7087 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7088 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
7089 will stop working after mid-January 2038. Remove
7090 _USE_32BIT_TIME_T from the compiler flags.
7091 See 'config.log' for more details" "$LINENO" 5; } ;; #(
7092 *) :
7093 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
7094 esac
7095
7096 fi
7097
7098 fi
7099
7100
7101 # Pre-early section.
7102
7103
7104
7105 # Code from module absolute-header:
7106 # Code from module alloca-opt:
7107 # Code from module assert-h:
7108 # Code from module basename-lgpl:
7109 # Code from module bool:
7110 # Code from module c99:
7111 # Code from module cloexec:
7112 # Code from module close:
7113 # Code from module double-slash-root:
7114 # Code from module dup2:
7115 # Code from module errno-h:
7116 # Code from module error:
7117 # Code from module error-h:
7118 # Code from module extensions:
7119 # This is actually already done in the pre-early phase.
7120 # AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
7121 # Code from module extensions-aix:
7122
7123 # Code from module extern-inline:
7124 # Code from module fcntl:
7125 # Code from module fcntl-h:
7126 # Code from module fd-hook:
7127 # Code from module filename:
7128 # Code from module fseterr:
7129 # Code from module fstat:
7130 # Code from module gen-header:
7131 # Code from module getdelim:
7132 # Code from module getdtablesize:
7133 # Code from module getline:
7134 # Code from module getprogname:
7135 # Code from module gettext-h:
7136 # Code from module gnulib-i18n:
7137 # Code from module idx:
7138 # Code from module include_next:
7139 # Code from module intprops:
7140 # Code from module largefile:
7141
7142 # Code from module limits-h:
7143 # Code from module locale-h:
7144 # Code from module lstat:
7145 # Code from module malloca:
7146 # Code from module msvc-inval:
7147 # Code from module msvc-nothrow:
7148 # Code from module multiarch:
7149 # Code from module open:
7150 # Code from module pathmax:
7151 # Code from module snippet/_Noreturn:
7152 # Code from module snippet/arg-nonnull:
7153 # Code from module snippet/c++defs:
7154 # Code from module snippet/warn-on-use:
7155 # Code from module ssize_t:
7156 # Code from module stat:
7157 # Code from module stat-time:
7158 # Code from module std-gnu11:
7159 # Code from module stdckdint-h:
7160 # Code from module stddef-h:
7161 # Code from module stdint-h:
7162 # Code from module stdio-h:
7163
7164
7165 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
7166
7167
7168 # Code from module stdio-windows:
7169 # Code from module stdlib-h:
7170 # Code from module strerror:
7171 # Code from module strerror-override:
7172 # Code from module string-h:
7173 # Code from module stringeq:
7174 # Code from module sys_stat-h:
7175 # Code from module sys_types-h:
7176
7177 # Code from module time-h:
7178 # Code from module unistd-h:
7179 # Code from module vararrays:
7180 # Code from module xalloc-oversized:
7181
7182
7183 ac_ext=c
7184 ac_cpp='$CPP $CPPFLAGS'
7185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7189 printf %s "checking how to run the C preprocessor... " >&6; }
7190 # On Suns, sometimes $CPP names a directory.
7191 if test -n "$CPP" && test -d "$CPP"; then
7192 CPP=
7193 fi
7194 if test -z "$CPP"; then
7195 if test ${ac_cv_prog_CPP+y}
7196 then :
7197 printf %s "(cached) " >&6
7198 else case e in #(
7199 e) # Double quotes because $CC needs to be expanded
7200 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7201 do
7202 ac_preproc_ok=false
7203 for ac_c_preproc_warn_flag in '' yes
7204 do
7205 # Use a header file that comes with gcc, so configuring glibc
7206 # with a fresh cross-compiler works.
7207 # On the NeXT, cc -E runs the code through the compiler's parser,
7208 # not just through cpp. "Syntax error" is here to catch this case.
7209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7210 /* end confdefs.h. */
7211 #include <limits.h>
7212 Syntax error
7213 _ACEOF
7214 if ac_fn_c_try_cpp "$LINENO"
7215 then :
7216
7217 else case e in #(
7218 e) # Broken: fails on valid input.
7219 continue ;;
7220 esac
7221 fi
7222 rm -f conftest.err conftest.i conftest.$ac_ext
7223
7224 # OK, works on sane cases. Now check whether nonexistent headers
7225 # can be detected and how.
7226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7227 /* end confdefs.h. */
7228 #include <ac_nonexistent.h>
7229 _ACEOF
7230 if ac_fn_c_try_cpp "$LINENO"
7231 then :
7232 # Broken: success on invalid input.
7233 continue
7234 else case e in #(
7235 e) # Passes both tests.
7236 ac_preproc_ok=:
7237 break ;;
7238 esac
7239 fi
7240 rm -f conftest.err conftest.i conftest.$ac_ext
7241
7242 done
7243 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7244 rm -f conftest.i conftest.err conftest.$ac_ext
7245 if $ac_preproc_ok
7246 then :
7247 break
7248 fi
7249
7250 done
7251 ac_cv_prog_CPP=$CPP
7252 ;;
7253 esac
7254 fi
7255 CPP=$ac_cv_prog_CPP
7256 else
7257 ac_cv_prog_CPP=$CPP
7258 fi
7259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7260 printf "%s\n" "$CPP" >&6; }
7261 ac_preproc_ok=false
7262 for ac_c_preproc_warn_flag in '' yes
7263 do
7264 # Use a header file that comes with gcc, so configuring glibc
7265 # with a fresh cross-compiler works.
7266 # On the NeXT, cc -E runs the code through the compiler's parser,
7267 # not just through cpp. "Syntax error" is here to catch this case.
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7270 #include <limits.h>
7271 Syntax error
7272 _ACEOF
7273 if ac_fn_c_try_cpp "$LINENO"
7274 then :
7275
7276 else case e in #(
7277 e) # Broken: fails on valid input.
7278 continue ;;
7279 esac
7280 fi
7281 rm -f conftest.err conftest.i conftest.$ac_ext
7282
7283 # OK, works on sane cases. Now check whether nonexistent headers
7284 # can be detected and how.
7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7287 #include <ac_nonexistent.h>
7288 _ACEOF
7289 if ac_fn_c_try_cpp "$LINENO"
7290 then :
7291 # Broken: success on invalid input.
7292 continue
7293 else case e in #(
7294 e) # Passes both tests.
7295 ac_preproc_ok=:
7296 break ;;
7297 esac
7298 fi
7299 rm -f conftest.err conftest.i conftest.$ac_ext
7300
7301 done
7302 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7303 rm -f conftest.i conftest.err conftest.$ac_ext
7304 if $ac_preproc_ok
7305 then :
7306
7307 else case e in #(
7308 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7309 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7310 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7311 See 'config.log' for more details" "$LINENO" 5; } ;;
7312 esac
7313 fi
7314
7315 ac_ext=c
7316 ac_cpp='$CPP $CPPFLAGS'
7317 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7318 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7319 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7320
7321
7322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7323 printf %s "checking whether ln -s works... " >&6; }
7324 LN_S=$as_ln_s
7325 if test "$LN_S" = "ln -s"; then
7326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7327 printf "%s\n" "yes" >&6; }
7328 else
7329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7330 printf "%s\n" "no, using $LN_S" >&6; }
7331 fi
7332
7333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7334 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7335 set x ${MAKE-make}
7336 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7337 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
7338 then :
7339 printf %s "(cached) " >&6
7340 else case e in #(
7341 e) cat >conftest.make <<\_ACEOF
7342 SHELL = /bin/sh
7343 all:
7344 @echo '@@@%%%=$(MAKE)=@@@%%%'
7345 _ACEOF
7346 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7347 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7348 *@@@%%%=?*=@@@%%%*)
7349 eval ac_cv_prog_make_${ac_make}_set=yes;;
7350 *)
7351 eval ac_cv_prog_make_${ac_make}_set=no;;
7352 esac
7353 rm -f conftest.make ;;
7354 esac
7355 fi
7356 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
7357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7358 printf "%s\n" "yes" >&6; }
7359 SET_MAKE=
7360 else
7361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 printf "%s\n" "no" >&6; }
7363 SET_MAKE="MAKE=${MAKE-make}"
7364 fi
7365
7366 if test -n "$ac_tool_prefix"; then
7367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 printf %s "checking for $ac_word... " >&6; }
7371 if test ${ac_cv_prog_RANLIB+y}
7372 then :
7373 printf %s "(cached) " >&6
7374 else case e in #(
7375 e) if test -n "$RANLIB"; then
7376 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7377 else
7378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 for as_dir in $PATH
7380 do
7381 IFS=$as_save_IFS
7382 case $as_dir in #(((
7383 '') as_dir=./ ;;
7384 */) ;;
7385 *) as_dir=$as_dir/ ;;
7386 esac
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7389 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7390 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7391 break 2
7392 fi
7393 done
7394 done
7395 IFS=$as_save_IFS
7396
7397 fi ;;
7398 esac
7399 fi
7400 RANLIB=$ac_cv_prog_RANLIB
7401 if test -n "$RANLIB"; then
7402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7403 printf "%s\n" "$RANLIB" >&6; }
7404 else
7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7406 printf "%s\n" "no" >&6; }
7407 fi
7408
7409
7410 fi
7411 if test -z "$ac_cv_prog_RANLIB"; then
7412 ac_ct_RANLIB=$RANLIB
7413 # Extract the first word of "ranlib", so it can be a program name with args.
7414 set dummy ranlib; ac_word=$2
7415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7416 printf %s "checking for $ac_word... " >&6; }
7417 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7418 then :
7419 printf %s "(cached) " >&6
7420 else case e in #(
7421 e) if test -n "$ac_ct_RANLIB"; then
7422 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7423 else
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7426 do
7427 IFS=$as_save_IFS
7428 case $as_dir in #(((
7429 '') as_dir=./ ;;
7430 */) ;;
7431 *) as_dir=$as_dir/ ;;
7432 esac
7433 for ac_exec_ext in '' $ac_executable_extensions; do
7434 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7435 ac_cv_prog_ac_ct_RANLIB="ranlib"
7436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7437 break 2
7438 fi
7439 done
7440 done
7441 IFS=$as_save_IFS
7442
7443 fi ;;
7444 esac
7445 fi
7446 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7447 if test -n "$ac_ct_RANLIB"; then
7448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7449 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7450 else
7451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 printf "%s\n" "no" >&6; }
7453 fi
7454
7455 if test "x$ac_ct_RANLIB" = x; then
7456 RANLIB=":"
7457 else
7458 case $cross_compiling:$ac_tool_warned in
7459 yes:)
7460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7461 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7462 ac_tool_warned=yes ;;
7463 esac
7464 RANLIB=$ac_ct_RANLIB
7465 fi
7466 else
7467 RANLIB="$ac_cv_prog_RANLIB"
7468 fi
7469
7470 # Extract the first word of "xmlto", so it can be a program name with args.
7471 set dummy xmlto; ac_word=$2
7472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7473 printf %s "checking for $ac_word... " >&6; }
7474 if test ${ac_cv_path_XMLTO+y}
7475 then :
7476 printf %s "(cached) " >&6
7477 else case e in #(
7478 e) case $XMLTO in
7479 [\\/]* | ?:[\\/]*)
7480 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
7481 ;;
7482 *)
7483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7484 for as_dir in $PATH
7485 do
7486 IFS=$as_save_IFS
7487 case $as_dir in #(((
7488 '') as_dir=./ ;;
7489 */) ;;
7490 *) as_dir=$as_dir/ ;;
7491 esac
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7494 ac_cv_path_XMLTO="$as_dir$ac_word$ac_exec_ext"
7495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7496 break 2
7497 fi
7498 done
7499 done
7500 IFS=$as_save_IFS
7501
7502 ;;
7503 esac ;;
7504 esac
7505 fi
7506 XMLTO=$ac_cv_path_XMLTO
7507 if test -n "$XMLTO"; then
7508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
7509 printf "%s\n" "$XMLTO" >&6; }
7510 else
7511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 printf "%s\n" "no" >&6; }
7513 fi
7514
7515
7516 if test x$XMLTO != x; then
7517 HAVE_XMLTO_TRUE=
7518 HAVE_XMLTO_FALSE='#'
7519 else
7520 HAVE_XMLTO_TRUE='#'
7521 HAVE_XMLTO_FALSE=
7522 fi
7523
7524 if test x$XMLTO = x; then
7525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not available so not building docs" >&5
7526 printf "%s\n" "$as_me: WARNING: xmlto not available so not building docs" >&2;}
7527 fi
7528
7529 for ac_prog in perl perl5
7530 do
7531 # Extract the first word of "$ac_prog", so it can be a program name with args.
7532 set dummy $ac_prog; ac_word=$2
7533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 printf %s "checking for $ac_word... " >&6; }
7535 if test ${ac_cv_path_PERL+y}
7536 then :
7537 printf %s "(cached) " >&6
7538 else case e in #(
7539 e) case $PERL in
7540 [\\/]* | ?:[\\/]*)
7541 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7542 ;;
7543 *)
7544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7545 for as_dir in $PATH
7546 do
7547 IFS=$as_save_IFS
7548 case $as_dir in #(((
7549 '') as_dir=./ ;;
7550 */) ;;
7551 *) as_dir=$as_dir/ ;;
7552 esac
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7555 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
7556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7557 break 2
7558 fi
7559 done
7560 done
7561 IFS=$as_save_IFS
7562
7563 ;;
7564 esac ;;
7565 esac
7566 fi
7567 PERL=$ac_cv_path_PERL
7568 if test -n "$PERL"; then
7569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7570 printf "%s\n" "$PERL" >&6; }
7571 else
7572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7573 printf "%s\n" "no" >&6; }
7574 fi
7575
7576
7577 test -n "$PERL" && break
7578 done
7579
7580
7581 for ac_prog in sensible-editor editor vim vi
7582 do
7583 # Extract the first word of "$ac_prog", so it can be a program name with args.
7584 set dummy $ac_prog; ac_word=$2
7585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7586 printf %s "checking for $ac_word... " >&6; }
7587 if test ${ac_cv_prog_DEFAULT_EDITOR+y}
7588 then :
7589 printf %s "(cached) " >&6
7590 else case e in #(
7591 e) if test -n "$DEFAULT_EDITOR"; then
7592 ac_cv_prog_DEFAULT_EDITOR="$DEFAULT_EDITOR" # Let the user override the test.
7593 else
7594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7595 for as_dir in $PATH
7596 do
7597 IFS=$as_save_IFS
7598 case $as_dir in #(((
7599 '') as_dir=./ ;;
7600 */) ;;
7601 *) as_dir=$as_dir/ ;;
7602 esac
7603 for ac_exec_ext in '' $ac_executable_extensions; do
7604 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7605 ac_cv_prog_DEFAULT_EDITOR="$ac_prog"
7606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7607 break 2
7608 fi
7609 done
7610 done
7611 IFS=$as_save_IFS
7612
7613 fi ;;
7614 esac
7615 fi
7616 DEFAULT_EDITOR=$ac_cv_prog_DEFAULT_EDITOR
7617 if test -n "$DEFAULT_EDITOR"; then
7618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DEFAULT_EDITOR" >&5
7619 printf "%s\n" "$DEFAULT_EDITOR" >&6; }
7620 else
7621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622 printf "%s\n" "no" >&6; }
7623 fi
7624
7625
7626 test -n "$DEFAULT_EDITOR" && break
7627 done
7628 test -n "$DEFAULT_EDITOR" || DEFAULT_EDITOR="vi"
7629
7630
7631 CPPFLAGS="$CPPFLAGS -D_GNU_SOURCE"
7632 if test x"$GCC" = xyes; then
7633 CFLAGS="$CFLAGS -Wall"
7634 CPPFLAGS="$CPPFLAGS -D_FORTIFY_SOURCE=2"
7635 fi
7636
7637
7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
7639 printf %s "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7640 if test ${ac_cv_header_sys_wait_h+y}
7641 then :
7642 printf %s "(cached) " >&6
7643 else case e in #(
7644 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7645 /* end confdefs.h. */
7646 #include <sys/types.h>
7647 #include <sys/wait.h>
7648 #ifndef WEXITSTATUS
7649 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7650 #endif
7651 #ifndef WIFEXITED
7652 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7653 #endif
7654
7655 int
7656 main (void)
7657 {
7658 int s;
7659 wait (&s);
7660 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7661 ;
7662 return 0;
7663 }
7664 _ACEOF
7665 if ac_fn_c_try_compile "$LINENO"
7666 then :
7667 ac_cv_header_sys_wait_h=yes
7668 else case e in #(
7669 e) ac_cv_header_sys_wait_h=no ;;
7670 esac
7671 fi
7672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7673 esac
7674 fi
7675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7676 printf "%s\n" "$ac_cv_header_sys_wait_h" >&6; }
7677 if test $ac_cv_header_sys_wait_h = yes; then
7678
7679 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7680
7681 fi
7682
7683 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
7684 if test "x$ac_cv_header_sys_types_h" = xyes
7685 then :
7686 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
7687
7688 fi
7689 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
7690 if test "x$ac_cv_header_unistd_h" = xyes
7691 then :
7692 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
7693
7694 fi
7695 ac_fn_c_check_header_compile "$LINENO" "error.h" "ac_cv_header_error_h" "$ac_includes_default"
7696 if test "x$ac_cv_header_error_h" = xyes
7697 then :
7698 printf "%s\n" "#define HAVE_ERROR_H 1" >>confdefs.h
7699
7700 fi
7701
7702
7703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
7704 printf %s "checking for an ANSI C-conforming const... " >&6; }
7705 if test ${ac_cv_c_const+y}
7706 then :
7707 printf %s "(cached) " >&6
7708 else case e in #(
7709 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7710 /* end confdefs.h. */
7711
7712 int
7713 main (void)
7714 {
7715
7716 #ifndef __cplusplus
7717 /* Ultrix mips cc rejects this sort of thing. */
7718 typedef int charset[2];
7719 const charset cs = { 0, 0 };
7720 /* SunOS 4.1.1 cc rejects this. */
7721 char const *const *pcpcc;
7722 char **ppc;
7723 /* NEC SVR4.0.2 mips cc rejects this. */
7724 struct point {int x, y;};
7725 static struct point const zero = {0,0};
7726 /* IBM XL C 1.02.0.0 rejects this.
7727 It does not let you subtract one const X* pointer from another in
7728 an arm of an if-expression whose if-part is not a constant
7729 expression */
7730 const char *g = "string";
7731 pcpcc = &g + (g ? g-g : 0);
7732 /* HPUX 7.0 cc rejects these. */
7733 ++pcpcc;
7734 ppc = (char**) pcpcc;
7735 pcpcc = (char const *const *) ppc;
7736 { /* SCO 3.2v4 cc rejects this sort of thing. */
7737 char tx;
7738 char *t = &tx;
7739 char const *s = 0 ? (char *) 0 : (char const *) 0;
7740
7741 *t++ = 0;
7742 if (s) return 0;
7743 }
7744 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7745 int x[] = {25, 17};
7746 const int *foo = &x[0];
7747 ++foo;
7748 }
7749 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7750 typedef const int *iptr;
7751 iptr p = 0;
7752 ++p;
7753 }
7754 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
7755 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7756 struct s { int j; const int *ap[3]; } bx;
7757 struct s *b = &bx; b->j = 5;
7758 }
7759 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7760 const int foo = 10;
7761 if (!foo) return 0;
7762 }
7763 return !cs[0] && !zero.x;
7764 #endif
7765
7766 ;
7767 return 0;
7768 }
7769 _ACEOF
7770 if ac_fn_c_try_compile "$LINENO"
7771 then :
7772 ac_cv_c_const=yes
7773 else case e in #(
7774 e) ac_cv_c_const=no ;;
7775 esac
7776 fi
7777 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7778 esac
7779 fi
7780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
7781 printf "%s\n" "$ac_cv_c_const" >&6; }
7782 if test $ac_cv_c_const = no; then
7783
7784 printf "%s\n" "#define const /**/" >>confdefs.h
7785
7786 fi
7787
7788
7789 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
7790 "
7791 if test "x$ac_cv_type_pid_t" = xyes
7792 then :
7793
7794 else case e in #(
7795 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7796 /* end confdefs.h. */
7797
7798 #if defined _WIN64 && !defined __CYGWIN__
7799 LLP64
7800 #endif
7801
7802 int
7803 main (void)
7804 {
7805
7806 ;
7807 return 0;
7808 }
7809
7810 _ACEOF
7811 if ac_fn_c_try_compile "$LINENO"
7812 then :
7813 ac_pid_type='int'
7814 else case e in #(
7815 e) ac_pid_type='__int64' ;;
7816 esac
7817 fi
7818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7819
7820 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
7821
7822 ;;
7823 esac
7824 fi
7825
7826
7827 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7828 if test "x$ac_cv_type_size_t" = xyes
7829 then :
7830
7831 else case e in #(
7832 e)
7833 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
7834 ;;
7835 esac
7836 fi
7837
7838
7839 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7840 # for constant arguments. Useless!
7841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7842 printf %s "checking for working alloca.h... " >&6; }
7843 if test ${ac_cv_working_alloca_h+y}
7844 then :
7845 printf %s "(cached) " >&6
7846 else case e in #(
7847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7848 /* end confdefs.h. */
7849 #include <alloca.h>
7850 int
7851 main (void)
7852 {
7853 char *p = (char *) alloca (2 * sizeof (int));
7854 if (p) return 0;
7855 ;
7856 return 0;
7857 }
7858 _ACEOF
7859 if ac_fn_c_try_link "$LINENO"
7860 then :
7861 ac_cv_working_alloca_h=yes
7862 else case e in #(
7863 e) ac_cv_working_alloca_h=no ;;
7864 esac
7865 fi
7866 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7867 conftest$ac_exeext conftest.$ac_ext ;;
7868 esac
7869 fi
7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7871 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
7872 if test $ac_cv_working_alloca_h = yes; then
7873
7874 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
7875
7876 fi
7877
7878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7879 printf %s "checking for alloca... " >&6; }
7880 if test ${ac_cv_func_alloca_works+y}
7881 then :
7882 printf %s "(cached) " >&6
7883 else case e in #(
7884 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
7885 if test "$ac_cv_func_alloca_works" != yes
7886 then :
7887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7888 /* end confdefs.h. */
7889 #include <stdlib.h>
7890 #include <stddef.h>
7891 #ifndef alloca
7892 # ifdef __GNUC__
7893 # define alloca __builtin_alloca
7894 # elif defined _MSC_VER
7895 # include <malloc.h>
7896 # define alloca _alloca
7897 # else
7898 # ifdef __cplusplus
7899 extern "C"
7900 # endif
7901 void *alloca (size_t);
7902 # endif
7903 #endif
7904
7905 int
7906 main (void)
7907 {
7908 char *p = (char *) alloca (1);
7909 if (p) return 0;
7910 ;
7911 return 0;
7912 }
7913 _ACEOF
7914 if ac_fn_c_try_link "$LINENO"
7915 then :
7916 ac_cv_func_alloca_works=yes
7917 fi
7918 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7919 conftest$ac_exeext conftest.$ac_ext
7920 fi ;;
7921 esac
7922 fi
7923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7924 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
7925
7926 if test $ac_cv_func_alloca_works = yes; then
7927
7928 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
7929
7930 else
7931 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7932 # that cause trouble. Some versions do not even contain alloca or
7933 # contain a buggy version. If you still want to use their alloca,
7934 # use ar to extract alloca.o from them instead of compiling alloca.c.
7935
7936 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7937
7938 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
7939
7940
7941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7942 printf %s "checking stack direction for C alloca... " >&6; }
7943 if test ${ac_cv_c_stack_direction+y}
7944 then :
7945 printf %s "(cached) " >&6
7946 else case e in #(
7947 e) if test "$cross_compiling" = yes
7948 then :
7949 ac_cv_c_stack_direction=0
7950 else case e in #(
7951 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7952 /* end confdefs.h. */
7953 $ac_includes_default
7954 int
7955 find_stack_direction (int *addr, int depth)
7956 {
7957 int dir, dummy = 0;
7958 if (! addr)
7959 addr = &dummy;
7960 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7961 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7962 return dir + dummy;
7963 }
7964
7965 int
7966 main (int argc, char **argv)
7967 {
7968 return find_stack_direction (0, argc + !argv + 20) < 0;
7969 }
7970 _ACEOF
7971 if ac_fn_c_try_run "$LINENO"
7972 then :
7973 ac_cv_c_stack_direction=1
7974 else case e in #(
7975 e) ac_cv_c_stack_direction=-1 ;;
7976 esac
7977 fi
7978 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7979 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7980 esac
7981 fi
7982 ;;
7983 esac
7984 fi
7985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7986 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
7987 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
7988
7989
7990 fi
7991
7992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5
7993 printf %s "checking for working POSIX fnmatch... " >&6; }
7994 if test ${ac_cv_func_fnmatch_works+y}
7995 then :
7996 printf %s "(cached) " >&6
7997 else case e in #(
7998 e) # Some versions of Solaris, SCO, and the GNU C Library
7999 # have a broken or incompatible fnmatch.
8000 # So we run a test program. If we are cross-compiling, take no chance.
8001 # Thanks to John Oleynick, François Pinard, and Paul Eggert for this test.
8002 if test "$cross_compiling" = yes
8003 then :
8004 ac_cv_func_fnmatch_works=cross
8005 else case e in #(
8006 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8007 /* end confdefs.h. */
8008 #include <fnmatch.h>
8009 # define y(a, b, c) (fnmatch (a, b, c) == 0)
8010 # define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH)
8011
8012 int
8013 main (void)
8014 {
8015 return
8016 (!(y ("a*", "abc", 0)
8017 && n ("d*/*1", "d/s/1", FNM_PATHNAME)
8018 && y ("a\\\\bc", "abc", 0)
8019 && n ("a\\\\bc", "abc", FNM_NOESCAPE)
8020 && y ("*x", ".x", 0)
8021 && n ("*x", ".x", FNM_PERIOD)
8022 && 1));
8023 ;
8024 return 0;
8025 }
8026 _ACEOF
8027 if ac_fn_c_try_run "$LINENO"
8028 then :
8029 ac_cv_func_fnmatch_works=yes
8030 else case e in #(
8031 e) ac_cv_func_fnmatch_works=no ;;
8032 esac
8033 fi
8034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8035 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8036 esac
8037 fi
8038 ;;
8039 esac
8040 fi
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5
8042 printf "%s\n" "$ac_cv_func_fnmatch_works" >&6; }
8043 if test $ac_cv_func_fnmatch_works = yes
8044 then :
8045
8046 printf "%s\n" "#define HAVE_FNMATCH 1" >>confdefs.h
8047
8048 fi
8049
8050
8051 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
8052 if test "x$ac_cv_func_strcspn" = xyes
8053 then :
8054 printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
8055
8056 fi
8057 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
8058 if test "x$ac_cv_func_strspn" = xyes
8059 then :
8060 printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
8061
8062 fi
8063 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
8064 if test "x$ac_cv_func_strtoul" = xyes
8065 then :
8066 printf "%s\n" "#define HAVE_STRTOUL 1" >>confdefs.h
8067
8068 fi
8069 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
8070 if test "x$ac_cv_func_getline" = xyes
8071 then :
8072 printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
8073
8074 fi
8075 ac_fn_c_check_func "$LINENO" "error" "ac_cv_func_error"
8076 if test "x$ac_cv_func_error" = xyes
8077 then :
8078 printf "%s\n" "#define HAVE_ERROR 1" >>confdefs.h
8079
8080 fi
8081
8082
8083
8084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether PCRE2 support is requested" >&5
8085 printf %s "checking whether PCRE2 support is requested... " >&6; }
8086
8087 # Check whether --with-pcre2 was given.
8088 if test ${with_pcre2+y}
8089 then :
8090 withval=$with_pcre2;
8091 else case e in #(
8092 e) with_pcre2=check ;;
8093 esac
8094 fi
8095
8096 LIBPCRE2=
8097 if test "x$with_pcre2" != xno
8098 then :
8099
8100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_pcre2" >&5
8101 printf "%s\n" "$with_pcre2" >&6; }
8102 if test "x$with_pcre2" != xyes && test "x$with_pcre2" != xcheck
8103 then :
8104
8105 PCRE2_CPPFLAGS="-I$with_pcre2/include"
8106 PCRE2_LDFLAGS="-L$with_pcre2/lib"
8107 save_CPPFLAGS="$CPPFLAGS"
8108 save_LDFLAGS="$LDFLAGS"
8109 CPPFLAGS="$CPPFLAGS $PCRE2_CPPFLAGS"
8110 LDFLAGS="$LDFLAGS $PCRE2_LDFLAGS"
8111
8112 fi
8113 for ac_header in pcre2posix.h
8114 do :
8115 ac_fn_c_check_header_compile "$LINENO" "pcre2posix.h" "ac_cv_header_pcre2posix_h" "$ac_includes_default"
8116 if test "x$ac_cv_header_pcre2posix_h" = xyes
8117 then :
8118 printf "%s\n" "#define HAVE_PCRE2POSIX_H 1" >>confdefs.h
8119
8120 else case e in #(
8121 e) LIBPCRE2=_missing_header ;;
8122 esac
8123 fi
8124
8125 done
8126 as_ac_Lib=`printf "%s\n" "ac_cv_lib_pcre2-posix${LIBPCRE2}""_regexec" | sed "$as_sed_sh"`
8127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for regexec in -lpcre2-posix${LIBPCRE2}" >&5
8128 printf %s "checking for regexec in -lpcre2-posix${LIBPCRE2}... " >&6; }
8129 if eval test \${$as_ac_Lib+y}
8130 then :
8131 printf %s "(cached) " >&6
8132 else case e in #(
8133 e) ac_check_lib_save_LIBS=$LIBS
8134 LIBS="-lpcre2-posix${LIBPCRE2} $LIBS"
8135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8137
8138 /* Override any GCC internal prototype to avoid an error.
8139 Use char because int might match the return type of a GCC
8140 builtin and then its argument prototype would still apply.
8141 The 'extern "C"' is for builds by C++ compilers;
8142 although this is not generally supported in C code supporting it here
8143 has little cost and some practical benefit (sr 110532). */
8144 #ifdef __cplusplus
8145 extern "C"
8146 #endif
8147 char regexec (void);
8148 int
8149 main (void)
8150 {
8151 return regexec ();
8152 ;
8153 return 0;
8154 }
8155 _ACEOF
8156 if ac_fn_c_try_link "$LINENO"
8157 then :
8158 eval "$as_ac_Lib=yes"
8159 else case e in #(
8160 e) eval "$as_ac_Lib=no" ;;
8161 esac
8162 fi
8163 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8164 conftest$ac_exeext conftest.$ac_ext
8165 LIBS=$ac_check_lib_save_LIBS ;;
8166 esac
8167 fi
8168 eval ac_res=\$$as_ac_Lib
8169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8170 printf "%s\n" "$ac_res" >&6; }
8171 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
8172 then :
8173
8174 if test "x$with_pcre2" != xyes && test "x$with_pcre2" != xcheck
8175 then :
8176
8177 CPPFLAGS="$save_CPPFLAGS $PCRE2_CPPFLAGS"
8178 LDFLAGS="$save_LDFLAGS $PCRE2_LDFLAGS"
8179
8180 fi
8181 LIBS="$LIBS -lpcre2-posix${LIBPCRE2}"
8182
8183 else case e in #(
8184 e)
8185 if test "x$with_pcre2" != xyes && test "x$with_pcre2" != xcheck
8186 then :
8187
8188 CPPFLAGS="$save_CPPFLAGS"
8189 LDFLAGS="$save_LDFLAGS"
8190
8191 fi
8192 if test "x$with_pcre2" != xcheck; then
8193 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
8194 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
8195 as_fn_error $? "--with-pcre2 was given, but test for pcre2-posix failed
8196 See 'config.log' for more details" "$LINENO" 5; }
8197 fi
8198
8199 ;;
8200 esac
8201 fi
8202
8203
8204 else case e in #(
8205 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 printf "%s\n" "no" >&6; }
8207 ;;
8208 esac
8209 fi
8210
8211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable fuzzing support" >&5
8212 printf %s "checking whether to enable fuzzing support... " >&6; }
8213 # Check whether --enable-fuzzing was given.
8214 if test ${enable_fuzzing+y}
8215 then :
8216 enableval=$enable_fuzzing;
8217 else case e in #(
8218 e) enable_fuzzing=no ;;
8219 esac
8220 fi
8221
8222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_fuzzing" >&5
8223 printf "%s\n" "$enable_fuzzing" >&6; }
8224
8225 if test "x$enable_fuzzing" = "xyes"; then
8226 ENABLE_FUZZING_TRUE=
8227 ENABLE_FUZZING_FALSE='#'
8228 else
8229 ENABLE_FUZZING_TRUE='#'
8230 ENABLE_FUZZING_FALSE=
8231 fi
8232
8233
8234 if test "x$enable_fuzzing" = "xyes"; then
8235 # Check for AFL++ compilers (prefer modern versions)
8236 for ac_prog in afl-clang-fast afl-gcc-fast afl-clang afl-gcc
8237 do
8238 # Extract the first word of "$ac_prog", so it can be a program name with args.
8239 set dummy $ac_prog; ac_word=$2
8240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8241 printf %s "checking for $ac_word... " >&6; }
8242 if test ${ac_cv_prog_AFL_CC+y}
8243 then :
8244 printf %s "(cached) " >&6
8245 else case e in #(
8246 e) if test -n "$AFL_CC"; then
8247 ac_cv_prog_AFL_CC="$AFL_CC" # Let the user override the test.
8248 else
8249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 for as_dir in $PATH
8251 do
8252 IFS=$as_save_IFS
8253 case $as_dir in #(((
8254 '') as_dir=./ ;;
8255 */) ;;
8256 *) as_dir=$as_dir/ ;;
8257 esac
8258 for ac_exec_ext in '' $ac_executable_extensions; do
8259 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8260 ac_cv_prog_AFL_CC="$ac_prog"
8261 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8262 break 2
8263 fi
8264 done
8265 done
8266 IFS=$as_save_IFS
8267
8268 fi ;;
8269 esac
8270 fi
8271 AFL_CC=$ac_cv_prog_AFL_CC
8272 if test -n "$AFL_CC"; then
8273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AFL_CC" >&5
8274 printf "%s\n" "$AFL_CC" >&6; }
8275 else
8276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 printf "%s\n" "no" >&6; }
8278 fi
8279
8280
8281 test -n "$AFL_CC" && break
8282 done
8283
8284 for ac_prog in afl-clang-fast++ afl-g++-fast afl-clang++ afl-g++
8285 do
8286 # Extract the first word of "$ac_prog", so it can be a program name with args.
8287 set dummy $ac_prog; ac_word=$2
8288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 printf %s "checking for $ac_word... " >&6; }
8290 if test ${ac_cv_prog_AFL_CXX+y}
8291 then :
8292 printf %s "(cached) " >&6
8293 else case e in #(
8294 e) if test -n "$AFL_CXX"; then
8295 ac_cv_prog_AFL_CXX="$AFL_CXX" # Let the user override the test.
8296 else
8297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8298 for as_dir in $PATH
8299 do
8300 IFS=$as_save_IFS
8301 case $as_dir in #(((
8302 '') as_dir=./ ;;
8303 */) ;;
8304 *) as_dir=$as_dir/ ;;
8305 esac
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8308 ac_cv_prog_AFL_CXX="$ac_prog"
8309 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8310 break 2
8311 fi
8312 done
8313 done
8314 IFS=$as_save_IFS
8315
8316 fi ;;
8317 esac
8318 fi
8319 AFL_CXX=$ac_cv_prog_AFL_CXX
8320 if test -n "$AFL_CXX"; then
8321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AFL_CXX" >&5
8322 printf "%s\n" "$AFL_CXX" >&6; }
8323 else
8324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 printf "%s\n" "no" >&6; }
8326 fi
8327
8328
8329 test -n "$AFL_CXX" && break
8330 done
8331
8332
8333 if test "x$AFL_CC" = "x"; then
8334 as_fn_error $? "AFL++ compiler not found. Install AFL++ or disable fuzzing with --disable-fuzzing" "$LINENO" 5
8335 fi
8336
8337 # Test if AFL++ compiler works (version compatibility check)
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $AFL_CC works" >&5
8339 printf %s "checking if $AFL_CC works... " >&6; }
8340 echo 'int main(){return 0;}' > conftest.c
8341 if $AFL_CC conftest.c -o conftest >/dev/null 2>&1; then
8342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8343 printf "%s\n" "yes" >&6; }
8344 rm -f conftest.c conftest
8345 else
8346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no - version incompatibility detected" >&5
8347 printf "%s\n" "no - version incompatibility detected" >&6; }
8348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: AFL++ compiler has version issues, falling back to regular compiler with fuzzing flags" >&5
8349 printf "%s\n" "$as_me: WARNING: AFL++ compiler has version issues, falling back to regular compiler with fuzzing flags" >&2;}
8350 AFL_CC="$CC"
8351 if test "x$AFL_CXX" != "x"; then
8352 AFL_CXX="$CXX"
8353 fi
8354 rm -f conftest.c conftest
8355 fi
8356
8357 # Store AFL++ compilers for use in Makefile, but don't override CC during configure
8358
8359
8360
8361 # Add fuzzing-specific flags for the Makefile
8362 FUZZ_CFLAGS="-g -O1 -fno-omit-frame-pointer"
8363 FUZZ_CPPFLAGS="-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION"
8364
8365
8366
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Fuzzing enabled - instrumented binaries will be built with $AFL_CC" >&5
8368 printf "%s\n" "$as_me: Fuzzing enabled - instrumented binaries will be built with $AFL_CC" >&6;}
8369 fi
8370
8371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for diff program" >&5
8372 printf %s "checking for diff program... " >&6; }
8373 DIFF=diff
8374
8375 # Check whether --with-diff was given.
8376 if test ${with_diff+y}
8377 then :
8378 withval=$with_diff; DIFF=$withval
8379 fi
8380
8381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
8382 printf "%s\n" "$DIFF" >&6; }
8383
8384 PATCH=patch
8385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for patch program" >&5
8386 printf %s "checking for patch program... " >&6; }
8387
8388 # Check whether --with-patch was given.
8389 if test ${with_patch+y}
8390 then :
8391 withval=$with_patch; PATCH=$withval
8392 fi
8393
8394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATCH" >&5
8395 printf "%s\n" "$PATCH" >&6; }
8396
8397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether patch works" >&5
8398 printf %s "checking whether patch works... " >&6; }
8399 pver=`$PATCH -v 2>&1`
8400 if echo "$pver" | grep -q "version 2.0" > /dev/null 2>&1; then
8401 as_fn_error $? "no
8402
8403 Sorry, you have version 2.0 of the patch program, which
8404 is not supported by interdiff. Please upgrade.
8405 " "$LINENO" 5
8406 fi
8407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8408 printf "%s\n" "yes" >&6; }
8409
8410
8411 printf "%s\n" "#define PATCH \"$PATCH\"" >>confdefs.h
8412
8413
8414 printf "%s\n" "#define DIFF \"$DIFF\"" >>confdefs.h
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424
8425
8426
8427
8428
8429 # Check whether --enable-cross-guesses was given.
8430 if test ${enable_cross_guesses+y}
8431 then :
8432 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
8433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
8434 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
8435 enableval=conservative
8436 fi
8437 gl_cross_guesses="$enableval"
8438 else case e in #(
8439 e) gl_cross_guesses=conservative ;;
8440 esac
8441 fi
8442
8443 if test $gl_cross_guesses = risky; then
8444 gl_cross_guess_normal="guessing yes"
8445 gl_cross_guess_inverted="guessing no"
8446 else
8447 gl_cross_guess_normal="guessing no"
8448 gl_cross_guess_inverted="guessing yes"
8449 fi
8450 LIBC_FATAL_STDERR_=1
8451 export LIBC_FATAL_STDERR_
8452
8453
8454
8455
8456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
8457 printf %s "checking whether the preprocessor supports include_next... " >&6; }
8458 if test ${gl_cv_have_include_next+y}
8459 then :
8460 printf %s "(cached) " >&6
8461 else case e in #(
8462 e) rm -rf conftestd1a conftestd1b conftestd2
8463 mkdir conftestd1a conftestd1b conftestd2
8464 cat <<EOF > conftestd1a/conftest.h
8465 #define DEFINED_IN_CONFTESTD1
8466 #include_next <conftest.h>
8467 #ifdef DEFINED_IN_CONFTESTD2
8468 int foo;
8469 #else
8470 #error "include_next doesn't work"
8471 #endif
8472 EOF
8473 cat <<EOF > conftestd1b/conftest.h
8474 #define DEFINED_IN_CONFTESTD1
8475 #include <stdio.h>
8476 #include_next <conftest.h>
8477 #ifdef DEFINED_IN_CONFTESTD2
8478 int foo;
8479 #else
8480 #error "include_next doesn't work"
8481 #endif
8482 EOF
8483 cat <<EOF > conftestd2/conftest.h
8484 #ifndef DEFINED_IN_CONFTESTD1
8485 #error "include_next test doesn't work"
8486 #endif
8487 #define DEFINED_IN_CONFTESTD2
8488 EOF
8489 gl_saved_CPPFLAGS="$CPPFLAGS"
8490 CPPFLAGS="$gl_saved_CPPFLAGS -Iconftestd1b -Iconftestd2"
8491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8492 /* end confdefs.h. */
8493 #include <conftest.h>
8494 _ACEOF
8495 if ac_fn_c_try_compile "$LINENO"
8496 then :
8497 gl_cv_have_include_next=yes
8498 else case e in #(
8499 e) CPPFLAGS="$gl_saved_CPPFLAGS -Iconftestd1a -Iconftestd2"
8500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8501 /* end confdefs.h. */
8502 #include <conftest.h>
8503 _ACEOF
8504 if ac_fn_c_try_compile "$LINENO"
8505 then :
8506 gl_cv_have_include_next=buggy
8507 else case e in #(
8508 e) gl_cv_have_include_next=no ;;
8509 esac
8510 fi
8511 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8512 ;;
8513 esac
8514 fi
8515 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8516 CPPFLAGS="$gl_saved_CPPFLAGS"
8517 rm -rf conftestd1a conftestd1b conftestd2
8518 ;;
8519 esac
8520 fi
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
8522 printf "%s\n" "$gl_cv_have_include_next" >&6; }
8523 PRAGMA_SYSTEM_HEADER=
8524 if test $gl_cv_have_include_next = yes; then
8525 INCLUDE_NEXT=include_next
8526 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
8527 if test -n "$GCC"; then
8528 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
8529 fi
8530 else
8531 if test $gl_cv_have_include_next = buggy; then
8532 INCLUDE_NEXT=include
8533 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
8534 else
8535 INCLUDE_NEXT=include
8536 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
8537 fi
8538 fi
8539
8540
8541
8542
8543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
8544 printf %s "checking whether source code line length is unlimited... " >&6; }
8545 if test ${gl_cv_source_line_length_unlimited+y}
8546 then :
8547 printf %s "(cached) " >&6
8548 else case e in #(
8549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8550 /* end confdefs.h. */
8551
8552 #ifdef __TANDEM
8553 choke me
8554 #endif
8555
8556 _ACEOF
8557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8558 $EGREP_TRADITIONAL "choke me" >/dev/null 2>&1
8559 then :
8560 gl_cv_source_line_length_unlimited=no
8561 else case e in #(
8562 e) gl_cv_source_line_length_unlimited=yes ;;
8563 esac
8564 fi
8565 rm -rf conftest*
8566
8567 ;;
8568 esac
8569 fi
8570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
8571 printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; }
8572 if test $gl_cv_source_line_length_unlimited = no; then
8573 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
8574 else
8575 PRAGMA_COLUMNS=
8576 fi
8577
8578
8579
8580
8581 HAVE_CHOWN=1;
8582 HAVE_COPY_FILE_RANGE=1;
8583 HAVE_DUP3=1;
8584 HAVE_EUIDACCESS=1;
8585 HAVE_EXECVPE=1;
8586 HAVE_FACCESSAT=1;
8587 HAVE_FCHDIR=1;
8588 HAVE_FCHOWNAT=1;
8589 HAVE_FDATASYNC=1;
8590 HAVE_FSYNC=1;
8591 HAVE_FTRUNCATE=1;
8592 HAVE_GETDTABLESIZE=1;
8593 HAVE_GETENTROPY=1;
8594 HAVE_GETGROUPS=1;
8595 HAVE_GETHOSTNAME=1;
8596 HAVE_GETLOGIN=1;
8597 HAVE_GETPAGESIZE=1;
8598 HAVE_GETPASS=1;
8599 HAVE_GROUP_MEMBER=1;
8600 HAVE_LCHOWN=1;
8601 HAVE_LINK=1;
8602 HAVE_LINKAT=1;
8603 HAVE_PIPE=1;
8604 HAVE_PIPE2=1;
8605 HAVE_PREAD=1;
8606 HAVE_PWRITE=1;
8607 HAVE_READLINK=1;
8608 HAVE_READLINKAT=1;
8609 HAVE_SETHOSTNAME=1;
8610 HAVE_SLEEP=1;
8611 HAVE_SYMLINK=1;
8612 HAVE_SYMLINKAT=1;
8613 HAVE_UNLINKAT=1;
8614 HAVE_USLEEP=1;
8615 HAVE_DECL_ENVIRON=1;
8616 HAVE_DECL_EXECVPE=1;
8617 HAVE_DECL_FCHDIR=1;
8618 HAVE_DECL_FDATASYNC=1;
8619 HAVE_DECL_GETDOMAINNAME=1;
8620 HAVE_DECL_GETLOGIN=1;
8621 HAVE_DECL_GETLOGIN_R=1;
8622 HAVE_DECL_GETPAGESIZE=1;
8623 HAVE_DECL_GETUSERSHELL=1;
8624 HAVE_DECL_SETHOSTNAME=1;
8625 HAVE_DECL_TRUNCATE=1;
8626 HAVE_DECL_TTYNAME_R=1;
8627 HAVE_OS_H=0;
8628 HAVE_SYS_PARAM_H=0;
8629 REPLACE_ACCESS=0;
8630 REPLACE_CHOWN=0;
8631 REPLACE_CLOSE=0;
8632 REPLACE_COPY_FILE_RANGE=0;
8633 REPLACE_DUP=0;
8634 REPLACE_DUP2=0;
8635 REPLACE_DUP3=0;
8636 REPLACE_EXECL=0;
8637 REPLACE_EXECLE=0;
8638 REPLACE_EXECLP=0;
8639 REPLACE_EXECV=0;
8640 REPLACE_EXECVE=0;
8641 REPLACE_EXECVP=0;
8642 REPLACE_EXECVPE=0;
8643 REPLACE_FACCESSAT=0;
8644 REPLACE_FCHDIR=0;
8645 REPLACE_FCHOWNAT=0;
8646 REPLACE_FDATASYNC=0;
8647 REPLACE_FTRUNCATE=0;
8648 REPLACE_GETCWD=0;
8649 REPLACE_GETDOMAINNAME=0;
8650 REPLACE_GETDTABLESIZE=0;
8651 REPLACE_GETENTROPY=0;
8652 REPLACE_GETLOGIN=0;
8653 REPLACE_GETLOGIN_R=0;
8654 REPLACE_GETGROUPS=0;
8655 REPLACE_GETPAGESIZE=0;
8656 REPLACE_GETPASS=0;
8657 REPLACE_GETPASS_FOR_GETPASS_GNU=0;
8658 REPLACE_GETUSERSHELL=0;
8659 REPLACE_ISATTY=0;
8660 REPLACE_LCHOWN=0;
8661 REPLACE_LINK=0;
8662 REPLACE_LINKAT=0;
8663 REPLACE_LSEEK=0;
8664 REPLACE_PIPE2=0;
8665 REPLACE_PREAD=0;
8666 REPLACE_PWRITE=0;
8667 REPLACE_READ=0;
8668 REPLACE_READLINK=0;
8669 REPLACE_READLINKAT=0;
8670 REPLACE_RMDIR=0;
8671 REPLACE_SETHOSTNAME=0;
8672 REPLACE_SLEEP=0;
8673 REPLACE_SYMLINK=0;
8674 REPLACE_SYMLINKAT=0;
8675 REPLACE_TRUNCATE=0;
8676 REPLACE_TTYNAME_R=0;
8677 REPLACE_UNLINK=0;
8678 REPLACE_UNLINKAT=0;
8679 REPLACE_USLEEP=0;
8680 REPLACE_WRITE=0;
8681 UNISTD_H_HAVE_SYS_RANDOM_H=0;
8682 UNISTD_H_HAVE_WINSOCK2_H=0;
8683 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
8684
8685
8686 ac_func=
8687 for ac_item in $ac_func_c_list
8688 do
8689 if test $ac_func; then
8690 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
8691 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
8692 echo "#define $ac_item 1" >> confdefs.h
8693 fi
8694 ac_func=
8695 else
8696 ac_func=$ac_item
8697 fi
8698 done
8699
8700
8701 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
8702 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
8703
8704 printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
8705
8706 else
8707 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
8708 fi
8709
8710
8711
8712
8713
8714
8715
8716 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
8717 REPLACE_CLOSE=1
8718 fi
8719
8720
8721
8722
8723
8724
8725 if test $ac_cv_header_sys_socket_h != yes; then
8726 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
8727 if test "x$ac_cv_header_winsock2_h" = xyes
8728 then :
8729 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
8730
8731 fi
8732
8733 fi
8734 if test "$ac_cv_header_winsock2_h" = yes; then
8735 HAVE_WINSOCK2_H=1
8736 UNISTD_H_HAVE_WINSOCK2_H=1
8737 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
8738 else
8739 HAVE_WINSOCK2_H=0
8740 fi
8741
8742
8743 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
8744 REPLACE_CLOSE=1
8745 fi
8746
8747
8748
8749
8750
8751 GL_GNULIB_ACCESS=0
8752
8753
8754
8755 GL_GNULIB_CHDIR=0
8756
8757
8758
8759 GL_GNULIB_CHOWN=0
8760
8761
8762
8763 GL_GNULIB_CLOSE=0
8764
8765
8766
8767 GL_GNULIB_COPY_FILE_RANGE=0
8768
8769
8770
8771 GL_GNULIB_DUP=0
8772
8773
8774
8775 GL_GNULIB_DUP2=0
8776
8777
8778
8779 GL_GNULIB_DUP3=0
8780
8781
8782
8783 GL_GNULIB_ENVIRON=0
8784
8785
8786
8787 GL_GNULIB_EUIDACCESS=0
8788
8789
8790
8791 GL_GNULIB_EXECL=0
8792
8793
8794
8795 GL_GNULIB_EXECLE=0
8796
8797
8798
8799 GL_GNULIB_EXECLP=0
8800
8801
8802
8803 GL_GNULIB_EXECV=0
8804
8805
8806
8807 GL_GNULIB_EXECVE=0
8808
8809
8810
8811 GL_GNULIB_EXECVP=0
8812
8813
8814
8815 GL_GNULIB_EXECVPE=0
8816
8817
8818
8819 GL_GNULIB_FACCESSAT=0
8820
8821
8822
8823 GL_GNULIB_FCHDIR=0
8824
8825
8826
8827 GL_GNULIB_FCHOWNAT=0
8828
8829
8830
8831 GL_GNULIB_FDATASYNC=0
8832
8833
8834
8835 GL_GNULIB_FSYNC=0
8836
8837
8838
8839 GL_GNULIB_FTRUNCATE=0
8840
8841
8842
8843 GL_GNULIB_GETCWD=0
8844
8845
8846
8847 GL_GNULIB_GETDOMAINNAME=0
8848
8849
8850
8851 GL_GNULIB_GETDTABLESIZE=0
8852
8853
8854
8855 GL_GNULIB_GETENTROPY=0
8856
8857
8858
8859 GL_GNULIB_GETGROUPS=0
8860
8861
8862
8863 GL_GNULIB_GETHOSTNAME=0
8864
8865
8866
8867 GL_GNULIB_GETLOGIN=0
8868
8869
8870
8871 GL_GNULIB_GETLOGIN_R=0
8872
8873
8874
8875 GL_GNULIB_GETOPT_POSIX=0
8876
8877
8878
8879 GL_GNULIB_GETPAGESIZE=0
8880
8881
8882
8883 GL_GNULIB_GETPASS=0
8884
8885
8886
8887 GL_GNULIB_GETPASS_GNU=0
8888
8889
8890
8891 GL_GNULIB_GETUSERSHELL=0
8892
8893
8894
8895 GL_GNULIB_GROUP_MEMBER=0
8896
8897
8898
8899 GL_GNULIB_ISATTY=0
8900
8901
8902
8903 GL_GNULIB_LCHOWN=0
8904
8905
8906
8907 GL_GNULIB_LINK=0
8908
8909
8910
8911 GL_GNULIB_LINKAT=0
8912
8913
8914
8915 GL_GNULIB_LSEEK=0
8916
8917
8918
8919 GL_GNULIB_PIPE=0
8920
8921
8922
8923 GL_GNULIB_PIPE2=0
8924
8925
8926
8927 GL_GNULIB_PREAD=0
8928
8929
8930
8931 GL_GNULIB_PWRITE=0
8932
8933
8934
8935 GL_GNULIB_READ=0
8936
8937
8938
8939 GL_GNULIB_READLINK=0
8940
8941
8942
8943 GL_GNULIB_READLINKAT=0
8944
8945
8946
8947 GL_GNULIB_RMDIR=0
8948
8949
8950
8951 GL_GNULIB_SETHOSTNAME=0
8952
8953
8954
8955 GL_GNULIB_SLEEP=0
8956
8957
8958
8959 GL_GNULIB_SYMLINK=0
8960
8961
8962
8963 GL_GNULIB_SYMLINKAT=0
8964
8965
8966
8967 GL_GNULIB_TRUNCATE=0
8968
8969
8970
8971 GL_GNULIB_TTYNAME_R=0
8972
8973
8974
8975 GL_GNULIB_UNISTD_H_GETOPT=0
8976
8977
8978
8979 GL_GNULIB_UNISTD_H_NONBLOCKING=0
8980
8981
8982
8983 GL_GNULIB_UNISTD_H_SIGPIPE=0
8984
8985
8986
8987 GL_GNULIB_UNLINK=0
8988
8989
8990
8991 GL_GNULIB_UNLINKAT=0
8992
8993
8994
8995 GL_GNULIB_USLEEP=0
8996
8997
8998
8999 GL_GNULIB_WRITE=0
9000
9001
9002
9003 GL_GNULIB_MDA_ACCESS=1
9004
9005
9006
9007 GL_GNULIB_MDA_CHDIR=1
9008
9009
9010
9011 GL_GNULIB_MDA_CLOSE=1
9012
9013
9014
9015 GL_GNULIB_MDA_DUP=1
9016
9017
9018
9019 GL_GNULIB_MDA_DUP2=1
9020
9021
9022
9023 GL_GNULIB_MDA_EXECL=1
9024
9025
9026
9027 GL_GNULIB_MDA_EXECLE=1
9028
9029
9030
9031 GL_GNULIB_MDA_EXECLP=1
9032
9033
9034
9035 GL_GNULIB_MDA_EXECV=1
9036
9037
9038
9039 GL_GNULIB_MDA_EXECVE=1
9040
9041
9042
9043 GL_GNULIB_MDA_EXECVP=1
9044
9045
9046
9047 GL_GNULIB_MDA_EXECVPE=1
9048
9049
9050
9051 GL_GNULIB_MDA_GETCWD=1
9052
9053
9054
9055 GL_GNULIB_MDA_GETPID=1
9056
9057
9058
9059 GL_GNULIB_MDA_ISATTY=1
9060
9061
9062
9063 GL_GNULIB_MDA_LSEEK=1
9064
9065
9066
9067 GL_GNULIB_MDA_READ=1
9068
9069
9070
9071 GL_GNULIB_MDA_RMDIR=1
9072
9073
9074
9075 GL_GNULIB_MDA_SWAB=1
9076
9077
9078
9079 GL_GNULIB_MDA_UNLINK=1
9080
9081
9082
9083 GL_GNULIB_MDA_WRITE=1
9084
9085
9086
9087 gl_mda_defines='
9088 #if defined _WIN32 && !defined __CYGWIN__
9089 #define access _access
9090 #define chdir _chdir
9091 #define chmod _chmod
9092 #define close _close
9093 #define creat _creat
9094 #define dup _dup
9095 #define dup2 _dup2
9096 #define ecvt _ecvt
9097 #define execl _execl
9098 #define execle _execle
9099 #define execlp _execlp
9100 #define execv _execv
9101 #define execve _execve
9102 #define execvp _execvp
9103 #define execvpe _execvpe
9104 #define fcloseall _fcloseall
9105 #define fcvt _fcvt
9106 #define fdopen _fdopen
9107 #define fileno _fileno
9108 #define gcvt _gcvt
9109 #define getcwd _getcwd
9110 #define getpid _getpid
9111 #define getw _getw
9112 #define isatty _isatty
9113 #define j0 _j0
9114 #define j1 _j1
9115 #define jn _jn
9116 #define lfind _lfind
9117 #define lsearch _lsearch
9118 #define lseek _lseek
9119 #define memccpy _memccpy
9120 #define mkdir _mkdir
9121 #define mktemp _mktemp
9122 #define open _open
9123 #define putenv _putenv
9124 #define putw _putw
9125 #define read _read
9126 #define rmdir _rmdir
9127 #define strdup _strdup
9128 #define swab _swab
9129 #define tempnam _tempnam
9130 #define tzset _tzset
9131 #define umask _umask
9132 #define unlink _unlink
9133 #define utime _utime
9134 #define wcsdup _wcsdup
9135 #define write _write
9136 #define y0 _y0
9137 #define y1 _y1
9138 #define yn _yn
9139 #endif
9140 '
9141
9142
9143
9144
9145
9146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
9147 printf %s "checking for complete errno.h... " >&6; }
9148 if test ${gl_cv_header_errno_h_complete+y}
9149 then :
9150 printf %s "(cached) " >&6
9151 else case e in #(
9152 e)
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9154 /* end confdefs.h. */
9155
9156 #include <errno.h>
9157 #if !defined ETXTBSY
9158 booboo
9159 #endif
9160 #if !defined ENOMSG
9161 booboo
9162 #endif
9163 #if !defined EIDRM
9164 booboo
9165 #endif
9166 #if !defined ENOLINK
9167 booboo
9168 #endif
9169 #if !defined EPROTO
9170 booboo
9171 #endif
9172 #if !defined EMULTIHOP
9173 booboo
9174 #endif
9175 #if !defined EBADMSG
9176 booboo
9177 #endif
9178 #if !defined EOVERFLOW
9179 booboo
9180 #endif
9181 #if !defined ENOTSUP
9182 booboo
9183 #endif
9184 #if !defined ENETRESET
9185 booboo
9186 #endif
9187 #if !defined ECONNABORTED
9188 booboo
9189 #endif
9190 #if !defined ESTALE
9191 booboo
9192 #endif
9193 #if !defined EDQUOT
9194 booboo
9195 #endif
9196 #if !defined ECANCELED
9197 booboo
9198 #endif
9199 #if !defined EOWNERDEAD
9200 booboo
9201 #endif
9202 #if !defined ENOTRECOVERABLE
9203 booboo
9204 #endif
9205 #if !defined EILSEQ
9206 booboo
9207 #endif
9208 #if !defined ESOCKTNOSUPPORT
9209 booboo
9210 #endif
9211
9212 _ACEOF
9213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9214 $EGREP_TRADITIONAL "booboo" >/dev/null 2>&1
9215 then :
9216 gl_cv_header_errno_h_complete=no
9217 else case e in #(
9218 e) gl_cv_header_errno_h_complete=yes ;;
9219 esac
9220 fi
9221 rm -rf conftest*
9222
9223 ;;
9224 esac
9225 fi
9226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
9227 printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; }
9228 if test $gl_cv_header_errno_h_complete = yes; then
9229 GL_GENERATE_ERRNO_H=false
9230 else
9231
9232
9233
9234
9235
9236
9237
9238
9239 if test $gl_cv_have_include_next = yes; then
9240 gl_cv_next_errno_h='<'errno.h'>'
9241 else
9242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
9243 printf %s "checking absolute name of <errno.h>... " >&6; }
9244 if test ${gl_cv_next_errno_h+y}
9245 then :
9246 printf %s "(cached) " >&6
9247 else case e in #(
9248 e)
9249
9250
9251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9252 /* end confdefs.h. */
9253 #include <errno.h>
9254 _ACEOF
9255 case "$host_os" in
9256 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9257 *) gl_absname_cpp="$ac_cpp" ;;
9258 esac
9259
9260 case "$host_os" in
9261 mingw* | windows*)
9262 gl_dirsep_regex='[/\\]'
9263 ;;
9264 *)
9265 gl_dirsep_regex='\/'
9266 ;;
9267 esac
9268 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9269 gl_header_literal_regex=`echo 'errno.h' \
9270 | sed -e "$gl_make_literal_regex_sed"`
9271 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9272 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9273 s|^/[^/]|//&|
9274 p
9275 q
9276 }'
9277
9278 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9279 sed -n "$gl_absolute_header_sed"`
9280
9281 gl_header=$gl_cv_absolute_errno_h
9282 gl_cv_next_errno_h='"'$gl_header'"'
9283
9284 ;;
9285 esac
9286 fi
9287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
9288 printf "%s\n" "$gl_cv_next_errno_h" >&6; }
9289 fi
9290 NEXT_ERRNO_H=$gl_cv_next_errno_h
9291
9292 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9293 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9294 gl_next_as_first_directive='<'errno.h'>'
9295 else
9296 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9297 gl_next_as_first_directive=$gl_cv_next_errno_h
9298 fi
9299 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
9300
9301
9302
9303
9304 GL_GENERATE_ERRNO_H=true
9305 fi
9306
9307
9308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
9309 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
9310 if test ${ac_cv_c_undeclared_builtin_options+y}
9311 then :
9312 printf %s "(cached) " >&6
9313 else case e in #(
9314 e) ac_save_CFLAGS=$CFLAGS
9315 ac_cv_c_undeclared_builtin_options='cannot detect'
9316 for ac_arg in '' -fno-builtin; do
9317 CFLAGS="$ac_save_CFLAGS $ac_arg"
9318 # This test program should *not* compile successfully.
9319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9320 /* end confdefs.h. */
9321
9322 int
9323 main (void)
9324 {
9325 (void) strchr;
9326 ;
9327 return 0;
9328 }
9329 _ACEOF
9330 if ac_fn_c_try_compile "$LINENO"
9331 then :
9332
9333 else case e in #(
9334 e) # This test program should compile successfully.
9335 # No library function is consistently available on
9336 # freestanding implementations, so test against a dummy
9337 # declaration. Include always-available headers on the
9338 # off chance that they somehow elicit warnings.
9339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9340 /* end confdefs.h. */
9341 #include <float.h>
9342 #include <limits.h>
9343 #include <stdarg.h>
9344 #include <stddef.h>
9345 extern void ac_decl (int, char *);
9346
9347 int
9348 main (void)
9349 {
9350 (void) ac_decl (0, (char *) 0);
9351 (void) ac_decl;
9352
9353 ;
9354 return 0;
9355 }
9356 _ACEOF
9357 if ac_fn_c_try_compile "$LINENO"
9358 then :
9359 if test x"$ac_arg" = x
9360 then :
9361 ac_cv_c_undeclared_builtin_options='none needed'
9362 else case e in #(
9363 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
9364 esac
9365 fi
9366 break
9367 fi
9368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9369 esac
9370 fi
9371 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9372 done
9373 CFLAGS=$ac_save_CFLAGS
9374 ;;
9375 esac
9376 fi
9377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
9378 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
9379 case $ac_cv_c_undeclared_builtin_options in #(
9380 'cannot detect') :
9381 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9382 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9383 as_fn_error $? "cannot make $CC report undeclared builtins
9384 See 'config.log' for more details" "$LINENO" 5; } ;; #(
9385 'none needed') :
9386 ac_c_undeclared_builtin_options='' ;; #(
9387 *) :
9388 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
9389 esac
9390
9391
9392
9393
9394
9395
9396
9397
9398
9399
9400
9401
9402 if test $gl_cv_have_include_next = yes; then
9403 gl_cv_next_error_h='<'error.h'>'
9404 else
9405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <error.h>" >&5
9406 printf %s "checking absolute name of <error.h>... " >&6; }
9407 if test ${gl_cv_next_error_h+y}
9408 then :
9409 printf %s "(cached) " >&6
9410 else case e in #(
9411 e)
9412 if test $ac_cv_header_error_h = yes; then
9413
9414
9415
9416
9417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9418 /* end confdefs.h. */
9419 #include <error.h>
9420 _ACEOF
9421 case "$host_os" in
9422 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9423 *) gl_absname_cpp="$ac_cpp" ;;
9424 esac
9425
9426 case "$host_os" in
9427 mingw* | windows*)
9428 gl_dirsep_regex='[/\\]'
9429 ;;
9430 *)
9431 gl_dirsep_regex='\/'
9432 ;;
9433 esac
9434 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9435 gl_header_literal_regex=`echo 'error.h' \
9436 | sed -e "$gl_make_literal_regex_sed"`
9437 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9438 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9439 s|^/[^/]|//&|
9440 p
9441 q
9442 }'
9443
9444 gl_cv_absolute_error_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9445 sed -n "$gl_absolute_header_sed"`
9446
9447 gl_header=$gl_cv_absolute_error_h
9448 gl_cv_next_error_h='"'$gl_header'"'
9449 else
9450 gl_cv_next_error_h='<'error.h'>'
9451 fi
9452
9453 ;;
9454 esac
9455 fi
9456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_error_h" >&5
9457 printf "%s\n" "$gl_cv_next_error_h" >&6; }
9458 fi
9459 NEXT_ERROR_H=$gl_cv_next_error_h
9460
9461 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9462 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9463 gl_next_as_first_directive='<'error.h'>'
9464 else
9465 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9466 gl_next_as_first_directive=$gl_cv_next_error_h
9467 fi
9468 NEXT_AS_FIRST_DIRECTIVE_ERROR_H=$gl_next_as_first_directive
9469
9470
9471
9472
9473 if test $ac_cv_header_error_h = yes; then
9474 HAVE_ERROR_H=1
9475 else
9476 HAVE_ERROR_H=0
9477 fi
9478
9479
9480 REPLACE_ERROR=0
9481
9482
9483
9484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error" >&5
9485 printf %s "checking for error... " >&6; }
9486 if test ${gl_cv_onwards_func_error+y}
9487 then :
9488 printf %s "(cached) " >&6
9489 else case e in #(
9490 e)
9491 exec 9>&6 6>/dev/null
9492
9493 case "$host_os" in
9494
9495 linux*-android*)
9496 ac_fn_check_decl "$LINENO" "error" "ac_cv_have_decl_error" "#include <error.h>
9497 " "$ac_c_undeclared_builtin_options" "CFLAGS"
9498 if test "x$ac_cv_have_decl_error" = xyes
9499 then :
9500
9501 fi
9502 if test $ac_cv_have_decl_error = yes; then
9503 ac_fn_c_check_func "$LINENO" "error" "ac_cv_func_error"
9504 if test "x$ac_cv_func_error" = xyes
9505 then :
9506
9507 fi
9508
9509 if test $ac_cv_func_error = yes; then
9510 gl_cv_onwards_func_error=yes
9511 else
9512 gl_cv_onwards_func_error='future OS version'
9513 fi
9514 else
9515 gl_cv_onwards_func_error='future OS version'
9516 fi
9517 ;;
9518
9519
9520 *)
9521 ac_fn_c_check_func "$LINENO" "error" "ac_cv_func_error"
9522 if test "x$ac_cv_func_error" = xyes
9523 then :
9524
9525 fi
9526
9527 gl_cv_onwards_func_error=$ac_cv_func_error
9528 ;;
9529
9530 esac
9531
9532 exec 6>&9 9>&-
9533
9534 ;;
9535 esac
9536 fi
9537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_error" >&5
9538 printf "%s\n" "$gl_cv_onwards_func_error" >&6; }
9539
9540 case "$gl_cv_onwards_func_error" in
9541 future*) ac_cv_func_error=no ;;
9542 *) ac_cv_func_error=$gl_cv_onwards_func_error ;;
9543 esac
9544 if test $ac_cv_func_error = yes; then
9545
9546 printf "%s\n" "#define HAVE_ERROR 1" >>confdefs.h
9547
9548 fi
9549
9550
9551 if test $ac_cv_func_error = yes; then
9552 HAVE_ERROR=1
9553 else
9554 HAVE_ERROR=0
9555 case "$gl_cv_onwards_func_error" in
9556 future*) REPLACE_ERROR=1 ;;
9557 esac
9558 fi
9559
9560 ac_fn_check_decl "$LINENO" "error_at_line" "ac_cv_have_decl_error_at_line" "#include <error.h>
9561 " "$ac_c_undeclared_builtin_options" "CFLAGS"
9562 if test "x$ac_cv_have_decl_error_at_line" = xyes
9563 then :
9564
9565 fi
9566 if test $ac_cv_have_decl_error_at_line = yes; then
9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
9568 printf %s "checking for error_at_line... " >&6; }
9569 if test ${ac_cv_lib_error_at_line+y}
9570 then :
9571 printf %s "(cached) " >&6
9572 else case e in #(
9573 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9575 #include <error.h>
9576 int
9577 main (void)
9578 {
9579 error_at_line (0, 0, "", 0, "an error occurred");
9580 ;
9581 return 0;
9582 }
9583 _ACEOF
9584 if ac_fn_c_try_link "$LINENO"
9585 then :
9586 ac_cv_lib_error_at_line=yes
9587 else case e in #(
9588 e) ac_cv_lib_error_at_line=no ;;
9589 esac
9590 fi
9591 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9592 conftest$ac_exeext conftest.$ac_ext ;;
9593 esac
9594 fi
9595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
9596 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
9597 else
9598 ac_cv_lib_error_at_line=no
9599 fi
9600 if test $ac_cv_lib_error_at_line = yes; then
9601 HAVE_ERROR_AT_LINE=1
9602 else
9603 HAVE_ERROR_AT_LINE=0
9604 fi
9605 REPLACE_ERROR_AT_LINE=0
9606
9607 if test $ac_cv_func_error = yes && test $ac_cv_lib_error_at_line = yes; then
9608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working error function" >&5
9609 printf %s "checking for working error function... " >&6; }
9610 if test ${gl_cv_func_working_error+y}
9611 then :
9612 printf %s "(cached) " >&6
9613 else case e in #(
9614 e) if test $cross_compiling != yes; then
9615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9616 /* end confdefs.h. */
9617
9618 #include <error.h>
9619 static void print_no_progname (void) {}
9620
9621 int
9622 main (void)
9623 {
9624
9625 error_print_progname = print_no_progname;
9626 error (0, 0, "foo");
9627
9628 ;
9629 return 0;
9630 }
9631
9632 _ACEOF
9633 if ac_fn_c_try_link "$LINENO"
9634 then :
9635 rm -f conftest.out
9636 if test -s conftest$ac_exeext \
9637 && ./conftest$ac_exeext 2> conftest.out; then
9638 if grep ' ' conftest.out >/dev/null; then
9639 gl_cv_func_working_error=no
9640 else
9641 gl_cv_func_working_error=yes
9642 fi
9643 else
9644 gl_cv_func_working_error=no
9645 fi
9646 rm -f conftest.out
9647
9648 else case e in #(
9649 e) gl_cv_func_working_error=no ;;
9650 esac
9651 fi
9652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9653 conftest$ac_exeext conftest.$ac_ext
9654 else
9655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9656 /* end confdefs.h. */
9657
9658 #include <error.h>
9659
9660 int
9661 main (void)
9662 {
9663
9664 error (0, 0, "foo");
9665
9666 ;
9667 return 0;
9668 }
9669
9670 _ACEOF
9671 if ac_fn_c_try_compile "$LINENO"
9672 then :
9673 case "$host_os" in
9674 # Guess yes on glibc systems.
9675 *-gnu* | gnu*) gl_cv_func_working_error="guessing yes" ;;
9676 # Guess no on Android.
9677 linux*-android*) gl_cv_func_working_error="guessing no" ;;
9678 # If we don't know, obey --enable-cross-guesses.
9679 *) gl_cv_func_working_error="$gl_cross_guess_normal" ;;
9680 esac
9681
9682 else case e in #(
9683 e) gl_cv_func_working_error=no ;;
9684 esac
9685 fi
9686 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9687 fi
9688 ;;
9689 esac
9690 fi
9691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_error" >&5
9692 printf "%s\n" "$gl_cv_func_working_error" >&6; }
9693 case "$gl_cv_func_working_error" in
9694 *no)
9695 REPLACE_ERROR=1
9696 REPLACE_ERROR_AT_LINE=1
9697 ;;
9698 esac
9699 fi
9700
9701 if test $HAVE_ERROR = 0 || test $REPLACE_ERROR = 1 \
9702 || test $HAVE_ERROR_AT_LINE = 0 \
9703 || test $REPLACE_ERROR_AT_LINE = 1; then
9704 COMPILE_ERROR_C=1
9705 else
9706 COMPILE_ERROR_C=0
9707 fi
9708
9709
9710
9711
9712
9713
9714 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9715 if test "x$ac_cv_have_decl_strerror_r" = xyes
9716 then :
9717 ac_have_decl=1
9718 else case e in #(
9719 e) ac_have_decl=0 ;;
9720 esac
9721 fi
9722 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
9723
9724
9725 if test $ac_cv_have_decl_strerror_r = yes; then
9726 # For backward compatibility's sake, define HAVE_STRERROR_R.
9727 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
9728 # as AC_CHECK_DECLS_ONCE.)
9729
9730 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
9731
9732 fi
9733
9734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
9735 printf %s "checking whether strerror_r returns char *... " >&6; }
9736 if test ${ac_cv_func_strerror_r_char_p+y}
9737 then :
9738 printf %s "(cached) " >&6
9739 else case e in #(
9740 e)
9741 ac_cv_func_strerror_r_char_p=no
9742 if test $ac_cv_have_decl_strerror_r = yes; then
9743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9744 /* end confdefs.h. */
9745 #include <string.h>
9746 int
9747 main (void)
9748 {
9749
9750 char buf[100];
9751 char x = *strerror_r (0, buf, sizeof buf);
9752 char *p = strerror_r (0, buf, sizeof buf);
9753 return !p || x;
9754
9755 ;
9756 return 0;
9757 }
9758 _ACEOF
9759 if ac_fn_c_try_compile "$LINENO"
9760 then :
9761 ac_cv_func_strerror_r_char_p=yes
9762 fi
9763 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9764
9765 fi
9766 ;;
9767 esac
9768 fi
9769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
9770 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
9771 if test $ac_cv_func_strerror_r_char_p = yes; then
9772
9773 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
9774
9775 fi
9776
9777
9778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctype.h defines __header_inline" >&5
9779 printf %s "checking whether ctype.h defines __header_inline... " >&6; }
9780 if test ${gl_cv_have___header_inline+y}
9781 then :
9782 printf %s "(cached) " >&6
9783 else case e in #(
9784 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9785 /* end confdefs.h. */
9786 #include <ctype.h>
9787 #ifndef __header_inline
9788 #error "<ctype.h> does not define __header_inline"
9789 #endif
9790
9791 _ACEOF
9792 if ac_fn_c_try_cpp "$LINENO"
9793 then :
9794 gl_cv_have___header_inline=yes
9795 else case e in #(
9796 e) gl_cv_have___header_inline=no ;;
9797 esac
9798 fi
9799 rm -f conftest.err conftest.i conftest.$ac_ext ;;
9800 esac
9801 fi
9802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___header_inline" >&5
9803 printf "%s\n" "$gl_cv_have___header_inline" >&6; }
9804 if test "$gl_cv_have___header_inline" = yes; then
9805
9806 printf "%s\n" "#define HAVE___HEADER_INLINE 1" >>confdefs.h
9807
9808 fi
9809
9810
9811
9812
9813 HAVE_FCNTL=1;
9814 HAVE_OPENAT=1;
9815 HAVE_OPENAT2=0;
9816 REPLACE_CREAT=0;
9817 REPLACE_FCNTL=0;
9818 REPLACE_OPEN=0;
9819 REPLACE_OPENAT=0;
9820
9821
9822
9823
9824 GL_GNULIB_CREAT=0
9825
9826
9827
9828 GL_GNULIB_FCNTL=0
9829
9830
9831
9832 GL_GNULIB_NONBLOCKING=0
9833
9834
9835
9836 GL_GNULIB_OPEN=0
9837
9838
9839
9840 GL_GNULIB_OPENAT=0
9841
9842
9843
9844 GL_GNULIB_OPENAT2=0
9845
9846
9847
9848 GL_GNULIB_MDA_CREAT=1
9849
9850
9851
9852 GL_GNULIB_MDA_OPEN=1
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9863 printf %s "checking for working fcntl.h... " >&6; }
9864 if test ${gl_cv_header_working_fcntl_h+y}
9865 then :
9866 printf %s "(cached) " >&6
9867 else case e in #(
9868 e) if test "$cross_compiling" = yes
9869 then :
9870 case $host_os,$gl_cross_guess_normal in #(
9871 # The O_DIRECTORY test is known to fail on Mac OS X 10.4.11 (2007)
9872 # (see <https://bugs.gnu.org/78509#95>)
9873 # and to succeed on Mac OS X 10.5.8 [darwin9.8.0] (2009).
9874 # Guess it fails on Mac OS X 10.4.x and earlier.
9875 darwin[0-8].*yes) :
9876 gl_cv_header_working_fcntl_h="guessing no (bad O_DIRECTORY)" ;; #(
9877 # Known to be "no" on native MS-Windows.
9878 mingw* | windows*) :
9879 gl_cv_header_working_fcntl_h=no ;; #(
9880 *) :
9881 gl_cv_header_working_fcntl_h=$gl_cross_guess_normal ;;
9882 esac
9883 else case e in #(
9884 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h. */
9886 #include <sys/types.h>
9887 #include <sys/stat.h>
9888 #if HAVE_UNISTD_H
9889 # include <unistd.h>
9890 #else /* on Windows with MSVC */
9891 # include <io.h>
9892 # include <stdlib.h>
9893 # define sleep(n) _sleep ((n) * 1000)
9894 #endif
9895 #include <errno.h>
9896 #include <fcntl.h>
9897
9898
9899 $gl_mda_defines
9900
9901 #ifndef O_DIRECTORY
9902 #define O_DIRECTORY 0
9903 #endif
9904 #ifndef O_NOATIME
9905 #define O_NOATIME 0
9906 #endif
9907 #ifndef O_NOFOLLOW
9908 #define O_NOFOLLOW 0
9909 #endif
9910 #ifndef O_SEARCH
9911 #define O_SEARCH O_RDONLY
9912 #endif
9913 static int const constants[] =
9914 {
9915 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9916 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9917 };
9918
9919 int
9920 main (void)
9921 {
9922
9923 int result = !constants;
9924 #if HAVE_SYMLINK
9925 {
9926 static char const sym[] = "conftest.sym";
9927 if (symlink ("/dev/null", sym) != 0)
9928 result |= 1;
9929 else
9930 {
9931 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9932 if (fd >= 0)
9933 {
9934 close (fd);
9935 result |= 3;
9936 }
9937 }
9938 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9939 result |= 1;
9940 else
9941 {
9942 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9943 if (fd >= 0)
9944 {
9945 close (fd);
9946 result |= 3;
9947 }
9948 }
9949 unlink (sym);
9950 }
9951 #endif
9952 {
9953 int fd = open ("confdefs.h", O_SEARCH | O_DIRECTORY);
9954 if (!(fd < 0 && errno == ENOTDIR))
9955 result |= 4;
9956 if (0 <= fd)
9957 close (fd);
9958 }
9959 {
9960 static char const file[] = "confdefs.h";
9961 int fd = open (file, O_RDONLY | O_NOATIME);
9962 if (fd < 0)
9963 result |= 8;
9964 else
9965 {
9966 struct stat st0;
9967 if (fstat (fd, &st0) != 0)
9968 result |= 16;
9969 else
9970 {
9971 char c;
9972 sleep (1);
9973 if (read (fd, &c, 1) != 1)
9974 result |= 24;
9975 else
9976 {
9977 if (close (fd) != 0)
9978 result |= 32;
9979 else
9980 {
9981 struct stat st1;
9982 if (stat (file, &st1) != 0)
9983 result |= 40;
9984 else
9985 if (st0.st_atime != st1.st_atime)
9986 result |= 64;
9987 }
9988 }
9989 }
9990 }
9991 }
9992 return result;
9993 ;
9994 return 0;
9995 }
9996 _ACEOF
9997 if ac_fn_c_try_run "$LINENO"
9998 then :
9999 gl_cv_header_working_fcntl_h=yes
10000 else case e in #(
10001 e) case $? in #(
10002 3) :
10003 gl_cv_header_working_fcntl_h="no (bad O_NOFOLLOW)" ;; #(
10004 4) :
10005 gl_cv_header_working_fcntl_h="no (bad O_DIRECTORY)" ;; #(
10006 7) :
10007 gl_cv_header_working_fcntl_h="no (bad O_NOFOLLOW, O_DIRECTORY)" ;; #(
10008 64) :
10009 gl_cv_header_working_fcntl_h="no (bad O_NOATIME)" ;; #(
10010 67) :
10011 gl_cv_header_working_fcntl_h="no (bad O_NOFOLLOW, O_NOATIME)" ;; #(
10012 68) :
10013 gl_cv_header_working_fcntl_h="no (bad O_DIRECTORY, O_NOATIME)" ;; #(
10014 71) :
10015 gl_cv_header_working_fcntl_h="no (bad O_NOFOLLOW, O_DIRECTORY, O_NOATIME)" ;; #(
10016 *) :
10017 gl_cv_header_working_fcntl_h="no" ;;
10018 esac ;;
10019 esac
10020 fi
10021 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10022 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10023 esac
10024 fi
10025 ;;
10026 esac
10027 fi
10028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10029 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
10030
10031 case $gl_cv_header_working_fcntl_h in #(
10032 *O_DIRECTORY* | *no) :
10033 gl_val=0 ;; #(
10034 *) :
10035 gl_val=1 ;;
10036 esac
10037
10038 printf "%s\n" "#define HAVE_WORKING_O_DIRECTORY $gl_val" >>confdefs.h
10039
10040
10041 case $gl_cv_header_working_fcntl_h in #(
10042 *O_NOATIME* | *no) :
10043 gl_val=0 ;; #(
10044 *) :
10045 gl_val=1 ;;
10046 esac
10047
10048 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $gl_val" >>confdefs.h
10049
10050
10051 case $gl_cv_header_working_fcntl_h in #(
10052 *O_NOFOLLOW* | *no) :
10053 gl_val=0 ;; #(
10054 *) :
10055 gl_val=1 ;;
10056 esac
10057
10058 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $gl_val" >>confdefs.h
10059
10060
10061 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10062 if test "x$ac_cv_type_mode_t" = xyes
10063 then :
10064
10065 else case e in #(
10066 e)
10067 printf "%s\n" "#define mode_t int" >>confdefs.h
10068 ;;
10069 esac
10070 fi
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082
10083 if test $gl_cv_have_include_next = yes; then
10084 gl_cv_next_fcntl_h='<'fcntl.h'>'
10085 else
10086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
10087 printf %s "checking absolute name of <fcntl.h>... " >&6; }
10088 if test ${gl_cv_next_fcntl_h+y}
10089 then :
10090 printf %s "(cached) " >&6
10091 else case e in #(
10092 e)
10093
10094
10095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10096 /* end confdefs.h. */
10097 #include <fcntl.h>
10098 _ACEOF
10099 case "$host_os" in
10100 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10101 *) gl_absname_cpp="$ac_cpp" ;;
10102 esac
10103
10104 case "$host_os" in
10105 mingw* | windows*)
10106 gl_dirsep_regex='[/\\]'
10107 ;;
10108 *)
10109 gl_dirsep_regex='\/'
10110 ;;
10111 esac
10112 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10113 gl_header_literal_regex=`echo 'fcntl.h' \
10114 | sed -e "$gl_make_literal_regex_sed"`
10115 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10116 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10117 s|^/[^/]|//&|
10118 p
10119 q
10120 }'
10121
10122 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10123 sed -n "$gl_absolute_header_sed"`
10124
10125 gl_header=$gl_cv_absolute_fcntl_h
10126 gl_cv_next_fcntl_h='"'$gl_header'"'
10127
10128 ;;
10129 esac
10130 fi
10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
10132 printf "%s\n" "$gl_cv_next_fcntl_h" >&6; }
10133 fi
10134 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
10135
10136 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10137 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10138 gl_next_as_first_directive='<'fcntl.h'>'
10139 else
10140 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10141 gl_next_as_first_directive=$gl_cv_next_fcntl_h
10142 fi
10143 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158 HAVE_FCHMODAT=1;
10159 HAVE_FSTATAT=1;
10160 HAVE_FUTIMENS=1;
10161 HAVE_GETUMASK=1;
10162 HAVE_LCHMOD=1;
10163 HAVE_LSTAT=1;
10164 HAVE_MKDIRAT=1;
10165 HAVE_MKFIFO=1;
10166 HAVE_MKFIFOAT=1;
10167 HAVE_MKNOD=1;
10168 HAVE_MKNODAT=1;
10169 HAVE_UTIMENSAT=1;
10170 REPLACE_CHMOD=0;
10171 REPLACE_FCHMODAT=0;
10172 REPLACE_FSTAT=0;
10173 REPLACE_FSTATAT=0;
10174 REPLACE_FUTIMENS=0;
10175 REPLACE_LSTAT=0;
10176 REPLACE_MKDIR=0;
10177 REPLACE_MKFIFO=0;
10178 REPLACE_MKFIFOAT=0;
10179 REPLACE_MKNOD=0;
10180 REPLACE_MKNODAT=0;
10181 REPLACE_STAT=0;
10182 REPLACE_UTIMENSAT=0;
10183
10184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
10185 printf %s "checking whether stat file-mode macros are broken... " >&6; }
10186 if test ${ac_cv_header_stat_broken+y}
10187 then :
10188 printf %s "(cached) " >&6
10189 else case e in #(
10190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10191 /* end confdefs.h. */
10192 #include <sys/types.h>
10193 #include <sys/stat.h>
10194
10195 #if defined S_ISBLK && defined S_IFDIR
10196 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
10197 #endif
10198
10199 #if defined S_ISBLK && defined S_IFCHR
10200 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
10201 #endif
10202
10203 #if defined S_ISLNK && defined S_IFREG
10204 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
10205 #endif
10206
10207 #if defined S_ISSOCK && defined S_IFREG
10208 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
10209 #endif
10210
10211 _ACEOF
10212 if ac_fn_c_try_compile "$LINENO"
10213 then :
10214 ac_cv_header_stat_broken=no
10215 else case e in #(
10216 e) ac_cv_header_stat_broken=yes ;;
10217 esac
10218 fi
10219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10220 esac
10221 fi
10222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
10223 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
10224 if test $ac_cv_header_stat_broken = yes; then
10225
10226 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
10227
10228 fi
10229
10230
10231
10232 case "$host_os" in
10233 mingw* | windows*)
10234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
10235 printf %s "checking for 64-bit off_t... " >&6; }
10236 if test ${gl_cv_type_off_t_64+y}
10237 then :
10238 printf %s "(cached) " >&6
10239 else case e in #(
10240 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10241 /* end confdefs.h. */
10242 #include <sys/types.h>
10243 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
10244
10245 int
10246 main (void)
10247 {
10248
10249 ;
10250 return 0;
10251 }
10252 _ACEOF
10253 if ac_fn_c_try_compile "$LINENO"
10254 then :
10255 gl_cv_type_off_t_64=yes
10256 else case e in #(
10257 e) gl_cv_type_off_t_64=no ;;
10258 esac
10259 fi
10260 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10261 ;;
10262 esac
10263 fi
10264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
10265 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
10266 if test $gl_cv_type_off_t_64 = no; then
10267 WINDOWS_64_BIT_OFF_T=1
10268 else
10269 WINDOWS_64_BIT_OFF_T=0
10270 fi
10271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
10272 printf %s "checking for 64-bit st_size... " >&6; }
10273 if test ${gl_cv_member_st_size_64+y}
10274 then :
10275 printf %s "(cached) " >&6
10276 else case e in #(
10277 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h. */
10279 #include <sys/types.h>
10280 struct stat buf;
10281 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
10282
10283 int
10284 main (void)
10285 {
10286
10287 ;
10288 return 0;
10289 }
10290 _ACEOF
10291 if ac_fn_c_try_compile "$LINENO"
10292 then :
10293 gl_cv_member_st_size_64=yes
10294 else case e in #(
10295 e) gl_cv_member_st_size_64=no ;;
10296 esac
10297 fi
10298 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10299 ;;
10300 esac
10301 fi
10302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
10303 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
10304 if test $gl_cv_member_st_size_64 = no; then
10305 WINDOWS_64_BIT_ST_SIZE=1
10306 else
10307 WINDOWS_64_BIT_ST_SIZE=0
10308 fi
10309 ;;
10310 *)
10311 WINDOWS_64_BIT_OFF_T=0
10312 WINDOWS_64_BIT_ST_SIZE=0
10313 ;;
10314 esac
10315
10316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10317 printf %s "checking for C/C++ restrict keyword... " >&6; }
10318 if test ${ac_cv_c_restrict+y}
10319 then :
10320 printf %s "(cached) " >&6
10321 else case e in #(
10322 e) ac_cv_c_restrict=no
10323 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
10324 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
10325 # Put 'restrict' last, because C++ lacks it.
10326 for ac_kw in __restrict__ __restrict _Restrict restrict; do
10327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10328 /* end confdefs.h. */
10329 typedef int *int_ptr;
10330 int foo (int_ptr $ac_kw ip) { return ip[0]; }
10331 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
10332 int bar (int ip[$ac_kw]) { return ip[0]; }
10333
10334 int
10335 main (void)
10336 {
10337 int s[1];
10338 int *$ac_kw t = s;
10339 t[0] = 0;
10340 return foo (t) + bar (t);
10341
10342 ;
10343 return 0;
10344 }
10345 _ACEOF
10346 if ac_fn_c_try_compile "$LINENO"
10347 then :
10348 ac_cv_c_restrict=$ac_kw
10349 fi
10350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10351 test "$ac_cv_c_restrict" != no && break
10352 done
10353 ;;
10354 esac
10355 fi
10356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10357 printf "%s\n" "$ac_cv_c_restrict" >&6; }
10358
10359 case $ac_cv_c_restrict in
10360 restrict) ;;
10361 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
10362 ;;
10363 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
10364 ;;
10365 esac
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381 if test $gl_cv_have_include_next = yes; then
10382 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
10383 else
10384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
10385 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
10386 if test ${gl_cv_next_sys_stat_h+y}
10387 then :
10388 printf %s "(cached) " >&6
10389 else case e in #(
10390 e)
10391 if test $ac_cv_header_sys_stat_h = yes; then
10392
10393
10394
10395
10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10397 /* end confdefs.h. */
10398 #include <sys/stat.h>
10399 _ACEOF
10400 case "$host_os" in
10401 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10402 *) gl_absname_cpp="$ac_cpp" ;;
10403 esac
10404
10405 case "$host_os" in
10406 mingw* | windows*)
10407 gl_dirsep_regex='[/\\]'
10408 ;;
10409 *)
10410 gl_dirsep_regex='\/'
10411 ;;
10412 esac
10413 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10414 gl_header_literal_regex=`echo 'sys/stat.h' \
10415 | sed -e "$gl_make_literal_regex_sed"`
10416 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10417 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10418 s|^/[^/]|//&|
10419 p
10420 q
10421 }'
10422
10423 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10424 sed -n "$gl_absolute_header_sed"`
10425
10426 gl_header=$gl_cv_absolute_sys_stat_h
10427 gl_cv_next_sys_stat_h='"'$gl_header'"'
10428 else
10429 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
10430 fi
10431
10432 ;;
10433 esac
10434 fi
10435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
10436 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
10437 fi
10438 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
10439
10440 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10441 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10442 gl_next_as_first_directive='<'sys/stat.h'>'
10443 else
10444 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10445 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
10446 fi
10447 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
10448
10449
10450
10451
10452
10453
10454
10455
10456 WINDOWS_STAT_TIMESPEC=0
10457
10458
10459
10460
10461
10462
10463
10464
10465 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
10466 #include <sys/stat.h>
10467 "
10468 if test "x$ac_cv_type_nlink_t" = xyes
10469 then :
10470
10471 else case e in #(
10472 e)
10473 printf "%s\n" "#define nlink_t int" >>confdefs.h
10474 ;;
10475 esac
10476 fi
10477
10478
10479
10480
10481
10482
10483
10484
10485
10486
10487 case "$host_os" in
10488 mingw* | windows*)
10489 ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
10490 if test "x$ac_cv_header_sdkddkver_h" = xyes
10491 then :
10492 printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h
10493
10494 fi
10495
10496 ;;
10497 esac
10498
10499
10500
10501
10502
10503
10504
10505 GL_GNULIB_CHMOD=0
10506
10507
10508
10509 GL_GNULIB_FCHMODAT=0
10510
10511
10512
10513 GL_GNULIB_FSTAT=0
10514
10515
10516
10517 GL_GNULIB_FSTATAT=0
10518
10519
10520
10521 GL_GNULIB_FUTIMENS=0
10522
10523
10524
10525 GL_GNULIB_GETUMASK=0
10526
10527
10528
10529 GL_GNULIB_LCHMOD=0
10530
10531
10532
10533 GL_GNULIB_LSTAT=0
10534
10535
10536
10537 GL_GNULIB_MKDIR=0
10538
10539
10540
10541 GL_GNULIB_MKDIRAT=0
10542
10543
10544
10545 GL_GNULIB_MKFIFO=0
10546
10547
10548
10549 GL_GNULIB_MKFIFOAT=0
10550
10551
10552
10553 GL_GNULIB_MKNOD=0
10554
10555
10556
10557 GL_GNULIB_MKNODAT=0
10558
10559
10560
10561 GL_GNULIB_STAT=0
10562
10563
10564
10565 GL_GNULIB_UTIMENSAT=0
10566
10567
10568
10569 GL_GNULIB_OVERRIDES_STRUCT_STAT=0
10570
10571
10572
10573 GL_GNULIB_MDA_CHMOD=1
10574
10575
10576
10577 GL_GNULIB_MDA_MKDIR=1
10578
10579
10580
10581 GL_GNULIB_MDA_UMASK=1
10582
10583
10584
10585
10586 HAVE_DECL_FCLOSEALL=1;
10587 HAVE_DECL_FPURGE=1;
10588 HAVE_DECL_FSEEKO=1;
10589 HAVE_DECL_FTELLO=1;
10590 HAVE_DECL_GETDELIM=1;
10591 HAVE_DECL_GETLINE=1;
10592 HAVE_DECL_GETW=1;
10593 HAVE_DECL_OBSTACK_PRINTF=1;
10594 HAVE_DECL_PUTW=1;
10595 HAVE_DECL_SNPRINTF=1;
10596 HAVE_DECL_VSNPRINTF=1;
10597 HAVE_DPRINTF=1;
10598 HAVE_FSEEKO=1;
10599 HAVE_FTELLO=1;
10600 HAVE_PCLOSE=1;
10601 HAVE_POPEN=1;
10602 HAVE_RENAMEAT=1;
10603 HAVE_VASPRINTF=1;
10604 HAVE_VDPRINTF=1;
10605 REPLACE_DPRINTF=0;
10606 REPLACE_FCLOSE=0;
10607 REPLACE_FDOPEN=0;
10608 REPLACE_FFLUSH=0;
10609 REPLACE_FOPEN=0;
10610 REPLACE_FOPEN_FOR_FOPEN_GNU=0;
10611 REPLACE_FPRINTF=0;
10612 REPLACE_FPURGE=0;
10613 REPLACE_FREOPEN=0;
10614 REPLACE_FSEEK=0;
10615 REPLACE_FSEEKO=0;
10616 REPLACE_FTELL=0;
10617 REPLACE_FTELLO=0;
10618 REPLACE_GETDELIM=0;
10619 REPLACE_GETLINE=0;
10620 REPLACE_OBSTACK_PRINTF=0;
10621 REPLACE_PERROR=0;
10622 REPLACE_POPEN=0;
10623 REPLACE_PRINTF=0;
10624 REPLACE_REMOVE=0;
10625 REPLACE_RENAME=0;
10626 REPLACE_RENAMEAT=0;
10627 REPLACE_SNPRINTF=0;
10628 REPLACE_SPRINTF=0;
10629 REPLACE_STDIO_READ_FUNCS=0;
10630 REPLACE_STDIO_WRITE_FUNCS=0;
10631 REPLACE_TMPFILE=0;
10632 REPLACE_VASPRINTF=0;
10633 REPLACE_VDPRINTF=0;
10634 REPLACE_VFPRINTF=0;
10635 REPLACE_VPRINTF=0;
10636 REPLACE_VSNPRINTF=0;
10637 REPLACE_VSPRINTF=0;
10638
10639 ac_fn_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
10640 if test "x$ac_cv_have_decl_getdelim" = xyes
10641 then :
10642 ac_have_decl=1
10643 else case e in #(
10644 e) ac_have_decl=0 ;;
10645 esac
10646 fi
10647 printf "%s\n" "#define HAVE_DECL_GETDELIM $ac_have_decl" >>confdefs.h
10648
10649
10650
10651 GL_GNULIB_DPRINTF=0
10652
10653
10654
10655 GL_GNULIB_DZPRINTF=0
10656
10657
10658
10659 GL_GNULIB_FCLOSE=0
10660
10661
10662
10663 GL_GNULIB_FDOPEN=0
10664
10665
10666
10667 GL_GNULIB_FFLUSH=0
10668
10669
10670
10671 GL_GNULIB_FGETC=0
10672
10673
10674
10675 GL_GNULIB_FGETS=0
10676
10677
10678
10679 GL_GNULIB_FOPEN=0
10680
10681
10682
10683 GL_GNULIB_FOPEN_GNU=0
10684
10685
10686
10687 GL_GNULIB_FPRINTF=0
10688
10689
10690
10691 GL_GNULIB_FPRINTF_POSIX=0
10692
10693
10694
10695 GL_GNULIB_FPURGE=0
10696
10697
10698
10699 GL_GNULIB_FPUTC=0
10700
10701
10702
10703 GL_GNULIB_FPUTS=0
10704
10705
10706
10707 GL_GNULIB_FREAD=0
10708
10709
10710
10711 GL_GNULIB_FREOPEN=0
10712
10713
10714
10715 GL_GNULIB_FSCANF=0
10716
10717
10718
10719 GL_GNULIB_FSEEK=0
10720
10721
10722
10723 GL_GNULIB_FSEEKO=0
10724
10725
10726
10727 GL_GNULIB_FTELL=0
10728
10729
10730
10731 GL_GNULIB_FTELLO=0
10732
10733
10734
10735 GL_GNULIB_FWRITE=0
10736
10737
10738
10739 GL_GNULIB_FZPRINTF=0
10740
10741
10742
10743 GL_GNULIB_GETC=0
10744
10745
10746
10747 GL_GNULIB_GETCHAR=0
10748
10749
10750
10751 GL_GNULIB_GETDELIM=0
10752
10753
10754
10755 GL_GNULIB_GETLINE=0
10756
10757
10758
10759 GL_GNULIB_OBSTACK_PRINTF=0
10760
10761
10762
10763 GL_GNULIB_OBSTACK_PRINTF_POSIX=0
10764
10765
10766
10767 GL_GNULIB_OBSTACK_ZPRINTF=0
10768
10769
10770
10771 GL_GNULIB_PCLOSE=0
10772
10773
10774
10775 GL_GNULIB_PERROR=0
10776
10777
10778
10779 GL_GNULIB_POPEN=0
10780
10781
10782
10783 GL_GNULIB_PRINTF=0
10784
10785
10786
10787 GL_GNULIB_PRINTF_POSIX=0
10788
10789
10790
10791 GL_GNULIB_PUTC=0
10792
10793
10794
10795 GL_GNULIB_PUTCHAR=0
10796
10797
10798
10799 GL_GNULIB_PUTS=0
10800
10801
10802
10803 GL_GNULIB_REMOVE=0
10804
10805
10806
10807 GL_GNULIB_RENAME=0
10808
10809
10810
10811 GL_GNULIB_RENAMEAT=0
10812
10813
10814
10815 GL_GNULIB_SCANF=0
10816
10817
10818
10819 GL_GNULIB_SNPRINTF=0
10820
10821
10822
10823 GL_GNULIB_SNZPRINTF=0
10824
10825
10826
10827 GL_GNULIB_SPRINTF_POSIX=0
10828
10829
10830
10831 GL_GNULIB_STDIO_H_NONBLOCKING=0
10832
10833
10834
10835 GL_GNULIB_STDIO_H_SIGPIPE=0
10836
10837
10838
10839 GL_GNULIB_SZPRINTF=0
10840
10841
10842
10843 GL_GNULIB_TMPFILE=0
10844
10845
10846
10847 GL_GNULIB_VASPRINTF=0
10848
10849
10850
10851 GL_GNULIB_VASZPRINTF=0
10852
10853
10854
10855 GL_GNULIB_VFSCANF=0
10856
10857
10858
10859 GL_GNULIB_VSCANF=0
10860
10861
10862
10863 GL_GNULIB_VDPRINTF=0
10864
10865
10866
10867 GL_GNULIB_VDZPRINTF=0
10868
10869
10870
10871 GL_GNULIB_VFPRINTF=0
10872
10873
10874
10875 GL_GNULIB_VFPRINTF_POSIX=0
10876
10877
10878
10879 GL_GNULIB_VFZPRINTF=0
10880
10881
10882
10883 GL_GNULIB_VPRINTF=0
10884
10885
10886
10887 GL_GNULIB_VPRINTF_POSIX=0
10888
10889
10890
10891 GL_GNULIB_VSNPRINTF=0
10892
10893
10894
10895 GL_GNULIB_VSNZPRINTF=0
10896
10897
10898
10899 GL_GNULIB_VSPRINTF_POSIX=0
10900
10901
10902
10903 GL_GNULIB_VSZPRINTF=0
10904
10905
10906
10907 GL_GNULIB_VZPRINTF=0
10908
10909
10910
10911 GL_GNULIB_ZPRINTF=0
10912
10913
10914
10915 GL_GNULIB_MDA_FCLOSEALL=1
10916
10917
10918
10919 GL_GNULIB_MDA_FDOPEN=1
10920
10921
10922
10923 GL_GNULIB_MDA_FILENO=1
10924
10925
10926
10927 GL_GNULIB_MDA_GETW=1
10928
10929
10930
10931 GL_GNULIB_MDA_PUTW=1
10932
10933
10934
10935 GL_GNULIB_MDA_TEMPNAM=1
10936
10937
10938
10939
10940 ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
10941 if test "x$ac_cv_have_decl_getdtablesize" = xyes
10942 then :
10943 ac_have_decl=1
10944 else case e in #(
10945 e) ac_have_decl=0 ;;
10946 esac
10947 fi
10948 printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h
10949
10950 ac_fn_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
10951 if test "x$ac_cv_have_decl_getline" = xyes
10952 then :
10953 ac_have_decl=1
10954 else case e in #(
10955 e) ac_have_decl=0 ;;
10956 esac
10957 fi
10958 printf "%s\n" "#define HAVE_DECL_GETLINE $ac_have_decl" >>confdefs.h
10959
10960
10961 HAVE__EXIT=1;
10962 HAVE_ALIGNED_ALLOC=1;
10963 HAVE_ATOLL=1;
10964 HAVE_CANONICALIZE_FILE_NAME=1;
10965 HAVE_DECL_ECVT=1;
10966 HAVE_DECL_FCVT=1;
10967 HAVE_DECL_GCVT=1;
10968 HAVE_DECL_GETLOADAVG=1;
10969 HAVE_DECL_PROGRAM_INVOCATION_NAME=1;
10970 HAVE_GETPROGNAME=1;
10971 HAVE_GETSUBOPT=1;
10972 HAVE_GRANTPT=1;
10973 HAVE_INITSTATE=1;
10974 HAVE_DECL_INITSTATE=1;
10975 HAVE_MBTOWC=1;
10976 HAVE_MKDTEMP=1;
10977 HAVE_MKOSTEMP=1;
10978 HAVE_MKOSTEMPS=1;
10979 HAVE_MKSTEMP=1;
10980 HAVE_MKSTEMPS=1;
10981 HAVE_POSIX_MEMALIGN=1;
10982 HAVE_POSIX_OPENPT=1;
10983 HAVE_PTSNAME=1;
10984 HAVE_PTSNAME_R=1;
10985 HAVE_QSORT_R=1;
10986 HAVE_RANDOM=1;
10987 HAVE_RANDOM_R=1;
10988 HAVE_REALLOCARRAY=1;
10989 HAVE_REALPATH=1;
10990 HAVE_RPMATCH=1;
10991 HAVE_SECURE_GETENV=1;
10992 HAVE_SETENV=1;
10993 HAVE_DECL_SETENV=1;
10994 HAVE_SETSTATE=1;
10995 HAVE_DECL_SETSTATE=1;
10996 HAVE_STRTOD=1;
10997 HAVE_STRTOF=1;
10998 HAVE_STRTOL=1;
10999 HAVE_STRTOLD=1;
11000 HAVE_STRTOLL=1;
11001 HAVE_STRTOUL=1;
11002 HAVE_STRTOULL=1;
11003 HAVE_STRUCT_RANDOM_DATA=1;
11004 HAVE_SYS_LOADAVG_H=0;
11005 HAVE_SYS_PROCESS_H=0;
11006 HAVE_UNLOCKPT=1;
11007 HAVE_DECL_UNSETENV=1;
11008 REPLACE__EXIT=0;
11009 REPLACE_ABORT=0;
11010 REPLACE_ALIGNED_ALLOC=0;
11011 REPLACE_CALLOC_FOR_CALLOC_GNU=0;
11012 REPLACE_CALLOC_FOR_CALLOC_POSIX=0;
11013 REPLACE_CANONICALIZE_FILE_NAME=0;
11014 REPLACE_FREE=0;
11015 REPLACE_GETLOADAVG=0;
11016 REPLACE_GETPROGNAME=0;
11017 REPLACE_GETSUBOPT=0;
11018 REPLACE_INITSTATE=0;
11019 REPLACE_MALLOC_FOR_MALLOC_GNU=0;
11020 REPLACE_MALLOC_FOR_MALLOC_POSIX=0;
11021 REPLACE_MB_CUR_MAX=0;
11022 REPLACE_MBSTOWCS=0;
11023 REPLACE_MBTOWC=0;
11024 REPLACE_MKOSTEMP=0;
11025 REPLACE_MKOSTEMPS=0;
11026 REPLACE_MKSTEMP=0;
11027 REPLACE_POSIX_MEMALIGN=0;
11028 REPLACE_POSIX_OPENPT=0;
11029 REPLACE_PTSNAME=0;
11030 REPLACE_PTSNAME_R=0;
11031 REPLACE_PUTENV=0;
11032 REPLACE_QSORT_R=0;
11033 REPLACE_RAND=0;
11034 REPLACE_RANDOM=0;
11035 REPLACE_RANDOM_R=0;
11036 REPLACE_REALLOC_FOR_REALLOC_POSIX=0;
11037 REPLACE_REALLOCARRAY=0;
11038 REPLACE_REALPATH=0;
11039 REPLACE_SETENV=0;
11040 REPLACE_SETSTATE=0;
11041 REPLACE_STRTOD=0;
11042 REPLACE_STRTOF=0;
11043 REPLACE_STRTOL=0;
11044 REPLACE_STRTOLD=0;
11045 REPLACE_STRTOLL=0;
11046 REPLACE_STRTOUL=0;
11047 REPLACE_STRTOULL=0;
11048 REPLACE_UNSETENV=0;
11049 REPLACE_WCTOMB=0;
11050 CAN_PRINT_STACK_TRACE=0;
11051
11052
11053
11054
11055
11056 GL_GNULIB__EXIT=0
11057
11058
11059
11060 GL_GNULIB_ABORT_DEBUG=0
11061
11062
11063
11064 GL_GNULIB_ALIGNED_ALLOC=0
11065
11066
11067
11068 GL_GNULIB_ATOLL=0
11069
11070
11071
11072 GL_GNULIB_CALLOC_GNU=0
11073
11074
11075
11076 GL_GNULIB_CALLOC_POSIX=0
11077
11078
11079
11080 GL_GNULIB_CANONICALIZE_FILE_NAME=0
11081
11082
11083
11084 GL_GNULIB_FREE_POSIX=0
11085
11086
11087
11088 GL_GNULIB_GETLOADAVG=0
11089
11090
11091
11092 GL_GNULIB_GETPROGNAME=0
11093
11094
11095
11096 GL_GNULIB_GETSUBOPT=0
11097
11098
11099
11100 GL_GNULIB_GRANTPT=0
11101
11102
11103
11104 GL_GNULIB_MALLOC_GNU=0
11105
11106
11107
11108 GL_GNULIB_MALLOC_POSIX=0
11109
11110
11111
11112 GL_GNULIB_MBSTOWCS=0
11113
11114
11115
11116 GL_GNULIB_MBTOWC=0
11117
11118
11119
11120 GL_GNULIB_MKDTEMP=0
11121
11122
11123
11124 GL_GNULIB_MKOSTEMP=0
11125
11126
11127
11128 GL_GNULIB_MKOSTEMPS=0
11129
11130
11131
11132 GL_GNULIB_MKSTEMP=0
11133
11134
11135
11136 GL_GNULIB_MKSTEMPS=0
11137
11138
11139
11140 GL_GNULIB_POSIX_MEMALIGN=0
11141
11142
11143
11144 GL_GNULIB_POSIX_OPENPT=0
11145
11146
11147
11148 GL_GNULIB_PTSNAME=0
11149
11150
11151
11152 GL_GNULIB_PTSNAME_R=0
11153
11154
11155
11156 GL_GNULIB_PUTENV=0
11157
11158
11159
11160 GL_GNULIB_QSORT_R=0
11161
11162
11163
11164 GL_GNULIB_RAND=0
11165
11166
11167
11168 GL_GNULIB_RANDOM=0
11169
11170
11171
11172 GL_GNULIB_RANDOM_R=0
11173
11174
11175
11176 GL_GNULIB_REALLOCARRAY=0
11177
11178
11179
11180 GL_GNULIB_REALLOC_POSIX=0
11181
11182
11183
11184 GL_GNULIB_REALPATH=0
11185
11186
11187
11188 GL_GNULIB_RPMATCH=0
11189
11190
11191
11192 GL_GNULIB_SECURE_GETENV=0
11193
11194
11195
11196 GL_GNULIB_SETENV=0
11197
11198
11199
11200 GL_GNULIB_STACK_TRACE=0
11201
11202
11203
11204 GL_GNULIB_STRTOD=0
11205
11206
11207
11208 GL_GNULIB_STRTOF=0
11209
11210
11211
11212 GL_GNULIB_STRTOL=0
11213
11214
11215
11216 GL_GNULIB_STRTOLD=0
11217
11218
11219
11220 GL_GNULIB_STRTOLL=0
11221
11222
11223
11224 GL_GNULIB_STRTOUL=0
11225
11226
11227
11228 GL_GNULIB_STRTOULL=0
11229
11230
11231
11232 GL_GNULIB_SYSTEM_POSIX=0
11233
11234
11235
11236 GL_GNULIB_UNLOCKPT=0
11237
11238
11239
11240 GL_GNULIB_UNSETENV=0
11241
11242
11243
11244 GL_GNULIB_WCTOMB=0
11245
11246
11247
11248 GL_GNULIB_MDA_ECVT=1
11249
11250
11251
11252 GL_GNULIB_MDA_FCVT=1
11253
11254
11255
11256 GL_GNULIB_MDA_GCVT=1
11257
11258
11259
11260 GL_GNULIB_MDA_MKTEMP=1
11261
11262
11263
11264 GL_GNULIB_MDA_PUTENV=1
11265
11266
11267
11268
11269
11270
11271
11272
11273
11274 gl_sed_double_backslashes='s/\\/\\\\/g'
11275 gl_sed_escape_doublequotes='s/"/\\"/g'
11276 gl_sed_escape_for_make_1="s,\\([ \"&'();<>\\\\\`|]\\),\\\\\\1,g"
11277 gl_sed_escape_for_make_2='s,\$,\\$$,g'
11278 case `echo r | tr -d '\r'` in
11279 '') gl_tr_cr='\015' ;;
11280 *) gl_tr_cr='\r' ;;
11281 esac
11282
11283
11284
11285
11286
11287
11288
11289
11290
11291
11292
11293
11294 if test $gl_cv_have_include_next = yes; then
11295 gl_cv_next_limits_h='<'limits.h'>'
11296 else
11297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
11298 printf %s "checking absolute name of <limits.h>... " >&6; }
11299 if test ${gl_cv_next_limits_h+y}
11300 then :
11301 printf %s "(cached) " >&6
11302 else case e in #(
11303 e)
11304 if test $ac_cv_header_limits_h = yes; then
11305
11306
11307
11308
11309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11310 /* end confdefs.h. */
11311 #include <limits.h>
11312 _ACEOF
11313 case "$host_os" in
11314 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11315 *) gl_absname_cpp="$ac_cpp" ;;
11316 esac
11317
11318 case "$host_os" in
11319 mingw* | windows*)
11320 gl_dirsep_regex='[/\\]'
11321 ;;
11322 *)
11323 gl_dirsep_regex='\/'
11324 ;;
11325 esac
11326 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11327 gl_header_literal_regex=`echo 'limits.h' \
11328 | sed -e "$gl_make_literal_regex_sed"`
11329 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11330 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11331 s|^/[^/]|//&|
11332 p
11333 q
11334 }'
11335
11336 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11337 sed -n "$gl_absolute_header_sed"`
11338
11339 gl_header=$gl_cv_absolute_limits_h
11340 gl_cv_next_limits_h='"'$gl_header'"'
11341 else
11342 gl_cv_next_limits_h='<'limits.h'>'
11343 fi
11344
11345 ;;
11346 esac
11347 fi
11348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
11349 printf "%s\n" "$gl_cv_next_limits_h" >&6; }
11350 fi
11351 NEXT_LIMITS_H=$gl_cv_next_limits_h
11352
11353 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11354 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11355 gl_next_as_first_directive='<'limits.h'>'
11356 else
11357 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11358 gl_next_as_first_directive=$gl_cv_next_limits_h
11359 fi
11360 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
11361
11362
11363
11364
11365
11366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5
11367 printf %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; }
11368 if test ${gl_cv_header_limits_width+y}
11369 then :
11370 printf %s "(cached) " >&6
11371 else case e in #(
11372 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11373 /* end confdefs.h. */
11374 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11375 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11376 #endif
11377 #include <limits.h>
11378 long long llm = LLONG_MAX;
11379 int wb = WORD_BIT;
11380 int ullw = ULLONG_WIDTH;
11381 int bw = BOOL_WIDTH;
11382 int bm = BOOL_MAX;
11383 int mblm = MB_LEN_MAX;
11384
11385 int
11386 main (void)
11387 {
11388
11389 ;
11390 return 0;
11391 }
11392 _ACEOF
11393 if ac_fn_c_try_compile "$LINENO"
11394 then :
11395 gl_cv_header_limits_width=yes
11396 else case e in #(
11397 e) gl_cv_header_limits_width=no ;;
11398 esac
11399 fi
11400 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11401 esac
11402 fi
11403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
11404 printf "%s\n" "$gl_cv_header_limits_width" >&6; }
11405 GL_GENERATE_LIMITS_H=true
11406 if test "$gl_cv_header_limits_width" = yes
11407 then :
11408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has SSIZE_MAX" >&5
11409 printf %s "checking whether limits.h has SSIZE_MAX... " >&6; }
11410 if test ${gl_cv_header_limits_ssize_max+y}
11411 then :
11412 printf %s "(cached) " >&6
11413 else case e in #(
11414 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11416 #include <limits.h>
11417 #ifndef SSIZE_MAX
11418 #error "SSIZE_MAX is not defined"
11419 #endif
11420
11421 _ACEOF
11422 if ac_fn_c_try_compile "$LINENO"
11423 then :
11424 gl_cv_header_limits_ssize_max=yes
11425 else case e in #(
11426 e) gl_cv_header_limits_ssize_max=no ;;
11427 esac
11428 fi
11429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11430 esac
11431 fi
11432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_ssize_max" >&5
11433 printf "%s\n" "$gl_cv_header_limits_ssize_max" >&6; }
11434 if test "$gl_cv_header_limits_ssize_max" = yes; then
11435 GL_GENERATE_LIMITS_H=false
11436 fi
11437 fi
11438
11439
11440 HAVE_NEWLOCALE=1;
11441 HAVE_DUPLOCALE=1;
11442 HAVE_FREELOCALE=1;
11443 HAVE_GETLOCALENAME_L=1;
11444 REPLACE_LOCALECONV=0;
11445 REPLACE_SETLOCALE=0;
11446 REPLACE_NEWLOCALE=0;
11447 REPLACE_DUPLOCALE=0;
11448 REPLACE_FREELOCALE=0;
11449 REPLACE_GETLOCALENAME_L=0;
11450 REPLACE_STRUCT_LCONV=0;
11451 LOCALENAME_ENHANCE_LOCALE_FUNCS=0;
11452
11453
11454 NULLPTR_T_NEEDS_STDDEF=1;
11455 STDDEF_NOT_IDEMPOTENT=0;
11456 REPLACE_NULL=0;
11457 HAVE_MAX_ALIGN_T=1;
11458
11459
11460
11461
11462
11463
11464 GL_GENERATE_STDDEF_H=false
11465
11466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
11467 printf %s "checking for good max_align_t... " >&6; }
11468 if test ${gl_cv_type_max_align_t+y}
11469 then :
11470 printf %s "(cached) " >&6
11471 else case e in #(
11472 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11473 /* end confdefs.h. */
11474 /* On FreeBSD 12.0/x86, max_align_t defined by <stddef.h> has
11475 the correct alignment with the default (wrong) definition of
11476 _Alignof, but a wrong alignment as soon as we activate an
11477 ISO C compliant _Alignof definition. */
11478 #if ((defined __GNUC__ && 4 <= __GNUC__) || defined __clang__) && !defined __cplusplus
11479 #define _Alignof(type) __builtin_offsetof (struct { char __a; type __b; }, __b)
11480 #endif
11481 #include <stddef.h>
11482 unsigned int s = sizeof (max_align_t);
11483 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
11484 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
11485 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
11486 #endif
11487 typedef struct { char a; max_align_t b; } max_helper;
11488 typedef struct { char a; long b; } long_helper;
11489 typedef struct { char a; double b; } double_helper;
11490 typedef struct { char a; long double b; } long_double_helper;
11491 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
11492 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
11493 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
11494
11495 int
11496 main (void)
11497 {
11498
11499 ;
11500 return 0;
11501 }
11502 _ACEOF
11503 if ac_fn_c_try_compile "$LINENO"
11504 then :
11505 gl_cv_type_max_align_t=yes
11506 else case e in #(
11507 e) gl_cv_type_max_align_t=no ;;
11508 esac
11509 fi
11510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11511 ;;
11512 esac
11513 fi
11514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
11515 printf "%s\n" "$gl_cv_type_max_align_t" >&6; }
11516 if test $gl_cv_type_max_align_t = no; then
11517 HAVE_MAX_ALIGN_T=0
11518 GL_GENERATE_STDDEF_H=true
11519 fi
11520
11521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
11522 printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; }
11523 if test ${gl_cv_decl_null_works+y}
11524 then :
11525 printf %s "(cached) " >&6
11526 else case e in #(
11527 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11528 /* end confdefs.h. */
11529 #include <stddef.h>
11530 int test[2 * (sizeof NULL == sizeof (void *)) -1];
11531
11532 int
11533 main (void)
11534 {
11535
11536 ;
11537 return 0;
11538 }
11539 _ACEOF
11540 if ac_fn_c_try_compile "$LINENO"
11541 then :
11542 gl_cv_decl_null_works=yes
11543 else case e in #(
11544 e) gl_cv_decl_null_works=no ;;
11545 esac
11546 fi
11547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11548 esac
11549 fi
11550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
11551 printf "%s\n" "$gl_cv_decl_null_works" >&6; }
11552 if test $gl_cv_decl_null_works = no; then
11553 REPLACE_NULL=1
11554 GL_GENERATE_STDDEF_H=true
11555 fi
11556
11557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unreachable in C" >&5
11558 printf %s "checking for unreachable in C... " >&6; }
11559 if test ${gl_cv_c_func_unreachable+y}
11560 then :
11561 printf %s "(cached) " >&6
11562 else case e in #(
11563 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11564 /* end confdefs.h. */
11565 #include <stddef.h>
11566
11567 int
11568 main (void)
11569 {
11570 unreachable ();
11571
11572 ;
11573 return 0;
11574 }
11575 _ACEOF
11576 if ac_fn_c_try_link "$LINENO"
11577 then :
11578 gl_cv_c_func_unreachable=yes
11579 else case e in #(
11580 e) gl_cv_c_func_unreachable=no ;;
11581 esac
11582 fi
11583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11584 conftest$ac_exeext conftest.$ac_ext
11585 ;;
11586 esac
11587 fi
11588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_func_unreachable" >&5
11589 printf "%s\n" "$gl_cv_c_func_unreachable" >&6; }
11590 if test $gl_cv_c_func_unreachable = no; then
11591 GL_GENERATE_STDDEF_H=true
11592 HAVE_C_UNREACHABLE=0
11593 else
11594 HAVE_C_UNREACHABLE=1
11595 fi
11596
11597 GL_GENERATE_STDDEF_H=true
11598
11599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether nullptr_t needs <stddef.h>" >&5
11600 printf %s "checking whether nullptr_t needs <stddef.h>... " >&6; }
11601 if test ${gl_cv_nullptr_t_needs_stddef+y}
11602 then :
11603 printf %s "(cached) " >&6
11604 else case e in #(
11605 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11606 /* end confdefs.h. */
11607 nullptr_t x;
11608 _ACEOF
11609 if ac_fn_c_try_compile "$LINENO"
11610 then :
11611 gl_cv_nullptr_t_needs_stddef=no
11612 else case e in #(
11613 e) gl_cv_nullptr_t_needs_stddef=yes ;;
11614 esac
11615 fi
11616 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11617 esac
11618 fi
11619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_nullptr_t_needs_stddef" >&5
11620 printf "%s\n" "$gl_cv_nullptr_t_needs_stddef" >&6; }
11621 if test "$gl_cv_nullptr_t_needs_stddef" = no; then
11622 NULLPTR_T_NEEDS_STDDEF=0
11623 GL_GENERATE_STDDEF_H=true
11624 fi
11625
11626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <stddef.h> is idempotent" >&5
11627 printf %s "checking whether <stddef.h> is idempotent... " >&6; }
11628 if test ${gl_cv_stddef_idempotent+y}
11629 then :
11630 printf %s "(cached) " >&6
11631 else case e in #(
11632 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h. */
11634
11635 #if \
11636 ((__GNUC__ == 13 && __GNUC_MINOR__ <= 3) \
11637 || (__GNUC__ == 14 && __GNUC_MINOR__ <= 2))
11638 #error "bug 114870 is present"
11639 #endif
11640
11641 _ACEOF
11642 if ac_fn_c_try_compile "$LINENO"
11643 then :
11644 gl_cv_stddef_idempotent="guessing yes"
11645 else case e in #(
11646 e) gl_cv_stddef_idempotent="guessing no" ;;
11647 esac
11648 fi
11649 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11650 ;;
11651 esac
11652 fi
11653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_stddef_idempotent" >&5
11654 printf "%s\n" "$gl_cv_stddef_idempotent" >&6; }
11655 case "$gl_cv_stddef_idempotent" in
11656 *yes) ;;
11657 *) STDDEF_NOT_IDEMPOTENT=1
11658 GL_GENERATE_STDDEF_H=true
11659 ;;
11660 esac
11661
11662 if $GL_GENERATE_STDDEF_H; then
11663
11664
11665
11666
11667
11668
11669
11670
11671 if test $gl_cv_have_include_next = yes; then
11672 gl_cv_next_stddef_h='<'stddef.h'>'
11673 else
11674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
11675 printf %s "checking absolute name of <stddef.h>... " >&6; }
11676 if test ${gl_cv_next_stddef_h+y}
11677 then :
11678 printf %s "(cached) " >&6
11679 else case e in #(
11680 e)
11681
11682
11683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11684 /* end confdefs.h. */
11685 #include <stddef.h>
11686 _ACEOF
11687 case "$host_os" in
11688 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11689 *) gl_absname_cpp="$ac_cpp" ;;
11690 esac
11691
11692 case "$host_os" in
11693 mingw* | windows*)
11694 gl_dirsep_regex='[/\\]'
11695 ;;
11696 *)
11697 gl_dirsep_regex='\/'
11698 ;;
11699 esac
11700 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11701 gl_header_literal_regex=`echo 'stddef.h' \
11702 | sed -e "$gl_make_literal_regex_sed"`
11703 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11704 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11705 s|^/[^/]|//&|
11706 p
11707 q
11708 }'
11709
11710 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11711 sed -n "$gl_absolute_header_sed"`
11712
11713 gl_header=$gl_cv_absolute_stddef_h
11714 gl_cv_next_stddef_h='"'$gl_header'"'
11715
11716 ;;
11717 esac
11718 fi
11719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
11720 printf "%s\n" "$gl_cv_next_stddef_h" >&6; }
11721 fi
11722 NEXT_STDDEF_H=$gl_cv_next_stddef_h
11723
11724 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11725 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11726 gl_next_as_first_directive='<'stddef.h'>'
11727 else
11728 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11729 gl_next_as_first_directive=$gl_cv_next_stddef_h
11730 fi
11731 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
11732
11733
11734
11735
11736 fi
11737
11738
11739
11740
11741
11742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
11743 printf %s "checking whether locale.h defines locale_t... " >&6; }
11744 if test ${gl_cv_header_locale_has_locale_t+y}
11745 then :
11746 printf %s "(cached) " >&6
11747 else case e in #(
11748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11749 /* end confdefs.h. */
11750 #include <locale.h>
11751 locale_t x;
11752 int
11753 main (void)
11754 {
11755
11756 ;
11757 return 0;
11758 }
11759 _ACEOF
11760 if ac_fn_c_try_compile "$LINENO"
11761 then :
11762 gl_cv_header_locale_has_locale_t=yes
11763 else case e in #(
11764 e) gl_cv_header_locale_has_locale_t=no ;;
11765 esac
11766 fi
11767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11768 ;;
11769 esac
11770 fi
11771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
11772 printf "%s\n" "$gl_cv_header_locale_has_locale_t" >&6; }
11773
11774
11775 if test $ac_cv_header_xlocale_h = yes; then
11776 HAVE_XLOCALE_H=1
11777 if test $gl_cv_header_locale_has_locale_t = yes; then
11778 gl_cv_header_locale_h_needs_xlocale_h=no
11779 else
11780 gl_cv_header_locale_h_needs_xlocale_h=yes
11781 fi
11782 HAVE_LOCALE_T=1
11783 else
11784 HAVE_XLOCALE_H=0
11785 gl_cv_header_locale_h_needs_xlocale_h=no
11786 if test $gl_cv_header_locale_has_locale_t = yes; then
11787 HAVE_LOCALE_T=1
11788 else
11789 HAVE_LOCALE_T=0
11790 fi
11791 fi
11792
11793
11794
11795
11796
11797
11798
11799
11800
11801
11802
11803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines _locale_t" >&5
11804 printf %s "checking whether locale.h defines _locale_t... " >&6; }
11805 if test ${gl_cv_header_locale_has_windows_locale_t+y}
11806 then :
11807 printf %s "(cached) " >&6
11808 else case e in #(
11809 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11810 /* end confdefs.h. */
11811 #include <locale.h>
11812 _locale_t x;
11813 int
11814 main (void)
11815 {
11816
11817 ;
11818 return 0;
11819 }
11820 _ACEOF
11821 if ac_fn_c_try_compile "$LINENO"
11822 then :
11823 gl_cv_header_locale_has_windows_locale_t=yes
11824 else case e in #(
11825 e) gl_cv_header_locale_has_windows_locale_t=no ;;
11826 esac
11827 fi
11828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11829 ;;
11830 esac
11831 fi
11832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_windows_locale_t" >&5
11833 printf "%s\n" "$gl_cv_header_locale_has_windows_locale_t" >&6; }
11834 if test $gl_cv_header_locale_has_windows_locale_t = yes; then
11835 HAVE_WINDOWS_LOCALE_T=1
11836
11837 printf "%s\n" "#define HAVE_WINDOWS_LOCALE_T 1" >>confdefs.h
11838
11839 else
11840 HAVE_WINDOWS_LOCALE_T=0
11841 fi
11842
11843
11844
11845 case "$host_os" in
11846 solaris*)
11847
11848 printf "%s\n" "#define _LCONV_C99 1" >>confdefs.h
11849
11850 ;;
11851 esac
11852
11853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
11854 printf %s "checking whether locale.h conforms to POSIX:2001... " >&6; }
11855 if test ${gl_cv_header_locale_h_posix2001+y}
11856 then :
11857 printf %s "(cached) " >&6
11858 else case e in #(
11859 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11860 /* end confdefs.h. */
11861 #include <locale.h>
11862 int x = LC_MESSAGES;
11863 int y = sizeof (((struct lconv *) 0)->decimal_point);
11864 int
11865 main (void)
11866 {
11867
11868 ;
11869 return 0;
11870 }
11871 _ACEOF
11872 if ac_fn_c_try_compile "$LINENO"
11873 then :
11874 gl_cv_header_locale_h_posix2001=yes
11875 else case e in #(
11876 e) gl_cv_header_locale_h_posix2001=no ;;
11877 esac
11878 fi
11879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11880 esac
11881 fi
11882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
11883 printf "%s\n" "$gl_cv_header_locale_h_posix2001" >&6; }
11884
11885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
11886 printf %s "checking whether struct lconv is properly defined... " >&6; }
11887 if test ${gl_cv_sys_struct_lconv_ok+y}
11888 then :
11889 printf %s "(cached) " >&6
11890 else case e in #(
11891 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11892 /* end confdefs.h. */
11893 #include <locale.h>
11894 struct lconv l;
11895 int x = sizeof (l.decimal_point);
11896 int y = sizeof (l.int_p_cs_precedes);
11897 int
11898 main (void)
11899 {
11900
11901 ;
11902 return 0;
11903 }
11904 _ACEOF
11905 if ac_fn_c_try_compile "$LINENO"
11906 then :
11907 gl_cv_sys_struct_lconv_ok=yes
11908 else case e in #(
11909 e) gl_cv_sys_struct_lconv_ok=no ;;
11910 esac
11911 fi
11912 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11913 ;;
11914 esac
11915 fi
11916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
11917 printf "%s\n" "$gl_cv_sys_struct_lconv_ok" >&6; }
11918 if test $gl_cv_sys_struct_lconv_ok = no; then
11919 case "$host_os" in
11920 windows*-msvc*)
11921 ;;
11922 mingw* | windows*)
11923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11924 /* end confdefs.h. */
11925
11926 #ifdef _MSC_VER
11927 Special
11928 #endif
11929
11930 _ACEOF
11931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11932 $EGREP_TRADITIONAL "Special" >/dev/null 2>&1
11933 then :
11934
11935 else case e in #(
11936 e) REPLACE_STRUCT_LCONV=1 ;;
11937 esac
11938 fi
11939 rm -rf conftest*
11940
11941 ;;
11942 *) REPLACE_STRUCT_LCONV=1 ;;
11943 esac
11944 fi
11945
11946
11947
11948
11949
11950
11951
11952
11953
11954 if test $gl_cv_have_include_next = yes; then
11955 gl_cv_next_locale_h='<'locale.h'>'
11956 else
11957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
11958 printf %s "checking absolute name of <locale.h>... " >&6; }
11959 if test ${gl_cv_next_locale_h+y}
11960 then :
11961 printf %s "(cached) " >&6
11962 else case e in #(
11963 e)
11964
11965
11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11967 /* end confdefs.h. */
11968 #include <locale.h>
11969 _ACEOF
11970 case "$host_os" in
11971 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11972 *) gl_absname_cpp="$ac_cpp" ;;
11973 esac
11974
11975 case "$host_os" in
11976 mingw* | windows*)
11977 gl_dirsep_regex='[/\\]'
11978 ;;
11979 *)
11980 gl_dirsep_regex='\/'
11981 ;;
11982 esac
11983 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11984 gl_header_literal_regex=`echo 'locale.h' \
11985 | sed -e "$gl_make_literal_regex_sed"`
11986 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11987 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11988 s|^/[^/]|//&|
11989 p
11990 q
11991 }'
11992
11993 gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11994 sed -n "$gl_absolute_header_sed"`
11995
11996 gl_header=$gl_cv_absolute_locale_h
11997 gl_cv_next_locale_h='"'$gl_header'"'
11998
11999 ;;
12000 esac
12001 fi
12002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
12003 printf "%s\n" "$gl_cv_next_locale_h" >&6; }
12004 fi
12005 NEXT_LOCALE_H=$gl_cv_next_locale_h
12006
12007 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12008 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12009 gl_next_as_first_directive='<'locale.h'>'
12010 else
12011 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12012 gl_next_as_first_directive=$gl_cv_next_locale_h
12013 fi
12014 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026 GL_GNULIB_LOCALECONV=0
12027
12028
12029
12030 GL_GNULIB_SETLOCALE=0
12031
12032
12033
12034 GL_GNULIB_SETLOCALE_NULL=0
12035
12036
12037
12038 GL_GNULIB_NEWLOCALE=0
12039
12040
12041
12042 GL_GNULIB_DUPLOCALE=0
12043
12044
12045
12046 GL_GNULIB_FREELOCALE=0
12047
12048
12049
12050 GL_GNULIB_GETLOCALENAME_L=0
12051
12052
12053
12054 GL_GNULIB_GETLOCALENAME_L_UNSAFE=0
12055
12056
12057
12058 GL_GNULIB_LOCALENAME_UNSAFE=0
12059
12060
12061
12062
12063
12064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
12065 printf %s "checking whether lstat correctly handles trailing slash... " >&6; }
12066 if test ${gl_cv_func_lstat_dereferences_slashed_symlink+y}
12067 then :
12068 printf %s "(cached) " >&6
12069 else case e in #(
12070 e) rm -f conftest.sym conftest.file
12071 echo >conftest.file
12072 if test "$cross_compiling" = yes
12073 then :
12074 case "$host_os" in
12075 linux-* | linux)
12076 # Guess yes on Linux systems.
12077 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
12078 midipix*)
12079 # Guess yes on systems that emulate the Linux system calls.
12080 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
12081 *-gnu* | gnu*)
12082 # Guess yes on glibc systems.
12083 gl_cv_func_lstat_dereferences_slashed_symlink="guessing yes" ;;
12084 mingw* | windows*)
12085 # Guess no on native Windows.
12086 gl_cv_func_lstat_dereferences_slashed_symlink="guessing no" ;;
12087 *)
12088 # If we don't know, obey --enable-cross-guesses.
12089 gl_cv_func_lstat_dereferences_slashed_symlink="$gl_cross_guess_normal" ;;
12090 esac
12091
12092 else case e in #(
12093 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095 $ac_includes_default
12096 int
12097 main (void)
12098 {
12099 struct stat sbuf;
12100 if (symlink ("conftest.file", "conftest.sym") != 0)
12101 return 1;
12102 /* Linux will dereference the symlink and fail, as required by
12103 POSIX. That is better in the sense that it means we will not
12104 have to compile and use the lstat wrapper. */
12105 return lstat ("conftest.sym/", &sbuf) == 0;
12106
12107 ;
12108 return 0;
12109 }
12110 _ACEOF
12111 if ac_fn_c_try_run "$LINENO"
12112 then :
12113 gl_cv_func_lstat_dereferences_slashed_symlink=yes
12114 else case e in #(
12115 e) gl_cv_func_lstat_dereferences_slashed_symlink=no ;;
12116 esac
12117 fi
12118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12119 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12120 esac
12121 fi
12122
12123 rm -f conftest.sym conftest.file
12124 ;;
12125 esac
12126 fi
12127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lstat_dereferences_slashed_symlink" >&5
12128 printf "%s\n" "$gl_cv_func_lstat_dereferences_slashed_symlink" >&6; }
12129 case "$gl_cv_func_lstat_dereferences_slashed_symlink" in
12130 *yes)
12131
12132 printf "%s\n" "#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1" >>confdefs.h
12133
12134 ;;
12135 esac
12136
12137
12138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5
12139 printf %s "checking whether malloc is ptrdiff_t safe... " >&6; }
12140 if test ${gl_cv_malloc_ptrdiff+y}
12141 then :
12142 printf %s "(cached) " >&6
12143 else case e in #(
12144 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12145 /* end confdefs.h. */
12146 #include <stdint.h>
12147
12148 int
12149 main (void)
12150 {
12151 /* 64-bit ptrdiff_t is so wide that no practical platform
12152 can exceed it. */
12153 #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0)
12154
12155 /* On rare machines where size_t fits in ptrdiff_t there
12156 is no problem. */
12157 #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX)
12158
12159 /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t
12160 bounds even on 32-bit platforms. We don't know which
12161 non-glibc systems are safe. */
12162 #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__))
12163
12164 #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE
12165 return 0;
12166 #else
12167 #error "malloc might not be ptrdiff_t safe"
12168 syntax error
12169 #endif
12170
12171 ;
12172 return 0;
12173 }
12174 _ACEOF
12175 if ac_fn_c_try_compile "$LINENO"
12176 then :
12177 gl_cv_malloc_ptrdiff=yes
12178 else case e in #(
12179 e) gl_cv_malloc_ptrdiff=no ;;
12180 esac
12181 fi
12182 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12183 ;;
12184 esac
12185 fi
12186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5
12187 printf "%s\n" "$gl_cv_malloc_ptrdiff" >&6; }
12188
12189
12190
12191
12192 if test "$gl_cv_malloc_ptrdiff" = yes
12193 then :
12194
12195 printf "%s\n" "#define HAVE_MALLOC_PTRDIFF 1" >>confdefs.h
12196
12197 else case e in #(
12198 e) REPLACE_MALLOC_FOR_MALLOC_POSIX=1 ;;
12199 esac
12200 fi
12201
12202
12203
12204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, calloc set errno on failure" >&5
12205 printf %s "checking whether malloc, calloc set errno on failure... " >&6; }
12206 if test ${gl_cv_func_malloc_posix+y}
12207 then :
12208 printf %s "(cached) " >&6
12209 else case e in #(
12210 e)
12211 case "$host_os" in
12212 mingw* | windows*)
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12215 #include <stdio.h>
12216 #ifndef _UCRT
12217 msvcrt yuck
12218 #endif
12219
12220 int
12221 main (void)
12222 {
12223
12224 ;
12225 return 0;
12226 }
12227
12228 _ACEOF
12229 if ac_fn_c_try_compile "$LINENO"
12230 then :
12231 gl_cv_func_malloc_posix="guessing yes"
12232 else case e in #(
12233 e) gl_cv_func_malloc_posix="guessing no" ;;
12234 esac
12235 fi
12236 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12237 ;;
12238 solaris*)
12239
12240
12241 gl_cv_func_malloc_posix=no ;;
12242 *)
12243 gl_cv_func_malloc_posix=yes ;;
12244 esac
12245 ;;
12246 esac
12247 fi
12248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
12249 printf "%s\n" "$gl_cv_func_malloc_posix" >&6; }
12250
12251
12252
12253
12254
12255 case "$gl_cv_func_malloc_posix" in
12256 *yes)
12257
12258 printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
12259
12260 ;;
12261 *)
12262 REPLACE_MALLOC_FOR_MALLOC_POSIX=1
12263 ;;
12264 esac
12265
12266
12267
12268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
12269 printf %s "checking whether malloc (0) returns nonnull... " >&6; }
12270 if test ${ac_cv_func_malloc_0_nonnull+y}
12271 then :
12272 printf %s "(cached) " >&6
12273 else case e in #(
12274 e) if test "$cross_compiling" = yes
12275 then :
12276 case $host_os in #(
12277 # Guess yes on platforms where we know the result.
12278 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
12279 | gnu* | *-musl* | midipix* | midnightbsd* \
12280 | hpux* | solaris* | cygwin* | mingw* | windows* | msys*) :
12281 ac_cv_func_malloc_0_nonnull="guessing yes" ;; #(
12282 *) :
12283 # Guess as follows if we don't know.
12284 ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
12285 esac
12286 else case e in #(
12287 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12288 /* end confdefs.h. */
12289 #include <stdlib.h>
12290 /* Use pmalloc to test; 'volatile' prevents the compiler
12291 from optimizing the malloc call away. */
12292 void *(*volatile pmalloc) (size_t) = malloc;
12293 int
12294 main (void)
12295 {
12296 void *p = pmalloc (0);
12297 int result = !p;
12298 free (p);
12299 return result;
12300 ;
12301 return 0;
12302 }
12303 _ACEOF
12304 if ac_fn_c_try_run "$LINENO"
12305 then :
12306 ac_cv_func_malloc_0_nonnull=yes
12307 else case e in #(
12308 e) ac_cv_func_malloc_0_nonnull=no ;;
12309 esac
12310 fi
12311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12312 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12313 esac
12314 fi
12315 ;;
12316 esac
12317 fi
12318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
12319 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
12320 case $ac_cv_func_malloc_0_nonnull in #(
12321 *yes) :
12322
12323 printf "%s\n" "#define HAVE_MALLOC_0_NONNULL 1" >>confdefs.h
12324 ;; #(
12325 *) :
12326 ;;
12327 esac
12328
12329
12330
12331
12332
12333
12334
12335 case $ac_cv_func_malloc_0_nonnull in #(
12336 *yes) :
12337 REPLACE_MALLOC_FOR_MALLOC_GNU=$REPLACE_MALLOC_FOR_MALLOC_POSIX ;; #(
12338 *) :
12339 REPLACE_MALLOC_FOR_MALLOC_GNU=1 ;;
12340 esac
12341
12342
12343
12344
12345
12346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
12347 printf %s "checking whether the compiler produces multi-arch binaries... " >&6; }
12348 if test ${gl_cv_c_multiarch+y}
12349 then :
12350 printf %s "(cached) " >&6
12351 else case e in #(
12352 e) gl_cv_c_multiarch=no
12353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12354 /* end confdefs.h. */
12355 #ifndef __APPLE_CC__
12356 not a universal capable compiler
12357 #endif
12358 typedef int dummy;
12359
12360 _ACEOF
12361 if ac_fn_c_try_compile "$LINENO"
12362 then :
12363
12364 arch=
12365 prev=
12366 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
12367 if test -n "$prev"; then
12368 case $word in
12369 i?86 | x86_64 | ppc | ppc64 | arm | arm64)
12370 if test -z "$arch" || test "$arch" = "$word"; then
12371 arch="$word"
12372 else
12373 gl_cv_c_multiarch=yes
12374 fi
12375 ;;
12376 esac
12377 prev=
12378 else
12379 if test "x$word" = "x-arch"; then
12380 prev=arch
12381 fi
12382 fi
12383 done
12384
12385 fi
12386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12387 ;;
12388 esac
12389 fi
12390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
12391 printf "%s\n" "$gl_cv_c_multiarch" >&6; }
12392 if test $gl_cv_c_multiarch = yes; then
12393 APPLE_UNIVERSAL_BUILD=1
12394 else
12395 APPLE_UNIVERSAL_BUILD=0
12396 fi
12397
12398
12399
12400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
12401 printf %s "checking for O_CLOEXEC... " >&6; }
12402 if test ${gl_cv_macro_O_CLOEXEC+y}
12403 then :
12404 printf %s "(cached) " >&6
12405 else case e in #(
12406 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12407 /* end confdefs.h. */
12408 #include <fcntl.h>
12409 #ifndef O_CLOEXEC
12410 choke me;
12411 #endif
12412
12413 int
12414 main (void)
12415 {
12416 return O_CLOEXEC;
12417 ;
12418 return 0;
12419 }
12420 _ACEOF
12421 if ac_fn_c_try_compile "$LINENO"
12422 then :
12423 gl_cv_macro_O_CLOEXEC=yes
12424 else case e in #(
12425 e) gl_cv_macro_O_CLOEXEC=no ;;
12426 esac
12427 fi
12428 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12429 esac
12430 fi
12431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
12432 printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; }
12433
12434
12435
12436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
12437 printf %s "checking for promoted mode_t type... " >&6; }
12438 if test ${gl_cv_promoted_mode_t+y}
12439 then :
12440 printf %s "(cached) " >&6
12441 else case e in #(
12442 e)
12443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12444 /* end confdefs.h. */
12445 #include <sys/types.h>
12446 int
12447 main (void)
12448 {
12449 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
12450 ;
12451 return 0;
12452 }
12453 _ACEOF
12454 if ac_fn_c_try_compile "$LINENO"
12455 then :
12456 gl_cv_promoted_mode_t='int'
12457 else case e in #(
12458 e) gl_cv_promoted_mode_t='mode_t' ;;
12459 esac
12460 fi
12461 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
12462 ;;
12463 esac
12464 fi
12465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
12466 printf "%s\n" "$gl_cv_promoted_mode_t" >&6; }
12467
12468 printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h
12469
12470
12471
12472
12473
12474
12475
12476
12477
12478
12479
12480
12481
12482
12483
12484 if test $gl_cv_have_include_next = yes; then
12485 gl_cv_next_stdckdint_h='<'stdckdint.h'>'
12486 else
12487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdckdint.h>" >&5
12488 printf %s "checking absolute name of <stdckdint.h>... " >&6; }
12489 if test ${gl_cv_next_stdckdint_h+y}
12490 then :
12491 printf %s "(cached) " >&6
12492 else case e in #(
12493 e)
12494 if test $ac_cv_header_stdckdint_h = yes; then
12495
12496
12497
12498
12499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12500 /* end confdefs.h. */
12501 #include <stdckdint.h>
12502 _ACEOF
12503 case "$host_os" in
12504 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12505 *) gl_absname_cpp="$ac_cpp" ;;
12506 esac
12507
12508 case "$host_os" in
12509 mingw* | windows*)
12510 gl_dirsep_regex='[/\\]'
12511 ;;
12512 *)
12513 gl_dirsep_regex='\/'
12514 ;;
12515 esac
12516 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12517 gl_header_literal_regex=`echo 'stdckdint.h' \
12518 | sed -e "$gl_make_literal_regex_sed"`
12519 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12520 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12521 s|^/[^/]|//&|
12522 p
12523 q
12524 }'
12525
12526 gl_cv_absolute_stdckdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12527 sed -n "$gl_absolute_header_sed"`
12528
12529 gl_header=$gl_cv_absolute_stdckdint_h
12530 gl_cv_next_stdckdint_h='"'$gl_header'"'
12531 else
12532 gl_cv_next_stdckdint_h='<'stdckdint.h'>'
12533 fi
12534
12535 ;;
12536 esac
12537 fi
12538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdckdint_h" >&5
12539 printf "%s\n" "$gl_cv_next_stdckdint_h" >&6; }
12540 fi
12541 NEXT_STDCKDINT_H=$gl_cv_next_stdckdint_h
12542
12543 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12544 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12545 gl_next_as_first_directive='<'stdckdint.h'>'
12546 else
12547 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12548 gl_next_as_first_directive=$gl_cv_next_stdckdint_h
12549 fi
12550 NEXT_AS_FIRST_DIRECTIVE_STDCKDINT_H=$gl_next_as_first_directive
12551
12552
12553
12554
12555 if test $ac_cv_header_stdckdint_h = yes; then
12556 HAVE_STDCKDINT_H=1
12557 else
12558 HAVE_STDCKDINT_H=0
12559 fi
12560
12561
12562 if test $HAVE_STDCKDINT_H = 1; then
12563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdckdint.h can be included in C" >&5
12564 printf %s "checking whether stdckdint.h can be included in C... " >&6; }
12565 if test ${gl_cv_header_c_stdckdint_h+y}
12566 then :
12567 printf %s "(cached) " >&6
12568 else case e in #(
12569 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12570 /* end confdefs.h. */
12571 #include <stdckdint.h>
12572
12573 int
12574 main (void)
12575 {
12576
12577 ;
12578 return 0;
12579 }
12580 _ACEOF
12581 if ac_fn_c_try_compile "$LINENO"
12582 then :
12583 gl_cv_header_c_stdckdint_h=yes
12584 else case e in #(
12585 e) gl_cv_header_c_stdckdint_h=no ;;
12586 esac
12587 fi
12588 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12589 esac
12590 fi
12591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_c_stdckdint_h" >&5
12592 printf "%s\n" "$gl_cv_header_c_stdckdint_h" >&6; }
12593 if test $gl_cv_header_c_stdckdint_h = yes; then
12594 HAVE_C_STDCKDINT_H=1
12595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking checking for an ISO C23 compliant stdckdint.h in C" >&5
12596 printf %s "checking checking for an ISO C23 compliant stdckdint.h in C... " >&6; }
12597 if test ${gl_cv_header_c_stdckdint_h_works+y}
12598 then :
12599 printf %s "(cached) " >&6
12600 else case e in #(
12601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12602 /* end confdefs.h. */
12603 #include <stdckdint.h>
12604
12605 int
12606 main (void)
12607 {
12608 int r;
12609 int a = 1;
12610 int b = 1;
12611 return !!(ckd_add (&r, a, b) || ckd_sub (&r, a, b)
12612 || ckd_mul (&r, a, b));
12613
12614 ;
12615 return 0;
12616 }
12617 _ACEOF
12618 if ac_fn_c_try_compile "$LINENO"
12619 then :
12620 gl_cv_header_c_stdckdint_h_works=yes
12621 else case e in #(
12622 e) gl_cv_header_c_stdckdint_h_works=no ;;
12623 esac
12624 fi
12625 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12626 esac
12627 fi
12628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_c_stdckdint_h_works" >&5
12629 printf "%s\n" "$gl_cv_header_c_stdckdint_h_works" >&6; }
12630 if test $gl_cv_header_c_stdckdint_h_works = yes; then
12631 HAVE_WORKING_C_STDCKDINT_H=1
12632 else
12633 HAVE_WORKING_C_STDCKDINT_H=0
12634 fi
12635 else
12636 HAVE_C_STDCKDINT_H=0
12637 HAVE_WORKING_C_STDCKDINT_H=0
12638 fi
12639 if test "$CXX" != no; then
12640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdckdint.h can be included in C++" >&5
12641 printf %s "checking whether stdckdint.h can be included in C++... " >&6; }
12642 if test ${gl_cv_header_cxx_stdckdint_h+y}
12643 then :
12644 printf %s "(cached) " >&6
12645 else case e in #(
12646 e) cat > conftest.cpp <<\EOF
12647 #include <stdckdint.h>
12648 EOF
12649 gl_command="$CXX $CXXFLAGS $CPPFLAGS -c conftest.cpp"
12650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
12651 (eval $gl_command) 2>&5
12652 ac_status=$?
12653 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12654 test $ac_status = 0; }; then
12655 gl_cv_header_cxx_stdckdint_h=yes
12656 else
12657 gl_cv_header_cxx_stdckdint_h=no
12658 fi
12659 rm -fr conftest*
12660 ;;
12661 esac
12662 fi
12663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_cxx_stdckdint_h" >&5
12664 printf "%s\n" "$gl_cv_header_cxx_stdckdint_h" >&6; }
12665 if test $gl_cv_header_cxx_stdckdint_h = yes; then
12666 HAVE_CXX_STDCKDINT_H=1
12667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking checking for an ISO C++26 compliant stdckdint.h in C++" >&5
12668 printf %s "checking checking for an ISO C++26 compliant stdckdint.h in C++... " >&6; }
12669 if test ${gl_cv_header_cxx_stdckdint_h_works+y}
12670 then :
12671 printf %s "(cached) " >&6
12672 else case e in #(
12673 e) cat > conftest.cpp <<\EOF
12674 #include <stdckdint.h>
12675 int
12676 main (void)
12677 {
12678 int r;
12679 int a = 1;
12680 int b = 1;
12681 return !!(ckd_add (&r, a, b) || ckd_sub (&r, a, b) || ckd_mul (&r, a, b));
12682 }
12683 EOF
12684 gl_command="$CXX $CXXFLAGS $CPPFLAGS -c conftest.cpp"
12685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
12686 (eval $gl_command) 2>&5
12687 ac_status=$?
12688 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12689 test $ac_status = 0; }; then
12690 gl_cv_header_cxx_stdckdint_h_works=yes
12691 else
12692 gl_cv_header_cxx_stdckdint_h_works=no
12693 fi
12694 rm -fr conftest*
12695 ;;
12696 esac
12697 fi
12698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_cxx_stdckdint_h_works" >&5
12699 printf "%s\n" "$gl_cv_header_cxx_stdckdint_h_works" >&6; }
12700 if test $gl_cv_header_cxx_stdckdint_h_works = yes; then
12701 HAVE_WORKING_CXX_STDCKDINT_H=1
12702 else
12703 HAVE_WORKING_CXX_STDCKDINT_H=0
12704 fi
12705 else
12706 HAVE_CXX_STDCKDINT_H=0
12707 HAVE_WORKING_CXX_STDCKDINT_H=0
12708 fi
12709 fi
12710 else
12711 HAVE_C_STDCKDINT_H=0
12712 HAVE_WORKING_C_STDCKDINT_H=0
12713 HAVE_CXX_STDCKDINT_H=0
12714 HAVE_WORKING_CXX_STDCKDINT_H=0
12715 fi
12716
12717
12718
12719
12720
12721 if test "$CXX" != no; then
12722 if test $HAVE_C_STDCKDINT_H = 1 \
12723 && test $HAVE_WORKING_C_STDCKDINT_H = 1 \
12724 && test $HAVE_CXX_STDCKDINT_H = 1 \
12725 && test $HAVE_WORKING_CXX_STDCKDINT_H = 1; then
12726 GL_GENERATE_STDCKDINT_H=false
12727 else
12728 GL_GENERATE_STDCKDINT_H=true
12729 fi
12730 else
12731 if test $HAVE_C_STDCKDINT_H = 1 \
12732 && test $HAVE_WORKING_C_STDCKDINT_H = 1; then
12733 GL_GENERATE_STDCKDINT_H=false
12734 else
12735 GL_GENERATE_STDCKDINT_H=true
12736 fi
12737 fi
12738
12739
12740
12741
12742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
12743 printf %s "checking for wint_t... " >&6; }
12744 if test ${gt_cv_c_wint_t+y}
12745 then :
12746 printf %s "(cached) " >&6
12747 else case e in #(
12748 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12749 /* end confdefs.h. */
12750 #include <wchar.h>
12751 wint_t foo = (wchar_t)'\0';
12752 int
12753 main (void)
12754 {
12755
12756 ;
12757 return 0;
12758 }
12759 _ACEOF
12760 if ac_fn_c_try_compile "$LINENO"
12761 then :
12762 gt_cv_c_wint_t=yes
12763 else case e in #(
12764 e) gt_cv_c_wint_t=no ;;
12765 esac
12766 fi
12767 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12768 esac
12769 fi
12770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
12771 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
12772 if test $gt_cv_c_wint_t = yes; then
12773
12774 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
12775
12776
12777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
12778 printf %s "checking whether wint_t is large enough... " >&6; }
12779 if test ${gl_cv_type_wint_t_large_enough+y}
12780 then :
12781 printf %s "(cached) " >&6
12782 else case e in #(
12783 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12784 /* end confdefs.h. */
12785 #include <wchar.h>
12786 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
12787
12788 int
12789 main (void)
12790 {
12791
12792 ;
12793 return 0;
12794 }
12795 _ACEOF
12796 if ac_fn_c_try_compile "$LINENO"
12797 then :
12798 gl_cv_type_wint_t_large_enough=yes
12799 else case e in #(
12800 e) gl_cv_type_wint_t_large_enough=no ;;
12801 esac
12802 fi
12803 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12804 esac
12805 fi
12806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
12807 printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; }
12808 if test $gl_cv_type_wint_t_large_enough = no; then
12809 GNULIBHEADERS_OVERRIDE_WINT_T=1
12810 else
12811 GNULIBHEADERS_OVERRIDE_WINT_T=0
12812 fi
12813 else
12814 GNULIBHEADERS_OVERRIDE_WINT_T=0
12815 fi
12816
12817
12818
12819
12820
12821
12822
12823
12824 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
12825
12826
12827 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
12828
12829
12830
12831 if test $ac_cv_header_wchar_h = yes; then
12832 HAVE_WCHAR_H=1
12833 else
12834 HAVE_WCHAR_H=0
12835 fi
12836
12837
12838
12839 if test $ac_cv_header_inttypes_h = yes; then
12840 HAVE_INTTYPES_H=1
12841 else
12842 HAVE_INTTYPES_H=0
12843 fi
12844
12845
12846
12847 if test $ac_cv_header_sys_types_h = yes; then
12848 HAVE_SYS_TYPES_H=1
12849 else
12850 HAVE_SYS_TYPES_H=0
12851 fi
12852
12853
12854
12855
12856
12857
12858
12859
12860
12861
12862
12863 if test $gl_cv_have_include_next = yes; then
12864 gl_cv_next_stdint_h='<'stdint.h'>'
12865 else
12866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
12867 printf %s "checking absolute name of <stdint.h>... " >&6; }
12868 if test ${gl_cv_next_stdint_h+y}
12869 then :
12870 printf %s "(cached) " >&6
12871 else case e in #(
12872 e)
12873 if test $ac_cv_header_stdint_h = yes; then
12874
12875
12876
12877
12878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12879 /* end confdefs.h. */
12880 #include <stdint.h>
12881 _ACEOF
12882 case "$host_os" in
12883 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12884 *) gl_absname_cpp="$ac_cpp" ;;
12885 esac
12886
12887 case "$host_os" in
12888 mingw* | windows*)
12889 gl_dirsep_regex='[/\\]'
12890 ;;
12891 *)
12892 gl_dirsep_regex='\/'
12893 ;;
12894 esac
12895 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12896 gl_header_literal_regex=`echo 'stdint.h' \
12897 | sed -e "$gl_make_literal_regex_sed"`
12898 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12899 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12900 s|^/[^/]|//&|
12901 p
12902 q
12903 }'
12904
12905 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12906 sed -n "$gl_absolute_header_sed"`
12907
12908 gl_header=$gl_cv_absolute_stdint_h
12909 gl_cv_next_stdint_h='"'$gl_header'"'
12910 else
12911 gl_cv_next_stdint_h='<'stdint.h'>'
12912 fi
12913
12914 ;;
12915 esac
12916 fi
12917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
12918 printf "%s\n" "$gl_cv_next_stdint_h" >&6; }
12919 fi
12920 NEXT_STDINT_H=$gl_cv_next_stdint_h
12921
12922 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12923 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12924 gl_next_as_first_directive='<'stdint.h'>'
12925 else
12926 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12927 gl_next_as_first_directive=$gl_cv_next_stdint_h
12928 fi
12929 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
12930
12931
12932
12933
12934 if test $ac_cv_header_stdint_h = yes; then
12935 HAVE_STDINT_H=1
12936 else
12937 HAVE_STDINT_H=0
12938 fi
12939
12940
12941 if test $ac_cv_header_stdint_h = yes; then
12942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
12943 printf %s "checking whether stdint.h conforms to C99... " >&6; }
12944 if test ${gl_cv_header_working_stdint_h+y}
12945 then :
12946 printf %s "(cached) " >&6
12947 else case e in #(
12948 e) gl_cv_header_working_stdint_h=no
12949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12950 /* end confdefs.h. */
12951
12952
12953 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
12954 #define __STDC_CONSTANT_MACROS 1
12955 #define __STDC_LIMIT_MACROS 1
12956 #include <stdint.h>
12957 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
12958 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
12959 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
12960 #endif
12961
12962
12963 #include <stddef.h>
12964 #include <signal.h>
12965 #if HAVE_WCHAR_H
12966 # include <wchar.h>
12967 #endif
12968
12969
12970 #ifdef INT8_MAX
12971 int8_t a1 = INT8_MAX;
12972 int8_t a1min = INT8_MIN;
12973 #endif
12974 #ifdef INT16_MAX
12975 int16_t a2 = INT16_MAX;
12976 int16_t a2min = INT16_MIN;
12977 #endif
12978 #ifdef INT32_MAX
12979 int32_t a3 = INT32_MAX;
12980 int32_t a3min = INT32_MIN;
12981 #endif
12982 #ifdef INT64_MAX
12983 int64_t a4 = INT64_MAX;
12984 int64_t a4min = INT64_MIN;
12985 #endif
12986 #ifdef UINT8_MAX
12987 uint8_t b1 = UINT8_MAX;
12988 #else
12989 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
12990 #endif
12991 #ifdef UINT16_MAX
12992 uint16_t b2 = UINT16_MAX;
12993 #endif
12994 #ifdef UINT32_MAX
12995 uint32_t b3 = UINT32_MAX;
12996 #endif
12997 #ifdef UINT64_MAX
12998 uint64_t b4 = UINT64_MAX;
12999 #endif
13000 int_least8_t c1 = INT8_C (0x7f);
13001 int_least8_t c1max = INT_LEAST8_MAX;
13002 int_least8_t c1min = INT_LEAST8_MIN;
13003 int_least16_t c2 = INT16_C (0x7fff);
13004 int_least16_t c2max = INT_LEAST16_MAX;
13005 int_least16_t c2min = INT_LEAST16_MIN;
13006 int_least32_t c3 = INT32_C (0x7fffffff);
13007 int_least32_t c3max = INT_LEAST32_MAX;
13008 int_least32_t c3min = INT_LEAST32_MIN;
13009 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
13010 int_least64_t c4max = INT_LEAST64_MAX;
13011 int_least64_t c4min = INT_LEAST64_MIN;
13012 uint_least8_t d1 = UINT8_C (0xff);
13013 uint_least8_t d1max = UINT_LEAST8_MAX;
13014 uint_least16_t d2 = UINT16_C (0xffff);
13015 uint_least16_t d2max = UINT_LEAST16_MAX;
13016 uint_least32_t d3 = UINT32_C (0xffffffff);
13017 uint_least32_t d3max = UINT_LEAST32_MAX;
13018 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
13019 uint_least64_t d4max = UINT_LEAST64_MAX;
13020 int_fast8_t e1 = INT_FAST8_MAX;
13021 int_fast8_t e1min = INT_FAST8_MIN;
13022 int_fast16_t e2 = INT_FAST16_MAX;
13023 int_fast16_t e2min = INT_FAST16_MIN;
13024 int_fast32_t e3 = INT_FAST32_MAX;
13025 int_fast32_t e3min = INT_FAST32_MIN;
13026 int_fast64_t e4 = INT_FAST64_MAX;
13027 int_fast64_t e4min = INT_FAST64_MIN;
13028 uint_fast8_t f1 = UINT_FAST8_MAX;
13029 uint_fast16_t f2 = UINT_FAST16_MAX;
13030 uint_fast32_t f3 = UINT_FAST32_MAX;
13031 uint_fast64_t f4 = UINT_FAST64_MAX;
13032 #ifdef INTPTR_MAX
13033 intptr_t g = INTPTR_MAX;
13034 intptr_t gmin = INTPTR_MIN;
13035 #endif
13036 #ifdef UINTPTR_MAX
13037 uintptr_t h = UINTPTR_MAX;
13038 #endif
13039 intmax_t i = INTMAX_MAX;
13040 uintmax_t j = UINTMAX_MAX;
13041
13042 /* Check that SIZE_MAX has the correct type, if possible. */
13043 /* ISO C 11 mandates _Generic, but GCC versions < 4.9 lack it. */
13044 #if 201112 <= __STDC_VERSION__ \
13045 && (!defined __GNUC__ || 4 < __GNUC__ + (9 <= __GNUC_MINOR__) \
13046 || defined __clang__)
13047 int k = _Generic (SIZE_MAX, size_t: 0);
13048 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
13049 || (0x5110 <= __SUNPRO_C && !__STDC__) || 1939 <= _MSC_VER)
13050 extern size_t k;
13051 extern __typeof__ (SIZE_MAX) k;
13052 #endif
13053
13054 #include <limits.h> /* for CHAR_BIT */
13055 #define TYPE_MINIMUM(t) \
13056 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
13057 #define TYPE_MAXIMUM(t) \
13058 ((t) ((t) 0 < (t) -1 \
13059 ? (t) -1 \
13060 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
13061 struct s {
13062 int check_PTRDIFF:
13063 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
13064 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
13065 ? 1 : -1;
13066 /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64. */
13067 int check_SIG_ATOMIC:
13068 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
13069 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
13070 ? 1 : -1;
13071 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
13072 int check_WCHAR:
13073 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
13074 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
13075 ? 1 : -1;
13076 /* Detect bug in mingw. */
13077 int check_WINT:
13078 WINT_MIN == TYPE_MINIMUM (wint_t)
13079 && WINT_MAX == TYPE_MAXIMUM (wint_t)
13080 ? 1 : -1;
13081
13082 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
13083 int check_UINT8_C:
13084 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
13085 int check_UINT16_C:
13086 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
13087
13088 /* Detect bugs in OpenBSD 3.9 stdint.h. */
13089 #ifdef UINT8_MAX
13090 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
13091 #endif
13092 #ifdef UINT16_MAX
13093 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
13094 #endif
13095 #ifdef UINT32_MAX
13096 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
13097 #endif
13098 #ifdef UINT64_MAX
13099 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
13100 #endif
13101 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
13102 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
13103 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
13104 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
13105 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
13106 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
13107 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
13108 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
13109 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
13110 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
13111 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
13112 };
13113
13114 int
13115 main (void)
13116 {
13117
13118 ;
13119 return 0;
13120 }
13121 _ACEOF
13122 if ac_fn_c_try_compile "$LINENO"
13123 then :
13124 if test "$cross_compiling" = yes
13125 then :
13126 case "$host_os" in
13127 # Guess yes on native Windows.
13128 mingw* | windows*) gl_cv_header_working_stdint_h="guessing yes" ;;
13129 # In general, assume it works.
13130 *) gl_cv_header_working_stdint_h="guessing yes" ;;
13131 esac
13132
13133 else case e in #(
13134 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* end confdefs.h. */
13136
13137
13138 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
13139 #define __STDC_CONSTANT_MACROS 1
13140 #define __STDC_LIMIT_MACROS 1
13141 #include <stdint.h>
13142
13143
13144 #include <stddef.h>
13145 #include <signal.h>
13146 #if HAVE_WCHAR_H
13147 # include <wchar.h>
13148 #endif
13149
13150
13151 #include <stdio.h>
13152 #include <string.h>
13153 #define MVAL(macro) MVAL1(macro)
13154 #define MVAL1(expression) #expression
13155 static const char *macro_values[] =
13156 {
13157 #ifdef INT8_MAX
13158 MVAL (INT8_MAX),
13159 #endif
13160 #ifdef INT16_MAX
13161 MVAL (INT16_MAX),
13162 #endif
13163 #ifdef INT32_MAX
13164 MVAL (INT32_MAX),
13165 #endif
13166 #ifdef INT64_MAX
13167 MVAL (INT64_MAX),
13168 #endif
13169 #ifdef UINT8_MAX
13170 MVAL (UINT8_MAX),
13171 #endif
13172 #ifdef UINT16_MAX
13173 MVAL (UINT16_MAX),
13174 #endif
13175 #ifdef UINT32_MAX
13176 MVAL (UINT32_MAX),
13177 #endif
13178 #ifdef UINT64_MAX
13179 MVAL (UINT64_MAX),
13180 #endif
13181 NULL
13182 };
13183
13184 int
13185 main (void)
13186 {
13187
13188 const char **mv;
13189 for (mv = macro_values; *mv != NULL; mv++)
13190 {
13191 const char *value = *mv;
13192 /* Test whether it looks like a cast expression. */
13193 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
13194 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
13195 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
13196 || strncmp (value, "((int)"/*)*/, 6) == 0
13197 || strncmp (value, "((signed short)"/*)*/, 15) == 0
13198 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
13199 return mv - macro_values + 1;
13200 }
13201 return 0;
13202
13203 ;
13204 return 0;
13205 }
13206 _ACEOF
13207 if ac_fn_c_try_run "$LINENO"
13208 then :
13209 gl_cv_header_working_stdint_h=yes
13210 fi
13211 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13212 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13213 esac
13214 fi
13215
13216
13217 fi
13218 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13219 ;;
13220 esac
13221 fi
13222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
13223 printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; }
13224 fi
13225
13226 HAVE_C99_STDINT_H=0
13227 HAVE_SYS_BITYPES_H=0
13228 HAVE_SYS_INTTYPES_H=0
13229 GL_GENERATE_STDINT_H=true
13230 case "$gl_cv_header_working_stdint_h" in
13231 *yes)
13232 HAVE_C99_STDINT_H=1
13233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
13234 printf %s "checking whether stdint.h works without ISO C predefines... " >&6; }
13235 if test ${gl_cv_header_stdint_without_STDC_macros+y}
13236 then :
13237 printf %s "(cached) " >&6
13238 else case e in #(
13239 e) gl_cv_header_stdint_without_STDC_macros=no
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242
13243
13244 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
13245 #include <stdint.h>
13246
13247
13248 #include <stddef.h>
13249 #include <signal.h>
13250 #if HAVE_WCHAR_H
13251 # include <wchar.h>
13252 #endif
13253
13254
13255 intmax_t im = INTMAX_MAX;
13256 int32_t i32 = INT32_C (0x7fffffff);
13257
13258 int
13259 main (void)
13260 {
13261
13262 ;
13263 return 0;
13264 }
13265 _ACEOF
13266 if ac_fn_c_try_compile "$LINENO"
13267 then :
13268 gl_cv_header_stdint_without_STDC_macros=yes
13269 fi
13270 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13271 ;;
13272 esac
13273 fi
13274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
13275 printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; }
13276
13277 if test $gl_cv_header_stdint_without_STDC_macros = no; then
13278
13279 printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
13280
13281
13282 printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
13283
13284 fi
13285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
13286 printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
13287 if test ${gl_cv_header_stdint_width+y}
13288 then :
13289 printf %s "(cached) " >&6
13290 else case e in #(
13291 e) gl_cv_header_stdint_width=no
13292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13293 /* end confdefs.h. */
13294
13295 /* Work if build is not clean. */
13296 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
13297 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
13298 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
13299 #endif
13300 #include <stdint.h>
13301
13302 #include <stddef.h>
13303 #include <signal.h>
13304 #if HAVE_WCHAR_H
13305 # include <wchar.h>
13306 #endif
13307
13308 int iw = UINTMAX_WIDTH;
13309
13310 int
13311 main (void)
13312 {
13313
13314 ;
13315 return 0;
13316 }
13317 _ACEOF
13318 if ac_fn_c_try_compile "$LINENO"
13319 then :
13320 gl_cv_header_stdint_width=yes
13321 fi
13322 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13323 esac
13324 fi
13325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
13326 printf "%s\n" "$gl_cv_header_stdint_width" >&6; }
13327 if test "$gl_cv_header_stdint_width" = yes; then
13328 GL_GENERATE_STDINT_H=false
13329 fi
13330 ;;
13331 *)
13332 ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
13333 if test "x$ac_cv_header_sys_inttypes_h" = xyes
13334 then :
13335 printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h
13336
13337 fi
13338 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
13339 if test "x$ac_cv_header_sys_bitypes_h" = xyes
13340 then :
13341 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
13342
13343 fi
13344
13345 if test $ac_cv_header_sys_inttypes_h = yes; then
13346 HAVE_SYS_INTTYPES_H=1
13347 fi
13348 if test $ac_cv_header_sys_bitypes_h = yes; then
13349 HAVE_SYS_BITYPES_H=1
13350 fi
13351
13352
13353 if test $APPLE_UNIVERSAL_BUILD = 0; then
13354
13355
13356 for gltype in ptrdiff_t size_t ; do
13357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
13358 printf %s "checking for bit size of $gltype... " >&6; }
13359 if eval test \${gl_cv_bitsizeof_${gltype}+y}
13360 then :
13361 printf %s "(cached) " >&6
13362 else case e in #(
13363 e) if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
13364 #include <stddef.h>
13365 #include <signal.h>
13366 #if HAVE_WCHAR_H
13367 # include <wchar.h>
13368 #endif
13369
13370 #include <limits.h>"
13371 then :
13372
13373 else case e in #(
13374 e) result=unknown ;;
13375 esac
13376 fi
13377
13378 eval gl_cv_bitsizeof_${gltype}=\$result
13379 ;;
13380 esac
13381 fi
13382 eval ac_res=\$gl_cv_bitsizeof_${gltype}
13383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13384 printf "%s\n" "$ac_res" >&6; }
13385 eval result=\$gl_cv_bitsizeof_${gltype}
13386 if test $result = unknown; then
13387 result=0
13388 fi
13389 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13390 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
13391
13392 eval BITSIZEOF_${GLTYPE}=\$result
13393 done
13394
13395
13396 fi
13397
13398
13399 for gltype in sig_atomic_t wchar_t wint_t ; do
13400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
13401 printf %s "checking for bit size of $gltype... " >&6; }
13402 if eval test \${gl_cv_bitsizeof_${gltype}+y}
13403 then :
13404 printf %s "(cached) " >&6
13405 else case e in #(
13406 e) if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
13407 #include <stddef.h>
13408 #include <signal.h>
13409 #if HAVE_WCHAR_H
13410 # include <wchar.h>
13411 #endif
13412
13413 #include <limits.h>"
13414 then :
13415
13416 else case e in #(
13417 e) result=unknown ;;
13418 esac
13419 fi
13420
13421 eval gl_cv_bitsizeof_${gltype}=\$result
13422 ;;
13423 esac
13424 fi
13425 eval ac_res=\$gl_cv_bitsizeof_${gltype}
13426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13427 printf "%s\n" "$ac_res" >&6; }
13428 eval result=\$gl_cv_bitsizeof_${gltype}
13429 if test $result = unknown; then
13430 result=0
13431 fi
13432 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13433 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
13434
13435 eval BITSIZEOF_${GLTYPE}=\$result
13436 done
13437
13438
13439
13440
13441 for gltype in sig_atomic_t wchar_t wint_t ; do
13442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
13443 printf %s "checking whether $gltype is signed... " >&6; }
13444 if eval test \${gl_cv_type_${gltype}_signed+y}
13445 then :
13446 printf %s "(cached) " >&6
13447 else case e in #(
13448 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13449 /* end confdefs.h. */
13450
13451 #include <stddef.h>
13452 #include <signal.h>
13453 #if HAVE_WCHAR_H
13454 # include <wchar.h>
13455 #endif
13456
13457 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
13458 int
13459 main (void)
13460 {
13461
13462 ;
13463 return 0;
13464 }
13465 _ACEOF
13466 if ac_fn_c_try_compile "$LINENO"
13467 then :
13468 result=yes
13469 else case e in #(
13470 e) result=no ;;
13471 esac
13472 fi
13473 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13474 eval gl_cv_type_${gltype}_signed=\$result
13475 ;;
13476 esac
13477 fi
13478 eval ac_res=\$gl_cv_type_${gltype}_signed
13479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13480 printf "%s\n" "$ac_res" >&6; }
13481 eval result=\$gl_cv_type_${gltype}_signed
13482 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13483 if test "$result" = yes; then
13484 printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h
13485
13486 eval HAVE_SIGNED_${GLTYPE}=1
13487 else
13488 eval HAVE_SIGNED_${GLTYPE}=0
13489 fi
13490 done
13491
13492
13493 gl_cv_type_ptrdiff_t_signed=yes
13494 gl_cv_type_size_t_signed=no
13495 if test $APPLE_UNIVERSAL_BUILD = 0; then
13496
13497
13498 for gltype in ptrdiff_t size_t ; do
13499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
13500 printf %s "checking for $gltype integer literal suffix... " >&6; }
13501 if eval test \${gl_cv_type_${gltype}_suffix+y}
13502 then :
13503 printf %s "(cached) " >&6
13504 else case e in #(
13505 e) eval gl_cv_type_${gltype}_suffix=no
13506 eval result=\$gl_cv_type_${gltype}_signed
13507 if test "$result" = yes; then
13508 glsufu=
13509 else
13510 glsufu=u
13511 fi
13512 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
13513 case $glsuf in
13514 '') gltype1='int';;
13515 l) gltype1='long int';;
13516 ll) gltype1='long long int';;
13517 i64) gltype1='__int64';;
13518 u) gltype1='unsigned int';;
13519 ul) gltype1='unsigned long int';;
13520 ull) gltype1='unsigned long long int';;
13521 ui64)gltype1='unsigned __int64';;
13522 esac
13523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13524 /* end confdefs.h. */
13525
13526 #include <stddef.h>
13527 #include <signal.h>
13528 #if HAVE_WCHAR_H
13529 # include <wchar.h>
13530 #endif
13531
13532 extern $gltype foo;
13533 extern $gltype1 foo;
13534 int
13535 main (void)
13536 {
13537
13538 ;
13539 return 0;
13540 }
13541 _ACEOF
13542 if ac_fn_c_try_compile "$LINENO"
13543 then :
13544 eval gl_cv_type_${gltype}_suffix=\$glsuf
13545 fi
13546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13547 eval result=\$gl_cv_type_${gltype}_suffix
13548 test "$result" != no && break
13549 done ;;
13550 esac
13551 fi
13552 eval ac_res=\$gl_cv_type_${gltype}_suffix
13553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13554 printf "%s\n" "$ac_res" >&6; }
13555 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13556 eval result=\$gl_cv_type_${gltype}_suffix
13557 test "$result" = no && result=
13558 eval ${GLTYPE}_SUFFIX=\$result
13559 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
13560
13561 done
13562
13563
13564 fi
13565
13566
13567 for gltype in sig_atomic_t wchar_t wint_t ; do
13568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
13569 printf %s "checking for $gltype integer literal suffix... " >&6; }
13570 if eval test \${gl_cv_type_${gltype}_suffix+y}
13571 then :
13572 printf %s "(cached) " >&6
13573 else case e in #(
13574 e) eval gl_cv_type_${gltype}_suffix=no
13575 eval result=\$gl_cv_type_${gltype}_signed
13576 if test "$result" = yes; then
13577 glsufu=
13578 else
13579 glsufu=u
13580 fi
13581 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
13582 case $glsuf in
13583 '') gltype1='int';;
13584 l) gltype1='long int';;
13585 ll) gltype1='long long int';;
13586 i64) gltype1='__int64';;
13587 u) gltype1='unsigned int';;
13588 ul) gltype1='unsigned long int';;
13589 ull) gltype1='unsigned long long int';;
13590 ui64)gltype1='unsigned __int64';;
13591 esac
13592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13593 /* end confdefs.h. */
13594
13595 #include <stddef.h>
13596 #include <signal.h>
13597 #if HAVE_WCHAR_H
13598 # include <wchar.h>
13599 #endif
13600
13601 extern $gltype foo;
13602 extern $gltype1 foo;
13603 int
13604 main (void)
13605 {
13606
13607 ;
13608 return 0;
13609 }
13610 _ACEOF
13611 if ac_fn_c_try_compile "$LINENO"
13612 then :
13613 eval gl_cv_type_${gltype}_suffix=\$glsuf
13614 fi
13615 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13616 eval result=\$gl_cv_type_${gltype}_suffix
13617 test "$result" != no && break
13618 done ;;
13619 esac
13620 fi
13621 eval ac_res=\$gl_cv_type_${gltype}_suffix
13622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13623 printf "%s\n" "$ac_res" >&6; }
13624 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13625 eval result=\$gl_cv_type_${gltype}_suffix
13626 test "$result" = no && result=
13627 eval ${GLTYPE}_SUFFIX=\$result
13628 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
13629
13630 done
13631
13632
13633
13634 if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
13635 BITSIZEOF_WINT_T=32
13636 fi
13637
13638 ;;
13639 esac
13640
13641
13642
13643 GL_GENERATE_LIMITS_H=true
13644
13645
13646
13647
13648
13649
13650
13651
13652 case "$host_os" in
13653 *-musl* | midipix*)
13654
13655 printf "%s\n" "#define MUSL_LIBC 1" >>confdefs.h
13656
13657 ;;
13658 esac
13659
13660 ac_fn_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13661 if test "x$ac_cv_have_decl_fcloseall" = xyes
13662 then :
13663 ac_have_decl=1
13664 else case e in #(
13665 e) ac_have_decl=0 ;;
13666 esac
13667 fi
13668 printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h
13669
13670 ac_fn_check_decl "$LINENO" "getw" "ac_cv_have_decl_getw" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13671 if test "x$ac_cv_have_decl_getw" = xyes
13672 then :
13673 ac_have_decl=1
13674 else case e in #(
13675 e) ac_have_decl=0 ;;
13676 esac
13677 fi
13678 printf "%s\n" "#define HAVE_DECL_GETW $ac_have_decl" >>confdefs.h
13679
13680 ac_fn_check_decl "$LINENO" "putw" "ac_cv_have_decl_putw" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13681 if test "x$ac_cv_have_decl_putw" = xyes
13682 then :
13683 ac_have_decl=1
13684 else case e in #(
13685 e) ac_have_decl=0 ;;
13686 esac
13687 fi
13688 printf "%s\n" "#define HAVE_DECL_PUTW $ac_have_decl" >>confdefs.h
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700 if test $gl_cv_have_include_next = yes; then
13701 gl_cv_next_stdio_h='<'stdio.h'>'
13702 else
13703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
13704 printf %s "checking absolute name of <stdio.h>... " >&6; }
13705 if test ${gl_cv_next_stdio_h+y}
13706 then :
13707 printf %s "(cached) " >&6
13708 else case e in #(
13709 e)
13710
13711
13712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13713 /* end confdefs.h. */
13714 #include <stdio.h>
13715 _ACEOF
13716 case "$host_os" in
13717 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13718 *) gl_absname_cpp="$ac_cpp" ;;
13719 esac
13720
13721 case "$host_os" in
13722 mingw* | windows*)
13723 gl_dirsep_regex='[/\\]'
13724 ;;
13725 *)
13726 gl_dirsep_regex='\/'
13727 ;;
13728 esac
13729 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13730 gl_header_literal_regex=`echo 'stdio.h' \
13731 | sed -e "$gl_make_literal_regex_sed"`
13732 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13733 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13734 s|^/[^/]|//&|
13735 p
13736 q
13737 }'
13738
13739 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13740 sed -n "$gl_absolute_header_sed"`
13741
13742 gl_header=$gl_cv_absolute_stdio_h
13743 gl_cv_next_stdio_h='"'$gl_header'"'
13744
13745 ;;
13746 esac
13747 fi
13748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
13749 printf "%s\n" "$gl_cv_next_stdio_h" >&6; }
13750 fi
13751 NEXT_STDIO_H=$gl_cv_next_stdio_h
13752
13753 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13754 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13755 gl_next_as_first_directive='<'stdio.h'>'
13756 else
13757 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13758 gl_next_as_first_directive=$gl_cv_next_stdio_h
13759 fi
13760 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
13761
13762
13763
13764
13765
13766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
13767 printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; }
13768 if test ${gl_cv_func_printf_attribute_flavor+y}
13769 then :
13770 printf %s "(cached) " >&6
13771 else case e in #(
13772 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13773 /* end confdefs.h. */
13774
13775 #define __STDC_FORMAT_MACROS 1
13776 #include <stdio.h>
13777 #include <inttypes.h>
13778 /* For non-mingw systems, compilation will trivially succeed.
13779 For mingw, compilation will succeed for older mingw (system
13780 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
13781 #if (defined _WIN32 && ! defined __CYGWIN__) && \
13782 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
13783 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
13784 #endif
13785
13786 int
13787 main (void)
13788 {
13789
13790 ;
13791 return 0;
13792 }
13793 _ACEOF
13794 if ac_fn_c_try_compile "$LINENO"
13795 then :
13796 gl_cv_func_printf_attribute_flavor=system
13797 else case e in #(
13798 e) gl_cv_func_printf_attribute_flavor=gnu ;;
13799 esac
13800 fi
13801 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13802 esac
13803 fi
13804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
13805 printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; }
13806 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
13807
13808 printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
13809
13810 fi
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821
13822
13823
13824
13825
13826 if test $ac_cv_have_decl_fcloseall = no; then
13827 HAVE_DECL_FCLOSEALL=0
13828 fi
13829
13830
13831 if test $ac_cv_have_decl_getw = no; then
13832 HAVE_DECL_GETW=0
13833 fi
13834
13835
13836 if test $ac_cv_have_decl_putw = no; then
13837 HAVE_DECL_PUTW=0
13838 fi
13839
13840
13841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
13842 printf %s "checking for nl_langinfo and CODESET... " >&6; }
13843 if test ${am_cv_langinfo_codeset+y}
13844 then :
13845 printf %s "(cached) " >&6
13846 else case e in #(
13847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13848 /* end confdefs.h. */
13849 #include <langinfo.h>
13850 int
13851 main (void)
13852 {
13853 char* cs = nl_langinfo(CODESET); return !cs;
13854 ;
13855 return 0;
13856 }
13857 _ACEOF
13858 if ac_fn_c_try_link "$LINENO"
13859 then :
13860 am_cv_langinfo_codeset=yes
13861 else case e in #(
13862 e) am_cv_langinfo_codeset=no ;;
13863 esac
13864 fi
13865 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13866 conftest$ac_exeext conftest.$ac_ext
13867 ;;
13868 esac
13869 fi
13870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
13871 printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
13872 if test $am_cv_langinfo_codeset = yes; then
13873
13874 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
13875
13876 fi
13877
13878
13879
13880
13881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an english Unicode locale" >&5
13882 printf %s "checking for an english Unicode locale... " >&6; }
13883 if test ${gt_cv_locale_en_utf8+y}
13884 then :
13885 printf %s "(cached) " >&6
13886 else case e in #(
13887 e)
13888 case "$host_os" in
13889 *-musl* | midipix*)
13890 gt_cv_locale_en_utf8=en_US.UTF-8
13891 ;;
13892 *)
13893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13894 /* end confdefs.h. */
13895
13896 #include <locale.h>
13897 #include <time.h>
13898 #if HAVE_LANGINFO_CODESET
13899 # include <langinfo.h>
13900 #endif
13901 #include <stdlib.h>
13902 #include <string.h>
13903 struct tm t;
13904 char buf[16];
13905 int main () {
13906 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
13907 imitates locale dependent behaviour by looking at the environment
13908 variables, and all locales use the UTF-8 encoding. */
13909 #if !(defined __BEOS__ || defined __HAIKU__)
13910 /* Check whether the given locale name is recognized by the system. */
13911 # if defined _WIN32 && !defined __CYGWIN__
13912 /* On native Windows, setlocale(category, "") looks at the system settings,
13913 not at the environment variables. Also, when an encoding suffix such
13914 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
13915 category of the locale to "C". */
13916 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
13917 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
13918 return 1;
13919 # else
13920 if (setlocale (LC_ALL, "") == NULL) return 1;
13921 # endif
13922 /* Check whether nl_langinfo(CODESET) is "UTF-8" or equivalent. */
13923 # if HAVE_LANGINFO_CODESET
13924 {
13925 const char *cs = nl_langinfo (CODESET);
13926 if (!(strcmp (cs, "UTF-8") == 0 || strcmp (cs, "UTF8") == 0
13927 || strcmp (cs, "utf-8") == 0 || strcmp (cs, "utf8") == 0))
13928 return 1;
13929 }
13930 # endif
13931 # ifdef __CYGWIN__
13932 /* On Cygwin, avoid locale names without encoding suffix, because the
13933 locale_charset() function relies on the encoding suffix. Note that
13934 LC_ALL is set on the command line. */
13935 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
13936 # endif
13937 /* Check the third month name. */
13938 t.tm_year = 1975 - 1900; t.tm_mon = 3 - 1; t.tm_mday = 24;
13939 if (strftime (buf, sizeof (buf), "%B", &t) < 5 || strcmp (buf, "March") != 0)
13940 return 1;
13941 #endif
13942 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
13943 /* Check whether the decimal separator is a dot. */
13944 if (localeconv () ->decimal_point[0] != '.') return 1;
13945 #endif
13946 return 0;
13947 }
13948
13949 _ACEOF
13950 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13951 (eval $ac_link) 2>&5
13952 ac_status=$?
13953 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13954 test $ac_status = 0; } && test -s conftest$ac_exeext; then
13955 case "$host_os" in
13956 # Handle native Windows specially, because there setlocale() interprets
13957 # "ar" or "ara" as "Arabic" or "Arabic_Saudi Arabia.1256",
13958 # "en" or "eng" as "English" or "English_United States.1252",
13959 # "fr" or "fra" as "French" or "French_France.1252",
13960 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
13961 # "ja" or "jpn" as "Japanese" or "Japanese_Japan.932",
13962 # and similar.
13963 mingw* | windows*)
13964 # Test for the hypothetical native Windows locale name.
13965 if (LC_ALL='English_United States.65001' LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13966 gt_cv_locale_en_utf8='English_United States.65001'
13967 else
13968 # None found.
13969 gt_cv_locale_en_utf8=none
13970 fi
13971 ;;
13972 *)
13973 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
13974 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
13975 # configure script would override the LC_ALL setting. Likewise for
13976 # LC_CTYPE, which is also set at the beginning of the configure script.
13977 # Test for the locale name with explicit encoding suffix first
13978 # (this is necessary on Haiku).
13979 if (LC_ALL=en_US.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13980 gt_cv_locale_en_utf8=en_US.UTF-8
13981 else
13982 # Test for the locale name without encoding suffix.
13983 if (LC_ALL=en_US LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13984 gt_cv_locale_en_utf8=en_US
13985 else
13986 # Test for the Solaris 10 locale name.
13987 if (LC_ALL=en.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
13988 gt_cv_locale_en_utf8=en.UTF-8
13989 else
13990 # None found.
13991 gt_cv_locale_en_utf8=none
13992 fi
13993 fi
13994 fi
13995 ;;
13996 esac
13997 fi
13998 rm -fr conftest*
13999 ;;
14000 esac
14001 ;;
14002 esac
14003 fi
14004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_en_utf8" >&5
14005 printf "%s\n" "$gt_cv_locale_en_utf8" >&6; }
14006 LOCALE_EN_UTF8="$gt_cv_locale_en_utf8"
14007 case "$LOCALE_EN_UTF8" in #(
14008 '' | *[\"\$\'*[]*)
14009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid locale \"$LOCALE_EN_UTF8\"; assuming \"none\"" >&5
14010 printf "%s\n" "$as_me: WARNING: invalid locale \"$LOCALE_EN_UTF8\"; assuming \"none\"" >&2;}
14011 LOCALE_EN_UTF8=none;;
14012 esac
14013
14014
14015 ac_fn_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14016 if test "x$ac_cv_have_decl_ecvt" = xyes
14017 then :
14018 ac_have_decl=1
14019 else case e in #(
14020 e) ac_have_decl=0 ;;
14021 esac
14022 fi
14023 printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h
14024
14025 ac_fn_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14026 if test "x$ac_cv_have_decl_fcvt" = xyes
14027 then :
14028 ac_have_decl=1
14029 else case e in #(
14030 e) ac_have_decl=0 ;;
14031 esac
14032 fi
14033 printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h
14034
14035 ac_fn_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14036 if test "x$ac_cv_have_decl_gcvt" = xyes
14037 then :
14038 ac_have_decl=1
14039 else case e in #(
14040 e) ac_have_decl=0 ;;
14041 esac
14042 fi
14043 printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055 if test $gl_cv_have_include_next = yes; then
14056 gl_cv_next_stdlib_h='<'stdlib.h'>'
14057 else
14058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
14059 printf %s "checking absolute name of <stdlib.h>... " >&6; }
14060 if test ${gl_cv_next_stdlib_h+y}
14061 then :
14062 printf %s "(cached) " >&6
14063 else case e in #(
14064 e)
14065
14066
14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14068 /* end confdefs.h. */
14069 #include <stdlib.h>
14070 _ACEOF
14071 case "$host_os" in
14072 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14073 *) gl_absname_cpp="$ac_cpp" ;;
14074 esac
14075
14076 case "$host_os" in
14077 mingw* | windows*)
14078 gl_dirsep_regex='[/\\]'
14079 ;;
14080 *)
14081 gl_dirsep_regex='\/'
14082 ;;
14083 esac
14084 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14085 gl_header_literal_regex=`echo 'stdlib.h' \
14086 | sed -e "$gl_make_literal_regex_sed"`
14087 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14088 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14089 s|^/[^/]|//&|
14090 p
14091 q
14092 }'
14093
14094 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14095 sed -n "$gl_absolute_header_sed"`
14096
14097 gl_header=$gl_cv_absolute_stdlib_h
14098 gl_cv_next_stdlib_h='"'$gl_header'"'
14099
14100 ;;
14101 esac
14102 fi
14103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
14104 printf "%s\n" "$gl_cv_next_stdlib_h" >&6; }
14105 fi
14106 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
14107
14108 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14109 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14110 gl_next_as_first_directive='<'stdlib.h'>'
14111 else
14112 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14113 gl_next_as_first_directive=$gl_cv_next_stdlib_h
14114 fi
14115 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
14116
14117
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MB_CUR_MAX is correct" >&5
14130 printf %s "checking whether MB_CUR_MAX is correct... " >&6; }
14131 if test ${gl_cv_macro_MB_CUR_MAX_good+y}
14132 then :
14133 printf %s "(cached) " >&6
14134 else case e in #(
14135 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14136 /* end confdefs.h. */
14137 #include <stdlib.h>
14138
14139 int
14140 main (void)
14141 {
14142 return !!MB_CUR_MAX;
14143 ;
14144 return 0;
14145 }
14146
14147 _ACEOF
14148 if ac_fn_c_try_link "$LINENO"
14149 then :
14150 # Guess no on Solaris and Haiku, yes otherwise.
14151 case $host_os in #(
14152 solaris* | haiku*) :
14153 gl_cv_macro_MB_CUR_MAX_good="guessing no" ;; #(
14154 *) :
14155 gl_cv_macro_MB_CUR_MAX_good="guessing yes" ;;
14156 esac
14157 if test "$LOCALE_EN_UTF8" != none; then
14158 if test "$cross_compiling" = yes
14159 then :
14160 :
14161 else case e in #(
14162 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14164
14165 #include <locale.h>
14166 #include <stdlib.h>
14167 int main ()
14168 {
14169 int result = 0;
14170 if (setlocale (LC_ALL, "$LOCALE_EN_UTF8") != NULL)
14171 {
14172 if (MB_CUR_MAX < 4)
14173 result |= 1;
14174 }
14175 return result;
14176 }
14177 _ACEOF
14178 if ac_fn_c_try_run "$LINENO"
14179 then :
14180 gl_cv_macro_MB_CUR_MAX_good=yes
14181 else case e in #(
14182 e) gl_cv_macro_MB_CUR_MAX_good=no ;;
14183 esac
14184 fi
14185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14186 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14187 esac
14188 fi
14189
14190 fi
14191
14192 else case e in #(
14193 e) gl_cv_macro_MB_CUR_MAX_good="link failed - so no" ;;
14194 esac
14195 fi
14196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14197 conftest$ac_exeext conftest.$ac_ext
14198 ;;
14199 esac
14200 fi
14201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_MB_CUR_MAX_good" >&5
14202 printf "%s\n" "$gl_cv_macro_MB_CUR_MAX_good" >&6; }
14203 case $gl_cv_macro_MB_CUR_MAX_good in #(
14204 *yes) :
14205 ;; #(
14206 "link failed - so no") :
14207 # 4 suffices as a workaround in Android NDK 16,
14208 # the only known platform with the bug.
14209 REPLACE_MB_CUR_MAX=4 ;; #(
14210 *) :
14211 REPLACE_MB_CUR_MAX="(-1)" ;;
14212 esac
14213
14214
14215 if test $ac_cv_have_decl_ecvt = no; then
14216 HAVE_DECL_ECVT=0
14217 fi
14218
14219 if test $ac_cv_have_decl_fcvt = no; then
14220 HAVE_DECL_FCVT=0
14221 fi
14222
14223 if test $ac_cv_have_decl_gcvt = no; then
14224 HAVE_DECL_GCVT=0
14225 fi
14226
14227
14228 HAVE_MBSLEN=0;
14229 HAVE_EXPLICIT_BZERO=1;
14230 HAVE_FFSL=1;
14231 HAVE_FFSLL=1;
14232 HAVE_DECL_MEMEQ=0;
14233 HAVE_DECL_MEMMEM=1;
14234 HAVE_MEMPCPY=1;
14235 HAVE_MEMSET_EXPLICIT=1;
14236 HAVE_DECL_MEMRCHR=1;
14237 HAVE_RAWMEMCHR=1;
14238 HAVE_STPCPY=1;
14239 HAVE_STPNCPY=1;
14240 HAVE_STRCHRNUL=1;
14241 HAVE_DECL_STRDUP=1;
14242 HAVE_DECL_STREQ=0;
14243 HAVE_DECL_STRNDUP=1;
14244 HAVE_DECL_STRNLEN=1;
14245 HAVE_STRPBRK=1;
14246 HAVE_STRSEP=1;
14247 HAVE_STRCASESTR=1;
14248 HAVE_DECL_STRTOK_R=1;
14249 HAVE_DECL_STRERROR_R=1;
14250 HAVE_STRERROR_L=1;
14251 HAVE_STRERRORNAME_NP=1;
14252 HAVE_SIGABBREV_NP=1;
14253 HAVE_SIGDESCR_NP=1;
14254 HAVE_DECL_STRSIGNAL=1;
14255 HAVE_STRVERSCMP=1;
14256 REPLACE_FFSLL=0;
14257 REPLACE_MEMCHR=0;
14258 REPLACE_MEMMEM=0;
14259 REPLACE_MEMPCPY=0;
14260 REPLACE_MEMSET_EXPLICIT=0;
14261 REPLACE_STPCPY=0;
14262 REPLACE_STPNCPY=0;
14263 REPLACE_STRCHRNUL=0;
14264 REPLACE_STRDUP=0;
14265 REPLACE_STRNCAT=0;
14266 REPLACE_STRNCPY=0;
14267 REPLACE_STRNDUP=0;
14268 REPLACE_STRNLEN=0;
14269 REPLACE_STRSTR=0;
14270 REPLACE_STRCASESTR=0;
14271 REPLACE_STRTOK_R=0;
14272 REPLACE_STRERROR=0;
14273 REPLACE_STRERROR_R=0;
14274 REPLACE_STRERROR_L=0;
14275 REPLACE_STRERRORNAME_NP=0;
14276 REPLACE_STRSIGNAL=0;
14277 REPLACE_STRVERSCMP=0;
14278 UNDEFINE_STRTOK_R=0;
14279
14280
14281 REPLACE_STRERROR_0=0
14282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
14283 printf %s "checking whether strerror(0) succeeds... " >&6; }
14284 if test ${gl_cv_func_strerror_0_works+y}
14285 then :
14286 printf %s "(cached) " >&6
14287 else case e in #(
14288 e) if test "$cross_compiling" = yes
14289 then :
14290 case "$host_os" in
14291 # Guess yes on glibc systems.
14292 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
14293 # Guess yes on musl systems.
14294 *-musl* | midipix*) gl_cv_func_strerror_0_works="guessing yes" ;;
14295 # Guess yes on native Windows.
14296 mingw* | windows*) gl_cv_func_strerror_0_works="guessing yes" ;;
14297 # If we don't know, obey --enable-cross-guesses.
14298 *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
14299 esac
14300
14301 else case e in #(
14302 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14303 /* end confdefs.h. */
14304 #include <string.h>
14305 #include <errno.h>
14306
14307 int
14308 main (void)
14309 {
14310 int result = 0;
14311 char *str;
14312 errno = 0;
14313 str = strerror (0);
14314 if (!*str) result |= 1;
14315 if (errno) result |= 2;
14316 if (strstr (str, "nknown") || strstr (str, "ndefined"))
14317 result |= 4;
14318 return result;
14319 ;
14320 return 0;
14321 }
14322 _ACEOF
14323 if ac_fn_c_try_run "$LINENO"
14324 then :
14325 gl_cv_func_strerror_0_works=yes
14326 else case e in #(
14327 e) gl_cv_func_strerror_0_works=no ;;
14328 esac
14329 fi
14330 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14331 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14332 esac
14333 fi
14334
14335 ;;
14336 esac
14337 fi
14338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
14339 printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; }
14340 case "$gl_cv_func_strerror_0_works" in
14341 *yes) ;;
14342 *)
14343 REPLACE_STRERROR_0=1
14344
14345 printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h
14346
14347 ;;
14348 esac
14349
14350
14351
14352 GL_GNULIB_EXPLICIT_BZERO=0
14353
14354
14355
14356 GL_GNULIB_FFSL=0
14357
14358
14359
14360 GL_GNULIB_FFSLL=0
14361
14362
14363
14364 GL_GNULIB_MEMCHR=0
14365
14366
14367
14368 GL_GNULIB_MEMMEM=0
14369
14370
14371
14372 GL_GNULIB_MEMPCPY=0
14373
14374
14375
14376 GL_GNULIB_MEMRCHR=0
14377
14378
14379
14380 GL_GNULIB_MEMSET_EXPLICIT=0
14381
14382
14383
14384 GL_GNULIB_RAWMEMCHR=0
14385
14386
14387
14388 GL_GNULIB_STPCPY=0
14389
14390
14391
14392 GL_GNULIB_STPNCPY=0
14393
14394
14395
14396 GL_GNULIB_STRCHRNUL=0
14397
14398
14399
14400 GL_GNULIB_STRDUP=0
14401
14402
14403
14404 GL_GNULIB_STRINGEQ=0
14405
14406
14407
14408 GL_GNULIB_STRNCAT=0
14409
14410
14411
14412 GL_GNULIB_STRNCPY=0
14413
14414
14415
14416 GL_GNULIB_STRNDUP=0
14417
14418
14419
14420 GL_GNULIB_STRNLEN=0
14421
14422
14423
14424 GL_GNULIB_STRPBRK=0
14425
14426
14427
14428 GL_GNULIB_STRSEP=0
14429
14430
14431
14432 GL_GNULIB_STRSTR=0
14433
14434
14435
14436 GL_GNULIB_STRCASESTR=0
14437
14438
14439
14440 GL_GNULIB_STRTOK_R=0
14441
14442
14443
14444 GL_GNULIB_STRNUL=0
14445
14446
14447
14448 GL_GNULIB_STR_STARTSWITH=0
14449
14450
14451
14452 GL_GNULIB_STR_ENDSWITH=0
14453
14454
14455
14456 GL_GNULIB_MBSLEN=0
14457
14458
14459
14460 GL_GNULIB_MBSNLEN=0
14461
14462
14463
14464 GL_GNULIB_MBSCHR=0
14465
14466
14467
14468 GL_GNULIB_MBSRCHR=0
14469
14470
14471
14472 GL_GNULIB_MBSSTR=0
14473
14474
14475
14476 GL_GNULIB_MBSCASECMP=0
14477
14478
14479
14480 GL_GNULIB_MBSNCASECMP=0
14481
14482
14483
14484 GL_GNULIB_MBSPCASECMP=0
14485
14486
14487
14488 GL_GNULIB_MBSCASESTR=0
14489
14490
14491
14492 GL_GNULIB_MBSCSPN=0
14493
14494
14495
14496 GL_GNULIB_MBSPBRK=0
14497
14498
14499
14500 GL_GNULIB_MBSSPN=0
14501
14502
14503
14504 GL_GNULIB_MBSSEP=0
14505
14506
14507
14508 GL_GNULIB_MBSTOK_R=0
14509
14510
14511
14512 GL_GNULIB_MBS_STARTSWITH=0
14513
14514
14515
14516 GL_GNULIB_MBS_ENDSWITH=0
14517
14518
14519
14520 GL_GNULIB_STRERROR=0
14521
14522
14523
14524 GL_GNULIB_STRERROR_R=0
14525
14526
14527
14528 GL_GNULIB_STRERROR_L=0
14529
14530
14531
14532 GL_GNULIB_STRERRORNAME_NP=0
14533
14534
14535
14536 GL_GNULIB_SIGABBREV_NP=0
14537
14538
14539
14540 GL_GNULIB_SIGDESCR_NP=0
14541
14542
14543
14544 GL_GNULIB_STRSIGNAL=0
14545
14546
14547
14548 GL_GNULIB_STRVERSCMP=0
14549
14550
14551
14552 GL_GNULIB_MDA_MEMCCPY=1
14553
14554
14555
14556 GL_GNULIB_MDA_STRDUP=1
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570 if test $gl_cv_have_include_next = yes; then
14571 gl_cv_next_string_h='<'string.h'>'
14572 else
14573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
14574 printf %s "checking absolute name of <string.h>... " >&6; }
14575 if test ${gl_cv_next_string_h+y}
14576 then :
14577 printf %s "(cached) " >&6
14578 else case e in #(
14579 e)
14580
14581
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 #include <string.h>
14585 _ACEOF
14586 case "$host_os" in
14587 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14588 *) gl_absname_cpp="$ac_cpp" ;;
14589 esac
14590
14591 case "$host_os" in
14592 mingw* | windows*)
14593 gl_dirsep_regex='[/\\]'
14594 ;;
14595 *)
14596 gl_dirsep_regex='\/'
14597 ;;
14598 esac
14599 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14600 gl_header_literal_regex=`echo 'string.h' \
14601 | sed -e "$gl_make_literal_regex_sed"`
14602 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14603 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14604 s|^/[^/]|//&|
14605 p
14606 q
14607 }'
14608
14609 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14610 sed -n "$gl_absolute_header_sed"`
14611
14612 gl_header=$gl_cv_absolute_string_h
14613 gl_cv_next_string_h='"'$gl_header'"'
14614
14615 ;;
14616 esac
14617 fi
14618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
14619 printf "%s\n" "$gl_cv_next_string_h" >&6; }
14620 fi
14621 NEXT_STRING_H=$gl_cv_next_string_h
14622
14623 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14624 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14625 gl_next_as_first_directive='<'string.h'>'
14626 else
14627 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14628 gl_next_as_first_directive=$gl_cv_next_string_h
14629 fi
14630 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642 ac_fn_check_decl "$LINENO" "streq" "ac_cv_have_decl_streq" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14643 if test "x$ac_cv_have_decl_streq" = xyes
14644 then :
14645 ac_have_decl=1
14646 else case e in #(
14647 e) ac_have_decl=0 ;;
14648 esac
14649 fi
14650 printf "%s\n" "#define HAVE_DECL_STREQ $ac_have_decl" >>confdefs.h
14651
14652 ac_fn_check_decl "$LINENO" "memeq" "ac_cv_have_decl_memeq" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14653 if test "x$ac_cv_have_decl_memeq" = xyes
14654 then :
14655 ac_have_decl=1
14656 else case e in #(
14657 e) ac_have_decl=0 ;;
14658 esac
14659 fi
14660 printf "%s\n" "#define HAVE_DECL_MEMEQ $ac_have_decl" >>confdefs.h
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
14674 printf %s "checking for off64_t... " >&6; }
14675 if test ${gl_cv_off64_t+y}
14676 then :
14677 printf %s "(cached) " >&6
14678 else case e in #(
14679 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14680 /* end confdefs.h. */
14681 #include <sys/types.h>
14682 int
14683 main (void)
14684 {
14685 int x = sizeof (off64_t *) + sizeof (off64_t);
14686 return !x;
14687 ;
14688 return 0;
14689 }
14690 _ACEOF
14691 if ac_fn_c_try_compile "$LINENO"
14692 then :
14693 gl_cv_off64_t=yes
14694 else case e in #(
14695 e) gl_cv_off64_t=no ;;
14696 esac
14697 fi
14698 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14699 esac
14700 fi
14701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_off64_t" >&5
14702 printf "%s\n" "$gl_cv_off64_t" >&6; }
14703
14704 if test $gl_cv_off64_t != no; then
14705 HAVE_OFF64_T=1
14706 else
14707 HAVE_OFF64_T=0
14708 fi
14709
14710
14711
14712
14713
14714
14715 printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726 if test $gl_cv_have_include_next = yes; then
14727 gl_cv_next_sys_types_h='<'sys/types.h'>'
14728 else
14729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14730 printf %s "checking absolute name of <sys/types.h>... " >&6; }
14731 if test ${gl_cv_next_sys_types_h+y}
14732 then :
14733 printf %s "(cached) " >&6
14734 else case e in #(
14735 e)
14736
14737
14738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14739 /* end confdefs.h. */
14740 #include <sys/types.h>
14741 _ACEOF
14742 case "$host_os" in
14743 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14744 *) gl_absname_cpp="$ac_cpp" ;;
14745 esac
14746
14747 case "$host_os" in
14748 mingw* | windows*)
14749 gl_dirsep_regex='[/\\]'
14750 ;;
14751 *)
14752 gl_dirsep_regex='\/'
14753 ;;
14754 esac
14755 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14756 gl_header_literal_regex=`echo 'sys/types.h' \
14757 | sed -e "$gl_make_literal_regex_sed"`
14758 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14759 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14760 s|^/[^/]|//&|
14761 p
14762 q
14763 }'
14764
14765 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14766 sed -n "$gl_absolute_header_sed"`
14767
14768 gl_header=$gl_cv_absolute_sys_types_h
14769 gl_cv_next_sys_types_h='"'$gl_header'"'
14770
14771 ;;
14772 esac
14773 fi
14774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14775 printf "%s\n" "$gl_cv_next_sys_types_h" >&6; }
14776 fi
14777 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14778
14779 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14780 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14781 gl_next_as_first_directive='<'sys/types.h'>'
14782 else
14783 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14784 gl_next_as_first_directive=$gl_cv_next_sys_types_h
14785 fi
14786 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14787
14788
14789
14790
14791
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801 WINDOWS_STAT_INODES=0
14802
14803
14804
14805 ac_fn_c_check_type "$LINENO" "blksize_t" "ac_cv_type_blksize_t" "$ac_includes_default"
14806 if test "x$ac_cv_type_blksize_t" = xyes
14807 then :
14808 HAVE_BLKSIZE_T=1
14809 else case e in #(
14810 e) HAVE_BLKSIZE_T=0 ;;
14811 esac
14812 fi
14813
14814
14815
14816 ac_fn_c_check_type "$LINENO" "blkcnt_t" "ac_cv_type_blkcnt_t" "$ac_includes_default"
14817 if test "x$ac_cv_type_blkcnt_t" = xyes
14818 then :
14819 HAVE_BLKCNT_T=1
14820 else case e in #(
14821 e) HAVE_BLKCNT_T=0 ;;
14822 esac
14823 fi
14824
14825
14826
14827
14828
14829
14830 HAVE_DECL_LOCALTIME_R=1;
14831 HAVE_NANOSLEEP=1;
14832 HAVE_STRPTIME=1;
14833 HAVE_TIMEGM=1;
14834 HAVE_TIMESPEC_GET=1;
14835 HAVE_TIMESPEC_GETRES=1;
14836 HAVE_TIMEZONE_T=0;
14837 HAVE_TZALLOC=0;
14838 REPLACE_CTIME=0;
14839 REPLACE_GMTIME=0;
14840 REPLACE_LOCALTIME=0;
14841 REPLACE_LOCALTIME_R=0;
14842 REPLACE_LOCALTIME_RZ=0;
14843 REPLACE_MKTIME=0;
14844 REPLACE_MKTIME_Z=0;
14845 REPLACE_NANOSLEEP=0;
14846 REPLACE_STRFTIME=0;
14847 REPLACE_TIME=0;
14848 REPLACE_TIMEGM=0;
14849 REPLACE_TIMESPEC_GET=0;
14850 REPLACE_TIMESPEC_GETRES=0;
14851 REPLACE_TZSET=0;
14852
14853
14854
14855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14856 printf %s "checking for struct timespec in <time.h>... " >&6; }
14857 if test ${gl_cv_sys_struct_timespec_in_time_h+y}
14858 then :
14859 printf %s "(cached) " >&6
14860 else case e in #(
14861 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14863 #include <time.h>
14864
14865 int
14866 main (void)
14867 {
14868 static struct timespec x; x.tv_sec = x.tv_nsec;
14869 ;
14870 return 0;
14871 }
14872 _ACEOF
14873 if ac_fn_c_try_compile "$LINENO"
14874 then :
14875 gl_cv_sys_struct_timespec_in_time_h=yes
14876 else case e in #(
14877 e) gl_cv_sys_struct_timespec_in_time_h=no ;;
14878 esac
14879 fi
14880 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14881 esac
14882 fi
14883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14884 printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14885
14886 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14887 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14888 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14889 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
14890 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14891 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14892 else
14893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14894 printf %s "checking for struct timespec in <sys/time.h>... " >&6; }
14895 if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y}
14896 then :
14897 printf %s "(cached) " >&6
14898 else case e in #(
14899 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14900 /* end confdefs.h. */
14901 #include <sys/time.h>
14902
14903 int
14904 main (void)
14905 {
14906 static struct timespec x; x.tv_sec = x.tv_nsec;
14907 ;
14908 return 0;
14909 }
14910 _ACEOF
14911 if ac_fn_c_try_compile "$LINENO"
14912 then :
14913 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14914 else case e in #(
14915 e) gl_cv_sys_struct_timespec_in_sys_time_h=no ;;
14916 esac
14917 fi
14918 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14919 esac
14920 fi
14921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14922 printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14923 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14924 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14925 else
14926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14927 printf %s "checking for struct timespec in <pthread.h>... " >&6; }
14928 if test ${gl_cv_sys_struct_timespec_in_pthread_h+y}
14929 then :
14930 printf %s "(cached) " >&6
14931 else case e in #(
14932 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14933 /* end confdefs.h. */
14934 #include <pthread.h>
14935
14936 int
14937 main (void)
14938 {
14939 static struct timespec x; x.tv_sec = x.tv_nsec;
14940 ;
14941 return 0;
14942 }
14943 _ACEOF
14944 if ac_fn_c_try_compile "$LINENO"
14945 then :
14946 gl_cv_sys_struct_timespec_in_pthread_h=yes
14947 else case e in #(
14948 e) gl_cv_sys_struct_timespec_in_pthread_h=no ;;
14949 esac
14950 fi
14951 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14952 esac
14953 fi
14954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14955 printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14956 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14957 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14958 else
14959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
14960 printf %s "checking for struct timespec in <unistd.h>... " >&6; }
14961 if test ${gl_cv_sys_struct_timespec_in_unistd_h+y}
14962 then :
14963 printf %s "(cached) " >&6
14964 else case e in #(
14965 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14966 /* end confdefs.h. */
14967 #include <unistd.h>
14968
14969 int
14970 main (void)
14971 {
14972 static struct timespec x; x.tv_sec = x.tv_nsec;
14973 ;
14974 return 0;
14975 }
14976 _ACEOF
14977 if ac_fn_c_try_compile "$LINENO"
14978 then :
14979 gl_cv_sys_struct_timespec_in_unistd_h=yes
14980 else case e in #(
14981 e) gl_cv_sys_struct_timespec_in_unistd_h=no ;;
14982 esac
14983 fi
14984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14985 esac
14986 fi
14987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
14988 printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
14989 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
14990 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
14991 fi
14992 fi
14993 fi
14994 fi
14995
14996
14997
14998
14999
15000
15001
15002
15003
15004
15005
15006
15007
15008
15009
15010
15011 if test $gl_cv_have_include_next = yes; then
15012 gl_cv_next_time_h='<'time.h'>'
15013 else
15014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
15015 printf %s "checking absolute name of <time.h>... " >&6; }
15016 if test ${gl_cv_next_time_h+y}
15017 then :
15018 printf %s "(cached) " >&6
15019 else case e in #(
15020 e)
15021
15022
15023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15024 /* end confdefs.h. */
15025 #include <time.h>
15026 _ACEOF
15027 case "$host_os" in
15028 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15029 *) gl_absname_cpp="$ac_cpp" ;;
15030 esac
15031
15032 case "$host_os" in
15033 mingw* | windows*)
15034 gl_dirsep_regex='[/\\]'
15035 ;;
15036 *)
15037 gl_dirsep_regex='\/'
15038 ;;
15039 esac
15040 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15041 gl_header_literal_regex=`echo 'time.h' \
15042 | sed -e "$gl_make_literal_regex_sed"`
15043 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15044 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15045 s|^/[^/]|//&|
15046 p
15047 q
15048 }'
15049
15050 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15051 sed -n "$gl_absolute_header_sed"`
15052
15053 gl_header=$gl_cv_absolute_time_h
15054 gl_cv_next_time_h='"'$gl_header'"'
15055
15056 ;;
15057 esac
15058 fi
15059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
15060 printf "%s\n" "$gl_cv_next_time_h" >&6; }
15061 fi
15062 NEXT_TIME_H=$gl_cv_next_time_h
15063
15064 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15065 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15066 gl_next_as_first_directive='<'time.h'>'
15067 else
15068 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15069 gl_next_as_first_directive=$gl_cv_next_time_h
15070 fi
15071 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
15085 printf %s "checking for TIME_UTC in <time.h>... " >&6; }
15086 if test ${gl_cv_time_h_has_TIME_UTC+y}
15087 then :
15088 printf %s "(cached) " >&6
15089 else case e in #(
15090 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15091 /* end confdefs.h. */
15092 #include <time.h>
15093
15094 int
15095 main (void)
15096 {
15097 static int x = TIME_UTC; x++;
15098 ;
15099 return 0;
15100 }
15101 _ACEOF
15102 if ac_fn_c_try_compile "$LINENO"
15103 then :
15104 gl_cv_time_h_has_TIME_UTC=yes
15105 else case e in #(
15106 e) gl_cv_time_h_has_TIME_UTC=no ;;
15107 esac
15108 fi
15109 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15110 esac
15111 fi
15112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
15113 printf "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; }
15114 if test $gl_cv_time_h_has_TIME_UTC = yes; then
15115 TIME_H_DEFINES_TIME_UTC=1
15116 else
15117 TIME_H_DEFINES_TIME_UTC=0
15118 fi
15119
15120
15121
15122
15123 GL_GNULIB_CTIME=0
15124
15125
15126
15127 GL_GNULIB_MKTIME=0
15128
15129
15130
15131 GL_GNULIB_LOCALTIME=0
15132
15133
15134
15135 GL_GNULIB_NANOSLEEP=0
15136
15137
15138
15139 GL_GNULIB_STRFTIME=0
15140
15141
15142
15143 GL_GNULIB_STRPTIME=0
15144
15145
15146
15147 GL_GNULIB_TIME=0
15148
15149
15150
15151 GL_GNULIB_TIMEGM=0
15152
15153
15154
15155 GL_GNULIB_TIMESPEC_GET=0
15156
15157
15158
15159 GL_GNULIB_TIMESPEC_GETRES=0
15160
15161
15162
15163 GL_GNULIB_TIME_R=0
15164
15165
15166
15167 GL_GNULIB_TIME_RZ=0
15168
15169
15170
15171 GL_GNULIB_TZNAME=0
15172
15173
15174
15175 GL_GNULIB_TZSET=0
15176
15177
15178
15179 GL_GNULIB_MDA_TZSET=1
15180
15181
15182
15183 ac_fn_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15184 if test "x$ac_cv_have_decl_execvpe" = xyes
15185 then :
15186 ac_have_decl=1
15187 else case e in #(
15188 e) ac_have_decl=0 ;;
15189 esac
15190 fi
15191 printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205 if test $gl_cv_have_include_next = yes; then
15206 gl_cv_next_unistd_h='<'unistd.h'>'
15207 else
15208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
15209 printf %s "checking absolute name of <unistd.h>... " >&6; }
15210 if test ${gl_cv_next_unistd_h+y}
15211 then :
15212 printf %s "(cached) " >&6
15213 else case e in #(
15214 e)
15215 if test $ac_cv_header_unistd_h = yes; then
15216
15217
15218
15219
15220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15221 /* end confdefs.h. */
15222 #include <unistd.h>
15223 _ACEOF
15224 case "$host_os" in
15225 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15226 *) gl_absname_cpp="$ac_cpp" ;;
15227 esac
15228
15229 case "$host_os" in
15230 mingw* | windows*)
15231 gl_dirsep_regex='[/\\]'
15232 ;;
15233 *)
15234 gl_dirsep_regex='\/'
15235 ;;
15236 esac
15237 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15238 gl_header_literal_regex=`echo 'unistd.h' \
15239 | sed -e "$gl_make_literal_regex_sed"`
15240 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15241 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15242 s|^/[^/]|//&|
15243 p
15244 q
15245 }'
15246
15247 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15248 sed -n "$gl_absolute_header_sed"`
15249
15250 gl_header=$gl_cv_absolute_unistd_h
15251 gl_cv_next_unistd_h='"'$gl_header'"'
15252 else
15253 gl_cv_next_unistd_h='<'unistd.h'>'
15254 fi
15255
15256 ;;
15257 esac
15258 fi
15259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
15260 printf "%s\n" "$gl_cv_next_unistd_h" >&6; }
15261 fi
15262 NEXT_UNISTD_H=$gl_cv_next_unistd_h
15263
15264 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15265 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15266 gl_next_as_first_directive='<'unistd.h'>'
15267 else
15268 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15269 gl_next_as_first_directive=$gl_cv_next_unistd_h
15270 fi
15271 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
15272
15273
15274
15275
15276 if test $ac_cv_header_unistd_h = yes; then
15277 HAVE_UNISTD_H=1
15278 else
15279 HAVE_UNISTD_H=0
15280 fi
15281
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294 if test $ac_cv_have_decl_execvpe = no; then
15295 HAVE_DECL_EXECVPE=0
15296 fi
15297
15298
15299
15300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
15301 printf %s "checking for C compiler option to allow warnings... " >&6; }
15302 if test ${gl_cv_cc_wallow+y}
15303 then :
15304 printf %s "(cached) " >&6
15305 else case e in #(
15306 e) rm -fr conftest*
15307 echo 'int dummy;' > conftest.c
15308 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
15309 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15310 (eval $ac_try) 2>&5
15311 ac_status=$?
15312 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15313 test $ac_status = 0; }; } >/dev/null
15314 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
15315 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15316 (eval $ac_try) 2>&5
15317 ac_status=$?
15318 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15319 test $ac_status = 0; }; } >/dev/null
15320 if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
15321 gl_cv_cc_wallow='-Wno-error'
15322 else
15323 gl_cv_cc_wallow=none
15324 fi
15325 rm -fr conftest*
15326 ;;
15327 esac
15328 fi
15329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
15330 printf "%s\n" "$gl_cv_cc_wallow" >&6; }
15331 case "$gl_cv_cc_wallow" in
15332 none) GL_CFLAG_ALLOW_WARNINGS='' ;;
15333 *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
15334 esac
15335
15336
15337
15338
15339 GL_CFLAG_GNULIB_WARNINGS=''
15340 if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
15341 cat > conftest.c <<\EOF
15342 #if (__GNUC__ >= 3 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15343 -Wno-cast-qual
15344 -Wno-conversion
15345 -Wno-float-equal
15346 -Wno-sign-compare
15347 -Wno-undef
15348 -Wno-unused-function
15349 -Wno-unused-parameter
15350 #endif
15351 #if (__GNUC__ + (__GNUC_MINOR__ >= 9) > 4 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15352 -Wno-float-conversion
15353 #endif
15354 #if (__GNUC__ >= 7 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15355 -Wimplicit-fallthrough
15356 #endif
15357 #if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 4 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15358 -Wno-pedantic
15359 #endif
15360 #if 3 < __clang_major__ + (9 <= __clang_minor__)
15361 -Wno-tautological-constant-out-of-range-compare
15362 #endif
15363 #if (__GNUC__ + (__GNUC_MINOR__ >= 3) > 4 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15364 -Wno-sign-conversion
15365 -Wno-type-limits
15366 #endif
15367 #if (__GNUC__ + (__GNUC_MINOR__ >= 1) > 6 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15368 -Wno-unused-const-variable
15369 #endif
15370 #if (__GNUC__ + (__GNUC_MINOR__ >= 5) > 4 && !defined __clang__)
15371 -Wno-unsuffixed-float-constants
15372 #endif
15373 EOF
15374 gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
15375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
15376 (eval $gl_command) 2>&5
15377 ac_status=$?
15378 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15379 test $ac_status = 0; }; then
15380 gl_options=`grep -v '#' conftest.out`
15381 for word in $gl_options; do
15382 GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
15383 done
15384 fi
15385 rm -f conftest.c conftest.out
15386 fi
15387
15388
15389
15390 if false; then
15391 GL_COND_LIBTOOL_TRUE=
15392 GL_COND_LIBTOOL_FALSE='#'
15393 else
15394 GL_COND_LIBTOOL_TRUE='#'
15395 GL_COND_LIBTOOL_FALSE=
15396 fi
15397
15398 gl_cond_libtool=false
15399 gl_libdeps=
15400 gl_ltlibdeps=
15401 gl_m4_base='m4'
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412
15413
15414 gl_source_base='lib'
15415 gl_source_base_prefix=
15416
15417
15418 if test $ac_cv_func_alloca_works = no; then
15419 :
15420 fi
15421
15422 # Define an additional variable used in the Makefile substitution.
15423 if test $ac_cv_working_alloca_h = yes; then
15424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
15425 printf %s "checking for alloca as a compiler built-in... " >&6; }
15426 if test ${gl_cv_rpl_alloca+y}
15427 then :
15428 printf %s "(cached) " >&6
15429 else case e in #(
15430 e)
15431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15432 /* end confdefs.h. */
15433
15434 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
15435 Need own alloca
15436 #endif
15437
15438 _ACEOF
15439 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15440 $EGREP_TRADITIONAL "Need own alloca" >/dev/null 2>&1
15441 then :
15442 gl_cv_rpl_alloca=yes
15443 else case e in #(
15444 e) gl_cv_rpl_alloca=no ;;
15445 esac
15446 fi
15447 rm -rf conftest*
15448
15449 ;;
15450 esac
15451 fi
15452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
15453 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
15454 if test $gl_cv_rpl_alloca = yes; then
15455
15456 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
15457
15458 GL_GENERATE_ALLOCA_H=true
15459 else
15460 GL_GENERATE_ALLOCA_H=false
15461 fi
15462 else
15463 GL_GENERATE_ALLOCA_H=true
15464 fi
15465
15466 if test $ac_cv_working_alloca_h = yes; then
15467 HAVE_ALLOCA_H=1
15468 else
15469 HAVE_ALLOCA_H=0
15470 fi
15471
15472
15473
15474
15475
15476
15477 case "$GL_GENERATE_ALLOCA_H" in
15478 false) ALLOCA_H='' ;;
15479 true)
15480 if test -z "$ALLOCA_H"; then
15481 ALLOCA_H="${gl_source_base_prefix}alloca.h"
15482 fi
15483 ;;
15484 *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;;
15485 esac
15486
15487
15488 if $GL_GENERATE_ALLOCA_H; then
15489 GL_GENERATE_ALLOCA_H_TRUE=
15490 GL_GENERATE_ALLOCA_H_FALSE='#'
15491 else
15492 GL_GENERATE_ALLOCA_H_TRUE='#'
15493 GL_GENERATE_ALLOCA_H_FALSE=
15494 fi
15495 :
15496 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
15497 GL_GENERATE_ALLOCA_H_TRUE='#'
15498 GL_GENERATE_ALLOCA_H_FALSE='#'
15499 fi
15500
15501
15502
15503
15504
15505
15506
15507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static_assert" >&5
15508 printf %s "checking for static_assert... " >&6; }
15509 if test ${gl_cv_static_assert+y}
15510 then :
15511 printf %s "(cached) " >&6
15512 else case e in #(
15513 e) gl_saved_CFLAGS=$CFLAGS
15514 for gl_working in "yes, a keyword" "yes, an <assert.h> macro"; do
15515 case $gl_working in #(
15516 *assert.h*) :
15517 CFLAGS="$gl_saved_CFLAGS -DINCLUDE_ASSERT_H" ;; #(
15518 *) :
15519 ;;
15520 esac
15521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15522 /* end confdefs.h. */
15523 #if defined __clang__ && __STDC_VERSION__ < 202311
15524 #pragma clang diagnostic error "-Wc2x-extensions"
15525 #pragma clang diagnostic error "-Wc++1z-extensions"
15526 #endif
15527 #ifdef INCLUDE_ASSERT_H
15528 #include <assert.h>
15529 #endif
15530 static_assert (2 + 2 == 4, "arithmetic does not work");
15531 static_assert (2 + 2 == 4);
15532
15533 int
15534 main (void)
15535 {
15536
15537 static_assert (sizeof (char) == 1, "sizeof does not work");
15538 static_assert (sizeof (char) == 1);
15539
15540 ;
15541 return 0;
15542 }
15543
15544 _ACEOF
15545 if ac_fn_c_try_compile "$LINENO"
15546 then :
15547 gl_cv_static_assert=$gl_working
15548 else case e in #(
15549 e) gl_cv_static_assert=no ;;
15550 esac
15551 fi
15552 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15553 CFLAGS=$gl_saved_CFLAGS
15554 test "$gl_cv_static_assert" != no && break
15555 done
15556 ;;
15557 esac
15558 fi
15559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_static_assert" >&5
15560 printf "%s\n" "$gl_cv_static_assert" >&6; }
15561
15562 GL_GENERATE_ASSERT_H=false
15563 case $gl_cv_static_assert in #(
15564 yes*keyword*) :
15565
15566 printf "%s\n" "#define HAVE_C_STATIC_ASSERT 1" >>confdefs.h
15567 ;; #(
15568 no) :
15569 GL_GENERATE_ASSERT_H=true
15570
15571
15572
15573
15574
15575
15576
15577
15578 if test $gl_cv_have_include_next = yes; then
15579 gl_cv_next_assert_h='<'assert.h'>'
15580 else
15581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <assert.h>" >&5
15582 printf %s "checking absolute name of <assert.h>... " >&6; }
15583 if test ${gl_cv_next_assert_h+y}
15584 then :
15585 printf %s "(cached) " >&6
15586 else case e in #(
15587 e)
15588
15589
15590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591 /* end confdefs.h. */
15592 #include <assert.h>
15593 _ACEOF
15594 case "$host_os" in
15595 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15596 *) gl_absname_cpp="$ac_cpp" ;;
15597 esac
15598
15599 case "$host_os" in
15600 mingw* | windows*)
15601 gl_dirsep_regex='[/\\]'
15602 ;;
15603 *)
15604 gl_dirsep_regex='\/'
15605 ;;
15606 esac
15607 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15608 gl_header_literal_regex=`echo 'assert.h' \
15609 | sed -e "$gl_make_literal_regex_sed"`
15610 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15611 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15612 s|^/[^/]|//&|
15613 p
15614 q
15615 }'
15616
15617 gl_cv_absolute_assert_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15618 sed -n "$gl_absolute_header_sed"`
15619
15620 gl_header=$gl_cv_absolute_assert_h
15621 gl_cv_next_assert_h='"'$gl_header'"'
15622
15623 ;;
15624 esac
15625 fi
15626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_assert_h" >&5
15627 printf "%s\n" "$gl_cv_next_assert_h" >&6; }
15628 fi
15629 NEXT_ASSERT_H=$gl_cv_next_assert_h
15630
15631 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15632 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15633 gl_next_as_first_directive='<'assert.h'>'
15634 else
15635 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15636 gl_next_as_first_directive=$gl_cv_next_assert_h
15637 fi
15638 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H=$gl_next_as_first_directive
15639
15640
15641
15642 ;; #(
15643 *) :
15644 ;;
15645 esac
15646
15647
15648
15649
15650
15651
15652
15653 case "$GL_GENERATE_ASSERT_H" in
15654 false) ASSERT_H='' ;;
15655 true)
15656 if test -z "$ASSERT_H"; then
15657 ASSERT_H="${gl_source_base_prefix}assert.h"
15658 fi
15659 ;;
15660 *) echo "*** GL_GENERATE_ASSERT_H is not set correctly" 1>&2; exit 1 ;;
15661 esac
15662
15663
15664 if $GL_GENERATE_ASSERT_H; then
15665 GL_GENERATE_ASSERT_H_TRUE=
15666 GL_GENERATE_ASSERT_H_FALSE='#'
15667 else
15668 GL_GENERATE_ASSERT_H_TRUE='#'
15669 GL_GENERATE_ASSERT_H_FALSE=
15670 fi
15671 :
15672 if test -z "${GL_GENERATE_ASSERT_H_TRUE}" && test -z "${GL_GENERATE_ASSERT_H_FALSE}"; then
15673 GL_GENERATE_ASSERT_H_TRUE='#'
15674 GL_GENERATE_ASSERT_H_FALSE='#'
15675 fi
15676
15677
15678
15679
15680
15681
15682
15683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bool, true, false" >&5
15684 printf %s "checking for bool, true, false... " >&6; }
15685 if test ${gl_cv_c_bool+y}
15686 then :
15687 printf %s "(cached) " >&6
15688 else case e in #(
15689 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15690 /* end confdefs.h. */
15691
15692 #if true == false
15693 #error "true == false"
15694 #endif
15695 extern bool b;
15696 bool b = true == false;
15697 _ACEOF
15698 if ac_fn_c_try_compile "$LINENO"
15699 then :
15700 gl_cv_c_bool=yes
15701 else case e in #(
15702 e) gl_cv_c_bool=no ;;
15703 esac
15704 fi
15705 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15706 esac
15707 fi
15708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_bool" >&5
15709 printf "%s\n" "$gl_cv_c_bool" >&6; }
15710 if test "$gl_cv_c_bool" = yes; then
15711
15712 printf "%s\n" "#define HAVE_C_BOOL 1" >>confdefs.h
15713
15714 fi
15715
15716
15717
15718
15719
15720
15721
15722 printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
15723
15724
15725
15726
15727 if test $REPLACE_CLOSE = 1; then
15728 GL_COND_OBJ_CLOSE_TRUE=
15729 GL_COND_OBJ_CLOSE_FALSE='#'
15730 else
15731 GL_COND_OBJ_CLOSE_TRUE='#'
15732 GL_COND_OBJ_CLOSE_FALSE=
15733 fi
15734 :
15735 if test -z "${GL_COND_OBJ_CLOSE_TRUE}" && test -z "${GL_COND_OBJ_CLOSE_FALSE}"; then
15736 GL_COND_OBJ_CLOSE_TRUE='#'
15737 GL_COND_OBJ_CLOSE_FALSE='#'
15738 fi
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749 GL_GNULIB_CLOSE=1
15750
15751
15752
15753
15754
15755 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
15756
15757
15758
15759
15760
15761 printf "%s\n" "#define GNULIB_CLOSE 1" >>confdefs.h
15762
15763
15764
15765
15766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
15767 printf %s "checking whether // is distinct from /... " >&6; }
15768 if test ${gl_cv_double_slash_root+y}
15769 then :
15770 printf %s "(cached) " >&6
15771 else case e in #(
15772 e) if test x"$cross_compiling" = xyes ; then
15773 # When cross-compiling, there is no way to tell whether // is special
15774 # short of a list of hosts. However, the only known hosts to date
15775 # that have a distinct // are Apollo DomainOS (too old to port to),
15776 # Cygwin, and z/OS. If anyone knows of another system for which // has
15777 # special semantics and is distinct from /, please report it to
15778 # <[email protected]>.
15779 case $host in
15780 *-cygwin | i370-ibm-openedition)
15781 gl_cv_double_slash_root=yes ;;
15782 *)
15783 # Be optimistic and assume that / and // are the same when we
15784 # don't know.
15785 gl_cv_double_slash_root='unknown, assuming no' ;;
15786 esac
15787 else
15788 set x `ls -di / // 2>/dev/null`
15789 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
15790 gl_cv_double_slash_root=no
15791 else
15792 gl_cv_double_slash_root=yes
15793 fi
15794 fi ;;
15795 esac
15796 fi
15797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
15798 printf "%s\n" "$gl_cv_double_slash_root" >&6; }
15799 if test "$gl_cv_double_slash_root" = yes; then
15800
15801 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
15802
15803 fi
15804
15805
15806
15807
15808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
15809 printf %s "checking whether dup2 works... " >&6; }
15810 if test ${gl_cv_func_dup2_works+y}
15811 then :
15812 printf %s "(cached) " >&6
15813 else case e in #(
15814 e) if test "$cross_compiling" = yes
15815 then :
15816 case "$host_os" in
15817 mingw* | windows*) # on this platform, dup2 always returns 0 for success
15818 gl_cv_func_dup2_works="guessing no" ;;
15819 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
15820 gl_cv_func_dup2_works="guessing no" ;;
15821 aix* | freebsd*)
15822 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
15823 # not EBADF.
15824 gl_cv_func_dup2_works="guessing no" ;;
15825 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
15826 gl_cv_func_dup2_works="guessing no" ;;
15827 *-android*) # implemented using dup3(), which fails if oldfd == newfd
15828 gl_cv_func_dup2_works="guessing no" ;;
15829 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
15830 gl_cv_func_dup2_works="guessing no" ;;
15831 *) gl_cv_func_dup2_works="guessing yes" ;;
15832 esac
15833 else case e in #(
15834 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15835 /* end confdefs.h. */
15836
15837 #include <errno.h>
15838 #include <fcntl.h>
15839 #include <limits.h>
15840 #include <sys/resource.h>
15841 #include <unistd.h>
15842
15843
15844 $gl_mda_defines
15845
15846 #ifndef RLIM_SAVED_CUR
15847 # define RLIM_SAVED_CUR RLIM_INFINITY
15848 #endif
15849 #ifndef RLIM_SAVED_MAX
15850 # define RLIM_SAVED_MAX RLIM_INFINITY
15851 #endif
15852
15853 int
15854 main (void)
15855 {
15856 int result = 0;
15857 int bad_fd = INT_MAX;
15858 struct rlimit rlim;
15859 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
15860 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
15861 && rlim.rlim_cur != RLIM_INFINITY
15862 && rlim.rlim_cur != RLIM_SAVED_MAX
15863 && rlim.rlim_cur != RLIM_SAVED_CUR)
15864 bad_fd = rlim.rlim_cur;
15865 #ifdef FD_CLOEXEC
15866 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
15867 result |= 1;
15868 #endif
15869 if (dup2 (1, 1) != 1)
15870 result |= 2;
15871 #ifdef FD_CLOEXEC
15872 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
15873 result |= 4;
15874 #endif
15875 close (0);
15876 if (dup2 (0, 0) != -1)
15877 result |= 8;
15878 /* Many gnulib modules require POSIX conformance of EBADF. */
15879 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
15880 result |= 16;
15881 /* Flush out some cygwin core dumps. */
15882 if (dup2 (2, -1) != -1 || errno != EBADF)
15883 result |= 32;
15884 dup2 (2, 255);
15885 dup2 (2, 256);
15886 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
15887 {
15888 int fd = open (".", O_RDONLY);
15889 if (fd == -1)
15890 result |= 64;
15891 else if (dup2 (fd, fd + 1) == -1)
15892 result |= 128;
15893 close (fd);
15894 }
15895 return result;
15896 ;
15897 return 0;
15898 }
15899
15900 _ACEOF
15901 if ac_fn_c_try_run "$LINENO"
15902 then :
15903 gl_cv_func_dup2_works=yes
15904 else case e in #(
15905 e) gl_cv_func_dup2_works=no ;;
15906 esac
15907 fi
15908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15909 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15910 esac
15911 fi
15912
15913 ;;
15914 esac
15915 fi
15916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
15917 printf "%s\n" "$gl_cv_func_dup2_works" >&6; }
15918 case "$gl_cv_func_dup2_works" in
15919 *yes) ;;
15920 *)
15921 REPLACE_DUP2=1
15922 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
15923 if test "x$ac_cv_func_setdtablesize" = xyes
15924 then :
15925 printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
15926
15927 fi
15928
15929 ;;
15930 esac
15931
15932
15933
15934 if test $REPLACE_DUP2 = 1; then
15935 GL_COND_OBJ_DUP2_TRUE=
15936 GL_COND_OBJ_DUP2_FALSE='#'
15937 else
15938 GL_COND_OBJ_DUP2_TRUE='#'
15939 GL_COND_OBJ_DUP2_FALSE=
15940 fi
15941 :
15942 if test -z "${GL_COND_OBJ_DUP2_TRUE}" && test -z "${GL_COND_OBJ_DUP2_FALSE}"; then
15943 GL_COND_OBJ_DUP2_TRUE='#'
15944 GL_COND_OBJ_DUP2_FALSE='#'
15945 fi
15946
15947 if test -z "$GL_COND_OBJ_DUP2_TRUE"; then :
15948
15949
15950
15951 fi
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961 GL_GNULIB_DUP2=1
15962
15963
15964
15965
15966
15967 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h
15968
15969
15970
15971
15972
15973
15974
15975
15976 case "$GL_GENERATE_ERRNO_H" in
15977 false) ERRNO_H='' ;;
15978 true)
15979 if test -z "$ERRNO_H"; then
15980 ERRNO_H="${gl_source_base_prefix}errno.h"
15981 fi
15982 ;;
15983 *) echo "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;;
15984 esac
15985
15986
15987 if $GL_GENERATE_ERRNO_H; then
15988 GL_GENERATE_ERRNO_H_TRUE=
15989 GL_GENERATE_ERRNO_H_FALSE='#'
15990 else
15991 GL_GENERATE_ERRNO_H_TRUE='#'
15992 GL_GENERATE_ERRNO_H_FALSE=
15993 fi
15994 :
15995 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
15996 GL_GENERATE_ERRNO_H_TRUE='#'
15997 GL_GENERATE_ERRNO_H_FALSE='#'
15998 fi
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009 if test $COMPILE_ERROR_C = 1; then
16010 GL_COND_OBJ_ERROR_TRUE=
16011 GL_COND_OBJ_ERROR_FALSE='#'
16012 else
16013 GL_COND_OBJ_ERROR_TRUE='#'
16014 GL_COND_OBJ_ERROR_FALSE=
16015 fi
16016 :
16017 if test -z "${GL_COND_OBJ_ERROR_TRUE}" && test -z "${GL_COND_OBJ_ERROR_FALSE}"; then
16018 GL_COND_OBJ_ERROR_TRUE='#'
16019 GL_COND_OBJ_ERROR_FALSE='#'
16020 fi
16021
16022 if test -z "$GL_COND_OBJ_ERROR_TRUE"; then :
16023
16024
16025
16026
16027
16028 :
16029
16030
16031 fi
16032
16033
16034
16035
16036
16037
16038
16039
16040
16041 if test $ac_cv_func_fcntl = no; then
16042
16043
16044
16045 if test $ac_cv_func_fcntl = no; then
16046 HAVE_FCNTL=0
16047 else
16048 REPLACE_FCNTL=1
16049 fi
16050
16051 else
16052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
16053 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; }
16054 if test ${gl_cv_func_fcntl_f_dupfd_works+y}
16055 then :
16056 printf %s "(cached) " >&6
16057 else case e in #(
16058 e) if test "$cross_compiling" = yes
16059 then :
16060 case $host_os in
16061 aix* | cygwin* | haiku*)
16062 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
16063 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
16064 esac
16065 else case e in #(
16066 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16067 /* end confdefs.h. */
16068 #include <errno.h>
16069 #include <fcntl.h>
16070 #include <limits.h>
16071 #include <sys/resource.h>
16072 #include <unistd.h>
16073
16074
16075 $gl_mda_defines
16076
16077 #ifndef RLIM_SAVED_CUR
16078 # define RLIM_SAVED_CUR RLIM_INFINITY
16079 #endif
16080 #ifndef RLIM_SAVED_MAX
16081 # define RLIM_SAVED_MAX RLIM_INFINITY
16082 #endif
16083
16084 int
16085 main (void)
16086 {
16087 int result = 0;
16088 int bad_fd = INT_MAX;
16089 struct rlimit rlim;
16090 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
16091 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
16092 && rlim.rlim_cur != RLIM_INFINITY
16093 && rlim.rlim_cur != RLIM_SAVED_MAX
16094 && rlim.rlim_cur != RLIM_SAVED_CUR)
16095 bad_fd = rlim.rlim_cur;
16096 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
16097 if (errno != EINVAL) result |= 2;
16098 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
16099 if (errno != EINVAL) result |= 8;
16100 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
16101 {
16102 int fd;
16103 fd = open (".", O_RDONLY);
16104 if (fd == -1)
16105 result |= 16;
16106 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
16107 result |= 32;
16108
16109 close (fd);
16110 }
16111 return result;
16112 ;
16113 return 0;
16114 }
16115 _ACEOF
16116 if ac_fn_c_try_run "$LINENO"
16117 then :
16118 gl_cv_func_fcntl_f_dupfd_works=yes
16119 else case e in #(
16120 e) gl_cv_func_fcntl_f_dupfd_works=no ;;
16121 esac
16122 fi
16123 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16124 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16125 esac
16126 fi
16127 ;;
16128 esac
16129 fi
16130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
16131 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
16132 case $gl_cv_func_fcntl_f_dupfd_works in
16133 *yes) ;;
16134 *)
16135
16136
16137 if test $ac_cv_func_fcntl = no; then
16138 HAVE_FCNTL=0
16139 else
16140 REPLACE_FCNTL=1
16141 fi
16142
16143
16144 printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
16145 ;;
16146 esac
16147
16148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
16149 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
16150 if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y}
16151 then :
16152 printf %s "(cached) " >&6
16153 else case e in #(
16154 e) if test "$cross_compiling" = yes
16155 then :
16156 case "$host_os" in
16157 # Guess no on NetBSD.
16158 netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;;
16159 *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;;
16160 esac
16161
16162 else case e in #(
16163 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h. */
16165 #include <fcntl.h>
16166 #include <unistd.h>
16167 int main (int argc, char *argv[])
16168 {
16169 if (argc == 1)
16170 /* parent process */
16171 {
16172 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
16173 return 1;
16174 return execl ("./conftest", "./conftest", "child", NULL);
16175 }
16176 else
16177 /* child process */
16178 return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
16179 }
16180
16181
16182 _ACEOF
16183 if ac_fn_c_try_run "$LINENO"
16184 then :
16185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16186 /* end confdefs.h. */
16187
16188 #ifdef __linux__
16189 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
16190 it to support the semantics on older kernels that failed with EINVAL. */
16191 choke me
16192 #endif
16193
16194 int
16195 main (void)
16196 {
16197
16198 ;
16199 return 0;
16200 }
16201 _ACEOF
16202 if ac_fn_c_try_compile "$LINENO"
16203 then :
16204 gl_cv_func_fcntl_f_dupfd_cloexec=yes
16205 else case e in #(
16206 e) gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" ;;
16207 esac
16208 fi
16209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16210
16211 else case e in #(
16212 e) gl_cv_func_fcntl_f_dupfd_cloexec=no ;;
16213 esac
16214 fi
16215 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16216 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16217 esac
16218 fi
16219
16220 ;;
16221 esac
16222 fi
16223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
16224 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
16225 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
16226 *yes) ;;
16227 *)
16228
16229
16230 if test $ac_cv_func_fcntl = no; then
16231 HAVE_FCNTL=0
16232 else
16233 REPLACE_FCNTL=1
16234 fi
16235
16236 ;;
16237 esac
16238 fi
16239
16240
16241
16242 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
16243 GL_COND_OBJ_FCNTL_TRUE=
16244 GL_COND_OBJ_FCNTL_FALSE='#'
16245 else
16246 GL_COND_OBJ_FCNTL_TRUE='#'
16247 GL_COND_OBJ_FCNTL_FALSE=
16248 fi
16249 :
16250 if test -z "${GL_COND_OBJ_FCNTL_TRUE}" && test -z "${GL_COND_OBJ_FCNTL_FALSE}"; then
16251 GL_COND_OBJ_FCNTL_TRUE='#'
16252 GL_COND_OBJ_FCNTL_FALSE='#'
16253 fi
16254
16255
16256
16257
16258
16259
16260
16261
16262
16263
16264 GL_GNULIB_FCNTL=1
16265
16266
16267
16268
16269
16270 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
16271
16272
16273
16274
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for __fseterr" >&5
16285 printf %s "checking for __fseterr... " >&6; }
16286 if test ${gl_cv_onwards_func___fseterr+y}
16287 then :
16288 printf %s "(cached) " >&6
16289 else case e in #(
16290 e)
16291 exec 9>&6 6>/dev/null
16292
16293 case "$host_os" in
16294
16295 linux*-android*)
16296 ac_fn_check_decl "$LINENO" "__fseterr" "ac_cv_have_decl___fseterr" "#include <stdio.h>
16297 #include <stdio_ext.h>
16298
16299 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16300 if test "x$ac_cv_have_decl___fseterr" = xyes
16301 then :
16302
16303 fi
16304 if test $ac_cv_have_decl___fseterr = yes; then
16305 ac_fn_c_check_func "$LINENO" "__fseterr" "ac_cv_func___fseterr"
16306 if test "x$ac_cv_func___fseterr" = xyes
16307 then :
16308
16309 fi
16310
16311 if test $ac_cv_func___fseterr = yes; then
16312 gl_cv_onwards_func___fseterr=yes
16313 else
16314 gl_cv_onwards_func___fseterr='future OS version'
16315 fi
16316 else
16317 gl_cv_onwards_func___fseterr='future OS version'
16318 fi
16319 ;;
16320
16321
16322 *)
16323 ac_fn_c_check_func "$LINENO" "__fseterr" "ac_cv_func___fseterr"
16324 if test "x$ac_cv_func___fseterr" = xyes
16325 then :
16326
16327 fi
16328
16329 gl_cv_onwards_func___fseterr=$ac_cv_func___fseterr
16330 ;;
16331
16332 esac
16333
16334 exec 6>&9 9>&-
16335
16336 ;;
16337 esac
16338 fi
16339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func___fseterr" >&5
16340 printf "%s\n" "$gl_cv_onwards_func___fseterr" >&6; }
16341
16342 case "$gl_cv_onwards_func___fseterr" in
16343 future*) ac_cv_func___fseterr=no ;;
16344 *) ac_cv_func___fseterr=$gl_cv_onwards_func___fseterr ;;
16345 esac
16346 if test $ac_cv_func___fseterr = yes; then
16347
16348 printf "%s\n" "#define HAVE___FSETERR 1" >>confdefs.h
16349
16350 fi
16351
16352
16353
16354
16355 if test $ac_cv_func___fseterr = no; then
16356 GL_COND_OBJ_FSETERR_TRUE=
16357 GL_COND_OBJ_FSETERR_FALSE='#'
16358 else
16359 GL_COND_OBJ_FSETERR_TRUE='#'
16360 GL_COND_OBJ_FSETERR_FALSE=
16361 fi
16362 :
16363 if test -z "${GL_COND_OBJ_FSETERR_TRUE}" && test -z "${GL_COND_OBJ_FSETERR_FALSE}"; then
16364 GL_COND_OBJ_FSETERR_TRUE='#'
16365 GL_COND_OBJ_FSETERR_FALSE='#'
16366 fi
16367
16368
16369
16370
16371
16372 case "$host_os" in
16373 darwin* | mingw* | windows* | solaris*)
16374 REPLACE_FSTAT=1
16375 ;;
16376 esac
16377
16378
16379
16380
16381 if test $REPLACE_FSTAT = 1; then
16382 GL_COND_OBJ_FSTAT_TRUE=
16383 GL_COND_OBJ_FSTAT_FALSE='#'
16384 else
16385 GL_COND_OBJ_FSTAT_TRUE='#'
16386 GL_COND_OBJ_FSTAT_FALSE=
16387 fi
16388 :
16389 if test -z "${GL_COND_OBJ_FSTAT_TRUE}" && test -z "${GL_COND_OBJ_FSTAT_FALSE}"; then
16390 GL_COND_OBJ_FSTAT_TRUE='#'
16391 GL_COND_OBJ_FSTAT_FALSE='#'
16392 fi
16393
16394 if test -z "$GL_COND_OBJ_FSTAT_TRUE"; then :
16395
16396 case "$host_os" in
16397 mingw* | windows*)
16398
16399
16400
16401
16402
16403
16404
16405
16406 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
16407
16408 ;;
16409 esac
16410
16411
16412
16413 :
16414
16415
16416 fi
16417
16418
16419
16420
16421
16422
16423
16424
16425
16426 GL_GNULIB_FSTAT=1
16427
16428
16429
16430
16431
16432 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
16433
16434
16435
16436
16437
16438 printf "%s\n" "#define GNULIB_FSTAT 1" >>confdefs.h
16439
16440
16441
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getdelim" >&5
16452 printf %s "checking for getdelim... " >&6; }
16453 if test ${gl_cv_onwards_func_getdelim+y}
16454 then :
16455 printf %s "(cached) " >&6
16456 else case e in #(
16457 e)
16458 exec 9>&6 6>/dev/null
16459
16460 case "$host_os" in
16461
16462 linux*-android*)
16463 ac_fn_check_decl "$LINENO" "getdelim" "ac_cv_have_decl_getdelim" "#include <stdio.h>
16464 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16465 if test "x$ac_cv_have_decl_getdelim" = xyes
16466 then :
16467
16468 fi
16469 if test $ac_cv_have_decl_getdelim = yes; then
16470 ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim"
16471 if test "x$ac_cv_func_getdelim" = xyes
16472 then :
16473
16474 fi
16475
16476 if test $ac_cv_func_getdelim = yes; then
16477 gl_cv_onwards_func_getdelim=yes
16478 else
16479 gl_cv_onwards_func_getdelim='future OS version'
16480 fi
16481 else
16482 gl_cv_onwards_func_getdelim='future OS version'
16483 fi
16484 ;;
16485
16486
16487 *)
16488 ac_fn_c_check_func "$LINENO" "getdelim" "ac_cv_func_getdelim"
16489 if test "x$ac_cv_func_getdelim" = xyes
16490 then :
16491
16492 fi
16493
16494 gl_cv_onwards_func_getdelim=$ac_cv_func_getdelim
16495 ;;
16496
16497 esac
16498
16499 exec 6>&9 9>&-
16500
16501 ;;
16502 esac
16503 fi
16504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_getdelim" >&5
16505 printf "%s\n" "$gl_cv_onwards_func_getdelim" >&6; }
16506
16507 case "$gl_cv_onwards_func_getdelim" in
16508 future*) ac_cv_func_getdelim=no ;;
16509 *) ac_cv_func_getdelim=$gl_cv_onwards_func_getdelim ;;
16510 esac
16511 if test $ac_cv_func_getdelim = yes; then
16512
16513 printf "%s\n" "#define HAVE_GETDELIM 1" >>confdefs.h
16514
16515 fi
16516
16517
16518 if test $ac_cv_func_getdelim = yes; then
16519 HAVE_GETDELIM=1
16520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getdelim function" >&5
16521 printf %s "checking for working getdelim function... " >&6; }
16522 if test ${gl_cv_func_working_getdelim+y}
16523 then :
16524 printf %s "(cached) " >&6
16525 else case e in #(
16526 e) case "$host_os" in
16527 darwin*)
16528 gl_cv_func_working_getdelim=no ;;
16529 *)
16530 echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
16531 if test "$cross_compiling" = yes
16532 then :
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16535
16536 #include <features.h>
16537 #ifdef __GNU_LIBRARY__
16538 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
16539 Lucky GNU user
16540 #endif
16541 #endif
16542
16543 _ACEOF
16544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16545 $EGREP_TRADITIONAL "Lucky GNU user" >/dev/null 2>&1
16546 then :
16547 gl_cv_func_working_getdelim="guessing yes"
16548 else case e in #(
16549 e) case "$host_os" in
16550 *-musl* | midipix*) gl_cv_func_working_getdelim="guessing yes" ;;
16551 *) gl_cv_func_working_getdelim="$gl_cross_guess_normal" ;;
16552 esac
16553 ;;
16554 esac
16555 fi
16556 rm -rf conftest*
16557
16558
16559 else case e in #(
16560 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16561 /* end confdefs.h. */
16562
16563 # include <stdio.h>
16564 # include <stdlib.h>
16565 # include <string.h>
16566 int main ()
16567 {
16568 FILE *in = fopen ("./conftest.data", "r");
16569 int result = 0;
16570 if (!in)
16571 return 1;
16572 {
16573 /* Test result for a NULL buffer and a zero size.
16574 Based on a test program from Karl Heuer. */
16575 char *line = NULL;
16576 size_t siz = 0;
16577 int len = getdelim (&line, &siz, '\n', in);
16578 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
16579 result |= 2;
16580 free (line);
16581 }
16582 {
16583 /* Test result for a NULL buffer and a non-zero size.
16584 This crashes on FreeBSD 8.0. */
16585 char *line = NULL;
16586 size_t siz = (size_t)(~0) / 4;
16587 if (getdelim (&line, &siz, '\n', in) == -1)
16588 result |= 4;
16589 free (line);
16590 }
16591 fclose (in);
16592 return result;
16593 }
16594
16595 _ACEOF
16596 if ac_fn_c_try_run "$LINENO"
16597 then :
16598 gl_cv_func_working_getdelim=yes
16599 else case e in #(
16600 e) gl_cv_func_working_getdelim=no ;;
16601 esac
16602 fi
16603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16604 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16605 esac
16606 fi
16607
16608 ;;
16609 esac
16610 rm -f conftest.data
16611 ;;
16612 esac
16613 fi
16614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_getdelim" >&5
16615 printf "%s\n" "$gl_cv_func_working_getdelim" >&6; }
16616 case "$gl_cv_func_working_getdelim" in
16617 *yes) ;;
16618 *) REPLACE_GETDELIM=1 ;;
16619 esac
16620 else
16621 HAVE_GETDELIM=0
16622 case "$gl_cv_onwards_func_getdelim" in
16623 future*) REPLACE_GETDELIM=1 ;;
16624 esac
16625 fi
16626
16627 if test $ac_cv_have_decl_getdelim = no; then
16628 HAVE_DECL_GETDELIM=0
16629 fi
16630
16631
16632 if test $HAVE_GETDELIM = 0 || test $REPLACE_GETDELIM = 1; then
16633 GL_COND_OBJ_GETDELIM_TRUE=
16634 GL_COND_OBJ_GETDELIM_FALSE='#'
16635 else
16636 GL_COND_OBJ_GETDELIM_TRUE='#'
16637 GL_COND_OBJ_GETDELIM_FALSE=
16638 fi
16639 :
16640 if test -z "${GL_COND_OBJ_GETDELIM_TRUE}" && test -z "${GL_COND_OBJ_GETDELIM_FALSE}"; then
16641 GL_COND_OBJ_GETDELIM_TRUE='#'
16642 GL_COND_OBJ_GETDELIM_FALSE='#'
16643 fi
16644
16645 if test -z "$GL_COND_OBJ_GETDELIM_TRUE"; then :
16646
16647
16648 ac_fn_c_check_func "$LINENO" "flockfile" "ac_cv_func_flockfile"
16649 if test "x$ac_cv_func_flockfile" = xyes
16650 then :
16651 printf "%s\n" "#define HAVE_FLOCKFILE 1" >>confdefs.h
16652
16653 fi
16654 ac_fn_c_check_func "$LINENO" "funlockfile" "ac_cv_func_funlockfile"
16655 if test "x$ac_cv_func_funlockfile" = xyes
16656 then :
16657 printf "%s\n" "#define HAVE_FUNLOCKFILE 1" >>confdefs.h
16658
16659 fi
16660
16661 ac_fn_check_decl "$LINENO" "getc_unlocked" "ac_cv_have_decl_getc_unlocked" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
16662 if test "x$ac_cv_have_decl_getc_unlocked" = xyes
16663 then :
16664 ac_have_decl=1
16665 else case e in #(
16666 e) ac_have_decl=0 ;;
16667 esac
16668 fi
16669 printf "%s\n" "#define HAVE_DECL_GETC_UNLOCKED $ac_have_decl" >>confdefs.h
16670
16671
16672
16673 fi
16674
16675
16676
16677
16678
16679
16680
16681
16682
16683 GL_GNULIB_GETDELIM=1
16684
16685
16686
16687
16688
16689 printf "%s\n" "#define GNULIB_TEST_GETDELIM 1" >>confdefs.h
16690
16691
16692
16693
16694
16695
16696
16697
16698 if test $ac_cv_func_getdtablesize = yes &&
16699 test $ac_cv_have_decl_getdtablesize = yes; then
16700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
16701 printf %s "checking whether getdtablesize works... " >&6; }
16702 if test ${gl_cv_func_getdtablesize_works+y}
16703 then :
16704 printf %s "(cached) " >&6
16705 else case e in #(
16706 e) case "$host_os" in
16707 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
16708 *)
16709 if test "$cross_compiling" = yes
16710 then :
16711 case "$host_os" in
16712 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
16713 gl_cv_func_getdtablesize_works="guessing no" ;;
16714 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
16715 esac
16716
16717 else case e in #(
16718 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16719 /* end confdefs.h. */
16720
16721 #include <unistd.h>
16722
16723
16724 $gl_mda_defines
16725
16726
16727 int
16728 main (void)
16729 {
16730 int size = getdtablesize();
16731 if (dup2 (0, getdtablesize()) != -1)
16732 return 1;
16733 if (size != getdtablesize())
16734 return 2;
16735
16736 ;
16737 return 0;
16738 }
16739 _ACEOF
16740 if ac_fn_c_try_run "$LINENO"
16741 then :
16742 gl_cv_func_getdtablesize_works=yes
16743 else case e in #(
16744 e) gl_cv_func_getdtablesize_works=no ;;
16745 esac
16746 fi
16747 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16748 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16749 esac
16750 fi
16751
16752 ;;
16753 esac
16754 ;;
16755 esac
16756 fi
16757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
16758 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; }
16759 case "$gl_cv_func_getdtablesize_works" in
16760 *yes | "no (limitation)") ;;
16761 *) REPLACE_GETDTABLESIZE=1 ;;
16762 esac
16763 else
16764 HAVE_GETDTABLESIZE=0
16765 fi
16766
16767
16768 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
16769 GL_COND_OBJ_GETDTABLESIZE_TRUE=
16770 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
16771 else
16772 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
16773 GL_COND_OBJ_GETDTABLESIZE_FALSE=
16774 fi
16775 :
16776 if test -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then
16777 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
16778 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
16779 fi
16780
16781 if test -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then :
16782
16783 :
16784
16785 fi
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795 GL_GNULIB_GETDTABLESIZE=1
16796
16797
16798
16799
16800
16801 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getline" >&5
16815 printf %s "checking for getline... " >&6; }
16816 if test ${gl_cv_onwards_func_getline+y}
16817 then :
16818 printf %s "(cached) " >&6
16819 else case e in #(
16820 e)
16821 exec 9>&6 6>/dev/null
16822
16823 case "$host_os" in
16824
16825 linux*-android*)
16826 ac_fn_check_decl "$LINENO" "getline" "ac_cv_have_decl_getline" "#include <stdio.h>
16827 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16828 if test "x$ac_cv_have_decl_getline" = xyes
16829 then :
16830
16831 fi
16832 if test $ac_cv_have_decl_getline = yes; then
16833 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16834 if test "x$ac_cv_func_getline" = xyes
16835 then :
16836
16837 fi
16838
16839 if test $ac_cv_func_getline = yes; then
16840 gl_cv_onwards_func_getline=yes
16841 else
16842 gl_cv_onwards_func_getline='future OS version'
16843 fi
16844 else
16845 gl_cv_onwards_func_getline='future OS version'
16846 fi
16847 ;;
16848
16849
16850 *)
16851 ac_fn_c_check_func "$LINENO" "getline" "ac_cv_func_getline"
16852 if test "x$ac_cv_func_getline" = xyes
16853 then :
16854
16855 fi
16856
16857 gl_cv_onwards_func_getline=$ac_cv_func_getline
16858 ;;
16859
16860 esac
16861
16862 exec 6>&9 9>&-
16863
16864 ;;
16865 esac
16866 fi
16867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_getline" >&5
16868 printf "%s\n" "$gl_cv_onwards_func_getline" >&6; }
16869
16870 case "$gl_cv_onwards_func_getline" in
16871 future*) ac_cv_func_getline=no ;;
16872 *) ac_cv_func_getline=$gl_cv_onwards_func_getline ;;
16873 esac
16874 if test $ac_cv_func_getline = yes; then
16875
16876 printf "%s\n" "#define HAVE_GETLINE 1" >>confdefs.h
16877
16878 fi
16879
16880
16881 if test $ac_cv_func_getline = yes; then
16882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working getline function" >&5
16883 printf %s "checking for working getline function... " >&6; }
16884 if test ${am_cv_func_working_getline+y}
16885 then :
16886 printf %s "(cached) " >&6
16887 else case e in #(
16888 e) echo fooNbarN | tr -d '\012' | tr N '\012' > conftest.data
16889 if test "$cross_compiling" = yes
16890 then :
16891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16892 /* end confdefs.h. */
16893
16894 #include <features.h>
16895 #ifdef __GNU_LIBRARY__
16896 #if (__GLIBC__ >= 2) && !defined __UCLIBC__
16897 Lucky GNU user
16898 #endif
16899 #endif
16900
16901 _ACEOF
16902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16903 $EGREP_TRADITIONAL "Lucky GNU user" >/dev/null 2>&1
16904 then :
16905 am_cv_func_working_getline="guessing yes"
16906 else case e in #(
16907 e) case "$host_os" in
16908 *-musl* | midipix*) am_cv_func_working_getline="guessing yes" ;;
16909 *) am_cv_func_working_getline="$gl_cross_guess_normal" ;;
16910 esac
16911 ;;
16912 esac
16913 fi
16914 rm -rf conftest*
16915
16916
16917 else case e in #(
16918 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16919 /* end confdefs.h. */
16920
16921 # include <stdio.h>
16922 # include <stdlib.h>
16923 # include <string.h>
16924 int main ()
16925 {
16926 FILE *in = fopen ("./conftest.data", "r");
16927 int result = 0;
16928 if (!in)
16929 return 1;
16930 {
16931 /* Test result for a NULL buffer and a zero size.
16932 Based on a test program from Karl Heuer. */
16933 char *line = NULL;
16934 size_t siz = 0;
16935 int len = getline (&line, &siz, in);
16936 if (!(len == 4 && line && strcmp (line, "foo\n") == 0))
16937 result |= 2;
16938 free (line);
16939 }
16940 {
16941 /* Test result for a NULL buffer and a non-zero size.
16942 This crashes on FreeBSD 8.0. */
16943 char *line = NULL;
16944 size_t siz = (size_t)(~0) / 4;
16945 if (getline (&line, &siz, in) == -1)
16946 result |= 4;
16947 free (line);
16948 }
16949 fclose (in);
16950 return result;
16951 }
16952
16953 _ACEOF
16954 if ac_fn_c_try_run "$LINENO"
16955 then :
16956 am_cv_func_working_getline=yes
16957 else case e in #(
16958 e) am_cv_func_working_getline=no ;;
16959 esac
16960 fi
16961 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16962 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16963 esac
16964 fi
16965
16966 rm -f conftest.data
16967 ;;
16968 esac
16969 fi
16970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_working_getline" >&5
16971 printf "%s\n" "$am_cv_func_working_getline" >&6; }
16972 else
16973 am_cv_func_working_getline=no
16974 case "$gl_cv_onwards_func_getline" in
16975 future*) REPLACE_GETLINE=1 ;;
16976 esac
16977 fi
16978
16979 if test $ac_cv_have_decl_getline = no; then
16980 HAVE_DECL_GETLINE=0
16981 fi
16982
16983 case "$am_cv_func_working_getline" in
16984 *yes) ;;
16985 *)
16986 REPLACE_GETLINE=1
16987 ;;
16988 esac
16989
16990
16991 if test $REPLACE_GETLINE = 1; then
16992 GL_COND_OBJ_GETLINE_TRUE=
16993 GL_COND_OBJ_GETLINE_FALSE='#'
16994 else
16995 GL_COND_OBJ_GETLINE_TRUE='#'
16996 GL_COND_OBJ_GETLINE_FALSE=
16997 fi
16998 :
16999 if test -z "${GL_COND_OBJ_GETLINE_TRUE}" && test -z "${GL_COND_OBJ_GETLINE_FALSE}"; then
17000 GL_COND_OBJ_GETLINE_TRUE='#'
17001 GL_COND_OBJ_GETLINE_FALSE='#'
17002 fi
17003
17004 if test -z "$GL_COND_OBJ_GETLINE_TRUE"; then :
17005
17006
17007 :
17008
17009
17010 fi
17011
17012
17013
17014
17015
17016
17017
17018
17019
17020 GL_GNULIB_GETLINE=1
17021
17022
17023
17024
17025
17026 printf "%s\n" "#define GNULIB_TEST_GETLINE 1" >>confdefs.h
17027
17028
17029
17030
17031
17032
17033
17034
17035 if test $ac_cv_header_sys_process_h = yes; then
17036 HAVE_SYS_PROCESS_H=1
17037 else
17038 HAVE_SYS_PROCESS_H=0
17039 fi
17040
17041
17042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprogname" >&5
17043 printf %s "checking for getprogname... " >&6; }
17044 if test ${gl_cv_onwards_func_getprogname+y}
17045 then :
17046 printf %s "(cached) " >&6
17047 else case e in #(
17048 e)
17049 exec 9>&6 6>/dev/null
17050
17051 case "$host_os" in
17052
17053 linux*-android*)
17054 ac_fn_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "#include <stdlib.h>
17055 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17056 if test "x$ac_cv_have_decl_getprogname" = xyes
17057 then :
17058
17059 fi
17060 if test $ac_cv_have_decl_getprogname = yes; then
17061 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
17062 if test "x$ac_cv_func_getprogname" = xyes
17063 then :
17064
17065 fi
17066
17067 if test $ac_cv_func_getprogname = yes; then
17068 gl_cv_onwards_func_getprogname=yes
17069 else
17070 gl_cv_onwards_func_getprogname='future OS version'
17071 fi
17072 else
17073 gl_cv_onwards_func_getprogname='future OS version'
17074 fi
17075 ;;
17076
17077
17078 *)
17079 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
17080 if test "x$ac_cv_func_getprogname" = xyes
17081 then :
17082
17083 fi
17084
17085 gl_cv_onwards_func_getprogname=$ac_cv_func_getprogname
17086 ;;
17087
17088 esac
17089
17090 exec 6>&9 9>&-
17091
17092 ;;
17093 esac
17094 fi
17095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_getprogname" >&5
17096 printf "%s\n" "$gl_cv_onwards_func_getprogname" >&6; }
17097
17098 case "$gl_cv_onwards_func_getprogname" in
17099 future*) ac_cv_func_getprogname=no ;;
17100 *) ac_cv_func_getprogname=$gl_cv_onwards_func_getprogname ;;
17101 esac
17102 if test $ac_cv_func_getprogname = yes; then
17103
17104 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h
17105
17106 fi
17107
17108
17109 if test $ac_cv_func_getprogname = no; then
17110 HAVE_GETPROGNAME=0
17111 case "$gl_cv_onwards_func_getprogname" in
17112 future*) REPLACE_GETPROGNAME=1 ;;
17113 esac
17114 fi
17115 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
17116 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17117 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
17118 then :
17119 ac_have_decl=1
17120 else case e in #(
17121 e) ac_have_decl=0 ;;
17122 esac
17123 fi
17124 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
17125 if test $ac_have_decl = 1
17126 then :
17127
17128 else case e in #(
17129 e) HAVE_DECL_PROGRAM_INVOCATION_NAME=0 ;;
17130 esac
17131 fi
17132
17133
17134
17135 if test $HAVE_GETPROGNAME = 0 || test $REPLACE_GETPROGNAME = 1; then
17136 GL_COND_OBJ_GETPROGNAME_TRUE=
17137 GL_COND_OBJ_GETPROGNAME_FALSE='#'
17138 else
17139 GL_COND_OBJ_GETPROGNAME_TRUE='#'
17140 GL_COND_OBJ_GETPROGNAME_FALSE=
17141 fi
17142 :
17143 if test -z "${GL_COND_OBJ_GETPROGNAME_TRUE}" && test -z "${GL_COND_OBJ_GETPROGNAME_FALSE}"; then
17144 GL_COND_OBJ_GETPROGNAME_TRUE='#'
17145 GL_COND_OBJ_GETPROGNAME_FALSE='#'
17146 fi
17147
17148 if test -z "$GL_COND_OBJ_GETPROGNAME_TRUE"; then :
17149
17150
17151
17152
17153 ac_found=0
17154 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
17155 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17156 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
17157 then :
17158 ac_have_decl=1
17159 else case e in #(
17160 e) ac_have_decl=0 ;;
17161 esac
17162 fi
17163 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
17164 if test $ac_have_decl = 1
17165 then :
17166 ac_found=1
17167 fi
17168
17169 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
17170 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17171 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
17172 then :
17173 ac_have_decl=1
17174 else case e in #(
17175 e) ac_have_decl=0 ;;
17176 esac
17177 fi
17178 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
17179 if test $ac_have_decl = 1
17180 then :
17181 ac_found=1
17182 fi
17183
17184 ac_fn_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
17185 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17186 if test "x$ac_cv_have_decl___argv" = xyes
17187 then :
17188 ac_have_decl=1
17189 else case e in #(
17190 e) ac_have_decl=0 ;;
17191 esac
17192 fi
17193 printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h
17194 if test $ac_have_decl = 1
17195 then :
17196 ac_found=1
17197 fi
17198
17199
17200 # Incur the cost of this test only if none of the above worked.
17201 if test $ac_found = 0; then
17202 # On OpenBSD 5.1, using the global __progname variable appears to be
17203 # the only way to implement getprogname.
17204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
17205 printf %s "checking whether __progname is defined in default libraries... " >&6; }
17206 if test ${gl_cv_var___progname+y}
17207 then :
17208 printf %s "(cached) " >&6
17209 else case e in #(
17210 e)
17211 gl_cv_var___progname=
17212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17213 /* end confdefs.h. */
17214 extern char *__progname;
17215 int
17216 main (void)
17217 {
17218 return *__progname;
17219
17220 ;
17221 return 0;
17222 }
17223 _ACEOF
17224 if ac_fn_c_try_link "$LINENO"
17225 then :
17226 gl_cv_var___progname=yes
17227
17228 fi
17229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17230 conftest$ac_exeext conftest.$ac_ext
17231
17232 ;;
17233 esac
17234 fi
17235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
17236 printf "%s\n" "$gl_cv_var___progname" >&6; }
17237 if test "$gl_cv_var___progname" = yes; then
17238
17239 printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
17240
17241 fi
17242 fi
17243
17244
17245 fi
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255 GL_GNULIB_GETPROGNAME=1
17256
17257
17258
17259
17260
17261 printf "%s\n" "#define GNULIB_TEST_GETPROGNAME 1" >>confdefs.h
17262
17263
17264
17265
17266
17267
17268 GNULIB_LOCALEDIR="${localedir}"
17269
17270 # Check whether --with-gnulib-prefix was given.
17271 if test ${with_gnulib_prefix+y}
17272 then :
17273 withval=$with_gnulib_prefix; if test "X$withval" != "X" && test "X$withval" != "Xno"; then
17274 GNULIB_LOCALEDIR="$withval/share/locale"
17275 fi
17276
17277 fi
17278
17279
17280
17281 gl_saved_prefix="${prefix}"
17282 gl_saved_datarootdir="${datarootdir}"
17283 gl_saved_localedir="${localedir}"
17284 gl_saved_gnuliblocaledir="${GNULIB_LOCALEDIR}"
17285 if test "X$prefix" = "XNONE"; then
17286 prefix="$ac_default_prefix"
17287 fi
17288 eval datarootdir="$datarootdir"
17289 eval localedir="$localedir"
17290 eval GNULIB_LOCALEDIR="$GNULIB_LOCALEDIR"
17291
17292
17293
17294
17295
17296 gl_final_GNULIB_LOCALEDIR="$GNULIB_LOCALEDIR"
17297 case "$build_os" in
17298 cygwin*)
17299 case "$host_os" in
17300 mingw* | windows*)
17301 gl_final_GNULIB_LOCALEDIR=`cygpath -w "$gl_final_GNULIB_LOCALEDIR"` ;;
17302 esac
17303 ;;
17304 esac
17305 GNULIB_LOCALEDIR_c=`printf '%s\n' "$gl_final_GNULIB_LOCALEDIR" | sed -e "$gl_sed_double_backslashes" -e "$gl_sed_escape_doublequotes" | tr -d "$gl_tr_cr"`
17306 GNULIB_LOCALEDIR_c='"'"$GNULIB_LOCALEDIR_c"'"'
17307
17308
17309 GNULIB_LOCALEDIR_c_make=`printf '%s\n' "$GNULIB_LOCALEDIR_c" | sed -e "$gl_sed_escape_for_make_1" -e "$gl_sed_escape_for_make_2" | tr -d "$gl_tr_cr"`
17310 if test "$GNULIB_LOCALEDIR_c_make" = '\"'"${gl_final_GNULIB_LOCALEDIR}"'\"'; then
17311 GNULIB_LOCALEDIR_c_make='\"$(GNULIB_LOCALEDIR)\"'
17312 fi
17313
17314
17315 GNULIB_LOCALEDIR="${gl_saved_gnuliblocaledir}"
17316 localedir="${gl_saved_localedir}"
17317 datarootdir="${gl_saved_datarootdir}"
17318 prefix="${gl_saved_prefix}"
17319
17320
17321 printf "%s\n" "#define GNULIB_LOCALEDIR ${GNULIB_LOCALEDIR_c}" >>confdefs.h
17322
17323
17324
17325
17326
17327
17328
17329
17330 case "$GL_GENERATE_LIMITS_H" in
17331 false) LIMITS_H='' ;;
17332 true)
17333 if test -z "$LIMITS_H"; then
17334 LIMITS_H="${gl_source_base_prefix}limits.h"
17335 fi
17336 ;;
17337 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
17338 esac
17339
17340
17341 if $GL_GENERATE_LIMITS_H; then
17342 GL_GENERATE_LIMITS_H_TRUE=
17343 GL_GENERATE_LIMITS_H_FALSE='#'
17344 else
17345 GL_GENERATE_LIMITS_H_TRUE='#'
17346 GL_GENERATE_LIMITS_H_FALSE=
17347 fi
17348 :
17349 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
17350 GL_GENERATE_LIMITS_H_TRUE='#'
17351 GL_GENERATE_LIMITS_H_FALSE='#'
17352 fi
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370 if test $ac_cv_func_lstat = yes; then
17371
17372 case $host_os,$gl_cv_func_lstat_dereferences_slashed_symlink in
17373 darwin* | solaris* | *no)
17374 REPLACE_LSTAT=1
17375 ;;
17376 esac
17377 else
17378 HAVE_LSTAT=0
17379 fi
17380
17381
17382 if test $REPLACE_LSTAT = 1; then
17383 GL_COND_OBJ_LSTAT_TRUE=
17384 GL_COND_OBJ_LSTAT_FALSE='#'
17385 else
17386 GL_COND_OBJ_LSTAT_TRUE='#'
17387 GL_COND_OBJ_LSTAT_FALSE=
17388 fi
17389 :
17390 if test -z "${GL_COND_OBJ_LSTAT_TRUE}" && test -z "${GL_COND_OBJ_LSTAT_FALSE}"; then
17391 GL_COND_OBJ_LSTAT_TRUE='#'
17392 GL_COND_OBJ_LSTAT_FALSE='#'
17393 fi
17394
17395 if test -z "$GL_COND_OBJ_LSTAT_TRUE"; then :
17396
17397 :
17398
17399 fi
17400
17401
17402
17403
17404
17405
17406
17407
17408
17409 GL_GNULIB_LSTAT=1
17410
17411
17412
17413
17414
17415 printf "%s\n" "#define GNULIB_TEST_LSTAT 1" >>confdefs.h
17416
17417
17418
17419
17420
17421 printf "%s\n" "#define GNULIB_LSTAT 1" >>confdefs.h
17422
17423
17424
17425
17426
17427
17428
17429 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17430 GL_COND_OBJ_MSVC_INVAL_TRUE=
17431 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
17432 else
17433 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
17434 GL_COND_OBJ_MSVC_INVAL_FALSE=
17435 fi
17436 :
17437 if test -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && test -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then
17438 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
17439 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
17440 fi
17441
17442
17443
17444 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17445 GL_COND_OBJ_MSVC_NOTHROW_TRUE=
17446 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
17447 else
17448 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
17449 GL_COND_OBJ_MSVC_NOTHROW_FALSE=
17450 fi
17451 :
17452 if test -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && test -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then
17453 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
17454 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
17455 fi
17456
17457
17458
17459 printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h
17460
17461
17462
17463
17464
17465
17466
17467 case $gl_cv_header_working_fcntl_h in #(
17468 *O_DIRECTORY* | *no) :
17469 REPLACE_OPEN=1 ;; #(
17470 *) :
17471 ;;
17472 esac
17473 case "$host_os" in
17474 mingw* | windows* | pw*)
17475 REPLACE_OPEN=1
17476 ;;
17477 *)
17478
17479 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
17480 REPLACE_OPEN=1
17481 fi
17482
17483
17484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
17485 printf %s "checking whether open recognizes a trailing slash... " >&6; }
17486 if test ${gl_cv_func_open_slash+y}
17487 then :
17488 printf %s "(cached) " >&6
17489 else case e in #(
17490 e) # Assume that if we have lstat, we can also check symlinks.
17491 if test $ac_cv_func_lstat = yes; then
17492 touch conftest.tmp
17493 ln -s conftest.tmp conftest.lnk
17494 fi
17495 if test "$cross_compiling" = yes
17496 then :
17497
17498 case "$host_os" in
17499 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
17500 gl_cv_func_open_slash="guessing no" ;;
17501 *)
17502 gl_cv_func_open_slash="guessing yes" ;;
17503 esac
17504
17505 else case e in #(
17506 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17508
17509 #include <fcntl.h>
17510 #if HAVE_UNISTD_H
17511 # include <unistd.h>
17512 #endif
17513
17514
17515 $gl_mda_defines
17516
17517 int main ()
17518 {
17519 int result = 0;
17520 #if HAVE_LSTAT
17521 if (open ("conftest.lnk/", O_RDONLY) != -1)
17522 result |= 1;
17523 #endif
17524 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
17525 result |= 2;
17526 return result;
17527 }
17528 _ACEOF
17529 if ac_fn_c_try_run "$LINENO"
17530 then :
17531 gl_cv_func_open_slash=yes
17532 else case e in #(
17533 e) gl_cv_func_open_slash=no ;;
17534 esac
17535 fi
17536 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17537 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17538 esac
17539 fi
17540
17541 rm -f conftest.sl conftest.tmp conftest.lnk
17542 ;;
17543 esac
17544 fi
17545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
17546 printf "%s\n" "$gl_cv_func_open_slash" >&6; }
17547 case "$gl_cv_func_open_slash" in
17548 *no)
17549
17550 printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
17551
17552 ;;
17553 esac
17554
17555 case "$gl_cv_func_open_slash" in
17556 *no)
17557 REPLACE_OPEN=1
17558 ;;
17559 esac
17560 ;;
17561 esac
17562
17563
17564
17565
17566 if test $REPLACE_OPEN = 1; then
17567 GL_COND_OBJ_OPEN_TRUE=
17568 GL_COND_OBJ_OPEN_FALSE='#'
17569 else
17570 GL_COND_OBJ_OPEN_TRUE='#'
17571 GL_COND_OBJ_OPEN_FALSE=
17572 fi
17573 :
17574 if test -z "${GL_COND_OBJ_OPEN_TRUE}" && test -z "${GL_COND_OBJ_OPEN_FALSE}"; then
17575 GL_COND_OBJ_OPEN_TRUE='#'
17576 GL_COND_OBJ_OPEN_FALSE='#'
17577 fi
17578
17579 if test -z "$GL_COND_OBJ_OPEN_TRUE"; then :
17580
17581
17582
17583 :
17584
17585
17586 fi
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596 GL_GNULIB_OPEN=1
17597
17598
17599
17600
17601
17602 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h
17603
17604
17605
17606
17607
17608
17609
17610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
17611 printf %s "checking for ssize_t... " >&6; }
17612 if test ${gl_cv_ssize_t+y}
17613 then :
17614 printf %s "(cached) " >&6
17615 else case e in #(
17616 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h. */
17618 #include <sys/types.h>
17619 int
17620 main (void)
17621 {
17622 int x = sizeof (ssize_t *) + sizeof (ssize_t);
17623 return !x;
17624 ;
17625 return 0;
17626 }
17627 _ACEOF
17628 if ac_fn_c_try_compile "$LINENO"
17629 then :
17630 gl_cv_ssize_t=yes
17631 else case e in #(
17632 e) gl_cv_ssize_t=no ;;
17633 esac
17634 fi
17635 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17636 esac
17637 fi
17638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ssize_t" >&5
17639 printf "%s\n" "$gl_cv_ssize_t" >&6; }
17640 if test $gl_cv_ssize_t = no; then
17641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether size_t is wider than 'long'" >&5
17642 printf %s "checking whether size_t is wider than 'long'... " >&6; }
17643 if test ${gl_cv_size_t_large+y}
17644 then :
17645 printf %s "(cached) " >&6
17646 else case e in #(
17647 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17648 /* end confdefs.h. */
17649 #include <sys/types.h>
17650 typedef int array [2 * (sizeof (size_t) > sizeof (long)) - 1];
17651
17652 int
17653 main (void)
17654 {
17655
17656 ;
17657 return 0;
17658 }
17659 _ACEOF
17660 if ac_fn_c_try_compile "$LINENO"
17661 then :
17662 gl_cv_size_t_large=yes
17663 else case e in #(
17664 e) gl_cv_size_t_large=no ;;
17665 esac
17666 fi
17667 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17668 esac
17669 fi
17670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_t_large" >&5
17671 printf "%s\n" "$gl_cv_size_t_large" >&6; }
17672 if test $gl_cv_size_t_large = yes; then
17673 gl_def_ssize_t='long long'
17674 else
17675 gl_def_ssize_t='long'
17676 fi
17677
17678 printf "%s\n" "#define ssize_t $gl_def_ssize_t" >>confdefs.h
17679
17680 fi
17681
17682
17683
17684
17685
17686 case "$host_os" in
17687 mingw* | windows*)
17688 REPLACE_STAT=1
17689 ;;
17690 *)
17691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
17692 printf %s "checking whether stat handles trailing slashes on files... " >&6; }
17693 if test ${gl_cv_func_stat_file_slash+y}
17694 then :
17695 printf %s "(cached) " >&6
17696 else case e in #(
17697 e) touch conftest.tmp
17698 # Assume that if we have lstat, we can also check symlinks.
17699 if test $ac_cv_func_lstat = yes; then
17700 ln -s conftest.tmp conftest.lnk
17701 fi
17702 if test "$cross_compiling" = yes
17703 then :
17704 case "$host_os" in
17705 # Guess yes on Linux systems.
17706 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
17707 # Guess yes on systems that emulate the Linux system calls.
17708 midipix*) gl_cv_func_stat_file_slash="guessing yes" ;;
17709 # Guess yes on glibc systems.
17710 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
17711 # If we don't know, obey --enable-cross-guesses.
17712 *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
17713 esac
17714
17715 else case e in #(
17716 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17717 /* end confdefs.h. */
17718 #include <sys/stat.h>
17719
17720 int
17721 main (void)
17722 {
17723 int result = 0;
17724 struct stat st;
17725 if (!stat ("conftest.tmp/", &st))
17726 result |= 1;
17727 #if HAVE_LSTAT
17728 if (!stat ("conftest.lnk/", &st))
17729 result |= 2;
17730 #endif
17731 return result;
17732
17733 ;
17734 return 0;
17735 }
17736 _ACEOF
17737 if ac_fn_c_try_run "$LINENO"
17738 then :
17739 gl_cv_func_stat_file_slash=yes
17740 else case e in #(
17741 e) gl_cv_func_stat_file_slash=no ;;
17742 esac
17743 fi
17744 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17745 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17746 esac
17747 fi
17748
17749 rm -f conftest.tmp conftest.lnk ;;
17750 esac
17751 fi
17752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
17753 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; }
17754 case $gl_cv_func_stat_file_slash in
17755 *no)
17756 REPLACE_STAT=1
17757
17758 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
17759 ;;
17760 esac
17761 case $host_os in
17762 darwin* | solaris*)
17763 REPLACE_FSTAT=1 ;;
17764 esac
17765 ;;
17766 esac
17767
17768
17769 if test $REPLACE_STAT = 1; then
17770 GL_COND_OBJ_STAT_TRUE=
17771 GL_COND_OBJ_STAT_FALSE='#'
17772 else
17773 GL_COND_OBJ_STAT_TRUE='#'
17774 GL_COND_OBJ_STAT_FALSE=
17775 fi
17776 :
17777 if test -z "${GL_COND_OBJ_STAT_TRUE}" && test -z "${GL_COND_OBJ_STAT_FALSE}"; then
17778 GL_COND_OBJ_STAT_TRUE='#'
17779 GL_COND_OBJ_STAT_FALSE='#'
17780 fi
17781
17782 if test -z "$GL_COND_OBJ_STAT_TRUE"; then :
17783
17784 case "$host_os" in
17785 mingw* | windows*)
17786
17787
17788
17789
17790
17791
17792
17793
17794 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
17795
17796 ;;
17797 esac
17798
17799
17800
17801 :
17802
17803
17804 fi
17805
17806
17807
17808
17809
17810
17811
17812
17813
17814 GL_GNULIB_STAT=1
17815
17816
17817
17818
17819
17820 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h
17821
17822
17823
17824
17825
17826 printf "%s\n" "#define GNULIB_STAT 1" >>confdefs.h
17827
17828
17829
17830
17831
17832
17833 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>
17834 #include <sys/stat.h>
17835 "
17836 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
17837 then :
17838
17839 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
17840
17841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
17842 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
17843 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
17844 then :
17845 printf %s "(cached) " >&6
17846 else case e in #(
17847 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17848 /* end confdefs.h. */
17849
17850 #include <sys/types.h>
17851 #include <sys/stat.h>
17852 #if HAVE_SYS_TIME_H
17853 # include <sys/time.h>
17854 #endif
17855 #include <time.h>
17856 struct timespec ts;
17857 struct stat st;
17858
17859 int
17860 main (void)
17861 {
17862
17863 st.st_atim = ts;
17864
17865 ;
17866 return 0;
17867 }
17868 _ACEOF
17869 if ac_fn_c_try_compile "$LINENO"
17870 then :
17871 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
17872 else case e in #(
17873 e) ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no ;;
17874 esac
17875 fi
17876 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17877 esac
17878 fi
17879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
17880 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
17881 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
17882
17883 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
17884
17885 fi
17886 else case e in #(
17887 e) 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>
17888 #include <sys/stat.h>
17889 "
17890 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
17891 then :
17892
17893 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
17894
17895
17896 else case e in #(
17897 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
17898 #include <sys/stat.h>
17899 "
17900 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
17901 then :
17902
17903 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
17904
17905
17906 else case e in #(
17907 e) 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>
17908 #include <sys/stat.h>
17909 "
17910 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
17911 then :
17912
17913 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
17914
17915
17916 fi
17917 ;;
17918 esac
17919 fi
17920 ;;
17921 esac
17922 fi
17923 ;;
17924 esac
17925 fi
17926
17927
17928
17929
17930
17931 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>
17932 #include <sys/stat.h>
17933 "
17934 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
17935 then :
17936
17937 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
17938
17939
17940 else case e in #(
17941 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
17942 #include <sys/stat.h>
17943 "
17944 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
17945 then :
17946
17947 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
17948
17949
17950 else case e in #(
17951 e) 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>
17952 #include <sys/stat.h>
17953 "
17954 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
17955 then :
17956
17957 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h
17958
17959
17960 fi
17961 ;;
17962 esac
17963 fi
17964 ;;
17965 esac
17966 fi
17967
17968
17969
17970
17971
17972
17973
17974 case "$GL_GENERATE_STDCKDINT_H" in
17975 false) STDCKDINT_H='' ;;
17976 true)
17977 if test -z "$STDCKDINT_H"; then
17978 STDCKDINT_H="${gl_source_base_prefix}stdckdint.h"
17979 fi
17980 ;;
17981 *) echo "*** GL_GENERATE_STDCKDINT_H is not set correctly" 1>&2; exit 1 ;;
17982 esac
17983
17984
17985 if $GL_GENERATE_STDCKDINT_H; then
17986 GL_GENERATE_STDCKDINT_H_TRUE=
17987 GL_GENERATE_STDCKDINT_H_FALSE='#'
17988 else
17989 GL_GENERATE_STDCKDINT_H_TRUE='#'
17990 GL_GENERATE_STDCKDINT_H_FALSE=
17991 fi
17992 :
17993 if test -z "${GL_GENERATE_STDCKDINT_H_TRUE}" && test -z "${GL_GENERATE_STDCKDINT_H_FALSE}"; then
17994 GL_GENERATE_STDCKDINT_H_TRUE='#'
17995 GL_GENERATE_STDCKDINT_H_FALSE='#'
17996 fi
17997
17998
17999
18000
18001
18002
18003
18004
18005
18006
18007
18008
18009
18010
18011
18012
18013 case "$GL_GENERATE_STDDEF_H" in
18014 false) STDDEF_H='' ;;
18015 true)
18016 if test -z "$STDDEF_H"; then
18017 STDDEF_H="${gl_source_base_prefix}stddef.h"
18018 fi
18019 ;;
18020 *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;;
18021 esac
18022
18023
18024 if $GL_GENERATE_STDDEF_H; then
18025 GL_GENERATE_STDDEF_H_TRUE=
18026 GL_GENERATE_STDDEF_H_FALSE='#'
18027 else
18028 GL_GENERATE_STDDEF_H_TRUE='#'
18029 GL_GENERATE_STDDEF_H_FALSE=
18030 fi
18031 :
18032 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
18033 GL_GENERATE_STDDEF_H_TRUE='#'
18034 GL_GENERATE_STDDEF_H_FALSE='#'
18035 fi
18036
18037
18038
18039
18040
18041
18042
18043
18044
18045
18046
18047 case "$GL_GENERATE_STDINT_H" in
18048 false) STDINT_H='' ;;
18049 true)
18050 if test -z "$STDINT_H"; then
18051 STDINT_H="${gl_source_base_prefix}stdint.h"
18052 fi
18053 ;;
18054 *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;;
18055 esac
18056
18057
18058 if $GL_GENERATE_STDINT_H; then
18059 GL_GENERATE_STDINT_H_TRUE=
18060 GL_GENERATE_STDINT_H_FALSE='#'
18061 else
18062 GL_GENERATE_STDINT_H_TRUE='#'
18063 GL_GENERATE_STDINT_H_FALSE=
18064 fi
18065 :
18066 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
18067 GL_GENERATE_STDINT_H_TRUE='#'
18068 GL_GENERATE_STDINT_H_FALSE='#'
18069 fi
18070
18071
18072
18073
18074
18075
18076
18077
18078
18079 case "$GL_GENERATE_LIMITS_H" in
18080 false) LIMITS_H='' ;;
18081 true)
18082 if test -z "$LIMITS_H"; then
18083 LIMITS_H="${gl_source_base_prefix}limits.h"
18084 fi
18085 ;;
18086 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
18087 esac
18088
18089
18090 if $GL_GENERATE_LIMITS_H; then
18091 GL_GENERATE_LIMITS_H_TRUE=
18092 GL_GENERATE_LIMITS_H_FALSE='#'
18093 else
18094 GL_GENERATE_LIMITS_H_TRUE='#'
18095 GL_GENERATE_LIMITS_H_FALSE=
18096 fi
18097 :
18098 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
18099 GL_GENERATE_LIMITS_H_TRUE='#'
18100 GL_GENERATE_LIMITS_H_FALSE='#'
18101 fi
18102
18103
18104
18105
18106
18107
18108
18109
18110
18111
18112
18113
18114
18115
18116 if test $REPLACE_STDIO_READ_FUNCS = 1; then
18117 GL_COND_OBJ_STDIO_READ_TRUE=
18118 GL_COND_OBJ_STDIO_READ_FALSE='#'
18119 else
18120 GL_COND_OBJ_STDIO_READ_TRUE='#'
18121 GL_COND_OBJ_STDIO_READ_FALSE=
18122 fi
18123 :
18124 if test -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && test -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then
18125 GL_COND_OBJ_STDIO_READ_TRUE='#'
18126 GL_COND_OBJ_STDIO_READ_FALSE='#'
18127 fi
18128
18129
18130 if test $REPLACE_STDIO_WRITE_FUNCS = 1; then
18131 GL_COND_OBJ_STDIO_WRITE_TRUE=
18132 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
18133 else
18134 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
18135 GL_COND_OBJ_STDIO_WRITE_FALSE=
18136 fi
18137 :
18138 if test -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then
18139 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
18140 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
18141 fi
18142
18143
18144
18145
18146
18147
18148
18149
18150
18151
18152 GL_GNULIB_FSCANF=1
18153
18154
18155
18156
18157
18158 printf "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h
18159
18160
18161
18162
18163
18164 printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176 GL_GNULIB_SCANF=1
18177
18178
18179
18180
18181
18182 printf "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h
18183
18184
18185
18186
18187
18188 printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h
18189
18190
18191
18192
18193
18194
18195
18196
18197
18198
18199
18200 GL_GNULIB_FGETC=1
18201
18202
18203
18204
18205
18206 printf "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h
18207
18208
18209
18210
18211
18212
18213
18214
18215
18216
18217
18218
18219 GL_GNULIB_GETC=1
18220
18221
18222
18223
18224
18225 printf "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h
18226
18227
18228
18229
18230
18231
18232
18233
18234
18235
18236
18237
18238 GL_GNULIB_GETCHAR=1
18239
18240
18241
18242
18243
18244 printf "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h
18245
18246
18247
18248
18249
18250
18251
18252
18253
18254
18255
18256
18257 GL_GNULIB_FGETS=1
18258
18259
18260
18261
18262
18263 printf "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h
18264
18265
18266
18267
18268
18269
18270
18271
18272
18273
18274
18275
18276 GL_GNULIB_FREAD=1
18277
18278
18279
18280
18281
18282 printf "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h
18283
18284
18285
18286
18287
18288
18289
18290
18291
18292
18293
18294
18295 GL_GNULIB_FPRINTF=1
18296
18297
18298
18299
18300
18301 printf "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h
18302
18303
18304
18305
18306
18307
18308
18309
18310
18311
18312
18313
18314 GL_GNULIB_PRINTF=1
18315
18316
18317
18318
18319
18320 printf "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330
18331
18332
18333 GL_GNULIB_VFPRINTF=1
18334
18335
18336
18337
18338
18339 printf "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352 GL_GNULIB_VPRINTF=1
18353
18354
18355
18356
18357
18358 printf "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371 GL_GNULIB_FPUTC=1
18372
18373
18374
18375
18376
18377 printf "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389
18390 GL_GNULIB_PUTC=1
18391
18392
18393
18394
18395
18396 printf "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h
18397
18398
18399
18400
18401
18402
18403
18404
18405
18406
18407
18408
18409 GL_GNULIB_PUTCHAR=1
18410
18411
18412
18413
18414
18415 printf "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427
18428 GL_GNULIB_FPUTS=1
18429
18430
18431
18432
18433
18434 printf "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h
18435
18436
18437
18438
18439
18440
18441
18442
18443
18444
18445
18446
18447 GL_GNULIB_PUTS=1
18448
18449
18450
18451
18452
18453 printf "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h
18454
18455
18456
18457
18458
18459
18460
18461
18462
18463
18464
18465
18466 GL_GNULIB_FWRITE=1
18467
18468
18469
18470
18471
18472 printf "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h
18473
18474
18475
18476
18477 USES_MSVCRT=0
18478 case "$host_os" in
18479 mingw* | windows*)
18480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18481 /* end confdefs.h. */
18482
18483 #ifndef _UCRT
18484 Special
18485 #endif
18486
18487 _ACEOF
18488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18489 $EGREP_TRADITIONAL "Special" >/dev/null 2>&1
18490 then :
18491 USES_MSVCRT=1
18492 fi
18493 rm -rf conftest*
18494
18495 ;;
18496 esac
18497
18498 if test $USES_MSVCRT = 1; then
18499 GL_COND_OBJ_STDIO_CONSOLESAFE_TRUE=
18500 GL_COND_OBJ_STDIO_CONSOLESAFE_FALSE='#'
18501 else
18502 GL_COND_OBJ_STDIO_CONSOLESAFE_TRUE='#'
18503 GL_COND_OBJ_STDIO_CONSOLESAFE_FALSE=
18504 fi
18505 :
18506 if test -z "${GL_COND_OBJ_STDIO_CONSOLESAFE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_CONSOLESAFE_FALSE}"; then
18507 GL_COND_OBJ_STDIO_CONSOLESAFE_TRUE='#'
18508 GL_COND_OBJ_STDIO_CONSOLESAFE_FALSE='#'
18509 fi
18510
18511 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf"
18512 if test "x$ac_cv_func_vasprintf" = xyes
18513 then :
18514 printf "%s\n" "#define HAVE_VASPRINTF 1" >>confdefs.h
18515
18516 fi
18517
18518
18519
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529
18530 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
18531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
18532 printf %s "checking for working strerror function... " >&6; }
18533 if test ${gl_cv_func_working_strerror+y}
18534 then :
18535 printf %s "(cached) " >&6
18536 else case e in #(
18537 e) if test "$cross_compiling" = yes
18538 then :
18539 case "$host_os" in
18540 # Guess yes on glibc systems.
18541 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
18542 # Guess yes on musl systems.
18543 *-musl* | midipix*) gl_cv_func_working_strerror="guessing yes" ;;
18544 # If we don't know, obey --enable-cross-guesses.
18545 *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
18546 esac
18547
18548 else case e in #(
18549 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18550 /* end confdefs.h. */
18551 #include <string.h>
18552
18553 int
18554 main (void)
18555 {
18556 if (!*strerror (-2)) return 1;
18557 ;
18558 return 0;
18559 }
18560 _ACEOF
18561 if ac_fn_c_try_run "$LINENO"
18562 then :
18563 gl_cv_func_working_strerror=yes
18564 else case e in #(
18565 e) gl_cv_func_working_strerror=no ;;
18566 esac
18567 fi
18568 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18569 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18570 esac
18571 fi
18572
18573 ;;
18574 esac
18575 fi
18576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
18577 printf "%s\n" "$gl_cv_func_working_strerror" >&6; }
18578 case "$gl_cv_func_working_strerror" in
18579 *yes) ;;
18580 *)
18581 REPLACE_STRERROR=1
18582 ;;
18583 esac
18584
18585 else
18586 REPLACE_STRERROR=1
18587 fi
18588
18589
18590 if test $REPLACE_STRERROR = 1; then
18591 GL_COND_OBJ_STRERROR_TRUE=
18592 GL_COND_OBJ_STRERROR_FALSE='#'
18593 else
18594 GL_COND_OBJ_STRERROR_TRUE='#'
18595 GL_COND_OBJ_STRERROR_FALSE=
18596 fi
18597 :
18598 if test -z "${GL_COND_OBJ_STRERROR_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_FALSE}"; then
18599 GL_COND_OBJ_STRERROR_TRUE='#'
18600 GL_COND_OBJ_STRERROR_FALSE='#'
18601 fi
18602
18603
18604
18605 printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621
18622 GL_GNULIB_STRERROR=1
18623
18624
18625
18626
18627
18628 printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
18629
18630
18631
18632
18633
18634
18635 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
18636 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE=
18637 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
18638 else
18639 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
18640 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE=
18641 fi
18642 :
18643 if test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_FALSE}"; then
18644 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
18645 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
18646 fi
18647
18648 if test -z "$GL_COND_OBJ_STRERROR_OVERRIDE_TRUE"; then :
18649
18650
18651
18652
18653
18654 if test $ac_cv_header_sys_socket_h != yes; then
18655 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
18656 if test "x$ac_cv_header_winsock2_h" = xyes
18657 then :
18658 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
18659
18660 fi
18661
18662 fi
18663 if test "$ac_cv_header_winsock2_h" = yes; then
18664 HAVE_WINSOCK2_H=1
18665 UNISTD_H_HAVE_WINSOCK2_H=1
18666 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
18667 else
18668 HAVE_WINSOCK2_H=0
18669 fi
18670
18671
18672
18673 fi
18674
18675
18676
18677
18678
18679
18680
18681
18682
18683
18684
18685
18686
18687
18688
18689 if test $ac_cv_have_decl_streq != no; then
18690 HAVE_DECL_STREQ=1
18691 fi
18692
18693
18694
18695
18696 if test $ac_cv_have_decl_memeq != no; then
18697 HAVE_DECL_MEMEQ=1
18698 fi
18699
18700
18701
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714 GL_GNULIB_STRINGEQ=1
18715
18716
18717
18718
18719
18720 printf "%s\n" "#define GNULIB_TEST_STRINGEQ 1" >>confdefs.h
18721
18722
18723
18724
18725
18726
18727
18728
18729
18730
18731
18732
18733
18734
18735
18736
18737
18738
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751
18752
18753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
18754 printf %s "checking for variable-length arrays... " >&6; }
18755 if test ${ac_cv_c_vararrays+y}
18756 then :
18757 printf %s "(cached) " >&6
18758 else case e in #(
18759 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18761 #ifndef __STDC_NO_VLA__
18762 #error __STDC_NO_VLA__ not defined
18763 #endif
18764
18765 _ACEOF
18766 if ac_fn_c_try_compile "$LINENO"
18767 then :
18768 ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
18769 else case e in #(
18770 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18771 /* end confdefs.h. */
18772 /* Test for VLA support. This test is partly inspired
18773 from examples in the C standard. Use at least two VLA
18774 functions to detect the GCC 3.4.3 bug described in:
18775 https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
18776 */
18777 #ifdef __STDC_NO_VLA__
18778 syntax error;
18779 #else
18780 extern int n;
18781 int B[100];
18782 int fvla (int m, int C[m][m]);
18783
18784 int
18785 simple (int count, int all[static count])
18786 {
18787 return all[count - 1];
18788 }
18789
18790 int
18791 fvla (int m, int C[m][m])
18792 {
18793 typedef int VLA[m][m];
18794 VLA x;
18795 int D[m];
18796 static int (*q)[m] = &B;
18797 int (*s)[n] = q;
18798 return C && &x[0][0] == &D[0] && &D[0] == s[0];
18799 }
18800 #endif
18801
18802 int
18803 main (void)
18804 {
18805
18806 ;
18807 return 0;
18808 }
18809 _ACEOF
18810 if ac_fn_c_try_compile "$LINENO"
18811 then :
18812 ac_cv_c_vararrays=yes
18813 else case e in #(
18814 e) ac_cv_c_vararrays=no ;;
18815 esac
18816 fi
18817 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18818 esac
18819 fi
18820 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18821 esac
18822 fi
18823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
18824 printf "%s\n" "$ac_cv_c_vararrays" >&6; }
18825 if test "$ac_cv_c_vararrays" = yes; then
18826
18827 printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h
18828
18829 elif test "$ac_cv_c_vararrays" = no; then
18830
18831 printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h
18832
18833 fi
18834
18835 # End of code from modules
18836
18837
18838
18839
18840
18841
18842
18843
18844
18845
18846
18847 gltests_libdeps=
18848 gltests_ltlibdeps=
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860
18861 gl_source_base='tests'
18862 gl_source_base_prefix=
18863 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
18864
18865 gl_module_indicator_condition=$gltests_WITNESS
18866
18867
18868
18869
18870
18871
18872
18873
18874
18875
18876
18877
18878 LIBGNU_LIBDEPS="$gl_libdeps"
18879
18880 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
18881
18882
18883
18884 ac_config_files="$ac_config_files Makefile lib/Makefile scripts/fixcvsdiff scripts/splitdiff scripts/editdiff scripts/recountdiff scripts/unwrapdiff scripts/dehtmldiff scripts/espdiff scripts/move-to-front patchutils.spec"
18885
18886 cat >confcache <<\_ACEOF
18887 # This file is a shell script that caches the results of configure
18888 # tests run on this system so they can be shared between configure
18889 # scripts and configure runs, see configure's option --config-cache.
18890 # It is not useful on other systems. If it contains results you don't
18891 # want to keep, you may remove or edit it.
18892 #
18893 # config.status only pays attention to the cache file if you give it
18894 # the --recheck option to rerun configure.
18895 #
18896 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
18897 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
18898 # following values.
18899
18900 _ACEOF
18901
18902 # The following way of writing the cache mishandles newlines in values,
18903 # but we know of no workaround that is simple, portable, and efficient.
18904 # So, we kill variables containing newlines.
18905 # Ultrix sh set writes to stderr and can't be redirected directly,
18906 # and sets the high bit in the cache file unless we assign to the vars.
18907 (
18908 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18909 eval ac_val=\$$ac_var
18910 case $ac_val in #(
18911 *${as_nl}*)
18912 case $ac_var in #(
18913 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18914 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18915 esac
18916 case $ac_var in #(
18917 _ | IFS | as_nl) ;; #(
18918 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18919 *) { eval $ac_var=; unset $ac_var;} ;;
18920 esac ;;
18921 esac
18922 done
18923
18924 (set) 2>&1 |
18925 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18926 *${as_nl}ac_space=\ *)
18927 # 'set' does not quote correctly, so add quotes: double-quote
18928 # substitution turns \\\\ into \\, and sed turns \\ into \.
18929 sed -n \
18930 "s/'/'\\\\''/g;
18931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18932 ;; #(
18933 *)
18934 # 'set' quotes correctly as required by POSIX, so do not add quotes.
18935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18936 ;;
18937 esac |
18938 sort
18939 ) |
18940 sed '
18941 /^ac_cv_env_/b end
18942 t clear
18943 :clear
18944 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
18945 t end
18946 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18947 :end' >>confcache
18948 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18949 if test -w "$cache_file"; then
18950 if test "x$cache_file" != "x/dev/null"; then
18951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18952 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
18953 if test ! -f "$cache_file" || test -h "$cache_file"; then
18954 cat confcache >"$cache_file"
18955 else
18956 case $cache_file in #(
18957 */* | ?:*)
18958 mv -f confcache "$cache_file"$$ &&
18959 mv -f "$cache_file"$$ "$cache_file" ;; #(
18960 *)
18961 mv -f confcache "$cache_file" ;;
18962 esac
18963 fi
18964 fi
18965 else
18966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18967 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
18968 fi
18969 fi
18970 rm -f confcache
18971
18972 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18973 # Let make expand exec_prefix.
18974 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18975
18976 DEFS=-DHAVE_CONFIG_H
18977
18978 ac_libobjs=
18979 ac_ltlibobjs=
18980 U=
18981 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18982 # 1. Remove the extension, and $U if already installed.
18983 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18984 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
18985 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18986 # will be set to the directory where LIBOBJS objects are built.
18987 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18988 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18989 done
18990 LIBOBJS=$ac_libobjs
18991
18992 LTLIBOBJS=$ac_ltlibobjs
18993
18994
18995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
18996 printf %s "checking that generated files are newer than configure... " >&6; }
18997 if test -n "$am_sleep_pid"; then
18998 # Hide warnings about reused PIDs.
18999 wait $am_sleep_pid 2>/dev/null
19000 fi
19001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
19002 printf "%s\n" "done" >&6; }
19003 case $enable_silent_rules in # (((
19004 yes) AM_DEFAULT_VERBOSITY=0;;
19005 no) AM_DEFAULT_VERBOSITY=1;;
19006 esac
19007 if test $am_cv_make_support_nested_variables = yes; then
19008 AM_V='$(V)'
19009 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
19010 else
19011 AM_V=$AM_DEFAULT_VERBOSITY
19012 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
19013 fi
19014
19015 if test -n "$EXEEXT"; then
19016 am__EXEEXT_TRUE=
19017 am__EXEEXT_FALSE='#'
19018 else
19019 am__EXEEXT_TRUE='#'
19020 am__EXEEXT_FALSE=
19021 fi
19022
19023 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19024 as_fn_error $? "conditional \"AMDEP\" was never defined.
19025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19026 fi
19027 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19028 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19030 fi
19031 # Check whether --enable-year2038 was given.
19032 if test ${enable_year2038+y}
19033 then :
19034 enableval=$enable_year2038;
19035 fi
19036
19037 if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then
19038 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined.
19039 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19040 fi
19041 if test -z "${ENABLE_FUZZING_TRUE}" && test -z "${ENABLE_FUZZING_FALSE}"; then
19042 as_fn_error $? "conditional \"ENABLE_FUZZING\" was never defined.
19043 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19044 fi
19045 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
19046 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
19047 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19048 fi
19049
19050 gl_libobjs=
19051 gl_ltlibobjs=
19052 gl_libobjdeps=
19053 gl_libgnu_libobjs=
19054 gl_libgnu_ltlibobjs=
19055 gl_libgnu_libobjdeps=
19056 if test -n "$gl_LIBOBJS"; then
19057 # Remove the extension.
19058 sed_drop_objext='s/\.o$//;s/\.obj$//'
19059 sed_dirname1='s,//*,/,g'
19060 sed_dirname2='s,\(.\)/$,\1,'
19061 sed_dirname3='s,[^/]*$,,'
19062 sed_basename1='s,.*/,,'
19063 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19064 gl_libobjs="$gl_libobjs $i.$ac_objext"
19065 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
19066 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3"`
19067 i_base=`echo "$i" | sed -e "$sed_basename1"`
19068 gl_libgnu_libobjs="$gl_libgnu_libobjs $i_dir""libgnu_a-$i_base.$ac_objext"
19069 gl_libgnu_ltlibobjs="$gl_libgnu_ltlibobjs $i_dir""libgnu_la-$i_base.lo"
19070 gl_libobjdeps="$gl_libobjdeps $i_dir\$(DEPDIR)/$i_base.Po"
19071 gl_libgnu_libobjdeps="$gl_libgnu_libobjdeps $i_dir\$(DEPDIR)/libgnu_a-$i_base.Po"
19072 done
19073 fi
19074 gl_LIBOBJS=$gl_libobjs
19075
19076 gl_LTLIBOBJS=$gl_ltlibobjs
19077
19078 gl_LIBOBJDEPS=$gl_libobjdeps
19079
19080 gl_libgnu_LIBOBJS=$gl_libgnu_libobjs
19081
19082 gl_libgnu_LTLIBOBJS=$gl_libgnu_ltlibobjs
19083
19084 gl_libgnu_LIBOBJDEPS=$gl_libgnu_libobjdeps
19085
19086
19087
19088 gltests_libobjs=
19089 gltests_ltlibobjs=
19090 gltests_libobjdeps=
19091 gltests_libgnu_libobjs=
19092 gltests_libgnu_ltlibobjs=
19093 gltests_libgnu_libobjdeps=
19094 if test -n "$gltests_LIBOBJS"; then
19095 # Remove the extension.
19096 sed_drop_objext='s/\.o$//;s/\.obj$//'
19097 sed_dirname1='s,//*,/,g'
19098 sed_dirname2='s,\(.\)/$,\1,'
19099 sed_dirname3='s,[^/]*$,,'
19100 sed_basename1='s,.*/,,'
19101 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
19102 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
19103 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
19104 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3"`
19105 i_base=`echo "$i" | sed -e "$sed_basename1"`
19106 gltests_libgnu_libobjs="$gltests_libgnu_libobjs $i_dir""libgnu_a-$i_base.$ac_objext"
19107 gltests_libgnu_ltlibobjs="$gltests_libgnu_ltlibobjs $i_dir""libgnu_la-$i_base.lo"
19108 gltests_libobjdeps="$gltests_libobjdeps $i_dir\$(DEPDIR)/$i_base.Po"
19109 gltests_libgnu_libobjdeps="$gltests_libgnu_libobjdeps $i_dir\$(DEPDIR)/libgnu_a-$i_base.Po"
19110 done
19111 fi
19112 gltests_LIBOBJS=$gltests_libobjs
19113
19114 gltests_LTLIBOBJS=$gltests_ltlibobjs
19115
19116 gltests_LIBOBJDEPS=$gltests_libobjdeps
19117
19118 gltests_libgnu_LIBOBJS=$gltests_libgnu_libobjs
19119
19120 gltests_libgnu_LTLIBOBJS=$gltests_libgnu_ltlibobjs
19121
19122 gltests_libgnu_LIBOBJDEPS=$gltests_libgnu_libobjdeps
19123
19124
19125
19126 : "${CONFIG_STATUS=./config.status}"
19127 ac_write_fail=0
19128 ac_clean_files_save=$ac_clean_files
19129 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19131 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
19132 as_write_fail=0
19133 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19134 #! $SHELL
19135 # Generated by $as_me.
19136 # Run this file to recreate the current configuration.
19137 # Compiler output produced by configure, useful for debugging
19138 # configure, is in config.log if it exists.
19139
19140 debug=false
19141 ac_cs_recheck=false
19142 ac_cs_silent=false
19143
19144 SHELL=\${CONFIG_SHELL-$SHELL}
19145 export SHELL
19146 _ASEOF
19147 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19148 ## -------------------- ##
19149 ## M4sh Initialization. ##
19150 ## -------------------- ##
19151
19152 # Be more Bourne compatible
19153 DUALCASE=1; export DUALCASE # for MKS sh
19154 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
19155 then :
19156 emulate sh
19157 NULLCMD=:
19158 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19159 # is contrary to our usage. Disable this feature.
19160 alias -g '${1+"$@"}'='"$@"'
19161 setopt NO_GLOB_SUBST
19162 else case e in #(
19163 e) case `(set -o) 2>/dev/null` in #(
19164 *posix*) :
19165 set -o posix ;; #(
19166 *) :
19167 ;;
19168 esac ;;
19169 esac
19170 fi
19171
19172
19173
19174 # Reset variables that may have inherited troublesome values from
19175 # the environment.
19176
19177 # IFS needs to be set, to space, tab, and newline, in precisely that order.
19178 # (If _AS_PATH_WALK were called with IFS unset, it would have the
19179 # side effect of setting IFS to empty, thus disabling word splitting.)
19180 # Quoting is to prevent editors from complaining about space-tab.
19181 as_nl='
19182 '
19183 export as_nl
19184 IFS=" "" $as_nl"
19185
19186 PS1='$ '
19187 PS2='> '
19188 PS4='+ '
19189
19190 # Ensure predictable behavior from utilities with locale-dependent output.
19191 LC_ALL=C
19192 export LC_ALL
19193 LANGUAGE=C
19194 export LANGUAGE
19195
19196 # We cannot yet rely on "unset" to work, but we need these variables
19197 # to be unset--not just set to an empty or harmless value--now, to
19198 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
19199 # also avoids known problems related to "unset" and subshell syntax
19200 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
19201 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
19202 do eval test \${$as_var+y} \
19203 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19204 done
19205
19206 # Ensure that fds 0, 1, and 2 are open.
19207 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
19208 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
19209 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
19210
19211 # The user is always right.
19212 if ${PATH_SEPARATOR+false} :; then
19213 PATH_SEPARATOR=:
19214 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19215 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19216 PATH_SEPARATOR=';'
19217 }
19218 fi
19219
19220
19221 # Find who we are. Look in the path if we contain no directory separator.
19222 as_myself=
19223 case $0 in #((
19224 *[\\/]* ) as_myself=$0 ;;
19225 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19226 for as_dir in $PATH
19227 do
19228 IFS=$as_save_IFS
19229 case $as_dir in #(((
19230 '') as_dir=./ ;;
19231 */) ;;
19232 *) as_dir=$as_dir/ ;;
19233 esac
19234 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
19235 done
19236 IFS=$as_save_IFS
19237
19238 ;;
19239 esac
19240 # We did not find ourselves, most probably we were run as 'sh COMMAND'
19241 # in which case we are not to be found in the path.
19242 if test "x$as_myself" = x; then
19243 as_myself=$0
19244 fi
19245 if test ! -f "$as_myself"; then
19246 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19247 exit 1
19248 fi
19249
19250
19251
19252 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19253 # ----------------------------------------
19254 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19255 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19256 # script with STATUS, using 1 if that was 0.
19257 as_fn_error ()
19258 {
19259 as_status=$1; test $as_status -eq 0 && as_status=1
19260 if test "$4"; then
19261 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19262 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19263 fi
19264 printf "%s\n" "$as_me: error: $2" >&2
19265 as_fn_exit $as_status
19266 } # as_fn_error
19267
19268
19269 # as_fn_set_status STATUS
19270 # -----------------------
19271 # Set $? to STATUS, without forking.
19272 as_fn_set_status ()
19273 {
19274 return $1
19275 } # as_fn_set_status
19276
19277 # as_fn_exit STATUS
19278 # -----------------
19279 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19280 as_fn_exit ()
19281 {
19282 set +e
19283 as_fn_set_status $1
19284 exit $1
19285 } # as_fn_exit
19286
19287 # as_fn_unset VAR
19288 # ---------------
19289 # Portably unset VAR.
19290 as_fn_unset ()
19291 {
19292 { eval $1=; unset $1;}
19293 }
19294 as_unset=as_fn_unset
19295
19296 # as_fn_append VAR VALUE
19297 # ----------------------
19298 # Append the text in VALUE to the end of the definition contained in VAR. Take
19299 # advantage of any shell optimizations that allow amortized linear growth over
19300 # repeated appends, instead of the typical quadratic growth present in naive
19301 # implementations.
19302 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
19303 then :
19304 eval 'as_fn_append ()
19305 {
19306 eval $1+=\$2
19307 }'
19308 else case e in #(
19309 e) as_fn_append ()
19310 {
19311 eval $1=\$$1\$2
19312 } ;;
19313 esac
19314 fi # as_fn_append
19315
19316 # as_fn_arith ARG...
19317 # ------------------
19318 # Perform arithmetic evaluation on the ARGs, and store the result in the
19319 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19320 # must be portable across $(()) and expr.
19321 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
19322 then :
19323 eval 'as_fn_arith ()
19324 {
19325 as_val=$(( $* ))
19326 }'
19327 else case e in #(
19328 e) as_fn_arith ()
19329 {
19330 as_val=`expr "$@" || test $? -eq 1`
19331 } ;;
19332 esac
19333 fi # as_fn_arith
19334
19335
19336 if expr a : '\(a\)' >/dev/null 2>&1 &&
19337 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19338 as_expr=expr
19339 else
19340 as_expr=false
19341 fi
19342
19343 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19344 as_basename=basename
19345 else
19346 as_basename=false
19347 fi
19348
19349 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19350 as_dirname=dirname
19351 else
19352 as_dirname=false
19353 fi
19354
19355 as_me=`$as_basename -- "$0" ||
19356 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19357 X"$0" : 'X\(//\)$' \| \
19358 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19359 printf "%s\n" X/"$0" |
19360 sed '/^.*\/\([^/][^/]*\)\/*$/{
19361 s//\1/
19362 q
19363 }
19364 /^X\/\(\/\/\)$/{
19365 s//\1/
19366 q
19367 }
19368 /^X\/\(\/\).*/{
19369 s//\1/
19370 q
19371 }
19372 s/.*/./; q'`
19373
19374 # Avoid depending upon Character Ranges.
19375 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19376 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19377 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19378 as_cr_digits='0123456789'
19379 as_cr_alnum=$as_cr_Letters$as_cr_digits
19380
19381
19382 # Determine whether it's possible to make 'echo' print without a newline.
19383 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
19384 # for compatibility with existing Makefiles.
19385 ECHO_C= ECHO_N= ECHO_T=
19386 case `echo -n x` in #(((((
19387 -n*)
19388 case `echo 'xy\c'` in
19389 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19390 xy) ECHO_C='\c';;
19391 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19392 ECHO_T=' ';;
19393 esac;;
19394 *)
19395 ECHO_N='-n';;
19396 esac
19397
19398 # For backward compatibility with old third-party macros, we provide
19399 # the shell variables $as_echo and $as_echo_n. New code should use
19400 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
19401 as_echo='printf %s\n'
19402 as_echo_n='printf %s'
19403
19404 rm -f conf$$ conf$$.exe conf$$.file
19405 if test -d conf$$.dir; then
19406 rm -f conf$$.dir/conf$$.file
19407 else
19408 rm -f conf$$.dir
19409 mkdir conf$$.dir 2>/dev/null
19410 fi
19411 if (echo >conf$$.file) 2>/dev/null; then
19412 if ln -s conf$$.file conf$$ 2>/dev/null; then
19413 as_ln_s='ln -s'
19414 # ... but there are two gotchas:
19415 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
19416 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
19417 # In both cases, we have to default to 'cp -pR'.
19418 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19419 as_ln_s='cp -pR'
19420 elif ln conf$$.file conf$$ 2>/dev/null; then
19421 as_ln_s=ln
19422 else
19423 as_ln_s='cp -pR'
19424 fi
19425 else
19426 as_ln_s='cp -pR'
19427 fi
19428 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19429 rmdir conf$$.dir 2>/dev/null
19430
19431
19432 # as_fn_mkdir_p
19433 # -------------
19434 # Create "$as_dir" as a directory, including parents if necessary.
19435 as_fn_mkdir_p ()
19436 {
19437
19438 case $as_dir in #(
19439 -*) as_dir=./$as_dir;;
19440 esac
19441 test -d "$as_dir" || eval $as_mkdir_p || {
19442 as_dirs=
19443 while :; do
19444 case $as_dir in #(
19445 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19446 *) as_qdir=$as_dir;;
19447 esac
19448 as_dirs="'$as_qdir' $as_dirs"
19449 as_dir=`$as_dirname -- "$as_dir" ||
19450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19451 X"$as_dir" : 'X\(//\)[^/]' \| \
19452 X"$as_dir" : 'X\(//\)$' \| \
19453 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19454 printf "%s\n" X"$as_dir" |
19455 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19456 s//\1/
19457 q
19458 }
19459 /^X\(\/\/\)[^/].*/{
19460 s//\1/
19461 q
19462 }
19463 /^X\(\/\/\)$/{
19464 s//\1/
19465 q
19466 }
19467 /^X\(\/\).*/{
19468 s//\1/
19469 q
19470 }
19471 s/.*/./; q'`
19472 test -d "$as_dir" && break
19473 done
19474 test -z "$as_dirs" || eval "mkdir $as_dirs"
19475 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
19476
19477
19478 } # as_fn_mkdir_p
19479 if mkdir -p . 2>/dev/null; then
19480 as_mkdir_p='mkdir -p "$as_dir"'
19481 else
19482 test -d ./-p && rmdir ./-p
19483 as_mkdir_p=false
19484 fi
19485
19486
19487 # as_fn_executable_p FILE
19488 # -----------------------
19489 # Test if FILE is an executable regular file.
19490 as_fn_executable_p ()
19491 {
19492 test -f "$1" && test -x "$1"
19493 } # as_fn_executable_p
19494 as_test_x='test -x'
19495 as_executable_p=as_fn_executable_p
19496
19497 # Sed expression to map a string onto a valid CPP name.
19498 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
19499 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
19500
19501 # Sed expression to map a string onto a valid variable name.
19502 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
19503 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
19504
19505
19506 exec 6>&1
19507 ## ----------------------------------- ##
19508 ## Main body of $CONFIG_STATUS script. ##
19509 ## ----------------------------------- ##
19510 _ASEOF
19511 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
19512
19513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19514 # Save the log message, to keep $0 and so on meaningful, and to
19515 # report actual input values of CONFIG_FILES etc. instead of their
19516 # values after options handling.
19517 ac_log="
19518 This file was extended by patchutils $as_me 0.4.5, which was
19519 generated by GNU Autoconf 2.72. Invocation command line was
19520
19521 CONFIG_FILES = $CONFIG_FILES
19522 CONFIG_HEADERS = $CONFIG_HEADERS
19523 CONFIG_LINKS = $CONFIG_LINKS
19524 CONFIG_COMMANDS = $CONFIG_COMMANDS
19525 $ $0 $@
19526
19527 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19528 "
19529
19530 _ACEOF
19531
19532 case $ac_config_files in *"
19533 "*) set x $ac_config_files; shift; ac_config_files=$*;;
19534 esac
19535
19536 case $ac_config_headers in *"
19537 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
19538 esac
19539
19540
19541 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19542 # Files that config.status was made for.
19543 config_files="$ac_config_files"
19544 config_headers="$ac_config_headers"
19545 config_commands="$ac_config_commands"
19546
19547 _ACEOF
19548
19549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19550 ac_cs_usage="\
19551 '$as_me' instantiates files and other configuration actions
19552 from templates according to the current configuration. Unless the files
19553 and actions are specified as TAGs, all are instantiated by default.
19554
19555 Usage: $0 [OPTION]... [TAG]...
19556
19557 -h, --help print this help, then exit
19558 -V, --version print version number and configuration settings, then exit
19559 --config print configuration, then exit
19560 -q, --quiet, --silent
19561 do not print progress messages
19562 -d, --debug don't remove temporary files
19563 --recheck update $as_me by reconfiguring in the same conditions
19564 --file=FILE[:TEMPLATE]
19565 instantiate the configuration file FILE
19566 --header=FILE[:TEMPLATE]
19567 instantiate the configuration header FILE
19568
19569 Configuration files:
19570 $config_files
19571
19572 Configuration headers:
19573 $config_headers
19574
19575 Configuration commands:
19576 $config_commands
19577
19578 Report bugs to the package provider."
19579
19580 _ACEOF
19581 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
19582 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
19583 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19584 ac_cs_config='$ac_cs_config_escaped'
19585 ac_cs_version="\\
19586 patchutils config.status 0.4.5
19587 configured by $0, generated by GNU Autoconf 2.72,
19588 with options \\"\$ac_cs_config\\"
19589
19590 Copyright (C) 2023 Free Software Foundation, Inc.
19591 This config.status script is free software; the Free Software Foundation
19592 gives unlimited permission to copy, distribute and modify it."
19593
19594 ac_pwd='$ac_pwd'
19595 srcdir='$srcdir'
19596 INSTALL='$INSTALL'
19597 MKDIR_P='$MKDIR_P'
19598 AWK='$AWK'
19599 test -n "\$AWK" || AWK=awk
19600 _ACEOF
19601
19602 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19603 # The default lists apply if the user does not specify any file.
19604 ac_need_defaults=:
19605 while test $# != 0
19606 do
19607 case $1 in
19608 --*=?*)
19609 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19610 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
19611 ac_shift=:
19612 ;;
19613 --*=)
19614 ac_option=`expr "X$1" : 'X\([^=]*\)='`
19615 ac_optarg=
19616 ac_shift=:
19617 ;;
19618 *)
19619 ac_option=$1
19620 ac_optarg=$2
19621 ac_shift=shift
19622 ;;
19623 esac
19624
19625 case $ac_option in
19626 # Handling of the options.
19627 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19628 ac_cs_recheck=: ;;
19629 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
19630 printf "%s\n" "$ac_cs_version"; exit ;;
19631 --config | --confi | --conf | --con | --co | --c )
19632 printf "%s\n" "$ac_cs_config"; exit ;;
19633 --debug | --debu | --deb | --de | --d | -d )
19634 debug=: ;;
19635 --file | --fil | --fi | --f )
19636 $ac_shift
19637 case $ac_optarg in
19638 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19639 '') as_fn_error $? "missing file argument" ;;
19640 esac
19641 as_fn_append CONFIG_FILES " '$ac_optarg'"
19642 ac_need_defaults=false;;
19643 --header | --heade | --head | --hea )
19644 $ac_shift
19645 case $ac_optarg in
19646 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19647 esac
19648 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
19649 ac_need_defaults=false;;
19650 --he | --h)
19651 # Conflict between --help and --header
19652 as_fn_error $? "ambiguous option: '$1'
19653 Try '$0 --help' for more information.";;
19654 --help | --hel | -h )
19655 printf "%s\n" "$ac_cs_usage"; exit ;;
19656 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19657 | -silent | --silent | --silen | --sile | --sil | --si | --s)
19658 ac_cs_silent=: ;;
19659
19660 # This is an error.
19661 -*) as_fn_error $? "unrecognized option: '$1'
19662 Try '$0 --help' for more information." ;;
19663
19664 *) as_fn_append ac_config_targets " $1"
19665 ac_need_defaults=false ;;
19666
19667 esac
19668 shift
19669 done
19670
19671 ac_configure_extra_args=
19672
19673 if $ac_cs_silent; then
19674 exec 6>/dev/null
19675 ac_configure_extra_args="$ac_configure_extra_args --silent"
19676 fi
19677
19678 _ACEOF
19679 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19680 if \$ac_cs_recheck; then
19681 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19682 shift
19683 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
19684 CONFIG_SHELL='$SHELL'
19685 export CONFIG_SHELL
19686 exec "\$@"
19687 fi
19688
19689 _ACEOF
19690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19691 exec 5>>config.log
19692 {
19693 echo
19694 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19695 ## Running $as_me. ##
19696 _ASBOX
19697 printf "%s\n" "$ac_log"
19698 } >&5
19699
19700 _ACEOF
19701 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19702 #
19703 # INIT-COMMANDS
19704 #
19705 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
19706
19707 _ACEOF
19708
19709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19710
19711 # Handling of arguments.
19712 for ac_config_target in $ac_config_targets
19713 do
19714 case $ac_config_target in
19715 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19716 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19717 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19718 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
19719 "scripts/fixcvsdiff") CONFIG_FILES="$CONFIG_FILES scripts/fixcvsdiff" ;;
19720 "scripts/splitdiff") CONFIG_FILES="$CONFIG_FILES scripts/splitdiff" ;;
19721 "scripts/editdiff") CONFIG_FILES="$CONFIG_FILES scripts/editdiff" ;;
19722 "scripts/recountdiff") CONFIG_FILES="$CONFIG_FILES scripts/recountdiff" ;;
19723 "scripts/unwrapdiff") CONFIG_FILES="$CONFIG_FILES scripts/unwrapdiff" ;;
19724 "scripts/dehtmldiff") CONFIG_FILES="$CONFIG_FILES scripts/dehtmldiff" ;;
19725 "scripts/espdiff") CONFIG_FILES="$CONFIG_FILES scripts/espdiff" ;;
19726 "scripts/move-to-front") CONFIG_FILES="$CONFIG_FILES scripts/move-to-front" ;;
19727 "patchutils.spec") CONFIG_FILES="$CONFIG_FILES patchutils.spec" ;;
19728
19729 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
19730 esac
19731 done
19732
19733
19734 # If the user did not use the arguments to specify the items to instantiate,
19735 # then the envvar interface is used. Set only those that are not.
19736 # We use the long form for the default assignment because of an extremely
19737 # bizarre bug on SunOS 4.1.3.
19738 if $ac_need_defaults; then
19739 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
19740 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
19741 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
19742 fi
19743
19744 # Have a temporary directory for convenience. Make it in the build tree
19745 # simply because there is no reason against having it here, and in addition,
19746 # creating and moving files from /tmp can sometimes cause problems.
19747 # Hook for its removal unless debugging.
19748 # Note that there is a small window in which the directory will not be cleaned:
19749 # after its creation but before its name has been assigned to '$tmp'.
19750 $debug ||
19751 {
19752 tmp= ac_tmp=
19753 trap 'exit_status=$?
19754 : "${ac_tmp:=$tmp}"
19755 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19756 ' 0
19757 trap 'as_fn_exit 1' 1 2 13 15
19758 }
19759 # Create a (secure) tmp directory for tmp files.
19760
19761 {
19762 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19763 test -d "$tmp"
19764 } ||
19765 {
19766 tmp=./conf$$-$RANDOM
19767 (umask 077 && mkdir "$tmp")
19768 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19769 ac_tmp=$tmp
19770
19771 # Set up the scripts for CONFIG_FILES section.
19772 # No need to generate them if there are no CONFIG_FILES.
19773 # This happens for instance with './config.status config.h'.
19774 if test -n "$CONFIG_FILES"; then
19775
19776
19777 ac_cr=`echo X | tr X '\015'`
19778 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19779 # But we know of no other shell where ac_cr would be empty at this
19780 # point, so we can use a bashism as a fallback.
19781 if test "x$ac_cr" = x; then
19782 eval ac_cr=\$\'\\r\'
19783 fi
19784 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19785 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19786 ac_cs_awk_cr='\\r'
19787 else
19788 ac_cs_awk_cr=$ac_cr
19789 fi
19790
19791 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19792 _ACEOF
19793
19794
19795 {
19796 echo "cat >conf$$subs.awk <<_ACEOF" &&
19797 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19798 echo "_ACEOF"
19799 } >conf$$subs.sh ||
19800 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19801 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19802 ac_delim='%!_!# '
19803 for ac_last_try in false false false false false :; do
19804 . ./conf$$subs.sh ||
19805 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19806
19807 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19808 if test $ac_delim_n = $ac_delim_num; then
19809 break
19810 elif $ac_last_try; then
19811 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19812 else
19813 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19814 fi
19815 done
19816 rm -f conf$$subs.sh
19817
19818 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19819 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19820 _ACEOF
19821 sed -n '
19822 h
19823 s/^/S["/; s/!.*/"]=/
19824 p
19825 g
19826 s/^[^!]*!//
19827 :repl
19828 t repl
19829 s/'"$ac_delim"'$//
19830 t delim
19831 :nl
19832 h
19833 s/\(.\{148\}\)..*/\1/
19834 t more1
19835 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19836 p
19837 n
19838 b repl
19839 :more1
19840 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19841 p
19842 g
19843 s/.\{148\}//
19844 t nl
19845 :delim
19846 h
19847 s/\(.\{148\}\)..*/\1/
19848 t more2
19849 s/["\\]/\\&/g; s/^/"/; s/$/"/
19850 p
19851 b
19852 :more2
19853 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19854 p
19855 g
19856 s/.\{148\}//
19857 t delim
19858 ' <conf$$subs.awk | sed '
19859 /^[^""]/{
19860 N
19861 s/\n//
19862 }
19863 ' >>$CONFIG_STATUS || ac_write_fail=1
19864 rm -f conf$$subs.awk
19865 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19866 _ACAWK
19867 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19868 for (key in S) S_is_set[key] = 1
19869 FS = ""
19870
19871 }
19872 {
19873 line = $ 0
19874 nfields = split(line, field, "@")
19875 substed = 0
19876 len = length(field[1])
19877 for (i = 2; i < nfields; i++) {
19878 key = field[i]
19879 keylen = length(key)
19880 if (S_is_set[key]) {
19881 value = S[key]
19882 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19883 len += length(value) + length(field[++i])
19884 substed = 1
19885 } else
19886 len += 1 + keylen
19887 }
19888
19889 print line
19890 }
19891
19892 _ACAWK
19893 _ACEOF
19894 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19895 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19896 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19897 else
19898 cat
19899 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19900 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19901 _ACEOF
19902
19903 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19904 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19905 # trailing colons and then remove the whole line if VPATH becomes empty
19906 # (actually we leave an empty line to preserve line numbers).
19907 if test "x$srcdir" = x.; then
19908 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19909 h
19910 s///
19911 s/^/:/
19912 s/[ ]*$/:/
19913 s/:\$(srcdir):/:/g
19914 s/:\${srcdir}:/:/g
19915 s/:@srcdir@:/:/g
19916 s/^:*//
19917 s/:*$//
19918 x
19919 s/\(=[ ]*\).*/\1/
19920 G
19921 s/\n//
19922 s/^[^=]*=[ ]*$//
19923 }'
19924 fi
19925
19926 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19927 fi # test -n "$CONFIG_FILES"
19928
19929 # Set up the scripts for CONFIG_HEADERS section.
19930 # No need to generate them if there are no CONFIG_HEADERS.
19931 # This happens for instance with './config.status Makefile'.
19932 if test -n "$CONFIG_HEADERS"; then
19933 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
19934 BEGIN {
19935 _ACEOF
19936
19937 # Transform confdefs.h into an awk script 'defines.awk', embedded as
19938 # here-document in config.status, that substitutes the proper values into
19939 # config.h.in to produce config.h.
19940
19941 # Create a delimiter string that does not exist in confdefs.h, to ease
19942 # handling of long lines.
19943 ac_delim='%!_!# '
19944 for ac_last_try in false false :; do
19945 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
19946 if test -z "$ac_tt"; then
19947 break
19948 elif $ac_last_try; then
19949 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
19950 else
19951 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19952 fi
19953 done
19954
19955 # For the awk script, D is an array of macro values keyed by name,
19956 # likewise P contains macro parameters if any. Preserve backslash
19957 # newline sequences.
19958
19959 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
19960 sed -n '
19961 s/.\{148\}/&'"$ac_delim"'/g
19962 t rset
19963 :rset
19964 s/^[ ]*#[ ]*define[ ][ ]*/ /
19965 t def
19966 d
19967 :def
19968 s/\\$//
19969 t bsnl
19970 s/["\\]/\\&/g
19971 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19972 D["\1"]=" \3"/p
19973 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
19974 d
19975 :bsnl
19976 s/["\\]/\\&/g
19977 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
19978 D["\1"]=" \3\\\\\\n"\\/p
19979 t cont
19980 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
19981 t cont
19982 d
19983 :cont
19984 n
19985 s/.\{148\}/&'"$ac_delim"'/g
19986 t clear
19987 :clear
19988 s/\\$//
19989 t bsnlc
19990 s/["\\]/\\&/g; s/^/"/; s/$/"/p
19991 d
19992 :bsnlc
19993 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
19994 b cont
19995 ' <confdefs.h | sed '
19996 s/'"$ac_delim"'/"\\\
19997 "/g' >>$CONFIG_STATUS || ac_write_fail=1
19998
19999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20000 for (key in D) D_is_set[key] = 1
20001 FS = ""
20002 }
20003 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20004 line = \$ 0
20005 split(line, arg, " ")
20006 if (arg[1] == "#") {
20007 defundef = arg[2]
20008 mac1 = arg[3]
20009 } else {
20010 defundef = substr(arg[1], 2)
20011 mac1 = arg[2]
20012 }
20013 split(mac1, mac2, "(") #)
20014 macro = mac2[1]
20015 prefix = substr(line, 1, index(line, defundef) - 1)
20016 if (D_is_set[macro]) {
20017 # Preserve the white space surrounding the "#".
20018 print prefix "define", macro P[macro] D[macro]
20019 next
20020 } else {
20021 # Replace #undef with comments. This is necessary, for example,
20022 # in the case of _POSIX_SOURCE, which is predefined and required
20023 # on some systems where configure will not decide to define it.
20024 if (defundef == "undef") {
20025 print "/*", prefix defundef, macro, "*/"
20026 next
20027 }
20028 }
20029 }
20030 { print }
20031 _ACAWK
20032 _ACEOF
20033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20034 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
20035 fi # test -n "$CONFIG_HEADERS"
20036
20037
20038 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
20039 shift
20040 for ac_tag
20041 do
20042 case $ac_tag in
20043 :[FHLC]) ac_mode=$ac_tag; continue;;
20044 esac
20045 case $ac_mode$ac_tag in
20046 :[FHL]*:*);;
20047 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
20048 :[FH]-) ac_tag=-:-;;
20049 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20050 esac
20051 ac_save_IFS=$IFS
20052 IFS=:
20053 set x $ac_tag
20054 IFS=$ac_save_IFS
20055 shift
20056 ac_file=$1
20057 shift
20058
20059 case $ac_mode in
20060 :L) ac_source=$1;;
20061 :[FH])
20062 ac_file_inputs=
20063 for ac_f
20064 do
20065 case $ac_f in
20066 -) ac_f="$ac_tmp/stdin";;
20067 *) # Look for the file first in the build tree, then in the source tree
20068 # (if the path is not absolute). The absolute path cannot be DOS-style,
20069 # because $ac_f cannot contain ':'.
20070 test -f "$ac_f" ||
20071 case $ac_f in
20072 [\\/$]*) false;;
20073 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20074 esac ||
20075 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
20076 esac
20077 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
20078 as_fn_append ac_file_inputs " '$ac_f'"
20079 done
20080
20081 # Let's still pretend it is 'configure' which instantiates (i.e., don't
20082 # use $as_me), people would be surprised to read:
20083 # /* config.h. Generated by config.status. */
20084 configure_input='Generated from '`
20085 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20086 `' by configure.'
20087 if test x"$ac_file" != x-; then
20088 configure_input="$ac_file. $configure_input"
20089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
20090 printf "%s\n" "$as_me: creating $ac_file" >&6;}
20091 fi
20092 # Neutralize special characters interpreted by sed in replacement strings.
20093 case $configure_input in #(
20094 *\&* | *\|* | *\\* )
20095 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
20096 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20097 *) ac_sed_conf_input=$configure_input;;
20098 esac
20099
20100 case $ac_tag in
20101 *:-:* | *:-) cat >"$ac_tmp/stdin" \
20102 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
20103 esac
20104 ;;
20105 esac
20106
20107 ac_dir=`$as_dirname -- "$ac_file" ||
20108 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20109 X"$ac_file" : 'X\(//\)[^/]' \| \
20110 X"$ac_file" : 'X\(//\)$' \| \
20111 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20112 printf "%s\n" X"$ac_file" |
20113 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20114 s//\1/
20115 q
20116 }
20117 /^X\(\/\/\)[^/].*/{
20118 s//\1/
20119 q
20120 }
20121 /^X\(\/\/\)$/{
20122 s//\1/
20123 q
20124 }
20125 /^X\(\/\).*/{
20126 s//\1/
20127 q
20128 }
20129 s/.*/./; q'`
20130 as_dir="$ac_dir"; as_fn_mkdir_p
20131 ac_builddir=.
20132
20133 case "$ac_dir" in
20134 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20135 *)
20136 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
20137 # A ".." for each directory in $ac_dir_suffix.
20138 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20139 case $ac_top_builddir_sub in
20140 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20141 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20142 esac ;;
20143 esac
20144 ac_abs_top_builddir=$ac_pwd
20145 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20146 # for backward compatibility:
20147 ac_top_builddir=$ac_top_build_prefix
20148
20149 case $srcdir in
20150 .) # We are building in place.
20151 ac_srcdir=.
20152 ac_top_srcdir=$ac_top_builddir_sub
20153 ac_abs_top_srcdir=$ac_pwd ;;
20154 [\\/]* | ?:[\\/]* ) # Absolute name.
20155 ac_srcdir=$srcdir$ac_dir_suffix;
20156 ac_top_srcdir=$srcdir
20157 ac_abs_top_srcdir=$srcdir ;;
20158 *) # Relative name.
20159 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
20160 ac_top_srcdir=$ac_top_build_prefix$srcdir
20161 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
20162 esac
20163 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
20164
20165
20166 case $ac_mode in
20167 :F)
20168 #
20169 # CONFIG_FILE
20170 #
20171
20172 case $INSTALL in
20173 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20174 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
20175 esac
20176 ac_MKDIR_P=$MKDIR_P
20177 case $MKDIR_P in
20178 [\\/$]* | ?:[\\/]* ) ;;
20179 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
20180 esac
20181 _ACEOF
20182
20183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20184 # If the template does not know about datarootdir, expand it.
20185 # FIXME: This hack should be removed a few years after 2.60.
20186 ac_datarootdir_hack=; ac_datarootdir_seen=
20187 ac_sed_dataroot='
20188 /datarootdir/ {
20189 p
20190 q
20191 }
20192 /@datadir@/p
20193 /@docdir@/p
20194 /@infodir@/p
20195 /@localedir@/p
20196 /@mandir@/p'
20197 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
20198 *datarootdir*) ac_datarootdir_seen=yes;;
20199 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
20200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
20201 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
20202 _ACEOF
20203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20204 ac_datarootdir_hack='
20205 s&@datadir@&$datadir&g
20206 s&@docdir@&$docdir&g
20207 s&@infodir@&$infodir&g
20208 s&@localedir@&$localedir&g
20209 s&@mandir@&$mandir&g
20210 s&\\\${datarootdir}&$datarootdir&g' ;;
20211 esac
20212 _ACEOF
20213
20214 # Neutralize VPATH when '$srcdir' = '.'.
20215 # Shell code in configure.ac might set extrasub.
20216 # FIXME: do we really want to maintain this feature?
20217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20218 ac_sed_extra="$ac_vpsub
20219 $extrasub
20220 _ACEOF
20221 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20222 :t
20223 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20224 s|@configure_input@|$ac_sed_conf_input|;t t
20225 s&@top_builddir@&$ac_top_builddir_sub&;t t
20226 s&@top_build_prefix@&$ac_top_build_prefix&;t t
20227 s&@srcdir@&$ac_srcdir&;t t
20228 s&@abs_srcdir@&$ac_abs_srcdir&;t t
20229 s&@top_srcdir@&$ac_top_srcdir&;t t
20230 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
20231 s&@builddir@&$ac_builddir&;t t
20232 s&@abs_builddir@&$ac_abs_builddir&;t t
20233 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
20234 s&@INSTALL@&$ac_INSTALL&;t t
20235 s&@MKDIR_P@&$ac_MKDIR_P&;t t
20236 $ac_datarootdir_hack
20237 "
20238 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
20239 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20240
20241 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20242 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
20243 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20244 "$ac_tmp/out"`; test -z "$ac_out"; } &&
20245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
20246 which seems to be undefined. Please make sure it is defined" >&5
20247 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
20248 which seems to be undefined. Please make sure it is defined" >&2;}
20249
20250 rm -f "$ac_tmp/stdin"
20251 case $ac_file in
20252 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20253 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20254 esac \
20255 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20256 ;;
20257 :H)
20258 #
20259 # CONFIG_HEADER
20260 #
20261 if test x"$ac_file" != x-; then
20262 {
20263 printf "%s\n" "/* $configure_input */" >&1 \
20264 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
20265 } >"$ac_tmp/config.h" \
20266 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20267 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
20268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
20269 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
20270 else
20271 rm -f "$ac_file"
20272 mv "$ac_tmp/config.h" "$ac_file" \
20273 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20274 fi
20275 else
20276 printf "%s\n" "/* $configure_input */" >&1 \
20277 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
20278 || as_fn_error $? "could not create -" "$LINENO" 5
20279 fi
20280 # Compute "$ac_file"'s index in $config_headers.
20281 _am_arg="$ac_file"
20282 _am_stamp_count=1
20283 for _am_header in $config_headers :; do
20284 case $_am_header in
20285 $_am_arg | $_am_arg:* )
20286 break ;;
20287 * )
20288 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20289 esac
20290 done
20291 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
20292 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20293 X"$_am_arg" : 'X\(//\)[^/]' \| \
20294 X"$_am_arg" : 'X\(//\)$' \| \
20295 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
20296 printf "%s\n" X"$_am_arg" |
20297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20298 s//\1/
20299 q
20300 }
20301 /^X\(\/\/\)[^/].*/{
20302 s//\1/
20303 q
20304 }
20305 /^X\(\/\/\)$/{
20306 s//\1/
20307 q
20308 }
20309 /^X\(\/\).*/{
20310 s//\1/
20311 q
20312 }
20313 s/.*/./; q'`/stamp-h$_am_stamp_count
20314 ;;
20315
20316 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
20317 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
20318 ;;
20319 esac
20320
20321
20322 case $ac_file$ac_mode in
20323 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
20324 # Older Autoconf quotes --file arguments for eval, but not when files
20325 # are listed without --file. Let's play safe and only enable the eval
20326 # if we detect the quoting.
20327 # TODO: see whether this extra hack can be removed once we start
20328 # requiring Autoconf 2.70 or later.
20329 case $CONFIG_FILES in #(
20330 *\'*) :
20331 eval set x "$CONFIG_FILES" ;; #(
20332 *) :
20333 set x $CONFIG_FILES ;; #(
20334 *) :
20335 ;;
20336 esac
20337 shift
20338 # Used to flag and report bootstrapping failures.
20339 am_rc=0
20340 for am_mf
20341 do
20342 # Strip MF so we end up with the name of the file.
20343 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
20344 # Check whether this is an Automake generated Makefile which includes
20345 # dependency-tracking related rules and includes.
20346 # Grep'ing the whole file directly is not great: AIX grep has a line
20347 # limit of 2048, but all sed's we know have understand at least 4000.
20348 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
20349 || continue
20350 am_dirpart=`$as_dirname -- "$am_mf" ||
20351 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20352 X"$am_mf" : 'X\(//\)[^/]' \| \
20353 X"$am_mf" : 'X\(//\)$' \| \
20354 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20355 printf "%s\n" X"$am_mf" |
20356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20357 s//\1/
20358 q
20359 }
20360 /^X\(\/\/\)[^/].*/{
20361 s//\1/
20362 q
20363 }
20364 /^X\(\/\/\)$/{
20365 s//\1/
20366 q
20367 }
20368 /^X\(\/\).*/{
20369 s//\1/
20370 q
20371 }
20372 s/.*/./; q'`
20373 am_filepart=`$as_basename -- "$am_mf" ||
20374 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
20375 X"$am_mf" : 'X\(//\)$' \| \
20376 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
20377 printf "%s\n" X/"$am_mf" |
20378 sed '/^.*\/\([^/][^/]*\)\/*$/{
20379 s//\1/
20380 q
20381 }
20382 /^X\/\(\/\/\)$/{
20383 s//\1/
20384 q
20385 }
20386 /^X\/\(\/\).*/{
20387 s//\1/
20388 q
20389 }
20390 s/.*/./; q'`
20391 { echo "$as_me:$LINENO: cd "$am_dirpart" \
20392 && sed -e '/# am--include-marker/d' "$am_filepart" \
20393 | $MAKE -f - am--depfiles" >&5
20394 (cd "$am_dirpart" \
20395 && sed -e '/# am--include-marker/d' "$am_filepart" \
20396 | $MAKE -f - am--depfiles) >&5 2>&5
20397 ac_status=$?
20398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20399 (exit $ac_status); } || am_rc=$?
20400 done
20401 if test $am_rc -ne 0; then
20402 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
20403 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
20404 as_fn_error $? "Something went wrong bootstrapping makefile fragments
20405 for automatic dependency tracking. If GNU make was not used, consider
20406 re-running the configure script with MAKE=\"gmake\" (or whatever is
20407 necessary). You can also try re-running configure with the
20408 '--disable-dependency-tracking' option to at least be able to build
20409 the package (albeit without support for automatic dependency tracking).
20410 See 'config.log' for more details" "$LINENO" 5; }
20411 fi
20412 { am_dirpart=; unset am_dirpart;}
20413 { am_filepart=; unset am_filepart;}
20414 { am_mf=; unset am_mf;}
20415 { am_rc=; unset am_rc;}
20416 rm -f conftest-deps.mk
20417 }
20418 ;;
20419
20420 esac
20421 done # for ac_tag
20422
20423
20424 as_fn_exit 0
20425 _ACEOF
20426 ac_clean_files=$ac_clean_files_save
20427
20428 test $ac_write_fail = 0 ||
20429 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20430
20431
20432 # configure is writing to config.log, and then calls config.status.
20433 # config.status does its own redirection, appending to config.log.
20434 # Unfortunately, on DOS this fails, as config.log is still kept open
20435 # by configure, so config.status won't be able to write to it; its
20436 # output is simply discarded. So we exec the FD to /dev/null,
20437 # effectively closing config.log, so it can be properly (re)opened and
20438 # appended to by config.status. When coming back to configure, we
20439 # need to make the FD available again.
20440 if test "$no_create" != yes; then
20441 ac_cs_success=:
20442 ac_config_status_args=
20443 test "$silent" = yes &&
20444 ac_config_status_args="$ac_config_status_args --quiet"
20445 exec 5>/dev/null
20446 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20447 exec 5>>config.log
20448 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20449 # would make configure fail if this is the last instruction.
20450 $ac_cs_success || as_fn_exit 1
20451 fi
20452 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20454 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20455 fi
20456
20457