Debian Codegraph @

lib/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.72 for gperf package.
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='gperf'
603 PACKAGE_TARNAME='gperf'
604 PACKAGE_VERSION='package'
605 PACKAGE_STRING='gperf package'
606 PACKAGE_BUGREPORT=''
607 PACKAGE_URL=''
608
609 ac_unique_file="hash.cc"
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 gl_getopt_required=POSIX
644 enable_year2038=no
645 ac_subst_vars='gltests_libgp_LIBOBJDEPS
646 gltests_libgp_LTLIBOBJS
647 gltests_libgp_LIBOBJS
648 gltests_LIBOBJDEPS
649 gltests_LTLIBOBJS
650 gltests_LIBOBJS
651 gl_libgp_LIBOBJDEPS
652 gl_libgp_LTLIBOBJS
653 gl_libgp_LIBOBJS
654 gl_LIBOBJDEPS
655 gl_LTLIBOBJS
656 gl_LIBOBJS
657 am__EXEEXT_FALSE
658 am__EXEEXT_TRUE
659 LTLIBOBJS
660 LIBOBJS
661 LIBGP_LTLIBDEPS
662 LIBGP_LIBDEPS
663 GL_CFLAG_GNULIB_WARNINGS
664 GL_CFLAG_ALLOW_WARNINGS
665 gltests_WITNESS
666 GL_GNULIB_MDA_WCSDUP
667 GL_GNULIB_WGETCWD
668 GL_GNULIB_WCSFTIME
669 GL_GNULIB_WCSWIDTH
670 GL_GNULIB_WCSTOK
671 GL_GNULIB_WCSSTR
672 GL_GNULIB_WCSPBRK
673 GL_GNULIB_WCSSPN
674 GL_GNULIB_WCSCSPN
675 GL_GNULIB_WCSRCHR
676 GL_GNULIB_WCSCHR
677 GL_GNULIB_WCSDUP
678 GL_GNULIB_WCSXFRM
679 GL_GNULIB_WCSCOLL
680 GL_GNULIB_WCSNCASECMP
681 GL_GNULIB_WCSCASECMP
682 GL_GNULIB_WCSNCMP
683 GL_GNULIB_WCSCMP
684 GL_GNULIB_WCSNCAT
685 GL_GNULIB_WCSCAT
686 GL_GNULIB_WCPNCPY
687 GL_GNULIB_WCSNCPY
688 GL_GNULIB_WCPCPY
689 GL_GNULIB_WCSCPY
690 GL_GNULIB_WCSNLEN
691 GL_GNULIB_WCSLEN
692 GL_GNULIB_WMEMSET
693 GL_GNULIB_WMEMPCPY
694 GL_GNULIB_WMEMMOVE
695 GL_GNULIB_WMEMCPY
696 GL_GNULIB_WMEMCMP
697 GL_GNULIB_WMEMCHR
698 GL_GNULIB_WCWIDTH
699 GL_GNULIB_WCSNRTOMBS
700 GL_GNULIB_WCSRTOMBS
701 GL_GNULIB_WCRTOMB
702 GL_GNULIB_MBSNRTOWCS
703 GL_GNULIB_MBSRTOWCS
704 GL_GNULIB_MBRLEN
705 GL_GNULIB_MBRTOWC
706 GL_GNULIB_MBSZERO
707 GL_GNULIB_MBSINIT
708 GL_GNULIB_WCTOB
709 GL_GNULIB_BTOWC
710 HAVE_CRTDEFS_H
711 HAVE_WINT_T
712 HAVE_FEATURES_H
713 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
714 NEXT_WCHAR_H
715 REPLACE_WMEMPCPY
716 REPLACE_WMEMCMP
717 REPLACE_WCSTOK
718 REPLACE_WCSSTR
719 REPLACE_WCSNCMP
720 REPLACE_WCSNCAT
721 REPLACE_WCSCMP
722 REPLACE_WCSFTIME
723 REPLACE_WCSWIDTH
724 REPLACE_WCWIDTH
725 REPLACE_WCSNRTOMBS
726 REPLACE_WCSRTOMBS
727 REPLACE_WCRTOMB
728 REPLACE_MBSNRTOWCS
729 REPLACE_MBSRTOWCS
730 REPLACE_MBRLEN
731 REPLACE_MBRTOWC
732 REPLACE_MBSINIT
733 REPLACE_WCTOB
734 REPLACE_BTOWC
735 REPLACE_MBSTATE_T
736 HAVE_DECL_WCWIDTH
737 HAVE_DECL_WCSDUP
738 HAVE_DECL_WCTOB
739 HAVE_WCSFTIME
740 HAVE_WCSWIDTH
741 HAVE_WCSTOK
742 HAVE_WCSSTR
743 HAVE_WCSPBRK
744 HAVE_WCSSPN
745 HAVE_WCSCSPN
746 HAVE_WCSRCHR
747 HAVE_WCSCHR
748 HAVE_WCSDUP
749 HAVE_WCSXFRM
750 HAVE_WCSCOLL
751 HAVE_WCSNCASECMP
752 HAVE_WCSCASECMP
753 HAVE_WCSNCMP
754 HAVE_WCSCMP
755 HAVE_WCSNCAT
756 HAVE_WCSCAT
757 HAVE_WCPNCPY
758 HAVE_WCSNCPY
759 HAVE_WCPCPY
760 HAVE_WCSCPY
761 HAVE_WCSNLEN
762 HAVE_WCSLEN
763 HAVE_WMEMSET
764 HAVE_WMEMPCPY
765 HAVE_WMEMMOVE
766 HAVE_WMEMCPY
767 HAVE_WMEMCMP
768 HAVE_WMEMCHR
769 HAVE_WCSNRTOMBS
770 HAVE_WCSRTOMBS
771 HAVE_WCRTOMB
772 HAVE_MBSNRTOWCS
773 HAVE_MBSRTOWCS
774 HAVE_MBRLEN
775 HAVE_MBRTOWC
776 HAVE_MBSINIT
777 HAVE_BTOWC
778 HAVE_UNISTD_H
779 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
780 NEXT_UNISTD_H
781 GL_GNULIB_MDA_TZSET
782 GL_GNULIB_TZSET
783 GL_GNULIB_TZNAME
784 GL_GNULIB_TIME_RZ
785 GL_GNULIB_TIME_R
786 GL_GNULIB_TIMESPEC_GETRES
787 GL_GNULIB_TIMESPEC_GET
788 GL_GNULIB_TIMEGM
789 GL_GNULIB_TIME
790 GL_GNULIB_STRPTIME
791 GL_GNULIB_STRFTIME
792 GL_GNULIB_NANOSLEEP
793 GL_GNULIB_LOCALTIME
794 GL_GNULIB_MKTIME
795 GL_GNULIB_CTIME
796 TIME_H_DEFINES_TIME_UTC
797 UNISTD_H_DEFINES_STRUCT_TIMESPEC
798 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
799 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
800 TIME_H_DEFINES_STRUCT_TIMESPEC
801 NEXT_AS_FIRST_DIRECTIVE_TIME_H
802 NEXT_TIME_H
803 REPLACE_TZSET
804 REPLACE_TIMESPEC_GETRES
805 REPLACE_TIMESPEC_GET
806 REPLACE_TIMEGM
807 REPLACE_TIME
808 REPLACE_STRFTIME
809 REPLACE_NANOSLEEP
810 REPLACE_MKTIME_Z
811 REPLACE_MKTIME
812 REPLACE_LOCALTIME_RZ
813 REPLACE_LOCALTIME_R
814 REPLACE_LOCALTIME
815 REPLACE_GMTIME
816 REPLACE_CTIME
817 HAVE_TZALLOC
818 HAVE_TIMEZONE_T
819 HAVE_TIMESPEC_GETRES
820 HAVE_TIMESPEC_GET
821 HAVE_TIMEGM
822 HAVE_STRPTIME
823 HAVE_NANOSLEEP
824 HAVE_DECL_LOCALTIME_R
825 NEXT_AS_FIRST_DIRECTIVE_STRING_H
826 NEXT_STRING_H
827 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE
828 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE
829 GL_COND_OBJ_STRERROR_FALSE
830 GL_COND_OBJ_STRERROR_TRUE
831 LOCALE_EN_UTF8
832 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
833 NEXT_STDLIB_H
834 GL_COND_OBJ_STDIO_WRITE_FALSE
835 GL_COND_OBJ_STDIO_WRITE_TRUE
836 GL_COND_OBJ_STDIO_READ_FALSE
837 GL_COND_OBJ_STDIO_READ_TRUE
838 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
839 NEXT_STDIO_H
840 GL_GENERATE_STDINT_H_FALSE
841 GL_GENERATE_STDINT_H_TRUE
842 STDINT_H
843 GL_GENERATE_STDDEF_H_FALSE
844 GL_GENERATE_STDDEF_H_TRUE
845 STDDEF_H
846 GL_GENERATE_STDCKDINT_H_FALSE
847 GL_GENERATE_STDCKDINT_H_TRUE
848 STDCKDINT_H
849 GL_COND_OBJ_STAT_FALSE
850 GL_COND_OBJ_STAT_TRUE
851 GL_COND_OBJ_REALLOC_POSIX_FALSE
852 GL_COND_OBJ_REALLOC_POSIX_TRUE
853 GL_COND_OBJ_OPEN_FALSE
854 GL_COND_OBJ_OPEN_TRUE
855 GL_COND_OBJ_MSVC_NOTHROW_FALSE
856 GL_COND_OBJ_MSVC_NOTHROW_TRUE
857 GL_COND_OBJ_MSVC_INVAL_FALSE
858 GL_COND_OBJ_MSVC_INVAL_TRUE
859 GL_GNULIB_MDA_STRDUP
860 GL_GNULIB_MDA_MEMCCPY
861 GL_GNULIB_STRVERSCMP
862 GL_GNULIB_STRSIGNAL
863 GL_GNULIB_SIGDESCR_NP
864 GL_GNULIB_SIGABBREV_NP
865 GL_GNULIB_STRERRORNAME_NP
866 GL_GNULIB_STRERROR_L
867 GL_GNULIB_STRERROR_R
868 GL_GNULIB_STRERROR
869 GL_GNULIB_MBS_ENDSWITH
870 GL_GNULIB_MBS_STARTSWITH
871 GL_GNULIB_MBSTOK_R
872 GL_GNULIB_MBSSEP
873 GL_GNULIB_MBSSPN
874 GL_GNULIB_MBSPBRK
875 GL_GNULIB_MBSCSPN
876 GL_GNULIB_MBSCASESTR
877 GL_GNULIB_MBSPCASECMP
878 GL_GNULIB_MBSNCASECMP
879 GL_GNULIB_MBSCASECMP
880 GL_GNULIB_MBSSTR
881 GL_GNULIB_MBSRCHR
882 GL_GNULIB_MBSCHR
883 GL_GNULIB_MBSNLEN
884 GL_GNULIB_MBSLEN
885 GL_GNULIB_STR_ENDSWITH
886 GL_GNULIB_STR_STARTSWITH
887 GL_GNULIB_STRTOK_R
888 GL_GNULIB_STRCASESTR
889 GL_GNULIB_STRSTR
890 GL_GNULIB_STRSEP
891 GL_GNULIB_STRPBRK
892 GL_GNULIB_STRNLEN
893 GL_GNULIB_STRNDUP
894 GL_GNULIB_STRNCAT
895 GL_GNULIB_STRDUP
896 GL_GNULIB_STRCHRNUL
897 GL_GNULIB_STPNCPY
898 GL_GNULIB_STPCPY
899 GL_GNULIB_RAWMEMCHR
900 GL_GNULIB_MEMSET_EXPLICIT
901 GL_GNULIB_MEMRCHR
902 GL_GNULIB_MEMPCPY
903 GL_GNULIB_MEMMEM
904 GL_GNULIB_MEMCHR
905 GL_GNULIB_FFSLL
906 GL_GNULIB_FFSL
907 GL_GNULIB_EXPLICIT_BZERO
908 GL_COND_OBJ_MEMSET_EXPLICIT_FALSE
909 GL_COND_OBJ_MEMSET_EXPLICIT_TRUE
910 UNDEFINE_STRTOK_R
911 REPLACE_STRVERSCMP
912 REPLACE_STRSIGNAL
913 REPLACE_STRERRORNAME_NP
914 REPLACE_STRERROR_L
915 REPLACE_STRERROR_R
916 REPLACE_STRERROR
917 REPLACE_STRTOK_R
918 REPLACE_STRCASESTR
919 REPLACE_STRSTR
920 REPLACE_STRNLEN
921 REPLACE_STRNDUP
922 REPLACE_STRNCAT
923 REPLACE_STRDUP
924 REPLACE_STRCHRNUL
925 REPLACE_STPNCPY
926 REPLACE_STPCPY
927 REPLACE_MEMSET_EXPLICIT
928 REPLACE_MEMPCPY
929 REPLACE_MEMMEM
930 REPLACE_MEMCHR
931 REPLACE_FFSLL
932 HAVE_STRVERSCMP
933 HAVE_DECL_STRSIGNAL
934 HAVE_SIGDESCR_NP
935 HAVE_SIGABBREV_NP
936 HAVE_STRERRORNAME_NP
937 HAVE_STRERROR_L
938 HAVE_DECL_STRERROR_R
939 HAVE_DECL_STRTOK_R
940 HAVE_STRCASESTR
941 HAVE_STRSEP
942 HAVE_STRPBRK
943 HAVE_DECL_STRNLEN
944 HAVE_DECL_STRNDUP
945 HAVE_DECL_STRDUP
946 HAVE_STRCHRNUL
947 HAVE_STPNCPY
948 HAVE_STPCPY
949 HAVE_RAWMEMCHR
950 HAVE_DECL_MEMRCHR
951 HAVE_MEMSET_EXPLICIT
952 HAVE_MEMPCPY
953 HAVE_DECL_MEMMEM
954 HAVE_FFSLL
955 HAVE_FFSL
956 HAVE_EXPLICIT_BZERO
957 HAVE_MBSLEN
958 GL_COND_OBJ_LSEEK_FALSE
959 GL_COND_OBJ_LSEEK_TRUE
960 GL_GNULIB_LOCALENAME_UNSAFE
961 GL_GNULIB_GETLOCALENAME_L_UNSAFE
962 GL_GNULIB_GETLOCALENAME_L
963 GL_GNULIB_FREELOCALE
964 GL_GNULIB_DUPLOCALE
965 GL_GNULIB_NEWLOCALE
966 GL_GNULIB_SETLOCALE_NULL
967 GL_GNULIB_SETLOCALE
968 GL_GNULIB_LOCALECONV
969 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H
970 NEXT_LOCALE_H
971 HAVE_WINDOWS_LOCALE_T
972 HAVE_LOCALE_T
973 HAVE_XLOCALE_H
974 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
975 NEXT_STDDEF_H
976 HAVE_MAX_ALIGN_T
977 REPLACE_NULL
978 STDDEF_NOT_IDEMPOTENT
979 NULLPTR_T_NEEDS_STDDEF
980 LOCALENAME_ENHANCE_LOCALE_FUNCS
981 REPLACE_STRUCT_LCONV
982 REPLACE_GETLOCALENAME_L
983 REPLACE_FREELOCALE
984 REPLACE_DUPLOCALE
985 REPLACE_NEWLOCALE
986 REPLACE_SETLOCALE
987 REPLACE_LOCALECONV
988 HAVE_GETLOCALENAME_L
989 HAVE_FREELOCALE
990 HAVE_DUPLOCALE
991 HAVE_NEWLOCALE
992 GL_GENERATE_LIMITS_H_FALSE
993 GL_GENERATE_LIMITS_H_TRUE
994 LIMITS_H
995 GL_GNULIB_STRTOUMAX
996 GL_GNULIB_STRTOIMAX
997 GL_GNULIB_IMAXDIV
998 GL_GNULIB_IMAXABS
999 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1000 NEXT_INTTYPES_H
1001 UINT64_MAX_EQ_ULONG_MAX
1002 UINT32_MAX_LT_UINTMAX_MAX
1003 PRIPTR_PREFIX
1004 INT64_MAX_EQ_LONG_MAX
1005 INT32_MAX_LT_INTMAX_MAX
1006 REPLACE_STRTOUMAX
1007 REPLACE_STRTOIMAX
1008 REPLACE_IMAXDIV
1009 REPLACE_IMAXABS
1010 HAVE_IMAXDIV
1011 HAVE_IMAXABS
1012 HAVE_IMAXDIV_T
1013 HAVE_DECL_STRTOUMAX
1014 HAVE_DECL_STRTOIMAX
1015 HAVE_DECL_IMAXDIV
1016 HAVE_DECL_IMAXABS
1017 HAVE_SYS_INTTYPES_H
1018 HAVE_SYS_BITYPES_H
1019 HAVE_C99_STDINT_H
1020 WINT_T_SUFFIX
1021 WCHAR_T_SUFFIX
1022 SIG_ATOMIC_T_SUFFIX
1023 SIZE_T_SUFFIX
1024 PTRDIFF_T_SUFFIX
1025 HAVE_SIGNED_WINT_T
1026 HAVE_SIGNED_WCHAR_T
1027 HAVE_SIGNED_SIG_ATOMIC_T
1028 BITSIZEOF_WINT_T
1029 BITSIZEOF_WCHAR_T
1030 BITSIZEOF_SIG_ATOMIC_T
1031 BITSIZEOF_SIZE_T
1032 BITSIZEOF_PTRDIFF_T
1033 APPLE_UNIVERSAL_BUILD
1034 HAVE_STDINT_H
1035 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1036 NEXT_STDINT_H
1037 HAVE_SYS_TYPES_H
1038 HAVE_INTTYPES_H
1039 HAVE_WCHAR_H
1040 GNULIBHEADERS_OVERRIDE_WINT_T
1041 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1042 NEXT_LIMITS_H
1043 GNULIB_LOCALEDIR_c_make
1044 GNULIB_LOCALEDIR_c
1045 GNULIB_LOCALEDIR
1046 LTLIBINTL
1047 LIBINTL
1048 GL_COND_OBJ_GETPROGNAME_FALSE
1049 GL_COND_OBJ_GETPROGNAME_TRUE
1050 GL_COND_OBJ_GETOPT_FALSE
1051 GL_COND_OBJ_GETOPT_TRUE
1052 GL_GENERATE_GETOPT_CDEFS_H_FALSE
1053 GL_GENERATE_GETOPT_CDEFS_H_TRUE
1054 GETOPT_CDEFS_H
1055 GL_GENERATE_GETOPT_H_FALSE
1056 GL_GENERATE_GETOPT_H_TRUE
1057 GETOPT_H
1058 HAVE_SYS_CDEFS_H
1059 HAVE_GETOPT_H
1060 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H
1061 NEXT_GETOPT_H
1062 GL_COND_OBJ_GETDTABLESIZE_FALSE
1063 GL_COND_OBJ_GETDTABLESIZE_TRUE
1064 GL_COND_OBJ_FTELLO_FALSE
1065 GL_COND_OBJ_FTELLO_TRUE
1066 GL_COND_OBJ_FTELL_FALSE
1067 GL_COND_OBJ_FTELL_TRUE
1068 HAVE_BLKCNT_T
1069 HAVE_BLKSIZE_T
1070 WINDOWS_STAT_INODES
1071 HAVE_OFF64_T
1072 WINDOWS_64_BIT_OFF_T
1073 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
1074 NEXT_SYS_TYPES_H
1075 GL_GNULIB_MDA_UMASK
1076 GL_GNULIB_MDA_MKDIR
1077 GL_GNULIB_MDA_CHMOD
1078 GL_GNULIB_OVERRIDES_STRUCT_STAT
1079 GL_GNULIB_UTIMENSAT
1080 GL_GNULIB_STAT
1081 GL_GNULIB_MKNODAT
1082 GL_GNULIB_MKNOD
1083 GL_GNULIB_MKFIFOAT
1084 GL_GNULIB_MKFIFO
1085 GL_GNULIB_MKDIRAT
1086 GL_GNULIB_MKDIR
1087 GL_GNULIB_LSTAT
1088 GL_GNULIB_LCHMOD
1089 GL_GNULIB_GETUMASK
1090 GL_GNULIB_FUTIMENS
1091 GL_GNULIB_FSTATAT
1092 GL_GNULIB_FSTAT
1093 GL_GNULIB_FCHMODAT
1094 GL_GNULIB_CHMOD
1095 WINDOWS_64_BIT_ST_SIZE
1096 WINDOWS_STAT_TIMESPEC
1097 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1098 NEXT_SYS_STAT_H
1099 GL_COND_OBJ_FSTAT_FALSE
1100 GL_COND_OBJ_FSTAT_TRUE
1101 REPLACE_UTIMENSAT
1102 REPLACE_STAT
1103 REPLACE_MKNODAT
1104 REPLACE_MKNOD
1105 REPLACE_MKFIFOAT
1106 REPLACE_MKFIFO
1107 REPLACE_MKDIR
1108 REPLACE_LSTAT
1109 REPLACE_FUTIMENS
1110 REPLACE_FSTATAT
1111 REPLACE_FSTAT
1112 REPLACE_FCHMODAT
1113 REPLACE_CHMOD
1114 HAVE_UTIMENSAT
1115 HAVE_MKNODAT
1116 HAVE_MKNOD
1117 HAVE_MKFIFOAT
1118 HAVE_MKFIFO
1119 HAVE_MKDIRAT
1120 HAVE_LSTAT
1121 HAVE_LCHMOD
1122 HAVE_GETUMASK
1123 HAVE_FUTIMENS
1124 HAVE_FSTATAT
1125 HAVE_FCHMODAT
1126 GL_GNULIB_MDA_PUTENV
1127 GL_GNULIB_MDA_MKTEMP
1128 GL_GNULIB_MDA_GCVT
1129 GL_GNULIB_MDA_FCVT
1130 GL_GNULIB_MDA_ECVT
1131 GL_GNULIB_WCTOMB
1132 GL_GNULIB_UNSETENV
1133 GL_GNULIB_UNLOCKPT
1134 GL_GNULIB_SYSTEM_POSIX
1135 GL_GNULIB_STRTOULL
1136 GL_GNULIB_STRTOUL
1137 GL_GNULIB_STRTOLL
1138 GL_GNULIB_STRTOLD
1139 GL_GNULIB_STRTOL
1140 GL_GNULIB_STRTOF
1141 GL_GNULIB_STRTOD
1142 GL_GNULIB_STACK_TRACE
1143 GL_GNULIB_SETENV
1144 GL_GNULIB_SECURE_GETENV
1145 GL_GNULIB_RPMATCH
1146 GL_GNULIB_REALPATH
1147 GL_GNULIB_REALLOC_POSIX
1148 GL_GNULIB_REALLOCARRAY
1149 GL_GNULIB_RANDOM_R
1150 GL_GNULIB_RANDOM
1151 GL_GNULIB_RAND
1152 GL_GNULIB_QSORT_R
1153 GL_GNULIB_PUTENV
1154 GL_GNULIB_PTSNAME_R
1155 GL_GNULIB_PTSNAME
1156 GL_GNULIB_POSIX_OPENPT
1157 GL_GNULIB_POSIX_MEMALIGN
1158 GL_GNULIB_MKSTEMPS
1159 GL_GNULIB_MKSTEMP
1160 GL_GNULIB_MKOSTEMPS
1161 GL_GNULIB_MKOSTEMP
1162 GL_GNULIB_MKDTEMP
1163 GL_GNULIB_MBTOWC
1164 GL_GNULIB_MBSTOWCS
1165 GL_GNULIB_MALLOC_POSIX
1166 GL_GNULIB_MALLOC_GNU
1167 GL_GNULIB_GRANTPT
1168 GL_GNULIB_GETSUBOPT
1169 GL_GNULIB_GETPROGNAME
1170 GL_GNULIB_GETLOADAVG
1171 GL_GNULIB_FREE_POSIX
1172 GL_GNULIB_CANONICALIZE_FILE_NAME
1173 GL_GNULIB_CALLOC_POSIX
1174 GL_GNULIB_CALLOC_GNU
1175 GL_GNULIB_ATOLL
1176 GL_GNULIB_ALIGNED_ALLOC
1177 GL_GNULIB_ABORT_DEBUG
1178 GL_GNULIB__EXIT
1179 GL_COND_OBJ_FREE_FALSE
1180 GL_COND_OBJ_FREE_TRUE
1181 CAN_PRINT_STACK_TRACE
1182 REPLACE_WCTOMB
1183 REPLACE_UNSETENV
1184 REPLACE_STRTOULL
1185 REPLACE_STRTOUL
1186 REPLACE_STRTOLL
1187 REPLACE_STRTOLD
1188 REPLACE_STRTOL
1189 REPLACE_STRTOF
1190 REPLACE_STRTOD
1191 REPLACE_SETSTATE
1192 REPLACE_SETENV
1193 REPLACE_REALPATH
1194 REPLACE_REALLOCARRAY
1195 REPLACE_REALLOC_FOR_REALLOC_POSIX
1196 REPLACE_RANDOM_R
1197 REPLACE_RANDOM
1198 REPLACE_RAND
1199 REPLACE_QSORT_R
1200 REPLACE_PUTENV
1201 REPLACE_PTSNAME_R
1202 REPLACE_PTSNAME
1203 REPLACE_POSIX_OPENPT
1204 REPLACE_POSIX_MEMALIGN
1205 REPLACE_MKSTEMP
1206 REPLACE_MKOSTEMPS
1207 REPLACE_MKOSTEMP
1208 REPLACE_MBTOWC
1209 REPLACE_MBSTOWCS
1210 REPLACE_MB_CUR_MAX
1211 REPLACE_MALLOC_FOR_MALLOC_POSIX
1212 REPLACE_MALLOC_FOR_MALLOC_GNU
1213 REPLACE_INITSTATE
1214 REPLACE_GETSUBOPT
1215 REPLACE_GETPROGNAME
1216 REPLACE_GETLOADAVG
1217 REPLACE_FREE
1218 REPLACE_CANONICALIZE_FILE_NAME
1219 REPLACE_CALLOC_FOR_CALLOC_POSIX
1220 REPLACE_CALLOC_FOR_CALLOC_GNU
1221 REPLACE_ALIGNED_ALLOC
1222 REPLACE_ABORT
1223 REPLACE__EXIT
1224 HAVE_DECL_UNSETENV
1225 HAVE_UNLOCKPT
1226 HAVE_SYS_LOADAVG_H
1227 HAVE_STRUCT_RANDOM_DATA
1228 HAVE_STRTOULL
1229 HAVE_STRTOUL
1230 HAVE_STRTOLL
1231 HAVE_STRTOLD
1232 HAVE_STRTOL
1233 HAVE_STRTOF
1234 HAVE_STRTOD
1235 HAVE_DECL_SETSTATE
1236 HAVE_SETSTATE
1237 HAVE_DECL_SETENV
1238 HAVE_SETENV
1239 HAVE_SECURE_GETENV
1240 HAVE_RPMATCH
1241 HAVE_REALPATH
1242 HAVE_REALLOCARRAY
1243 HAVE_RANDOM_R
1244 HAVE_RANDOM_H
1245 HAVE_RANDOM
1246 HAVE_QSORT_R
1247 HAVE_PTSNAME_R
1248 HAVE_PTSNAME
1249 HAVE_POSIX_OPENPT
1250 HAVE_POSIX_MEMALIGN
1251 HAVE_MKSTEMPS
1252 HAVE_MKSTEMP
1253 HAVE_MKOSTEMPS
1254 HAVE_MKOSTEMP
1255 HAVE_MKDTEMP
1256 HAVE_MBTOWC
1257 HAVE_DECL_INITSTATE
1258 HAVE_INITSTATE
1259 HAVE_GRANTPT
1260 HAVE_GETSUBOPT
1261 HAVE_GETPROGNAME
1262 HAVE_DECL_PROGRAM_INVOCATION_NAME
1263 HAVE_DECL_GETLOADAVG
1264 HAVE_DECL_GCVT
1265 HAVE_DECL_FCVT
1266 HAVE_DECL_ECVT
1267 HAVE_CANONICALIZE_FILE_NAME
1268 HAVE_ATOLL
1269 HAVE_ALIGNED_ALLOC
1270 HAVE__EXIT
1271 GL_GNULIB_MDA_TEMPNAM
1272 GL_GNULIB_MDA_PUTW
1273 GL_GNULIB_MDA_GETW
1274 GL_GNULIB_MDA_FILENO
1275 GL_GNULIB_MDA_FDOPEN
1276 GL_GNULIB_MDA_FCLOSEALL
1277 GL_GNULIB_ZPRINTF
1278 GL_GNULIB_VZPRINTF
1279 GL_GNULIB_VSZPRINTF
1280 GL_GNULIB_VSPRINTF_POSIX
1281 GL_GNULIB_VSNZPRINTF
1282 GL_GNULIB_VSNPRINTF
1283 GL_GNULIB_VPRINTF_POSIX
1284 GL_GNULIB_VPRINTF
1285 GL_GNULIB_VFZPRINTF
1286 GL_GNULIB_VFPRINTF_POSIX
1287 GL_GNULIB_VFPRINTF
1288 GL_GNULIB_VDZPRINTF
1289 GL_GNULIB_VDPRINTF
1290 GL_GNULIB_VSCANF
1291 GL_GNULIB_VFSCANF
1292 GL_GNULIB_VASZPRINTF
1293 GL_GNULIB_VASPRINTF
1294 GL_GNULIB_TMPFILE
1295 GL_GNULIB_SZPRINTF
1296 GL_GNULIB_STDIO_H_SIGPIPE
1297 GL_GNULIB_STDIO_H_NONBLOCKING
1298 GL_GNULIB_SPRINTF_POSIX
1299 GL_GNULIB_SNZPRINTF
1300 GL_GNULIB_SNPRINTF
1301 GL_GNULIB_SCANF
1302 GL_GNULIB_RENAMEAT
1303 GL_GNULIB_RENAME
1304 GL_GNULIB_REMOVE
1305 GL_GNULIB_PUTS
1306 GL_GNULIB_PUTCHAR
1307 GL_GNULIB_PUTC
1308 GL_GNULIB_PRINTF_POSIX
1309 GL_GNULIB_PRINTF
1310 GL_GNULIB_POPEN
1311 GL_GNULIB_PERROR
1312 GL_GNULIB_PCLOSE
1313 GL_GNULIB_OBSTACK_ZPRINTF
1314 GL_GNULIB_OBSTACK_PRINTF_POSIX
1315 GL_GNULIB_OBSTACK_PRINTF
1316 GL_GNULIB_GETLINE
1317 GL_GNULIB_GETDELIM
1318 GL_GNULIB_GETCHAR
1319 GL_GNULIB_GETC
1320 GL_GNULIB_FZPRINTF
1321 GL_GNULIB_FWRITE
1322 GL_GNULIB_FTELLO
1323 GL_GNULIB_FTELL
1324 GL_GNULIB_FSEEKO
1325 GL_GNULIB_FSEEK
1326 GL_GNULIB_FSCANF
1327 GL_GNULIB_FREOPEN
1328 GL_GNULIB_FREAD
1329 GL_GNULIB_FPUTS
1330 GL_GNULIB_FPUTC
1331 GL_GNULIB_FPURGE
1332 GL_GNULIB_FPRINTF_POSIX
1333 GL_GNULIB_FPRINTF
1334 GL_GNULIB_FOPEN_GNU
1335 GL_GNULIB_FOPEN
1336 GL_GNULIB_FGETS
1337 GL_GNULIB_FGETC
1338 GL_GNULIB_FFLUSH
1339 GL_GNULIB_FDOPEN
1340 GL_GNULIB_FCLOSE
1341 GL_GNULIB_DZPRINTF
1342 GL_GNULIB_DPRINTF
1343 REPLACE_VSPRINTF
1344 REPLACE_VSNPRINTF
1345 REPLACE_VPRINTF
1346 REPLACE_VFPRINTF
1347 REPLACE_VDPRINTF
1348 REPLACE_VASPRINTF
1349 REPLACE_TMPFILE
1350 REPLACE_STDIO_WRITE_FUNCS
1351 REPLACE_STDIO_READ_FUNCS
1352 REPLACE_SPRINTF
1353 REPLACE_SNPRINTF
1354 REPLACE_RENAMEAT
1355 REPLACE_RENAME
1356 REPLACE_REMOVE
1357 REPLACE_PRINTF
1358 REPLACE_POPEN
1359 REPLACE_PERROR
1360 REPLACE_OBSTACK_PRINTF
1361 REPLACE_GETLINE
1362 REPLACE_GETDELIM
1363 REPLACE_FTELLO
1364 REPLACE_FTELL
1365 REPLACE_FSEEKO
1366 REPLACE_FSEEK
1367 REPLACE_FREOPEN
1368 REPLACE_FPURGE
1369 REPLACE_FPRINTF
1370 REPLACE_FOPEN_FOR_FOPEN_GNU
1371 REPLACE_FOPEN
1372 REPLACE_FFLUSH
1373 REPLACE_FDOPEN
1374 REPLACE_FCLOSE
1375 REPLACE_DPRINTF
1376 HAVE_VDPRINTF
1377 HAVE_VASPRINTF
1378 HAVE_RENAMEAT
1379 HAVE_POPEN
1380 HAVE_PCLOSE
1381 HAVE_FTELLO
1382 HAVE_FSEEKO
1383 HAVE_DPRINTF
1384 HAVE_DECL_VSNPRINTF
1385 HAVE_DECL_SNPRINTF
1386 HAVE_DECL_PUTW
1387 HAVE_DECL_OBSTACK_PRINTF
1388 HAVE_DECL_GETW
1389 HAVE_DECL_GETLINE
1390 HAVE_DECL_GETDELIM
1391 HAVE_DECL_FTELLO
1392 HAVE_DECL_FSEEKO
1393 HAVE_DECL_FPURGE
1394 HAVE_DECL_FCLOSEALL
1395 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1396 NEXT_FCNTL_H
1397 GL_GNULIB_MDA_OPEN
1398 GL_GNULIB_MDA_CREAT
1399 GL_GNULIB_OPENAT
1400 GL_GNULIB_OPEN
1401 GL_GNULIB_NONBLOCKING
1402 GL_GNULIB_FCNTL
1403 GL_GNULIB_CREAT
1404 GL_COND_OBJ_FCNTL_FALSE
1405 GL_COND_OBJ_FCNTL_TRUE
1406 REPLACE_OPENAT
1407 REPLACE_OPEN
1408 REPLACE_FCNTL
1409 REPLACE_CREAT
1410 HAVE_OPENAT
1411 HAVE_FCNTL
1412 GL_COND_OBJ_ERROR_FALSE
1413 GL_COND_OBJ_ERROR_TRUE
1414 REPLACE_ERROR_AT_LINE
1415 REPLACE_ERROR
1416 HAVE_ERROR_AT_LINE
1417 HAVE_ERROR
1418 HAVE_ERROR_H
1419 NEXT_AS_FIRST_DIRECTIVE_ERROR_H
1420 NEXT_ERROR_H
1421 GL_GENERATE_ERRNO_H_FALSE
1422 GL_GENERATE_ERRNO_H_TRUE
1423 ERRNO_H
1424 EOVERFLOW_VALUE
1425 EOVERFLOW_HIDDEN
1426 ENOLINK_VALUE
1427 ENOLINK_HIDDEN
1428 EMULTIHOP_VALUE
1429 EMULTIHOP_HIDDEN
1430 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1431 NEXT_ERRNO_H
1432 GL_COND_OBJ_DUP2_FALSE
1433 GL_COND_OBJ_DUP2_TRUE
1434 GL_GNULIB_MDA_WRITE
1435 GL_GNULIB_MDA_UNLINK
1436 GL_GNULIB_MDA_SWAB
1437 GL_GNULIB_MDA_RMDIR
1438 GL_GNULIB_MDA_READ
1439 GL_GNULIB_MDA_LSEEK
1440 GL_GNULIB_MDA_ISATTY
1441 GL_GNULIB_MDA_GETPID
1442 GL_GNULIB_MDA_GETCWD
1443 GL_GNULIB_MDA_EXECVPE
1444 GL_GNULIB_MDA_EXECVP
1445 GL_GNULIB_MDA_EXECVE
1446 GL_GNULIB_MDA_EXECV
1447 GL_GNULIB_MDA_EXECLP
1448 GL_GNULIB_MDA_EXECLE
1449 GL_GNULIB_MDA_EXECL
1450 GL_GNULIB_MDA_DUP2
1451 GL_GNULIB_MDA_DUP
1452 GL_GNULIB_MDA_CLOSE
1453 GL_GNULIB_MDA_CHDIR
1454 GL_GNULIB_MDA_ACCESS
1455 GL_GNULIB_WRITE
1456 GL_GNULIB_USLEEP
1457 GL_GNULIB_UNLINKAT
1458 GL_GNULIB_UNLINK
1459 GL_GNULIB_UNISTD_H_SIGPIPE
1460 GL_GNULIB_UNISTD_H_NONBLOCKING
1461 GL_GNULIB_UNISTD_H_GETOPT
1462 GL_GNULIB_TTYNAME_R
1463 GL_GNULIB_TRUNCATE
1464 GL_GNULIB_SYMLINKAT
1465 GL_GNULIB_SYMLINK
1466 GL_GNULIB_SLEEP
1467 GL_GNULIB_SETHOSTNAME
1468 GL_GNULIB_RMDIR
1469 GL_GNULIB_READLINKAT
1470 GL_GNULIB_READLINK
1471 GL_GNULIB_READ
1472 GL_GNULIB_PWRITE
1473 GL_GNULIB_PREAD
1474 GL_GNULIB_PIPE2
1475 GL_GNULIB_PIPE
1476 GL_GNULIB_LSEEK
1477 GL_GNULIB_LINKAT
1478 GL_GNULIB_LINK
1479 GL_GNULIB_LCHOWN
1480 GL_GNULIB_ISATTY
1481 GL_GNULIB_GROUP_MEMBER
1482 GL_GNULIB_GETUSERSHELL
1483 GL_GNULIB_GETPASS_GNU
1484 GL_GNULIB_GETPASS
1485 GL_GNULIB_GETPAGESIZE
1486 GL_GNULIB_GETOPT_POSIX
1487 GL_GNULIB_GETLOGIN_R
1488 GL_GNULIB_GETLOGIN
1489 GL_GNULIB_GETHOSTNAME
1490 GL_GNULIB_GETGROUPS
1491 GL_GNULIB_GETENTROPY
1492 GL_GNULIB_GETDTABLESIZE
1493 GL_GNULIB_GETDOMAINNAME
1494 GL_GNULIB_GETCWD
1495 GL_GNULIB_FTRUNCATE
1496 GL_GNULIB_FSYNC
1497 GL_GNULIB_FDATASYNC
1498 GL_GNULIB_FCHOWNAT
1499 GL_GNULIB_FCHDIR
1500 GL_GNULIB_FACCESSAT
1501 GL_GNULIB_EXECVPE
1502 GL_GNULIB_EXECVP
1503 GL_GNULIB_EXECVE
1504 GL_GNULIB_EXECV
1505 GL_GNULIB_EXECLP
1506 GL_GNULIB_EXECLE
1507 GL_GNULIB_EXECL
1508 GL_GNULIB_EUIDACCESS
1509 GL_GNULIB_ENVIRON
1510 GL_GNULIB_DUP3
1511 GL_GNULIB_DUP2
1512 GL_GNULIB_DUP
1513 GL_GNULIB_COPY_FILE_RANGE
1514 GL_GNULIB_CLOSE
1515 GL_GNULIB_CHOWN
1516 GL_GNULIB_CHDIR
1517 GL_GNULIB_ACCESS
1518 GL_COND_OBJ_CLOSE_FALSE
1519 GL_COND_OBJ_CLOSE_TRUE
1520 HAVE_WINSOCK2_H
1521 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1522 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1523 UNISTD_H_HAVE_WINSOCK2_H
1524 UNISTD_H_HAVE_SYS_RANDOM_H
1525 REPLACE_WRITE
1526 REPLACE_USLEEP
1527 REPLACE_UNLINKAT
1528 REPLACE_UNLINK
1529 REPLACE_TTYNAME_R
1530 REPLACE_TRUNCATE
1531 REPLACE_SYMLINKAT
1532 REPLACE_SYMLINK
1533 REPLACE_SLEEP
1534 REPLACE_SETHOSTNAME
1535 REPLACE_RMDIR
1536 REPLACE_READLINKAT
1537 REPLACE_READLINK
1538 REPLACE_READ
1539 REPLACE_PWRITE
1540 REPLACE_PREAD
1541 REPLACE_PIPE2
1542 REPLACE_LSEEK
1543 REPLACE_LINKAT
1544 REPLACE_LINK
1545 REPLACE_LCHOWN
1546 REPLACE_ISATTY
1547 REPLACE_GETUSERSHELL
1548 REPLACE_GETPASS_FOR_GETPASS_GNU
1549 REPLACE_GETPASS
1550 REPLACE_GETPAGESIZE
1551 REPLACE_GETGROUPS
1552 REPLACE_GETLOGIN_R
1553 REPLACE_GETLOGIN
1554 REPLACE_GETENTROPY
1555 REPLACE_GETDTABLESIZE
1556 REPLACE_GETDOMAINNAME
1557 REPLACE_GETCWD
1558 REPLACE_FTRUNCATE
1559 REPLACE_FDATASYNC
1560 REPLACE_FCHOWNAT
1561 REPLACE_FCHDIR
1562 REPLACE_FACCESSAT
1563 REPLACE_EXECVPE
1564 REPLACE_EXECVP
1565 REPLACE_EXECVE
1566 REPLACE_EXECV
1567 REPLACE_EXECLP
1568 REPLACE_EXECLE
1569 REPLACE_EXECL
1570 REPLACE_DUP3
1571 REPLACE_DUP2
1572 REPLACE_DUP
1573 REPLACE_COPY_FILE_RANGE
1574 REPLACE_CLOSE
1575 REPLACE_CHOWN
1576 REPLACE_ACCESS
1577 HAVE_SYS_PARAM_H
1578 HAVE_OS_H
1579 HAVE_DECL_TTYNAME_R
1580 HAVE_DECL_TRUNCATE
1581 HAVE_DECL_SETHOSTNAME
1582 HAVE_DECL_GETUSERSHELL
1583 HAVE_DECL_GETPAGESIZE
1584 HAVE_DECL_GETLOGIN_R
1585 HAVE_DECL_GETLOGIN
1586 HAVE_DECL_GETDOMAINNAME
1587 HAVE_DECL_FDATASYNC
1588 HAVE_DECL_FCHDIR
1589 HAVE_DECL_EXECVPE
1590 HAVE_DECL_ENVIRON
1591 HAVE_USLEEP
1592 HAVE_UNLINKAT
1593 HAVE_SYMLINKAT
1594 HAVE_SYMLINK
1595 HAVE_SLEEP
1596 HAVE_SETHOSTNAME
1597 HAVE_READLINKAT
1598 HAVE_READLINK
1599 HAVE_PWRITE
1600 HAVE_PREAD
1601 HAVE_PIPE2
1602 HAVE_PIPE
1603 HAVE_LINKAT
1604 HAVE_LINK
1605 HAVE_LCHOWN
1606 HAVE_GROUP_MEMBER
1607 HAVE_GETPASS
1608 HAVE_GETPAGESIZE
1609 HAVE_GETLOGIN
1610 HAVE_GETHOSTNAME
1611 HAVE_GETGROUPS
1612 HAVE_GETENTROPY
1613 HAVE_GETDTABLESIZE
1614 HAVE_FTRUNCATE
1615 HAVE_FSYNC
1616 HAVE_FDATASYNC
1617 HAVE_FCHOWNAT
1618 HAVE_FCHDIR
1619 HAVE_FACCESSAT
1620 HAVE_EXECVPE
1621 HAVE_EUIDACCESS
1622 HAVE_DUP3
1623 HAVE_COPY_FILE_RANGE
1624 HAVE_CHOWN
1625 GL_GENERATE_ASSERT_H_FALSE
1626 GL_GENERATE_ASSERT_H_TRUE
1627 ASSERT_H
1628 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H
1629 NEXT_ASSERT_H
1630 PRAGMA_COLUMNS
1631 PRAGMA_SYSTEM_HEADER
1632 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1633 INCLUDE_NEXT
1634 GL_GENERATE_ALLOCA_H_FALSE
1635 GL_GENERATE_ALLOCA_H_TRUE
1636 ALLOCA_H
1637 HAVE_ALLOCA_H
1638 ALLOCA
1639 GL_COND_LIBTOOL_FALSE
1640 GL_COND_LIBTOOL_TRUE
1641 RANLIB
1642 ARFLAGS
1643 AR
1644 CPP
1645 host_os
1646 host_vendor
1647 host_cpu
1648 host
1649 build_os
1650 build_vendor
1651 build_cpu
1652 build
1653 am__fastdepCXX_FALSE
1654 am__fastdepCXX_TRUE
1655 CXXDEPMODE
1656 ac_ct_CXX
1657 CXXFLAGS
1658 CXX
1659 am__fastdepCC_FALSE
1660 am__fastdepCC_TRUE
1661 CCDEPMODE
1662 am__nodep
1663 AMDEPBACKSLASH
1664 AMDEP_FALSE
1665 AMDEP_TRUE
1666 am__include
1667 DEPDIR
1668 OBJEXT
1669 EXEEXT
1670 ac_ct_CC
1671 CPPFLAGS
1672 LDFLAGS
1673 CFLAGS
1674 CC
1675 am__xargs_n
1676 am__rm_f_notfound
1677 AM_BACKSLASH
1678 AM_DEFAULT_VERBOSITY
1679 AM_DEFAULT_V
1680 AM_V
1681 CSCOPE
1682 ETAGS
1683 CTAGS
1684 am__untar
1685 am__tar
1686 AMTAR
1687 am__leading_dot
1688 SET_MAKE
1689 AWK
1690 mkdir_p
1691 MKDIR_P
1692 INSTALL_STRIP_PROGRAM
1693 STRIP
1694 install_sh
1695 MAKEINFO
1696 AUTOHEADER
1697 AUTOMAKE
1698 AUTOCONF
1699 ACLOCAL
1700 VERSION
1701 PACKAGE
1702 CYGPATH_W
1703 am__isrc
1704 INSTALL_DATA
1705 INSTALL_SCRIPT
1706 INSTALL_PROGRAM
1707 target_alias
1708 host_alias
1709 build_alias
1710 LIBS
1711 ECHO_T
1712 ECHO_N
1713 ECHO_C
1714 DEFS
1715 mandir
1716 localedir
1717 libdir
1718 psdir
1719 pdfdir
1720 dvidir
1721 htmldir
1722 infodir
1723 docdir
1724 oldincludedir
1725 includedir
1726 runstatedir
1727 localstatedir
1728 sharedstatedir
1729 sysconfdir
1730 datadir
1731 datarootdir
1732 libexecdir
1733 sbindir
1734 bindir
1735 program_transform_name
1736 prefix
1737 exec_prefix
1738 PACKAGE_URL
1739 PACKAGE_BUGREPORT
1740 PACKAGE_STRING
1741 PACKAGE_VERSION
1742 PACKAGE_TARNAME
1743 PACKAGE_NAME
1744 PATH_SEPARATOR
1745 SHELL
1746 am__quote'
1747 ac_subst_files=''
1748 ac_user_opts='
1749 enable_option_checking
1750 enable_silent_rules
1751 enable_dependency_tracking
1752 enable_largefile
1753 enable_cross_guesses
1754 with_gnulib_prefix
1755 enable_year2038
1756 '
1757 ac_precious_vars='build_alias
1758 host_alias
1759 target_alias
1760 CC
1761 CFLAGS
1762 LDFLAGS
1763 LIBS
1764 CPPFLAGS
1765 CXX
1766 CXXFLAGS
1767 CCC
1768 CPP'
1769
1770
1771 # Initialize some variables set by options.
1772 ac_init_help=
1773 ac_init_version=false
1774 ac_unrecognized_opts=
1775 ac_unrecognized_sep=
1776 # The variables have the same names as the options, with
1777 # dashes changed to underlines.
1778 cache_file=/dev/null
1779 exec_prefix=NONE
1780 no_create=
1781 no_recursion=
1782 prefix=NONE
1783 program_prefix=NONE
1784 program_suffix=NONE
1785 program_transform_name=s,x,x,
1786 silent=
1787 site=
1788 srcdir=
1789 verbose=
1790 x_includes=NONE
1791 x_libraries=NONE
1792
1793 # Installation directory options.
1794 # These are left unexpanded so users can "make install exec_prefix=/foo"
1795 # and all the variables that are supposed to be based on exec_prefix
1796 # by default will actually change.
1797 # Use braces instead of parens because sh, perl, etc. also accept them.
1798 # (The list follows the same order as the GNU Coding Standards.)
1799 bindir='${exec_prefix}/bin'
1800 sbindir='${exec_prefix}/sbin'
1801 libexecdir='${exec_prefix}/libexec'
1802 datarootdir='${prefix}/share'
1803 datadir='${datarootdir}'
1804 sysconfdir='${prefix}/etc'
1805 sharedstatedir='${prefix}/com'
1806 localstatedir='${prefix}/var'
1807 runstatedir='${localstatedir}/run'
1808 includedir='${prefix}/include'
1809 oldincludedir='/usr/include'
1810 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1811 infodir='${datarootdir}/info'
1812 htmldir='${docdir}'
1813 dvidir='${docdir}'
1814 pdfdir='${docdir}'
1815 psdir='${docdir}'
1816 libdir='${exec_prefix}/lib'
1817 localedir='${datarootdir}/locale'
1818 mandir='${datarootdir}/man'
1819
1820 ac_prev=
1821 ac_dashdash=
1822 for ac_option
1823 do
1824 # If the previous option needs an argument, assign it.
1825 if test -n "$ac_prev"; then
1826 eval $ac_prev=\$ac_option
1827 ac_prev=
1828 continue
1829 fi
1830
1831 case $ac_option in
1832 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1833 *=) ac_optarg= ;;
1834 *) ac_optarg=yes ;;
1835 esac
1836
1837 case $ac_dashdash$ac_option in
1838 --)
1839 ac_dashdash=yes ;;
1840
1841 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1842 ac_prev=bindir ;;
1843 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1844 bindir=$ac_optarg ;;
1845
1846 -build | --build | --buil | --bui | --bu)
1847 ac_prev=build_alias ;;
1848 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1849 build_alias=$ac_optarg ;;
1850
1851 -cache-file | --cache-file | --cache-fil | --cache-fi \
1852 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1853 ac_prev=cache_file ;;
1854 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1855 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1856 cache_file=$ac_optarg ;;
1857
1858 --config-cache | -C)
1859 cache_file=config.cache ;;
1860
1861 -datadir | --datadir | --datadi | --datad)
1862 ac_prev=datadir ;;
1863 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1864 datadir=$ac_optarg ;;
1865
1866 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1867 | --dataroo | --dataro | --datar)
1868 ac_prev=datarootdir ;;
1869 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1870 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1871 datarootdir=$ac_optarg ;;
1872
1873 -disable-* | --disable-*)
1874 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1875 # Reject names that are not valid shell variable names.
1876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1877 as_fn_error $? "invalid feature name: '$ac_useropt'"
1878 ac_useropt_orig=$ac_useropt
1879 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1880 case $ac_user_opts in
1881 *"
1882 "enable_$ac_useropt"
1883 "*) ;;
1884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1885 ac_unrecognized_sep=', ';;
1886 esac
1887 eval enable_$ac_useropt=no ;;
1888
1889 -docdir | --docdir | --docdi | --doc | --do)
1890 ac_prev=docdir ;;
1891 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1892 docdir=$ac_optarg ;;
1893
1894 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1895 ac_prev=dvidir ;;
1896 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1897 dvidir=$ac_optarg ;;
1898
1899 -enable-* | --enable-*)
1900 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1901 # Reject names that are not valid shell variable names.
1902 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1903 as_fn_error $? "invalid feature name: '$ac_useropt'"
1904 ac_useropt_orig=$ac_useropt
1905 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1906 case $ac_user_opts in
1907 *"
1908 "enable_$ac_useropt"
1909 "*) ;;
1910 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1911 ac_unrecognized_sep=', ';;
1912 esac
1913 eval enable_$ac_useropt=\$ac_optarg ;;
1914
1915 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1916 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1917 | --exec | --exe | --ex)
1918 ac_prev=exec_prefix ;;
1919 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1920 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1921 | --exec=* | --exe=* | --ex=*)
1922 exec_prefix=$ac_optarg ;;
1923
1924 -gas | --gas | --ga | --g)
1925 # Obsolete; use --with-gas.
1926 with_gas=yes ;;
1927
1928 -help | --help | --hel | --he | -h)
1929 ac_init_help=long ;;
1930 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1931 ac_init_help=recursive ;;
1932 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1933 ac_init_help=short ;;
1934
1935 -host | --host | --hos | --ho)
1936 ac_prev=host_alias ;;
1937 -host=* | --host=* | --hos=* | --ho=*)
1938 host_alias=$ac_optarg ;;
1939
1940 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1941 ac_prev=htmldir ;;
1942 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1943 | --ht=*)
1944 htmldir=$ac_optarg ;;
1945
1946 -includedir | --includedir | --includedi | --included | --include \
1947 | --includ | --inclu | --incl | --inc)
1948 ac_prev=includedir ;;
1949 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1950 | --includ=* | --inclu=* | --incl=* | --inc=*)
1951 includedir=$ac_optarg ;;
1952
1953 -infodir | --infodir | --infodi | --infod | --info | --inf)
1954 ac_prev=infodir ;;
1955 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1956 infodir=$ac_optarg ;;
1957
1958 -libdir | --libdir | --libdi | --libd)
1959 ac_prev=libdir ;;
1960 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1961 libdir=$ac_optarg ;;
1962
1963 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1964 | --libexe | --libex | --libe)
1965 ac_prev=libexecdir ;;
1966 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1967 | --libexe=* | --libex=* | --libe=*)
1968 libexecdir=$ac_optarg ;;
1969
1970 -localedir | --localedir | --localedi | --localed | --locale)
1971 ac_prev=localedir ;;
1972 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1973 localedir=$ac_optarg ;;
1974
1975 -localstatedir | --localstatedir | --localstatedi | --localstated \
1976 | --localstate | --localstat | --localsta | --localst | --locals)
1977 ac_prev=localstatedir ;;
1978 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1979 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1980 localstatedir=$ac_optarg ;;
1981
1982 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1983 ac_prev=mandir ;;
1984 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1985 mandir=$ac_optarg ;;
1986
1987 -nfp | --nfp | --nf)
1988 # Obsolete; use --without-fp.
1989 with_fp=no ;;
1990
1991 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1992 | --no-cr | --no-c | -n)
1993 no_create=yes ;;
1994
1995 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1996 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1997 no_recursion=yes ;;
1998
1999 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
2000 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
2001 | --oldin | --oldi | --old | --ol | --o)
2002 ac_prev=oldincludedir ;;
2003 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
2004 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
2005 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
2006 oldincludedir=$ac_optarg ;;
2007
2008 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
2009 ac_prev=prefix ;;
2010 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
2011 prefix=$ac_optarg ;;
2012
2013 -program-prefix | --program-prefix | --program-prefi | --program-pref \
2014 | --program-pre | --program-pr | --program-p)
2015 ac_prev=program_prefix ;;
2016 -program-prefix=* | --program-prefix=* | --program-prefi=* \
2017 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
2018 program_prefix=$ac_optarg ;;
2019
2020 -program-suffix | --program-suffix | --program-suffi | --program-suff \
2021 | --program-suf | --program-su | --program-s)
2022 ac_prev=program_suffix ;;
2023 -program-suffix=* | --program-suffix=* | --program-suffi=* \
2024 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
2025 program_suffix=$ac_optarg ;;
2026
2027 -program-transform-name | --program-transform-name \
2028 | --program-transform-nam | --program-transform-na \
2029 | --program-transform-n | --program-transform- \
2030 | --program-transform | --program-transfor \
2031 | --program-transfo | --program-transf \
2032 | --program-trans | --program-tran \
2033 | --progr-tra | --program-tr | --program-t)
2034 ac_prev=program_transform_name ;;
2035 -program-transform-name=* | --program-transform-name=* \
2036 | --program-transform-nam=* | --program-transform-na=* \
2037 | --program-transform-n=* | --program-transform-=* \
2038 | --program-transform=* | --program-transfor=* \
2039 | --program-transfo=* | --program-transf=* \
2040 | --program-trans=* | --program-tran=* \
2041 | --progr-tra=* | --program-tr=* | --program-t=*)
2042 program_transform_name=$ac_optarg ;;
2043
2044 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2045 ac_prev=pdfdir ;;
2046 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2047 pdfdir=$ac_optarg ;;
2048
2049 -psdir | --psdir | --psdi | --psd | --ps)
2050 ac_prev=psdir ;;
2051 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2052 psdir=$ac_optarg ;;
2053
2054 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2055 | -silent | --silent | --silen | --sile | --sil)
2056 silent=yes ;;
2057
2058 -runstatedir | --runstatedir | --runstatedi | --runstated \
2059 | --runstate | --runstat | --runsta | --runst | --runs \
2060 | --run | --ru | --r)
2061 ac_prev=runstatedir ;;
2062 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2063 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2064 | --run=* | --ru=* | --r=*)
2065 runstatedir=$ac_optarg ;;
2066
2067 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2068 ac_prev=sbindir ;;
2069 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2070 | --sbi=* | --sb=*)
2071 sbindir=$ac_optarg ;;
2072
2073 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2074 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2075 | --sharedst | --shareds | --shared | --share | --shar \
2076 | --sha | --sh)
2077 ac_prev=sharedstatedir ;;
2078 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2079 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2080 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2081 | --sha=* | --sh=*)
2082 sharedstatedir=$ac_optarg ;;
2083
2084 -site | --site | --sit)
2085 ac_prev=site ;;
2086 -site=* | --site=* | --sit=*)
2087 site=$ac_optarg ;;
2088
2089 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2090 ac_prev=srcdir ;;
2091 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2092 srcdir=$ac_optarg ;;
2093
2094 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2095 | --syscon | --sysco | --sysc | --sys | --sy)
2096 ac_prev=sysconfdir ;;
2097 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2098 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2099 sysconfdir=$ac_optarg ;;
2100
2101 -target | --target | --targe | --targ | --tar | --ta | --t)
2102 ac_prev=target_alias ;;
2103 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2104 target_alias=$ac_optarg ;;
2105
2106 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2107 verbose=yes ;;
2108
2109 -version | --version | --versio | --versi | --vers | -V)
2110 ac_init_version=: ;;
2111
2112 -with-* | --with-*)
2113 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2114 # Reject names that are not valid shell variable names.
2115 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2116 as_fn_error $? "invalid package name: '$ac_useropt'"
2117 ac_useropt_orig=$ac_useropt
2118 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2119 case $ac_user_opts in
2120 *"
2121 "with_$ac_useropt"
2122 "*) ;;
2123 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2124 ac_unrecognized_sep=', ';;
2125 esac
2126 eval with_$ac_useropt=\$ac_optarg ;;
2127
2128 -without-* | --without-*)
2129 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2130 # Reject names that are not valid shell variable names.
2131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2132 as_fn_error $? "invalid package name: '$ac_useropt'"
2133 ac_useropt_orig=$ac_useropt
2134 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2135 case $ac_user_opts in
2136 *"
2137 "with_$ac_useropt"
2138 "*) ;;
2139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2140 ac_unrecognized_sep=', ';;
2141 esac
2142 eval with_$ac_useropt=no ;;
2143
2144 --x)
2145 # Obsolete; use --with-x.
2146 with_x=yes ;;
2147
2148 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2149 | --x-incl | --x-inc | --x-in | --x-i)
2150 ac_prev=x_includes ;;
2151 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2152 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2153 x_includes=$ac_optarg ;;
2154
2155 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2156 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2157 ac_prev=x_libraries ;;
2158 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2159 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2160 x_libraries=$ac_optarg ;;
2161
2162 -*) as_fn_error $? "unrecognized option: '$ac_option'
2163 Try '$0 --help' for more information"
2164 ;;
2165
2166 *=*)
2167 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2168 # Reject names that are not valid shell variable names.
2169 case $ac_envvar in #(
2170 '' | [0-9]* | *[!_$as_cr_alnum]* )
2171 as_fn_error $? "invalid variable name: '$ac_envvar'" ;;
2172 esac
2173 eval $ac_envvar=\$ac_optarg
2174 export $ac_envvar ;;
2175
2176 *)
2177 # FIXME: should be removed in autoconf 3.0.
2178 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
2179 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2180 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
2181 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2182 ;;
2183
2184 esac
2185 done
2186
2187 if test -n "$ac_prev"; then
2188 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2189 as_fn_error $? "missing argument to $ac_option"
2190 fi
2191
2192 if test -n "$ac_unrecognized_opts"; then
2193 case $enable_option_checking in
2194 no) ;;
2195 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2196 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2197 esac
2198 fi
2199
2200 # Check all directory arguments for consistency.
2201 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2202 datadir sysconfdir sharedstatedir localstatedir includedir \
2203 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2204 libdir localedir mandir runstatedir
2205 do
2206 eval ac_val=\$$ac_var
2207 # Remove trailing slashes.
2208 case $ac_val in
2209 */ )
2210 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2211 eval $ac_var=\$ac_val;;
2212 esac
2213 # Be sure to have absolute directory names.
2214 case $ac_val in
2215 [\\/$]* | ?:[\\/]* ) continue;;
2216 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2217 esac
2218 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2219 done
2220
2221 # There might be people who depend on the old broken behavior: '$host'
2222 # used to hold the argument of --host etc.
2223 # FIXME: To remove some day.
2224 build=$build_alias
2225 host=$host_alias
2226 target=$target_alias
2227
2228 # FIXME: To remove some day.
2229 if test "x$host_alias" != x; then
2230 if test "x$build_alias" = x; then
2231 cross_compiling=maybe
2232 elif test "x$build_alias" != "x$host_alias"; then
2233 cross_compiling=yes
2234 fi
2235 fi
2236
2237 ac_tool_prefix=
2238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2239
2240 test "$silent" = yes && exec 6>/dev/null
2241
2242
2243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2244 ac_ls_di=`ls -di .` &&
2245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2246 as_fn_error $? "working directory cannot be determined"
2247 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2248 as_fn_error $? "pwd does not report name of working directory"
2249
2250
2251 # Find the source files, if location was not specified.
2252 if test -z "$srcdir"; then
2253 ac_srcdir_defaulted=yes
2254 # Try the directory containing this script, then the parent directory.
2255 ac_confdir=`$as_dirname -- "$as_myself" ||
2256 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2257 X"$as_myself" : 'X\(//\)[^/]' \| \
2258 X"$as_myself" : 'X\(//\)$' \| \
2259 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2260 printf "%s\n" X"$as_myself" |
2261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2262 s//\1/
2263 q
2264 }
2265 /^X\(\/\/\)[^/].*/{
2266 s//\1/
2267 q
2268 }
2269 /^X\(\/\/\)$/{
2270 s//\1/
2271 q
2272 }
2273 /^X\(\/\).*/{
2274 s//\1/
2275 q
2276 }
2277 s/.*/./; q'`
2278 srcdir=$ac_confdir
2279 if test ! -r "$srcdir/$ac_unique_file"; then
2280 srcdir=..
2281 fi
2282 else
2283 ac_srcdir_defaulted=no
2284 fi
2285 if test ! -r "$srcdir/$ac_unique_file"; then
2286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2287 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2288 fi
2289 ac_msg="sources are in $srcdir, but 'cd $srcdir' does not work"
2290 ac_abs_confdir=`(
2291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2292 pwd)`
2293 # When building in place, set srcdir=.
2294 if test "$ac_abs_confdir" = "$ac_pwd"; then
2295 srcdir=.
2296 fi
2297 # Remove unnecessary trailing slashes from srcdir.
2298 # Double slashes in file names in object file debugging info
2299 # mess up M-x gdb in Emacs.
2300 case $srcdir in
2301 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2302 esac
2303 for ac_var in $ac_precious_vars; do
2304 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2305 eval ac_env_${ac_var}_value=\$${ac_var}
2306 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2307 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2308 done
2309
2310 #
2311 # Report the --help message.
2312 #
2313 if test "$ac_init_help" = "long"; then
2314 # Omit some internal or obsolete options to make the list less imposing.
2315 # This message is too long to be a string in the A/UX 3.1 sh.
2316 cat <<_ACEOF
2317 'configure' configures gperf package to adapt to many kinds of systems.
2318
2319 Usage: $0 [OPTION]... [VAR=VALUE]...
2320
2321 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2322 VAR=VALUE. See below for descriptions of some of the useful variables.
2323
2324 Defaults for the options are specified in brackets.
2325
2326 Configuration:
2327 -h, --help display this help and exit
2328 --help=short display options specific to this package
2329 --help=recursive display the short help of all the included packages
2330 -V, --version display version information and exit
2331 -q, --quiet, --silent do not print 'checking ...' messages
2332 --cache-file=FILE cache test results in FILE [disabled]
2333 -C, --config-cache alias for '--cache-file=config.cache'
2334 -n, --no-create do not create output files
2335 --srcdir=DIR find the sources in DIR [configure dir or '..']
2336
2337 Installation directories:
2338 --prefix=PREFIX install architecture-independent files in PREFIX
2339 [$ac_default_prefix]
2340 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2341 [PREFIX]
2342
2343 By default, 'make install' will install all the files in
2344 '$ac_default_prefix/bin', '$ac_default_prefix/lib' etc. You can specify
2345 an installation prefix other than '$ac_default_prefix' using '--prefix',
2346 for instance '--prefix=\$HOME'.
2347
2348 For better control, use the options below.
2349
2350 Fine tuning of the installation directories:
2351 --bindir=DIR user executables [EPREFIX/bin]
2352 --sbindir=DIR system admin executables [EPREFIX/sbin]
2353 --libexecdir=DIR program executables [EPREFIX/libexec]
2354 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2355 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2356 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2357 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2358 --libdir=DIR object code libraries [EPREFIX/lib]
2359 --includedir=DIR C header files [PREFIX/include]
2360 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2361 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2362 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2363 --infodir=DIR info documentation [DATAROOTDIR/info]
2364 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2365 --mandir=DIR man documentation [DATAROOTDIR/man]
2366 --docdir=DIR documentation root [DATAROOTDIR/doc/gperf]
2367 --htmldir=DIR html documentation [DOCDIR]
2368 --dvidir=DIR dvi documentation [DOCDIR]
2369 --pdfdir=DIR pdf documentation [DOCDIR]
2370 --psdir=DIR ps documentation [DOCDIR]
2371 _ACEOF
2372
2373 cat <<\_ACEOF
2374
2375 Program names:
2376 --program-prefix=PREFIX prepend PREFIX to installed program names
2377 --program-suffix=SUFFIX append SUFFIX to installed program names
2378 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2379
2380 System types:
2381 --build=BUILD configure for building on BUILD [guessed]
2382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2383 _ACEOF
2384 fi
2385
2386 if test -n "$ac_init_help"; then
2387 case $ac_init_help in
2388 short | recursive ) echo "Configuration of gperf package:";;
2389 esac
2390 cat <<\_ACEOF
2391
2392 Optional Features:
2393 --disable-option-checking ignore unrecognized --enable/--with options
2394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2396 --enable-silent-rules less verbose build output (undo: "make V=1")
2397 --disable-silent-rules verbose build output (undo: "make V=0")
2398 --enable-dependency-tracking
2399 do not reject slow dependency extractors
2400 --disable-dependency-tracking
2401 speeds up one-time build
2402 --disable-largefile omit support for large files
2403 --enable-cross-guesses={conservative|risky}
2404 specify policy for cross-compilation guesses
2405 --enable-year2038 support timestamps after 2038
2406
2407 Optional Packages:
2408 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2409 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2410 --with-gnulib-prefix=DIR search for gnulib's runtime data in DIR/share
2411
2412 Some influential environment variables:
2413 CC C compiler command
2414 CFLAGS C compiler flags
2415 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2416 nonstandard directory <lib dir>
2417 LIBS libraries to pass to the linker, e.g. -l<library>
2418 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2419 you have headers in a nonstandard directory <include dir>
2420 CXX C++ compiler command
2421 CXXFLAGS C++ compiler flags
2422 CPP C preprocessor
2423
2424 Use these variables to override the choices made by 'configure' or to help
2425 it to find libraries and programs with nonstandard names/locations.
2426
2427 Report bugs to the package provider.
2428 _ACEOF
2429 ac_status=$?
2430 fi
2431
2432 if test "$ac_init_help" = "recursive"; then
2433 # If there are subdirs, report their specific --help.
2434 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2435 test -d "$ac_dir" ||
2436 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2437 continue
2438 ac_builddir=.
2439
2440 case "$ac_dir" in
2441 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2442 *)
2443 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2444 # A ".." for each directory in $ac_dir_suffix.
2445 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2446 case $ac_top_builddir_sub in
2447 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2448 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2449 esac ;;
2450 esac
2451 ac_abs_top_builddir=$ac_pwd
2452 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2453 # for backward compatibility:
2454 ac_top_builddir=$ac_top_build_prefix
2455
2456 case $srcdir in
2457 .) # We are building in place.
2458 ac_srcdir=.
2459 ac_top_srcdir=$ac_top_builddir_sub
2460 ac_abs_top_srcdir=$ac_pwd ;;
2461 [\\/]* | ?:[\\/]* ) # Absolute name.
2462 ac_srcdir=$srcdir$ac_dir_suffix;
2463 ac_top_srcdir=$srcdir
2464 ac_abs_top_srcdir=$srcdir ;;
2465 *) # Relative name.
2466 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2467 ac_top_srcdir=$ac_top_build_prefix$srcdir
2468 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2469 esac
2470 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2471
2472 cd "$ac_dir" || { ac_status=$?; continue; }
2473 # Check for configure.gnu first; this name is used for a wrapper for
2474 # Metaconfig's "Configure" on case-insensitive file systems.
2475 if test -f "$ac_srcdir/configure.gnu"; then
2476 echo &&
2477 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2478 elif test -f "$ac_srcdir/configure"; then
2479 echo &&
2480 $SHELL "$ac_srcdir/configure" --help=recursive
2481 else
2482 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2483 fi || ac_status=$?
2484 cd "$ac_pwd" || { ac_status=$?; break; }
2485 done
2486 fi
2487
2488 test -n "$ac_init_help" && exit $ac_status
2489 if $ac_init_version; then
2490 cat <<\_ACEOF
2491 gperf configure package
2492 generated by GNU Autoconf 2.72
2493
2494 Copyright (C) 2023 Free Software Foundation, Inc.
2495 This configure script is free software; the Free Software Foundation
2496 gives unlimited permission to copy, distribute and modify it.
2497 _ACEOF
2498 exit
2499 fi
2500
2501 ## ------------------------ ##
2502 ## Autoconf initialization. ##
2503 ## ------------------------ ##
2504
2505 # ac_fn_c_try_compile LINENO
2506 # --------------------------
2507 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2508 ac_fn_c_try_compile ()
2509 {
2510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2511 rm -f conftest.$ac_objext conftest.beam
2512 if { { ac_try="$ac_compile"
2513 case "(($ac_try" in
2514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2515 *) ac_try_echo=$ac_try;;
2516 esac
2517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2518 printf "%s\n" "$ac_try_echo"; } >&5
2519 (eval "$ac_compile") 2>conftest.err
2520 ac_status=$?
2521 if test -s conftest.err; then
2522 grep -v '^ *+' conftest.err >conftest.er1
2523 cat conftest.er1 >&5
2524 mv -f conftest.er1 conftest.err
2525 fi
2526 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2527 test $ac_status = 0; } && {
2528 test -z "$ac_c_werror_flag" ||
2529 test ! -s conftest.err
2530 } && test -s conftest.$ac_objext
2531 then :
2532 ac_retval=0
2533 else case e in #(
2534 e) printf "%s\n" "$as_me: failed program was:" >&5
2535 sed 's/^/| /' conftest.$ac_ext >&5
2536
2537 ac_retval=1 ;;
2538 esac
2539 fi
2540 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2541 as_fn_set_status $ac_retval
2542
2543 } # ac_fn_c_try_compile
2544
2545 # ac_fn_cxx_try_compile LINENO
2546 # ----------------------------
2547 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2548 ac_fn_cxx_try_compile ()
2549 {
2550 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2551 rm -f conftest.$ac_objext conftest.beam
2552 if { { ac_try="$ac_compile"
2553 case "(($ac_try" in
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2556 esac
2557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2558 printf "%s\n" "$ac_try_echo"; } >&5
2559 (eval "$ac_compile") 2>conftest.err
2560 ac_status=$?
2561 if test -s conftest.err; then
2562 grep -v '^ *+' conftest.err >conftest.er1
2563 cat conftest.er1 >&5
2564 mv -f conftest.er1 conftest.err
2565 fi
2566 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2567 test $ac_status = 0; } && {
2568 test -z "$ac_cxx_werror_flag" ||
2569 test ! -s conftest.err
2570 } && test -s conftest.$ac_objext
2571 then :
2572 ac_retval=0
2573 else case e in #(
2574 e) printf "%s\n" "$as_me: failed program was:" >&5
2575 sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 ac_retval=1 ;;
2578 esac
2579 fi
2580 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2581 as_fn_set_status $ac_retval
2582
2583 } # ac_fn_cxx_try_compile
2584
2585 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2586 # -------------------------------------------------------
2587 # Tests whether HEADER exists and can be compiled using the include files in
2588 # INCLUDES, setting the cache variable VAR accordingly.
2589 ac_fn_c_check_header_compile ()
2590 {
2591 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2593 printf %s "checking for $2... " >&6; }
2594 if eval test \${$3+y}
2595 then :
2596 printf %s "(cached) " >&6
2597 else case e in #(
2598 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2599 /* end confdefs.h. */
2600 $4
2601 #include <$2>
2602 _ACEOF
2603 if ac_fn_c_try_compile "$LINENO"
2604 then :
2605 eval "$3=yes"
2606 else case e in #(
2607 e) eval "$3=no" ;;
2608 esac
2609 fi
2610 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2611 esac
2612 fi
2613 eval ac_res=\$$3
2614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2615 printf "%s\n" "$ac_res" >&6; }
2616 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2617
2618 } # ac_fn_c_check_header_compile
2619
2620 # ac_fn_c_try_cpp LINENO
2621 # ----------------------
2622 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2623 ac_fn_c_try_cpp ()
2624 {
2625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2626 if { { ac_try="$ac_cpp conftest.$ac_ext"
2627 case "(($ac_try" in
2628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2629 *) ac_try_echo=$ac_try;;
2630 esac
2631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2632 printf "%s\n" "$ac_try_echo"; } >&5
2633 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2634 ac_status=$?
2635 if test -s conftest.err; then
2636 grep -v '^ *+' conftest.err >conftest.er1
2637 cat conftest.er1 >&5
2638 mv -f conftest.er1 conftest.err
2639 fi
2640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2641 test $ac_status = 0; } > conftest.i && {
2642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2643 test ! -s conftest.err
2644 }
2645 then :
2646 ac_retval=0
2647 else case e in #(
2648 e) printf "%s\n" "$as_me: failed program was:" >&5
2649 sed 's/^/| /' conftest.$ac_ext >&5
2650
2651 ac_retval=1 ;;
2652 esac
2653 fi
2654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2655 as_fn_set_status $ac_retval
2656
2657 } # ac_fn_c_try_cpp
2658
2659 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2660 # -------------------------------------------
2661 # Tests whether TYPE exists after having included INCLUDES, setting cache
2662 # variable VAR accordingly.
2663 ac_fn_c_check_type ()
2664 {
2665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2667 printf %s "checking for $2... " >&6; }
2668 if eval test \${$3+y}
2669 then :
2670 printf %s "(cached) " >&6
2671 else case e in #(
2672 e) eval "$3=no"
2673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2674 /* end confdefs.h. */
2675 $4
2676 int
2677 main (void)
2678 {
2679 if (sizeof ($2))
2680 return 0;
2681 ;
2682 return 0;
2683 }
2684 _ACEOF
2685 if ac_fn_c_try_compile "$LINENO"
2686 then :
2687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2688 /* end confdefs.h. */
2689 $4
2690 int
2691 main (void)
2692 {
2693 if (sizeof (($2)))
2694 return 0;
2695 ;
2696 return 0;
2697 }
2698 _ACEOF
2699 if ac_fn_c_try_compile "$LINENO"
2700 then :
2701
2702 else case e in #(
2703 e) eval "$3=yes" ;;
2704 esac
2705 fi
2706 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2707 fi
2708 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2709 esac
2710 fi
2711 eval ac_res=\$$3
2712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2713 printf "%s\n" "$ac_res" >&6; }
2714 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2715
2716 } # ac_fn_c_check_type
2717
2718 # ac_fn_c_try_link LINENO
2719 # -----------------------
2720 # Try to link conftest.$ac_ext, and return whether this succeeded.
2721 ac_fn_c_try_link ()
2722 {
2723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2724 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2725 if { { ac_try="$ac_link"
2726 case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729 esac
2730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2731 printf "%s\n" "$ac_try_echo"; } >&5
2732 (eval "$ac_link") 2>conftest.err
2733 ac_status=$?
2734 if test -s conftest.err; then
2735 grep -v '^ *+' conftest.err >conftest.er1
2736 cat conftest.er1 >&5
2737 mv -f conftest.er1 conftest.err
2738 fi
2739 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2740 test $ac_status = 0; } && {
2741 test -z "$ac_c_werror_flag" ||
2742 test ! -s conftest.err
2743 } && test -s conftest$ac_exeext && {
2744 test "$cross_compiling" = yes ||
2745 test -x conftest$ac_exeext
2746 }
2747 then :
2748 ac_retval=0
2749 else case e in #(
2750 e) printf "%s\n" "$as_me: failed program was:" >&5
2751 sed 's/^/| /' conftest.$ac_ext >&5
2752
2753 ac_retval=1 ;;
2754 esac
2755 fi
2756 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2757 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2758 # interfere with the next link command; also delete a directory that is
2759 # left behind by Apple's compiler. We do this before executing the actions.
2760 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2761 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2762 as_fn_set_status $ac_retval
2763
2764 } # ac_fn_c_try_link
2765
2766 # ac_fn_c_try_run LINENO
2767 # ----------------------
2768 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2769 # executables *can* be run.
2770 ac_fn_c_try_run ()
2771 {
2772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2773 if { { ac_try="$ac_link"
2774 case "(($ac_try" in
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2777 esac
2778 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2779 printf "%s\n" "$ac_try_echo"; } >&5
2780 (eval "$ac_link") 2>&5
2781 ac_status=$?
2782 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2783 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2784 { { case "(($ac_try" in
2785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2786 *) ac_try_echo=$ac_try;;
2787 esac
2788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2789 printf "%s\n" "$ac_try_echo"; } >&5
2790 (eval "$ac_try") 2>&5
2791 ac_status=$?
2792 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2793 test $ac_status = 0; }; }
2794 then :
2795 ac_retval=0
2796 else case e in #(
2797 e) printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2798 printf "%s\n" "$as_me: failed program was:" >&5
2799 sed 's/^/| /' conftest.$ac_ext >&5
2800
2801 ac_retval=$ac_status ;;
2802 esac
2803 fi
2804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2805 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2806 as_fn_set_status $ac_retval
2807
2808 } # ac_fn_c_try_run
2809
2810 # ac_fn_c_check_func LINENO FUNC VAR
2811 # ----------------------------------
2812 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2813 ac_fn_c_check_func ()
2814 {
2815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2817 printf %s "checking for $2... " >&6; }
2818 if eval test \${$3+y}
2819 then :
2820 printf %s "(cached) " >&6
2821 else case e in #(
2822 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h. */
2824 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2825 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2826 #define $2 innocuous_$2
2827
2828 /* System header to define __stub macros and hopefully few prototypes,
2829 which can conflict with char $2 (void); below. */
2830
2831 #include <limits.h>
2832 #undef $2
2833
2834 /* Override any GCC internal prototype to avoid an error.
2835 Use char because int might match the return type of a GCC
2836 builtin and then its argument prototype would still apply. */
2837 #ifdef __cplusplus
2838 extern "C"
2839 #endif
2840 char $2 (void);
2841 /* The GNU C library defines this for functions which it implements
2842 to always fail with ENOSYS. Some functions are actually named
2843 something starting with __ and the normal name is an alias. */
2844 #if defined __stub_$2 || defined __stub___$2
2845 choke me
2846 #endif
2847
2848 int
2849 main (void)
2850 {
2851 return $2 ();
2852 ;
2853 return 0;
2854 }
2855 _ACEOF
2856 if ac_fn_c_try_link "$LINENO"
2857 then :
2858 eval "$3=yes"
2859 else case e in #(
2860 e) eval "$3=no" ;;
2861 esac
2862 fi
2863 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2864 conftest$ac_exeext conftest.$ac_ext ;;
2865 esac
2866 fi
2867 eval ac_res=\$$3
2868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2869 printf "%s\n" "$ac_res" >&6; }
2870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2871
2872 } # ac_fn_c_check_func
2873
2874 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2875 # --------------------------------------------
2876 # Tries to find the compile-time value of EXPR in a program that includes
2877 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2878 # computed
2879 ac_fn_c_compute_int ()
2880 {
2881 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2882 if test "$cross_compiling" = yes; then
2883 # Depending upon the size, compute the lo and hi bounds.
2884 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_lo=0 ac_mid=0
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_hi=$ac_mid; break
2919 else case e in #(
2920 e) as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2921 if test $ac_lo -le $ac_mid; then
2922 ac_lo= ac_hi=
2923 break
2924 fi
2925 as_fn_arith 2 '*' $ac_mid + 1 && 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) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2932 /* end confdefs.h. */
2933 $4
2934 int
2935 main (void)
2936 {
2937 static int test_array [1 - 2 * !(($2) < 0)];
2938 test_array [0] = 0;
2939 return test_array [0];
2940
2941 ;
2942 return 0;
2943 }
2944 _ACEOF
2945 if ac_fn_c_try_compile "$LINENO"
2946 then :
2947 ac_hi=-1 ac_mid=-1
2948 while :; do
2949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2950 /* end confdefs.h. */
2951 $4
2952 int
2953 main (void)
2954 {
2955 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2956 test_array [0] = 0;
2957 return test_array [0];
2958
2959 ;
2960 return 0;
2961 }
2962 _ACEOF
2963 if ac_fn_c_try_compile "$LINENO"
2964 then :
2965 ac_lo=$ac_mid; break
2966 else case e in #(
2967 e) as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2968 if test $ac_mid -le $ac_hi; then
2969 ac_lo= ac_hi=
2970 break
2971 fi
2972 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val ;;
2973 esac
2974 fi
2975 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2976 done
2977 else case e in #(
2978 e) ac_lo= ac_hi= ;;
2979 esac
2980 fi
2981 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
2982 esac
2983 fi
2984 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2985 # Binary search between lo and hi bounds.
2986 while test "x$ac_lo" != "x$ac_hi"; do
2987 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2989 /* end confdefs.h. */
2990 $4
2991 int
2992 main (void)
2993 {
2994 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2995 test_array [0] = 0;
2996 return test_array [0];
2997
2998 ;
2999 return 0;
3000 }
3001 _ACEOF
3002 if ac_fn_c_try_compile "$LINENO"
3003 then :
3004 ac_hi=$ac_mid
3005 else case e in #(
3006 e) as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val ;;
3007 esac
3008 fi
3009 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3010 done
3011 case $ac_lo in #((
3012 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
3013 '') ac_retval=1 ;;
3014 esac
3015 else
3016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3017 /* end confdefs.h. */
3018 $4
3019 static long int longval (void) { return $2; }
3020 static unsigned long int ulongval (void) { return $2; }
3021 #include <stdio.h>
3022 #include <stdlib.h>
3023 int
3024 main (void)
3025 {
3026
3027 FILE *f = fopen ("conftest.val", "w");
3028 if (! f)
3029 return 1;
3030 if (($2) < 0)
3031 {
3032 long int i = longval ();
3033 if (i != ($2))
3034 return 1;
3035 fprintf (f, "%ld", i);
3036 }
3037 else
3038 {
3039 unsigned long int i = ulongval ();
3040 if (i != ($2))
3041 return 1;
3042 fprintf (f, "%lu", i);
3043 }
3044 /* Do not output a trailing newline, as this causes \r\n confusion
3045 on some platforms. */
3046 return ferror (f) || fclose (f) != 0;
3047
3048 ;
3049 return 0;
3050 }
3051 _ACEOF
3052 if ac_fn_c_try_run "$LINENO"
3053 then :
3054 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3055 else case e in #(
3056 e) ac_retval=1 ;;
3057 esac
3058 fi
3059 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3060 conftest.$ac_objext conftest.beam conftest.$ac_ext
3061 rm -f conftest.val
3062
3063 fi
3064 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3065 as_fn_set_status $ac_retval
3066
3067 } # ac_fn_c_compute_int
3068
3069 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
3070 # ------------------------------------------------------------------
3071 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
3072 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
3073 ac_fn_check_decl ()
3074 {
3075 ac_saved_ac_compile="$ac_compile"
3076 if test -n "$ac_compile_for_check_decl"; then
3077 ac_compile="$ac_compile_for_check_decl"
3078 fi
3079 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3080 as_decl_name=`echo $2|sed 's/ *(.*//'`
3081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3082 printf %s "checking whether $as_decl_name is declared... " >&6; }
3083 if eval test \${$3+y}
3084 then :
3085 printf %s "(cached) " >&6
3086 else case e in #(
3087 e) as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3088 eval ac_save_FLAGS=\$$6
3089 as_fn_append $6 " $5"
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091 /* end confdefs.h. */
3092 $4
3093 int
3094 main (void)
3095 {
3096 #ifndef $as_decl_name
3097 #ifdef __cplusplus
3098 (void) $as_decl_use;
3099 #else
3100 (void) $as_decl_name;
3101 #endif
3102 #endif
3103
3104 ;
3105 return 0;
3106 }
3107 _ACEOF
3108 if ac_fn_c_try_compile "$LINENO"
3109 then :
3110 eval "$3=yes"
3111 else case e in #(
3112 e) eval "$3=no" ;;
3113 esac
3114 fi
3115 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3116 eval $6=\$ac_save_FLAGS
3117 ;;
3118 esac
3119 fi
3120 eval ac_res=\$$3
3121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3122 printf "%s\n" "$ac_res" >&6; }
3123 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3124 ac_compile="$ac_saved_ac_compile"
3125
3126 } # ac_fn_check_decl
3127
3128 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3129 # ----------------------------------------------------
3130 # Tries to find if the field MEMBER exists in type AGGR, after including
3131 # INCLUDES, setting cache variable VAR accordingly.
3132 ac_fn_c_check_member ()
3133 {
3134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3136 printf %s "checking for $2.$3... " >&6; }
3137 if eval test \${$4+y}
3138 then :
3139 printf %s "(cached) " >&6
3140 else case e in #(
3141 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3142 /* end confdefs.h. */
3143 $5
3144 int
3145 main (void)
3146 {
3147 static $2 ac_aggr;
3148 if (ac_aggr.$3)
3149 return 0;
3150 ;
3151 return 0;
3152 }
3153 _ACEOF
3154 if ac_fn_c_try_compile "$LINENO"
3155 then :
3156 eval "$4=yes"
3157 else case e in #(
3158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3159 /* end confdefs.h. */
3160 $5
3161 int
3162 main (void)
3163 {
3164 static $2 ac_aggr;
3165 if (sizeof ac_aggr.$3)
3166 return 0;
3167 ;
3168 return 0;
3169 }
3170 _ACEOF
3171 if ac_fn_c_try_compile "$LINENO"
3172 then :
3173 eval "$4=yes"
3174 else case e in #(
3175 e) eval "$4=no" ;;
3176 esac
3177 fi
3178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3179 esac
3180 fi
3181 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
3182 esac
3183 fi
3184 eval ac_res=\$$4
3185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3186 printf "%s\n" "$ac_res" >&6; }
3187 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3188
3189 } # ac_fn_c_check_member
3190 ac_configure_args_raw=
3191 for ac_arg
3192 do
3193 case $ac_arg in
3194 *\'*)
3195 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3196 esac
3197 as_fn_append ac_configure_args_raw " '$ac_arg'"
3198 done
3199
3200 case $ac_configure_args_raw in
3201 *$as_nl*)
3202 ac_safe_unquote= ;;
3203 *)
3204 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
3205 ac_unsafe_a="$ac_unsafe_z#~"
3206 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3207 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3208 esac
3209
3210 cat >config.log <<_ACEOF
3211 This file contains any messages produced by compilers while
3212 running configure, to aid debugging if configure makes a mistake.
3213
3214 It was created by gperf $as_me package, which was
3215 generated by GNU Autoconf 2.72. Invocation command line was
3216
3217 $ $0$ac_configure_args_raw
3218
3219 _ACEOF
3220 exec 5>>config.log
3221 {
3222 cat <<_ASUNAME
3223 ## --------- ##
3224 ## Platform. ##
3225 ## --------- ##
3226
3227 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3228 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3229 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3230 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3231 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3232
3233 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3234 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3235
3236 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3237 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3238 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3239 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3240 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3241 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3242 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3243
3244 _ASUNAME
3245
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 case $as_dir in #(((
3251 '') as_dir=./ ;;
3252 */) ;;
3253 *) as_dir=$as_dir/ ;;
3254 esac
3255 printf "%s\n" "PATH: $as_dir"
3256 done
3257 IFS=$as_save_IFS
3258
3259 } >&5
3260
3261 cat >&5 <<_ACEOF
3262
3263
3264 ## ----------- ##
3265 ## Core tests. ##
3266 ## ----------- ##
3267
3268 _ACEOF
3269
3270
3271 # Keep a trace of the command line.
3272 # Strip out --no-create and --no-recursion so they do not pile up.
3273 # Strip out --silent because we don't want to record it for future runs.
3274 # Also quote any args containing shell meta-characters.
3275 # Make two passes to allow for proper duplicate-argument suppression.
3276 ac_configure_args=
3277 ac_configure_args0=
3278 ac_configure_args1=
3279 ac_must_keep_next=false
3280 for ac_pass in 1 2
3281 do
3282 for ac_arg
3283 do
3284 case $ac_arg in
3285 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3286 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3287 | -silent | --silent | --silen | --sile | --sil)
3288 continue ;;
3289 *\'*)
3290 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3291 esac
3292 case $ac_pass in
3293 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3294 2)
3295 as_fn_append ac_configure_args1 " '$ac_arg'"
3296 if test $ac_must_keep_next = true; then
3297 ac_must_keep_next=false # Got value, back to normal.
3298 else
3299 case $ac_arg in
3300 *=* | --config-cache | -C | -disable-* | --disable-* \
3301 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3302 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3303 | -with-* | --with-* | -without-* | --without-* | --x)
3304 case "$ac_configure_args0 " in
3305 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3306 esac
3307 ;;
3308 -* ) ac_must_keep_next=true ;;
3309 esac
3310 fi
3311 as_fn_append ac_configure_args " '$ac_arg'"
3312 ;;
3313 esac
3314 done
3315 done
3316 { ac_configure_args0=; unset ac_configure_args0;}
3317 { ac_configure_args1=; unset ac_configure_args1;}
3318
3319 # When interrupted or exit'd, cleanup temporary files, and complete
3320 # config.log. We remove comments because anyway the quotes in there
3321 # would cause problems or look ugly.
3322 # WARNING: Use '\'' to represent an apostrophe within the trap.
3323 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3324 trap 'exit_status=$?
3325 # Sanitize IFS.
3326 IFS=" "" $as_nl"
3327 # Save into config.log some information that might help in debugging.
3328 {
3329 echo
3330
3331 printf "%s\n" "## ---------------- ##
3332 ## Cache variables. ##
3333 ## ---------------- ##"
3334 echo
3335 # The following way of writing the cache mishandles newlines in values,
3336 (
3337 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3338 eval ac_val=\$$ac_var
3339 case $ac_val in #(
3340 *${as_nl}*)
3341 case $ac_var in #(
3342 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3343 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3344 esac
3345 case $ac_var in #(
3346 _ | IFS | as_nl) ;; #(
3347 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3348 *) { eval $ac_var=; unset $ac_var;} ;;
3349 esac ;;
3350 esac
3351 done
3352 (set) 2>&1 |
3353 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3354 *${as_nl}ac_space=\ *)
3355 sed -n \
3356 "s/'\''/'\''\\\\'\'''\''/g;
3357 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3358 ;; #(
3359 *)
3360 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3361 ;;
3362 esac |
3363 sort
3364 )
3365 echo
3366
3367 printf "%s\n" "## ----------------- ##
3368 ## Output variables. ##
3369 ## ----------------- ##"
3370 echo
3371 for ac_var in $ac_subst_vars
3372 do
3373 eval ac_val=\$$ac_var
3374 case $ac_val in
3375 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3376 esac
3377 printf "%s\n" "$ac_var='\''$ac_val'\''"
3378 done | sort
3379 echo
3380
3381 if test -n "$ac_subst_files"; then
3382 printf "%s\n" "## ------------------- ##
3383 ## File substitutions. ##
3384 ## ------------------- ##"
3385 echo
3386 for ac_var in $ac_subst_files
3387 do
3388 eval ac_val=\$$ac_var
3389 case $ac_val in
3390 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3391 esac
3392 printf "%s\n" "$ac_var='\''$ac_val'\''"
3393 done | sort
3394 echo
3395 fi
3396
3397 if test -s confdefs.h; then
3398 printf "%s\n" "## ----------- ##
3399 ## confdefs.h. ##
3400 ## ----------- ##"
3401 echo
3402 cat confdefs.h
3403 echo
3404 fi
3405 test "$ac_signal" != 0 &&
3406 printf "%s\n" "$as_me: caught signal $ac_signal"
3407 printf "%s\n" "$as_me: exit $exit_status"
3408 } >&5
3409 rm -f core *.core core.conftest.* &&
3410 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3411 exit $exit_status
3412 ' 0
3413 for ac_signal in 1 2 13 15; do
3414 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3415 done
3416 ac_signal=0
3417
3418 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3419 rm -f -r conftest* confdefs.h
3420
3421 printf "%s\n" "/* confdefs.h */" > confdefs.h
3422
3423 # Predefined preprocessor variables.
3424
3425 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3426
3427 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3428
3429 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3430
3431 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3432
3433 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3434
3435 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3436
3437
3438 # Let the site file select an alternate cache file if it wants to.
3439 # Prefer an explicitly selected file to automatically selected ones.
3440 if test -n "$CONFIG_SITE"; then
3441 ac_site_files="$CONFIG_SITE"
3442 elif test "x$prefix" != xNONE; then
3443 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3444 else
3445 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3446 fi
3447
3448 for ac_site_file in $ac_site_files
3449 do
3450 case $ac_site_file in #(
3451 */*) :
3452 ;; #(
3453 *) :
3454 ac_site_file=./$ac_site_file ;;
3455 esac
3456 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3458 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3459 sed 's/^/| /' "$ac_site_file" >&5
3460 . "$ac_site_file" \
3461 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
3462 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
3463 as_fn_error $? "failed to load site script $ac_site_file
3464 See 'config.log' for more details" "$LINENO" 5; }
3465 fi
3466 done
3467
3468 if test -r "$cache_file"; then
3469 # Some versions of bash will fail to source /dev/null (special files
3470 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3471 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3473 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3474 case $cache_file in
3475 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3476 *) . "./$cache_file";;
3477 esac
3478 fi
3479 else
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3481 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3482 >$cache_file
3483 fi
3484
3485 # Test code for whether the C compiler supports C89 (global declarations)
3486 ac_c_conftest_c89_globals='
3487 /* Does the compiler advertise C89 conformance?
3488 Do not test the value of __STDC__, because some compilers set it to 0
3489 while being otherwise adequately conformant. */
3490 #if !defined __STDC__
3491 # error "Compiler does not advertise C89 conformance"
3492 #endif
3493
3494 #include <stddef.h>
3495 #include <stdarg.h>
3496 struct stat;
3497 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3498 struct buf { int x; };
3499 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3500 static char *e (char **p, int i)
3501 {
3502 return p[i];
3503 }
3504 static char *f (char * (*g) (char **, int), char **p, ...)
3505 {
3506 char *s;
3507 va_list v;
3508 va_start (v,p);
3509 s = g (p, va_arg (v,int));
3510 va_end (v);
3511 return s;
3512 }
3513
3514 /* C89 style stringification. */
3515 #define noexpand_stringify(a) #a
3516 const char *stringified = noexpand_stringify(arbitrary+token=sequence);
3517
3518 /* C89 style token pasting. Exercises some of the corner cases that
3519 e.g. old MSVC gets wrong, but not very hard. */
3520 #define noexpand_concat(a,b) a##b
3521 #define expand_concat(a,b) noexpand_concat(a,b)
3522 extern int vA;
3523 extern int vbee;
3524 #define aye A
3525 #define bee B
3526 int *pvA = &expand_concat(v,aye);
3527 int *pvbee = &noexpand_concat(v,bee);
3528
3529 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3530 function prototypes and stuff, but not \xHH hex character constants.
3531 These do not provoke an error unfortunately, instead are silently treated
3532 as an "x". The following induces an error, until -std is added to get
3533 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3534 array size at least. It is necessary to write \x00 == 0 to get something
3535 that is true only with -std. */
3536 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3537
3538 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3539 inside strings and character constants. */
3540 #define FOO(x) '\''x'\''
3541 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3542
3543 int test (int i, double x);
3544 struct s1 {int (*f) (int a);};
3545 struct s2 {int (*f) (double a);};
3546 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3547 int, int);'
3548
3549 # Test code for whether the C compiler supports C89 (body of main).
3550 ac_c_conftest_c89_main='
3551 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3552 '
3553
3554 # Test code for whether the C compiler supports C99 (global declarations)
3555 ac_c_conftest_c99_globals='
3556 /* Does the compiler advertise C99 conformance? */
3557 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3558 # error "Compiler does not advertise C99 conformance"
3559 #endif
3560
3561 // See if C++-style comments work.
3562
3563 #include <stdbool.h>
3564 extern int puts (const char *);
3565 extern int printf (const char *, ...);
3566 extern int dprintf (int, const char *, ...);
3567 extern void *malloc (size_t);
3568 extern void free (void *);
3569
3570 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3571 // dprintf is used instead of fprintf to avoid needing to declare
3572 // FILE and stderr.
3573 #define debug(...) dprintf (2, __VA_ARGS__)
3574 #define showlist(...) puts (#__VA_ARGS__)
3575 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3576 static void
3577 test_varargs_macros (void)
3578 {
3579 int x = 1234;
3580 int y = 5678;
3581 debug ("Flag");
3582 debug ("X = %d\n", x);
3583 showlist (The first, second, and third items.);
3584 report (x>y, "x is %d but y is %d", x, y);
3585 }
3586
3587 // Check long long types.
3588 #define BIG64 18446744073709551615ull
3589 #define BIG32 4294967295ul
3590 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3591 #if !BIG_OK
3592 #error "your preprocessor is broken"
3593 #endif
3594 #if BIG_OK
3595 #else
3596 #error "your preprocessor is broken"
3597 #endif
3598 static long long int bignum = -9223372036854775807LL;
3599 static unsigned long long int ubignum = BIG64;
3600
3601 struct incomplete_array
3602 {
3603 int datasize;
3604 double data[];
3605 };
3606
3607 struct named_init {
3608 int number;
3609 const wchar_t *name;
3610 double average;
3611 };
3612
3613 typedef const char *ccp;
3614
3615 static inline int
3616 test_restrict (ccp restrict text)
3617 {
3618 // Iterate through items via the restricted pointer.
3619 // Also check for declarations in for loops.
3620 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3621 continue;
3622 return 0;
3623 }
3624
3625 // Check varargs and va_copy.
3626 static bool
3627 test_varargs (const char *format, ...)
3628 {
3629 va_list args;
3630 va_start (args, format);
3631 va_list args_copy;
3632 va_copy (args_copy, args);
3633
3634 const char *str = "";
3635 int number = 0;
3636 float fnumber = 0;
3637
3638 while (*format)
3639 {
3640 switch (*format++)
3641 {
3642 case '\''s'\'': // string
3643 str = va_arg (args_copy, const char *);
3644 break;
3645 case '\''d'\'': // int
3646 number = va_arg (args_copy, int);
3647 break;
3648 case '\''f'\'': // float
3649 fnumber = va_arg (args_copy, double);
3650 break;
3651 default:
3652 break;
3653 }
3654 }
3655 va_end (args_copy);
3656 va_end (args);
3657
3658 return *str && number && fnumber;
3659 }
3660 '
3661
3662 # Test code for whether the C compiler supports C99 (body of main).
3663 ac_c_conftest_c99_main='
3664 // Check bool.
3665 _Bool success = false;
3666 success |= (argc != 0);
3667
3668 // Check restrict.
3669 if (test_restrict ("String literal") == 0)
3670 success = true;
3671 char *restrict newvar = "Another string";
3672
3673 // Check varargs.
3674 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3675 test_varargs_macros ();
3676
3677 // Check flexible array members.
3678 struct incomplete_array *ia =
3679 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3680 ia->datasize = 10;
3681 for (int i = 0; i < ia->datasize; ++i)
3682 ia->data[i] = i * 1.234;
3683 // Work around memory leak warnings.
3684 free (ia);
3685
3686 // Check named initializers.
3687 struct named_init ni = {
3688 .number = 34,
3689 .name = L"Test wide string",
3690 .average = 543.34343,
3691 };
3692
3693 ni.number = 58;
3694
3695 int dynamic_array[ni.number];
3696 dynamic_array[0] = argv[0][0];
3697 dynamic_array[ni.number - 1] = 543;
3698
3699 // work around unused variable warnings
3700 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3701 || dynamic_array[ni.number - 1] != 543);
3702 '
3703
3704 # Test code for whether the C compiler supports C11 (global declarations)
3705 ac_c_conftest_c11_globals='
3706 /* Does the compiler advertise C11 conformance? */
3707 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3708 # error "Compiler does not advertise C11 conformance"
3709 #endif
3710
3711 // Check _Alignas.
3712 char _Alignas (double) aligned_as_double;
3713 char _Alignas (0) no_special_alignment;
3714 extern char aligned_as_int;
3715 char _Alignas (0) _Alignas (int) aligned_as_int;
3716
3717 // Check _Alignof.
3718 enum
3719 {
3720 int_alignment = _Alignof (int),
3721 int_array_alignment = _Alignof (int[100]),
3722 char_alignment = _Alignof (char)
3723 };
3724 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3725
3726 // Check _Noreturn.
3727 int _Noreturn does_not_return (void) { for (;;) continue; }
3728
3729 // Check _Static_assert.
3730 struct test_static_assert
3731 {
3732 int x;
3733 _Static_assert (sizeof (int) <= sizeof (long int),
3734 "_Static_assert does not work in struct");
3735 long int y;
3736 };
3737
3738 // Check UTF-8 literals.
3739 #define u8 syntax error!
3740 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3741
3742 // Check duplicate typedefs.
3743 typedef long *long_ptr;
3744 typedef long int *long_ptr;
3745 typedef long_ptr long_ptr;
3746
3747 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3748 struct anonymous
3749 {
3750 union {
3751 struct { int i; int j; };
3752 struct { int k; long int l; } w;
3753 };
3754 int m;
3755 } v1;
3756 '
3757
3758 # Test code for whether the C compiler supports C11 (body of main).
3759 ac_c_conftest_c11_main='
3760 _Static_assert ((offsetof (struct anonymous, i)
3761 == offsetof (struct anonymous, w.k)),
3762 "Anonymous union alignment botch");
3763 v1.i = 2;
3764 v1.w.k = 5;
3765 ok |= v1.i != 5;
3766 '
3767
3768 # Test code for whether the C compiler supports C11 (complete).
3769 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3770 ${ac_c_conftest_c99_globals}
3771 ${ac_c_conftest_c11_globals}
3772
3773 int
3774 main (int argc, char **argv)
3775 {
3776 int ok = 0;
3777 ${ac_c_conftest_c89_main}
3778 ${ac_c_conftest_c99_main}
3779 ${ac_c_conftest_c11_main}
3780 return ok;
3781 }
3782 "
3783
3784 # Test code for whether the C compiler supports C99 (complete).
3785 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3786 ${ac_c_conftest_c99_globals}
3787
3788 int
3789 main (int argc, char **argv)
3790 {
3791 int ok = 0;
3792 ${ac_c_conftest_c89_main}
3793 ${ac_c_conftest_c99_main}
3794 return ok;
3795 }
3796 "
3797
3798 # Test code for whether the C compiler supports C89 (complete).
3799 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3800
3801 int
3802 main (int argc, char **argv)
3803 {
3804 int ok = 0;
3805 ${ac_c_conftest_c89_main}
3806 return ok;
3807 }
3808 "
3809
3810 # Test code for whether the C++ compiler supports C++98 (global declarations)
3811 ac_cxx_conftest_cxx98_globals='
3812 // Does the compiler advertise C++98 conformance?
3813 #if !defined __cplusplus || __cplusplus < 199711L
3814 # error "Compiler does not advertise C++98 conformance"
3815 #endif
3816
3817 // These inclusions are to reject old compilers that
3818 // lack the unsuffixed header files.
3819 #include <cstdlib>
3820 #include <exception>
3821
3822 // <cassert> and <cstring> are *not* freestanding headers in C++98.
3823 extern void assert (int);
3824 namespace std {
3825 extern int strcmp (const char *, const char *);
3826 }
3827
3828 // Namespaces, exceptions, and templates were all added after "C++ 2.0".
3829 using std::exception;
3830 using std::strcmp;
3831
3832 namespace {
3833
3834 void test_exception_syntax()
3835 {
3836 try {
3837 throw "test";
3838 } catch (const char *s) {
3839 // Extra parentheses suppress a warning when building autoconf itself,
3840 // due to lint rules shared with more typical C programs.
3841 assert (!(strcmp) (s, "test"));
3842 }
3843 }
3844
3845 template <typename T> struct test_template
3846 {
3847 T const val;
3848 explicit test_template(T t) : val(t) {}
3849 template <typename U> T add(U u) { return static_cast<T>(u) + val; }
3850 };
3851
3852 } // anonymous namespace
3853 '
3854
3855 # Test code for whether the C++ compiler supports C++98 (body of main)
3856 ac_cxx_conftest_cxx98_main='
3857 assert (argc);
3858 assert (! argv[0]);
3859 {
3860 test_exception_syntax ();
3861 test_template<double> tt (2.0);
3862 assert (tt.add (4) == 6.0);
3863 assert (true && !false);
3864 }
3865 '
3866
3867 # Test code for whether the C++ compiler supports C++11 (global declarations)
3868 ac_cxx_conftest_cxx11_globals='
3869 // Does the compiler advertise C++ 2011 conformance?
3870 #if !defined __cplusplus || __cplusplus < 201103L
3871 # error "Compiler does not advertise C++11 conformance"
3872 #endif
3873
3874 namespace cxx11test
3875 {
3876 constexpr int get_val() { return 20; }
3877
3878 struct testinit
3879 {
3880 int i;
3881 double d;
3882 };
3883
3884 class delegate
3885 {
3886 public:
3887 delegate(int n) : n(n) {}
3888 delegate(): delegate(2354) {}
3889
3890 virtual int getval() { return this->n; };
3891 protected:
3892 int n;
3893 };
3894
3895 class overridden : public delegate
3896 {
3897 public:
3898 overridden(int n): delegate(n) {}
3899 virtual int getval() override final { return this->n * 2; }
3900 };
3901
3902 class nocopy
3903 {
3904 public:
3905 nocopy(int i): i(i) {}
3906 nocopy() = default;
3907 nocopy(const nocopy&) = delete;
3908 nocopy & operator=(const nocopy&) = delete;
3909 private:
3910 int i;
3911 };
3912
3913 // for testing lambda expressions
3914 template <typename Ret, typename Fn> Ret eval(Fn f, Ret v)
3915 {
3916 return f(v);
3917 }
3918
3919 // for testing variadic templates and trailing return types
3920 template <typename V> auto sum(V first) -> V
3921 {
3922 return first;
3923 }
3924 template <typename V, typename... Args> auto sum(V first, Args... rest) -> V
3925 {
3926 return first + sum(rest...);
3927 }
3928 }
3929 '
3930
3931 # Test code for whether the C++ compiler supports C++11 (body of main)
3932 ac_cxx_conftest_cxx11_main='
3933 {
3934 // Test auto and decltype
3935 auto a1 = 6538;
3936 auto a2 = 48573953.4;
3937 auto a3 = "String literal";
3938
3939 int total = 0;
3940 for (auto i = a3; *i; ++i) { total += *i; }
3941
3942 decltype(a2) a4 = 34895.034;
3943 }
3944 {
3945 // Test constexpr
3946 short sa[cxx11test::get_val()] = { 0 };
3947 }
3948 {
3949 // Test initializer lists
3950 cxx11test::testinit il = { 4323, 435234.23544 };
3951 }
3952 {
3953 // Test range-based for
3954 int array[] = {9, 7, 13, 15, 4, 18, 12, 10, 5, 3,
3955 14, 19, 17, 8, 6, 20, 16, 2, 11, 1};
3956 for (auto &x : array) { x += 23; }
3957 }
3958 {
3959 // Test lambda expressions
3960 using cxx11test::eval;
3961 assert (eval ([](int x) { return x*2; }, 21) == 42);
3962 double d = 2.0;
3963 assert (eval ([&](double x) { return d += x; }, 3.0) == 5.0);
3964 assert (d == 5.0);
3965 assert (eval ([=](double x) mutable { return d += x; }, 4.0) == 9.0);
3966 assert (d == 5.0);
3967 }
3968 {
3969 // Test use of variadic templates
3970 using cxx11test::sum;
3971 auto a = sum(1);
3972 auto b = sum(1, 2);
3973 auto c = sum(1.0, 2.0, 3.0);
3974 }
3975 {
3976 // Test constructor delegation
3977 cxx11test::delegate d1;
3978 cxx11test::delegate d2();
3979 cxx11test::delegate d3(45);
3980 }
3981 {
3982 // Test override and final
3983 cxx11test::overridden o1(55464);
3984 }
3985 {
3986 // Test nullptr
3987 char *c = nullptr;
3988 }
3989 {
3990 // Test template brackets
3991 test_template<::test_template<int>> v(test_template<int>(12));
3992 }
3993 {
3994 // Unicode literals
3995 char const *utf8 = u8"UTF-8 string \u2500";
3996 char16_t const *utf16 = u"UTF-8 string \u2500";
3997 char32_t const *utf32 = U"UTF-32 string \u2500";
3998 }
3999 '
4000
4001 # Test code for whether the C compiler supports C++11 (complete).
4002 ac_cxx_conftest_cxx11_program="${ac_cxx_conftest_cxx98_globals}
4003 ${ac_cxx_conftest_cxx11_globals}
4004
4005 int
4006 main (int argc, char **argv)
4007 {
4008 int ok = 0;
4009 ${ac_cxx_conftest_cxx98_main}
4010 ${ac_cxx_conftest_cxx11_main}
4011 return ok;
4012 }
4013 "
4014
4015 # Test code for whether the C compiler supports C++98 (complete).
4016 ac_cxx_conftest_cxx98_program="${ac_cxx_conftest_cxx98_globals}
4017 int
4018 main (int argc, char **argv)
4019 {
4020 int ok = 0;
4021 ${ac_cxx_conftest_cxx98_main}
4022 return ok;
4023 }
4024 "
4025
4026 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
4027 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
4028 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
4029 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
4030 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
4031 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
4032 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
4033 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
4034 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
4035 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
4036 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
4037 as_fn_append ac_header_c_list " stdbool.h stdbool_h HAVE_STDBOOL_H"
4038 as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER"
4039 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
4040 as_fn_append ac_header_c_list " error.h error_h HAVE_ERROR_H"
4041 as_fn_append ac_func_c_list " fcntl HAVE_FCNTL"
4042 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
4043 as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE"
4044 gl_getopt_required=GNU
4045 as_fn_append ac_header_c_list " getopt.h getopt_h HAVE_GETOPT_H"
4046 as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME"
4047 as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
4048 as_fn_append ac_header_c_list " xlocale.h xlocale_h HAVE_XLOCALE_H"
4049 as_fn_append ac_func_c_list " memset_s HAVE_MEMSET_S"
4050 as_fn_append ac_func_c_list " lstat HAVE_LSTAT"
4051 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
4052 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
4053 as_fn_append ac_header_c_list " stdckdint.h stdckdint_h HAVE_STDCKDINT_H"
4054 as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H"
4055 as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H"
4056
4057 # Auxiliary files required by this configure script.
4058 ac_aux_files="config.guess config.sub compile missing install-sh"
4059
4060 # Locations in which to look for auxiliary files.
4061 ac_aux_dir_candidates="${srcdir}/../build-aux"
4062
4063 # Search for a directory containing all of the required auxiliary files,
4064 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
4065 # If we don't find one directory that contains all the files we need,
4066 # we report the set of missing files from the *first* directory in
4067 # $ac_aux_dir_candidates and give up.
4068 ac_missing_aux_files=""
4069 ac_first_candidate=:
4070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
4071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4072 as_found=false
4073 for as_dir in $ac_aux_dir_candidates
4074 do
4075 IFS=$as_save_IFS
4076 case $as_dir in #(((
4077 '') as_dir=./ ;;
4078 */) ;;
4079 *) as_dir=$as_dir/ ;;
4080 esac
4081 as_found=:
4082
4083 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
4084 ac_aux_dir_found=yes
4085 ac_install_sh=
4086 for ac_aux in $ac_aux_files
4087 do
4088 # As a special case, if "install-sh" is required, that requirement
4089 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
4090 # and $ac_install_sh is set appropriately for whichever one is found.
4091 if test x"$ac_aux" = x"install-sh"
4092 then
4093 if test -f "${as_dir}install-sh"; then
4094 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
4095 ac_install_sh="${as_dir}install-sh -c"
4096 elif test -f "${as_dir}install.sh"; then
4097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
4098 ac_install_sh="${as_dir}install.sh -c"
4099 elif test -f "${as_dir}shtool"; then
4100 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
4101 ac_install_sh="${as_dir}shtool install -c"
4102 else
4103 ac_aux_dir_found=no
4104 if $ac_first_candidate; then
4105 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
4106 else
4107 break
4108 fi
4109 fi
4110 else
4111 if test -f "${as_dir}${ac_aux}"; then
4112 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
4113 else
4114 ac_aux_dir_found=no
4115 if $ac_first_candidate; then
4116 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
4117 else
4118 break
4119 fi
4120 fi
4121 fi
4122 done
4123 if test "$ac_aux_dir_found" = yes; then
4124 ac_aux_dir="$as_dir"
4125 break
4126 fi
4127 ac_first_candidate=false
4128
4129 as_found=false
4130 done
4131 IFS=$as_save_IFS
4132 if $as_found
4133 then :
4134
4135 else case e in #(
4136 e) as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5 ;;
4137 esac
4138 fi
4139
4140
4141 # These three variables are undocumented and unsupported,
4142 # and are intended to be withdrawn in a future Autoconf release.
4143 # They can cause serious problems if a builder's source tree is in a directory
4144 # whose full name contains unusual characters.
4145 if test -f "${ac_aux_dir}config.guess"; then
4146 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
4147 fi
4148 if test -f "${ac_aux_dir}config.sub"; then
4149 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
4150 fi
4151 if test -f "$ac_aux_dir/configure"; then
4152 ac_configure="$SHELL ${ac_aux_dir}configure"
4153 fi
4154
4155 # Check that the precious variables saved in the cache have kept the same
4156 # value.
4157 ac_cache_corrupted=false
4158 for ac_var in $ac_precious_vars; do
4159 eval ac_old_set=\$ac_cv_env_${ac_var}_set
4160 eval ac_new_set=\$ac_env_${ac_var}_set
4161 eval ac_old_val=\$ac_cv_env_${ac_var}_value
4162 eval ac_new_val=\$ac_env_${ac_var}_value
4163 case $ac_old_set,$ac_new_set in
4164 set,)
4165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&5
4166 printf "%s\n" "$as_me: error: '$ac_var' was set to '$ac_old_val' in the previous run" >&2;}
4167 ac_cache_corrupted=: ;;
4168 ,set)
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' was not set in the previous run" >&5
4170 printf "%s\n" "$as_me: error: '$ac_var' was not set in the previous run" >&2;}
4171 ac_cache_corrupted=: ;;
4172 ,);;
4173 *)
4174 if test "x$ac_old_val" != "x$ac_new_val"; then
4175 # differences in whitespace do not lead to failure.
4176 ac_old_val_w=`echo x $ac_old_val`
4177 ac_new_val_w=`echo x $ac_new_val`
4178 if test "$ac_old_val_w" != "$ac_new_val_w"; then
4179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: '$ac_var' has changed since the previous run:" >&5
4180 printf "%s\n" "$as_me: error: '$ac_var' has changed since the previous run:" >&2;}
4181 ac_cache_corrupted=:
4182 else
4183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&5
4184 printf "%s\n" "$as_me: warning: ignoring whitespace changes in '$ac_var' since the previous run:" >&2;}
4185 eval $ac_var=\$ac_old_val
4186 fi
4187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: '$ac_old_val'" >&5
4188 printf "%s\n" "$as_me: former value: '$ac_old_val'" >&2;}
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: '$ac_new_val'" >&5
4190 printf "%s\n" "$as_me: current value: '$ac_new_val'" >&2;}
4191 fi;;
4192 esac
4193 # Pass precious variables to config.status.
4194 if test "$ac_new_set" = set; then
4195 case $ac_new_val in
4196 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
4197 *) ac_arg=$ac_var=$ac_new_val ;;
4198 esac
4199 case " $ac_configure_args " in
4200 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
4201 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
4202 esac
4203 fi
4204 done
4205 if $ac_cache_corrupted; then
4206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4207 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
4209 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
4210 as_fn_error $? "run '${MAKE-make} distclean' and/or 'rm $cache_file'
4211 and start over" "$LINENO" 5
4212 fi
4213 ## -------------------- ##
4214 ## Main body of script. ##
4215 ## -------------------- ##
4216
4217 ac_ext=c
4218 ac_cpp='$CPP $CPPFLAGS'
4219 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4220 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4221 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4222
4223
4224
4225
4226
4227 VERSION_NUMBER=`sed -n -e 's/.*version_string = "\(.*\)".*/\1/p' < $srcdir/../src/version.cc`
4228
4229
4230
4231
4232
4233 am__api_version='1.17'
4234
4235
4236
4237 # Find a good install program. We prefer a C program (faster),
4238 # so one script is as good as another. But avoid the broken or
4239 # incompatible versions:
4240 # SysV /etc/install, /usr/sbin/install
4241 # SunOS /usr/etc/install
4242 # IRIX /sbin/install
4243 # AIX /bin/install
4244 # AmigaOS /C/install, which installs bootblocks on floppy discs
4245 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4246 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4247 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4248 # OS/2's system install, which has a completely different semantic
4249 # ./install, which can be erroneously created by make from ./install.sh.
4250 # Reject install programs that cannot install multiple files.
4251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4252 printf %s "checking for a BSD-compatible install... " >&6; }
4253 if test -z "$INSTALL"; then
4254 if test ${ac_cv_path_install+y}
4255 then :
4256 printf %s "(cached) " >&6
4257 else case e in #(
4258 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4260 do
4261 IFS=$as_save_IFS
4262 case $as_dir in #(((
4263 '') as_dir=./ ;;
4264 */) ;;
4265 *) as_dir=$as_dir/ ;;
4266 esac
4267 # Account for fact that we put trailing slashes in our PATH walk.
4268 case $as_dir in #((
4269 ./ | /[cC]/* | \
4270 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4271 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4272 /usr/ucb/* ) ;;
4273 *)
4274 # OSF1 and SCO ODT 3.0 have their own names for install.
4275 # Don't use installbsd from OSF since it installs stuff as root
4276 # by default.
4277 for ac_prog in ginstall scoinst install; do
4278 for ac_exec_ext in '' $ac_executable_extensions; do
4279 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4280 if test $ac_prog = install &&
4281 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4282 # AIX install. It has an incompatible calling convention.
4283 :
4284 elif test $ac_prog = install &&
4285 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4286 # program-specific install script used by HP pwplus--don't use.
4287 :
4288 else
4289 rm -rf conftest.one conftest.two conftest.dir
4290 echo one > conftest.one
4291 echo two > conftest.two
4292 mkdir conftest.dir
4293 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4294 test -s conftest.one && test -s conftest.two &&
4295 test -s conftest.dir/conftest.one &&
4296 test -s conftest.dir/conftest.two
4297 then
4298 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4299 break 3
4300 fi
4301 fi
4302 fi
4303 done
4304 done
4305 ;;
4306 esac
4307
4308 done
4309 IFS=$as_save_IFS
4310
4311 rm -rf conftest.one conftest.two conftest.dir
4312 ;;
4313 esac
4314 fi
4315 if test ${ac_cv_path_install+y}; then
4316 INSTALL=$ac_cv_path_install
4317 else
4318 # As a last resort, use the slow shell script. Don't cache a
4319 # value for INSTALL within a source directory, because that will
4320 # break other packages using the cache if that directory is
4321 # removed, or if the value is a relative name.
4322 INSTALL=$ac_install_sh
4323 fi
4324 fi
4325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4326 printf "%s\n" "$INSTALL" >&6; }
4327
4328 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4329 # It thinks the first close brace ends the variable substitution.
4330 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4331
4332 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4333
4334 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4335
4336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sleep supports fractional seconds" >&5
4337 printf %s "checking whether sleep supports fractional seconds... " >&6; }
4338 if test ${am_cv_sleep_fractional_seconds+y}
4339 then :
4340 printf %s "(cached) " >&6
4341 else case e in #(
4342 e) if sleep 0.001 2>/dev/null
4343 then :
4344 am_cv_sleep_fractional_seconds=yes
4345 else case e in #(
4346 e) am_cv_sleep_fractional_seconds=no ;;
4347 esac
4348 fi
4349 ;;
4350 esac
4351 fi
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_sleep_fractional_seconds" >&5
4353 printf "%s\n" "$am_cv_sleep_fractional_seconds" >&6; }
4354
4355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking filesystem timestamp resolution" >&5
4356 printf %s "checking filesystem timestamp resolution... " >&6; }
4357 if test ${am_cv_filesystem_timestamp_resolution+y}
4358 then :
4359 printf %s "(cached) " >&6
4360 else case e in #(
4361 e) # Default to the worst case.
4362 am_cv_filesystem_timestamp_resolution=2
4363
4364 # Only try to go finer than 1 sec if sleep can do it.
4365 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
4366 # - 1 sec is not much of a win compared to 2 sec, and
4367 # - it takes 2 seconds to perform the test whether 1 sec works.
4368 #
4369 # Instead, just use the default 2s on platforms that have 1s resolution,
4370 # accept the extra 1s delay when using $sleep in the Automake tests, in
4371 # exchange for not incurring the 2s delay for running the test for all
4372 # packages.
4373 #
4374 am_try_resolutions=
4375 if test "$am_cv_sleep_fractional_seconds" = yes; then
4376 # Even a millisecond often causes a bunch of false positives,
4377 # so just try a hundredth of a second. The time saved between .001 and
4378 # .01 is not terribly consequential.
4379 am_try_resolutions="0.01 0.1 $am_try_resolutions"
4380 fi
4381
4382 # In order to catch current-generation FAT out, we must *modify* files
4383 # that already exist; the *creation* timestamp is finer. Use names
4384 # that make ls -t sort them differently when they have equal
4385 # timestamps than when they have distinct timestamps, keeping
4386 # in mind that ls -t prints the *newest* file first.
4387 rm -f conftest.ts?
4388 : > conftest.ts1
4389 : > conftest.ts2
4390 : > conftest.ts3
4391
4392 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
4393 # clobber the current shell's arguments. (Outer-level square brackets
4394 # are removed by m4; they're present so that m4 does not expand
4395 # <dollar><star>; be careful, easy to get confused.)
4396 if (
4397 set X `ls -t conftest.ts[12]` &&
4398 {
4399 test "$*" != "X conftest.ts1 conftest.ts2" ||
4400 test "$*" != "X conftest.ts2 conftest.ts1";
4401 }
4402 ); then :; else
4403 # If neither matched, then we have a broken ls. This can happen
4404 # if, for instance, CONFIG_SHELL is bash and it inherits a
4405 # broken ls alias from the environment. This has actually
4406 # happened. Such a system could not be considered "sane".
4407 printf "%s\n" ""Bad output from ls -t: \"`ls -t conftest.ts[12]`\""" >&5
4408 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
4409 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
4410 as_fn_error $? "ls -t produces unexpected output.
4411 Make sure there is not a broken ls alias in your environment.
4412 See 'config.log' for more details" "$LINENO" 5; }
4413 fi
4414
4415 for am_try_res in $am_try_resolutions; do
4416 # Any one fine-grained sleep might happen to cross the boundary
4417 # between two values of a coarser actual resolution, but if we do
4418 # two fine-grained sleeps in a row, at least one of them will fall
4419 # entirely within a coarse interval.
4420 echo alpha > conftest.ts1
4421 sleep $am_try_res
4422 echo beta > conftest.ts2
4423 sleep $am_try_res
4424 echo gamma > conftest.ts3
4425
4426 # We assume that 'ls -t' will make use of high-resolution
4427 # timestamps if the operating system supports them at all.
4428 if (set X `ls -t conftest.ts?` &&
4429 test "$2" = conftest.ts3 &&
4430 test "$3" = conftest.ts2 &&
4431 test "$4" = conftest.ts1); then
4432 #
4433 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
4434 # because we don't need to test make.
4435 make_ok=true
4436 if test $am_try_res != 1; then
4437 # But if we've succeeded so far with a subsecond resolution, we
4438 # have one more thing to check: make. It can happen that
4439 # everything else supports the subsecond mtimes, but make doesn't;
4440 # notably on macOS, which ships make 3.81 from 2006 (the last one
4441 # released under GPLv2). https://bugs.gnu.org/68808
4442 #
4443 # We test $MAKE if it is defined in the environment, else "make".
4444 # It might get overridden later, but our hope is that in practice
4445 # it does not matter: it is the system "make" which is (by far)
4446 # the most likely to be broken, whereas if the user overrides it,
4447 # probably they did so with a better, or at least not worse, make.
4448 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
4449 #
4450 # Create a Makefile (real tab character here):
4451 rm -f conftest.mk
4452 echo 'conftest.ts1: conftest.ts2' >conftest.mk
4453 echo ' touch conftest.ts2' >>conftest.mk
4454 #
4455 # Now, running
4456 # touch conftest.ts1; touch conftest.ts2; make
4457 # should touch ts1 because ts2 is newer. This could happen by luck,
4458 # but most often, it will fail if make's support is insufficient. So
4459 # test for several consecutive successes.
4460 #
4461 # (We reuse conftest.ts[12] because we still want to modify existing
4462 # files, not create new ones, per above.)
4463 n=0
4464 make=${MAKE-make}
4465 until test $n -eq 3; do
4466 echo one > conftest.ts1
4467 sleep $am_try_res
4468 echo two > conftest.ts2 # ts2 should now be newer than ts1
4469 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
4470 make_ok=false
4471 break # out of $n loop
4472 fi
4473 n=`expr $n + 1`
4474 done
4475 fi
4476 #
4477 if $make_ok; then
4478 # Everything we know to check worked out, so call this resolution good.
4479 am_cv_filesystem_timestamp_resolution=$am_try_res
4480 break # out of $am_try_res loop
4481 fi
4482 # Otherwise, we'll go on to check the next resolution.
4483 fi
4484 done
4485 rm -f conftest.ts?
4486 # (end _am_filesystem_timestamp_resolution)
4487 ;;
4488 esac
4489 fi
4490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_filesystem_timestamp_resolution" >&5
4491 printf "%s\n" "$am_cv_filesystem_timestamp_resolution" >&6; }
4492
4493 # This check should not be cached, as it may vary across builds of
4494 # different projects.
4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4496 printf %s "checking whether build environment is sane... " >&6; }
4497 # Reject unsafe characters in $srcdir or the absolute working directory
4498 # name. Accept space and tab only in the latter.
4499 am_lf='
4500 '
4501 case `pwd` in
4502 *[\\\"\#\$\&\'\`$am_lf]*)
4503 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4504 esac
4505 case $srcdir in
4506 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4507 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4508 esac
4509
4510 # Do 'set' in a subshell so we don't clobber the current shell's
4511 # arguments. Must try -L first in case configure is actually a
4512 # symlink; some systems play weird games with the mod time of symlinks
4513 # (eg FreeBSD returns the mod time of the symlink's containing
4514 # directory).
4515 am_build_env_is_sane=no
4516 am_has_slept=no
4517 rm -f conftest.file
4518 for am_try in 1 2; do
4519 echo "timestamp, slept: $am_has_slept" > conftest.file
4520 if (
4521 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4522 if test "$*" = "X"; then
4523 # -L didn't work.
4524 set X `ls -t "$srcdir/configure" conftest.file`
4525 fi
4526 test "$2" = conftest.file
4527 ); then
4528 am_build_env_is_sane=yes
4529 break
4530 fi
4531 # Just in case.
4532 sleep "$am_cv_filesystem_timestamp_resolution"
4533 am_has_slept=yes
4534 done
4535
4536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_build_env_is_sane" >&5
4537 printf "%s\n" "$am_build_env_is_sane" >&6; }
4538 if test "$am_build_env_is_sane" = no; then
4539 as_fn_error $? "newly created file is older than distributed files!
4540 Check your system clock" "$LINENO" 5
4541 fi
4542
4543 # If we didn't sleep, we still need to ensure time stamps of config.status and
4544 # generated files are strictly newer.
4545 am_sleep_pid=
4546 if test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1
4547 then :
4548
4549 else case e in #(
4550 e) ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
4551 am_sleep_pid=$!
4552 ;;
4553 esac
4554 fi
4555
4556 rm -f conftest.file
4557
4558 test "$program_prefix" != NONE &&
4559 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4560 # Use a double $ so make ignores it.
4561 test "$program_suffix" != NONE &&
4562 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4563 # Double any \ or $.
4564 # By default was 's,x,x', remove it if useless.
4565 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4566 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4567
4568
4569 # Expand $ac_aux_dir to an absolute path.
4570 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4571
4572
4573 if test x"${MISSING+set}" != xset; then
4574 MISSING="\${SHELL} '$am_aux_dir/missing'"
4575 fi
4576 # Use eval to expand $SHELL
4577 if eval "$MISSING --is-lightweight"; then
4578 am_missing_run="$MISSING "
4579 else
4580 am_missing_run=
4581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4582 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4583 fi
4584
4585 if test x"${install_sh+set}" != xset; then
4586 case $am_aux_dir in
4587 *\ * | *\ *)
4588 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4589 *)
4590 install_sh="\${SHELL} $am_aux_dir/install-sh"
4591 esac
4592 fi
4593
4594 # Installed binaries are usually stripped using 'strip' when the user
4595 # run "make install-strip". However 'strip' might not be the right
4596 # tool to use in cross-compilation environments, therefore Automake
4597 # will honor the 'STRIP' environment variable to overrule this program.
4598 if test "$cross_compiling" != no; then
4599 if test -n "$ac_tool_prefix"; then
4600 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4601 set dummy ${ac_tool_prefix}strip; ac_word=$2
4602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4603 printf %s "checking for $ac_word... " >&6; }
4604 if test ${ac_cv_prog_STRIP+y}
4605 then :
4606 printf %s "(cached) " >&6
4607 else case e in #(
4608 e) if test -n "$STRIP"; then
4609 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4610 else
4611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4612 for as_dir in $PATH
4613 do
4614 IFS=$as_save_IFS
4615 case $as_dir in #(((
4616 '') as_dir=./ ;;
4617 */) ;;
4618 *) as_dir=$as_dir/ ;;
4619 esac
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4622 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4623 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4624 break 2
4625 fi
4626 done
4627 done
4628 IFS=$as_save_IFS
4629
4630 fi ;;
4631 esac
4632 fi
4633 STRIP=$ac_cv_prog_STRIP
4634 if test -n "$STRIP"; then
4635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4636 printf "%s\n" "$STRIP" >&6; }
4637 else
4638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4639 printf "%s\n" "no" >&6; }
4640 fi
4641
4642
4643 fi
4644 if test -z "$ac_cv_prog_STRIP"; then
4645 ac_ct_STRIP=$STRIP
4646 # Extract the first word of "strip", so it can be a program name with args.
4647 set dummy strip; ac_word=$2
4648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4649 printf %s "checking for $ac_word... " >&6; }
4650 if test ${ac_cv_prog_ac_ct_STRIP+y}
4651 then :
4652 printf %s "(cached) " >&6
4653 else case e in #(
4654 e) if test -n "$ac_ct_STRIP"; then
4655 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4656 else
4657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4658 for as_dir in $PATH
4659 do
4660 IFS=$as_save_IFS
4661 case $as_dir in #(((
4662 '') as_dir=./ ;;
4663 */) ;;
4664 *) as_dir=$as_dir/ ;;
4665 esac
4666 for ac_exec_ext in '' $ac_executable_extensions; do
4667 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4668 ac_cv_prog_ac_ct_STRIP="strip"
4669 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4670 break 2
4671 fi
4672 done
4673 done
4674 IFS=$as_save_IFS
4675
4676 fi ;;
4677 esac
4678 fi
4679 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4680 if test -n "$ac_ct_STRIP"; then
4681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4682 printf "%s\n" "$ac_ct_STRIP" >&6; }
4683 else
4684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4685 printf "%s\n" "no" >&6; }
4686 fi
4687
4688 if test "x$ac_ct_STRIP" = x; then
4689 STRIP=":"
4690 else
4691 case $cross_compiling:$ac_tool_warned in
4692 yes:)
4693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4694 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4695 ac_tool_warned=yes ;;
4696 esac
4697 STRIP=$ac_ct_STRIP
4698 fi
4699 else
4700 STRIP="$ac_cv_prog_STRIP"
4701 fi
4702
4703 fi
4704 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4705
4706
4707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4708 printf %s "checking for a race-free mkdir -p... " >&6; }
4709 if test -z "$MKDIR_P"; then
4710 if test ${ac_cv_path_mkdir+y}
4711 then :
4712 printf %s "(cached) " >&6
4713 else case e in #(
4714 e) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4715 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4716 do
4717 IFS=$as_save_IFS
4718 case $as_dir in #(((
4719 '') as_dir=./ ;;
4720 */) ;;
4721 *) as_dir=$as_dir/ ;;
4722 esac
4723 for ac_prog in mkdir gmkdir; do
4724 for ac_exec_ext in '' $ac_executable_extensions; do
4725 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4726 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4727 'mkdir ('*'coreutils) '* | \
4728 *'BusyBox '* | \
4729 'mkdir (fileutils) '4.1*)
4730 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4731 break 3;;
4732 esac
4733 done
4734 done
4735 done
4736 IFS=$as_save_IFS
4737 ;;
4738 esac
4739 fi
4740
4741 test -d ./--version && rmdir ./--version
4742 if test ${ac_cv_path_mkdir+y}; then
4743 MKDIR_P="$ac_cv_path_mkdir -p"
4744 else
4745 # As a last resort, use plain mkdir -p,
4746 # in the hope it doesn't have the bugs of ancient mkdir.
4747 MKDIR_P='mkdir -p'
4748 fi
4749 fi
4750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4751 printf "%s\n" "$MKDIR_P" >&6; }
4752
4753 for ac_prog in gawk mawk nawk awk
4754 do
4755 # Extract the first word of "$ac_prog", so it can be a program name with args.
4756 set dummy $ac_prog; ac_word=$2
4757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4758 printf %s "checking for $ac_word... " >&6; }
4759 if test ${ac_cv_prog_AWK+y}
4760 then :
4761 printf %s "(cached) " >&6
4762 else case e in #(
4763 e) if test -n "$AWK"; then
4764 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4768 do
4769 IFS=$as_save_IFS
4770 case $as_dir in #(((
4771 '') as_dir=./ ;;
4772 */) ;;
4773 *) as_dir=$as_dir/ ;;
4774 esac
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4777 ac_cv_prog_AWK="$ac_prog"
4778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4779 break 2
4780 fi
4781 done
4782 done
4783 IFS=$as_save_IFS
4784
4785 fi ;;
4786 esac
4787 fi
4788 AWK=$ac_cv_prog_AWK
4789 if test -n "$AWK"; then
4790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4791 printf "%s\n" "$AWK" >&6; }
4792 else
4793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4794 printf "%s\n" "no" >&6; }
4795 fi
4796
4797
4798 test -n "$AWK" && break
4799 done
4800
4801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4802 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4803 set x ${MAKE-make}
4804 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4805 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4806 then :
4807 printf %s "(cached) " >&6
4808 else case e in #(
4809 e) cat >conftest.make <<\_ACEOF
4810 SHELL = /bin/sh
4811 all:
4812 @echo '@@@%%%=$(MAKE)=@@@%%%'
4813 _ACEOF
4814 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4815 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4816 *@@@%%%=?*=@@@%%%*)
4817 eval ac_cv_prog_make_${ac_make}_set=yes;;
4818 *)
4819 eval ac_cv_prog_make_${ac_make}_set=no;;
4820 esac
4821 rm -f conftest.make ;;
4822 esac
4823 fi
4824 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4826 printf "%s\n" "yes" >&6; }
4827 SET_MAKE=
4828 else
4829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4830 printf "%s\n" "no" >&6; }
4831 SET_MAKE="MAKE=${MAKE-make}"
4832 fi
4833
4834 rm -rf .tst 2>/dev/null
4835 mkdir .tst 2>/dev/null
4836 if test -d .tst; then
4837 am__leading_dot=.
4838 else
4839 am__leading_dot=_
4840 fi
4841 rmdir .tst 2>/dev/null
4842
4843 AM_DEFAULT_VERBOSITY=1
4844 # Check whether --enable-silent-rules was given.
4845 if test ${enable_silent_rules+y}
4846 then :
4847 enableval=$enable_silent_rules;
4848 fi
4849
4850 am_make=${MAKE-make}
4851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4852 printf %s "checking whether $am_make supports nested variables... " >&6; }
4853 if test ${am_cv_make_support_nested_variables+y}
4854 then :
4855 printf %s "(cached) " >&6
4856 else case e in #(
4857 e) if printf "%s\n" 'TRUE=$(BAR$(V))
4858 BAR0=false
4859 BAR1=true
4860 V=1
4861 am__doit:
4862 @$(TRUE)
4863 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4864 am_cv_make_support_nested_variables=yes
4865 else
4866 am_cv_make_support_nested_variables=no
4867 fi ;;
4868 esac
4869 fi
4870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4871 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4872 AM_BACKSLASH='\'
4873
4874 am__rm_f_notfound=
4875 if (rm -f && rm -fr && rm -rf) 2>/dev/null
4876 then :
4877
4878 else case e in #(
4879 e) am__rm_f_notfound='""' ;;
4880 esac
4881 fi
4882
4883
4884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking xargs -n works" >&5
4885 printf %s "checking xargs -n works... " >&6; }
4886 if test ${am_cv_xargs_n_works+y}
4887 then :
4888 printf %s "(cached) " >&6
4889 else case e in #(
4890 e) if test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
4891 3"
4892 then :
4893 am_cv_xargs_n_works=yes
4894 else case e in #(
4895 e) am_cv_xargs_n_works=no ;;
4896 esac
4897 fi ;;
4898 esac
4899 fi
4900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_xargs_n_works" >&5
4901 printf "%s\n" "$am_cv_xargs_n_works" >&6; }
4902 if test "$am_cv_xargs_n_works" = yes
4903 then :
4904 am__xargs_n='xargs -n'
4905 else case e in #(
4906 e) am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "" "$am__xargs_n_arg"; done; }'
4907 ;;
4908 esac
4909 fi
4910
4911
4912
4913 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4914 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4915 # is not polluted with repeated "-I."
4916 am__isrc=' -I$(srcdir)'
4917 # test to see if srcdir already configured
4918 if test -f $srcdir/config.status; then
4919 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4920 fi
4921 fi
4922
4923 # test whether we have cygpath
4924 if test -z "$CYGPATH_W"; then
4925 if (cygpath --version) >/dev/null 2>/dev/null; then
4926 CYGPATH_W='cygpath -w'
4927 else
4928 CYGPATH_W=echo
4929 fi
4930 fi
4931
4932
4933 # Define the identity of the package.
4934 PACKAGE='gperf'
4935 VERSION=''
4936
4937
4938 # Some tools Automake needs.
4939
4940 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4941
4942
4943 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4944
4945
4946 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4947
4948
4949 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4950
4951
4952 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4953
4954 # For better backward compatibility. To be removed once Automake 1.9.x
4955 # dies out for good. For more background, see:
4956 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4957 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4958 mkdir_p='$(MKDIR_P)'
4959
4960 # We need awk for the "check" target (and possibly the TAP driver). The
4961 # system "awk" is bad on some platforms.
4962 # Always define AMTAR for backward compatibility. Yes, it's still used
4963 # in the wild :-( We should find a proper way to deprecate it ...
4964 AMTAR='$${TAR-tar}'
4965
4966
4967 # We'll loop over all known methods to create a tar archive until one works.
4968 _am_tools='gnutar pax cpio none'
4969
4970 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4971
4972
4973
4974
4975
4976 # Variables for tags utilities; see am/tags.am
4977 if test -z "$CTAGS"; then
4978 CTAGS=ctags
4979 fi
4980
4981 if test -z "$ETAGS"; then
4982 ETAGS=etags
4983 fi
4984
4985 if test -z "$CSCOPE"; then
4986 CSCOPE=cscope
4987 fi
4988
4989
4990
4991
4992
4993
4994
4995 VERSION="$VERSION_NUMBER"
4996
4997 PACKAGE_VERSION="$VERSION_NUMBER"
4998
4999 PACKAGE_STRING="gperf $VERSION_NUMBER"
5000
5001 printf "%s\n" "#undef PACKAGE_VERSION" >>confdefs.h
5002
5003 printf "%s\n" "#define PACKAGE_VERSION \"$VERSION_NUMBER\"" >>confdefs.h
5004
5005 printf "%s\n" "#undef PACKAGE_STRING" >>confdefs.h
5006
5007 printf "%s\n" "#define PACKAGE_STRING \"gperf $VERSION_NUMBER\"" >>confdefs.h
5008
5009
5010
5011 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
5012
5013
5014 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
5015
5016
5017
5018 ac_config_headers="$ac_config_headers config.h"
5019
5020
5021
5022
5023
5024
5025
5026
5027
5028
5029 ac_ext=c
5030 ac_cpp='$CPP $CPPFLAGS'
5031 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5034 if test -n "$ac_tool_prefix"; then
5035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5036 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5038 printf %s "checking for $ac_word... " >&6; }
5039 if test ${ac_cv_prog_CC+y}
5040 then :
5041 printf %s "(cached) " >&6
5042 else case e in #(
5043 e) if test -n "$CC"; then
5044 ac_cv_prog_CC="$CC" # Let the user override the test.
5045 else
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049 IFS=$as_save_IFS
5050 case $as_dir in #(((
5051 '') as_dir=./ ;;
5052 */) ;;
5053 *) as_dir=$as_dir/ ;;
5054 esac
5055 for ac_exec_ext in '' $ac_executable_extensions; do
5056 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5057 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5059 break 2
5060 fi
5061 done
5062 done
5063 IFS=$as_save_IFS
5064
5065 fi ;;
5066 esac
5067 fi
5068 CC=$ac_cv_prog_CC
5069 if test -n "$CC"; then
5070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5071 printf "%s\n" "$CC" >&6; }
5072 else
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5074 printf "%s\n" "no" >&6; }
5075 fi
5076
5077
5078 fi
5079 if test -z "$ac_cv_prog_CC"; then
5080 ac_ct_CC=$CC
5081 # Extract the first word of "gcc", so it can be a program name with args.
5082 set dummy gcc; ac_word=$2
5083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 printf %s "checking for $ac_word... " >&6; }
5085 if test ${ac_cv_prog_ac_ct_CC+y}
5086 then :
5087 printf %s "(cached) " >&6
5088 else case e in #(
5089 e) if test -n "$ac_ct_CC"; then
5090 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5091 else
5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5093 for as_dir in $PATH
5094 do
5095 IFS=$as_save_IFS
5096 case $as_dir in #(((
5097 '') as_dir=./ ;;
5098 */) ;;
5099 *) as_dir=$as_dir/ ;;
5100 esac
5101 for ac_exec_ext in '' $ac_executable_extensions; do
5102 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5103 ac_cv_prog_ac_ct_CC="gcc"
5104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5105 break 2
5106 fi
5107 done
5108 done
5109 IFS=$as_save_IFS
5110
5111 fi ;;
5112 esac
5113 fi
5114 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5115 if test -n "$ac_ct_CC"; then
5116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5117 printf "%s\n" "$ac_ct_CC" >&6; }
5118 else
5119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5120 printf "%s\n" "no" >&6; }
5121 fi
5122
5123 if test "x$ac_ct_CC" = x; then
5124 CC=""
5125 else
5126 case $cross_compiling:$ac_tool_warned in
5127 yes:)
5128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5129 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5130 ac_tool_warned=yes ;;
5131 esac
5132 CC=$ac_ct_CC
5133 fi
5134 else
5135 CC="$ac_cv_prog_CC"
5136 fi
5137
5138 if test -z "$CC"; then
5139 if test -n "$ac_tool_prefix"; then
5140 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5141 set dummy ${ac_tool_prefix}cc; ac_word=$2
5142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5143 printf %s "checking for $ac_word... " >&6; }
5144 if test ${ac_cv_prog_CC+y}
5145 then :
5146 printf %s "(cached) " >&6
5147 else case e in #(
5148 e) if test -n "$CC"; then
5149 ac_cv_prog_CC="$CC" # Let the user override the test.
5150 else
5151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5152 for as_dir in $PATH
5153 do
5154 IFS=$as_save_IFS
5155 case $as_dir in #(((
5156 '') as_dir=./ ;;
5157 */) ;;
5158 *) as_dir=$as_dir/ ;;
5159 esac
5160 for ac_exec_ext in '' $ac_executable_extensions; do
5161 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5162 ac_cv_prog_CC="${ac_tool_prefix}cc"
5163 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5164 break 2
5165 fi
5166 done
5167 done
5168 IFS=$as_save_IFS
5169
5170 fi ;;
5171 esac
5172 fi
5173 CC=$ac_cv_prog_CC
5174 if test -n "$CC"; then
5175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5176 printf "%s\n" "$CC" >&6; }
5177 else
5178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5179 printf "%s\n" "no" >&6; }
5180 fi
5181
5182
5183 fi
5184 fi
5185 if test -z "$CC"; then
5186 # Extract the first word of "cc", so it can be a program name with args.
5187 set dummy cc; ac_word=$2
5188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5189 printf %s "checking for $ac_word... " >&6; }
5190 if test ${ac_cv_prog_CC+y}
5191 then :
5192 printf %s "(cached) " >&6
5193 else case e in #(
5194 e) if test -n "$CC"; then
5195 ac_cv_prog_CC="$CC" # Let the user override the test.
5196 else
5197 ac_prog_rejected=no
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5200 do
5201 IFS=$as_save_IFS
5202 case $as_dir in #(((
5203 '') as_dir=./ ;;
5204 */) ;;
5205 *) as_dir=$as_dir/ ;;
5206 esac
5207 for ac_exec_ext in '' $ac_executable_extensions; do
5208 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5209 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5210 ac_prog_rejected=yes
5211 continue
5212 fi
5213 ac_cv_prog_CC="cc"
5214 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5215 break 2
5216 fi
5217 done
5218 done
5219 IFS=$as_save_IFS
5220
5221 if test $ac_prog_rejected = yes; then
5222 # We found a bogon in the path, so make sure we never use it.
5223 set dummy $ac_cv_prog_CC
5224 shift
5225 if test $# != 0; then
5226 # We chose a different compiler from the bogus one.
5227 # However, it has the same basename, so the bogon will be chosen
5228 # first if we set CC to just the basename; use the full file name.
5229 shift
5230 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
5231 fi
5232 fi
5233 fi ;;
5234 esac
5235 fi
5236 CC=$ac_cv_prog_CC
5237 if test -n "$CC"; then
5238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5239 printf "%s\n" "$CC" >&6; }
5240 else
5241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 printf "%s\n" "no" >&6; }
5243 fi
5244
5245
5246 fi
5247 if test -z "$CC"; then
5248 if test -n "$ac_tool_prefix"; then
5249 for ac_prog in cl.exe
5250 do
5251 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5252 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5254 printf %s "checking for $ac_word... " >&6; }
5255 if test ${ac_cv_prog_CC+y}
5256 then :
5257 printf %s "(cached) " >&6
5258 else case e in #(
5259 e) if test -n "$CC"; then
5260 ac_cv_prog_CC="$CC" # Let the user override the test.
5261 else
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5264 do
5265 IFS=$as_save_IFS
5266 case $as_dir in #(((
5267 '') as_dir=./ ;;
5268 */) ;;
5269 *) as_dir=$as_dir/ ;;
5270 esac
5271 for ac_exec_ext in '' $ac_executable_extensions; do
5272 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5273 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5274 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5275 break 2
5276 fi
5277 done
5278 done
5279 IFS=$as_save_IFS
5280
5281 fi ;;
5282 esac
5283 fi
5284 CC=$ac_cv_prog_CC
5285 if test -n "$CC"; then
5286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5287 printf "%s\n" "$CC" >&6; }
5288 else
5289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 printf "%s\n" "no" >&6; }
5291 fi
5292
5293
5294 test -n "$CC" && break
5295 done
5296 fi
5297 if test -z "$CC"; then
5298 ac_ct_CC=$CC
5299 for ac_prog in cl.exe
5300 do
5301 # Extract the first word of "$ac_prog", so it can be a program name with args.
5302 set dummy $ac_prog; ac_word=$2
5303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5304 printf %s "checking for $ac_word... " >&6; }
5305 if test ${ac_cv_prog_ac_ct_CC+y}
5306 then :
5307 printf %s "(cached) " >&6
5308 else case e in #(
5309 e) if test -n "$ac_ct_CC"; then
5310 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5311 else
5312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5313 for as_dir in $PATH
5314 do
5315 IFS=$as_save_IFS
5316 case $as_dir in #(((
5317 '') as_dir=./ ;;
5318 */) ;;
5319 *) as_dir=$as_dir/ ;;
5320 esac
5321 for ac_exec_ext in '' $ac_executable_extensions; do
5322 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5323 ac_cv_prog_ac_ct_CC="$ac_prog"
5324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5325 break 2
5326 fi
5327 done
5328 done
5329 IFS=$as_save_IFS
5330
5331 fi ;;
5332 esac
5333 fi
5334 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5335 if test -n "$ac_ct_CC"; then
5336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5337 printf "%s\n" "$ac_ct_CC" >&6; }
5338 else
5339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5340 printf "%s\n" "no" >&6; }
5341 fi
5342
5343
5344 test -n "$ac_ct_CC" && break
5345 done
5346
5347 if test "x$ac_ct_CC" = x; then
5348 CC=""
5349 else
5350 case $cross_compiling:$ac_tool_warned in
5351 yes:)
5352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5353 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5354 ac_tool_warned=yes ;;
5355 esac
5356 CC=$ac_ct_CC
5357 fi
5358 fi
5359
5360 fi
5361 if test -z "$CC"; then
5362 if test -n "$ac_tool_prefix"; then
5363 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5364 set dummy ${ac_tool_prefix}clang; ac_word=$2
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5366 printf %s "checking for $ac_word... " >&6; }
5367 if test ${ac_cv_prog_CC+y}
5368 then :
5369 printf %s "(cached) " >&6
5370 else case e in #(
5371 e) if test -n "$CC"; then
5372 ac_cv_prog_CC="$CC" # Let the user override the test.
5373 else
5374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5375 for as_dir in $PATH
5376 do
5377 IFS=$as_save_IFS
5378 case $as_dir in #(((
5379 '') as_dir=./ ;;
5380 */) ;;
5381 *) as_dir=$as_dir/ ;;
5382 esac
5383 for ac_exec_ext in '' $ac_executable_extensions; do
5384 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5385 ac_cv_prog_CC="${ac_tool_prefix}clang"
5386 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5387 break 2
5388 fi
5389 done
5390 done
5391 IFS=$as_save_IFS
5392
5393 fi ;;
5394 esac
5395 fi
5396 CC=$ac_cv_prog_CC
5397 if test -n "$CC"; then
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5399 printf "%s\n" "$CC" >&6; }
5400 else
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 printf "%s\n" "no" >&6; }
5403 fi
5404
5405
5406 fi
5407 if test -z "$ac_cv_prog_CC"; then
5408 ac_ct_CC=$CC
5409 # Extract the first word of "clang", so it can be a program name with args.
5410 set dummy clang; ac_word=$2
5411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 printf %s "checking for $ac_word... " >&6; }
5413 if test ${ac_cv_prog_ac_ct_CC+y}
5414 then :
5415 printf %s "(cached) " >&6
5416 else case e in #(
5417 e) if test -n "$ac_ct_CC"; then
5418 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5419 else
5420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421 for as_dir in $PATH
5422 do
5423 IFS=$as_save_IFS
5424 case $as_dir in #(((
5425 '') as_dir=./ ;;
5426 */) ;;
5427 *) as_dir=$as_dir/ ;;
5428 esac
5429 for ac_exec_ext in '' $ac_executable_extensions; do
5430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5431 ac_cv_prog_ac_ct_CC="clang"
5432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5433 break 2
5434 fi
5435 done
5436 done
5437 IFS=$as_save_IFS
5438
5439 fi ;;
5440 esac
5441 fi
5442 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5443 if test -n "$ac_ct_CC"; then
5444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5445 printf "%s\n" "$ac_ct_CC" >&6; }
5446 else
5447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5448 printf "%s\n" "no" >&6; }
5449 fi
5450
5451 if test "x$ac_ct_CC" = x; then
5452 CC=""
5453 else
5454 case $cross_compiling:$ac_tool_warned in
5455 yes:)
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5457 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5458 ac_tool_warned=yes ;;
5459 esac
5460 CC=$ac_ct_CC
5461 fi
5462 else
5463 CC="$ac_cv_prog_CC"
5464 fi
5465
5466 fi
5467
5468
5469 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5470 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5471 as_fn_error $? "no acceptable C compiler found in \$PATH
5472 See 'config.log' for more details" "$LINENO" 5; }
5473
5474 # Provide some information about the compiler.
5475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5476 set X $ac_compile
5477 ac_compiler=$2
5478 for ac_option in --version -v -V -qversion -version; do
5479 { { ac_try="$ac_compiler $ac_option >&5"
5480 case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483 esac
5484 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5485 printf "%s\n" "$ac_try_echo"; } >&5
5486 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5487 ac_status=$?
5488 if test -s conftest.err; then
5489 sed '10a\
5490 ... rest of stderr output deleted ...
5491 10q' conftest.err >conftest.er1
5492 cat conftest.er1 >&5
5493 fi
5494 rm -f conftest.er1 conftest.err
5495 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5496 test $ac_status = 0; }
5497 done
5498
5499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5500 /* end confdefs.h. */
5501
5502 int
5503 main (void)
5504 {
5505
5506 ;
5507 return 0;
5508 }
5509 _ACEOF
5510 ac_clean_files_save=$ac_clean_files
5511 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5512 # Try to create an executable without -o first, disregard a.out.
5513 # It will help us diagnose broken compilers, and finding out an intuition
5514 # of exeext.
5515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5516 printf %s "checking whether the C compiler works... " >&6; }
5517 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5518
5519 # The possible output files:
5520 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5521
5522 ac_rmfiles=
5523 for ac_file in $ac_files
5524 do
5525 case $ac_file in
5526 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5527 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5528 esac
5529 done
5530 rm -f $ac_rmfiles
5531
5532 if { { ac_try="$ac_link_default"
5533 case "(($ac_try" in
5534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5535 *) ac_try_echo=$ac_try;;
5536 esac
5537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5538 printf "%s\n" "$ac_try_echo"; } >&5
5539 (eval "$ac_link_default") 2>&5
5540 ac_status=$?
5541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5542 test $ac_status = 0; }
5543 then :
5544 # Autoconf-2.13 could set the ac_cv_exeext variable to 'no'.
5545 # So ignore a value of 'no', otherwise this would lead to 'EXEEXT = no'
5546 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5547 # so that the user can short-circuit this test for compilers unknown to
5548 # Autoconf.
5549 for ac_file in $ac_files ''
5550 do
5551 test -f "$ac_file" || continue
5552 case $ac_file in
5553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5554 ;;
5555 [ab].out )
5556 # We found the default executable, but exeext='' is most
5557 # certainly right.
5558 break;;
5559 *.* )
5560 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5561 then :; else
5562 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5563 fi
5564 # We set ac_cv_exeext here because the later test for it is not
5565 # safe: cross compilers may not add the suffix if given an '-o'
5566 # argument, so we may need to know it at that point already.
5567 # Even if this section looks crufty: it has the advantage of
5568 # actually working.
5569 break;;
5570 * )
5571 break;;
5572 esac
5573 done
5574 test "$ac_cv_exeext" = no && ac_cv_exeext=
5575
5576 else case e in #(
5577 e) ac_file='' ;;
5578 esac
5579 fi
5580 if test -z "$ac_file"
5581 then :
5582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5583 printf "%s\n" "no" >&6; }
5584 printf "%s\n" "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5586
5587 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5588 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5589 as_fn_error 77 "C compiler cannot create executables
5590 See 'config.log' for more details" "$LINENO" 5; }
5591 else case e in #(
5592 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5593 printf "%s\n" "yes" >&6; } ;;
5594 esac
5595 fi
5596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5597 printf %s "checking for C compiler default output file name... " >&6; }
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5599 printf "%s\n" "$ac_file" >&6; }
5600 ac_exeext=$ac_cv_exeext
5601
5602 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5603 ac_clean_files=$ac_clean_files_save
5604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5605 printf %s "checking for suffix of executables... " >&6; }
5606 if { { ac_try="$ac_link"
5607 case "(($ac_try" in
5608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5609 *) ac_try_echo=$ac_try;;
5610 esac
5611 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5612 printf "%s\n" "$ac_try_echo"; } >&5
5613 (eval "$ac_link") 2>&5
5614 ac_status=$?
5615 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5616 test $ac_status = 0; }
5617 then :
5618 # If both 'conftest.exe' and 'conftest' are 'present' (well, observable)
5619 # catch 'conftest.exe'. For instance with Cygwin, 'ls conftest' will
5620 # work properly (i.e., refer to 'conftest.exe'), while it won't with
5621 # 'rm'.
5622 for ac_file in conftest.exe conftest conftest.*; do
5623 test -f "$ac_file" || continue
5624 case $ac_file in
5625 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5626 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5627 break;;
5628 * ) break;;
5629 esac
5630 done
5631 else case e in #(
5632 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5633 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5634 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5635 See 'config.log' for more details" "$LINENO" 5; } ;;
5636 esac
5637 fi
5638 rm -f conftest conftest$ac_cv_exeext
5639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5640 printf "%s\n" "$ac_cv_exeext" >&6; }
5641
5642 rm -f conftest.$ac_ext
5643 EXEEXT=$ac_cv_exeext
5644 ac_exeext=$EXEEXT
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646 /* end confdefs.h. */
5647 #include <stdio.h>
5648 int
5649 main (void)
5650 {
5651 FILE *f = fopen ("conftest.out", "w");
5652 if (!f)
5653 return 1;
5654 return ferror (f) || fclose (f) != 0;
5655
5656 ;
5657 return 0;
5658 }
5659 _ACEOF
5660 ac_clean_files="$ac_clean_files conftest.out"
5661 # Check that the compiler produces executables we can run. If not, either
5662 # the compiler is broken, or we cross compile.
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5664 printf %s "checking whether we are cross compiling... " >&6; }
5665 if test "$cross_compiling" != yes; then
5666 { { ac_try="$ac_link"
5667 case "(($ac_try" in
5668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5669 *) ac_try_echo=$ac_try;;
5670 esac
5671 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5672 printf "%s\n" "$ac_try_echo"; } >&5
5673 (eval "$ac_link") 2>&5
5674 ac_status=$?
5675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5676 test $ac_status = 0; }
5677 if { ac_try='./conftest$ac_cv_exeext'
5678 { { case "(($ac_try" in
5679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5680 *) ac_try_echo=$ac_try;;
5681 esac
5682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5683 printf "%s\n" "$ac_try_echo"; } >&5
5684 (eval "$ac_try") 2>&5
5685 ac_status=$?
5686 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5687 test $ac_status = 0; }; }; then
5688 cross_compiling=no
5689 else
5690 if test "$cross_compiling" = maybe; then
5691 cross_compiling=yes
5692 else
5693 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5694 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5695 as_fn_error 77 "cannot run C compiled programs.
5696 If you meant to cross compile, use '--host'.
5697 See 'config.log' for more details" "$LINENO" 5; }
5698 fi
5699 fi
5700 fi
5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5702 printf "%s\n" "$cross_compiling" >&6; }
5703
5704 rm -f conftest.$ac_ext conftest$ac_cv_exeext \
5705 conftest.o conftest.obj conftest.out
5706 ac_clean_files=$ac_clean_files_save
5707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5708 printf %s "checking for suffix of object files... " >&6; }
5709 if test ${ac_cv_objext+y}
5710 then :
5711 printf %s "(cached) " >&6
5712 else case e in #(
5713 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5714 /* end confdefs.h. */
5715
5716 int
5717 main (void)
5718 {
5719
5720 ;
5721 return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.o conftest.obj
5725 if { { ac_try="$ac_compile"
5726 case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729 esac
5730 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5731 printf "%s\n" "$ac_try_echo"; } >&5
5732 (eval "$ac_compile") 2>&5
5733 ac_status=$?
5734 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5735 test $ac_status = 0; }
5736 then :
5737 for ac_file in conftest.o conftest.obj conftest.*; do
5738 test -f "$ac_file" || continue;
5739 case $ac_file in
5740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5741 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5742 break;;
5743 esac
5744 done
5745 else case e in #(
5746 e) printf "%s\n" "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
5750 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
5751 as_fn_error $? "cannot compute suffix of object files: cannot compile
5752 See 'config.log' for more details" "$LINENO" 5; } ;;
5753 esac
5754 fi
5755 rm -f conftest.$ac_cv_objext conftest.$ac_ext ;;
5756 esac
5757 fi
5758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5759 printf "%s\n" "$ac_cv_objext" >&6; }
5760 OBJEXT=$ac_cv_objext
5761 ac_objext=$OBJEXT
5762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5763 printf %s "checking whether the compiler supports GNU C... " >&6; }
5764 if test ${ac_cv_c_compiler_gnu+y}
5765 then :
5766 printf %s "(cached) " >&6
5767 else case e in #(
5768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770
5771 int
5772 main (void)
5773 {
5774 #ifndef __GNUC__
5775 choke me
5776 #endif
5777
5778 ;
5779 return 0;
5780 }
5781 _ACEOF
5782 if ac_fn_c_try_compile "$LINENO"
5783 then :
5784 ac_compiler_gnu=yes
5785 else case e in #(
5786 e) ac_compiler_gnu=no ;;
5787 esac
5788 fi
5789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5790 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5791 ;;
5792 esac
5793 fi
5794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5795 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5797
5798 if test $ac_compiler_gnu = yes; then
5799 GCC=yes
5800 else
5801 GCC=
5802 fi
5803 ac_test_CFLAGS=${CFLAGS+y}
5804 ac_save_CFLAGS=$CFLAGS
5805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5806 printf %s "checking whether $CC accepts -g... " >&6; }
5807 if test ${ac_cv_prog_cc_g+y}
5808 then :
5809 printf %s "(cached) " >&6
5810 else case e in #(
5811 e) ac_save_c_werror_flag=$ac_c_werror_flag
5812 ac_c_werror_flag=yes
5813 ac_cv_prog_cc_g=no
5814 CFLAGS="-g"
5815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5816 /* end confdefs.h. */
5817
5818 int
5819 main (void)
5820 {
5821
5822 ;
5823 return 0;
5824 }
5825 _ACEOF
5826 if ac_fn_c_try_compile "$LINENO"
5827 then :
5828 ac_cv_prog_cc_g=yes
5829 else case e in #(
5830 e) CFLAGS=""
5831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5832 /* end confdefs.h. */
5833
5834 int
5835 main (void)
5836 {
5837
5838 ;
5839 return 0;
5840 }
5841 _ACEOF
5842 if ac_fn_c_try_compile "$LINENO"
5843 then :
5844
5845 else case e in #(
5846 e) ac_c_werror_flag=$ac_save_c_werror_flag
5847 CFLAGS="-g"
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5850
5851 int
5852 main (void)
5853 {
5854
5855 ;
5856 return 0;
5857 }
5858 _ACEOF
5859 if ac_fn_c_try_compile "$LINENO"
5860 then :
5861 ac_cv_prog_cc_g=yes
5862 fi
5863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5864 esac
5865 fi
5866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
5867 esac
5868 fi
5869 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5870 ac_c_werror_flag=$ac_save_c_werror_flag ;;
5871 esac
5872 fi
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5874 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5875 if test $ac_test_CFLAGS; then
5876 CFLAGS=$ac_save_CFLAGS
5877 elif test $ac_cv_prog_cc_g = yes; then
5878 if test "$GCC" = yes; then
5879 CFLAGS="-g -O2"
5880 else
5881 CFLAGS="-g"
5882 fi
5883 else
5884 if test "$GCC" = yes; then
5885 CFLAGS="-O2"
5886 else
5887 CFLAGS=
5888 fi
5889 fi
5890 ac_prog_cc_stdc=no
5891 if test x$ac_prog_cc_stdc = xno
5892 then :
5893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5894 printf %s "checking for $CC option to enable C11 features... " >&6; }
5895 if test ${ac_cv_prog_cc_c11+y}
5896 then :
5897 printf %s "(cached) " >&6
5898 else case e in #(
5899 e) ac_cv_prog_cc_c11=no
5900 ac_save_CC=$CC
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5903 $ac_c_conftest_c11_program
5904 _ACEOF
5905 for ac_arg in '' -std=gnu11
5906 do
5907 CC="$ac_save_CC $ac_arg"
5908 if ac_fn_c_try_compile "$LINENO"
5909 then :
5910 ac_cv_prog_cc_c11=$ac_arg
5911 fi
5912 rm -f core conftest.err conftest.$ac_objext conftest.beam
5913 test "x$ac_cv_prog_cc_c11" != "xno" && break
5914 done
5915 rm -f conftest.$ac_ext
5916 CC=$ac_save_CC ;;
5917 esac
5918 fi
5919
5920 if test "x$ac_cv_prog_cc_c11" = xno
5921 then :
5922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5923 printf "%s\n" "unsupported" >&6; }
5924 else case e in #(
5925 e) if test "x$ac_cv_prog_cc_c11" = x
5926 then :
5927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5928 printf "%s\n" "none needed" >&6; }
5929 else case e in #(
5930 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5931 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5932 CC="$CC $ac_cv_prog_cc_c11" ;;
5933 esac
5934 fi
5935 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5936 ac_prog_cc_stdc=c11 ;;
5937 esac
5938 fi
5939 fi
5940 if test x$ac_prog_cc_stdc = xno
5941 then :
5942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5943 printf %s "checking for $CC option to enable C99 features... " >&6; }
5944 if test ${ac_cv_prog_cc_c99+y}
5945 then :
5946 printf %s "(cached) " >&6
5947 else case e in #(
5948 e) ac_cv_prog_cc_c99=no
5949 ac_save_CC=$CC
5950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5951 /* end confdefs.h. */
5952 $ac_c_conftest_c99_program
5953 _ACEOF
5954 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5955 do
5956 CC="$ac_save_CC $ac_arg"
5957 if ac_fn_c_try_compile "$LINENO"
5958 then :
5959 ac_cv_prog_cc_c99=$ac_arg
5960 fi
5961 rm -f core conftest.err conftest.$ac_objext conftest.beam
5962 test "x$ac_cv_prog_cc_c99" != "xno" && break
5963 done
5964 rm -f conftest.$ac_ext
5965 CC=$ac_save_CC ;;
5966 esac
5967 fi
5968
5969 if test "x$ac_cv_prog_cc_c99" = xno
5970 then :
5971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5972 printf "%s\n" "unsupported" >&6; }
5973 else case e in #(
5974 e) if test "x$ac_cv_prog_cc_c99" = x
5975 then :
5976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5977 printf "%s\n" "none needed" >&6; }
5978 else case e in #(
5979 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5980 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5981 CC="$CC $ac_cv_prog_cc_c99" ;;
5982 esac
5983 fi
5984 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5985 ac_prog_cc_stdc=c99 ;;
5986 esac
5987 fi
5988 fi
5989 if test x$ac_prog_cc_stdc = xno
5990 then :
5991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5992 printf %s "checking for $CC option to enable C89 features... " >&6; }
5993 if test ${ac_cv_prog_cc_c89+y}
5994 then :
5995 printf %s "(cached) " >&6
5996 else case e in #(
5997 e) ac_cv_prog_cc_c89=no
5998 ac_save_CC=$CC
5999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6000 /* end confdefs.h. */
6001 $ac_c_conftest_c89_program
6002 _ACEOF
6003 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6004 do
6005 CC="$ac_save_CC $ac_arg"
6006 if ac_fn_c_try_compile "$LINENO"
6007 then :
6008 ac_cv_prog_cc_c89=$ac_arg
6009 fi
6010 rm -f core conftest.err conftest.$ac_objext conftest.beam
6011 test "x$ac_cv_prog_cc_c89" != "xno" && break
6012 done
6013 rm -f conftest.$ac_ext
6014 CC=$ac_save_CC ;;
6015 esac
6016 fi
6017
6018 if test "x$ac_cv_prog_cc_c89" = xno
6019 then :
6020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6021 printf "%s\n" "unsupported" >&6; }
6022 else case e in #(
6023 e) if test "x$ac_cv_prog_cc_c89" = x
6024 then :
6025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6026 printf "%s\n" "none needed" >&6; }
6027 else case e in #(
6028 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6029 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
6030 CC="$CC $ac_cv_prog_cc_c89" ;;
6031 esac
6032 fi
6033 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
6034 ac_prog_cc_stdc=c89 ;;
6035 esac
6036 fi
6037 fi
6038
6039 ac_ext=c
6040 ac_cpp='$CPP $CPPFLAGS'
6041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6044
6045
6046 ac_ext=c
6047 ac_cpp='$CPP $CPPFLAGS'
6048 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6049 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6050 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
6052 printf %s "checking whether $CC understands -c and -o together... " >&6; }
6053 if test ${am_cv_prog_cc_c_o+y}
6054 then :
6055 printf %s "(cached) " >&6
6056 else case e in #(
6057 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6058 /* end confdefs.h. */
6059
6060 int
6061 main (void)
6062 {
6063
6064 ;
6065 return 0;
6066 }
6067 _ACEOF
6068 # Make sure it works both with $CC and with simple cc.
6069 # Following AC_PROG_CC_C_O, we do the test twice because some
6070 # compilers refuse to overwrite an existing .o file with -o,
6071 # though they will create one.
6072 am_cv_prog_cc_c_o=yes
6073 for am_i in 1 2; do
6074 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
6075 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
6076 ac_status=$?
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } \
6079 && test -f conftest2.$ac_objext; then
6080 : OK
6081 else
6082 am_cv_prog_cc_c_o=no
6083 break
6084 fi
6085 done
6086 rm -f core conftest*
6087 unset am_i ;;
6088 esac
6089 fi
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
6091 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
6092 if test "$am_cv_prog_cc_c_o" != yes; then
6093 # Losing compiler, so override with the script.
6094 # FIXME: It is wrong to rewrite CC.
6095 # But if we don't then we get into trouble of one sort or another.
6096 # A longer-term fix would be to have automake use am__CC in this case,
6097 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
6098 CC="$am_aux_dir/compile $CC"
6099 fi
6100 ac_ext=c
6101 ac_cpp='$CPP $CPPFLAGS'
6102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6105
6106
6107
6108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
6109 printf %s "checking whether the compiler is clang... " >&6; }
6110 if test ${gl_cv_compiler_clang+y}
6111 then :
6112 printf %s "(cached) " >&6
6113 else case e in #(
6114 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6115 /* end confdefs.h. */
6116
6117 #ifdef __clang__
6118 barfbarf
6119 #endif
6120
6121 int
6122 main (void)
6123 {
6124
6125 ;
6126 return 0;
6127 }
6128
6129 _ACEOF
6130 if ac_fn_c_try_compile "$LINENO"
6131 then :
6132 gl_cv_compiler_clang=no
6133 else case e in #(
6134 e) gl_cv_compiler_clang=yes ;;
6135 esac
6136 fi
6137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6138 ;;
6139 esac
6140 fi
6141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
6142 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
6143
6144
6145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
6146 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
6147 if test ${gl_cv_compiler_check_decl_option+y}
6148 then :
6149 printf %s "(cached) " >&6
6150 else case e in #(
6151 e) if test $gl_cv_compiler_clang = yes; then
6152 saved_ac_compile="$ac_compile"
6153 ac_compile="$ac_compile -Werror=implicit-function-declaration"
6154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6155 /* end confdefs.h. */
6156
6157 int
6158 main (void)
6159 {
6160
6161 ;
6162 return 0;
6163 }
6164 _ACEOF
6165 if ac_fn_c_try_compile "$LINENO"
6166 then :
6167 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
6168 else case e in #(
6169 e) gl_cv_compiler_check_decl_option=none ;;
6170 esac
6171 fi
6172 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6173 ac_compile="$saved_ac_compile"
6174 else
6175 gl_cv_compiler_check_decl_option=none
6176 fi
6177 ;;
6178 esac
6179 fi
6180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
6181 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
6182 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
6183 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
6184 else
6185 ac_compile_for_check_decl="$ac_compile"
6186 fi
6187
6188 DEPDIR="${am__leading_dot}deps"
6189
6190 ac_config_commands="$ac_config_commands depfiles"
6191
6192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6193 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6194 cat > confinc.mk << 'END'
6195 am__doit:
6196 @echo this is the am__doit target >confinc.out
6197 .PHONY: am__doit
6198 END
6199 am__include="#"
6200 am__quote=
6201 # BSD make does it like this.
6202 echo '.include "confinc.mk" # ignored' > confmf.BSD
6203 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
6204 echo 'include confinc.mk # ignored' > confmf.GNU
6205 _am_result=no
6206 for s in GNU BSD; do
6207 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6208 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6209 ac_status=$?
6210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6211 (exit $ac_status); }
6212 case $?:`cat confinc.out 2>/dev/null` in #(
6213 '0:this is the am__doit target') :
6214 case $s in #(
6215 BSD) :
6216 am__include='.include' am__quote='"' ;; #(
6217 *) :
6218 am__include='include' am__quote='' ;;
6219 esac ;; #(
6220 *) :
6221 ;;
6222 esac
6223 if test "$am__include" != "#"; then
6224 _am_result="yes ($s style)"
6225 break
6226 fi
6227 done
6228 rm -f confinc.* confmf.*
6229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6230 printf "%s\n" "${_am_result}" >&6; }
6231
6232 # Check whether --enable-dependency-tracking was given.
6233 if test ${enable_dependency_tracking+y}
6234 then :
6235 enableval=$enable_dependency_tracking;
6236 fi
6237
6238 if test "x$enable_dependency_tracking" != xno; then
6239 am_depcomp="$ac_aux_dir/depcomp"
6240 AMDEPBACKSLASH='\'
6241 am__nodep='_no'
6242 fi
6243 if test "x$enable_dependency_tracking" != xno; then
6244 AMDEP_TRUE=
6245 AMDEP_FALSE='#'
6246 else
6247 AMDEP_TRUE='#'
6248 AMDEP_FALSE=
6249 fi
6250
6251
6252
6253 depcc="$CC" am_compiler_list=
6254
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6256 printf %s "checking dependency style of $depcc... " >&6; }
6257 if test ${am_cv_CC_dependencies_compiler_type+y}
6258 then :
6259 printf %s "(cached) " >&6
6260 else case e in #(
6261 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6262 # We make a subdir and do the tests there. Otherwise we can end up
6263 # making bogus files that we don't know about and never remove. For
6264 # instance it was reported that on HP-UX the gcc test will end up
6265 # making a dummy file named 'D' -- because '-MD' means "put the output
6266 # in D".
6267 rm -rf conftest.dir
6268 mkdir conftest.dir
6269 # Copy depcomp to subdir because otherwise we won't find it if we're
6270 # using a relative directory.
6271 cp "$am_depcomp" conftest.dir
6272 cd conftest.dir
6273 # We will build objects and dependencies in a subdirectory because
6274 # it helps to detect inapplicable dependency modes. For instance
6275 # both Tru64's cc and ICC support -MD to output dependencies as a
6276 # side effect of compilation, but ICC will put the dependencies in
6277 # the current directory while Tru64 will put them in the object
6278 # directory.
6279 mkdir sub
6280
6281 am_cv_CC_dependencies_compiler_type=none
6282 if test "$am_compiler_list" = ""; then
6283 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6284 fi
6285 am__universal=false
6286 case " $depcc " in #(
6287 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6288 esac
6289
6290 for depmode in $am_compiler_list; do
6291 # Setup a source with many dependencies, because some compilers
6292 # like to wrap large dependency lists on column 80 (with \), and
6293 # we should not choose a depcomp mode which is confused by this.
6294 #
6295 # We need to recreate these files for each test, as the compiler may
6296 # overwrite some of them when testing with obscure command lines.
6297 # This happens at least with the AIX C compiler.
6298 : > sub/conftest.c
6299 for i in 1 2 3 4 5 6; do
6300 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6301 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6302 # Solaris 10 /bin/sh.
6303 echo '/* dummy */' > sub/conftst$i.h
6304 done
6305 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6306
6307 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6308 # mode. It turns out that the SunPro C++ compiler does not properly
6309 # handle '-M -o', and we need to detect this. Also, some Intel
6310 # versions had trouble with output in subdirs.
6311 am__obj=sub/conftest.${OBJEXT-o}
6312 am__minus_obj="-o $am__obj"
6313 case $depmode in
6314 gcc)
6315 # This depmode causes a compiler race in universal mode.
6316 test "$am__universal" = false || continue
6317 ;;
6318 nosideeffect)
6319 # After this tag, mechanisms are not by side-effect, so they'll
6320 # only be used when explicitly requested.
6321 if test "x$enable_dependency_tracking" = xyes; then
6322 continue
6323 else
6324 break
6325 fi
6326 ;;
6327 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6328 # This compiler won't grok '-c -o', but also, the minuso test has
6329 # not run yet. These depmodes are late enough in the game, and
6330 # so weak that their functioning should not be impacted.
6331 am__obj=conftest.${OBJEXT-o}
6332 am__minus_obj=
6333 ;;
6334 none) break ;;
6335 esac
6336 if depmode=$depmode \
6337 source=sub/conftest.c object=$am__obj \
6338 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6339 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6340 >/dev/null 2>conftest.err &&
6341 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6342 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6343 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6344 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6345 # icc doesn't choke on unknown options, it will just issue warnings
6346 # or remarks (even with -Werror). So we grep stderr for any message
6347 # that says an option was ignored or not supported.
6348 # When given -MP, icc 7.0 and 7.1 complain thus:
6349 # icc: Command line warning: ignoring option '-M'; no argument required
6350 # The diagnosis changed in icc 8.0:
6351 # icc: Command line remark: option '-MP' not supported
6352 if (grep 'ignoring option' conftest.err ||
6353 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6354 am_cv_CC_dependencies_compiler_type=$depmode
6355 break
6356 fi
6357 fi
6358 done
6359
6360 cd ..
6361 rm -rf conftest.dir
6362 else
6363 am_cv_CC_dependencies_compiler_type=none
6364 fi
6365 ;;
6366 esac
6367 fi
6368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6369 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6370 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6371
6372 if
6373 test "x$enable_dependency_tracking" != xno \
6374 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6375 am__fastdepCC_TRUE=
6376 am__fastdepCC_FALSE='#'
6377 else
6378 am__fastdepCC_TRUE='#'
6379 am__fastdepCC_FALSE=
6380 fi
6381
6382
6383
6384
6385
6386
6387
6388
6389 ac_ext=cpp
6390 ac_cpp='$CXXCPP $CPPFLAGS'
6391 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6392 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6393 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6394 if test -z "$CXX"; then
6395 if test -n "$CCC"; then
6396 CXX=$CCC
6397 else
6398 if test -n "$ac_tool_prefix"; then
6399 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6400 do
6401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404 printf %s "checking for $ac_word... " >&6; }
6405 if test ${ac_cv_prog_CXX+y}
6406 then :
6407 printf %s "(cached) " >&6
6408 else case e in #(
6409 e) if test -n "$CXX"; then
6410 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6411 else
6412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6413 for as_dir in $PATH
6414 do
6415 IFS=$as_save_IFS
6416 case $as_dir in #(((
6417 '') as_dir=./ ;;
6418 */) ;;
6419 *) as_dir=$as_dir/ ;;
6420 esac
6421 for ac_exec_ext in '' $ac_executable_extensions; do
6422 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6423 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6424 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6425 break 2
6426 fi
6427 done
6428 done
6429 IFS=$as_save_IFS
6430
6431 fi ;;
6432 esac
6433 fi
6434 CXX=$ac_cv_prog_CXX
6435 if test -n "$CXX"; then
6436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6437 printf "%s\n" "$CXX" >&6; }
6438 else
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6440 printf "%s\n" "no" >&6; }
6441 fi
6442
6443
6444 test -n "$CXX" && break
6445 done
6446 fi
6447 if test -z "$CXX"; then
6448 ac_ct_CXX=$CXX
6449 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC clang++
6450 do
6451 # Extract the first word of "$ac_prog", so it can be a program name with args.
6452 set dummy $ac_prog; ac_word=$2
6453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6454 printf %s "checking for $ac_word... " >&6; }
6455 if test ${ac_cv_prog_ac_ct_CXX+y}
6456 then :
6457 printf %s "(cached) " >&6
6458 else case e in #(
6459 e) if test -n "$ac_ct_CXX"; then
6460 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6464 do
6465 IFS=$as_save_IFS
6466 case $as_dir in #(((
6467 '') as_dir=./ ;;
6468 */) ;;
6469 *) as_dir=$as_dir/ ;;
6470 esac
6471 for ac_exec_ext in '' $ac_executable_extensions; do
6472 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6473 ac_cv_prog_ac_ct_CXX="$ac_prog"
6474 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6475 break 2
6476 fi
6477 done
6478 done
6479 IFS=$as_save_IFS
6480
6481 fi ;;
6482 esac
6483 fi
6484 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6485 if test -n "$ac_ct_CXX"; then
6486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6487 printf "%s\n" "$ac_ct_CXX" >&6; }
6488 else
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490 printf "%s\n" "no" >&6; }
6491 fi
6492
6493
6494 test -n "$ac_ct_CXX" && break
6495 done
6496
6497 if test "x$ac_ct_CXX" = x; then
6498 CXX="g++"
6499 else
6500 case $cross_compiling:$ac_tool_warned in
6501 yes:)
6502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6503 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6504 ac_tool_warned=yes ;;
6505 esac
6506 CXX=$ac_ct_CXX
6507 fi
6508 fi
6509
6510 fi
6511 fi
6512 # Provide some information about the compiler.
6513 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6514 set X $ac_compile
6515 ac_compiler=$2
6516 for ac_option in --version -v -V -qversion; do
6517 { { ac_try="$ac_compiler $ac_option >&5"
6518 case "(($ac_try" in
6519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6520 *) ac_try_echo=$ac_try;;
6521 esac
6522 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6523 printf "%s\n" "$ac_try_echo"; } >&5
6524 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6525 ac_status=$?
6526 if test -s conftest.err; then
6527 sed '10a\
6528 ... rest of stderr output deleted ...
6529 10q' conftest.err >conftest.er1
6530 cat conftest.er1 >&5
6531 fi
6532 rm -f conftest.er1 conftest.err
6533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6534 test $ac_status = 0; }
6535 done
6536
6537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C++" >&5
6538 printf %s "checking whether the compiler supports GNU C++... " >&6; }
6539 if test ${ac_cv_cxx_compiler_gnu+y}
6540 then :
6541 printf %s "(cached) " >&6
6542 else case e in #(
6543 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6544 /* end confdefs.h. */
6545
6546 int
6547 main (void)
6548 {
6549 #ifndef __GNUC__
6550 choke me
6551 #endif
6552
6553 ;
6554 return 0;
6555 }
6556 _ACEOF
6557 if ac_fn_cxx_try_compile "$LINENO"
6558 then :
6559 ac_compiler_gnu=yes
6560 else case e in #(
6561 e) ac_compiler_gnu=no ;;
6562 esac
6563 fi
6564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6565 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6566 ;;
6567 esac
6568 fi
6569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6570 printf "%s\n" "$ac_cv_cxx_compiler_gnu" >&6; }
6571 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6572
6573 if test $ac_compiler_gnu = yes; then
6574 GXX=yes
6575 else
6576 GXX=
6577 fi
6578 ac_test_CXXFLAGS=${CXXFLAGS+y}
6579 ac_save_CXXFLAGS=$CXXFLAGS
6580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6581 printf %s "checking whether $CXX accepts -g... " >&6; }
6582 if test ${ac_cv_prog_cxx_g+y}
6583 then :
6584 printf %s "(cached) " >&6
6585 else case e in #(
6586 e) ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6587 ac_cxx_werror_flag=yes
6588 ac_cv_prog_cxx_g=no
6589 CXXFLAGS="-g"
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6591 /* end confdefs.h. */
6592
6593 int
6594 main (void)
6595 {
6596
6597 ;
6598 return 0;
6599 }
6600 _ACEOF
6601 if ac_fn_cxx_try_compile "$LINENO"
6602 then :
6603 ac_cv_prog_cxx_g=yes
6604 else case e in #(
6605 e) CXXFLAGS=""
6606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6607 /* end confdefs.h. */
6608
6609 int
6610 main (void)
6611 {
6612
6613 ;
6614 return 0;
6615 }
6616 _ACEOF
6617 if ac_fn_cxx_try_compile "$LINENO"
6618 then :
6619
6620 else case e in #(
6621 e) ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6622 CXXFLAGS="-g"
6623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6624 /* end confdefs.h. */
6625
6626 int
6627 main (void)
6628 {
6629
6630 ;
6631 return 0;
6632 }
6633 _ACEOF
6634 if ac_fn_cxx_try_compile "$LINENO"
6635 then :
6636 ac_cv_prog_cxx_g=yes
6637 fi
6638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6639 esac
6640 fi
6641 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6642 esac
6643 fi
6644 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6645 ac_cxx_werror_flag=$ac_save_cxx_werror_flag ;;
6646 esac
6647 fi
6648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6649 printf "%s\n" "$ac_cv_prog_cxx_g" >&6; }
6650 if test $ac_test_CXXFLAGS; then
6651 CXXFLAGS=$ac_save_CXXFLAGS
6652 elif test $ac_cv_prog_cxx_g = yes; then
6653 if test "$GXX" = yes; then
6654 CXXFLAGS="-g -O2"
6655 else
6656 CXXFLAGS="-g"
6657 fi
6658 else
6659 if test "$GXX" = yes; then
6660 CXXFLAGS="-O2"
6661 else
6662 CXXFLAGS=
6663 fi
6664 fi
6665 ac_prog_cxx_stdcxx=no
6666 if test x$ac_prog_cxx_stdcxx = xno
6667 then :
6668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++11 features" >&5
6669 printf %s "checking for $CXX option to enable C++11 features... " >&6; }
6670 if test ${ac_cv_prog_cxx_cxx11+y}
6671 then :
6672 printf %s "(cached) " >&6
6673 else case e in #(
6674 e) ac_cv_prog_cxx_cxx11=no
6675 ac_save_CXX=$CXX
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677 /* end confdefs.h. */
6678 $ac_cxx_conftest_cxx11_program
6679 _ACEOF
6680 for ac_arg in '' -std=gnu++11 -std=gnu++0x -std=c++11 -std=c++0x -qlanglvl=extended0x -AA
6681 do
6682 CXX="$ac_save_CXX $ac_arg"
6683 if ac_fn_cxx_try_compile "$LINENO"
6684 then :
6685 ac_cv_prog_cxx_cxx11=$ac_arg
6686 fi
6687 rm -f core conftest.err conftest.$ac_objext conftest.beam
6688 test "x$ac_cv_prog_cxx_cxx11" != "xno" && break
6689 done
6690 rm -f conftest.$ac_ext
6691 CXX=$ac_save_CXX ;;
6692 esac
6693 fi
6694
6695 if test "x$ac_cv_prog_cxx_cxx11" = xno
6696 then :
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6698 printf "%s\n" "unsupported" >&6; }
6699 else case e in #(
6700 e) if test "x$ac_cv_prog_cxx_cxx11" = x
6701 then :
6702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6703 printf "%s\n" "none needed" >&6; }
6704 else case e in #(
6705 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx11" >&5
6706 printf "%s\n" "$ac_cv_prog_cxx_cxx11" >&6; }
6707 CXX="$CXX $ac_cv_prog_cxx_cxx11" ;;
6708 esac
6709 fi
6710 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx11
6711 ac_prog_cxx_stdcxx=cxx11 ;;
6712 esac
6713 fi
6714 fi
6715 if test x$ac_prog_cxx_stdcxx = xno
6716 then :
6717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CXX option to enable C++98 features" >&5
6718 printf %s "checking for $CXX option to enable C++98 features... " >&6; }
6719 if test ${ac_cv_prog_cxx_cxx98+y}
6720 then :
6721 printf %s "(cached) " >&6
6722 else case e in #(
6723 e) ac_cv_prog_cxx_cxx98=no
6724 ac_save_CXX=$CXX
6725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6726 /* end confdefs.h. */
6727 $ac_cxx_conftest_cxx98_program
6728 _ACEOF
6729 for ac_arg in '' -std=gnu++98 -std=c++98 -qlanglvl=extended -AA
6730 do
6731 CXX="$ac_save_CXX $ac_arg"
6732 if ac_fn_cxx_try_compile "$LINENO"
6733 then :
6734 ac_cv_prog_cxx_cxx98=$ac_arg
6735 fi
6736 rm -f core conftest.err conftest.$ac_objext conftest.beam
6737 test "x$ac_cv_prog_cxx_cxx98" != "xno" && break
6738 done
6739 rm -f conftest.$ac_ext
6740 CXX=$ac_save_CXX ;;
6741 esac
6742 fi
6743
6744 if test "x$ac_cv_prog_cxx_cxx98" = xno
6745 then :
6746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6747 printf "%s\n" "unsupported" >&6; }
6748 else case e in #(
6749 e) if test "x$ac_cv_prog_cxx_cxx98" = x
6750 then :
6751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6752 printf "%s\n" "none needed" >&6; }
6753 else case e in #(
6754 e) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_cxx98" >&5
6755 printf "%s\n" "$ac_cv_prog_cxx_cxx98" >&6; }
6756 CXX="$CXX $ac_cv_prog_cxx_cxx98" ;;
6757 esac
6758 fi
6759 ac_cv_prog_cxx_stdcxx=$ac_cv_prog_cxx_cxx98
6760 ac_prog_cxx_stdcxx=cxx98 ;;
6761 esac
6762 fi
6763 fi
6764
6765 ac_ext=c
6766 ac_cpp='$CPP $CPPFLAGS'
6767 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6768 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6769 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6770
6771 depcc="$CXX" am_compiler_list=
6772
6773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6774 printf %s "checking dependency style of $depcc... " >&6; }
6775 if test ${am_cv_CXX_dependencies_compiler_type+y}
6776 then :
6777 printf %s "(cached) " >&6
6778 else case e in #(
6779 e) if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6780 # We make a subdir and do the tests there. Otherwise we can end up
6781 # making bogus files that we don't know about and never remove. For
6782 # instance it was reported that on HP-UX the gcc test will end up
6783 # making a dummy file named 'D' -- because '-MD' means "put the output
6784 # in D".
6785 rm -rf conftest.dir
6786 mkdir conftest.dir
6787 # Copy depcomp to subdir because otherwise we won't find it if we're
6788 # using a relative directory.
6789 cp "$am_depcomp" conftest.dir
6790 cd conftest.dir
6791 # We will build objects and dependencies in a subdirectory because
6792 # it helps to detect inapplicable dependency modes. For instance
6793 # both Tru64's cc and ICC support -MD to output dependencies as a
6794 # side effect of compilation, but ICC will put the dependencies in
6795 # the current directory while Tru64 will put them in the object
6796 # directory.
6797 mkdir sub
6798
6799 am_cv_CXX_dependencies_compiler_type=none
6800 if test "$am_compiler_list" = ""; then
6801 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6802 fi
6803 am__universal=false
6804 case " $depcc " in #(
6805 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6806 esac
6807
6808 for depmode in $am_compiler_list; do
6809 # Setup a source with many dependencies, because some compilers
6810 # like to wrap large dependency lists on column 80 (with \), and
6811 # we should not choose a depcomp mode which is confused by this.
6812 #
6813 # We need to recreate these files for each test, as the compiler may
6814 # overwrite some of them when testing with obscure command lines.
6815 # This happens at least with the AIX C compiler.
6816 : > sub/conftest.c
6817 for i in 1 2 3 4 5 6; do
6818 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6819 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6820 # Solaris 10 /bin/sh.
6821 echo '/* dummy */' > sub/conftst$i.h
6822 done
6823 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6824
6825 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6826 # mode. It turns out that the SunPro C++ compiler does not properly
6827 # handle '-M -o', and we need to detect this. Also, some Intel
6828 # versions had trouble with output in subdirs.
6829 am__obj=sub/conftest.${OBJEXT-o}
6830 am__minus_obj="-o $am__obj"
6831 case $depmode in
6832 gcc)
6833 # This depmode causes a compiler race in universal mode.
6834 test "$am__universal" = false || continue
6835 ;;
6836 nosideeffect)
6837 # After this tag, mechanisms are not by side-effect, so they'll
6838 # only be used when explicitly requested.
6839 if test "x$enable_dependency_tracking" = xyes; then
6840 continue
6841 else
6842 break
6843 fi
6844 ;;
6845 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6846 # This compiler won't grok '-c -o', but also, the minuso test has
6847 # not run yet. These depmodes are late enough in the game, and
6848 # so weak that their functioning should not be impacted.
6849 am__obj=conftest.${OBJEXT-o}
6850 am__minus_obj=
6851 ;;
6852 none) break ;;
6853 esac
6854 if depmode=$depmode \
6855 source=sub/conftest.c object=$am__obj \
6856 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6857 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6858 >/dev/null 2>conftest.err &&
6859 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6860 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6861 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6862 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6863 # icc doesn't choke on unknown options, it will just issue warnings
6864 # or remarks (even with -Werror). So we grep stderr for any message
6865 # that says an option was ignored or not supported.
6866 # When given -MP, icc 7.0 and 7.1 complain thus:
6867 # icc: Command line warning: ignoring option '-M'; no argument required
6868 # The diagnosis changed in icc 8.0:
6869 # icc: Command line remark: option '-MP' not supported
6870 if (grep 'ignoring option' conftest.err ||
6871 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6872 am_cv_CXX_dependencies_compiler_type=$depmode
6873 break
6874 fi
6875 fi
6876 done
6877
6878 cd ..
6879 rm -rf conftest.dir
6880 else
6881 am_cv_CXX_dependencies_compiler_type=none
6882 fi
6883 ;;
6884 esac
6885 fi
6886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6887 printf "%s\n" "$am_cv_CXX_dependencies_compiler_type" >&6; }
6888 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6889
6890 if
6891 test "x$enable_dependency_tracking" != xno \
6892 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6893 am__fastdepCXX_TRUE=
6894 am__fastdepCXX_FALSE='#'
6895 else
6896 am__fastdepCXX_TRUE='#'
6897 am__fastdepCXX_FALSE=
6898 fi
6899
6900
6901
6902 ac_header= ac_cache=
6903 for ac_item in $ac_header_c_list
6904 do
6905 if test $ac_cache; then
6906 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6907 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6908 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6909 fi
6910 ac_header= ac_cache=
6911 elif test $ac_header; then
6912 ac_cache=$ac_item
6913 else
6914 ac_header=$ac_item
6915 fi
6916 done
6917
6918
6919
6920
6921
6922
6923
6924
6925 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6926 then :
6927
6928 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6929
6930 fi
6931
6932
6933
6934
6935
6936
6937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6938 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6939 if test ${ac_cv_safe_to_define___extensions__+y}
6940 then :
6941 printf %s "(cached) " >&6
6942 else case e in #(
6943 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6944 /* end confdefs.h. */
6945
6946 # define __EXTENSIONS__ 1
6947 $ac_includes_default
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 ac_cv_safe_to_define___extensions__=yes
6959 else case e in #(
6960 e) ac_cv_safe_to_define___extensions__=no ;;
6961 esac
6962 fi
6963 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
6964 esac
6965 fi
6966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6967 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6968
6969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6970 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6971 if test ${ac_cv_should_define__xopen_source+y}
6972 then :
6973 printf %s "(cached) " >&6
6974 else case e in #(
6975 e) ac_cv_should_define__xopen_source=no
6976 if test $ac_cv_header_wchar_h = yes
6977 then :
6978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6979 /* end confdefs.h. */
6980
6981 #include <wchar.h>
6982 mbstate_t x;
6983 int
6984 main (void)
6985 {
6986
6987 ;
6988 return 0;
6989 }
6990 _ACEOF
6991 if ac_fn_c_try_compile "$LINENO"
6992 then :
6993
6994 else case e in #(
6995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6996 /* end confdefs.h. */
6997
6998 #define _XOPEN_SOURCE 500
6999 #include <wchar.h>
7000 mbstate_t x;
7001 int
7002 main (void)
7003 {
7004
7005 ;
7006 return 0;
7007 }
7008 _ACEOF
7009 if ac_fn_c_try_compile "$LINENO"
7010 then :
7011 ac_cv_should_define__xopen_source=yes
7012 fi
7013 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
7014 esac
7015 fi
7016 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7017 fi ;;
7018 esac
7019 fi
7020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
7021 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
7022
7023 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7024
7025 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
7026
7027 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
7028
7029 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
7030
7031 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
7032
7033 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
7034
7035 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7036
7037 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
7038
7039 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
7040
7041 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
7042
7043 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
7044
7045 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
7046
7047 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
7048
7049 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
7050
7051 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
7052
7053 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
7054
7055 if test $ac_cv_header_minix_config_h = yes
7056 then :
7057 MINIX=yes
7058 printf "%s\n" "#define _MINIX 1" >>confdefs.h
7059
7060 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
7061
7062 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
7063
7064 else case e in #(
7065 e) MINIX= ;;
7066 esac
7067 fi
7068 if test $ac_cv_safe_to_define___extensions__ = yes
7069 then :
7070 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
7071
7072 fi
7073 if test $ac_cv_should_define__xopen_source = yes
7074 then :
7075 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
7076
7077 fi
7078
7079
7080
7081 # Make sure we can run config.sub.
7082 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
7083 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
7084
7085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
7086 printf %s "checking build system type... " >&6; }
7087 if test ${ac_cv_build+y}
7088 then :
7089 printf %s "(cached) " >&6
7090 else case e in #(
7091 e) ac_build_alias=$build_alias
7092 test "x$ac_build_alias" = x &&
7093 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
7094 test "x$ac_build_alias" = x &&
7095 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
7096 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
7097 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
7098 ;;
7099 esac
7100 fi
7101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
7102 printf "%s\n" "$ac_cv_build" >&6; }
7103 case $ac_cv_build in
7104 *-*-*) ;;
7105 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
7106 esac
7107 build=$ac_cv_build
7108 ac_save_IFS=$IFS; IFS='-'
7109 set x $ac_cv_build
7110 shift
7111 build_cpu=$1
7112 build_vendor=$2
7113 shift; shift
7114 # Remember, the first character of IFS is used to create $*,
7115 # except with old shells:
7116 build_os=$*
7117 IFS=$ac_save_IFS
7118 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
7119
7120
7121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
7122 printf %s "checking host system type... " >&6; }
7123 if test ${ac_cv_host+y}
7124 then :
7125 printf %s "(cached) " >&6
7126 else case e in #(
7127 e) if test "x$host_alias" = x; then
7128 ac_cv_host=$ac_cv_build
7129 else
7130 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
7131 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
7132 fi
7133 ;;
7134 esac
7135 fi
7136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
7137 printf "%s\n" "$ac_cv_host" >&6; }
7138 case $ac_cv_host in
7139 *-*-*) ;;
7140 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
7141 esac
7142 host=$ac_cv_host
7143 ac_save_IFS=$IFS; IFS='-'
7144 set x $ac_cv_host
7145 shift
7146 host_cpu=$1
7147 host_vendor=$2
7148 shift; shift
7149 # Remember, the first character of IFS is used to create $*,
7150 # except with old shells:
7151 host_os=$*
7152 IFS=$ac_save_IFS
7153 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
7154
7155
7156
7157
7158
7159
7160 case "$host_os" in
7161 openbsd*)
7162
7163 printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h
7164
7165 ;;
7166 esac
7167
7168
7169
7170 ac_ext=c
7171 ac_cpp='$CPP $CPPFLAGS'
7172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7176 printf %s "checking how to run the C preprocessor... " >&6; }
7177 # On Suns, sometimes $CPP names a directory.
7178 if test -n "$CPP" && test -d "$CPP"; then
7179 CPP=
7180 fi
7181 if test -z "$CPP"; then
7182 if test ${ac_cv_prog_CPP+y}
7183 then :
7184 printf %s "(cached) " >&6
7185 else case e in #(
7186 e) # Double quotes because $CC needs to be expanded
7187 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
7188 do
7189 ac_preproc_ok=false
7190 for ac_c_preproc_warn_flag in '' yes
7191 do
7192 # Use a header file that comes with gcc, so configuring glibc
7193 # with a fresh cross-compiler works.
7194 # On the NeXT, cc -E runs the code through the compiler's parser,
7195 # not just through cpp. "Syntax error" is here to catch this case.
7196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7197 /* end confdefs.h. */
7198 #include <limits.h>
7199 Syntax error
7200 _ACEOF
7201 if ac_fn_c_try_cpp "$LINENO"
7202 then :
7203
7204 else case e in #(
7205 e) # Broken: fails on valid input.
7206 continue ;;
7207 esac
7208 fi
7209 rm -f conftest.err conftest.i conftest.$ac_ext
7210
7211 # OK, works on sane cases. Now check whether nonexistent headers
7212 # can be detected and how.
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h. */
7215 #include <ac_nonexistent.h>
7216 _ACEOF
7217 if ac_fn_c_try_cpp "$LINENO"
7218 then :
7219 # Broken: success on invalid input.
7220 continue
7221 else case e in #(
7222 e) # Passes both tests.
7223 ac_preproc_ok=:
7224 break ;;
7225 esac
7226 fi
7227 rm -f conftest.err conftest.i conftest.$ac_ext
7228
7229 done
7230 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7231 rm -f conftest.i conftest.err conftest.$ac_ext
7232 if $ac_preproc_ok
7233 then :
7234 break
7235 fi
7236
7237 done
7238 ac_cv_prog_CPP=$CPP
7239 ;;
7240 esac
7241 fi
7242 CPP=$ac_cv_prog_CPP
7243 else
7244 ac_cv_prog_CPP=$CPP
7245 fi
7246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7247 printf "%s\n" "$CPP" >&6; }
7248 ac_preproc_ok=false
7249 for ac_c_preproc_warn_flag in '' yes
7250 do
7251 # Use a header file that comes with gcc, so configuring glibc
7252 # with a fresh cross-compiler works.
7253 # On the NeXT, cc -E runs the code through the compiler's parser,
7254 # not just through cpp. "Syntax error" is here to catch this case.
7255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7256 /* end confdefs.h. */
7257 #include <limits.h>
7258 Syntax error
7259 _ACEOF
7260 if ac_fn_c_try_cpp "$LINENO"
7261 then :
7262
7263 else case e in #(
7264 e) # Broken: fails on valid input.
7265 continue ;;
7266 esac
7267 fi
7268 rm -f conftest.err conftest.i conftest.$ac_ext
7269
7270 # OK, works on sane cases. Now check whether nonexistent headers
7271 # can be detected and how.
7272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7273 /* end confdefs.h. */
7274 #include <ac_nonexistent.h>
7275 _ACEOF
7276 if ac_fn_c_try_cpp "$LINENO"
7277 then :
7278 # Broken: success on invalid input.
7279 continue
7280 else case e in #(
7281 e) # Passes both tests.
7282 ac_preproc_ok=:
7283 break ;;
7284 esac
7285 fi
7286 rm -f conftest.err conftest.i conftest.$ac_ext
7287
7288 done
7289 # Because of 'break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7290 rm -f conftest.i conftest.err conftest.$ac_ext
7291 if $ac_preproc_ok
7292 then :
7293
7294 else case e in #(
7295 e) { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7296 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7297 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7298 See 'config.log' for more details" "$LINENO" 5; } ;;
7299 esac
7300 fi
7301
7302 ac_ext=c
7303 ac_cpp='$CPP $CPPFLAGS'
7304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7307
7308
7309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep -e" >&5
7310 printf %s "checking for egrep -e... " >&6; }
7311 if test ${ac_cv_path_EGREP_TRADITIONAL+y}
7312 then :
7313 printf %s "(cached) " >&6
7314 else case e in #(
7315 e) if test -z "$EGREP_TRADITIONAL"; then
7316 ac_path_EGREP_TRADITIONAL_found=false
7317 # Loop through the user's path and test for each of PROGNAME-LIST
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7320 do
7321 IFS=$as_save_IFS
7322 case $as_dir in #(((
7323 '') as_dir=./ ;;
7324 */) ;;
7325 *) as_dir=$as_dir/ ;;
7326 esac
7327 for ac_prog in grep ggrep
7328 do
7329 for ac_exec_ext in '' $ac_executable_extensions; do
7330 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
7331 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
7332 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
7333 # Check for GNU $ac_path_EGREP_TRADITIONAL
7334 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
7335 *GNU*)
7336 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
7337 #(
7338 *)
7339 ac_count=0
7340 printf %s 0123456789 >"conftest.in"
7341 while :
7342 do
7343 cat "conftest.in" "conftest.in" >"conftest.tmp"
7344 mv "conftest.tmp" "conftest.in"
7345 cp "conftest.in" "conftest.nl"
7346 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
7347 "$ac_path_EGREP_TRADITIONAL" -E 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7348 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7349 as_fn_arith $ac_count + 1 && ac_count=$as_val
7350 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
7351 # Best one so far, save it but keep looking for a better one
7352 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
7353 ac_path_EGREP_TRADITIONAL_max=$ac_count
7354 fi
7355 # 10*(2^10) chars as input seems more than enough
7356 test $ac_count -gt 10 && break
7357 done
7358 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7359 esac
7360
7361 $ac_path_EGREP_TRADITIONAL_found && break 3
7362 done
7363 done
7364 done
7365 IFS=$as_save_IFS
7366 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
7367 :
7368 fi
7369 else
7370 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
7371 fi
7372
7373 if test "$ac_cv_path_EGREP_TRADITIONAL"
7374 then :
7375 ac_cv_path_EGREP_TRADITIONAL="$ac_cv_path_EGREP_TRADITIONAL -E"
7376 else case e in #(
7377 e) if test -z "$EGREP_TRADITIONAL"; then
7378 ac_path_EGREP_TRADITIONAL_found=false
7379 # Loop through the user's path and test for each of PROGNAME-LIST
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7381 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7382 do
7383 IFS=$as_save_IFS
7384 case $as_dir in #(((
7385 '') as_dir=./ ;;
7386 */) ;;
7387 *) as_dir=$as_dir/ ;;
7388 esac
7389 for ac_prog in egrep
7390 do
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 ac_path_EGREP_TRADITIONAL="$as_dir$ac_prog$ac_exec_ext"
7393 as_fn_executable_p "$ac_path_EGREP_TRADITIONAL" || continue
7394 # Check for GNU ac_path_EGREP_TRADITIONAL and select it if it is found.
7395 # Check for GNU $ac_path_EGREP_TRADITIONAL
7396 case `"$ac_path_EGREP_TRADITIONAL" --version 2>&1` in #(
7397 *GNU*)
7398 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL" ac_path_EGREP_TRADITIONAL_found=:;;
7399 #(
7400 *)
7401 ac_count=0
7402 printf %s 0123456789 >"conftest.in"
7403 while :
7404 do
7405 cat "conftest.in" "conftest.in" >"conftest.tmp"
7406 mv "conftest.tmp" "conftest.in"
7407 cp "conftest.in" "conftest.nl"
7408 printf "%s\n" 'EGREP_TRADITIONAL' >> "conftest.nl"
7409 "$ac_path_EGREP_TRADITIONAL" 'EGR(EP|AC)_TRADITIONAL$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7411 as_fn_arith $ac_count + 1 && ac_count=$as_val
7412 if test $ac_count -gt ${ac_path_EGREP_TRADITIONAL_max-0}; then
7413 # Best one so far, save it but keep looking for a better one
7414 ac_cv_path_EGREP_TRADITIONAL="$ac_path_EGREP_TRADITIONAL"
7415 ac_path_EGREP_TRADITIONAL_max=$ac_count
7416 fi
7417 # 10*(2^10) chars as input seems more than enough
7418 test $ac_count -gt 10 && break
7419 done
7420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7421 esac
7422
7423 $ac_path_EGREP_TRADITIONAL_found && break 3
7424 done
7425 done
7426 done
7427 IFS=$as_save_IFS
7428 if test -z "$ac_cv_path_EGREP_TRADITIONAL"; then
7429 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7430 fi
7431 else
7432 ac_cv_path_EGREP_TRADITIONAL=$EGREP_TRADITIONAL
7433 fi
7434 ;;
7435 esac
7436 fi ;;
7437 esac
7438 fi
7439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP_TRADITIONAL" >&5
7440 printf "%s\n" "$ac_cv_path_EGREP_TRADITIONAL" >&6; }
7441 EGREP_TRADITIONAL=$ac_cv_path_EGREP_TRADITIONAL
7442
7443
7444
7445
7446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
7447 printf %s "checking for Minix Amsterdam compiler... " >&6; }
7448 if test ${gl_cv_c_amsterdam_compiler+y}
7449 then :
7450 printf %s "(cached) " >&6
7451 else case e in #(
7452 e)
7453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7454 /* end confdefs.h. */
7455
7456 #ifdef __ACK__
7457 Amsterdam
7458 #endif
7459
7460 _ACEOF
7461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7462 $EGREP_TRADITIONAL "Amsterdam" >/dev/null 2>&1
7463 then :
7464 gl_cv_c_amsterdam_compiler=yes
7465 else case e in #(
7466 e) gl_cv_c_amsterdam_compiler=no ;;
7467 esac
7468 fi
7469 rm -rf conftest*
7470
7471 ;;
7472 esac
7473 fi
7474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
7475 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
7476
7477 if test $gl_cv_c_amsterdam_compiler = yes; then
7478 if test -z "$AR"; then
7479 AR='cc -c.a'
7480 fi
7481 if test -z "$ARFLAGS"; then
7482 ARFLAGS='-o'
7483 fi
7484 else
7485 :
7486 fi
7487
7488 if test -n "$ac_tool_prefix"; then
7489 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7490 set dummy ${ac_tool_prefix}ar; ac_word=$2
7491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7492 printf %s "checking for $ac_word... " >&6; }
7493 if test ${ac_cv_prog_AR+y}
7494 then :
7495 printf %s "(cached) " >&6
7496 else case e in #(
7497 e) if test -n "$AR"; then
7498 ac_cv_prog_AR="$AR" # Let the user override the test.
7499 else
7500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 for as_dir in $PATH
7502 do
7503 IFS=$as_save_IFS
7504 case $as_dir in #(((
7505 '') as_dir=./ ;;
7506 */) ;;
7507 *) as_dir=$as_dir/ ;;
7508 esac
7509 for ac_exec_ext in '' $ac_executable_extensions; do
7510 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7511 ac_cv_prog_AR="${ac_tool_prefix}ar"
7512 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7513 break 2
7514 fi
7515 done
7516 done
7517 IFS=$as_save_IFS
7518
7519 fi ;;
7520 esac
7521 fi
7522 AR=$ac_cv_prog_AR
7523 if test -n "$AR"; then
7524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7525 printf "%s\n" "$AR" >&6; }
7526 else
7527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7528 printf "%s\n" "no" >&6; }
7529 fi
7530
7531
7532 fi
7533 if test -z "$ac_cv_prog_AR"; then
7534 ac_ct_AR=$AR
7535 # Extract the first word of "ar", so it can be a program name with args.
7536 set dummy ar; ac_word=$2
7537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7538 printf %s "checking for $ac_word... " >&6; }
7539 if test ${ac_cv_prog_ac_ct_AR+y}
7540 then :
7541 printf %s "(cached) " >&6
7542 else case e in #(
7543 e) if test -n "$ac_ct_AR"; then
7544 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7545 else
7546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 for as_dir in $PATH
7548 do
7549 IFS=$as_save_IFS
7550 case $as_dir in #(((
7551 '') as_dir=./ ;;
7552 */) ;;
7553 *) as_dir=$as_dir/ ;;
7554 esac
7555 for ac_exec_ext in '' $ac_executable_extensions; do
7556 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7557 ac_cv_prog_ac_ct_AR="ar"
7558 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7559 break 2
7560 fi
7561 done
7562 done
7563 IFS=$as_save_IFS
7564
7565 fi ;;
7566 esac
7567 fi
7568 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7569 if test -n "$ac_ct_AR"; then
7570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7571 printf "%s\n" "$ac_ct_AR" >&6; }
7572 else
7573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 printf "%s\n" "no" >&6; }
7575 fi
7576
7577 if test "x$ac_ct_AR" = x; then
7578 AR="ar"
7579 else
7580 case $cross_compiling:$ac_tool_warned in
7581 yes:)
7582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7583 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7584 ac_tool_warned=yes ;;
7585 esac
7586 AR=$ac_ct_AR
7587 fi
7588 else
7589 AR="$ac_cv_prog_AR"
7590 fi
7591
7592 if test -z "$ARFLAGS"; then
7593 ARFLAGS='cr'
7594 fi
7595
7596
7597
7598 if test -z "$RANLIB"; then
7599 if test $gl_cv_c_amsterdam_compiler = yes; then
7600 RANLIB=':'
7601 else
7602 if test -n "$ac_tool_prefix"; then
7603 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7604 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7606 printf %s "checking for $ac_word... " >&6; }
7607 if test ${ac_cv_prog_RANLIB+y}
7608 then :
7609 printf %s "(cached) " >&6
7610 else case e in #(
7611 e) if test -n "$RANLIB"; then
7612 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7613 else
7614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 for as_dir in $PATH
7616 do
7617 IFS=$as_save_IFS
7618 case $as_dir in #(((
7619 '') as_dir=./ ;;
7620 */) ;;
7621 *) as_dir=$as_dir/ ;;
7622 esac
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7625 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7627 break 2
7628 fi
7629 done
7630 done
7631 IFS=$as_save_IFS
7632
7633 fi ;;
7634 esac
7635 fi
7636 RANLIB=$ac_cv_prog_RANLIB
7637 if test -n "$RANLIB"; then
7638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7639 printf "%s\n" "$RANLIB" >&6; }
7640 else
7641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7642 printf "%s\n" "no" >&6; }
7643 fi
7644
7645
7646 fi
7647 if test -z "$ac_cv_prog_RANLIB"; then
7648 ac_ct_RANLIB=$RANLIB
7649 # Extract the first word of "ranlib", so it can be a program name with args.
7650 set dummy ranlib; ac_word=$2
7651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7652 printf %s "checking for $ac_word... " >&6; }
7653 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7654 then :
7655 printf %s "(cached) " >&6
7656 else case e in #(
7657 e) if test -n "$ac_ct_RANLIB"; then
7658 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7659 else
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661 for as_dir in $PATH
7662 do
7663 IFS=$as_save_IFS
7664 case $as_dir in #(((
7665 '') as_dir=./ ;;
7666 */) ;;
7667 *) as_dir=$as_dir/ ;;
7668 esac
7669 for ac_exec_ext in '' $ac_executable_extensions; do
7670 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7671 ac_cv_prog_ac_ct_RANLIB="ranlib"
7672 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7673 break 2
7674 fi
7675 done
7676 done
7677 IFS=$as_save_IFS
7678
7679 fi ;;
7680 esac
7681 fi
7682 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7683 if test -n "$ac_ct_RANLIB"; then
7684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7685 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7686 else
7687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7688 printf "%s\n" "no" >&6; }
7689 fi
7690
7691 if test "x$ac_ct_RANLIB" = x; then
7692 RANLIB=":"
7693 else
7694 case $cross_compiling:$ac_tool_warned in
7695 yes:)
7696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7697 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7698 ac_tool_warned=yes ;;
7699 esac
7700 RANLIB=$ac_ct_RANLIB
7701 fi
7702 else
7703 RANLIB="$ac_cv_prog_RANLIB"
7704 fi
7705
7706 fi
7707 fi
7708
7709
7710
7711
7712 printf "%s\n" "#define _LINUX_SOURCE_COMPAT 1" >>confdefs.h
7713
7714
7715
7716
7717 # Check whether --enable-largefile was given.
7718 if test ${enable_largefile+y}
7719 then :
7720 enableval=$enable_largefile;
7721 fi
7722 if test "$enable_largefile,$enable_year2038" != no,no
7723 then :
7724 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to support large files" >&5
7725 printf %s "checking for $CC option to support large files... " >&6; }
7726 if test ${ac_cv_sys_largefile_opts+y}
7727 then :
7728 printf %s "(cached) " >&6
7729 else case e in #(
7730 e) ac_save_CPPFLAGS=$CPPFLAGS
7731 ac_opt_found=no
7732 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1"; do
7733 if test x"$ac_opt" != x"none needed"
7734 then :
7735 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
7736 fi
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7739 #include <sys/types.h>
7740 #ifndef FTYPE
7741 # define FTYPE off_t
7742 #endif
7743 /* Check that FTYPE can represent 2**63 - 1 correctly.
7744 We can't simply define LARGE_FTYPE to be 9223372036854775807,
7745 since some C++ compilers masquerading as C compilers
7746 incorrectly reject 9223372036854775807. */
7747 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
7748 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
7749 && LARGE_FTYPE % 2147483647 == 1)
7750 ? 1 : -1];
7751 int
7752 main (void)
7753 {
7754
7755 ;
7756 return 0;
7757 }
7758 _ACEOF
7759 if ac_fn_c_try_compile "$LINENO"
7760 then :
7761 if test x"$ac_opt" = x"none needed"
7762 then :
7763 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
7764 CPPFLAGS="$CPPFLAGS -DFTYPE=ino_t"
7765 if ac_fn_c_try_compile "$LINENO"
7766 then :
7767
7768 else case e in #(
7769 e) CPPFLAGS="$CPPFLAGS -D_FILE_OFFSET_BITS=64"
7770 if ac_fn_c_try_compile "$LINENO"
7771 then :
7772 ac_opt='-D_FILE_OFFSET_BITS=64'
7773 fi
7774 rm -f core conftest.err conftest.$ac_objext conftest.beam ;;
7775 esac
7776 fi
7777 rm -f core conftest.err conftest.$ac_objext conftest.beam
7778 fi
7779 ac_cv_sys_largefile_opts=$ac_opt
7780 ac_opt_found=yes
7781 fi
7782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7783 test $ac_opt_found = no || break
7784 done
7785 CPPFLAGS=$ac_save_CPPFLAGS
7786
7787
7788 if test $ac_opt_found != yes; then
7789 case $host_os in #(
7790 mingw* | windows*) :
7791 ac_cv_sys_largefile_opts="supported through gnulib"
7792 ac_opt_found=yes
7793 ;; #(
7794 *) :
7795 ;;
7796 esac
7797 fi
7798
7799 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected" ;;
7800 esac
7801 fi
7802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
7803 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
7804
7805 ac_have_largefile=yes
7806 case $ac_cv_sys_largefile_opts in #(
7807 "none needed") :
7808 ;; #(
7809 "supported through gnulib") :
7810 ;; #(
7811 "support not detected") :
7812 ac_have_largefile=no ;; #(
7813 "-D_FILE_OFFSET_BITS=64") :
7814
7815 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
7816 ;; #(
7817 "-D_LARGE_FILES=1") :
7818
7819 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
7820 ;; #(
7821 *) :
7822 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
7823 esac
7824
7825 if test "$enable_year2038" != no
7826 then :
7827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to support timestamps after 2038" >&5
7828 printf %s "checking for $CC option to support timestamps after 2038... " >&6; }
7829 if test ${ac_cv_sys_year2038_opts+y}
7830 then :
7831 printf %s "(cached) " >&6
7832 else case e in #(
7833 e) ac_save_CPPFLAGS="$CPPFLAGS"
7834 ac_opt_found=no
7835 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
7836 if test x"$ac_opt" != x"none needed"
7837 then :
7838 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
7839 fi
7840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7841 /* end confdefs.h. */
7842
7843 #include <time.h>
7844 /* Check that time_t can represent 2**32 - 1 correctly. */
7845 #define LARGE_TIME_T \\
7846 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
7847 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
7848 && LARGE_TIME_T % 65537 == 0)
7849 ? 1 : -1];
7850
7851 int
7852 main (void)
7853 {
7854
7855 ;
7856 return 0;
7857 }
7858 _ACEOF
7859 if ac_fn_c_try_compile "$LINENO"
7860 then :
7861 ac_cv_sys_year2038_opts="$ac_opt"
7862 ac_opt_found=yes
7863 fi
7864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7865 test $ac_opt_found = no || break
7866 done
7867 CPPFLAGS="$ac_save_CPPFLAGS"
7868 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected" ;;
7869 esac
7870 fi
7871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
7872 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
7873
7874 ac_have_year2038=yes
7875 case $ac_cv_sys_year2038_opts in #(
7876 "none needed") :
7877 ;; #(
7878 "support not detected") :
7879 ac_have_year2038=no ;; #(
7880 "-D_TIME_BITS=64") :
7881
7882 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
7883 ;; #(
7884 "-D__MINGW_USE_VC2005_COMPAT") :
7885
7886 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
7887 ;; #(
7888 "-U_USE_32_BIT_TIME_T"*) :
7889 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
7890 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
7891 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
7892 will stop working after mid-January 2038. Remove
7893 _USE_32BIT_TIME_T from the compiler flags.
7894 See 'config.log' for more details" "$LINENO" 5; } ;; #(
7895 *) :
7896 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
7897 esac
7898
7899 fi
7900
7901 fi
7902
7903
7904 # Pre-early section.
7905
7906
7907
7908 # Code from module absolute-header:
7909 # Code from module alloca-opt:
7910 # Code from module assert-h:
7911 # Code from module attribute:
7912 # Code from module basename-lgpl:
7913 # Code from module bool:
7914 # Code from module c99:
7915 # Code from module cloexec:
7916 # Code from module close:
7917 # Code from module double-slash-root:
7918 # Code from module dup2:
7919 # Code from module errno-h:
7920 # Code from module error:
7921 # Code from module error-h:
7922 # Code from module exitfail:
7923 # Code from module extensions:
7924 # This is actually already done in the pre-early phase.
7925 # AC_REQUIRE([gl_USE_SYSTEM_EXTENSIONS])
7926 # Code from module extensions-aix:
7927
7928 # Code from module extern-inline:
7929 # Code from module fcntl:
7930 # Code from module fcntl-h:
7931 # Code from module fd-hook:
7932 # Code from module filename:
7933 # Code from module fopen:
7934 # Code from module fopen-gnu:
7935 # Code from module free-posix:
7936 # Code from module fstat:
7937 # Code from module ftell:
7938 # Code from module ftello:
7939
7940 # Code from module gen-header:
7941 # Code from module getdtablesize:
7942 # Code from module getopt-gnu:
7943 # Code from module getopt-posix:
7944 # Code from module getprogname:
7945 # Code from module gettext-h:
7946 # Code from module gnulib-i18n:
7947 # Code from module hash-map:
7948 # Code from module idx:
7949 # Code from module include_next:
7950 # Code from module intprops:
7951 # Code from module inttypes-h-incomplete:
7952 # Code from module largefile:
7953
7954 # Code from module limits-h:
7955 # Code from module locale-h:
7956 # Code from module lseek:
7957 # Code from module malloc-posix:
7958 # Code from module malloca:
7959 # Code from module map:
7960 # Code from module map-c++:
7961 # Code from module memset_explicit:
7962 # Code from module msvc-inval:
7963 # Code from module msvc-nothrow:
7964 # Code from module multiarch:
7965 # Code from module nocrash:
7966 # Code from module open:
7967 # Code from module package-version:
7968 # Code from module pathmax:
7969 # Code from module read-file:
7970 # Code from module realloc-posix:
7971 # Code from module size_max:
7972 # Code from module snippet/_Noreturn:
7973 # Code from module snippet/arg-nonnull:
7974 # Code from module snippet/c++defs:
7975 # Code from module snippet/warn-on-use:
7976 # Code from module ssize_t:
7977 # Code from module stat:
7978 # Code from module stat-time:
7979 # Code from module std-gnu11:
7980 # Code from module stdckdint-h:
7981 # Code from module stddef-h:
7982 # Code from module stdint-h:
7983 # Code from module stdio-h:
7984
7985
7986 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
7987
7988
7989 # Code from module stdlib-h:
7990 # Code from module strerror:
7991 # Code from module strerror-override:
7992 # Code from module string-h:
7993 # Code from module sys_stat-h:
7994 # Code from module sys_types-h:
7995
7996 # Code from module time-h:
7997 # Code from module unistd-h:
7998 # Code from module vararrays:
7999 # Code from module wchar-h:
8000 # Code from module xalloc-die:
8001 # Code from module xalloc-oversized:
8002 # Code from module xmap:
8003 # Code from module xsize:
8004
8005 if test -n "$ac_tool_prefix"; then
8006 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8007 set dummy ${ac_tool_prefix}ar; ac_word=$2
8008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8009 printf %s "checking for $ac_word... " >&6; }
8010 if test ${ac_cv_prog_AR+y}
8011 then :
8012 printf %s "(cached) " >&6
8013 else case e in #(
8014 e) if test -n "$AR"; then
8015 ac_cv_prog_AR="$AR" # Let the user override the test.
8016 else
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8018 for as_dir in $PATH
8019 do
8020 IFS=$as_save_IFS
8021 case $as_dir in #(((
8022 '') as_dir=./ ;;
8023 */) ;;
8024 *) as_dir=$as_dir/ ;;
8025 esac
8026 for ac_exec_ext in '' $ac_executable_extensions; do
8027 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8028 ac_cv_prog_AR="${ac_tool_prefix}ar"
8029 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8030 break 2
8031 fi
8032 done
8033 done
8034 IFS=$as_save_IFS
8035
8036 fi ;;
8037 esac
8038 fi
8039 AR=$ac_cv_prog_AR
8040 if test -n "$AR"; then
8041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8042 printf "%s\n" "$AR" >&6; }
8043 else
8044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8045 printf "%s\n" "no" >&6; }
8046 fi
8047
8048
8049 fi
8050 if test -z "$ac_cv_prog_AR"; then
8051 ac_ct_AR=$AR
8052 # Extract the first word of "ar", so it can be a program name with args.
8053 set dummy ar; ac_word=$2
8054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 printf %s "checking for $ac_word... " >&6; }
8056 if test ${ac_cv_prog_ac_ct_AR+y}
8057 then :
8058 printf %s "(cached) " >&6
8059 else case e in #(
8060 e) if test -n "$ac_ct_AR"; then
8061 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8062 else
8063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8064 for as_dir in $PATH
8065 do
8066 IFS=$as_save_IFS
8067 case $as_dir in #(((
8068 '') as_dir=./ ;;
8069 */) ;;
8070 *) as_dir=$as_dir/ ;;
8071 esac
8072 for ac_exec_ext in '' $ac_executable_extensions; do
8073 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8074 ac_cv_prog_ac_ct_AR="ar"
8075 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8076 break 2
8077 fi
8078 done
8079 done
8080 IFS=$as_save_IFS
8081
8082 fi ;;
8083 esac
8084 fi
8085 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8086 if test -n "$ac_ct_AR"; then
8087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8088 printf "%s\n" "$ac_ct_AR" >&6; }
8089 else
8090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 printf "%s\n" "no" >&6; }
8092 fi
8093
8094 if test "x$ac_ct_AR" = x; then
8095 AR=""
8096 else
8097 case $cross_compiling:$ac_tool_warned in
8098 yes:)
8099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8100 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8101 ac_tool_warned=yes ;;
8102 esac
8103 AR=$ac_ct_AR
8104 fi
8105 else
8106 AR="$ac_cv_prog_AR"
8107 fi
8108
8109 if test -n "$ac_tool_prefix"; then
8110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8113 printf %s "checking for $ac_word... " >&6; }
8114 if test ${ac_cv_prog_RANLIB+y}
8115 then :
8116 printf %s "(cached) " >&6
8117 else case e in #(
8118 e) if test -n "$RANLIB"; then
8119 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8120 else
8121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8122 for as_dir in $PATH
8123 do
8124 IFS=$as_save_IFS
8125 case $as_dir in #(((
8126 '') as_dir=./ ;;
8127 */) ;;
8128 *) as_dir=$as_dir/ ;;
8129 esac
8130 for ac_exec_ext in '' $ac_executable_extensions; do
8131 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8132 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8133 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8134 break 2
8135 fi
8136 done
8137 done
8138 IFS=$as_save_IFS
8139
8140 fi ;;
8141 esac
8142 fi
8143 RANLIB=$ac_cv_prog_RANLIB
8144 if test -n "$RANLIB"; then
8145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8146 printf "%s\n" "$RANLIB" >&6; }
8147 else
8148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149 printf "%s\n" "no" >&6; }
8150 fi
8151
8152
8153 fi
8154 if test -z "$ac_cv_prog_RANLIB"; then
8155 ac_ct_RANLIB=$RANLIB
8156 # Extract the first word of "ranlib", so it can be a program name with args.
8157 set dummy ranlib; ac_word=$2
8158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8159 printf %s "checking for $ac_word... " >&6; }
8160 if test ${ac_cv_prog_ac_ct_RANLIB+y}
8161 then :
8162 printf %s "(cached) " >&6
8163 else case e in #(
8164 e) if test -n "$ac_ct_RANLIB"; then
8165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8166 else
8167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8168 for as_dir in $PATH
8169 do
8170 IFS=$as_save_IFS
8171 case $as_dir in #(((
8172 '') as_dir=./ ;;
8173 */) ;;
8174 *) as_dir=$as_dir/ ;;
8175 esac
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8178 ac_cv_prog_ac_ct_RANLIB="ranlib"
8179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8180 break 2
8181 fi
8182 done
8183 done
8184 IFS=$as_save_IFS
8185
8186 fi ;;
8187 esac
8188 fi
8189 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8190 if test -n "$ac_ct_RANLIB"; then
8191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8192 printf "%s\n" "$ac_ct_RANLIB" >&6; }
8193 else
8194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8195 printf "%s\n" "no" >&6; }
8196 fi
8197
8198 if test "x$ac_ct_RANLIB" = x; then
8199 RANLIB=":"
8200 else
8201 case $cross_compiling:$ac_tool_warned in
8202 yes:)
8203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8204 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8205 ac_tool_warned=yes ;;
8206 esac
8207 RANLIB=$ac_ct_RANLIB
8208 fi
8209 else
8210 RANLIB="$ac_cv_prog_RANLIB"
8211 fi
8212
8213
8214
8215
8216
8217
8218
8219
8220
8221
8222
8223
8224
8225 # Check whether --enable-cross-guesses was given.
8226 if test ${enable_cross_guesses+y}
8227 then :
8228 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
8229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
8230 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
8231 enableval=conservative
8232 fi
8233 gl_cross_guesses="$enableval"
8234 else case e in #(
8235 e) gl_cross_guesses=conservative ;;
8236 esac
8237 fi
8238
8239 if test $gl_cross_guesses = risky; then
8240 gl_cross_guess_normal="guessing yes"
8241 gl_cross_guess_inverted="guessing no"
8242 else
8243 gl_cross_guess_normal="guessing no"
8244 gl_cross_guess_inverted="guessing yes"
8245 fi
8246 LIBC_FATAL_STDERR_=1
8247 export LIBC_FATAL_STDERR_
8248
8249
8250 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
8251 if test "x$ac_cv_type_size_t" = xyes
8252 then :
8253
8254 else case e in #(
8255 e)
8256 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
8257 ;;
8258 esac
8259 fi
8260
8261 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
8262 # for constant arguments. Useless!
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
8264 printf %s "checking for working alloca.h... " >&6; }
8265 if test ${ac_cv_working_alloca_h+y}
8266 then :
8267 printf %s "(cached) " >&6
8268 else case e in #(
8269 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8270 /* end confdefs.h. */
8271 #include <alloca.h>
8272 int
8273 main (void)
8274 {
8275 char *p = (char *) alloca (2 * sizeof (int));
8276 if (p) return 0;
8277 ;
8278 return 0;
8279 }
8280 _ACEOF
8281 if ac_fn_c_try_link "$LINENO"
8282 then :
8283 ac_cv_working_alloca_h=yes
8284 else case e in #(
8285 e) ac_cv_working_alloca_h=no ;;
8286 esac
8287 fi
8288 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8289 conftest$ac_exeext conftest.$ac_ext ;;
8290 esac
8291 fi
8292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
8293 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
8294 if test $ac_cv_working_alloca_h = yes; then
8295
8296 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
8297
8298 fi
8299
8300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
8301 printf %s "checking for alloca... " >&6; }
8302 if test ${ac_cv_func_alloca_works+y}
8303 then :
8304 printf %s "(cached) " >&6
8305 else case e in #(
8306 e) ac_cv_func_alloca_works=$ac_cv_working_alloca_h
8307 if test "$ac_cv_func_alloca_works" != yes
8308 then :
8309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8310 /* end confdefs.h. */
8311 #include <stdlib.h>
8312 #include <stddef.h>
8313 #ifndef alloca
8314 # ifdef __GNUC__
8315 # define alloca __builtin_alloca
8316 # elif defined _MSC_VER
8317 # include <malloc.h>
8318 # define alloca _alloca
8319 # else
8320 # ifdef __cplusplus
8321 extern "C"
8322 # endif
8323 void *alloca (size_t);
8324 # endif
8325 #endif
8326
8327 int
8328 main (void)
8329 {
8330 char *p = (char *) alloca (1);
8331 if (p) return 0;
8332 ;
8333 return 0;
8334 }
8335 _ACEOF
8336 if ac_fn_c_try_link "$LINENO"
8337 then :
8338 ac_cv_func_alloca_works=yes
8339 fi
8340 rm -f core conftest.err conftest.$ac_objext conftest.beam \
8341 conftest$ac_exeext conftest.$ac_ext
8342 fi ;;
8343 esac
8344 fi
8345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
8346 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
8347
8348 if test $ac_cv_func_alloca_works = yes; then
8349
8350 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
8351
8352 else
8353 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
8354 # that cause trouble. Some versions do not even contain alloca or
8355 # contain a buggy version. If you still want to use their alloca,
8356 # use ar to extract alloca.o from them instead of compiling alloca.c.
8357
8358
8359
8360
8361
8362 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
8363
8364 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
8365
8366
8367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
8368 printf %s "checking stack direction for C alloca... " >&6; }
8369 if test ${ac_cv_c_stack_direction+y}
8370 then :
8371 printf %s "(cached) " >&6
8372 else case e in #(
8373 e) if test "$cross_compiling" = yes
8374 then :
8375 ac_cv_c_stack_direction=0
8376 else case e in #(
8377 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8378 /* end confdefs.h. */
8379 $ac_includes_default
8380 int
8381 find_stack_direction (int *addr, int depth)
8382 {
8383 int dir, dummy = 0;
8384 if (! addr)
8385 addr = &dummy;
8386 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
8387 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
8388 return dir + dummy;
8389 }
8390
8391 int
8392 main (int argc, char **argv)
8393 {
8394 return find_stack_direction (0, argc + !argv + 20) < 0;
8395 }
8396 _ACEOF
8397 if ac_fn_c_try_run "$LINENO"
8398 then :
8399 ac_cv_c_stack_direction=1
8400 else case e in #(
8401 e) ac_cv_c_stack_direction=-1 ;;
8402 esac
8403 fi
8404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8405 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
8406 esac
8407 fi
8408 ;;
8409 esac
8410 fi
8411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
8412 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
8413 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
8414
8415
8416 fi
8417
8418
8419
8420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
8421 printf %s "checking whether the preprocessor supports include_next... " >&6; }
8422 if test ${gl_cv_have_include_next+y}
8423 then :
8424 printf %s "(cached) " >&6
8425 else case e in #(
8426 e) rm -rf conftestd1a conftestd1b conftestd2
8427 mkdir conftestd1a conftestd1b conftestd2
8428 cat <<EOF > conftestd1a/conftest.h
8429 #define DEFINED_IN_CONFTESTD1
8430 #include_next <conftest.h>
8431 #ifdef DEFINED_IN_CONFTESTD2
8432 int foo;
8433 #else
8434 #error "include_next doesn't work"
8435 #endif
8436 EOF
8437 cat <<EOF > conftestd1b/conftest.h
8438 #define DEFINED_IN_CONFTESTD1
8439 #include <stdio.h>
8440 #include_next <conftest.h>
8441 #ifdef DEFINED_IN_CONFTESTD2
8442 int foo;
8443 #else
8444 #error "include_next doesn't work"
8445 #endif
8446 EOF
8447 cat <<EOF > conftestd2/conftest.h
8448 #ifndef DEFINED_IN_CONFTESTD1
8449 #error "include_next test doesn't work"
8450 #endif
8451 #define DEFINED_IN_CONFTESTD2
8452 EOF
8453 gl_saved_CPPFLAGS="$CPPFLAGS"
8454 CPPFLAGS="$gl_saved_CPPFLAGS -Iconftestd1b -Iconftestd2"
8455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8456 /* end confdefs.h. */
8457 #include <conftest.h>
8458 _ACEOF
8459 if ac_fn_c_try_compile "$LINENO"
8460 then :
8461 gl_cv_have_include_next=yes
8462 else case e in #(
8463 e) CPPFLAGS="$gl_saved_CPPFLAGS -Iconftestd1a -Iconftestd2"
8464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8465 /* end confdefs.h. */
8466 #include <conftest.h>
8467 _ACEOF
8468 if ac_fn_c_try_compile "$LINENO"
8469 then :
8470 gl_cv_have_include_next=buggy
8471 else case e in #(
8472 e) gl_cv_have_include_next=no ;;
8473 esac
8474 fi
8475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8476 ;;
8477 esac
8478 fi
8479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8480 CPPFLAGS="$gl_saved_CPPFLAGS"
8481 rm -rf conftestd1a conftestd1b conftestd2
8482 ;;
8483 esac
8484 fi
8485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
8486 printf "%s\n" "$gl_cv_have_include_next" >&6; }
8487 PRAGMA_SYSTEM_HEADER=
8488 if test $gl_cv_have_include_next = yes; then
8489 INCLUDE_NEXT=include_next
8490 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
8491 if test -n "$GCC"; then
8492 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
8493 fi
8494 else
8495 if test $gl_cv_have_include_next = buggy; then
8496 INCLUDE_NEXT=include
8497 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
8498 else
8499 INCLUDE_NEXT=include
8500 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
8501 fi
8502 fi
8503
8504
8505
8506
8507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
8508 printf %s "checking whether source code line length is unlimited... " >&6; }
8509 if test ${gl_cv_source_line_length_unlimited+y}
8510 then :
8511 printf %s "(cached) " >&6
8512 else case e in #(
8513 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8514 /* end confdefs.h. */
8515
8516 #ifdef __TANDEM
8517 choke me
8518 #endif
8519
8520 _ACEOF
8521 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8522 $EGREP_TRADITIONAL "choke me" >/dev/null 2>&1
8523 then :
8524 gl_cv_source_line_length_unlimited=no
8525 else case e in #(
8526 e) gl_cv_source_line_length_unlimited=yes ;;
8527 esac
8528 fi
8529 rm -rf conftest*
8530
8531 ;;
8532 esac
8533 fi
8534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
8535 printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; }
8536 if test $gl_cv_source_line_length_unlimited = no; then
8537 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
8538 else
8539 PRAGMA_COLUMNS=
8540 fi
8541
8542
8543
8544
8545 HAVE_CHOWN=1;
8546 HAVE_COPY_FILE_RANGE=1;
8547 HAVE_DUP3=1;
8548 HAVE_EUIDACCESS=1;
8549 HAVE_EXECVPE=1;
8550 HAVE_FACCESSAT=1;
8551 HAVE_FCHDIR=1;
8552 HAVE_FCHOWNAT=1;
8553 HAVE_FDATASYNC=1;
8554 HAVE_FSYNC=1;
8555 HAVE_FTRUNCATE=1;
8556 HAVE_GETDTABLESIZE=1;
8557 HAVE_GETENTROPY=1;
8558 HAVE_GETGROUPS=1;
8559 HAVE_GETHOSTNAME=1;
8560 HAVE_GETLOGIN=1;
8561 HAVE_GETPAGESIZE=1;
8562 HAVE_GETPASS=1;
8563 HAVE_GROUP_MEMBER=1;
8564 HAVE_LCHOWN=1;
8565 HAVE_LINK=1;
8566 HAVE_LINKAT=1;
8567 HAVE_PIPE=1;
8568 HAVE_PIPE2=1;
8569 HAVE_PREAD=1;
8570 HAVE_PWRITE=1;
8571 HAVE_READLINK=1;
8572 HAVE_READLINKAT=1;
8573 HAVE_SETHOSTNAME=1;
8574 HAVE_SLEEP=1;
8575 HAVE_SYMLINK=1;
8576 HAVE_SYMLINKAT=1;
8577 HAVE_UNLINKAT=1;
8578 HAVE_USLEEP=1;
8579 HAVE_DECL_ENVIRON=1;
8580 HAVE_DECL_EXECVPE=1;
8581 HAVE_DECL_FCHDIR=1;
8582 HAVE_DECL_FDATASYNC=1;
8583 HAVE_DECL_GETDOMAINNAME=1;
8584 HAVE_DECL_GETLOGIN=1;
8585 HAVE_DECL_GETLOGIN_R=1;
8586 HAVE_DECL_GETPAGESIZE=1;
8587 HAVE_DECL_GETUSERSHELL=1;
8588 HAVE_DECL_SETHOSTNAME=1;
8589 HAVE_DECL_TRUNCATE=1;
8590 HAVE_DECL_TTYNAME_R=1;
8591 HAVE_OS_H=0;
8592 HAVE_SYS_PARAM_H=0;
8593 REPLACE_ACCESS=0;
8594 REPLACE_CHOWN=0;
8595 REPLACE_CLOSE=0;
8596 REPLACE_COPY_FILE_RANGE=0;
8597 REPLACE_DUP=0;
8598 REPLACE_DUP2=0;
8599 REPLACE_DUP3=0;
8600 REPLACE_EXECL=0;
8601 REPLACE_EXECLE=0;
8602 REPLACE_EXECLP=0;
8603 REPLACE_EXECV=0;
8604 REPLACE_EXECVE=0;
8605 REPLACE_EXECVP=0;
8606 REPLACE_EXECVPE=0;
8607 REPLACE_FACCESSAT=0;
8608 REPLACE_FCHDIR=0;
8609 REPLACE_FCHOWNAT=0;
8610 REPLACE_FDATASYNC=0;
8611 REPLACE_FTRUNCATE=0;
8612 REPLACE_GETCWD=0;
8613 REPLACE_GETDOMAINNAME=0;
8614 REPLACE_GETDTABLESIZE=0;
8615 REPLACE_GETENTROPY=0;
8616 REPLACE_GETLOGIN=0;
8617 REPLACE_GETLOGIN_R=0;
8618 REPLACE_GETGROUPS=0;
8619 REPLACE_GETPAGESIZE=0;
8620 REPLACE_GETPASS=0;
8621 REPLACE_GETPASS_FOR_GETPASS_GNU=0;
8622 REPLACE_GETUSERSHELL=0;
8623 REPLACE_ISATTY=0;
8624 REPLACE_LCHOWN=0;
8625 REPLACE_LINK=0;
8626 REPLACE_LINKAT=0;
8627 REPLACE_LSEEK=0;
8628 REPLACE_PIPE2=0;
8629 REPLACE_PREAD=0;
8630 REPLACE_PWRITE=0;
8631 REPLACE_READ=0;
8632 REPLACE_READLINK=0;
8633 REPLACE_READLINKAT=0;
8634 REPLACE_RMDIR=0;
8635 REPLACE_SETHOSTNAME=0;
8636 REPLACE_SLEEP=0;
8637 REPLACE_SYMLINK=0;
8638 REPLACE_SYMLINKAT=0;
8639 REPLACE_TRUNCATE=0;
8640 REPLACE_TTYNAME_R=0;
8641 REPLACE_UNLINK=0;
8642 REPLACE_UNLINKAT=0;
8643 REPLACE_USLEEP=0;
8644 REPLACE_WRITE=0;
8645 UNISTD_H_HAVE_SYS_RANDOM_H=0;
8646 UNISTD_H_HAVE_WINSOCK2_H=0;
8647 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
8648
8649
8650 ac_func=
8651 for ac_item in $ac_func_c_list
8652 do
8653 if test $ac_func; then
8654 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
8655 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
8656 echo "#define $ac_item 1" >> confdefs.h
8657 fi
8658 ac_func=
8659 else
8660 ac_func=$ac_item
8661 fi
8662 done
8663
8664
8665 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
8666 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
8667
8668 printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
8669
8670 else
8671 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
8672 fi
8673
8674
8675
8676
8677
8678
8679
8680 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
8681 REPLACE_CLOSE=1
8682 fi
8683
8684
8685
8686
8687
8688
8689 if test $ac_cv_header_sys_socket_h != yes; then
8690 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
8691 if test "x$ac_cv_header_winsock2_h" = xyes
8692 then :
8693 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
8694
8695 fi
8696
8697 fi
8698 if test "$ac_cv_header_winsock2_h" = yes; then
8699 HAVE_WINSOCK2_H=1
8700 UNISTD_H_HAVE_WINSOCK2_H=1
8701 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
8702 else
8703 HAVE_WINSOCK2_H=0
8704 fi
8705
8706
8707 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
8708 REPLACE_CLOSE=1
8709 fi
8710
8711
8712
8713
8714
8715 GL_GNULIB_ACCESS=0
8716
8717
8718
8719 GL_GNULIB_CHDIR=0
8720
8721
8722
8723 GL_GNULIB_CHOWN=0
8724
8725
8726
8727 GL_GNULIB_CLOSE=0
8728
8729
8730
8731 GL_GNULIB_COPY_FILE_RANGE=0
8732
8733
8734
8735 GL_GNULIB_DUP=0
8736
8737
8738
8739 GL_GNULIB_DUP2=0
8740
8741
8742
8743 GL_GNULIB_DUP3=0
8744
8745
8746
8747 GL_GNULIB_ENVIRON=0
8748
8749
8750
8751 GL_GNULIB_EUIDACCESS=0
8752
8753
8754
8755 GL_GNULIB_EXECL=0
8756
8757
8758
8759 GL_GNULIB_EXECLE=0
8760
8761
8762
8763 GL_GNULIB_EXECLP=0
8764
8765
8766
8767 GL_GNULIB_EXECV=0
8768
8769
8770
8771 GL_GNULIB_EXECVE=0
8772
8773
8774
8775 GL_GNULIB_EXECVP=0
8776
8777
8778
8779 GL_GNULIB_EXECVPE=0
8780
8781
8782
8783 GL_GNULIB_FACCESSAT=0
8784
8785
8786
8787 GL_GNULIB_FCHDIR=0
8788
8789
8790
8791 GL_GNULIB_FCHOWNAT=0
8792
8793
8794
8795 GL_GNULIB_FDATASYNC=0
8796
8797
8798
8799 GL_GNULIB_FSYNC=0
8800
8801
8802
8803 GL_GNULIB_FTRUNCATE=0
8804
8805
8806
8807 GL_GNULIB_GETCWD=0
8808
8809
8810
8811 GL_GNULIB_GETDOMAINNAME=0
8812
8813
8814
8815 GL_GNULIB_GETDTABLESIZE=0
8816
8817
8818
8819 GL_GNULIB_GETENTROPY=0
8820
8821
8822
8823 GL_GNULIB_GETGROUPS=0
8824
8825
8826
8827 GL_GNULIB_GETHOSTNAME=0
8828
8829
8830
8831 GL_GNULIB_GETLOGIN=0
8832
8833
8834
8835 GL_GNULIB_GETLOGIN_R=0
8836
8837
8838
8839 GL_GNULIB_GETOPT_POSIX=0
8840
8841
8842
8843 GL_GNULIB_GETPAGESIZE=0
8844
8845
8846
8847 GL_GNULIB_GETPASS=0
8848
8849
8850
8851 GL_GNULIB_GETPASS_GNU=0
8852
8853
8854
8855 GL_GNULIB_GETUSERSHELL=0
8856
8857
8858
8859 GL_GNULIB_GROUP_MEMBER=0
8860
8861
8862
8863 GL_GNULIB_ISATTY=0
8864
8865
8866
8867 GL_GNULIB_LCHOWN=0
8868
8869
8870
8871 GL_GNULIB_LINK=0
8872
8873
8874
8875 GL_GNULIB_LINKAT=0
8876
8877
8878
8879 GL_GNULIB_LSEEK=0
8880
8881
8882
8883 GL_GNULIB_PIPE=0
8884
8885
8886
8887 GL_GNULIB_PIPE2=0
8888
8889
8890
8891 GL_GNULIB_PREAD=0
8892
8893
8894
8895 GL_GNULIB_PWRITE=0
8896
8897
8898
8899 GL_GNULIB_READ=0
8900
8901
8902
8903 GL_GNULIB_READLINK=0
8904
8905
8906
8907 GL_GNULIB_READLINKAT=0
8908
8909
8910
8911 GL_GNULIB_RMDIR=0
8912
8913
8914
8915 GL_GNULIB_SETHOSTNAME=0
8916
8917
8918
8919 GL_GNULIB_SLEEP=0
8920
8921
8922
8923 GL_GNULIB_SYMLINK=0
8924
8925
8926
8927 GL_GNULIB_SYMLINKAT=0
8928
8929
8930
8931 GL_GNULIB_TRUNCATE=0
8932
8933
8934
8935 GL_GNULIB_TTYNAME_R=0
8936
8937
8938
8939 GL_GNULIB_UNISTD_H_GETOPT=0
8940
8941
8942
8943 GL_GNULIB_UNISTD_H_NONBLOCKING=0
8944
8945
8946
8947 GL_GNULIB_UNISTD_H_SIGPIPE=0
8948
8949
8950
8951 GL_GNULIB_UNLINK=0
8952
8953
8954
8955 GL_GNULIB_UNLINKAT=0
8956
8957
8958
8959 GL_GNULIB_USLEEP=0
8960
8961
8962
8963 GL_GNULIB_WRITE=0
8964
8965
8966
8967 GL_GNULIB_MDA_ACCESS=1
8968
8969
8970
8971 GL_GNULIB_MDA_CHDIR=1
8972
8973
8974
8975 GL_GNULIB_MDA_CLOSE=1
8976
8977
8978
8979 GL_GNULIB_MDA_DUP=1
8980
8981
8982
8983 GL_GNULIB_MDA_DUP2=1
8984
8985
8986
8987 GL_GNULIB_MDA_EXECL=1
8988
8989
8990
8991 GL_GNULIB_MDA_EXECLE=1
8992
8993
8994
8995 GL_GNULIB_MDA_EXECLP=1
8996
8997
8998
8999 GL_GNULIB_MDA_EXECV=1
9000
9001
9002
9003 GL_GNULIB_MDA_EXECVE=1
9004
9005
9006
9007 GL_GNULIB_MDA_EXECVP=1
9008
9009
9010
9011 GL_GNULIB_MDA_EXECVPE=1
9012
9013
9014
9015 GL_GNULIB_MDA_GETCWD=1
9016
9017
9018
9019 GL_GNULIB_MDA_GETPID=1
9020
9021
9022
9023 GL_GNULIB_MDA_ISATTY=1
9024
9025
9026
9027 GL_GNULIB_MDA_LSEEK=1
9028
9029
9030
9031 GL_GNULIB_MDA_READ=1
9032
9033
9034
9035 GL_GNULIB_MDA_RMDIR=1
9036
9037
9038
9039 GL_GNULIB_MDA_SWAB=1
9040
9041
9042
9043 GL_GNULIB_MDA_UNLINK=1
9044
9045
9046
9047 GL_GNULIB_MDA_WRITE=1
9048
9049
9050
9051 gl_mda_defines='
9052 #if defined _WIN32 && !defined __CYGWIN__
9053 #define access _access
9054 #define chdir _chdir
9055 #define chmod _chmod
9056 #define close _close
9057 #define creat _creat
9058 #define dup _dup
9059 #define dup2 _dup2
9060 #define ecvt _ecvt
9061 #define execl _execl
9062 #define execle _execle
9063 #define execlp _execlp
9064 #define execv _execv
9065 #define execve _execve
9066 #define execvp _execvp
9067 #define execvpe _execvpe
9068 #define fcloseall _fcloseall
9069 #define fcvt _fcvt
9070 #define fdopen _fdopen
9071 #define fileno _fileno
9072 #define gcvt _gcvt
9073 #define getcwd _getcwd
9074 #define getpid _getpid
9075 #define getw _getw
9076 #define isatty _isatty
9077 #define j0 _j0
9078 #define j1 _j1
9079 #define jn _jn
9080 #define lfind _lfind
9081 #define lsearch _lsearch
9082 #define lseek _lseek
9083 #define memccpy _memccpy
9084 #define mkdir _mkdir
9085 #define mktemp _mktemp
9086 #define open _open
9087 #define putenv _putenv
9088 #define putw _putw
9089 #define read _read
9090 #define rmdir _rmdir
9091 #define strdup _strdup
9092 #define swab _swab
9093 #define tempnam _tempnam
9094 #define tzset _tzset
9095 #define umask _umask
9096 #define unlink _unlink
9097 #define utime _utime
9098 #define wcsdup _wcsdup
9099 #define write _write
9100 #define y0 _y0
9101 #define y1 _y1
9102 #define yn _yn
9103 #endif
9104 '
9105
9106
9107
9108
9109
9110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
9111 printf %s "checking for complete errno.h... " >&6; }
9112 if test ${gl_cv_header_errno_h_complete+y}
9113 then :
9114 printf %s "(cached) " >&6
9115 else case e in #(
9116 e)
9117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9118 /* end confdefs.h. */
9119
9120 #include <errno.h>
9121 #if !defined ETXTBSY
9122 booboo
9123 #endif
9124 #if !defined ENOMSG
9125 booboo
9126 #endif
9127 #if !defined EIDRM
9128 booboo
9129 #endif
9130 #if !defined ENOLINK
9131 booboo
9132 #endif
9133 #if !defined EPROTO
9134 booboo
9135 #endif
9136 #if !defined EMULTIHOP
9137 booboo
9138 #endif
9139 #if !defined EBADMSG
9140 booboo
9141 #endif
9142 #if !defined EOVERFLOW
9143 booboo
9144 #endif
9145 #if !defined ENOTSUP
9146 booboo
9147 #endif
9148 #if !defined ENETRESET
9149 booboo
9150 #endif
9151 #if !defined ECONNABORTED
9152 booboo
9153 #endif
9154 #if !defined ESTALE
9155 booboo
9156 #endif
9157 #if !defined EDQUOT
9158 booboo
9159 #endif
9160 #if !defined ECANCELED
9161 booboo
9162 #endif
9163 #if !defined EOWNERDEAD
9164 booboo
9165 #endif
9166 #if !defined ENOTRECOVERABLE
9167 booboo
9168 #endif
9169 #if !defined EILSEQ
9170 booboo
9171 #endif
9172 #if !defined ESOCKTNOSUPPORT
9173 booboo
9174 #endif
9175
9176 _ACEOF
9177 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9178 $EGREP_TRADITIONAL "booboo" >/dev/null 2>&1
9179 then :
9180 gl_cv_header_errno_h_complete=no
9181 else case e in #(
9182 e) gl_cv_header_errno_h_complete=yes ;;
9183 esac
9184 fi
9185 rm -rf conftest*
9186
9187 ;;
9188 esac
9189 fi
9190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
9191 printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; }
9192 if test $gl_cv_header_errno_h_complete = yes; then
9193 GL_GENERATE_ERRNO_H=false
9194 else
9195
9196
9197
9198
9199
9200
9201
9202
9203 if test $gl_cv_have_include_next = yes; then
9204 gl_cv_next_errno_h='<'errno.h'>'
9205 else
9206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
9207 printf %s "checking absolute name of <errno.h>... " >&6; }
9208 if test ${gl_cv_next_errno_h+y}
9209 then :
9210 printf %s "(cached) " >&6
9211 else case e in #(
9212 e)
9213
9214
9215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9216 /* end confdefs.h. */
9217 #include <errno.h>
9218 _ACEOF
9219 case "$host_os" in
9220 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9221 *) gl_absname_cpp="$ac_cpp" ;;
9222 esac
9223
9224 case "$host_os" in
9225 mingw* | windows*)
9226 gl_dirsep_regex='[/\\]'
9227 ;;
9228 *)
9229 gl_dirsep_regex='\/'
9230 ;;
9231 esac
9232 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9233 gl_header_literal_regex=`echo 'errno.h' \
9234 | sed -e "$gl_make_literal_regex_sed"`
9235 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9236 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9237 s|^/[^/]|//&|
9238 p
9239 q
9240 }'
9241
9242 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9243 sed -n "$gl_absolute_header_sed"`
9244
9245 gl_header=$gl_cv_absolute_errno_h
9246 gl_cv_next_errno_h='"'$gl_header'"'
9247
9248 ;;
9249 esac
9250 fi
9251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
9252 printf "%s\n" "$gl_cv_next_errno_h" >&6; }
9253 fi
9254 NEXT_ERRNO_H=$gl_cv_next_errno_h
9255
9256 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9257 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9258 gl_next_as_first_directive='<'errno.h'>'
9259 else
9260 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9261 gl_next_as_first_directive=$gl_cv_next_errno_h
9262 fi
9263 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
9264
9265
9266
9267
9268 GL_GENERATE_ERRNO_H=true
9269 fi
9270
9271 if $GL_GENERATE_ERRNO_H; then
9272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
9273 printf %s "checking for EMULTIHOP value... " >&6; }
9274 if test ${gl_cv_header_errno_h_EMULTIHOP+y}
9275 then :
9276 printf %s "(cached) " >&6
9277 else case e in #(
9278 e)
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281
9282 #include <errno.h>
9283 #ifdef EMULTIHOP
9284 yes
9285 #endif
9286
9287 _ACEOF
9288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9289 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
9290 then :
9291 gl_cv_header_errno_h_EMULTIHOP=yes
9292 else case e in #(
9293 e) gl_cv_header_errno_h_EMULTIHOP=no ;;
9294 esac
9295 fi
9296 rm -rf conftest*
9297
9298 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9301
9302 #define _XOPEN_SOURCE_EXTENDED 1
9303 #include <errno.h>
9304 #ifdef EMULTIHOP
9305 yes
9306 #endif
9307
9308 _ACEOF
9309 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9310 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
9311 then :
9312 gl_cv_header_errno_h_EMULTIHOP=hidden
9313 fi
9314 rm -rf conftest*
9315
9316 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
9317 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
9318 #define _XOPEN_SOURCE_EXTENDED 1
9319 #include <errno.h>
9320 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9321 #include <stdio.h>
9322 #include <stdlib.h>
9323 "
9324 then :
9325
9326 fi
9327
9328 fi
9329 fi
9330 ;;
9331 esac
9332 fi
9333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
9334 printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
9335 case $gl_cv_header_errno_h_EMULTIHOP in
9336 yes | no)
9337 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
9338 ;;
9339 *)
9340 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
9341 ;;
9342 esac
9343
9344
9345 fi
9346
9347
9348 if $GL_GENERATE_ERRNO_H; then
9349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
9350 printf %s "checking for ENOLINK value... " >&6; }
9351 if test ${gl_cv_header_errno_h_ENOLINK+y}
9352 then :
9353 printf %s "(cached) " >&6
9354 else case e in #(
9355 e)
9356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357 /* end confdefs.h. */
9358
9359 #include <errno.h>
9360 #ifdef ENOLINK
9361 yes
9362 #endif
9363
9364 _ACEOF
9365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9366 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
9367 then :
9368 gl_cv_header_errno_h_ENOLINK=yes
9369 else case e in #(
9370 e) gl_cv_header_errno_h_ENOLINK=no ;;
9371 esac
9372 fi
9373 rm -rf conftest*
9374
9375 if test $gl_cv_header_errno_h_ENOLINK = no; then
9376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9377 /* end confdefs.h. */
9378
9379 #define _XOPEN_SOURCE_EXTENDED 1
9380 #include <errno.h>
9381 #ifdef ENOLINK
9382 yes
9383 #endif
9384
9385 _ACEOF
9386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9387 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
9388 then :
9389 gl_cv_header_errno_h_ENOLINK=hidden
9390 fi
9391 rm -rf conftest*
9392
9393 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
9394 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
9395 #define _XOPEN_SOURCE_EXTENDED 1
9396 #include <errno.h>
9397 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9398 #include <stdio.h>
9399 #include <stdlib.h>
9400 "
9401 then :
9402
9403 fi
9404
9405 fi
9406 fi
9407 ;;
9408 esac
9409 fi
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
9411 printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; }
9412 case $gl_cv_header_errno_h_ENOLINK in
9413 yes | no)
9414 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
9415 ;;
9416 *)
9417 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
9418 ;;
9419 esac
9420
9421
9422 fi
9423
9424
9425 if $GL_GENERATE_ERRNO_H; then
9426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
9427 printf %s "checking for EOVERFLOW value... " >&6; }
9428 if test ${gl_cv_header_errno_h_EOVERFLOW+y}
9429 then :
9430 printf %s "(cached) " >&6
9431 else case e in #(
9432 e)
9433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9434 /* end confdefs.h. */
9435
9436 #include <errno.h>
9437 #ifdef EOVERFLOW
9438 yes
9439 #endif
9440
9441 _ACEOF
9442 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9443 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
9444 then :
9445 gl_cv_header_errno_h_EOVERFLOW=yes
9446 else case e in #(
9447 e) gl_cv_header_errno_h_EOVERFLOW=no ;;
9448 esac
9449 fi
9450 rm -rf conftest*
9451
9452 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
9453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9454 /* end confdefs.h. */
9455
9456 #define _XOPEN_SOURCE_EXTENDED 1
9457 #include <errno.h>
9458 #ifdef EOVERFLOW
9459 yes
9460 #endif
9461
9462 _ACEOF
9463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9464 $EGREP_TRADITIONAL "yes" >/dev/null 2>&1
9465 then :
9466 gl_cv_header_errno_h_EOVERFLOW=hidden
9467 fi
9468 rm -rf conftest*
9469
9470 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
9471 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
9472 #define _XOPEN_SOURCE_EXTENDED 1
9473 #include <errno.h>
9474 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9475 #include <stdio.h>
9476 #include <stdlib.h>
9477 "
9478 then :
9479
9480 fi
9481
9482 fi
9483 fi
9484 ;;
9485 esac
9486 fi
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
9488 printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
9489 case $gl_cv_header_errno_h_EOVERFLOW in
9490 yes | no)
9491 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
9492 ;;
9493 *)
9494 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
9495 ;;
9496 esac
9497
9498
9499 fi
9500
9501
9502
9503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
9504 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
9505 if test ${ac_cv_c_undeclared_builtin_options+y}
9506 then :
9507 printf %s "(cached) " >&6
9508 else case e in #(
9509 e) ac_save_CFLAGS=$CFLAGS
9510 ac_cv_c_undeclared_builtin_options='cannot detect'
9511 for ac_arg in '' -fno-builtin; do
9512 CFLAGS="$ac_save_CFLAGS $ac_arg"
9513 # This test program should *not* compile successfully.
9514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9515 /* end confdefs.h. */
9516
9517 int
9518 main (void)
9519 {
9520 (void) strchr;
9521 ;
9522 return 0;
9523 }
9524 _ACEOF
9525 if ac_fn_c_try_compile "$LINENO"
9526 then :
9527
9528 else case e in #(
9529 e) # This test program should compile successfully.
9530 # No library function is consistently available on
9531 # freestanding implementations, so test against a dummy
9532 # declaration. Include always-available headers on the
9533 # off chance that they somehow elicit warnings.
9534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9535 /* end confdefs.h. */
9536 #include <float.h>
9537 #include <limits.h>
9538 #include <stdarg.h>
9539 #include <stddef.h>
9540 extern void ac_decl (int, char *);
9541
9542 int
9543 main (void)
9544 {
9545 (void) ac_decl (0, (char *) 0);
9546 (void) ac_decl;
9547
9548 ;
9549 return 0;
9550 }
9551 _ACEOF
9552 if ac_fn_c_try_compile "$LINENO"
9553 then :
9554 if test x"$ac_arg" = x
9555 then :
9556 ac_cv_c_undeclared_builtin_options='none needed'
9557 else case e in #(
9558 e) ac_cv_c_undeclared_builtin_options=$ac_arg ;;
9559 esac
9560 fi
9561 break
9562 fi
9563 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
9564 esac
9565 fi
9566 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9567 done
9568 CFLAGS=$ac_save_CFLAGS
9569 ;;
9570 esac
9571 fi
9572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
9573 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
9574 case $ac_cv_c_undeclared_builtin_options in #(
9575 'cannot detect') :
9576 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
9577 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
9578 as_fn_error $? "cannot make $CC report undeclared builtins
9579 See 'config.log' for more details" "$LINENO" 5; } ;; #(
9580 'none needed') :
9581 ac_c_undeclared_builtin_options='' ;; #(
9582 *) :
9583 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
9584 esac
9585
9586
9587
9588
9589
9590
9591
9592
9593
9594
9595
9596
9597 if test $gl_cv_have_include_next = yes; then
9598 gl_cv_next_error_h='<'error.h'>'
9599 else
9600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <error.h>" >&5
9601 printf %s "checking absolute name of <error.h>... " >&6; }
9602 if test ${gl_cv_next_error_h+y}
9603 then :
9604 printf %s "(cached) " >&6
9605 else case e in #(
9606 e)
9607 if test $ac_cv_header_error_h = yes; then
9608
9609
9610
9611
9612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9613 /* end confdefs.h. */
9614 #include <error.h>
9615 _ACEOF
9616 case "$host_os" in
9617 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9618 *) gl_absname_cpp="$ac_cpp" ;;
9619 esac
9620
9621 case "$host_os" in
9622 mingw* | windows*)
9623 gl_dirsep_regex='[/\\]'
9624 ;;
9625 *)
9626 gl_dirsep_regex='\/'
9627 ;;
9628 esac
9629 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9630 gl_header_literal_regex=`echo 'error.h' \
9631 | sed -e "$gl_make_literal_regex_sed"`
9632 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9633 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9634 s|^/[^/]|//&|
9635 p
9636 q
9637 }'
9638
9639 gl_cv_absolute_error_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9640 sed -n "$gl_absolute_header_sed"`
9641
9642 gl_header=$gl_cv_absolute_error_h
9643 gl_cv_next_error_h='"'$gl_header'"'
9644 else
9645 gl_cv_next_error_h='<'error.h'>'
9646 fi
9647
9648 ;;
9649 esac
9650 fi
9651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_error_h" >&5
9652 printf "%s\n" "$gl_cv_next_error_h" >&6; }
9653 fi
9654 NEXT_ERROR_H=$gl_cv_next_error_h
9655
9656 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9657 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9658 gl_next_as_first_directive='<'error.h'>'
9659 else
9660 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9661 gl_next_as_first_directive=$gl_cv_next_error_h
9662 fi
9663 NEXT_AS_FIRST_DIRECTIVE_ERROR_H=$gl_next_as_first_directive
9664
9665
9666
9667
9668 if test $ac_cv_header_error_h = yes; then
9669 HAVE_ERROR_H=1
9670 else
9671 HAVE_ERROR_H=0
9672 fi
9673
9674
9675 REPLACE_ERROR=0
9676
9677
9678
9679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error" >&5
9680 printf %s "checking for error... " >&6; }
9681 if test ${gl_cv_onwards_func_error+y}
9682 then :
9683 printf %s "(cached) " >&6
9684 else case e in #(
9685 e)
9686 exec 9>&6 6>/dev/null
9687
9688 case "$host_os" in
9689
9690 linux*-android*)
9691 ac_fn_check_decl "$LINENO" "error" "ac_cv_have_decl_error" "#include <error.h>
9692 " "$ac_c_undeclared_builtin_options" "CFLAGS"
9693 if test "x$ac_cv_have_decl_error" = xyes
9694 then :
9695
9696 fi
9697 if test $ac_cv_have_decl_error = yes; then
9698 ac_fn_c_check_func "$LINENO" "error" "ac_cv_func_error"
9699 if test "x$ac_cv_func_error" = xyes
9700 then :
9701
9702 fi
9703
9704 if test $ac_cv_func_error = yes; then
9705 gl_cv_onwards_func_error=yes
9706 else
9707 gl_cv_onwards_func_error='future OS version'
9708 fi
9709 else
9710 gl_cv_onwards_func_error='future OS version'
9711 fi
9712 ;;
9713
9714
9715 *)
9716 ac_fn_c_check_func "$LINENO" "error" "ac_cv_func_error"
9717 if test "x$ac_cv_func_error" = xyes
9718 then :
9719
9720 fi
9721
9722 gl_cv_onwards_func_error=$ac_cv_func_error
9723 ;;
9724
9725 esac
9726
9727 exec 6>&9 9>&-
9728
9729 ;;
9730 esac
9731 fi
9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_error" >&5
9733 printf "%s\n" "$gl_cv_onwards_func_error" >&6; }
9734
9735 case "$gl_cv_onwards_func_error" in
9736 future*) ac_cv_func_error=no ;;
9737 *) ac_cv_func_error=$gl_cv_onwards_func_error ;;
9738 esac
9739 if test $ac_cv_func_error = yes; then
9740
9741 printf "%s\n" "#define HAVE_ERROR 1" >>confdefs.h
9742
9743 fi
9744
9745
9746 if test $ac_cv_func_error = yes; then
9747 HAVE_ERROR=1
9748 else
9749 HAVE_ERROR=0
9750 case "$gl_cv_onwards_func_error" in
9751 future*) REPLACE_ERROR=1 ;;
9752 esac
9753 fi
9754
9755 ac_fn_check_decl "$LINENO" "error_at_line" "ac_cv_have_decl_error_at_line" "#include <error.h>
9756 " "$ac_c_undeclared_builtin_options" "CFLAGS"
9757 if test "x$ac_cv_have_decl_error_at_line" = xyes
9758 then :
9759
9760 fi
9761 if test $ac_cv_have_decl_error_at_line = yes; then
9762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
9763 printf %s "checking for error_at_line... " >&6; }
9764 if test ${ac_cv_lib_error_at_line+y}
9765 then :
9766 printf %s "(cached) " >&6
9767 else case e in #(
9768 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769 /* end confdefs.h. */
9770 #include <error.h>
9771 int
9772 main (void)
9773 {
9774 error_at_line (0, 0, "", 0, "an error occurred");
9775 ;
9776 return 0;
9777 }
9778 _ACEOF
9779 if ac_fn_c_try_link "$LINENO"
9780 then :
9781 ac_cv_lib_error_at_line=yes
9782 else case e in #(
9783 e) ac_cv_lib_error_at_line=no ;;
9784 esac
9785 fi
9786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9787 conftest$ac_exeext conftest.$ac_ext ;;
9788 esac
9789 fi
9790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
9791 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
9792 else
9793 ac_cv_lib_error_at_line=no
9794 fi
9795 if test $ac_cv_lib_error_at_line = yes; then
9796 HAVE_ERROR_AT_LINE=1
9797 else
9798 HAVE_ERROR_AT_LINE=0
9799 fi
9800 REPLACE_ERROR_AT_LINE=0
9801
9802 if test $ac_cv_func_error = yes && test $ac_cv_lib_error_at_line = yes; then
9803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working error function" >&5
9804 printf %s "checking for working error function... " >&6; }
9805 if test ${gl_cv_func_working_error+y}
9806 then :
9807 printf %s "(cached) " >&6
9808 else case e in #(
9809 e) if test $cross_compiling != yes; then
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812
9813 #include <error.h>
9814 static void print_no_progname (void) {}
9815
9816 int
9817 main (void)
9818 {
9819
9820 error_print_progname = print_no_progname;
9821 error (0, 0, "foo");
9822
9823 ;
9824 return 0;
9825 }
9826
9827 _ACEOF
9828 if ac_fn_c_try_link "$LINENO"
9829 then :
9830 rm -f conftest.out
9831 if test -s conftest$ac_exeext \
9832 && ./conftest$ac_exeext 2> conftest.out; then
9833 if grep ' ' conftest.out >/dev/null; then
9834 gl_cv_func_working_error=no
9835 else
9836 gl_cv_func_working_error=yes
9837 fi
9838 else
9839 gl_cv_func_working_error=no
9840 fi
9841 rm -f conftest.out
9842
9843 else case e in #(
9844 e) gl_cv_func_working_error=no ;;
9845 esac
9846 fi
9847 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9848 conftest$ac_exeext conftest.$ac_ext
9849 else
9850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851 /* end confdefs.h. */
9852
9853 #include <error.h>
9854
9855 int
9856 main (void)
9857 {
9858
9859 error (0, 0, "foo");
9860
9861 ;
9862 return 0;
9863 }
9864
9865 _ACEOF
9866 if ac_fn_c_try_compile "$LINENO"
9867 then :
9868 case "$host_os" in
9869 # Guess yes on glibc systems.
9870 *-gnu* | gnu*) gl_cv_func_working_error="guessing yes" ;;
9871 # Guess no on Android.
9872 linux*-android*) gl_cv_func_working_error="guessing no" ;;
9873 # If we don't know, obey --enable-cross-guesses.
9874 *) gl_cv_func_working_error="$gl_cross_guess_normal" ;;
9875 esac
9876
9877 else case e in #(
9878 e) gl_cv_func_working_error=no ;;
9879 esac
9880 fi
9881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9882 fi
9883 ;;
9884 esac
9885 fi
9886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_error" >&5
9887 printf "%s\n" "$gl_cv_func_working_error" >&6; }
9888 case "$gl_cv_func_working_error" in
9889 *no)
9890 REPLACE_ERROR=1
9891 REPLACE_ERROR_AT_LINE=1
9892 ;;
9893 esac
9894 fi
9895
9896 if test $HAVE_ERROR = 0 || test $REPLACE_ERROR = 1 \
9897 || test $HAVE_ERROR_AT_LINE = 0 \
9898 || test $REPLACE_ERROR_AT_LINE = 1; then
9899 COMPILE_ERROR_C=1
9900 else
9901 COMPILE_ERROR_C=0
9902 fi
9903
9904
9905
9906
9907
9908
9909 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9910 if test "x$ac_cv_have_decl_strerror_r" = xyes
9911 then :
9912 ac_have_decl=1
9913 else case e in #(
9914 e) ac_have_decl=0 ;;
9915 esac
9916 fi
9917 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
9918
9919
9920 if test $ac_cv_have_decl_strerror_r = yes; then
9921 # For backward compatibility's sake, define HAVE_STRERROR_R.
9922 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
9923 # as AC_CHECK_DECLS_ONCE.)
9924
9925 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
9926
9927 fi
9928
9929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
9930 printf %s "checking whether strerror_r returns char *... " >&6; }
9931 if test ${ac_cv_func_strerror_r_char_p+y}
9932 then :
9933 printf %s "(cached) " >&6
9934 else case e in #(
9935 e)
9936 ac_cv_func_strerror_r_char_p=no
9937 if test $ac_cv_have_decl_strerror_r = yes; then
9938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9939 /* end confdefs.h. */
9940 #include <string.h>
9941 int
9942 main (void)
9943 {
9944
9945 char buf[100];
9946 char x = *strerror_r (0, buf, sizeof buf);
9947 char *p = strerror_r (0, buf, sizeof buf);
9948 return !p || x;
9949
9950 ;
9951 return 0;
9952 }
9953 _ACEOF
9954 if ac_fn_c_try_compile "$LINENO"
9955 then :
9956 ac_cv_func_strerror_r_char_p=yes
9957 fi
9958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9959
9960 fi
9961 ;;
9962 esac
9963 fi
9964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
9965 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
9966 if test $ac_cv_func_strerror_r_char_p = yes; then
9967
9968 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
9969
9970 fi
9971
9972
9973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ctype.h defines __header_inline" >&5
9974 printf %s "checking whether ctype.h defines __header_inline... " >&6; }
9975 if test ${gl_cv_have___header_inline+y}
9976 then :
9977 printf %s "(cached) " >&6
9978 else case e in #(
9979 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980 /* end confdefs.h. */
9981 #include <ctype.h>
9982 #ifndef __header_inline
9983 #error "<ctype.h> does not define __header_inline"
9984 #endif
9985
9986 _ACEOF
9987 if ac_fn_c_try_cpp "$LINENO"
9988 then :
9989 gl_cv_have___header_inline=yes
9990 else case e in #(
9991 e) gl_cv_have___header_inline=no ;;
9992 esac
9993 fi
9994 rm -f conftest.err conftest.i conftest.$ac_ext ;;
9995 esac
9996 fi
9997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have___header_inline" >&5
9998 printf "%s\n" "$gl_cv_have___header_inline" >&6; }
9999 if test "$gl_cv_have___header_inline" = yes; then
10000
10001 printf "%s\n" "#define HAVE___HEADER_INLINE 1" >>confdefs.h
10002
10003 fi
10004
10005
10006
10007
10008 HAVE_FCNTL=1;
10009 HAVE_OPENAT=1;
10010 REPLACE_CREAT=0;
10011 REPLACE_FCNTL=0;
10012 REPLACE_OPEN=0;
10013 REPLACE_OPENAT=0;
10014
10015
10016
10017
10018 GL_GNULIB_CREAT=0
10019
10020
10021
10022 GL_GNULIB_FCNTL=0
10023
10024
10025
10026 GL_GNULIB_NONBLOCKING=0
10027
10028
10029
10030 GL_GNULIB_OPEN=0
10031
10032
10033
10034 GL_GNULIB_OPENAT=0
10035
10036
10037
10038 GL_GNULIB_MDA_CREAT=1
10039
10040
10041
10042 GL_GNULIB_MDA_OPEN=1
10043
10044
10045
10046
10047
10048
10049
10050
10051
10052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
10053 printf %s "checking for working fcntl.h... " >&6; }
10054 if test ${gl_cv_header_working_fcntl_h+y}
10055 then :
10056 printf %s "(cached) " >&6
10057 else case e in #(
10058 e) if test "$cross_compiling" = yes
10059 then :
10060 case "$host_os" in
10061 # Guess 'no' on native Windows.
10062 mingw* | windows*) gl_cv_header_working_fcntl_h='no' ;;
10063 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
10064 esac
10065
10066 else case e in #(
10067 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10068 /* end confdefs.h. */
10069 #include <sys/types.h>
10070 #include <sys/stat.h>
10071 #if HAVE_UNISTD_H
10072 # include <unistd.h>
10073 #else /* on Windows with MSVC */
10074 # include <io.h>
10075 # include <stdlib.h>
10076 # defined sleep(n) _sleep ((n) * 1000)
10077 #endif
10078 #include <fcntl.h>
10079
10080
10081 $gl_mda_defines
10082
10083 #ifndef O_NOATIME
10084 #define O_NOATIME 0
10085 #endif
10086 #ifndef O_NOFOLLOW
10087 #define O_NOFOLLOW 0
10088 #endif
10089 static int const constants[] =
10090 {
10091 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
10092 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
10093 };
10094
10095 int
10096 main (void)
10097 {
10098
10099 int result = !constants;
10100 #if HAVE_SYMLINK
10101 {
10102 static char const sym[] = "conftest.sym";
10103 if (symlink ("/dev/null", sym) != 0)
10104 result |= 2;
10105 else
10106 {
10107 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
10108 if (fd >= 0)
10109 {
10110 close (fd);
10111 result |= 4;
10112 }
10113 }
10114 if (unlink (sym) != 0 || symlink (".", sym) != 0)
10115 result |= 2;
10116 else
10117 {
10118 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
10119 if (fd >= 0)
10120 {
10121 close (fd);
10122 result |= 4;
10123 }
10124 }
10125 unlink (sym);
10126 }
10127 #endif
10128 {
10129 static char const file[] = "confdefs.h";
10130 int fd = open (file, O_RDONLY | O_NOATIME);
10131 if (fd < 0)
10132 result |= 8;
10133 else
10134 {
10135 struct stat st0;
10136 if (fstat (fd, &st0) != 0)
10137 result |= 16;
10138 else
10139 {
10140 char c;
10141 sleep (1);
10142 if (read (fd, &c, 1) != 1)
10143 result |= 24;
10144 else
10145 {
10146 if (close (fd) != 0)
10147 result |= 32;
10148 else
10149 {
10150 struct stat st1;
10151 if (stat (file, &st1) != 0)
10152 result |= 40;
10153 else
10154 if (st0.st_atime != st1.st_atime)
10155 result |= 64;
10156 }
10157 }
10158 }
10159 }
10160 }
10161 return result;
10162 ;
10163 return 0;
10164 }
10165 _ACEOF
10166 if ac_fn_c_try_run "$LINENO"
10167 then :
10168 gl_cv_header_working_fcntl_h=yes
10169 else case e in #(
10170 e) case $? in #(
10171 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
10172 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
10173 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
10174 *) gl_cv_header_working_fcntl_h='no';;
10175 esac ;;
10176 esac
10177 fi
10178 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10179 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10180 esac
10181 fi
10182
10183 ;;
10184 esac
10185 fi
10186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
10187 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
10188
10189 case $gl_cv_header_working_fcntl_h in #(
10190 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
10191 *) ac_val=1;;
10192 esac
10193
10194 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h
10195
10196
10197 case $gl_cv_header_working_fcntl_h in #(
10198 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
10199 *) ac_val=1;;
10200 esac
10201
10202 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h
10203
10204
10205
10206 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
10207 "
10208 if test "x$ac_cv_type_pid_t" = xyes
10209 then :
10210
10211 else case e in #(
10212 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10213 /* end confdefs.h. */
10214
10215 #if defined _WIN64 && !defined __CYGWIN__
10216 LLP64
10217 #endif
10218
10219 int
10220 main (void)
10221 {
10222
10223 ;
10224 return 0;
10225 }
10226
10227 _ACEOF
10228 if ac_fn_c_try_compile "$LINENO"
10229 then :
10230 ac_pid_type='int'
10231 else case e in #(
10232 e) ac_pid_type='__int64' ;;
10233 esac
10234 fi
10235 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10236
10237 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
10238
10239 ;;
10240 esac
10241 fi
10242
10243
10244 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
10245 if test "x$ac_cv_type_mode_t" = xyes
10246 then :
10247
10248 else case e in #(
10249 e)
10250 printf "%s\n" "#define mode_t int" >>confdefs.h
10251 ;;
10252 esac
10253 fi
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266 if test $gl_cv_have_include_next = yes; then
10267 gl_cv_next_fcntl_h='<'fcntl.h'>'
10268 else
10269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
10270 printf %s "checking absolute name of <fcntl.h>... " >&6; }
10271 if test ${gl_cv_next_fcntl_h+y}
10272 then :
10273 printf %s "(cached) " >&6
10274 else case e in #(
10275 e)
10276
10277
10278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10279 /* end confdefs.h. */
10280 #include <fcntl.h>
10281 _ACEOF
10282 case "$host_os" in
10283 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10284 *) gl_absname_cpp="$ac_cpp" ;;
10285 esac
10286
10287 case "$host_os" in
10288 mingw* | windows*)
10289 gl_dirsep_regex='[/\\]'
10290 ;;
10291 *)
10292 gl_dirsep_regex='\/'
10293 ;;
10294 esac
10295 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10296 gl_header_literal_regex=`echo 'fcntl.h' \
10297 | sed -e "$gl_make_literal_regex_sed"`
10298 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10299 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10300 s|^/[^/]|//&|
10301 p
10302 q
10303 }'
10304
10305 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10306 sed -n "$gl_absolute_header_sed"`
10307
10308 gl_header=$gl_cv_absolute_fcntl_h
10309 gl_cv_next_fcntl_h='"'$gl_header'"'
10310
10311 ;;
10312 esac
10313 fi
10314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
10315 printf "%s\n" "$gl_cv_next_fcntl_h" >&6; }
10316 fi
10317 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
10318
10319 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10320 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10321 gl_next_as_first_directive='<'fcntl.h'>'
10322 else
10323 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10324 gl_next_as_first_directive=$gl_cv_next_fcntl_h
10325 fi
10326 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341 HAVE_DECL_FCLOSEALL=1;
10342 HAVE_DECL_FPURGE=1;
10343 HAVE_DECL_FSEEKO=1;
10344 HAVE_DECL_FTELLO=1;
10345 HAVE_DECL_GETDELIM=1;
10346 HAVE_DECL_GETLINE=1;
10347 HAVE_DECL_GETW=1;
10348 HAVE_DECL_OBSTACK_PRINTF=1;
10349 HAVE_DECL_PUTW=1;
10350 HAVE_DECL_SNPRINTF=1;
10351 HAVE_DECL_VSNPRINTF=1;
10352 HAVE_DPRINTF=1;
10353 HAVE_FSEEKO=1;
10354 HAVE_FTELLO=1;
10355 HAVE_PCLOSE=1;
10356 HAVE_POPEN=1;
10357 HAVE_RENAMEAT=1;
10358 HAVE_VASPRINTF=1;
10359 HAVE_VDPRINTF=1;
10360 REPLACE_DPRINTF=0;
10361 REPLACE_FCLOSE=0;
10362 REPLACE_FDOPEN=0;
10363 REPLACE_FFLUSH=0;
10364 REPLACE_FOPEN=0;
10365 REPLACE_FOPEN_FOR_FOPEN_GNU=0;
10366 REPLACE_FPRINTF=0;
10367 REPLACE_FPURGE=0;
10368 REPLACE_FREOPEN=0;
10369 REPLACE_FSEEK=0;
10370 REPLACE_FSEEKO=0;
10371 REPLACE_FTELL=0;
10372 REPLACE_FTELLO=0;
10373 REPLACE_GETDELIM=0;
10374 REPLACE_GETLINE=0;
10375 REPLACE_OBSTACK_PRINTF=0;
10376 REPLACE_PERROR=0;
10377 REPLACE_POPEN=0;
10378 REPLACE_PRINTF=0;
10379 REPLACE_REMOVE=0;
10380 REPLACE_RENAME=0;
10381 REPLACE_RENAMEAT=0;
10382 REPLACE_SNPRINTF=0;
10383 REPLACE_SPRINTF=0;
10384 REPLACE_STDIO_READ_FUNCS=0;
10385 REPLACE_STDIO_WRITE_FUNCS=0;
10386 REPLACE_TMPFILE=0;
10387 REPLACE_VASPRINTF=0;
10388 REPLACE_VDPRINTF=0;
10389 REPLACE_VFPRINTF=0;
10390 REPLACE_VPRINTF=0;
10391 REPLACE_VSNPRINTF=0;
10392 REPLACE_VSPRINTF=0;
10393
10394
10395
10396
10397 case "$host_os" in
10398 mingw* | windows* | pw*)
10399 REPLACE_FOPEN=1
10400 gl_cv_func_fopen_slash="guessing no"
10401 ;;
10402 *)
10403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen recognizes a trailing slash" >&5
10404 printf %s "checking whether fopen recognizes a trailing slash... " >&6; }
10405 if test ${gl_cv_func_fopen_slash+y}
10406 then :
10407 printf %s "(cached) " >&6
10408 else case e in #(
10409 e)
10410 if test "$cross_compiling" = yes
10411 then :
10412
10413 case "$host_os" in
10414 aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
10415 gl_cv_func_fopen_slash="guessing no" ;;
10416 *)
10417 gl_cv_func_fopen_slash="guessing yes" ;;
10418 esac
10419
10420 else case e in #(
10421 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10422 /* end confdefs.h. */
10423
10424 #include <stddef.h>
10425 #include <stdio.h>
10426 int main ()
10427 {
10428 FILE *fp = fopen ("conftest.sl/", "w");
10429 int result = (fp != NULL);
10430 if (fp != NULL)
10431 fclose (fp);
10432 return result;
10433 }
10434 _ACEOF
10435 if ac_fn_c_try_run "$LINENO"
10436 then :
10437 gl_cv_func_fopen_slash=yes
10438 else case e in #(
10439 e) gl_cv_func_fopen_slash=no ;;
10440 esac
10441 fi
10442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10443 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10444 esac
10445 fi
10446
10447 rm -f conftest.sl
10448 ;;
10449 esac
10450 fi
10451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_slash" >&5
10452 printf "%s\n" "$gl_cv_func_fopen_slash" >&6; }
10453 ;;
10454 esac
10455 case "$gl_cv_func_fopen_slash" in
10456 *no)
10457
10458 printf "%s\n" "#define FOPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
10459
10460 REPLACE_FOPEN=1
10461 ;;
10462 esac
10463
10464
10465
10466
10467
10468
10469
10470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fflush works on input streams" >&5
10471 printf %s "checking whether fflush works on input streams... " >&6; }
10472 if test ${gl_cv_func_fflush_stdin+y}
10473 then :
10474 printf %s "(cached) " >&6
10475 else case e in #(
10476 e) echo hello world > conftest.txt
10477 if test "$cross_compiling" = yes
10478 then :
10479 case "$host_os" in
10480 # Guess no on NetBSD, OpenBSD, native Windows.
10481 netbsd* | openbsd* | mingw* | windows*)
10482 gl_cv_func_fflush_stdin="guessing no" ;;
10483 *) gl_cv_func_fflush_stdin=cross ;;
10484 esac
10485
10486 else case e in #(
10487 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10488 /* end confdefs.h. */
10489
10490 #include <stdio.h>
10491 #if HAVE_UNISTD_H
10492 # include <unistd.h>
10493 #else /* on Windows with MSVC */
10494 # include <io.h>
10495 #endif
10496
10497
10498 $gl_mda_defines
10499
10500 int
10501 main (void)
10502 {
10503 FILE *f = fopen ("conftest.txt", "r");
10504 char buffer[10];
10505 int fd;
10506 int c;
10507 if (f == NULL)
10508 return 1;
10509 fd = fileno (f);
10510 if (fd < 0 || fread (buffer, 1, 5, f) != 5)
10511 { fclose (f); return 2; }
10512 /* For deterministic results, ensure f read a bigger buffer. */
10513 if (lseek (fd, 0, SEEK_CUR) == 5)
10514 { fclose (f); return 3; }
10515 /* POSIX requires fflush-fseek to set file offset of fd. This fails
10516 on BSD systems and on mingw. */
10517 if (fflush (f) != 0 || fseek (f, 0, SEEK_CUR) != 0)
10518 { fclose (f); return 4; }
10519 if (lseek (fd, 0, SEEK_CUR) != 5)
10520 { fclose (f); return 5; }
10521 /* Verify behaviour of fflush after ungetc. See
10522 <https://www.opengroup.org/austin/aardvark/latest/xshbug3.txt> */
10523 /* Verify behaviour of fflush after a backup ungetc. This fails on
10524 mingw. */
10525 c = fgetc (f);
10526 ungetc (c, f);
10527 fflush (f);
10528 if (fgetc (f) != c)
10529 { fclose (f); return 6; }
10530 /* Verify behaviour of fflush after a non-backup ungetc. This fails
10531 on glibc 2.8 and on BSD systems. */
10532 c = fgetc (f);
10533 ungetc ('@', f);
10534 fflush (f);
10535 if (fgetc (f) != c)
10536 { fclose (f); return 7; }
10537 fclose (f);
10538 return 0;
10539
10540 ;
10541 return 0;
10542 }
10543 _ACEOF
10544 if ac_fn_c_try_run "$LINENO"
10545 then :
10546 gl_cv_func_fflush_stdin=yes
10547 else case e in #(
10548 e) gl_cv_func_fflush_stdin=no ;;
10549 esac
10550 fi
10551 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10552 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10553 esac
10554 fi
10555
10556 rm conftest.txt
10557 ;;
10558 esac
10559 fi
10560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fflush_stdin" >&5
10561 printf "%s\n" "$gl_cv_func_fflush_stdin" >&6; }
10562 case "$gl_cv_func_fflush_stdin" in
10563 *yes) gl_func_fflush_stdin=1 ;;
10564 *no) gl_func_fflush_stdin=0 ;;
10565 *) gl_func_fflush_stdin='(-1)' ;;
10566 esac
10567
10568 printf "%s\n" "#define FUNC_FFLUSH_STDIN $gl_func_fflush_stdin" >>confdefs.h
10569
10570
10571 case "$gl_cv_func_fflush_stdin" in
10572 *yes) ;;
10573 *) REPLACE_FCLOSE=1 ;;
10574 esac
10575
10576
10577 if test $REPLACE_CLOSE = 1; then
10578 REPLACE_FCLOSE=1
10579 fi
10580
10581 case "$host_os" in
10582 openedition) REPLACE_FCLOSE=1 ;;
10583 esac
10584
10585 if test $REPLACE_FCLOSE = 0; then
10586
10587
10588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fclose works on input streams" >&5
10589 printf %s "checking whether fclose works on input streams... " >&6; }
10590 if test ${gl_cv_func_fclose_stdin+y}
10591 then :
10592 printf %s "(cached) " >&6
10593 else case e in #(
10594 e) echo hello world > conftest.txt
10595 if test "$cross_compiling" = yes
10596 then :
10597 case "$host_os" in
10598 # Guess no on glibc systems.
10599 *-gnu* | gnu*) gl_cv_func_fclose_stdin="guessing no" ;;
10600 # Guess yes on musl systems.
10601 *-musl* | midipix*) gl_cv_func_fclose_stdin="guessing yes" ;;
10602 # Guess no on native Windows.
10603 mingw* | windows*) gl_cv_func_fclose_stdin="guessing no" ;;
10604 # If we don't know, obey --enable-cross-guesses.
10605 *) gl_cv_func_fclose_stdin="$gl_cross_guess_normal" ;;
10606 esac
10607
10608 else case e in #(
10609 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10610 /* end confdefs.h. */
10611 #include <fcntl.h>
10612 #include <stdio.h>
10613 #if HAVE_UNISTD_H
10614 # include <unistd.h>
10615 #else /* on Windows with MSVC */
10616 # include <io.h>
10617 #endif
10618
10619
10620 $gl_mda_defines
10621
10622 int
10623 main (void)
10624 {
10625 int fd;
10626 int fd2;
10627 FILE *fp;
10628 fd = open ("conftest.txt", O_RDONLY);
10629 if (fd < 0)
10630 return 1;
10631 if (lseek (fd, 1, SEEK_SET) != 1)
10632 return 2;
10633 fd2 = dup (fd);
10634 if (fd2 < 0)
10635 return 3;
10636 fp = fdopen (fd2, "r");
10637 if (fp == NULL)
10638 return 4;
10639 if (fgetc (fp) != 'e')
10640 { fclose (fp); return 5; }
10641 /* This fclose() call should reposition the underlying file
10642 descriptor. */
10643 if (fclose (fp) != 0)
10644 return 6;
10645 if (lseek (fd2, 0, SEEK_CUR) != -1) /* should fail with EBADF */
10646 return 7;
10647 /* Verify the file position. */
10648 if (lseek (fd, 0, SEEK_CUR) != 2)
10649 return 8;
10650 return 0;
10651
10652 ;
10653 return 0;
10654 }
10655 _ACEOF
10656 if ac_fn_c_try_run "$LINENO"
10657 then :
10658 gl_cv_func_fclose_stdin=yes
10659 else case e in #(
10660 e) gl_cv_func_fclose_stdin=no ;;
10661 esac
10662 fi
10663 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10664 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
10665 esac
10666 fi
10667
10668 rm conftest.txt
10669 ;;
10670 esac
10671 fi
10672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fclose_stdin" >&5
10673 printf "%s\n" "$gl_cv_func_fclose_stdin" >&6; }
10674
10675 case "$gl_cv_func_fclose_stdin" in
10676 *yes) ;;
10677 *) REPLACE_FCLOSE=1 ;;
10678 esac
10679 fi
10680
10681
10682
10683 GL_GNULIB_DPRINTF=0
10684
10685
10686
10687 GL_GNULIB_DZPRINTF=0
10688
10689
10690
10691 GL_GNULIB_FCLOSE=0
10692
10693
10694
10695 GL_GNULIB_FDOPEN=0
10696
10697
10698
10699 GL_GNULIB_FFLUSH=0
10700
10701
10702
10703 GL_GNULIB_FGETC=0
10704
10705
10706
10707 GL_GNULIB_FGETS=0
10708
10709
10710
10711 GL_GNULIB_FOPEN=0
10712
10713
10714
10715 GL_GNULIB_FOPEN_GNU=0
10716
10717
10718
10719 GL_GNULIB_FPRINTF=0
10720
10721
10722
10723 GL_GNULIB_FPRINTF_POSIX=0
10724
10725
10726
10727 GL_GNULIB_FPURGE=0
10728
10729
10730
10731 GL_GNULIB_FPUTC=0
10732
10733
10734
10735 GL_GNULIB_FPUTS=0
10736
10737
10738
10739 GL_GNULIB_FREAD=0
10740
10741
10742
10743 GL_GNULIB_FREOPEN=0
10744
10745
10746
10747 GL_GNULIB_FSCANF=0
10748
10749
10750
10751 GL_GNULIB_FSEEK=0
10752
10753
10754
10755 GL_GNULIB_FSEEKO=0
10756
10757
10758
10759 GL_GNULIB_FTELL=0
10760
10761
10762
10763 GL_GNULIB_FTELLO=0
10764
10765
10766
10767 GL_GNULIB_FWRITE=0
10768
10769
10770
10771 GL_GNULIB_FZPRINTF=0
10772
10773
10774
10775 GL_GNULIB_GETC=0
10776
10777
10778
10779 GL_GNULIB_GETCHAR=0
10780
10781
10782
10783 GL_GNULIB_GETDELIM=0
10784
10785
10786
10787 GL_GNULIB_GETLINE=0
10788
10789
10790
10791 GL_GNULIB_OBSTACK_PRINTF=0
10792
10793
10794
10795 GL_GNULIB_OBSTACK_PRINTF_POSIX=0
10796
10797
10798
10799 GL_GNULIB_OBSTACK_ZPRINTF=0
10800
10801
10802
10803 GL_GNULIB_PCLOSE=0
10804
10805
10806
10807 GL_GNULIB_PERROR=0
10808
10809
10810
10811 GL_GNULIB_POPEN=0
10812
10813
10814
10815 GL_GNULIB_PRINTF=0
10816
10817
10818
10819 GL_GNULIB_PRINTF_POSIX=0
10820
10821
10822
10823 GL_GNULIB_PUTC=0
10824
10825
10826
10827 GL_GNULIB_PUTCHAR=0
10828
10829
10830
10831 GL_GNULIB_PUTS=0
10832
10833
10834
10835 GL_GNULIB_REMOVE=0
10836
10837
10838
10839 GL_GNULIB_RENAME=0
10840
10841
10842
10843 GL_GNULIB_RENAMEAT=0
10844
10845
10846
10847 GL_GNULIB_SCANF=0
10848
10849
10850
10851 GL_GNULIB_SNPRINTF=0
10852
10853
10854
10855 GL_GNULIB_SNZPRINTF=0
10856
10857
10858
10859 GL_GNULIB_SPRINTF_POSIX=0
10860
10861
10862
10863 GL_GNULIB_STDIO_H_NONBLOCKING=0
10864
10865
10866
10867 GL_GNULIB_STDIO_H_SIGPIPE=0
10868
10869
10870
10871 GL_GNULIB_SZPRINTF=0
10872
10873
10874
10875 GL_GNULIB_TMPFILE=0
10876
10877
10878
10879 GL_GNULIB_VASPRINTF=0
10880
10881
10882
10883 GL_GNULIB_VASZPRINTF=0
10884
10885
10886
10887 GL_GNULIB_VFSCANF=0
10888
10889
10890
10891 GL_GNULIB_VSCANF=0
10892
10893
10894
10895 GL_GNULIB_VDPRINTF=0
10896
10897
10898
10899 GL_GNULIB_VDZPRINTF=0
10900
10901
10902
10903 GL_GNULIB_VFPRINTF=0
10904
10905
10906
10907 GL_GNULIB_VFPRINTF_POSIX=0
10908
10909
10910
10911 GL_GNULIB_VFZPRINTF=0
10912
10913
10914
10915 GL_GNULIB_VPRINTF=0
10916
10917
10918
10919 GL_GNULIB_VPRINTF_POSIX=0
10920
10921
10922
10923 GL_GNULIB_VSNPRINTF=0
10924
10925
10926
10927 GL_GNULIB_VSNZPRINTF=0
10928
10929
10930
10931 GL_GNULIB_VSPRINTF_POSIX=0
10932
10933
10934
10935 GL_GNULIB_VSZPRINTF=0
10936
10937
10938
10939 GL_GNULIB_VZPRINTF=0
10940
10941
10942
10943 GL_GNULIB_ZPRINTF=0
10944
10945
10946
10947 GL_GNULIB_MDA_FCLOSEALL=1
10948
10949
10950
10951 GL_GNULIB_MDA_FDOPEN=1
10952
10953
10954
10955 GL_GNULIB_MDA_FILENO=1
10956
10957
10958
10959 GL_GNULIB_MDA_GETW=1
10960
10961
10962
10963 GL_GNULIB_MDA_PUTW=1
10964
10965
10966
10967 GL_GNULIB_MDA_TEMPNAM=1
10968
10969
10970
10971
10972 HAVE__EXIT=1;
10973 HAVE_ALIGNED_ALLOC=1;
10974 HAVE_ATOLL=1;
10975 HAVE_CANONICALIZE_FILE_NAME=1;
10976 HAVE_DECL_ECVT=1;
10977 HAVE_DECL_FCVT=1;
10978 HAVE_DECL_GCVT=1;
10979 HAVE_DECL_GETLOADAVG=1;
10980 HAVE_DECL_PROGRAM_INVOCATION_NAME=1;
10981 HAVE_GETPROGNAME=1;
10982 HAVE_GETSUBOPT=1;
10983 HAVE_GRANTPT=1;
10984 HAVE_INITSTATE=1;
10985 HAVE_DECL_INITSTATE=1;
10986 HAVE_MBTOWC=1;
10987 HAVE_MKDTEMP=1;
10988 HAVE_MKOSTEMP=1;
10989 HAVE_MKOSTEMPS=1;
10990 HAVE_MKSTEMP=1;
10991 HAVE_MKSTEMPS=1;
10992 HAVE_POSIX_MEMALIGN=1;
10993 HAVE_POSIX_OPENPT=1;
10994 HAVE_PTSNAME=1;
10995 HAVE_PTSNAME_R=1;
10996 HAVE_QSORT_R=1;
10997 HAVE_RANDOM=1;
10998 HAVE_RANDOM_H=1;
10999 HAVE_RANDOM_R=1;
11000 HAVE_REALLOCARRAY=1;
11001 HAVE_REALPATH=1;
11002 HAVE_RPMATCH=1;
11003 HAVE_SECURE_GETENV=1;
11004 HAVE_SETENV=1;
11005 HAVE_DECL_SETENV=1;
11006 HAVE_SETSTATE=1;
11007 HAVE_DECL_SETSTATE=1;
11008 HAVE_STRTOD=1;
11009 HAVE_STRTOF=1;
11010 HAVE_STRTOL=1;
11011 HAVE_STRTOLD=1;
11012 HAVE_STRTOLL=1;
11013 HAVE_STRTOUL=1;
11014 HAVE_STRTOULL=1;
11015 HAVE_STRUCT_RANDOM_DATA=1;
11016 HAVE_SYS_LOADAVG_H=0;
11017 HAVE_UNLOCKPT=1;
11018 HAVE_DECL_UNSETENV=1;
11019 REPLACE__EXIT=0;
11020 REPLACE_ABORT=0;
11021 REPLACE_ALIGNED_ALLOC=0;
11022 REPLACE_CALLOC_FOR_CALLOC_GNU=0;
11023 REPLACE_CALLOC_FOR_CALLOC_POSIX=0;
11024 REPLACE_CANONICALIZE_FILE_NAME=0;
11025 REPLACE_FREE=0;
11026 REPLACE_GETLOADAVG=0;
11027 REPLACE_GETPROGNAME=0;
11028 REPLACE_GETSUBOPT=0;
11029 REPLACE_INITSTATE=0;
11030 REPLACE_MALLOC_FOR_MALLOC_GNU=0;
11031 REPLACE_MALLOC_FOR_MALLOC_POSIX=0;
11032 REPLACE_MB_CUR_MAX=0;
11033 REPLACE_MBSTOWCS=0;
11034 REPLACE_MBTOWC=0;
11035 REPLACE_MKOSTEMP=0;
11036 REPLACE_MKOSTEMPS=0;
11037 REPLACE_MKSTEMP=0;
11038 REPLACE_POSIX_MEMALIGN=0;
11039 REPLACE_POSIX_OPENPT=0;
11040 REPLACE_PTSNAME=0;
11041 REPLACE_PTSNAME_R=0;
11042 REPLACE_PUTENV=0;
11043 REPLACE_QSORT_R=0;
11044 REPLACE_RAND=0;
11045 REPLACE_RANDOM=0;
11046 REPLACE_RANDOM_R=0;
11047 REPLACE_REALLOC_FOR_REALLOC_POSIX=0;
11048 REPLACE_REALLOCARRAY=0;
11049 REPLACE_REALPATH=0;
11050 REPLACE_SETENV=0;
11051 REPLACE_SETSTATE=0;
11052 REPLACE_STRTOD=0;
11053 REPLACE_STRTOF=0;
11054 REPLACE_STRTOL=0;
11055 REPLACE_STRTOLD=0;
11056 REPLACE_STRTOLL=0;
11057 REPLACE_STRTOUL=0;
11058 REPLACE_STRTOULL=0;
11059 REPLACE_UNSETENV=0;
11060 REPLACE_WCTOMB=0;
11061 CAN_PRINT_STACK_TRACE=0;
11062
11063
11064
11065 GL_GNULIB__EXIT=0
11066
11067
11068
11069 GL_GNULIB_ABORT_DEBUG=0
11070
11071
11072
11073 GL_GNULIB_ALIGNED_ALLOC=0
11074
11075
11076
11077 GL_GNULIB_ATOLL=0
11078
11079
11080
11081 GL_GNULIB_CALLOC_GNU=0
11082
11083
11084
11085 GL_GNULIB_CALLOC_POSIX=0
11086
11087
11088
11089 GL_GNULIB_CANONICALIZE_FILE_NAME=0
11090
11091
11092
11093 GL_GNULIB_FREE_POSIX=0
11094
11095
11096
11097 GL_GNULIB_GETLOADAVG=0
11098
11099
11100
11101 GL_GNULIB_GETPROGNAME=0
11102
11103
11104
11105 GL_GNULIB_GETSUBOPT=0
11106
11107
11108
11109 GL_GNULIB_GRANTPT=0
11110
11111
11112
11113 GL_GNULIB_MALLOC_GNU=0
11114
11115
11116
11117 GL_GNULIB_MALLOC_POSIX=0
11118
11119
11120
11121 GL_GNULIB_MBSTOWCS=0
11122
11123
11124
11125 GL_GNULIB_MBTOWC=0
11126
11127
11128
11129 GL_GNULIB_MKDTEMP=0
11130
11131
11132
11133 GL_GNULIB_MKOSTEMP=0
11134
11135
11136
11137 GL_GNULIB_MKOSTEMPS=0
11138
11139
11140
11141 GL_GNULIB_MKSTEMP=0
11142
11143
11144
11145 GL_GNULIB_MKSTEMPS=0
11146
11147
11148
11149 GL_GNULIB_POSIX_MEMALIGN=0
11150
11151
11152
11153 GL_GNULIB_POSIX_OPENPT=0
11154
11155
11156
11157 GL_GNULIB_PTSNAME=0
11158
11159
11160
11161 GL_GNULIB_PTSNAME_R=0
11162
11163
11164
11165 GL_GNULIB_PUTENV=0
11166
11167
11168
11169 GL_GNULIB_QSORT_R=0
11170
11171
11172
11173 GL_GNULIB_RAND=0
11174
11175
11176
11177 GL_GNULIB_RANDOM=0
11178
11179
11180
11181 GL_GNULIB_RANDOM_R=0
11182
11183
11184
11185 GL_GNULIB_REALLOCARRAY=0
11186
11187
11188
11189 GL_GNULIB_REALLOC_POSIX=0
11190
11191
11192
11193 GL_GNULIB_REALPATH=0
11194
11195
11196
11197 GL_GNULIB_RPMATCH=0
11198
11199
11200
11201 GL_GNULIB_SECURE_GETENV=0
11202
11203
11204
11205 GL_GNULIB_SETENV=0
11206
11207
11208
11209 GL_GNULIB_STACK_TRACE=0
11210
11211
11212
11213 GL_GNULIB_STRTOD=0
11214
11215
11216
11217 GL_GNULIB_STRTOF=0
11218
11219
11220
11221 GL_GNULIB_STRTOL=0
11222
11223
11224
11225 GL_GNULIB_STRTOLD=0
11226
11227
11228
11229 GL_GNULIB_STRTOLL=0
11230
11231
11232
11233 GL_GNULIB_STRTOUL=0
11234
11235
11236
11237 GL_GNULIB_STRTOULL=0
11238
11239
11240
11241 GL_GNULIB_SYSTEM_POSIX=0
11242
11243
11244
11245 GL_GNULIB_UNLOCKPT=0
11246
11247
11248
11249 GL_GNULIB_UNSETENV=0
11250
11251
11252
11253 GL_GNULIB_WCTOMB=0
11254
11255
11256
11257 GL_GNULIB_MDA_ECVT=1
11258
11259
11260
11261 GL_GNULIB_MDA_FCVT=1
11262
11263
11264
11265 GL_GNULIB_MDA_GCVT=1
11266
11267
11268
11269 GL_GNULIB_MDA_MKTEMP=1
11270
11271
11272
11273 GL_GNULIB_MDA_PUTENV=1
11274
11275
11276
11277
11278 HAVE_FCHMODAT=1;
11279 HAVE_FSTATAT=1;
11280 HAVE_FUTIMENS=1;
11281 HAVE_GETUMASK=1;
11282 HAVE_LCHMOD=1;
11283 HAVE_LSTAT=1;
11284 HAVE_MKDIRAT=1;
11285 HAVE_MKFIFO=1;
11286 HAVE_MKFIFOAT=1;
11287 HAVE_MKNOD=1;
11288 HAVE_MKNODAT=1;
11289 HAVE_UTIMENSAT=1;
11290 REPLACE_CHMOD=0;
11291 REPLACE_FCHMODAT=0;
11292 REPLACE_FSTAT=0;
11293 REPLACE_FSTATAT=0;
11294 REPLACE_FUTIMENS=0;
11295 REPLACE_LSTAT=0;
11296 REPLACE_MKDIR=0;
11297 REPLACE_MKFIFO=0;
11298 REPLACE_MKFIFOAT=0;
11299 REPLACE_MKNOD=0;
11300 REPLACE_MKNODAT=0;
11301 REPLACE_STAT=0;
11302 REPLACE_UTIMENSAT=0;
11303
11304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11305 printf %s "checking whether stat file-mode macros are broken... " >&6; }
11306 if test ${ac_cv_header_stat_broken+y}
11307 then :
11308 printf %s "(cached) " >&6
11309 else case e in #(
11310 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11312 #include <sys/types.h>
11313 #include <sys/stat.h>
11314
11315 #if defined S_ISBLK && defined S_IFDIR
11316 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11317 #endif
11318
11319 #if defined S_ISBLK && defined S_IFCHR
11320 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11321 #endif
11322
11323 #if defined S_ISLNK && defined S_IFREG
11324 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11325 #endif
11326
11327 #if defined S_ISSOCK && defined S_IFREG
11328 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11329 #endif
11330
11331 _ACEOF
11332 if ac_fn_c_try_compile "$LINENO"
11333 then :
11334 ac_cv_header_stat_broken=no
11335 else case e in #(
11336 e) ac_cv_header_stat_broken=yes ;;
11337 esac
11338 fi
11339 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11340 esac
11341 fi
11342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11343 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
11344 if test $ac_cv_header_stat_broken = yes; then
11345
11346 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11347
11348 fi
11349
11350
11351
11352 case "$host_os" in
11353 mingw* | windows*)
11354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
11355 printf %s "checking for 64-bit off_t... " >&6; }
11356 if test ${gl_cv_type_off_t_64+y}
11357 then :
11358 printf %s "(cached) " >&6
11359 else case e in #(
11360 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11361 /* end confdefs.h. */
11362 #include <sys/types.h>
11363 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
11364
11365 int
11366 main (void)
11367 {
11368
11369 ;
11370 return 0;
11371 }
11372 _ACEOF
11373 if ac_fn_c_try_compile "$LINENO"
11374 then :
11375 gl_cv_type_off_t_64=yes
11376 else case e in #(
11377 e) gl_cv_type_off_t_64=no ;;
11378 esac
11379 fi
11380 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11381 ;;
11382 esac
11383 fi
11384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
11385 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
11386 if test $gl_cv_type_off_t_64 = no; then
11387 WINDOWS_64_BIT_OFF_T=1
11388 else
11389 WINDOWS_64_BIT_OFF_T=0
11390 fi
11391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
11392 printf %s "checking for 64-bit st_size... " >&6; }
11393 if test ${gl_cv_member_st_size_64+y}
11394 then :
11395 printf %s "(cached) " >&6
11396 else case e in #(
11397 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11399 #include <sys/types.h>
11400 struct stat buf;
11401 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
11402
11403 int
11404 main (void)
11405 {
11406
11407 ;
11408 return 0;
11409 }
11410 _ACEOF
11411 if ac_fn_c_try_compile "$LINENO"
11412 then :
11413 gl_cv_member_st_size_64=yes
11414 else case e in #(
11415 e) gl_cv_member_st_size_64=no ;;
11416 esac
11417 fi
11418 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11419 ;;
11420 esac
11421 fi
11422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
11423 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
11424 if test $gl_cv_member_st_size_64 = no; then
11425 WINDOWS_64_BIT_ST_SIZE=1
11426 else
11427 WINDOWS_64_BIT_ST_SIZE=0
11428 fi
11429 ;;
11430 *)
11431 WINDOWS_64_BIT_OFF_T=0
11432 WINDOWS_64_BIT_ST_SIZE=0
11433 ;;
11434 esac
11435
11436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
11437 printf %s "checking for C/C++ restrict keyword... " >&6; }
11438 if test ${ac_cv_c_restrict+y}
11439 then :
11440 printf %s "(cached) " >&6
11441 else case e in #(
11442 e) ac_cv_c_restrict=no
11443 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
11444 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
11445 # Put 'restrict' last, because C++ lacks it.
11446 for ac_kw in __restrict__ __restrict _Restrict restrict; do
11447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11448 /* end confdefs.h. */
11449 typedef int *int_ptr;
11450 int foo (int_ptr $ac_kw ip) { return ip[0]; }
11451 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
11452 int bar (int ip[$ac_kw]) { return ip[0]; }
11453
11454 int
11455 main (void)
11456 {
11457 int s[1];
11458 int *$ac_kw t = s;
11459 t[0] = 0;
11460 return foo (t) + bar (t);
11461
11462 ;
11463 return 0;
11464 }
11465 _ACEOF
11466 if ac_fn_c_try_compile "$LINENO"
11467 then :
11468 ac_cv_c_restrict=$ac_kw
11469 fi
11470 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11471 test "$ac_cv_c_restrict" != no && break
11472 done
11473 ;;
11474 esac
11475 fi
11476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
11477 printf "%s\n" "$ac_cv_c_restrict" >&6; }
11478
11479 case $ac_cv_c_restrict in
11480 restrict) ;;
11481 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
11482 ;;
11483 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
11484 ;;
11485 esac
11486
11487
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501 if test $gl_cv_have_include_next = yes; then
11502 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
11503 else
11504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
11505 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
11506 if test ${gl_cv_next_sys_stat_h+y}
11507 then :
11508 printf %s "(cached) " >&6
11509 else case e in #(
11510 e)
11511 if test $ac_cv_header_sys_stat_h = yes; then
11512
11513
11514
11515
11516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11517 /* end confdefs.h. */
11518 #include <sys/stat.h>
11519 _ACEOF
11520 case "$host_os" in
11521 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11522 *) gl_absname_cpp="$ac_cpp" ;;
11523 esac
11524
11525 case "$host_os" in
11526 mingw* | windows*)
11527 gl_dirsep_regex='[/\\]'
11528 ;;
11529 *)
11530 gl_dirsep_regex='\/'
11531 ;;
11532 esac
11533 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11534 gl_header_literal_regex=`echo 'sys/stat.h' \
11535 | sed -e "$gl_make_literal_regex_sed"`
11536 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11537 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11538 s|^/[^/]|//&|
11539 p
11540 q
11541 }'
11542
11543 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11544 sed -n "$gl_absolute_header_sed"`
11545
11546 gl_header=$gl_cv_absolute_sys_stat_h
11547 gl_cv_next_sys_stat_h='"'$gl_header'"'
11548 else
11549 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
11550 fi
11551
11552 ;;
11553 esac
11554 fi
11555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
11556 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
11557 fi
11558 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
11559
11560 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11561 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11562 gl_next_as_first_directive='<'sys/stat.h'>'
11563 else
11564 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11565 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
11566 fi
11567 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
11568
11569
11570
11571
11572
11573
11574
11575
11576 WINDOWS_STAT_TIMESPEC=0
11577
11578
11579
11580
11581
11582
11583
11584
11585 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
11586 #include <sys/stat.h>
11587 "
11588 if test "x$ac_cv_type_nlink_t" = xyes
11589 then :
11590
11591 else case e in #(
11592 e)
11593 printf "%s\n" "#define nlink_t int" >>confdefs.h
11594 ;;
11595 esac
11596 fi
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606
11607 case "$host_os" in
11608 mingw* | windows*)
11609 ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
11610 if test "x$ac_cv_header_sdkddkver_h" = xyes
11611 then :
11612 printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h
11613
11614 fi
11615
11616 ;;
11617 esac
11618
11619
11620
11621
11622
11623
11624
11625 GL_GNULIB_CHMOD=0
11626
11627
11628
11629 GL_GNULIB_FCHMODAT=0
11630
11631
11632
11633 GL_GNULIB_FSTAT=0
11634
11635
11636
11637 GL_GNULIB_FSTATAT=0
11638
11639
11640
11641 GL_GNULIB_FUTIMENS=0
11642
11643
11644
11645 GL_GNULIB_GETUMASK=0
11646
11647
11648
11649 GL_GNULIB_LCHMOD=0
11650
11651
11652
11653 GL_GNULIB_LSTAT=0
11654
11655
11656
11657 GL_GNULIB_MKDIR=0
11658
11659
11660
11661 GL_GNULIB_MKDIRAT=0
11662
11663
11664
11665 GL_GNULIB_MKFIFO=0
11666
11667
11668
11669 GL_GNULIB_MKFIFOAT=0
11670
11671
11672
11673 GL_GNULIB_MKNOD=0
11674
11675
11676
11677 GL_GNULIB_MKNODAT=0
11678
11679
11680
11681 GL_GNULIB_STAT=0
11682
11683
11684
11685 GL_GNULIB_UTIMENSAT=0
11686
11687
11688
11689 GL_GNULIB_OVERRIDES_STRUCT_STAT=0
11690
11691
11692
11693 GL_GNULIB_MDA_CHMOD=1
11694
11695
11696
11697 GL_GNULIB_MDA_MKDIR=1
11698
11699
11700
11701 GL_GNULIB_MDA_UMASK=1
11702
11703
11704
11705
11706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdin defaults to large file offsets" >&5
11707 printf %s "checking whether stdin defaults to large file offsets... " >&6; }
11708 if test ${gl_cv_var_stdin_large_offset+y}
11709 then :
11710 printf %s "(cached) " >&6
11711 else case e in #(
11712 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11713 /* end confdefs.h. */
11714 #include <stdio.h>
11715 int
11716 main (void)
11717 {
11718 #if defined __SL64 && defined __SCLE /* cygwin */
11719 /* Cygwin 1.5.24 and earlier fail to put stdin in 64-bit mode, making
11720 fseeko/ftello needlessly fail. This bug was fixed in 1.5.25, and
11721 it is easier to do a version check than building a runtime test. */
11722 # include <cygwin/version.h>
11723 # if CYGWIN_VERSION_DLL_COMBINED < CYGWIN_VERSION_DLL_MAKE_COMBINED (1005, 25)
11724 choke me
11725 # endif
11726 #endif
11727 ;
11728 return 0;
11729 }
11730 _ACEOF
11731 if ac_fn_c_try_link "$LINENO"
11732 then :
11733 gl_cv_var_stdin_large_offset=yes
11734 else case e in #(
11735 e) gl_cv_var_stdin_large_offset=no ;;
11736 esac
11737 fi
11738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11739 conftest$ac_exeext conftest.$ac_ext ;;
11740 esac
11741 fi
11742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var_stdin_large_offset" >&5
11743 printf "%s\n" "$gl_cv_var_stdin_large_offset" >&6; }
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for off64_t" >&5
11757 printf %s "checking for off64_t... " >&6; }
11758 if test ${gl_cv_off64_t+y}
11759 then :
11760 printf %s "(cached) " >&6
11761 else case e in #(
11762 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11763 /* end confdefs.h. */
11764 #include <sys/types.h>
11765 int
11766 main (void)
11767 {
11768 int x = sizeof (off64_t *) + sizeof (off64_t);
11769 return !x;
11770 ;
11771 return 0;
11772 }
11773 _ACEOF
11774 if ac_fn_c_try_compile "$LINENO"
11775 then :
11776 gl_cv_off64_t=yes
11777 else case e in #(
11778 e) gl_cv_off64_t=no ;;
11779 esac
11780 fi
11781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11782 esac
11783 fi
11784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_off64_t" >&5
11785 printf "%s\n" "$gl_cv_off64_t" >&6; }
11786
11787 if test $gl_cv_off64_t != no; then
11788 HAVE_OFF64_T=1
11789 else
11790 HAVE_OFF64_T=0
11791 fi
11792
11793
11794
11795
11796
11797
11798 printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809 if test $gl_cv_have_include_next = yes; then
11810 gl_cv_next_sys_types_h='<'sys/types.h'>'
11811 else
11812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
11813 printf %s "checking absolute name of <sys/types.h>... " >&6; }
11814 if test ${gl_cv_next_sys_types_h+y}
11815 then :
11816 printf %s "(cached) " >&6
11817 else case e in #(
11818 e)
11819
11820
11821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11822 /* end confdefs.h. */
11823 #include <sys/types.h>
11824 _ACEOF
11825 case "$host_os" in
11826 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11827 *) gl_absname_cpp="$ac_cpp" ;;
11828 esac
11829
11830 case "$host_os" in
11831 mingw* | windows*)
11832 gl_dirsep_regex='[/\\]'
11833 ;;
11834 *)
11835 gl_dirsep_regex='\/'
11836 ;;
11837 esac
11838 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11839 gl_header_literal_regex=`echo 'sys/types.h' \
11840 | sed -e "$gl_make_literal_regex_sed"`
11841 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11842 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11843 s|^/[^/]|//&|
11844 p
11845 q
11846 }'
11847
11848 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11849 sed -n "$gl_absolute_header_sed"`
11850
11851 gl_header=$gl_cv_absolute_sys_types_h
11852 gl_cv_next_sys_types_h='"'$gl_header'"'
11853
11854 ;;
11855 esac
11856 fi
11857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
11858 printf "%s\n" "$gl_cv_next_sys_types_h" >&6; }
11859 fi
11860 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
11861
11862 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11863 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11864 gl_next_as_first_directive='<'sys/types.h'>'
11865 else
11866 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11867 gl_next_as_first_directive=$gl_cv_next_sys_types_h
11868 fi
11869 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884 WINDOWS_STAT_INODES=0
11885
11886
11887
11888 ac_fn_c_check_type "$LINENO" "blksize_t" "ac_cv_type_blksize_t" "$ac_includes_default"
11889 if test "x$ac_cv_type_blksize_t" = xyes
11890 then :
11891 HAVE_BLKSIZE_T=1
11892 else case e in #(
11893 e) HAVE_BLKSIZE_T=0 ;;
11894 esac
11895 fi
11896
11897
11898
11899 ac_fn_c_check_type "$LINENO" "blkcnt_t" "ac_cv_type_blkcnt_t" "$ac_includes_default"
11900 if test "x$ac_cv_type_blkcnt_t" = xyes
11901 then :
11902 HAVE_BLKCNT_T=1
11903 else case e in #(
11904 e) HAVE_BLKCNT_T=0 ;;
11905 esac
11906 fi
11907
11908
11909
11910 ac_fn_check_decl "$LINENO" "ftello" "ac_cv_have_decl_ftello" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
11911 if test "x$ac_cv_have_decl_ftello" = xyes
11912 then :
11913 ac_have_decl=1
11914 else case e in #(
11915 e) ac_have_decl=0 ;;
11916 esac
11917 fi
11918 printf "%s\n" "#define HAVE_DECL_FTELLO $ac_have_decl" >>confdefs.h
11919
11920
11921
11922
11923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ungetc works on arbitrary bytes" >&5
11924 printf %s "checking whether ungetc works on arbitrary bytes... " >&6; }
11925 if test ${gl_cv_func_ungetc_works+y}
11926 then :
11927 printf %s "(cached) " >&6
11928 else case e in #(
11929 e) if test "$cross_compiling" = yes
11930 then :
11931 case "$host_os" in
11932 # Guess yes on glibc systems.
11933 *-gnu* | gnu*) gl_cv_func_ungetc_works="guessing yes" ;;
11934 # Guess yes on musl systems.
11935 *-musl* | midipix*) gl_cv_func_ungetc_works="guessing yes" ;;
11936 # Guess yes on bionic systems.
11937 *-android*) gl_cv_func_ungetc_works="guessing yes" ;;
11938 # Guess yes on native Windows.
11939 mingw* | windows*) gl_cv_func_ungetc_works="guessing yes" ;;
11940 # If we don't know, obey --enable-cross-guesses.
11941 *) gl_cv_func_ungetc_works="$gl_cross_guess_normal" ;;
11942 esac
11943
11944 else case e in #(
11945 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11946 /* end confdefs.h. */
11947
11948 #include <stdio.h>
11949
11950 int
11951 main (void)
11952 {
11953 FILE *f;
11954 if (!(f = fopen ("conftest.tmp", "w+")))
11955 return 1;
11956 if (fputs ("abc", f) < 0)
11957 { fclose (f); return 2; }
11958 rewind (f);
11959 if (fgetc (f) != 'a')
11960 { fclose (f); return 3; }
11961 if (fgetc (f) != 'b')
11962 { fclose (f); return 4; }
11963 if (ungetc ('d', f) != 'd')
11964 { fclose (f); return 5; }
11965 if (ftell (f) != 1)
11966 { fclose (f); return 6; }
11967 if (fgetc (f) != 'd')
11968 { fclose (f); return 7; }
11969 if (ftell (f) != 2)
11970 { fclose (f); return 8; }
11971 if (fseek (f, 0, SEEK_CUR) != 0)
11972 { fclose (f); return 9; }
11973 if (ftell (f) != 2)
11974 { fclose (f); return 10; }
11975 if (fgetc (f) != 'c')
11976 { fclose (f); return 11; }
11977 fclose (f);
11978 remove ("conftest.tmp");
11979
11980 ;
11981 return 0;
11982 }
11983 _ACEOF
11984 if ac_fn_c_try_run "$LINENO"
11985 then :
11986 gl_cv_func_ungetc_works=yes
11987 else case e in #(
11988 e) gl_cv_func_ungetc_works=no ;;
11989 esac
11990 fi
11991 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11992 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
11993 esac
11994 fi
11995
11996 ;;
11997 esac
11998 fi
11999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ungetc_works" >&5
12000 printf "%s\n" "$gl_cv_func_ungetc_works" >&6; }
12001 gl_ftello_broken_after_ungetc=no
12002 case "$gl_cv_func_ungetc_works" in
12003 *yes) ;;
12004 *)
12005 case "$host_os" in
12006 darwin*) gl_ftello_broken_after_ungetc=yes ;;
12007 *)
12008
12009 printf "%s\n" "#define FUNC_UNGETC_BROKEN 1" >>confdefs.h
12010
12011 ;;
12012 esac
12013 ;;
12014 esac
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025 if test $ac_cv_have_decl_ftello = no; then
12026 HAVE_DECL_FTELLO=0
12027 fi
12028
12029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
12030 printf %s "checking for ftello... " >&6; }
12031 if test ${gl_cv_func_ftello+y}
12032 then :
12033 printf %s "(cached) " >&6
12034 else case e in #(
12035 e)
12036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12037 /* end confdefs.h. */
12038 #include <stdio.h>
12039 int
12040 main (void)
12041 {
12042 ftello (stdin);
12043 ;
12044 return 0;
12045 }
12046 _ACEOF
12047 if ac_fn_c_try_link "$LINENO"
12048 then :
12049 gl_cv_func_ftello=yes
12050 else case e in #(
12051 e) gl_cv_func_ftello=no ;;
12052 esac
12053 fi
12054 rm -f core conftest.err conftest.$ac_objext conftest.beam \
12055 conftest$ac_exeext conftest.$ac_ext
12056 ;;
12057 esac
12058 fi
12059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
12060 printf "%s\n" "$gl_cv_func_ftello" >&6; }
12061 if test $gl_cv_func_ftello = no; then
12062 HAVE_FTELLO=0
12063 else
12064 if test $WINDOWS_64_BIT_OFF_T = 1; then
12065 REPLACE_FTELLO=1
12066 fi
12067 if test $gl_cv_var_stdin_large_offset = no; then
12068 REPLACE_FTELLO=1
12069 fi
12070
12071 if test $REPLACE_FTELLO = 0; then
12072 case "$host_os" in
12073 mingw* | windows*) REPLACE_FTELLO=1 ;;
12074 esac
12075 fi
12076 if test $REPLACE_FTELLO = 0; then
12077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
12078 printf %s "checking whether ftello works... " >&6; }
12079 if test ${gl_cv_func_ftello_works+y}
12080 then :
12081 printf %s "(cached) " >&6
12082 else case e in #(
12083 e)
12084 case "$host_os" in
12085 # Guess no on Solaris.
12086 solaris*) gl_cv_func_ftello_works="guessing no" ;;
12087 # Guess yes on native Windows.
12088 mingw* | windows*) gl_cv_func_ftello_works="guessing yes" ;;
12089 # Guess yes otherwise.
12090 *) gl_cv_func_ftello_works="guessing yes" ;;
12091 esac
12092 if test "$cross_compiling" = yes
12093 then :
12094 :
12095 else case e in #(
12096 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12097 /* end confdefs.h. */
12098
12099 #include <stdio.h>
12100 #include <stdlib.h>
12101 #include <string.h>
12102 #define TESTFILE "conftest.tmp"
12103 int
12104 main (void)
12105 {
12106 FILE *fp;
12107
12108 /* Create a file with some contents. */
12109 fp = fopen (TESTFILE, "w");
12110 if (fp == NULL)
12111 return 70;
12112 if (fwrite ("foogarsh", 1, 8, fp) < 8)
12113 { fclose (fp); return 71; }
12114 if (fclose (fp))
12115 return 72;
12116
12117 /* The file's contents is now "foogarsh". */
12118
12119 /* Try writing after reading to EOF. */
12120 fp = fopen (TESTFILE, "r+");
12121 if (fp == NULL)
12122 return 73;
12123 if (fseek (fp, -1, SEEK_END))
12124 { fclose (fp); return 74; }
12125 if (!(getc (fp) == 'h'))
12126 { fclose (fp); return 1; }
12127 if (!(getc (fp) == EOF))
12128 { fclose (fp); return 2; }
12129 if (!(ftell (fp) == 8))
12130 { fclose (fp); return 3; }
12131 if (!(ftell (fp) == 8))
12132 { fclose (fp); return 4; }
12133 if (!(putc ('!', fp) == '!'))
12134 { fclose (fp); return 5; }
12135 if (!(ftell (fp) == 9))
12136 { fclose (fp); return 6; }
12137 if (!(fclose (fp) == 0))
12138 return 7;
12139 fp = fopen (TESTFILE, "r");
12140 if (fp == NULL)
12141 return 75;
12142 {
12143 char buf[10];
12144 if (!(fread (buf, 1, 10, fp) == 9))
12145 { fclose (fp); return 10; }
12146 if (!(memcmp (buf, "foogarsh!", 9) == 0))
12147 { fclose (fp); return 11; }
12148 }
12149 if (!(fclose (fp) == 0))
12150 return 12;
12151
12152 /* The file's contents is now "foogarsh!". */
12153
12154 return 0;
12155 }
12156 _ACEOF
12157 if ac_fn_c_try_run "$LINENO"
12158 then :
12159 gl_cv_func_ftello_works=yes
12160 else case e in #(
12161 e) gl_cv_func_ftello_works=no ;;
12162 esac
12163 fi
12164 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12165 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12166 esac
12167 fi
12168
12169 ;;
12170 esac
12171 fi
12172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
12173 printf "%s\n" "$gl_cv_func_ftello_works" >&6; }
12174 case "$gl_cv_func_ftello_works" in
12175 *yes) ;;
12176 *)
12177 REPLACE_FTELLO=1
12178
12179 printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
12180
12181 ;;
12182 esac
12183 fi
12184 if test $REPLACE_FTELLO = 0; then
12185
12186 if test $gl_ftello_broken_after_ungetc = yes; then
12187 REPLACE_FTELLO=1
12188
12189 printf "%s\n" "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h
12190
12191 fi
12192 fi
12193 fi
12194
12195
12196 ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
12197 if test "x$ac_cv_have_decl_getdtablesize" = xyes
12198 then :
12199 ac_have_decl=1
12200 else case e in #(
12201 e) ac_have_decl=0 ;;
12202 esac
12203 fi
12204 printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h
12205
12206
12207
12208
12209
12210
12211
12212
12213
12214
12215
12216
12217
12218
12219
12220 if test $gl_cv_have_include_next = yes; then
12221 gl_cv_next_getopt_h='<'getopt.h'>'
12222 else
12223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <getopt.h>" >&5
12224 printf %s "checking absolute name of <getopt.h>... " >&6; }
12225 if test ${gl_cv_next_getopt_h+y}
12226 then :
12227 printf %s "(cached) " >&6
12228 else case e in #(
12229 e)
12230 if test $ac_cv_header_getopt_h = yes; then
12231
12232
12233
12234
12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236 /* end confdefs.h. */
12237 #include <getopt.h>
12238 _ACEOF
12239 case "$host_os" in
12240 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12241 *) gl_absname_cpp="$ac_cpp" ;;
12242 esac
12243
12244 case "$host_os" in
12245 mingw* | windows*)
12246 gl_dirsep_regex='[/\\]'
12247 ;;
12248 *)
12249 gl_dirsep_regex='\/'
12250 ;;
12251 esac
12252 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12253 gl_header_literal_regex=`echo 'getopt.h' \
12254 | sed -e "$gl_make_literal_regex_sed"`
12255 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12256 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12257 s|^/[^/]|//&|
12258 p
12259 q
12260 }'
12261
12262 gl_cv_absolute_getopt_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12263 sed -n "$gl_absolute_header_sed"`
12264
12265 gl_header=$gl_cv_absolute_getopt_h
12266 gl_cv_next_getopt_h='"'$gl_header'"'
12267 else
12268 gl_cv_next_getopt_h='<'getopt.h'>'
12269 fi
12270
12271 ;;
12272 esac
12273 fi
12274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_getopt_h" >&5
12275 printf "%s\n" "$gl_cv_next_getopt_h" >&6; }
12276 fi
12277 NEXT_GETOPT_H=$gl_cv_next_getopt_h
12278
12279 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12280 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12281 gl_next_as_first_directive='<'getopt.h'>'
12282 else
12283 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12284 gl_next_as_first_directive=$gl_cv_next_getopt_h
12285 fi
12286 NEXT_AS_FIRST_DIRECTIVE_GETOPT_H=$gl_next_as_first_directive
12287
12288
12289
12290
12291 if test $ac_cv_header_getopt_h = yes; then
12292 HAVE_GETOPT_H=1
12293 else
12294 HAVE_GETOPT_H=0
12295 fi
12296
12297
12298 gl_replace_getopt=
12299
12300 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
12301 for ac_header in getopt.h
12302 do :
12303 ac_fn_c_check_header_compile "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
12304 if test "x$ac_cv_header_getopt_h" = xyes
12305 then :
12306 printf "%s\n" "#define HAVE_GETOPT_H 1" >>confdefs.h
12307
12308 else case e in #(
12309 e) gl_replace_getopt=yes ;;
12310 esac
12311 fi
12312
12313 done
12314 fi
12315
12316 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
12317
12318 for ac_func in getopt_long_only
12319 do :
12320 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
12321 if test "x$ac_cv_func_getopt_long_only" = xyes
12322 then :
12323 printf "%s\n" "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
12324
12325 else case e in #(
12326 e) gl_replace_getopt=yes ;;
12327 esac
12328 fi
12329
12330 done
12331 fi
12332
12333 if test -z "$gl_replace_getopt"; then
12334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getopt is POSIX compatible" >&5
12335 printf %s "checking whether getopt is POSIX compatible... " >&6; }
12336 if test ${gl_cv_func_getopt_posix+y}
12337 then :
12338 printf %s "(cached) " >&6
12339 else case e in #(
12340 e)
12341 if test $cross_compiling = no; then
12342 if test "$cross_compiling" = yes
12343 then :
12344 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12345 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12346 as_fn_error $? "cannot run test program while cross compiling
12347 See 'config.log' for more details" "$LINENO" 5; }
12348 else case e in #(
12349 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12350 /* end confdefs.h. */
12351
12352 #include <unistd.h>
12353 #include <stdlib.h>
12354 #include <string.h>
12355
12356 int
12357 main ()
12358 {
12359 static char program[] = "program";
12360 static char a[] = "-a";
12361 static char foo[] = "foo";
12362 static char bar[] = "bar";
12363 char *argv[] = { program, a, foo, bar, NULL };
12364 int c;
12365
12366 c = getopt (4, argv, "ab");
12367 if (!(c == 'a'))
12368 return 1;
12369 c = getopt (4, argv, "ab");
12370 if (!(c == -1))
12371 return 2;
12372 if (!(optind == 2))
12373 return 3;
12374 return 0;
12375 }
12376
12377 _ACEOF
12378 if ac_fn_c_try_run "$LINENO"
12379 then :
12380 gl_cv_func_getopt_posix=maybe
12381 else case e in #(
12382 e) gl_cv_func_getopt_posix=no ;;
12383 esac
12384 fi
12385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12386 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12387 esac
12388 fi
12389
12390 if test $gl_cv_func_getopt_posix = maybe; then
12391 if test "$cross_compiling" = yes
12392 then :
12393 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12394 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12395 as_fn_error $? "cannot run test program while cross compiling
12396 See 'config.log' for more details" "$LINENO" 5; }
12397 else case e in #(
12398 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12399 /* end confdefs.h. */
12400
12401 #include <unistd.h>
12402 #include <stdlib.h>
12403 #include <string.h>
12404
12405 int
12406 main ()
12407 {
12408 static char program[] = "program";
12409 static char donald[] = "donald";
12410 static char p[] = "-p";
12411 static char billy[] = "billy";
12412 static char duck[] = "duck";
12413 static char a[] = "-a";
12414 static char bar[] = "bar";
12415 char *argv[] = { program, donald, p, billy, duck, a, bar, NULL };
12416 int c;
12417
12418 c = getopt (7, argv, "+abp:q:");
12419 if (!(c == -1))
12420 return 4;
12421 if (!(strcmp (argv[0], "program") == 0))
12422 return 5;
12423 if (!(strcmp (argv[1], "donald") == 0))
12424 return 6;
12425 if (!(strcmp (argv[2], "-p") == 0))
12426 return 7;
12427 if (!(strcmp (argv[3], "billy") == 0))
12428 return 8;
12429 if (!(strcmp (argv[4], "duck") == 0))
12430 return 9;
12431 if (!(strcmp (argv[5], "-a") == 0))
12432 return 10;
12433 if (!(strcmp (argv[6], "bar") == 0))
12434 return 11;
12435 if (!(optind == 1))
12436 return 12;
12437 return 0;
12438 }
12439
12440 _ACEOF
12441 if ac_fn_c_try_run "$LINENO"
12442 then :
12443 gl_cv_func_getopt_posix=maybe
12444 else case e in #(
12445 e) gl_cv_func_getopt_posix=no ;;
12446 esac
12447 fi
12448 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12449 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12450 esac
12451 fi
12452
12453 fi
12454 if test $gl_cv_func_getopt_posix = maybe; then
12455 if test "$cross_compiling" = yes
12456 then :
12457 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
12458 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
12459 as_fn_error $? "cannot run test program while cross compiling
12460 See 'config.log' for more details" "$LINENO" 5; }
12461 else case e in #(
12462 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12463 /* end confdefs.h. */
12464
12465 #include <unistd.h>
12466 #include <stdlib.h>
12467 #include <string.h>
12468
12469 int
12470 main ()
12471 {
12472 static char program[] = "program";
12473 static char ab[] = "-ab";
12474 char *argv[3] = { program, ab, NULL };
12475 if (getopt (2, argv, "ab:") != 'a')
12476 return 13;
12477 if (getopt (2, argv, "ab:") != '?')
12478 return 14;
12479 if (optopt != 'b')
12480 return 15;
12481 if (optind != 2)
12482 return 16;
12483 return 0;
12484 }
12485
12486 _ACEOF
12487 if ac_fn_c_try_run "$LINENO"
12488 then :
12489 gl_cv_func_getopt_posix=yes
12490 else case e in #(
12491 e) gl_cv_func_getopt_posix=no ;;
12492 esac
12493 fi
12494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12495 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12496 esac
12497 fi
12498
12499 fi
12500 else
12501 case "$host_os" in
12502 darwin* | aix* | mingw* | windows*) gl_cv_func_getopt_posix="guessing no";;
12503 *) gl_cv_func_getopt_posix="guessing yes";;
12504 esac
12505 fi
12506 ;;
12507 esac
12508 fi
12509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_posix" >&5
12510 printf "%s\n" "$gl_cv_func_getopt_posix" >&6; }
12511 case "$gl_cv_func_getopt_posix" in
12512 *no) gl_replace_getopt=yes ;;
12513 esac
12514 fi
12515
12516 if test -z "$gl_replace_getopt" && test $gl_getopt_required = GNU; then
12517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
12518 printf %s "checking for working GNU getopt function... " >&6; }
12519 if test ${gl_cv_func_getopt_gnu+y}
12520 then :
12521 printf %s "(cached) " >&6
12522 else case e in #(
12523 e) # Even with POSIXLY_CORRECT, the GNU extension of leading '-' in the
12524 # optstring is necessary for programs like m4 that have POSIX-mandated
12525 # semantics for supporting options interspersed with files.
12526 # Also, since getopt_long is a GNU extension, we require optind=0.
12527 # Bash ties 'set -o posix' to a non-exported POSIXLY_CORRECT;
12528 # so take care to revert to the correct (non-)export state.
12529 gl_awk_probe='BEGIN { if ("POSIXLY_CORRECT" in ENVIRON) print "x" }'
12530 case ${POSIXLY_CORRECT+x}`$AWK "$gl_awk_probe" </dev/null` in
12531 xx) gl_had_POSIXLY_CORRECT=exported ;;
12532 x) gl_had_POSIXLY_CORRECT=yes ;;
12533 *) gl_had_POSIXLY_CORRECT= ;;
12534 esac
12535 POSIXLY_CORRECT=1
12536 export POSIXLY_CORRECT
12537 if test "$cross_compiling" = yes
12538 then :
12539 gl_cv_func_getopt_gnu="$gl_cross_guess_normal"
12540
12541 else case e in #(
12542 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h. */
12544 #include <getopt.h>
12545 #include <stddef.h>
12546 #include <string.h>
12547
12548 #include <stdlib.h>
12549 #if defined __MACH__ && defined __APPLE__
12550 /* Avoid a crash on Mac OS X. */
12551 #include <mach/mach.h>
12552 #include <mach/mach_error.h>
12553 #include <mach/thread_status.h>
12554 #include <mach/exception.h>
12555 #include <mach/task.h>
12556 #include <pthread.h>
12557 /* The exception port on which our thread listens. */
12558 static mach_port_t our_exception_port;
12559 /* The main function of the thread listening for exceptions of type
12560 EXC_BAD_ACCESS. */
12561 static void *
12562 mach_exception_thread (void *arg)
12563 {
12564 /* Buffer for a message to be received. */
12565 struct {
12566 mach_msg_header_t head;
12567 mach_msg_body_t msgh_body;
12568 char data[1024];
12569 } msg;
12570 mach_msg_return_t retval;
12571 /* Wait for a message on the exception port. */
12572 retval = mach_msg (&msg.head, MACH_RCV_MSG | MACH_RCV_LARGE, 0, sizeof (msg),
12573 our_exception_port, MACH_MSG_TIMEOUT_NONE, MACH_PORT_NULL);
12574 if (retval != MACH_MSG_SUCCESS)
12575 abort ();
12576 exit (1);
12577 }
12578 static void
12579 nocrash_init (void)
12580 {
12581 mach_port_t self = mach_task_self ();
12582 /* Allocate a port on which the thread shall listen for exceptions. */
12583 if (mach_port_allocate (self, MACH_PORT_RIGHT_RECEIVE, &our_exception_port)
12584 == KERN_SUCCESS) {
12585 /* See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/mach_port_insert_right.html. */
12586 if (mach_port_insert_right (self, our_exception_port, our_exception_port,
12587 MACH_MSG_TYPE_MAKE_SEND)
12588 == KERN_SUCCESS) {
12589 /* The exceptions we want to catch. Only EXC_BAD_ACCESS is interesting
12590 for us. */
12591 exception_mask_t mask = EXC_MASK_BAD_ACCESS;
12592 /* Create the thread listening on the exception port. */
12593 pthread_attr_t attr;
12594 pthread_t thread;
12595 if (pthread_attr_init (&attr) == 0
12596 && pthread_attr_setdetachstate (&attr, PTHREAD_CREATE_DETACHED) == 0
12597 && pthread_create (&thread, &attr, mach_exception_thread, NULL) == 0) {
12598 pthread_attr_destroy (&attr);
12599 /* Replace the exception port info for these exceptions with our own.
12600 Note that we replace the exception port for the entire task, not only
12601 for a particular thread. This has the effect that when our exception
12602 port gets the message, the thread specific exception port has already
12603 been asked, and we don't need to bother about it.
12604 See https://web.mit.edu/darwin/src/modules/xnu/osfmk/man/task_set_exception_ports.html. */
12605 task_set_exception_ports (self, mask, our_exception_port,
12606 EXCEPTION_DEFAULT, MACHINE_THREAD_STATE);
12607 }
12608 }
12609 }
12610 }
12611 #elif defined _WIN32 && ! defined __CYGWIN__
12612 /* Avoid a crash on native Windows. */
12613 #define WIN32_LEAN_AND_MEAN
12614 #include <windows.h>
12615 #include <winerror.h>
12616 static LONG WINAPI
12617 exception_filter (EXCEPTION_POINTERS *ExceptionInfo)
12618 {
12619 switch (ExceptionInfo->ExceptionRecord->ExceptionCode)
12620 {
12621 case EXCEPTION_ACCESS_VIOLATION:
12622 case EXCEPTION_IN_PAGE_ERROR:
12623 case EXCEPTION_STACK_OVERFLOW:
12624 case EXCEPTION_GUARD_PAGE:
12625 case EXCEPTION_PRIV_INSTRUCTION:
12626 case EXCEPTION_ILLEGAL_INSTRUCTION:
12627 case EXCEPTION_DATATYPE_MISALIGNMENT:
12628 case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
12629 case EXCEPTION_NONCONTINUABLE_EXCEPTION:
12630 exit (1);
12631 }
12632 return EXCEPTION_CONTINUE_SEARCH;
12633 }
12634 static void
12635 nocrash_init (void)
12636 {
12637 SetUnhandledExceptionFilter ((LPTOP_LEVEL_EXCEPTION_FILTER) exception_filter);
12638 }
12639 #else
12640 /* Avoid a crash on POSIX systems. */
12641 #include <signal.h>
12642 #include <unistd.h>
12643 /* A POSIX signal handler. */
12644 static void
12645 exception_handler (int sig)
12646 {
12647 _exit (1);
12648 }
12649 static void
12650 nocrash_init (void)
12651 {
12652 #ifdef SIGSEGV
12653 signal (SIGSEGV, exception_handler);
12654 #endif
12655 #ifdef SIGBUS
12656 signal (SIGBUS, exception_handler);
12657 #endif
12658 }
12659 #endif
12660
12661
12662 int
12663 main (void)
12664 {
12665
12666 int result = 0;
12667
12668 nocrash_init();
12669
12670 /* This code succeeds on glibc 2.8, OpenBSD 4.0, Cygwin, mingw,
12671 and fails on Mac OS X 10.5, AIX 5.2, HP-UX 11, IRIX 6.5,
12672 OSF/1 5.1, Solaris 10. */
12673 {
12674 static char conftest[] = "conftest";
12675 static char plus[] = "-+";
12676 char *argv[3] = { conftest, plus, NULL };
12677 opterr = 0;
12678 if (getopt (2, argv, "+a") != '?')
12679 result |= 1;
12680 }
12681 /* This code succeeds on glibc 2.8, mingw,
12682 and fails on Mac OS X 10.5, OpenBSD 4.0, AIX 5.2, HP-UX 11,
12683 IRIX 6.5, OSF/1 5.1, Solaris 10, Cygwin 1.5.x. */
12684 {
12685 static char program[] = "program";
12686 static char p[] = "-p";
12687 static char foo[] = "foo";
12688 static char bar[] = "bar";
12689 char *argv[] = { program, p, foo, bar, NULL };
12690
12691 optind = 1;
12692 if (getopt (4, argv, "p::") != 'p')
12693 result |= 2;
12694 else if (optarg != NULL)
12695 result |= 4;
12696 else if (getopt (4, argv, "p::") != -1)
12697 result |= 6;
12698 else if (optind != 2)
12699 result |= 8;
12700 }
12701 /* This code succeeds on glibc 2.8 and fails on Cygwin 1.7.0. */
12702 {
12703 static char program[] = "program";
12704 static char foo[] = "foo";
12705 static char p[] = "-p";
12706 char *argv[] = { program, foo, p, NULL };
12707 optind = 0;
12708 if (getopt (3, argv, "-p") != 1)
12709 result |= 16;
12710 else if (getopt (3, argv, "-p") != 'p')
12711 result |= 16;
12712 }
12713 /* This code fails on glibc 2.11. */
12714 {
12715 static char program[] = "program";
12716 static char b[] = "-b";
12717 static char a[] = "-a";
12718 char *argv[] = { program, b, a, NULL };
12719 optind = opterr = 0;
12720 if (getopt (3, argv, "+:a:b") != 'b')
12721 result |= 32;
12722 else if (getopt (3, argv, "+:a:b") != ':')
12723 result |= 32;
12724 }
12725 /* This code dumps core on glibc 2.14. */
12726 {
12727 static char program[] = "program";
12728 static char w[] = "-W";
12729 static char dummy[] = "dummy";
12730 char *argv[] = { program, w, dummy, NULL };
12731 optind = opterr = 1;
12732 if (getopt (3, argv, "W;") != 'W')
12733 result |= 64;
12734 }
12735 return result;
12736
12737 ;
12738 return 0;
12739 }
12740 _ACEOF
12741 if ac_fn_c_try_run "$LINENO"
12742 then :
12743 gl_cv_func_getopt_gnu=yes
12744 else case e in #(
12745 e) gl_cv_func_getopt_gnu=no ;;
12746 esac
12747 fi
12748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12749 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12750 esac
12751 fi
12752
12753 case $gl_had_POSIXLY_CORRECT in
12754 exported) ;;
12755 yes) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;}; POSIXLY_CORRECT=1 ;;
12756 *) { POSIXLY_CORRECT=; unset POSIXLY_CORRECT;} ;;
12757 esac
12758 ;;
12759 esac
12760 fi
12761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_gnu" >&5
12762 printf "%s\n" "$gl_cv_func_getopt_gnu" >&6; }
12763 if test "$gl_cv_func_getopt_gnu" != yes; then
12764 gl_replace_getopt=yes
12765 else
12766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt_long function" >&5
12767 printf %s "checking for working GNU getopt_long function... " >&6; }
12768 if test ${gl_cv_func_getopt_long_gnu+y}
12769 then :
12770 printf %s "(cached) " >&6
12771 else case e in #(
12772 e) if test "$cross_compiling" = yes
12773 then :
12774 case "$host_os" in
12775 openbsd*) gl_cv_func_getopt_long_gnu="guessing no";;
12776 *) gl_cv_func_getopt_long_gnu="guessing yes";;
12777 esac
12778
12779 else case e in #(
12780 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12781 /* end confdefs.h. */
12782 #include <getopt.h>
12783 #include <stddef.h>
12784 #include <string.h>
12785
12786 int
12787 main (void)
12788 {
12789 static const struct option long_options[] =
12790 {
12791 { "xtremely-",no_argument, NULL, 1003 },
12792 { "xtra", no_argument, NULL, 1001 },
12793 { "xtreme", no_argument, NULL, 1002 },
12794 { "xtremely", no_argument, NULL, 1003 },
12795 { NULL, 0, NULL, 0 }
12796 };
12797 /* This code fails on OpenBSD 5.0. */
12798 {
12799 static char program[] = "program";
12800 static char xtremel[] = "--xtremel";
12801 char *argv[] = { program, xtremel, NULL };
12802 int option_index;
12803 optind = 1; opterr = 0;
12804 if (getopt_long (2, argv, "", long_options, &option_index) != 1003)
12805 return 1;
12806 }
12807 return 0;
12808
12809 ;
12810 return 0;
12811 }
12812 _ACEOF
12813 if ac_fn_c_try_run "$LINENO"
12814 then :
12815 gl_cv_func_getopt_long_gnu=yes
12816 else case e in #(
12817 e) gl_cv_func_getopt_long_gnu=no ;;
12818 esac
12819 fi
12820 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12821 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12822 esac
12823 fi
12824
12825 ;;
12826 esac
12827 fi
12828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getopt_long_gnu" >&5
12829 printf "%s\n" "$gl_cv_func_getopt_long_gnu" >&6; }
12830 case "$gl_cv_func_getopt_long_gnu" in
12831 *yes) ;;
12832 *) gl_replace_getopt=yes ;;
12833 esac
12834 fi
12835 fi
12836
12837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for glibc-compatible sys/cdefs.h" >&5
12838 printf %s "checking for glibc-compatible sys/cdefs.h... " >&6; }
12839 if test ${gl_cv_header_sys_cdefs_h+y}
12840 then :
12841 printf %s "(cached) " >&6
12842 else case e in #(
12843 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12844 /* end confdefs.h. */
12845
12846 #include <sys/cdefs.h>
12847 enum { foo = __GNUC_PREREQ (14, 1) } bar;
12848
12849 _ACEOF
12850 if ac_fn_c_try_compile "$LINENO"
12851 then :
12852 gl_cv_header_sys_cdefs_h=yes
12853 else case e in #(
12854 e) gl_cv_header_sys_cdefs_h=no ;;
12855 esac
12856 fi
12857 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
12858 esac
12859 fi
12860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_sys_cdefs_h" >&5
12861 printf "%s\n" "$gl_cv_header_sys_cdefs_h" >&6; }
12862 if test "$gl_cv_header_sys_cdefs_h" = yes; then
12863 HAVE_SYS_CDEFS_H=1
12864 else
12865 HAVE_SYS_CDEFS_H=0
12866 fi
12867
12868
12869
12870 case "$host_os" in
12871 *-musl* | midipix*)
12872
12873 printf "%s\n" "#define MUSL_LIBC 1" >>confdefs.h
12874
12875 ;;
12876 esac
12877
12878
12879
12880 gl_sed_double_backslashes='s/\\/\\\\/g'
12881 gl_sed_escape_doublequotes='s/"/\\"/g'
12882 gl_sed_escape_for_make_1="s,\\([ \"&'();<>\\\\\`|]\\),\\\\\\1,g"
12883 gl_sed_escape_for_make_2='s,\$,\\$$,g'
12884 case `echo r | tr -d '\r'` in
12885 '') gl_tr_cr='\015' ;;
12886 *) gl_tr_cr='\r' ;;
12887 esac
12888
12889
12890
12891
12892
12893
12894
12895
12896
12897
12898
12899
12900 if test $gl_cv_have_include_next = yes; then
12901 gl_cv_next_limits_h='<'limits.h'>'
12902 else
12903 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
12904 printf %s "checking absolute name of <limits.h>... " >&6; }
12905 if test ${gl_cv_next_limits_h+y}
12906 then :
12907 printf %s "(cached) " >&6
12908 else case e in #(
12909 e)
12910 if test $ac_cv_header_limits_h = yes; then
12911
12912
12913
12914
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12917 #include <limits.h>
12918 _ACEOF
12919 case "$host_os" in
12920 aix*) gl_absname_cpp="$ac_cpp -C" ;;
12921 *) gl_absname_cpp="$ac_cpp" ;;
12922 esac
12923
12924 case "$host_os" in
12925 mingw* | windows*)
12926 gl_dirsep_regex='[/\\]'
12927 ;;
12928 *)
12929 gl_dirsep_regex='\/'
12930 ;;
12931 esac
12932 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
12933 gl_header_literal_regex=`echo 'limits.h' \
12934 | sed -e "$gl_make_literal_regex_sed"`
12935 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
12936 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
12937 s|^/[^/]|//&|
12938 p
12939 q
12940 }'
12941
12942 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
12943 sed -n "$gl_absolute_header_sed"`
12944
12945 gl_header=$gl_cv_absolute_limits_h
12946 gl_cv_next_limits_h='"'$gl_header'"'
12947 else
12948 gl_cv_next_limits_h='<'limits.h'>'
12949 fi
12950
12951 ;;
12952 esac
12953 fi
12954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
12955 printf "%s\n" "$gl_cv_next_limits_h" >&6; }
12956 fi
12957 NEXT_LIMITS_H=$gl_cv_next_limits_h
12958
12959 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
12960 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
12961 gl_next_as_first_directive='<'limits.h'>'
12962 else
12963 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
12964 gl_next_as_first_directive=$gl_cv_next_limits_h
12965 fi
12966 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
12967
12968
12969
12970
12971
12972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5
12973 printf %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; }
12974 if test ${gl_cv_header_limits_width+y}
12975 then :
12976 printf %s "(cached) " >&6
12977 else case e in #(
12978 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12979 /* end confdefs.h. */
12980 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
12981 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
12982 #endif
12983 #include <limits.h>
12984 long long llm = LLONG_MAX;
12985 int wb = WORD_BIT;
12986 int ullw = ULLONG_WIDTH;
12987 int bw = BOOL_WIDTH;
12988 int bm = BOOL_MAX;
12989 int mblm = MB_LEN_MAX;
12990
12991 int
12992 main (void)
12993 {
12994
12995 ;
12996 return 0;
12997 }
12998 _ACEOF
12999 if ac_fn_c_try_compile "$LINENO"
13000 then :
13001 gl_cv_header_limits_width=yes
13002 else case e in #(
13003 e) gl_cv_header_limits_width=no ;;
13004 esac
13005 fi
13006 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13007 esac
13008 fi
13009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
13010 printf "%s\n" "$gl_cv_header_limits_width" >&6; }
13011 GL_GENERATE_LIMITS_H=true
13012 if test "$gl_cv_header_limits_width" = yes
13013 then :
13014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has SSIZE_MAX" >&5
13015 printf %s "checking whether limits.h has SSIZE_MAX... " >&6; }
13016 if test ${gl_cv_header_limits_ssize_max+y}
13017 then :
13018 printf %s "(cached) " >&6
13019 else case e in #(
13020 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13021 /* end confdefs.h. */
13022 #include <limits.h>
13023 #ifndef SSIZE_MAX
13024 #error "SSIZE_MAX is not defined"
13025 #endif
13026
13027 _ACEOF
13028 if ac_fn_c_try_compile "$LINENO"
13029 then :
13030 gl_cv_header_limits_ssize_max=yes
13031 else case e in #(
13032 e) gl_cv_header_limits_ssize_max=no ;;
13033 esac
13034 fi
13035 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13036 esac
13037 fi
13038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_ssize_max" >&5
13039 printf "%s\n" "$gl_cv_header_limits_ssize_max" >&6; }
13040 if test "$gl_cv_header_limits_ssize_max" = yes; then
13041 GL_GENERATE_LIMITS_H=false
13042 fi
13043 fi
13044
13045
13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
13047 printf %s "checking for wint_t... " >&6; }
13048 if test ${gt_cv_c_wint_t+y}
13049 then :
13050 printf %s "(cached) " >&6
13051 else case e in #(
13052 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13053 /* end confdefs.h. */
13054 #include <wchar.h>
13055 wint_t foo = (wchar_t)'\0';
13056 int
13057 main (void)
13058 {
13059
13060 ;
13061 return 0;
13062 }
13063 _ACEOF
13064 if ac_fn_c_try_compile "$LINENO"
13065 then :
13066 gt_cv_c_wint_t=yes
13067 else case e in #(
13068 e) gt_cv_c_wint_t=no ;;
13069 esac
13070 fi
13071 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13072 esac
13073 fi
13074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
13075 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
13076 if test $gt_cv_c_wint_t = yes; then
13077
13078 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
13079
13080
13081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
13082 printf %s "checking whether wint_t is large enough... " >&6; }
13083 if test ${gl_cv_type_wint_t_large_enough+y}
13084 then :
13085 printf %s "(cached) " >&6
13086 else case e in #(
13087 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h. */
13089 #include <wchar.h>
13090 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
13091
13092 int
13093 main (void)
13094 {
13095
13096 ;
13097 return 0;
13098 }
13099 _ACEOF
13100 if ac_fn_c_try_compile "$LINENO"
13101 then :
13102 gl_cv_type_wint_t_large_enough=yes
13103 else case e in #(
13104 e) gl_cv_type_wint_t_large_enough=no ;;
13105 esac
13106 fi
13107 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13108 esac
13109 fi
13110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
13111 printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; }
13112 if test $gl_cv_type_wint_t_large_enough = no; then
13113 GNULIBHEADERS_OVERRIDE_WINT_T=1
13114 else
13115 GNULIBHEADERS_OVERRIDE_WINT_T=0
13116 fi
13117 else
13118 GNULIBHEADERS_OVERRIDE_WINT_T=0
13119 fi
13120
13121
13122
13123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
13124 printf %s "checking whether the compiler produces multi-arch binaries... " >&6; }
13125 if test ${gl_cv_c_multiarch+y}
13126 then :
13127 printf %s "(cached) " >&6
13128 else case e in #(
13129 e) gl_cv_c_multiarch=no
13130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13131 /* end confdefs.h. */
13132 #ifndef __APPLE_CC__
13133 not a universal capable compiler
13134 #endif
13135 typedef int dummy;
13136
13137 _ACEOF
13138 if ac_fn_c_try_compile "$LINENO"
13139 then :
13140
13141 arch=
13142 prev=
13143 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
13144 if test -n "$prev"; then
13145 case $word in
13146 i?86 | x86_64 | ppc | ppc64 | arm | arm64)
13147 if test -z "$arch" || test "$arch" = "$word"; then
13148 arch="$word"
13149 else
13150 gl_cv_c_multiarch=yes
13151 fi
13152 ;;
13153 esac
13154 prev=
13155 else
13156 if test "x$word" = "x-arch"; then
13157 prev=arch
13158 fi
13159 fi
13160 done
13161
13162 fi
13163 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13164 ;;
13165 esac
13166 fi
13167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
13168 printf "%s\n" "$gl_cv_c_multiarch" >&6; }
13169 if test $gl_cv_c_multiarch = yes; then
13170 APPLE_UNIVERSAL_BUILD=1
13171 else
13172 APPLE_UNIVERSAL_BUILD=0
13173 fi
13174
13175
13176
13177
13178
13179
13180
13181
13182 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
13183
13184
13185 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
13186
13187
13188
13189 if test $ac_cv_header_wchar_h = yes; then
13190 HAVE_WCHAR_H=1
13191 else
13192 HAVE_WCHAR_H=0
13193 fi
13194
13195
13196
13197 if test $ac_cv_header_inttypes_h = yes; then
13198 HAVE_INTTYPES_H=1
13199 else
13200 HAVE_INTTYPES_H=0
13201 fi
13202
13203
13204
13205 if test $ac_cv_header_sys_types_h = yes; then
13206 HAVE_SYS_TYPES_H=1
13207 else
13208 HAVE_SYS_TYPES_H=0
13209 fi
13210
13211
13212
13213
13214
13215
13216
13217
13218
13219
13220
13221 if test $gl_cv_have_include_next = yes; then
13222 gl_cv_next_stdint_h='<'stdint.h'>'
13223 else
13224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
13225 printf %s "checking absolute name of <stdint.h>... " >&6; }
13226 if test ${gl_cv_next_stdint_h+y}
13227 then :
13228 printf %s "(cached) " >&6
13229 else case e in #(
13230 e)
13231 if test $ac_cv_header_stdint_h = yes; then
13232
13233
13234
13235
13236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237 /* end confdefs.h. */
13238 #include <stdint.h>
13239 _ACEOF
13240 case "$host_os" in
13241 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13242 *) gl_absname_cpp="$ac_cpp" ;;
13243 esac
13244
13245 case "$host_os" in
13246 mingw* | windows*)
13247 gl_dirsep_regex='[/\\]'
13248 ;;
13249 *)
13250 gl_dirsep_regex='\/'
13251 ;;
13252 esac
13253 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13254 gl_header_literal_regex=`echo 'stdint.h' \
13255 | sed -e "$gl_make_literal_regex_sed"`
13256 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13257 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13258 s|^/[^/]|//&|
13259 p
13260 q
13261 }'
13262
13263 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13264 sed -n "$gl_absolute_header_sed"`
13265
13266 gl_header=$gl_cv_absolute_stdint_h
13267 gl_cv_next_stdint_h='"'$gl_header'"'
13268 else
13269 gl_cv_next_stdint_h='<'stdint.h'>'
13270 fi
13271
13272 ;;
13273 esac
13274 fi
13275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
13276 printf "%s\n" "$gl_cv_next_stdint_h" >&6; }
13277 fi
13278 NEXT_STDINT_H=$gl_cv_next_stdint_h
13279
13280 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13281 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13282 gl_next_as_first_directive='<'stdint.h'>'
13283 else
13284 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13285 gl_next_as_first_directive=$gl_cv_next_stdint_h
13286 fi
13287 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
13288
13289
13290
13291
13292 if test $ac_cv_header_stdint_h = yes; then
13293 HAVE_STDINT_H=1
13294 else
13295 HAVE_STDINT_H=0
13296 fi
13297
13298
13299 if test $ac_cv_header_stdint_h = yes; then
13300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
13301 printf %s "checking whether stdint.h conforms to C99... " >&6; }
13302 if test ${gl_cv_header_working_stdint_h+y}
13303 then :
13304 printf %s "(cached) " >&6
13305 else case e in #(
13306 e) gl_cv_header_working_stdint_h=no
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309
13310
13311 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
13312 #define __STDC_CONSTANT_MACROS 1
13313 #define __STDC_LIMIT_MACROS 1
13314 #include <stdint.h>
13315 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
13316 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
13317 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
13318 #endif
13319
13320
13321 #include <stddef.h>
13322 #include <signal.h>
13323 #if HAVE_WCHAR_H
13324 # include <wchar.h>
13325 #endif
13326
13327
13328 #ifdef INT8_MAX
13329 int8_t a1 = INT8_MAX;
13330 int8_t a1min = INT8_MIN;
13331 #endif
13332 #ifdef INT16_MAX
13333 int16_t a2 = INT16_MAX;
13334 int16_t a2min = INT16_MIN;
13335 #endif
13336 #ifdef INT32_MAX
13337 int32_t a3 = INT32_MAX;
13338 int32_t a3min = INT32_MIN;
13339 #endif
13340 #ifdef INT64_MAX
13341 int64_t a4 = INT64_MAX;
13342 int64_t a4min = INT64_MIN;
13343 #endif
13344 #ifdef UINT8_MAX
13345 uint8_t b1 = UINT8_MAX;
13346 #else
13347 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
13348 #endif
13349 #ifdef UINT16_MAX
13350 uint16_t b2 = UINT16_MAX;
13351 #endif
13352 #ifdef UINT32_MAX
13353 uint32_t b3 = UINT32_MAX;
13354 #endif
13355 #ifdef UINT64_MAX
13356 uint64_t b4 = UINT64_MAX;
13357 #endif
13358 int_least8_t c1 = INT8_C (0x7f);
13359 int_least8_t c1max = INT_LEAST8_MAX;
13360 int_least8_t c1min = INT_LEAST8_MIN;
13361 int_least16_t c2 = INT16_C (0x7fff);
13362 int_least16_t c2max = INT_LEAST16_MAX;
13363 int_least16_t c2min = INT_LEAST16_MIN;
13364 int_least32_t c3 = INT32_C (0x7fffffff);
13365 int_least32_t c3max = INT_LEAST32_MAX;
13366 int_least32_t c3min = INT_LEAST32_MIN;
13367 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
13368 int_least64_t c4max = INT_LEAST64_MAX;
13369 int_least64_t c4min = INT_LEAST64_MIN;
13370 uint_least8_t d1 = UINT8_C (0xff);
13371 uint_least8_t d1max = UINT_LEAST8_MAX;
13372 uint_least16_t d2 = UINT16_C (0xffff);
13373 uint_least16_t d2max = UINT_LEAST16_MAX;
13374 uint_least32_t d3 = UINT32_C (0xffffffff);
13375 uint_least32_t d3max = UINT_LEAST32_MAX;
13376 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
13377 uint_least64_t d4max = UINT_LEAST64_MAX;
13378 int_fast8_t e1 = INT_FAST8_MAX;
13379 int_fast8_t e1min = INT_FAST8_MIN;
13380 int_fast16_t e2 = INT_FAST16_MAX;
13381 int_fast16_t e2min = INT_FAST16_MIN;
13382 int_fast32_t e3 = INT_FAST32_MAX;
13383 int_fast32_t e3min = INT_FAST32_MIN;
13384 int_fast64_t e4 = INT_FAST64_MAX;
13385 int_fast64_t e4min = INT_FAST64_MIN;
13386 uint_fast8_t f1 = UINT_FAST8_MAX;
13387 uint_fast16_t f2 = UINT_FAST16_MAX;
13388 uint_fast32_t f3 = UINT_FAST32_MAX;
13389 uint_fast64_t f4 = UINT_FAST64_MAX;
13390 #ifdef INTPTR_MAX
13391 intptr_t g = INTPTR_MAX;
13392 intptr_t gmin = INTPTR_MIN;
13393 #endif
13394 #ifdef UINTPTR_MAX
13395 uintptr_t h = UINTPTR_MAX;
13396 #endif
13397 intmax_t i = INTMAX_MAX;
13398 uintmax_t j = UINTMAX_MAX;
13399
13400 /* Check that SIZE_MAX has the correct type, if possible. */
13401 /* ISO C 11 mandates _Generic, but GCC versions < 4.9 lack it. */
13402 #if 201112 <= __STDC_VERSION__ \
13403 && (!defined __GNUC__ || 4 < __GNUC__ + (9 <= __GNUC_MINOR__) \
13404 || defined __clang__)
13405 int k = _Generic (SIZE_MAX, size_t: 0);
13406 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
13407 || (0x5110 <= __SUNPRO_C && !__STDC__) || 1939 <= _MSC_VER)
13408 extern size_t k;
13409 extern __typeof__ (SIZE_MAX) k;
13410 #endif
13411
13412 #include <limits.h> /* for CHAR_BIT */
13413 #define TYPE_MINIMUM(t) \
13414 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
13415 #define TYPE_MAXIMUM(t) \
13416 ((t) ((t) 0 < (t) -1 \
13417 ? (t) -1 \
13418 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
13419 struct s {
13420 int check_PTRDIFF:
13421 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
13422 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
13423 ? 1 : -1;
13424 /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64. */
13425 int check_SIG_ATOMIC:
13426 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
13427 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
13428 ? 1 : -1;
13429 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
13430 int check_WCHAR:
13431 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
13432 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
13433 ? 1 : -1;
13434 /* Detect bug in mingw. */
13435 int check_WINT:
13436 WINT_MIN == TYPE_MINIMUM (wint_t)
13437 && WINT_MAX == TYPE_MAXIMUM (wint_t)
13438 ? 1 : -1;
13439
13440 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
13441 int check_UINT8_C:
13442 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
13443 int check_UINT16_C:
13444 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
13445
13446 /* Detect bugs in OpenBSD 3.9 stdint.h. */
13447 #ifdef UINT8_MAX
13448 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
13449 #endif
13450 #ifdef UINT16_MAX
13451 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
13452 #endif
13453 #ifdef UINT32_MAX
13454 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
13455 #endif
13456 #ifdef UINT64_MAX
13457 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
13458 #endif
13459 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
13460 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
13461 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
13462 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
13463 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
13464 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
13465 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
13466 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
13467 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
13468 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
13469 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
13470 };
13471
13472 int
13473 main (void)
13474 {
13475
13476 ;
13477 return 0;
13478 }
13479 _ACEOF
13480 if ac_fn_c_try_compile "$LINENO"
13481 then :
13482 if test "$cross_compiling" = yes
13483 then :
13484 case "$host_os" in
13485 # Guess yes on native Windows.
13486 mingw* | windows*) gl_cv_header_working_stdint_h="guessing yes" ;;
13487 # In general, assume it works.
13488 *) gl_cv_header_working_stdint_h="guessing yes" ;;
13489 esac
13490
13491 else case e in #(
13492 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13493 /* end confdefs.h. */
13494
13495
13496 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
13497 #define __STDC_CONSTANT_MACROS 1
13498 #define __STDC_LIMIT_MACROS 1
13499 #include <stdint.h>
13500
13501
13502 #include <stddef.h>
13503 #include <signal.h>
13504 #if HAVE_WCHAR_H
13505 # include <wchar.h>
13506 #endif
13507
13508
13509 #include <stdio.h>
13510 #include <string.h>
13511 #define MVAL(macro) MVAL1(macro)
13512 #define MVAL1(expression) #expression
13513 static const char *macro_values[] =
13514 {
13515 #ifdef INT8_MAX
13516 MVAL (INT8_MAX),
13517 #endif
13518 #ifdef INT16_MAX
13519 MVAL (INT16_MAX),
13520 #endif
13521 #ifdef INT32_MAX
13522 MVAL (INT32_MAX),
13523 #endif
13524 #ifdef INT64_MAX
13525 MVAL (INT64_MAX),
13526 #endif
13527 #ifdef UINT8_MAX
13528 MVAL (UINT8_MAX),
13529 #endif
13530 #ifdef UINT16_MAX
13531 MVAL (UINT16_MAX),
13532 #endif
13533 #ifdef UINT32_MAX
13534 MVAL (UINT32_MAX),
13535 #endif
13536 #ifdef UINT64_MAX
13537 MVAL (UINT64_MAX),
13538 #endif
13539 NULL
13540 };
13541
13542 int
13543 main (void)
13544 {
13545
13546 const char **mv;
13547 for (mv = macro_values; *mv != NULL; mv++)
13548 {
13549 const char *value = *mv;
13550 /* Test whether it looks like a cast expression. */
13551 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
13552 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
13553 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
13554 || strncmp (value, "((int)"/*)*/, 6) == 0
13555 || strncmp (value, "((signed short)"/*)*/, 15) == 0
13556 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
13557 return mv - macro_values + 1;
13558 }
13559 return 0;
13560
13561 ;
13562 return 0;
13563 }
13564 _ACEOF
13565 if ac_fn_c_try_run "$LINENO"
13566 then :
13567 gl_cv_header_working_stdint_h=yes
13568 fi
13569 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13570 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13571 esac
13572 fi
13573
13574
13575 fi
13576 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13577 ;;
13578 esac
13579 fi
13580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
13581 printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; }
13582 fi
13583
13584 HAVE_C99_STDINT_H=0
13585 HAVE_SYS_BITYPES_H=0
13586 HAVE_SYS_INTTYPES_H=0
13587 GL_GENERATE_STDINT_H=true
13588 case "$gl_cv_header_working_stdint_h" in
13589 *yes)
13590 HAVE_C99_STDINT_H=1
13591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
13592 printf %s "checking whether stdint.h works without ISO C predefines... " >&6; }
13593 if test ${gl_cv_header_stdint_without_STDC_macros+y}
13594 then :
13595 printf %s "(cached) " >&6
13596 else case e in #(
13597 e) gl_cv_header_stdint_without_STDC_macros=no
13598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13599 /* end confdefs.h. */
13600
13601
13602 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
13603 #include <stdint.h>
13604
13605
13606 #include <stddef.h>
13607 #include <signal.h>
13608 #if HAVE_WCHAR_H
13609 # include <wchar.h>
13610 #endif
13611
13612
13613 intmax_t im = INTMAX_MAX;
13614 int32_t i32 = INT32_C (0x7fffffff);
13615
13616 int
13617 main (void)
13618 {
13619
13620 ;
13621 return 0;
13622 }
13623 _ACEOF
13624 if ac_fn_c_try_compile "$LINENO"
13625 then :
13626 gl_cv_header_stdint_without_STDC_macros=yes
13627 fi
13628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13629 ;;
13630 esac
13631 fi
13632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
13633 printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; }
13634
13635 if test $gl_cv_header_stdint_without_STDC_macros = no; then
13636
13637 printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
13638
13639
13640 printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
13641
13642 fi
13643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
13644 printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
13645 if test ${gl_cv_header_stdint_width+y}
13646 then :
13647 printf %s "(cached) " >&6
13648 else case e in #(
13649 e) gl_cv_header_stdint_width=no
13650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13651 /* end confdefs.h. */
13652
13653 /* Work if build is not clean. */
13654 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
13655 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
13656 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
13657 #endif
13658 #include <stdint.h>
13659
13660 #include <stddef.h>
13661 #include <signal.h>
13662 #if HAVE_WCHAR_H
13663 # include <wchar.h>
13664 #endif
13665
13666 int iw = UINTMAX_WIDTH;
13667
13668 int
13669 main (void)
13670 {
13671
13672 ;
13673 return 0;
13674 }
13675 _ACEOF
13676 if ac_fn_c_try_compile "$LINENO"
13677 then :
13678 gl_cv_header_stdint_width=yes
13679 fi
13680 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
13681 esac
13682 fi
13683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
13684 printf "%s\n" "$gl_cv_header_stdint_width" >&6; }
13685 if test "$gl_cv_header_stdint_width" = yes; then
13686 GL_GENERATE_STDINT_H=false
13687 fi
13688 ;;
13689 *)
13690 ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
13691 if test "x$ac_cv_header_sys_inttypes_h" = xyes
13692 then :
13693 printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h
13694
13695 fi
13696 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
13697 if test "x$ac_cv_header_sys_bitypes_h" = xyes
13698 then :
13699 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
13700
13701 fi
13702
13703 if test $ac_cv_header_sys_inttypes_h = yes; then
13704 HAVE_SYS_INTTYPES_H=1
13705 fi
13706 if test $ac_cv_header_sys_bitypes_h = yes; then
13707 HAVE_SYS_BITYPES_H=1
13708 fi
13709
13710
13711 if test $APPLE_UNIVERSAL_BUILD = 0; then
13712
13713
13714 for gltype in ptrdiff_t size_t ; do
13715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
13716 printf %s "checking for bit size of $gltype... " >&6; }
13717 if eval test \${gl_cv_bitsizeof_${gltype}+y}
13718 then :
13719 printf %s "(cached) " >&6
13720 else case e in #(
13721 e) if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
13722 #include <stddef.h>
13723 #include <signal.h>
13724 #if HAVE_WCHAR_H
13725 # include <wchar.h>
13726 #endif
13727
13728 #include <limits.h>"
13729 then :
13730
13731 else case e in #(
13732 e) result=unknown ;;
13733 esac
13734 fi
13735
13736 eval gl_cv_bitsizeof_${gltype}=\$result
13737 ;;
13738 esac
13739 fi
13740 eval ac_res=\$gl_cv_bitsizeof_${gltype}
13741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13742 printf "%s\n" "$ac_res" >&6; }
13743 eval result=\$gl_cv_bitsizeof_${gltype}
13744 if test $result = unknown; then
13745 result=0
13746 fi
13747 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13748 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
13749
13750 eval BITSIZEOF_${GLTYPE}=\$result
13751 done
13752
13753
13754 fi
13755
13756
13757 for gltype in sig_atomic_t wchar_t wint_t ; do
13758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
13759 printf %s "checking for bit size of $gltype... " >&6; }
13760 if eval test \${gl_cv_bitsizeof_${gltype}+y}
13761 then :
13762 printf %s "(cached) " >&6
13763 else case e in #(
13764 e) if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
13765 #include <stddef.h>
13766 #include <signal.h>
13767 #if HAVE_WCHAR_H
13768 # include <wchar.h>
13769 #endif
13770
13771 #include <limits.h>"
13772 then :
13773
13774 else case e in #(
13775 e) result=unknown ;;
13776 esac
13777 fi
13778
13779 eval gl_cv_bitsizeof_${gltype}=\$result
13780 ;;
13781 esac
13782 fi
13783 eval ac_res=\$gl_cv_bitsizeof_${gltype}
13784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13785 printf "%s\n" "$ac_res" >&6; }
13786 eval result=\$gl_cv_bitsizeof_${gltype}
13787 if test $result = unknown; then
13788 result=0
13789 fi
13790 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13791 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
13792
13793 eval BITSIZEOF_${GLTYPE}=\$result
13794 done
13795
13796
13797
13798
13799 for gltype in sig_atomic_t wchar_t wint_t ; do
13800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
13801 printf %s "checking whether $gltype is signed... " >&6; }
13802 if eval test \${gl_cv_type_${gltype}_signed+y}
13803 then :
13804 printf %s "(cached) " >&6
13805 else case e in #(
13806 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13807 /* end confdefs.h. */
13808
13809 #include <stddef.h>
13810 #include <signal.h>
13811 #if HAVE_WCHAR_H
13812 # include <wchar.h>
13813 #endif
13814
13815 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
13816 int
13817 main (void)
13818 {
13819
13820 ;
13821 return 0;
13822 }
13823 _ACEOF
13824 if ac_fn_c_try_compile "$LINENO"
13825 then :
13826 result=yes
13827 else case e in #(
13828 e) result=no ;;
13829 esac
13830 fi
13831 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13832 eval gl_cv_type_${gltype}_signed=\$result
13833 ;;
13834 esac
13835 fi
13836 eval ac_res=\$gl_cv_type_${gltype}_signed
13837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13838 printf "%s\n" "$ac_res" >&6; }
13839 eval result=\$gl_cv_type_${gltype}_signed
13840 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13841 if test "$result" = yes; then
13842 printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h
13843
13844 eval HAVE_SIGNED_${GLTYPE}=1
13845 else
13846 eval HAVE_SIGNED_${GLTYPE}=0
13847 fi
13848 done
13849
13850
13851 gl_cv_type_ptrdiff_t_signed=yes
13852 gl_cv_type_size_t_signed=no
13853 if test $APPLE_UNIVERSAL_BUILD = 0; then
13854
13855
13856 for gltype in ptrdiff_t size_t ; do
13857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
13858 printf %s "checking for $gltype integer literal suffix... " >&6; }
13859 if eval test \${gl_cv_type_${gltype}_suffix+y}
13860 then :
13861 printf %s "(cached) " >&6
13862 else case e in #(
13863 e) eval gl_cv_type_${gltype}_suffix=no
13864 eval result=\$gl_cv_type_${gltype}_signed
13865 if test "$result" = yes; then
13866 glsufu=
13867 else
13868 glsufu=u
13869 fi
13870 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
13871 case $glsuf in
13872 '') gltype1='int';;
13873 l) gltype1='long int';;
13874 ll) gltype1='long long int';;
13875 i64) gltype1='__int64';;
13876 u) gltype1='unsigned int';;
13877 ul) gltype1='unsigned long int';;
13878 ull) gltype1='unsigned long long int';;
13879 ui64)gltype1='unsigned __int64';;
13880 esac
13881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13882 /* end confdefs.h. */
13883
13884 #include <stddef.h>
13885 #include <signal.h>
13886 #if HAVE_WCHAR_H
13887 # include <wchar.h>
13888 #endif
13889
13890 extern $gltype foo;
13891 extern $gltype1 foo;
13892 int
13893 main (void)
13894 {
13895
13896 ;
13897 return 0;
13898 }
13899 _ACEOF
13900 if ac_fn_c_try_compile "$LINENO"
13901 then :
13902 eval gl_cv_type_${gltype}_suffix=\$glsuf
13903 fi
13904 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13905 eval result=\$gl_cv_type_${gltype}_suffix
13906 test "$result" != no && break
13907 done ;;
13908 esac
13909 fi
13910 eval ac_res=\$gl_cv_type_${gltype}_suffix
13911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13912 printf "%s\n" "$ac_res" >&6; }
13913 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13914 eval result=\$gl_cv_type_${gltype}_suffix
13915 test "$result" = no && result=
13916 eval ${GLTYPE}_SUFFIX=\$result
13917 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
13918
13919 done
13920
13921
13922 fi
13923
13924
13925 for gltype in sig_atomic_t wchar_t wint_t ; do
13926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
13927 printf %s "checking for $gltype integer literal suffix... " >&6; }
13928 if eval test \${gl_cv_type_${gltype}_suffix+y}
13929 then :
13930 printf %s "(cached) " >&6
13931 else case e in #(
13932 e) eval gl_cv_type_${gltype}_suffix=no
13933 eval result=\$gl_cv_type_${gltype}_signed
13934 if test "$result" = yes; then
13935 glsufu=
13936 else
13937 glsufu=u
13938 fi
13939 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
13940 case $glsuf in
13941 '') gltype1='int';;
13942 l) gltype1='long int';;
13943 ll) gltype1='long long int';;
13944 i64) gltype1='__int64';;
13945 u) gltype1='unsigned int';;
13946 ul) gltype1='unsigned long int';;
13947 ull) gltype1='unsigned long long int';;
13948 ui64)gltype1='unsigned __int64';;
13949 esac
13950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13951 /* end confdefs.h. */
13952
13953 #include <stddef.h>
13954 #include <signal.h>
13955 #if HAVE_WCHAR_H
13956 # include <wchar.h>
13957 #endif
13958
13959 extern $gltype foo;
13960 extern $gltype1 foo;
13961 int
13962 main (void)
13963 {
13964
13965 ;
13966 return 0;
13967 }
13968 _ACEOF
13969 if ac_fn_c_try_compile "$LINENO"
13970 then :
13971 eval gl_cv_type_${gltype}_suffix=\$glsuf
13972 fi
13973 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13974 eval result=\$gl_cv_type_${gltype}_suffix
13975 test "$result" != no && break
13976 done ;;
13977 esac
13978 fi
13979 eval ac_res=\$gl_cv_type_${gltype}_suffix
13980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
13981 printf "%s\n" "$ac_res" >&6; }
13982 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
13983 eval result=\$gl_cv_type_${gltype}_suffix
13984 test "$result" = no && result=
13985 eval ${GLTYPE}_SUFFIX=\$result
13986 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
13987
13988 done
13989
13990
13991
13992 if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
13993 BITSIZEOF_WINT_T=32
13994 fi
13995
13996 ;;
13997 esac
13998
13999
14000
14001 GL_GENERATE_LIMITS_H=true
14002
14003
14004
14005
14006
14007
14008
14009 HAVE_DECL_IMAXABS=1;
14010 HAVE_DECL_IMAXDIV=1;
14011 HAVE_DECL_STRTOIMAX=1;
14012 HAVE_DECL_STRTOUMAX=1;
14013 HAVE_IMAXDIV_T=1;
14014 HAVE_IMAXABS=1;
14015 HAVE_IMAXDIV=1;
14016 REPLACE_IMAXABS=0;
14017 REPLACE_IMAXDIV=0;
14018 REPLACE_STRTOIMAX=0;
14019 REPLACE_STRTOUMAX=0;
14020 INT32_MAX_LT_INTMAX_MAX=1;
14021 INT64_MAX_EQ_LONG_MAX='defined _LP64';
14022 PRIPTR_PREFIX=__PRIPTR_PREFIX;
14023 UINT32_MAX_LT_UINTMAX_MAX=1;
14024 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040 if test $gl_cv_have_include_next = yes; then
14041 gl_cv_next_inttypes_h='<'inttypes.h'>'
14042 else
14043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
14044 printf %s "checking absolute name of <inttypes.h>... " >&6; }
14045 if test ${gl_cv_next_inttypes_h+y}
14046 then :
14047 printf %s "(cached) " >&6
14048 else case e in #(
14049 e)
14050 if test $ac_cv_header_inttypes_h = yes; then
14051
14052
14053
14054
14055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14056 /* end confdefs.h. */
14057 #include <inttypes.h>
14058 _ACEOF
14059 case "$host_os" in
14060 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14061 *) gl_absname_cpp="$ac_cpp" ;;
14062 esac
14063
14064 case "$host_os" in
14065 mingw* | windows*)
14066 gl_dirsep_regex='[/\\]'
14067 ;;
14068 *)
14069 gl_dirsep_regex='\/'
14070 ;;
14071 esac
14072 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14073 gl_header_literal_regex=`echo 'inttypes.h' \
14074 | sed -e "$gl_make_literal_regex_sed"`
14075 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14076 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14077 s|^/[^/]|//&|
14078 p
14079 q
14080 }'
14081
14082 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14083 sed -n "$gl_absolute_header_sed"`
14084
14085 gl_header=$gl_cv_absolute_inttypes_h
14086 gl_cv_next_inttypes_h='"'$gl_header'"'
14087 else
14088 gl_cv_next_inttypes_h='<'inttypes.h'>'
14089 fi
14090
14091 ;;
14092 esac
14093 fi
14094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
14095 printf "%s\n" "$gl_cv_next_inttypes_h" >&6; }
14096 fi
14097 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
14098
14099 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14100 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14101 gl_next_as_first_directive='<'inttypes.h'>'
14102 else
14103 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14104 gl_next_as_first_directive=$gl_cv_next_inttypes_h
14105 fi
14106 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
14107
14108
14109
14110
14111
14112
14113
14114
14115
14116
14117
14118
14119
14120
14121
14122 GL_GNULIB_IMAXABS=0
14123
14124
14125
14126 GL_GNULIB_IMAXDIV=0
14127
14128
14129
14130 GL_GNULIB_STRTOIMAX=0
14131
14132
14133
14134 GL_GNULIB_STRTOUMAX=0
14135
14136
14137
14138
14139 HAVE_NEWLOCALE=1;
14140 HAVE_DUPLOCALE=1;
14141 HAVE_FREELOCALE=1;
14142 HAVE_GETLOCALENAME_L=1;
14143 REPLACE_LOCALECONV=0;
14144 REPLACE_SETLOCALE=0;
14145 REPLACE_NEWLOCALE=0;
14146 REPLACE_DUPLOCALE=0;
14147 REPLACE_FREELOCALE=0;
14148 REPLACE_GETLOCALENAME_L=0;
14149 REPLACE_STRUCT_LCONV=0;
14150 LOCALENAME_ENHANCE_LOCALE_FUNCS=0;
14151
14152
14153 NULLPTR_T_NEEDS_STDDEF=1;
14154 STDDEF_NOT_IDEMPOTENT=0;
14155 REPLACE_NULL=0;
14156 HAVE_MAX_ALIGN_T=1;
14157
14158
14159
14160
14161
14162
14163 GL_GENERATE_STDDEF_H=false
14164
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
14166 printf %s "checking for good max_align_t... " >&6; }
14167 if test ${gl_cv_type_max_align_t+y}
14168 then :
14169 printf %s "(cached) " >&6
14170 else case e in #(
14171 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14172 /* end confdefs.h. */
14173 /* On FreeBSD 12.0/x86, max_align_t defined by <stddef.h> has
14174 the correct alignment with the default (wrong) definition of
14175 _Alignof, but a wrong alignment as soon as we activate an
14176 ISO C compliant _Alignof definition. */
14177 #if ((defined __GNUC__ && 4 <= __GNUC__) || defined __clang__) && !defined __cplusplus
14178 #define _Alignof(type) __builtin_offsetof (struct { char __a; type __b; }, __b)
14179 #endif
14180 #include <stddef.h>
14181 unsigned int s = sizeof (max_align_t);
14182 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
14183 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
14184 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
14185 #endif
14186 typedef struct { char a; max_align_t b; } max_helper;
14187 typedef struct { char a; long b; } long_helper;
14188 typedef struct { char a; double b; } double_helper;
14189 typedef struct { char a; long double b; } long_double_helper;
14190 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
14191 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
14192 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
14193
14194 int
14195 main (void)
14196 {
14197
14198 ;
14199 return 0;
14200 }
14201 _ACEOF
14202 if ac_fn_c_try_compile "$LINENO"
14203 then :
14204 gl_cv_type_max_align_t=yes
14205 else case e in #(
14206 e) gl_cv_type_max_align_t=no ;;
14207 esac
14208 fi
14209 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14210 ;;
14211 esac
14212 fi
14213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
14214 printf "%s\n" "$gl_cv_type_max_align_t" >&6; }
14215 if test $gl_cv_type_max_align_t = no; then
14216 HAVE_MAX_ALIGN_T=0
14217 GL_GENERATE_STDDEF_H=true
14218 fi
14219
14220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
14221 printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; }
14222 if test ${gl_cv_decl_null_works+y}
14223 then :
14224 printf %s "(cached) " >&6
14225 else case e in #(
14226 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14227 /* end confdefs.h. */
14228 #include <stddef.h>
14229 int test[2 * (sizeof NULL == sizeof (void *)) -1];
14230
14231 int
14232 main (void)
14233 {
14234
14235 ;
14236 return 0;
14237 }
14238 _ACEOF
14239 if ac_fn_c_try_compile "$LINENO"
14240 then :
14241 gl_cv_decl_null_works=yes
14242 else case e in #(
14243 e) gl_cv_decl_null_works=no ;;
14244 esac
14245 fi
14246 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14247 esac
14248 fi
14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
14250 printf "%s\n" "$gl_cv_decl_null_works" >&6; }
14251 if test $gl_cv_decl_null_works = no; then
14252 REPLACE_NULL=1
14253 GL_GENERATE_STDDEF_H=true
14254 fi
14255
14256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unreachable" >&5
14257 printf %s "checking for unreachable... " >&6; }
14258 if test ${gl_cv_func_unreachable+y}
14259 then :
14260 printf %s "(cached) " >&6
14261 else case e in #(
14262 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14263 /* end confdefs.h. */
14264 #include <stddef.h>
14265
14266 int
14267 main (void)
14268 {
14269 unreachable ();
14270
14271 ;
14272 return 0;
14273 }
14274 _ACEOF
14275 if ac_fn_c_try_link "$LINENO"
14276 then :
14277 gl_cv_func_unreachable=yes
14278 else case e in #(
14279 e) gl_cv_func_unreachable=no ;;
14280 esac
14281 fi
14282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14283 conftest$ac_exeext conftest.$ac_ext
14284 ;;
14285 esac
14286 fi
14287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unreachable" >&5
14288 printf "%s\n" "$gl_cv_func_unreachable" >&6; }
14289 if test $gl_cv_func_unreachable = no; then
14290 GL_GENERATE_STDDEF_H=true
14291 fi
14292
14293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether nullptr_t needs <stddef.h>" >&5
14294 printf %s "checking whether nullptr_t needs <stddef.h>... " >&6; }
14295 if test ${gl_cv_nullptr_t_needs_stddef+y}
14296 then :
14297 printf %s "(cached) " >&6
14298 else case e in #(
14299 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14300 /* end confdefs.h. */
14301 nullptr_t x;
14302 _ACEOF
14303 if ac_fn_c_try_compile "$LINENO"
14304 then :
14305 gl_cv_nullptr_t_needs_stddef=no
14306 else case e in #(
14307 e) gl_cv_nullptr_t_needs_stddef=yes ;;
14308 esac
14309 fi
14310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14311 esac
14312 fi
14313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_nullptr_t_needs_stddef" >&5
14314 printf "%s\n" "$gl_cv_nullptr_t_needs_stddef" >&6; }
14315 if test "$gl_cv_nullptr_t_needs_stddef" = no; then
14316 NULLPTR_T_NEEDS_STDDEF=0
14317 GL_GENERATE_STDDEF_H=true
14318 fi
14319
14320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <stddef.h> is idempotent" >&5
14321 printf %s "checking whether <stddef.h> is idempotent... " >&6; }
14322 if test ${gl_cv_stddef_idempotent+y}
14323 then :
14324 printf %s "(cached) " >&6
14325 else case e in #(
14326 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14327 /* end confdefs.h. */
14328
14329 #if __GNUC__ == 13 || __GNUC__ == 14
14330 #error "bug 114870 is present"
14331 #endif
14332
14333 _ACEOF
14334 if ac_fn_c_try_compile "$LINENO"
14335 then :
14336 gl_cv_stddef_idempotent="guessing yes"
14337 else case e in #(
14338 e) gl_cv_stddef_idempotent="guessing no" ;;
14339 esac
14340 fi
14341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14342 ;;
14343 esac
14344 fi
14345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_stddef_idempotent" >&5
14346 printf "%s\n" "$gl_cv_stddef_idempotent" >&6; }
14347 case "$gl_cv_stddef_idempotent" in
14348 *yes) ;;
14349 *) STDDEF_NOT_IDEMPOTENT=1
14350 GL_GENERATE_STDDEF_H=true
14351 ;;
14352 esac
14353
14354 if $GL_GENERATE_STDDEF_H; then
14355
14356
14357
14358
14359
14360
14361
14362
14363 if test $gl_cv_have_include_next = yes; then
14364 gl_cv_next_stddef_h='<'stddef.h'>'
14365 else
14366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
14367 printf %s "checking absolute name of <stddef.h>... " >&6; }
14368 if test ${gl_cv_next_stddef_h+y}
14369 then :
14370 printf %s "(cached) " >&6
14371 else case e in #(
14372 e)
14373
14374
14375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14376 /* end confdefs.h. */
14377 #include <stddef.h>
14378 _ACEOF
14379 case "$host_os" in
14380 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14381 *) gl_absname_cpp="$ac_cpp" ;;
14382 esac
14383
14384 case "$host_os" in
14385 mingw* | windows*)
14386 gl_dirsep_regex='[/\\]'
14387 ;;
14388 *)
14389 gl_dirsep_regex='\/'
14390 ;;
14391 esac
14392 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14393 gl_header_literal_regex=`echo 'stddef.h' \
14394 | sed -e "$gl_make_literal_regex_sed"`
14395 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14396 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14397 s|^/[^/]|//&|
14398 p
14399 q
14400 }'
14401
14402 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14403 sed -n "$gl_absolute_header_sed"`
14404
14405 gl_header=$gl_cv_absolute_stddef_h
14406 gl_cv_next_stddef_h='"'$gl_header'"'
14407
14408 ;;
14409 esac
14410 fi
14411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
14412 printf "%s\n" "$gl_cv_next_stddef_h" >&6; }
14413 fi
14414 NEXT_STDDEF_H=$gl_cv_next_stddef_h
14415
14416 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14417 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14418 gl_next_as_first_directive='<'stddef.h'>'
14419 else
14420 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14421 gl_next_as_first_directive=$gl_cv_next_stddef_h
14422 fi
14423 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
14424
14425
14426
14427
14428 fi
14429
14430
14431
14432
14433
14434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines locale_t" >&5
14435 printf %s "checking whether locale.h defines locale_t... " >&6; }
14436 if test ${gl_cv_header_locale_has_locale_t+y}
14437 then :
14438 printf %s "(cached) " >&6
14439 else case e in #(
14440 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14441 /* end confdefs.h. */
14442 #include <locale.h>
14443 locale_t x;
14444 int
14445 main (void)
14446 {
14447
14448 ;
14449 return 0;
14450 }
14451 _ACEOF
14452 if ac_fn_c_try_compile "$LINENO"
14453 then :
14454 gl_cv_header_locale_has_locale_t=yes
14455 else case e in #(
14456 e) gl_cv_header_locale_has_locale_t=no ;;
14457 esac
14458 fi
14459 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14460 ;;
14461 esac
14462 fi
14463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_locale_t" >&5
14464 printf "%s\n" "$gl_cv_header_locale_has_locale_t" >&6; }
14465
14466
14467 if test $ac_cv_header_xlocale_h = yes; then
14468 HAVE_XLOCALE_H=1
14469 if test $gl_cv_header_locale_has_locale_t = yes; then
14470 gl_cv_header_locale_h_needs_xlocale_h=no
14471 else
14472 gl_cv_header_locale_h_needs_xlocale_h=yes
14473 fi
14474 HAVE_LOCALE_T=1
14475 else
14476 HAVE_XLOCALE_H=0
14477 gl_cv_header_locale_h_needs_xlocale_h=no
14478 if test $gl_cv_header_locale_has_locale_t = yes; then
14479 HAVE_LOCALE_T=1
14480 else
14481 HAVE_LOCALE_T=0
14482 fi
14483 fi
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h defines _locale_t" >&5
14496 printf %s "checking whether locale.h defines _locale_t... " >&6; }
14497 if test ${gl_cv_header_locale_has_windows_locale_t+y}
14498 then :
14499 printf %s "(cached) " >&6
14500 else case e in #(
14501 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14502 /* end confdefs.h. */
14503 #include <locale.h>
14504 _locale_t x;
14505 int
14506 main (void)
14507 {
14508
14509 ;
14510 return 0;
14511 }
14512 _ACEOF
14513 if ac_fn_c_try_compile "$LINENO"
14514 then :
14515 gl_cv_header_locale_has_windows_locale_t=yes
14516 else case e in #(
14517 e) gl_cv_header_locale_has_windows_locale_t=no ;;
14518 esac
14519 fi
14520 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14521 ;;
14522 esac
14523 fi
14524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_has_windows_locale_t" >&5
14525 printf "%s\n" "$gl_cv_header_locale_has_windows_locale_t" >&6; }
14526 if test $gl_cv_header_locale_has_windows_locale_t = yes; then
14527 HAVE_WINDOWS_LOCALE_T=1
14528
14529 printf "%s\n" "#define HAVE_WINDOWS_LOCALE_T 1" >>confdefs.h
14530
14531 else
14532 HAVE_WINDOWS_LOCALE_T=0
14533 fi
14534
14535
14536
14537 case "$host_os" in
14538 solaris*)
14539
14540 printf "%s\n" "#define _LCONV_C99 1" >>confdefs.h
14541
14542 ;;
14543 esac
14544
14545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether locale.h conforms to POSIX:2001" >&5
14546 printf %s "checking whether locale.h conforms to POSIX:2001... " >&6; }
14547 if test ${gl_cv_header_locale_h_posix2001+y}
14548 then :
14549 printf %s "(cached) " >&6
14550 else case e in #(
14551 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14552 /* end confdefs.h. */
14553 #include <locale.h>
14554 int x = LC_MESSAGES;
14555 int y = sizeof (((struct lconv *) 0)->decimal_point);
14556 int
14557 main (void)
14558 {
14559
14560 ;
14561 return 0;
14562 }
14563 _ACEOF
14564 if ac_fn_c_try_compile "$LINENO"
14565 then :
14566 gl_cv_header_locale_h_posix2001=yes
14567 else case e in #(
14568 e) gl_cv_header_locale_h_posix2001=no ;;
14569 esac
14570 fi
14571 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14572 esac
14573 fi
14574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_locale_h_posix2001" >&5
14575 printf "%s\n" "$gl_cv_header_locale_h_posix2001" >&6; }
14576
14577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct lconv is properly defined" >&5
14578 printf %s "checking whether struct lconv is properly defined... " >&6; }
14579 if test ${gl_cv_sys_struct_lconv_ok+y}
14580 then :
14581 printf %s "(cached) " >&6
14582 else case e in #(
14583 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14584 /* end confdefs.h. */
14585 #include <locale.h>
14586 struct lconv l;
14587 int x = sizeof (l.decimal_point);
14588 int y = sizeof (l.int_p_cs_precedes);
14589 int
14590 main (void)
14591 {
14592
14593 ;
14594 return 0;
14595 }
14596 _ACEOF
14597 if ac_fn_c_try_compile "$LINENO"
14598 then :
14599 gl_cv_sys_struct_lconv_ok=yes
14600 else case e in #(
14601 e) gl_cv_sys_struct_lconv_ok=no ;;
14602 esac
14603 fi
14604 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14605 ;;
14606 esac
14607 fi
14608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_lconv_ok" >&5
14609 printf "%s\n" "$gl_cv_sys_struct_lconv_ok" >&6; }
14610 if test $gl_cv_sys_struct_lconv_ok = no; then
14611 case "$host_os" in
14612 windows*-msvc*)
14613 ;;
14614 mingw* | windows*)
14615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14616 /* end confdefs.h. */
14617
14618 #ifdef _MSC_VER
14619 Special
14620 #endif
14621
14622 _ACEOF
14623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14624 $EGREP_TRADITIONAL "Special" >/dev/null 2>&1
14625 then :
14626
14627 else case e in #(
14628 e) REPLACE_STRUCT_LCONV=1 ;;
14629 esac
14630 fi
14631 rm -rf conftest*
14632
14633 ;;
14634 *) REPLACE_STRUCT_LCONV=1 ;;
14635 esac
14636 fi
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646 if test $gl_cv_have_include_next = yes; then
14647 gl_cv_next_locale_h='<'locale.h'>'
14648 else
14649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <locale.h>" >&5
14650 printf %s "checking absolute name of <locale.h>... " >&6; }
14651 if test ${gl_cv_next_locale_h+y}
14652 then :
14653 printf %s "(cached) " >&6
14654 else case e in #(
14655 e)
14656
14657
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14660 #include <locale.h>
14661 _ACEOF
14662 case "$host_os" in
14663 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14664 *) gl_absname_cpp="$ac_cpp" ;;
14665 esac
14666
14667 case "$host_os" in
14668 mingw* | windows*)
14669 gl_dirsep_regex='[/\\]'
14670 ;;
14671 *)
14672 gl_dirsep_regex='\/'
14673 ;;
14674 esac
14675 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14676 gl_header_literal_regex=`echo 'locale.h' \
14677 | sed -e "$gl_make_literal_regex_sed"`
14678 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14679 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14680 s|^/[^/]|//&|
14681 p
14682 q
14683 }'
14684
14685 gl_cv_absolute_locale_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14686 sed -n "$gl_absolute_header_sed"`
14687
14688 gl_header=$gl_cv_absolute_locale_h
14689 gl_cv_next_locale_h='"'$gl_header'"'
14690
14691 ;;
14692 esac
14693 fi
14694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_locale_h" >&5
14695 printf "%s\n" "$gl_cv_next_locale_h" >&6; }
14696 fi
14697 NEXT_LOCALE_H=$gl_cv_next_locale_h
14698
14699 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14700 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14701 gl_next_as_first_directive='<'locale.h'>'
14702 else
14703 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14704 gl_next_as_first_directive=$gl_cv_next_locale_h
14705 fi
14706 NEXT_AS_FIRST_DIRECTIVE_LOCALE_H=$gl_next_as_first_directive
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718 GL_GNULIB_LOCALECONV=0
14719
14720
14721
14722 GL_GNULIB_SETLOCALE=0
14723
14724
14725
14726 GL_GNULIB_SETLOCALE_NULL=0
14727
14728
14729
14730 GL_GNULIB_NEWLOCALE=0
14731
14732
14733
14734 GL_GNULIB_DUPLOCALE=0
14735
14736
14737
14738 GL_GNULIB_FREELOCALE=0
14739
14740
14741
14742 GL_GNULIB_GETLOCALENAME_L=0
14743
14744
14745
14746 GL_GNULIB_GETLOCALENAME_L_UNSAFE=0
14747
14748
14749
14750 GL_GNULIB_LOCALENAME_UNSAFE=0
14751
14752
14753
14754
14755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5
14756 printf %s "checking whether malloc is ptrdiff_t safe... " >&6; }
14757 if test ${gl_cv_malloc_ptrdiff+y}
14758 then :
14759 printf %s "(cached) " >&6
14760 else case e in #(
14761 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14762 /* end confdefs.h. */
14763 #include <stdint.h>
14764
14765 int
14766 main (void)
14767 {
14768 /* 64-bit ptrdiff_t is so wide that no practical platform
14769 can exceed it. */
14770 #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0)
14771
14772 /* On rare machines where size_t fits in ptrdiff_t there
14773 is no problem. */
14774 #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX)
14775
14776 /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t
14777 bounds even on 32-bit platforms. We don't know which
14778 non-glibc systems are safe. */
14779 #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__))
14780
14781 #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE
14782 return 0;
14783 #else
14784 #error "malloc might not be ptrdiff_t safe"
14785 syntax error
14786 #endif
14787
14788 ;
14789 return 0;
14790 }
14791 _ACEOF
14792 if ac_fn_c_try_compile "$LINENO"
14793 then :
14794 gl_cv_malloc_ptrdiff=yes
14795 else case e in #(
14796 e) gl_cv_malloc_ptrdiff=no ;;
14797 esac
14798 fi
14799 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14800 ;;
14801 esac
14802 fi
14803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5
14804 printf "%s\n" "$gl_cv_malloc_ptrdiff" >&6; }
14805
14806
14807
14808
14809 if test "$gl_cv_malloc_ptrdiff" = yes
14810 then :
14811
14812 printf "%s\n" "#define HAVE_MALLOC_PTRDIFF 1" >>confdefs.h
14813
14814 else case e in #(
14815 e) REPLACE_MALLOC_FOR_MALLOC_POSIX=1 ;;
14816 esac
14817 fi
14818
14819
14820
14821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5
14822 printf %s "checking whether malloc, realloc, calloc set errno on failure... " >&6; }
14823 if test ${gl_cv_func_malloc_posix+y}
14824 then :
14825 printf %s "(cached) " >&6
14826 else case e in #(
14827 e)
14828 case "$host_os" in
14829 mingw* | windows*)
14830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14831 /* end confdefs.h. */
14832 #include <stdio.h>
14833 #ifndef _UCRT
14834 msvcrt yuck
14835 #endif
14836
14837 int
14838 main (void)
14839 {
14840
14841 ;
14842 return 0;
14843 }
14844
14845 _ACEOF
14846 if ac_fn_c_try_compile "$LINENO"
14847 then :
14848 gl_cv_func_malloc_posix="guessing yes"
14849 else case e in #(
14850 e) gl_cv_func_malloc_posix="guessing no" ;;
14851 esac
14852 fi
14853 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14854 ;;
14855 irix* | solaris*)
14856
14857 gl_cv_func_malloc_posix=no ;;
14858 *)
14859 gl_cv_func_malloc_posix=yes ;;
14860 esac
14861 ;;
14862 esac
14863 fi
14864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
14865 printf "%s\n" "$gl_cv_func_malloc_posix" >&6; }
14866
14867
14868
14869
14870
14871 case "$gl_cv_func_malloc_posix" in
14872 *yes)
14873
14874 printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
14875
14876 ;;
14877 *)
14878 REPLACE_MALLOC_FOR_MALLOC_POSIX=1
14879 ;;
14880 esac
14881
14882
14883
14884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
14885 printf %s "checking whether malloc (0) returns nonnull... " >&6; }
14886 if test ${ac_cv_func_malloc_0_nonnull+y}
14887 then :
14888 printf %s "(cached) " >&6
14889 else case e in #(
14890 e) if test "$cross_compiling" = yes
14891 then :
14892 case $host_os in #(
14893 # Guess yes on platforms where we know the result.
14894 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
14895 | gnu* | *-musl* | midipix* | midnightbsd* \
14896 | hpux* | solaris* | cygwin* | mingw* | windows* | msys*) :
14897 ac_cv_func_malloc_0_nonnull="guessing yes" ;; #(
14898 *) :
14899 # Guess as follows if we don't know.
14900 ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
14901 esac
14902 else case e in #(
14903 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14904 /* end confdefs.h. */
14905 #include <stdlib.h>
14906 /* Use pmalloc to test; 'volatile' prevents the compiler
14907 from optimizing the malloc call away. */
14908 void *(*volatile pmalloc) (size_t) = malloc;
14909 int
14910 main (void)
14911 {
14912 void *p = pmalloc (0);
14913 int result = !p;
14914 free (p);
14915 return result;
14916 ;
14917 return 0;
14918 }
14919 _ACEOF
14920 if ac_fn_c_try_run "$LINENO"
14921 then :
14922 ac_cv_func_malloc_0_nonnull=yes
14923 else case e in #(
14924 e) ac_cv_func_malloc_0_nonnull=no ;;
14925 esac
14926 fi
14927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14928 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
14929 esac
14930 fi
14931 ;;
14932 esac
14933 fi
14934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
14935 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
14936 case $ac_cv_func_malloc_0_nonnull in #(
14937 *yes) :
14938
14939 printf "%s\n" "#define HAVE_MALLOC_0_NONNULL 1" >>confdefs.h
14940 ;; #(
14941 *) :
14942 ;;
14943 esac
14944
14945
14946
14947
14948
14949
14950
14951 case $ac_cv_func_malloc_0_nonnull in #(
14952 *yes) :
14953 REPLACE_MALLOC_FOR_MALLOC_GNU=$REPLACE_MALLOC_FOR_MALLOC_POSIX ;; #(
14954 *) :
14955 REPLACE_MALLOC_FOR_MALLOC_GNU=1 ;;
14956 esac
14957
14958
14959 HAVE_MBSLEN=0;
14960 HAVE_EXPLICIT_BZERO=1;
14961 HAVE_FFSL=1;
14962 HAVE_FFSLL=1;
14963 HAVE_DECL_MEMMEM=1;
14964 HAVE_MEMPCPY=1;
14965 HAVE_MEMSET_EXPLICIT=1;
14966 HAVE_DECL_MEMRCHR=1;
14967 HAVE_RAWMEMCHR=1;
14968 HAVE_STPCPY=1;
14969 HAVE_STPNCPY=1;
14970 HAVE_STRCHRNUL=1;
14971 HAVE_DECL_STRDUP=1;
14972 HAVE_DECL_STRNDUP=1;
14973 HAVE_DECL_STRNLEN=1;
14974 HAVE_STRPBRK=1;
14975 HAVE_STRSEP=1;
14976 HAVE_STRCASESTR=1;
14977 HAVE_DECL_STRTOK_R=1;
14978 HAVE_DECL_STRERROR_R=1;
14979 HAVE_STRERROR_L=1;
14980 HAVE_STRERRORNAME_NP=1;
14981 HAVE_SIGABBREV_NP=1;
14982 HAVE_SIGDESCR_NP=1;
14983 HAVE_DECL_STRSIGNAL=1;
14984 HAVE_STRVERSCMP=1;
14985 REPLACE_FFSLL=0;
14986 REPLACE_MEMCHR=0;
14987 REPLACE_MEMMEM=0;
14988 REPLACE_MEMPCPY=0;
14989 REPLACE_MEMSET_EXPLICIT=0;
14990 REPLACE_STPCPY=0;
14991 REPLACE_STPNCPY=0;
14992 REPLACE_STRCHRNUL=0;
14993 REPLACE_STRDUP=0;
14994 REPLACE_STRNCAT=0;
14995 REPLACE_STRNDUP=0;
14996 REPLACE_STRNLEN=0;
14997 REPLACE_STRSTR=0;
14998 REPLACE_STRCASESTR=0;
14999 REPLACE_STRTOK_R=0;
15000 REPLACE_STRERROR=0;
15001 REPLACE_STRERROR_R=0;
15002 REPLACE_STRERROR_L=0;
15003 REPLACE_STRERRORNAME_NP=0;
15004 REPLACE_STRSIGNAL=0;
15005 REPLACE_STRVERSCMP=0;
15006 UNDEFINE_STRTOK_R=0;
15007
15008
15009
15010
15011 GL_GNULIB_EXPLICIT_BZERO=0
15012
15013
15014
15015 GL_GNULIB_FFSL=0
15016
15017
15018
15019 GL_GNULIB_FFSLL=0
15020
15021
15022
15023 GL_GNULIB_MEMCHR=0
15024
15025
15026
15027 GL_GNULIB_MEMMEM=0
15028
15029
15030
15031 GL_GNULIB_MEMPCPY=0
15032
15033
15034
15035 GL_GNULIB_MEMRCHR=0
15036
15037
15038
15039 GL_GNULIB_MEMSET_EXPLICIT=0
15040
15041
15042
15043 GL_GNULIB_RAWMEMCHR=0
15044
15045
15046
15047 GL_GNULIB_STPCPY=0
15048
15049
15050
15051 GL_GNULIB_STPNCPY=0
15052
15053
15054
15055 GL_GNULIB_STRCHRNUL=0
15056
15057
15058
15059 GL_GNULIB_STRDUP=0
15060
15061
15062
15063 GL_GNULIB_STRNCAT=0
15064
15065
15066
15067 GL_GNULIB_STRNDUP=0
15068
15069
15070
15071 GL_GNULIB_STRNLEN=0
15072
15073
15074
15075 GL_GNULIB_STRPBRK=0
15076
15077
15078
15079 GL_GNULIB_STRSEP=0
15080
15081
15082
15083 GL_GNULIB_STRSTR=0
15084
15085
15086
15087 GL_GNULIB_STRCASESTR=0
15088
15089
15090
15091 GL_GNULIB_STRTOK_R=0
15092
15093
15094
15095 GL_GNULIB_STR_STARTSWITH=0
15096
15097
15098
15099 GL_GNULIB_STR_ENDSWITH=0
15100
15101
15102
15103 GL_GNULIB_MBSLEN=0
15104
15105
15106
15107 GL_GNULIB_MBSNLEN=0
15108
15109
15110
15111 GL_GNULIB_MBSCHR=0
15112
15113
15114
15115 GL_GNULIB_MBSRCHR=0
15116
15117
15118
15119 GL_GNULIB_MBSSTR=0
15120
15121
15122
15123 GL_GNULIB_MBSCASECMP=0
15124
15125
15126
15127 GL_GNULIB_MBSNCASECMP=0
15128
15129
15130
15131 GL_GNULIB_MBSPCASECMP=0
15132
15133
15134
15135 GL_GNULIB_MBSCASESTR=0
15136
15137
15138
15139 GL_GNULIB_MBSCSPN=0
15140
15141
15142
15143 GL_GNULIB_MBSPBRK=0
15144
15145
15146
15147 GL_GNULIB_MBSSPN=0
15148
15149
15150
15151 GL_GNULIB_MBSSEP=0
15152
15153
15154
15155 GL_GNULIB_MBSTOK_R=0
15156
15157
15158
15159 GL_GNULIB_MBS_STARTSWITH=0
15160
15161
15162
15163 GL_GNULIB_MBS_ENDSWITH=0
15164
15165
15166
15167 GL_GNULIB_STRERROR=0
15168
15169
15170
15171 GL_GNULIB_STRERROR_R=0
15172
15173
15174
15175 GL_GNULIB_STRERROR_L=0
15176
15177
15178
15179 GL_GNULIB_STRERRORNAME_NP=0
15180
15181
15182
15183 GL_GNULIB_SIGABBREV_NP=0
15184
15185
15186
15187 GL_GNULIB_SIGDESCR_NP=0
15188
15189
15190
15191 GL_GNULIB_STRSIGNAL=0
15192
15193
15194
15195 GL_GNULIB_STRVERSCMP=0
15196
15197
15198
15199 GL_GNULIB_MDA_MEMCCPY=1
15200
15201
15202
15203 GL_GNULIB_MDA_STRDUP=1
15204
15205
15206
15207
15208
15209
15210
15211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
15212 printf %s "checking for O_CLOEXEC... " >&6; }
15213 if test ${gl_cv_macro_O_CLOEXEC+y}
15214 then :
15215 printf %s "(cached) " >&6
15216 else case e in #(
15217 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15218 /* end confdefs.h. */
15219 #include <fcntl.h>
15220 #ifndef O_CLOEXEC
15221 choke me;
15222 #endif
15223
15224 int
15225 main (void)
15226 {
15227 return O_CLOEXEC;
15228 ;
15229 return 0;
15230 }
15231 _ACEOF
15232 if ac_fn_c_try_compile "$LINENO"
15233 then :
15234 gl_cv_macro_O_CLOEXEC=yes
15235 else case e in #(
15236 e) gl_cv_macro_O_CLOEXEC=no ;;
15237 esac
15238 fi
15239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15240 esac
15241 fi
15242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
15243 printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; }
15244
15245
15246
15247
15248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
15249 printf %s "checking for promoted mode_t type... " >&6; }
15250 if test ${gl_cv_promoted_mode_t+y}
15251 then :
15252 printf %s "(cached) " >&6
15253 else case e in #(
15254 e)
15255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15256 /* end confdefs.h. */
15257 #include <sys/types.h>
15258 int
15259 main (void)
15260 {
15261 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
15262 ;
15263 return 0;
15264 }
15265 _ACEOF
15266 if ac_fn_c_try_compile "$LINENO"
15267 then :
15268 gl_cv_promoted_mode_t='int'
15269 else case e in #(
15270 e) gl_cv_promoted_mode_t='mode_t' ;;
15271 esac
15272 fi
15273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15274 ;;
15275 esac
15276 fi
15277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
15278 printf "%s\n" "$gl_cv_promoted_mode_t" >&6; }
15279
15280 printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h
15281
15282
15283
15284
15285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realloc should abort upon undefined behaviour" >&5
15286 printf %s "checking whether realloc should abort upon undefined behaviour... " >&6; }
15287 if test ${gl_cv_func_realloc_sanitize+y}
15288 then :
15289 printf %s "(cached) " >&6
15290 else case e in #(
15291 e) test -n "$gl_cv_func_realloc_sanitize" || gl_cv_func_realloc_sanitize=no ;;
15292 esac
15293 fi
15294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realloc_sanitize" >&5
15295 printf "%s\n" "$gl_cv_func_realloc_sanitize" >&6; }
15296
15297
15298
15299
15300
15301 ac_fn_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15302 if test "x$ac_cv_have_decl_fcloseall" = xyes
15303 then :
15304 ac_have_decl=1
15305 else case e in #(
15306 e) ac_have_decl=0 ;;
15307 esac
15308 fi
15309 printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h
15310
15311 ac_fn_check_decl "$LINENO" "getw" "ac_cv_have_decl_getw" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15312 if test "x$ac_cv_have_decl_getw" = xyes
15313 then :
15314 ac_have_decl=1
15315 else case e in #(
15316 e) ac_have_decl=0 ;;
15317 esac
15318 fi
15319 printf "%s\n" "#define HAVE_DECL_GETW $ac_have_decl" >>confdefs.h
15320
15321 ac_fn_check_decl "$LINENO" "putw" "ac_cv_have_decl_putw" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15322 if test "x$ac_cv_have_decl_putw" = xyes
15323 then :
15324 ac_have_decl=1
15325 else case e in #(
15326 e) ac_have_decl=0 ;;
15327 esac
15328 fi
15329 printf "%s\n" "#define HAVE_DECL_PUTW $ac_have_decl" >>confdefs.h
15330
15331
15332
15333
15334
15335
15336
15337
15338
15339
15340
15341 if test $gl_cv_have_include_next = yes; then
15342 gl_cv_next_stdio_h='<'stdio.h'>'
15343 else
15344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
15345 printf %s "checking absolute name of <stdio.h>... " >&6; }
15346 if test ${gl_cv_next_stdio_h+y}
15347 then :
15348 printf %s "(cached) " >&6
15349 else case e in #(
15350 e)
15351
15352
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15355 #include <stdio.h>
15356 _ACEOF
15357 case "$host_os" in
15358 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15359 *) gl_absname_cpp="$ac_cpp" ;;
15360 esac
15361
15362 case "$host_os" in
15363 mingw* | windows*)
15364 gl_dirsep_regex='[/\\]'
15365 ;;
15366 *)
15367 gl_dirsep_regex='\/'
15368 ;;
15369 esac
15370 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15371 gl_header_literal_regex=`echo 'stdio.h' \
15372 | sed -e "$gl_make_literal_regex_sed"`
15373 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15374 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15375 s|^/[^/]|//&|
15376 p
15377 q
15378 }'
15379
15380 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15381 sed -n "$gl_absolute_header_sed"`
15382
15383 gl_header=$gl_cv_absolute_stdio_h
15384 gl_cv_next_stdio_h='"'$gl_header'"'
15385
15386 ;;
15387 esac
15388 fi
15389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
15390 printf "%s\n" "$gl_cv_next_stdio_h" >&6; }
15391 fi
15392 NEXT_STDIO_H=$gl_cv_next_stdio_h
15393
15394 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15395 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15396 gl_next_as_first_directive='<'stdio.h'>'
15397 else
15398 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15399 gl_next_as_first_directive=$gl_cv_next_stdio_h
15400 fi
15401 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
15402
15403
15404
15405
15406
15407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
15408 printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; }
15409 if test ${gl_cv_func_printf_attribute_flavor+y}
15410 then :
15411 printf %s "(cached) " >&6
15412 else case e in #(
15413 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15414 /* end confdefs.h. */
15415
15416 #define __STDC_FORMAT_MACROS 1
15417 #include <stdio.h>
15418 #include <inttypes.h>
15419 /* For non-mingw systems, compilation will trivially succeed.
15420 For mingw, compilation will succeed for older mingw (system
15421 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
15422 #if (defined _WIN32 && ! defined __CYGWIN__) && \
15423 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
15424 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
15425 #endif
15426
15427 int
15428 main (void)
15429 {
15430
15431 ;
15432 return 0;
15433 }
15434 _ACEOF
15435 if ac_fn_c_try_compile "$LINENO"
15436 then :
15437 gl_cv_func_printf_attribute_flavor=system
15438 else case e in #(
15439 e) gl_cv_func_printf_attribute_flavor=gnu ;;
15440 esac
15441 fi
15442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15443 esac
15444 fi
15445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
15446 printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; }
15447 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
15448
15449 printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
15450
15451 fi
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467 if test $ac_cv_have_decl_fcloseall = no; then
15468 HAVE_DECL_FCLOSEALL=0
15469 fi
15470
15471
15472 if test $ac_cv_have_decl_getw = no; then
15473 HAVE_DECL_GETW=0
15474 fi
15475
15476
15477 if test $ac_cv_have_decl_putw = no; then
15478 HAVE_DECL_PUTW=0
15479 fi
15480
15481
15482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
15483 printf %s "checking for nl_langinfo and CODESET... " >&6; }
15484 if test ${am_cv_langinfo_codeset+y}
15485 then :
15486 printf %s "(cached) " >&6
15487 else case e in #(
15488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15489 /* end confdefs.h. */
15490 #include <langinfo.h>
15491 int
15492 main (void)
15493 {
15494 char* cs = nl_langinfo(CODESET); return !cs;
15495 ;
15496 return 0;
15497 }
15498 _ACEOF
15499 if ac_fn_c_try_link "$LINENO"
15500 then :
15501 am_cv_langinfo_codeset=yes
15502 else case e in #(
15503 e) am_cv_langinfo_codeset=no ;;
15504 esac
15505 fi
15506 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15507 conftest$ac_exeext conftest.$ac_ext
15508 ;;
15509 esac
15510 fi
15511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
15512 printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
15513 if test $am_cv_langinfo_codeset = yes; then
15514
15515 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
15516
15517 fi
15518
15519
15520
15521
15522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an english Unicode locale" >&5
15523 printf %s "checking for an english Unicode locale... " >&6; }
15524 if test ${gt_cv_locale_en_utf8+y}
15525 then :
15526 printf %s "(cached) " >&6
15527 else case e in #(
15528 e)
15529 case "$host_os" in
15530 *-musl* | midipix*)
15531 gt_cv_locale_en_utf8=en_US.UTF-8
15532 ;;
15533 *)
15534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15535 /* end confdefs.h. */
15536
15537 #include <locale.h>
15538 #include <time.h>
15539 #if HAVE_LANGINFO_CODESET
15540 # include <langinfo.h>
15541 #endif
15542 #include <stdlib.h>
15543 #include <string.h>
15544 struct tm t;
15545 char buf[16];
15546 int main () {
15547 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
15548 imitates locale dependent behaviour by looking at the environment
15549 variables, and all locales use the UTF-8 encoding. */
15550 #if !(defined __BEOS__ || defined __HAIKU__)
15551 /* Check whether the given locale name is recognized by the system. */
15552 # if defined _WIN32 && !defined __CYGWIN__
15553 /* On native Windows, setlocale(category, "") looks at the system settings,
15554 not at the environment variables. Also, when an encoding suffix such
15555 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
15556 category of the locale to "C". */
15557 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
15558 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
15559 return 1;
15560 # else
15561 if (setlocale (LC_ALL, "") == NULL) return 1;
15562 # endif
15563 /* Check whether nl_langinfo(CODESET) is "UTF-8" or equivalent. */
15564 # if HAVE_LANGINFO_CODESET
15565 {
15566 const char *cs = nl_langinfo (CODESET);
15567 if (!(strcmp (cs, "UTF-8") == 0 || strcmp (cs, "UTF8") == 0
15568 || strcmp (cs, "utf-8") == 0 || strcmp (cs, "utf8") == 0))
15569 return 1;
15570 }
15571 # endif
15572 # ifdef __CYGWIN__
15573 /* On Cygwin, avoid locale names without encoding suffix, because the
15574 locale_charset() function relies on the encoding suffix. Note that
15575 LC_ALL is set on the command line. */
15576 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
15577 # endif
15578 /* Check the third month name. */
15579 t.tm_year = 1975 - 1900; t.tm_mon = 3 - 1; t.tm_mday = 24;
15580 if (strftime (buf, sizeof (buf), "%B", &t) < 5 || strcmp (buf, "March") != 0)
15581 return 1;
15582 #endif
15583 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
15584 /* Check whether the decimal separator is a dot. */
15585 if (localeconv () ->decimal_point[0] != '.') return 1;
15586 #endif
15587 return 0;
15588 }
15589
15590 _ACEOF
15591 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15592 (eval $ac_link) 2>&5
15593 ac_status=$?
15594 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15595 test $ac_status = 0; } && test -s conftest$ac_exeext; then
15596 case "$host_os" in
15597 # Handle native Windows specially, because there setlocale() interprets
15598 # "ar" or "ara" as "Arabic" or "Arabic_Saudi Arabia.1256",
15599 # "en" or "eng" as "English" or "English_United States.1252",
15600 # "fr" or "fra" as "French" or "French_France.1252",
15601 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
15602 # "ja" or "jpn" as "Japanese" or "Japanese_Japan.932",
15603 # and similar.
15604 mingw* | windows*)
15605 # Test for the hypothetical native Windows locale name.
15606 if (LC_ALL='English_United States.65001' LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15607 gt_cv_locale_en_utf8='English_United States.65001'
15608 else
15609 # None found.
15610 gt_cv_locale_en_utf8=none
15611 fi
15612 ;;
15613 *)
15614 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
15615 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
15616 # configure script would override the LC_ALL setting. Likewise for
15617 # LC_CTYPE, which is also set at the beginning of the configure script.
15618 # Test for the locale name with explicit encoding suffix first
15619 # (this is necessary on Haiku).
15620 if (LC_ALL=en_US.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15621 gt_cv_locale_en_utf8=en_US.UTF-8
15622 else
15623 # Test for the locale name without encoding suffix.
15624 if (LC_ALL=en_US LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15625 gt_cv_locale_en_utf8=en_US
15626 else
15627 # Test for the Solaris 10 locale name.
15628 if (LC_ALL=en.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
15629 gt_cv_locale_en_utf8=en.UTF-8
15630 else
15631 # None found.
15632 gt_cv_locale_en_utf8=none
15633 fi
15634 fi
15635 fi
15636 ;;
15637 esac
15638 fi
15639 rm -fr conftest*
15640 ;;
15641 esac
15642 ;;
15643 esac
15644 fi
15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_en_utf8" >&5
15646 printf "%s\n" "$gt_cv_locale_en_utf8" >&6; }
15647 LOCALE_EN_UTF8="$gt_cv_locale_en_utf8"
15648 case "$LOCALE_EN_UTF8" in #(
15649 '' | *[\"\$\'*[]*)
15650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid locale \"$LOCALE_EN_UTF8\"; assuming \"none\"" >&5
15651 printf "%s\n" "$as_me: WARNING: invalid locale \"$LOCALE_EN_UTF8\"; assuming \"none\"" >&2;}
15652 LOCALE_EN_UTF8=none;;
15653 esac
15654
15655
15656 ac_fn_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15657 if test "x$ac_cv_have_decl_ecvt" = xyes
15658 then :
15659 ac_have_decl=1
15660 else case e in #(
15661 e) ac_have_decl=0 ;;
15662 esac
15663 fi
15664 printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h
15665
15666 ac_fn_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15667 if test "x$ac_cv_have_decl_fcvt" = xyes
15668 then :
15669 ac_have_decl=1
15670 else case e in #(
15671 e) ac_have_decl=0 ;;
15672 esac
15673 fi
15674 printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h
15675
15676 ac_fn_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
15677 if test "x$ac_cv_have_decl_gcvt" = xyes
15678 then :
15679 ac_have_decl=1
15680 else case e in #(
15681 e) ac_have_decl=0 ;;
15682 esac
15683 fi
15684 printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696 if test $gl_cv_have_include_next = yes; then
15697 gl_cv_next_stdlib_h='<'stdlib.h'>'
15698 else
15699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
15700 printf %s "checking absolute name of <stdlib.h>... " >&6; }
15701 if test ${gl_cv_next_stdlib_h+y}
15702 then :
15703 printf %s "(cached) " >&6
15704 else case e in #(
15705 e)
15706
15707
15708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15709 /* end confdefs.h. */
15710 #include <stdlib.h>
15711 _ACEOF
15712 case "$host_os" in
15713 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15714 *) gl_absname_cpp="$ac_cpp" ;;
15715 esac
15716
15717 case "$host_os" in
15718 mingw* | windows*)
15719 gl_dirsep_regex='[/\\]'
15720 ;;
15721 *)
15722 gl_dirsep_regex='\/'
15723 ;;
15724 esac
15725 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15726 gl_header_literal_regex=`echo 'stdlib.h' \
15727 | sed -e "$gl_make_literal_regex_sed"`
15728 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15729 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15730 s|^/[^/]|//&|
15731 p
15732 q
15733 }'
15734
15735 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15736 sed -n "$gl_absolute_header_sed"`
15737
15738 gl_header=$gl_cv_absolute_stdlib_h
15739 gl_cv_next_stdlib_h='"'$gl_header'"'
15740
15741 ;;
15742 esac
15743 fi
15744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
15745 printf "%s\n" "$gl_cv_next_stdlib_h" >&6; }
15746 fi
15747 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
15748
15749 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15750 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15751 gl_next_as_first_directive='<'stdlib.h'>'
15752 else
15753 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15754 gl_next_as_first_directive=$gl_cv_next_stdlib_h
15755 fi
15756 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MB_CUR_MAX is correct" >&5
15771 printf %s "checking whether MB_CUR_MAX is correct... " >&6; }
15772 if test ${gl_cv_macro_MB_CUR_MAX_good+y}
15773 then :
15774 printf %s "(cached) " >&6
15775 else case e in #(
15776 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15778 #include <stdlib.h>
15779
15780 int
15781 main (void)
15782 {
15783 return !!MB_CUR_MAX;
15784 ;
15785 return 0;
15786 }
15787
15788 _ACEOF
15789 if ac_fn_c_try_link "$LINENO"
15790 then :
15791 # Guess no on Solaris and Haiku, yes otherwise.
15792 case $host_os in #(
15793 solaris* | haiku*) :
15794 gl_cv_macro_MB_CUR_MAX_good="guessing no" ;; #(
15795 *) :
15796 gl_cv_macro_MB_CUR_MAX_good="guessing yes" ;;
15797 esac
15798 if test "$LOCALE_EN_UTF8" != none; then
15799 if test "$cross_compiling" = yes
15800 then :
15801 :
15802 else case e in #(
15803 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15804 /* end confdefs.h. */
15805
15806 #include <locale.h>
15807 #include <stdlib.h>
15808 int main ()
15809 {
15810 int result = 0;
15811 if (setlocale (LC_ALL, "$LOCALE_EN_UTF8") != NULL)
15812 {
15813 if (MB_CUR_MAX < 4)
15814 result |= 1;
15815 }
15816 return result;
15817 }
15818 _ACEOF
15819 if ac_fn_c_try_run "$LINENO"
15820 then :
15821 gl_cv_macro_MB_CUR_MAX_good=yes
15822 else case e in #(
15823 e) gl_cv_macro_MB_CUR_MAX_good=no ;;
15824 esac
15825 fi
15826 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15827 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15828 esac
15829 fi
15830
15831 fi
15832
15833 else case e in #(
15834 e) gl_cv_macro_MB_CUR_MAX_good="link failed - so no" ;;
15835 esac
15836 fi
15837 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15838 conftest$ac_exeext conftest.$ac_ext
15839 ;;
15840 esac
15841 fi
15842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_MB_CUR_MAX_good" >&5
15843 printf "%s\n" "$gl_cv_macro_MB_CUR_MAX_good" >&6; }
15844 case $gl_cv_macro_MB_CUR_MAX_good in #(
15845 *yes) :
15846 ;; #(
15847 "link failed - so no") :
15848 # 4 suffices as a workaround in Android NDK 16,
15849 # the only known platform with the bug.
15850 REPLACE_MB_CUR_MAX=4 ;; #(
15851 *) :
15852 REPLACE_MB_CUR_MAX="(-1)" ;;
15853 esac
15854
15855
15856 if test $ac_cv_have_decl_ecvt = no; then
15857 HAVE_DECL_ECVT=0
15858 fi
15859
15860 if test $ac_cv_have_decl_fcvt = no; then
15861 HAVE_DECL_FCVT=0
15862 fi
15863
15864 if test $ac_cv_have_decl_gcvt = no; then
15865 HAVE_DECL_GCVT=0
15866 fi
15867
15868
15869 REPLACE_STRERROR_0=0
15870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
15871 printf %s "checking whether strerror(0) succeeds... " >&6; }
15872 if test ${gl_cv_func_strerror_0_works+y}
15873 then :
15874 printf %s "(cached) " >&6
15875 else case e in #(
15876 e) if test "$cross_compiling" = yes
15877 then :
15878 case "$host_os" in
15879 # Guess yes on glibc systems.
15880 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
15881 # Guess yes on musl systems.
15882 *-musl* | midipix*) gl_cv_func_strerror_0_works="guessing yes" ;;
15883 # Guess yes on native Windows.
15884 mingw* | windows*) gl_cv_func_strerror_0_works="guessing yes" ;;
15885 # If we don't know, obey --enable-cross-guesses.
15886 *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
15887 esac
15888
15889 else case e in #(
15890 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15892 #include <string.h>
15893 #include <errno.h>
15894
15895 int
15896 main (void)
15897 {
15898 int result = 0;
15899 char *str;
15900 errno = 0;
15901 str = strerror (0);
15902 if (!*str) result |= 1;
15903 if (errno) result |= 2;
15904 if (strstr (str, "nknown") || strstr (str, "ndefined"))
15905 result |= 4;
15906 return result;
15907 ;
15908 return 0;
15909 }
15910 _ACEOF
15911 if ac_fn_c_try_run "$LINENO"
15912 then :
15913 gl_cv_func_strerror_0_works=yes
15914 else case e in #(
15915 e) gl_cv_func_strerror_0_works=no ;;
15916 esac
15917 fi
15918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15919 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
15920 esac
15921 fi
15922
15923 ;;
15924 esac
15925 fi
15926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
15927 printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; }
15928 case "$gl_cv_func_strerror_0_works" in
15929 *yes) ;;
15930 *)
15931 REPLACE_STRERROR_0=1
15932
15933 printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h
15934
15935 ;;
15936 esac
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948 if test $gl_cv_have_include_next = yes; then
15949 gl_cv_next_string_h='<'string.h'>'
15950 else
15951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
15952 printf %s "checking absolute name of <string.h>... " >&6; }
15953 if test ${gl_cv_next_string_h+y}
15954 then :
15955 printf %s "(cached) " >&6
15956 else case e in #(
15957 e)
15958
15959
15960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15961 /* end confdefs.h. */
15962 #include <string.h>
15963 _ACEOF
15964 case "$host_os" in
15965 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15966 *) gl_absname_cpp="$ac_cpp" ;;
15967 esac
15968
15969 case "$host_os" in
15970 mingw* | windows*)
15971 gl_dirsep_regex='[/\\]'
15972 ;;
15973 *)
15974 gl_dirsep_regex='\/'
15975 ;;
15976 esac
15977 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15978 gl_header_literal_regex=`echo 'string.h' \
15979 | sed -e "$gl_make_literal_regex_sed"`
15980 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15981 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15982 s|^/[^/]|//&|
15983 p
15984 q
15985 }'
15986
15987 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15988 sed -n "$gl_absolute_header_sed"`
15989
15990 gl_header=$gl_cv_absolute_string_h
15991 gl_cv_next_string_h='"'$gl_header'"'
15992
15993 ;;
15994 esac
15995 fi
15996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
15997 printf "%s\n" "$gl_cv_next_string_h" >&6; }
15998 fi
15999 NEXT_STRING_H=$gl_cv_next_string_h
16000
16001 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16002 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16003 gl_next_as_first_directive='<'string.h'>'
16004 else
16005 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16006 gl_next_as_first_directive=$gl_cv_next_string_h
16007 fi
16008 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019
16020
16021
16022
16023 HAVE_DECL_LOCALTIME_R=1;
16024 HAVE_NANOSLEEP=1;
16025 HAVE_STRPTIME=1;
16026 HAVE_TIMEGM=1;
16027 HAVE_TIMESPEC_GET=1;
16028 HAVE_TIMESPEC_GETRES=1;
16029 HAVE_TIMEZONE_T=0;
16030 HAVE_TZALLOC=0;
16031 REPLACE_CTIME=0;
16032 REPLACE_GMTIME=0;
16033 REPLACE_LOCALTIME=0;
16034 REPLACE_LOCALTIME_R=0;
16035 REPLACE_LOCALTIME_RZ=0;
16036 REPLACE_MKTIME=0;
16037 REPLACE_MKTIME_Z=0;
16038 REPLACE_NANOSLEEP=0;
16039 REPLACE_STRFTIME=0;
16040 REPLACE_TIME=0;
16041 REPLACE_TIMEGM=0;
16042 REPLACE_TIMESPEC_GET=0;
16043 REPLACE_TIMESPEC_GETRES=0;
16044 REPLACE_TZSET=0;
16045
16046
16047
16048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
16049 printf %s "checking for struct timespec in <time.h>... " >&6; }
16050 if test ${gl_cv_sys_struct_timespec_in_time_h+y}
16051 then :
16052 printf %s "(cached) " >&6
16053 else case e in #(
16054 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16055 /* end confdefs.h. */
16056 #include <time.h>
16057
16058 int
16059 main (void)
16060 {
16061 static struct timespec x; x.tv_sec = x.tv_nsec;
16062 ;
16063 return 0;
16064 }
16065 _ACEOF
16066 if ac_fn_c_try_compile "$LINENO"
16067 then :
16068 gl_cv_sys_struct_timespec_in_time_h=yes
16069 else case e in #(
16070 e) gl_cv_sys_struct_timespec_in_time_h=no ;;
16071 esac
16072 fi
16073 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16074 esac
16075 fi
16076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
16077 printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
16078
16079 TIME_H_DEFINES_STRUCT_TIMESPEC=0
16080 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
16081 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
16082 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
16083 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
16084 TIME_H_DEFINES_STRUCT_TIMESPEC=1
16085 else
16086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
16087 printf %s "checking for struct timespec in <sys/time.h>... " >&6; }
16088 if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y}
16089 then :
16090 printf %s "(cached) " >&6
16091 else case e in #(
16092 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16094 #include <sys/time.h>
16095
16096 int
16097 main (void)
16098 {
16099 static struct timespec x; x.tv_sec = x.tv_nsec;
16100 ;
16101 return 0;
16102 }
16103 _ACEOF
16104 if ac_fn_c_try_compile "$LINENO"
16105 then :
16106 gl_cv_sys_struct_timespec_in_sys_time_h=yes
16107 else case e in #(
16108 e) gl_cv_sys_struct_timespec_in_sys_time_h=no ;;
16109 esac
16110 fi
16111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16112 esac
16113 fi
16114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
16115 printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
16116 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
16117 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
16118 else
16119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
16120 printf %s "checking for struct timespec in <pthread.h>... " >&6; }
16121 if test ${gl_cv_sys_struct_timespec_in_pthread_h+y}
16122 then :
16123 printf %s "(cached) " >&6
16124 else case e in #(
16125 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h. */
16127 #include <pthread.h>
16128
16129 int
16130 main (void)
16131 {
16132 static struct timespec x; x.tv_sec = x.tv_nsec;
16133 ;
16134 return 0;
16135 }
16136 _ACEOF
16137 if ac_fn_c_try_compile "$LINENO"
16138 then :
16139 gl_cv_sys_struct_timespec_in_pthread_h=yes
16140 else case e in #(
16141 e) gl_cv_sys_struct_timespec_in_pthread_h=no ;;
16142 esac
16143 fi
16144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16145 esac
16146 fi
16147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
16148 printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
16149 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
16150 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
16151 else
16152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
16153 printf %s "checking for struct timespec in <unistd.h>... " >&6; }
16154 if test ${gl_cv_sys_struct_timespec_in_unistd_h+y}
16155 then :
16156 printf %s "(cached) " >&6
16157 else case e in #(
16158 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16159 /* end confdefs.h. */
16160 #include <unistd.h>
16161
16162 int
16163 main (void)
16164 {
16165 static struct timespec x; x.tv_sec = x.tv_nsec;
16166 ;
16167 return 0;
16168 }
16169 _ACEOF
16170 if ac_fn_c_try_compile "$LINENO"
16171 then :
16172 gl_cv_sys_struct_timespec_in_unistd_h=yes
16173 else case e in #(
16174 e) gl_cv_sys_struct_timespec_in_unistd_h=no ;;
16175 esac
16176 fi
16177 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16178 esac
16179 fi
16180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
16181 printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
16182 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
16183 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
16184 fi
16185 fi
16186 fi
16187 fi
16188
16189
16190
16191
16192
16193
16194
16195
16196
16197
16198
16199
16200
16201
16202
16203
16204 if test $gl_cv_have_include_next = yes; then
16205 gl_cv_next_time_h='<'time.h'>'
16206 else
16207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
16208 printf %s "checking absolute name of <time.h>... " >&6; }
16209 if test ${gl_cv_next_time_h+y}
16210 then :
16211 printf %s "(cached) " >&6
16212 else case e in #(
16213 e)
16214
16215
16216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16217 /* end confdefs.h. */
16218 #include <time.h>
16219 _ACEOF
16220 case "$host_os" in
16221 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16222 *) gl_absname_cpp="$ac_cpp" ;;
16223 esac
16224
16225 case "$host_os" in
16226 mingw* | windows*)
16227 gl_dirsep_regex='[/\\]'
16228 ;;
16229 *)
16230 gl_dirsep_regex='\/'
16231 ;;
16232 esac
16233 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16234 gl_header_literal_regex=`echo 'time.h' \
16235 | sed -e "$gl_make_literal_regex_sed"`
16236 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16237 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16238 s|^/[^/]|//&|
16239 p
16240 q
16241 }'
16242
16243 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16244 sed -n "$gl_absolute_header_sed"`
16245
16246 gl_header=$gl_cv_absolute_time_h
16247 gl_cv_next_time_h='"'$gl_header'"'
16248
16249 ;;
16250 esac
16251 fi
16252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
16253 printf "%s\n" "$gl_cv_next_time_h" >&6; }
16254 fi
16255 NEXT_TIME_H=$gl_cv_next_time_h
16256
16257 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16258 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16259 gl_next_as_first_directive='<'time.h'>'
16260 else
16261 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16262 gl_next_as_first_directive=$gl_cv_next_time_h
16263 fi
16264 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
16265
16266
16267
16268
16269
16270
16271
16272
16273
16274
16275
16276
16277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
16278 printf %s "checking for TIME_UTC in <time.h>... " >&6; }
16279 if test ${gl_cv_time_h_has_TIME_UTC+y}
16280 then :
16281 printf %s "(cached) " >&6
16282 else case e in #(
16283 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16284 /* end confdefs.h. */
16285 #include <time.h>
16286
16287 int
16288 main (void)
16289 {
16290 static int x = TIME_UTC; x++;
16291 ;
16292 return 0;
16293 }
16294 _ACEOF
16295 if ac_fn_c_try_compile "$LINENO"
16296 then :
16297 gl_cv_time_h_has_TIME_UTC=yes
16298 else case e in #(
16299 e) gl_cv_time_h_has_TIME_UTC=no ;;
16300 esac
16301 fi
16302 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
16303 esac
16304 fi
16305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
16306 printf "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; }
16307 if test $gl_cv_time_h_has_TIME_UTC = yes; then
16308 TIME_H_DEFINES_TIME_UTC=1
16309 else
16310 TIME_H_DEFINES_TIME_UTC=0
16311 fi
16312
16313
16314
16315
16316 GL_GNULIB_CTIME=0
16317
16318
16319
16320 GL_GNULIB_MKTIME=0
16321
16322
16323
16324 GL_GNULIB_LOCALTIME=0
16325
16326
16327
16328 GL_GNULIB_NANOSLEEP=0
16329
16330
16331
16332 GL_GNULIB_STRFTIME=0
16333
16334
16335
16336 GL_GNULIB_STRPTIME=0
16337
16338
16339
16340 GL_GNULIB_TIME=0
16341
16342
16343
16344 GL_GNULIB_TIMEGM=0
16345
16346
16347
16348 GL_GNULIB_TIMESPEC_GET=0
16349
16350
16351
16352 GL_GNULIB_TIMESPEC_GETRES=0
16353
16354
16355
16356 GL_GNULIB_TIME_R=0
16357
16358
16359
16360 GL_GNULIB_TIME_RZ=0
16361
16362
16363
16364 GL_GNULIB_TZNAME=0
16365
16366
16367
16368 GL_GNULIB_TZSET=0
16369
16370
16371
16372 GL_GNULIB_MDA_TZSET=1
16373
16374
16375
16376 ac_fn_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
16377 if test "x$ac_cv_have_decl_execvpe" = xyes
16378 then :
16379 ac_have_decl=1
16380 else case e in #(
16381 e) ac_have_decl=0 ;;
16382 esac
16383 fi
16384 printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h
16385
16386
16387
16388
16389
16390
16391
16392
16393
16394
16395
16396
16397
16398 if test $gl_cv_have_include_next = yes; then
16399 gl_cv_next_unistd_h='<'unistd.h'>'
16400 else
16401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
16402 printf %s "checking absolute name of <unistd.h>... " >&6; }
16403 if test ${gl_cv_next_unistd_h+y}
16404 then :
16405 printf %s "(cached) " >&6
16406 else case e in #(
16407 e)
16408 if test $ac_cv_header_unistd_h = yes; then
16409
16410
16411
16412
16413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16414 /* end confdefs.h. */
16415 #include <unistd.h>
16416 _ACEOF
16417 case "$host_os" in
16418 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16419 *) gl_absname_cpp="$ac_cpp" ;;
16420 esac
16421
16422 case "$host_os" in
16423 mingw* | windows*)
16424 gl_dirsep_regex='[/\\]'
16425 ;;
16426 *)
16427 gl_dirsep_regex='\/'
16428 ;;
16429 esac
16430 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16431 gl_header_literal_regex=`echo 'unistd.h' \
16432 | sed -e "$gl_make_literal_regex_sed"`
16433 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16434 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16435 s|^/[^/]|//&|
16436 p
16437 q
16438 }'
16439
16440 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16441 sed -n "$gl_absolute_header_sed"`
16442
16443 gl_header=$gl_cv_absolute_unistd_h
16444 gl_cv_next_unistd_h='"'$gl_header'"'
16445 else
16446 gl_cv_next_unistd_h='<'unistd.h'>'
16447 fi
16448
16449 ;;
16450 esac
16451 fi
16452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
16453 printf "%s\n" "$gl_cv_next_unistd_h" >&6; }
16454 fi
16455 NEXT_UNISTD_H=$gl_cv_next_unistd_h
16456
16457 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16458 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16459 gl_next_as_first_directive='<'unistd.h'>'
16460 else
16461 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16462 gl_next_as_first_directive=$gl_cv_next_unistd_h
16463 fi
16464 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
16465
16466
16467
16468
16469 if test $ac_cv_header_unistd_h = yes; then
16470 HAVE_UNISTD_H=1
16471 else
16472 HAVE_UNISTD_H=0
16473 fi
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484
16485
16486
16487 if test $ac_cv_have_decl_execvpe = no; then
16488 HAVE_DECL_EXECVPE=0
16489 fi
16490
16491
16492 HAVE_BTOWC=1;
16493 HAVE_MBSINIT=1;
16494 HAVE_MBRTOWC=1;
16495 HAVE_MBRLEN=1;
16496 HAVE_MBSRTOWCS=1;
16497 HAVE_MBSNRTOWCS=1;
16498 HAVE_WCRTOMB=1;
16499 HAVE_WCSRTOMBS=1;
16500 HAVE_WCSNRTOMBS=1;
16501 HAVE_WMEMCHR=1;
16502 HAVE_WMEMCMP=1;
16503 HAVE_WMEMCPY=1;
16504 HAVE_WMEMMOVE=1;
16505 HAVE_WMEMPCPY=1;
16506 HAVE_WMEMSET=1;
16507 HAVE_WCSLEN=1;
16508 HAVE_WCSNLEN=1;
16509 HAVE_WCSCPY=1;
16510 HAVE_WCPCPY=1;
16511 HAVE_WCSNCPY=1;
16512 HAVE_WCPNCPY=1;
16513 HAVE_WCSCAT=1;
16514 HAVE_WCSNCAT=1;
16515 HAVE_WCSCMP=1;
16516 HAVE_WCSNCMP=1;
16517 HAVE_WCSCASECMP=1;
16518 HAVE_WCSNCASECMP=1;
16519 HAVE_WCSCOLL=1;
16520 HAVE_WCSXFRM=1;
16521 HAVE_WCSDUP=1;
16522 HAVE_WCSCHR=1;
16523 HAVE_WCSRCHR=1;
16524 HAVE_WCSCSPN=1;
16525 HAVE_WCSSPN=1;
16526 HAVE_WCSPBRK=1;
16527 HAVE_WCSSTR=1;
16528 HAVE_WCSTOK=1;
16529 HAVE_WCSWIDTH=1;
16530 HAVE_WCSFTIME=1;
16531 HAVE_DECL_WCTOB=1;
16532 HAVE_DECL_WCSDUP=1;
16533 HAVE_DECL_WCWIDTH=1;
16534 REPLACE_MBSTATE_T=0;
16535 REPLACE_BTOWC=0;
16536 REPLACE_WCTOB=0;
16537 REPLACE_MBSINIT=0;
16538 REPLACE_MBRTOWC=0;
16539 REPLACE_MBRLEN=0;
16540 REPLACE_MBSRTOWCS=0;
16541 REPLACE_MBSNRTOWCS=0;
16542 REPLACE_WCRTOMB=0;
16543 REPLACE_WCSRTOMBS=0;
16544 REPLACE_WCSNRTOMBS=0;
16545 REPLACE_WCWIDTH=0;
16546 REPLACE_WCSWIDTH=0;
16547 REPLACE_WCSFTIME=0;
16548 REPLACE_WCSCMP=0;
16549 REPLACE_WCSNCAT=0;
16550 REPLACE_WCSNCMP=0;
16551 REPLACE_WCSSTR=0;
16552 REPLACE_WCSTOK=0;
16553 REPLACE_WMEMCMP=0;
16554 REPLACE_WMEMPCPY=0;
16555
16556
16557
16558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
16559 printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
16560 if test ${gl_cv_header_wchar_h_correct_inline+y}
16561 then :
16562 printf %s "(cached) " >&6
16563 else case e in #(
16564 e) gl_cv_header_wchar_h_correct_inline=yes
16565 case "$host_os" in
16566 *-gnu* | gnu*)
16567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16568 /* end confdefs.h. */
16569
16570
16571 #define wcstod renamed_wcstod
16572 #include <wchar.h>
16573 extern int zero (void);
16574 int main () { return zero(); }
16575
16576 _ACEOF
16577 saved_ac_compile="$ac_compile"
16578 ac_compile=`echo "$saved_ac_compile" | sed s/conftest/conftest1/`
16579 if echo '#include "conftest.c"' >conftest1.c \
16580 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16581 (eval $ac_compile) 2>&5
16582 ac_status=$?
16583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16584 test $ac_status = 0; }; then
16585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16586 /* end confdefs.h. */
16587
16588
16589 #define wcstod renamed_wcstod
16590 #include <wchar.h>
16591 int zero (void) { return 0; }
16592
16593 _ACEOF
16594 ac_compile=`echo "$saved_ac_compile" | sed s/conftest/conftest2/`
16595 if echo '#include "conftest.c"' >conftest2.c \
16596 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16597 (eval $ac_compile) 2>&5
16598 ac_status=$?
16599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16600 test $ac_status = 0; }; then
16601 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
16602 :
16603 else
16604 gl_cv_header_wchar_h_correct_inline=no
16605 fi
16606 fi
16607 fi
16608 ac_compile="$saved_ac_compile"
16609 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
16610 ;;
16611 esac
16612 ;;
16613 esac
16614 fi
16615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
16616 printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; }
16617 if test $gl_cv_header_wchar_h_correct_inline = no; then
16618 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
16619 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
16620 C99 mode. You have four options:
16621 - Add the flag -fgnu89-inline to CC and reconfigure, or
16622 - Fix your include files, using parts of
16623 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
16624 - Use a gcc version older than 4.3, or
16625 - Don't use the flags -std=c99 or -std=gnu99.
16626 Configuration aborted." "$LINENO" 5
16627 fi
16628
16629
16630
16631
16632 if test $ac_cv_header_features_h = yes; then
16633 HAVE_FEATURES_H=1
16634 else
16635 HAVE_FEATURES_H=0
16636 fi
16637
16638
16639
16640
16641
16642 if test $ac_cv_header_crtdefs_h = yes; then
16643 HAVE_CRTDEFS_H=1
16644 else
16645 HAVE_CRTDEFS_H=0
16646 fi
16647
16648
16649
16650
16651
16652
16653
16654
16655
16656
16657
16658
16659
16660
16661 if test $gl_cv_have_include_next = yes; then
16662 gl_cv_next_wchar_h='<'wchar.h'>'
16663 else
16664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
16665 printf %s "checking absolute name of <wchar.h>... " >&6; }
16666 if test ${gl_cv_next_wchar_h+y}
16667 then :
16668 printf %s "(cached) " >&6
16669 else case e in #(
16670 e)
16671 if test $ac_cv_header_wchar_h = yes; then
16672
16673
16674
16675
16676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16677 /* end confdefs.h. */
16678 #include <wchar.h>
16679 _ACEOF
16680 case "$host_os" in
16681 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16682 *) gl_absname_cpp="$ac_cpp" ;;
16683 esac
16684
16685 case "$host_os" in
16686 mingw* | windows*)
16687 gl_dirsep_regex='[/\\]'
16688 ;;
16689 *)
16690 gl_dirsep_regex='\/'
16691 ;;
16692 esac
16693 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16694 gl_header_literal_regex=`echo 'wchar.h' \
16695 | sed -e "$gl_make_literal_regex_sed"`
16696 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16697 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16698 s|^/[^/]|//&|
16699 p
16700 q
16701 }'
16702
16703 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16704 sed -n "$gl_absolute_header_sed"`
16705
16706 gl_header=$gl_cv_absolute_wchar_h
16707 gl_cv_next_wchar_h='"'$gl_header'"'
16708 else
16709 gl_cv_next_wchar_h='<'wchar.h'>'
16710 fi
16711
16712 ;;
16713 esac
16714 fi
16715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
16716 printf "%s\n" "$gl_cv_next_wchar_h" >&6; }
16717 fi
16718 NEXT_WCHAR_H=$gl_cv_next_wchar_h
16719
16720 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16721 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16722 gl_next_as_first_directive='<'wchar.h'>'
16723 else
16724 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16725 gl_next_as_first_directive=$gl_cv_next_wchar_h
16726 fi
16727 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
16728
16729
16730
16731
16732 if test $ac_cv_header_wchar_h = yes; then
16733 HAVE_WCHAR_H=1
16734 else
16735 HAVE_WCHAR_H=0
16736 fi
16737
16738
16739
16740
16741
16742 if test $gt_cv_c_wint_t = yes; then
16743 HAVE_WINT_T=1
16744 else
16745 HAVE_WINT_T=0
16746 fi
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757 ac_fn_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
16758 #include <wchar.h>
16759
16760 " "$ac_c_undeclared_builtin_options" "CFLAGS"
16761 if test "x$ac_cv_have_decl_wcsdup" = xyes
16762 then :
16763 ac_have_decl=1
16764 else case e in #(
16765 e) ac_have_decl=0 ;;
16766 esac
16767 fi
16768 printf "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h
16769
16770 if test $ac_cv_have_decl_wcsdup = no; then
16771 HAVE_DECL_WCSDUP=0
16772 fi
16773
16774
16775
16776 GL_GNULIB_BTOWC=0
16777
16778
16779
16780 GL_GNULIB_WCTOB=0
16781
16782
16783
16784 GL_GNULIB_MBSINIT=0
16785
16786
16787
16788 GL_GNULIB_MBSZERO=0
16789
16790
16791
16792 GL_GNULIB_MBRTOWC=0
16793
16794
16795
16796 GL_GNULIB_MBRLEN=0
16797
16798
16799
16800 GL_GNULIB_MBSRTOWCS=0
16801
16802
16803
16804 GL_GNULIB_MBSNRTOWCS=0
16805
16806
16807
16808 GL_GNULIB_WCRTOMB=0
16809
16810
16811
16812 GL_GNULIB_WCSRTOMBS=0
16813
16814
16815
16816 GL_GNULIB_WCSNRTOMBS=0
16817
16818
16819
16820 GL_GNULIB_WCWIDTH=0
16821
16822
16823
16824 GL_GNULIB_WMEMCHR=0
16825
16826
16827
16828 GL_GNULIB_WMEMCMP=0
16829
16830
16831
16832 GL_GNULIB_WMEMCPY=0
16833
16834
16835
16836 GL_GNULIB_WMEMMOVE=0
16837
16838
16839
16840 GL_GNULIB_WMEMPCPY=0
16841
16842
16843
16844 GL_GNULIB_WMEMSET=0
16845
16846
16847
16848 GL_GNULIB_WCSLEN=0
16849
16850
16851
16852 GL_GNULIB_WCSNLEN=0
16853
16854
16855
16856 GL_GNULIB_WCSCPY=0
16857
16858
16859
16860 GL_GNULIB_WCPCPY=0
16861
16862
16863
16864 GL_GNULIB_WCSNCPY=0
16865
16866
16867
16868 GL_GNULIB_WCPNCPY=0
16869
16870
16871
16872 GL_GNULIB_WCSCAT=0
16873
16874
16875
16876 GL_GNULIB_WCSNCAT=0
16877
16878
16879
16880 GL_GNULIB_WCSCMP=0
16881
16882
16883
16884 GL_GNULIB_WCSNCMP=0
16885
16886
16887
16888 GL_GNULIB_WCSCASECMP=0
16889
16890
16891
16892 GL_GNULIB_WCSNCASECMP=0
16893
16894
16895
16896 GL_GNULIB_WCSCOLL=0
16897
16898
16899
16900 GL_GNULIB_WCSXFRM=0
16901
16902
16903
16904 GL_GNULIB_WCSDUP=0
16905
16906
16907
16908 GL_GNULIB_WCSCHR=0
16909
16910
16911
16912 GL_GNULIB_WCSRCHR=0
16913
16914
16915
16916 GL_GNULIB_WCSCSPN=0
16917
16918
16919
16920 GL_GNULIB_WCSSPN=0
16921
16922
16923
16924 GL_GNULIB_WCSPBRK=0
16925
16926
16927
16928 GL_GNULIB_WCSSTR=0
16929
16930
16931
16932 GL_GNULIB_WCSTOK=0
16933
16934
16935
16936 GL_GNULIB_WCSWIDTH=0
16937
16938
16939
16940 GL_GNULIB_WCSFTIME=0
16941
16942
16943
16944 GL_GNULIB_WGETCWD=0
16945
16946
16947
16948 GL_GNULIB_MDA_WCSDUP=1
16949
16950
16951
16952
16953
16954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
16955 printf %s "checking for C compiler option to allow warnings... " >&6; }
16956 if test ${gl_cv_cc_wallow+y}
16957 then :
16958 printf %s "(cached) " >&6
16959 else case e in #(
16960 e) rm -fr conftest*
16961 echo 'int dummy;' > conftest.c
16962 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
16963 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16964 (eval $ac_try) 2>&5
16965 ac_status=$?
16966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16967 test $ac_status = 0; }; } >/dev/null
16968 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
16969 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16970 (eval $ac_try) 2>&5
16971 ac_status=$?
16972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16973 test $ac_status = 0; }; } >/dev/null
16974 if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
16975 gl_cv_cc_wallow='-Wno-error'
16976 else
16977 gl_cv_cc_wallow=none
16978 fi
16979 rm -fr conftest*
16980 ;;
16981 esac
16982 fi
16983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
16984 printf "%s\n" "$gl_cv_cc_wallow" >&6; }
16985 case "$gl_cv_cc_wallow" in
16986 none) GL_CFLAG_ALLOW_WARNINGS='' ;;
16987 *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
16988 esac
16989
16990
16991
16992
16993 GL_CFLAG_GNULIB_WARNINGS=''
16994 if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
16995 cat > conftest.c <<\EOF
16996 #if (__GNUC__ >= 3 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)
16997 -Wno-cast-qual
16998 -Wno-conversion
16999 -Wno-float-equal
17000 -Wno-sign-compare
17001 -Wno-undef
17002 -Wno-unused-function
17003 -Wno-unused-parameter
17004 #endif
17005 #if (__GNUC__ + (__GNUC_MINOR__ >= 9) > 4 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)
17006 -Wno-float-conversion
17007 #endif
17008 #if (__GNUC__ >= 7 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)
17009 -Wimplicit-fallthrough
17010 #endif
17011 #if (__GNUC__ + (__GNUC_MINOR__ >= 8) > 4 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)
17012 -Wno-pedantic
17013 #endif
17014 #if 3 < __clang_major__ + (9 <= __clang_minor__)
17015 -Wno-tautological-constant-out-of-range-compare
17016 #endif
17017 #if (__GNUC__ + (__GNUC_MINOR__ >= 3) > 4 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)
17018 -Wno-sign-conversion
17019 -Wno-type-limits
17020 #endif
17021 #if (__GNUC__ + (__GNUC_MINOR__ >= 4) > 4 && !defined __clang__) || (__clang_major__ + (__clang_minor__ >= 9) > 3)
17022 -Wno-unused-const-variable
17023 #endif
17024 #if (__GNUC__ + (__GNUC_MINOR__ >= 5) > 4 && !defined __clang__)
17025 -Wno-unsuffixed-float-constants
17026 #endif
17027 EOF
17028 gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
17029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
17030 (eval $gl_command) 2>&5
17031 ac_status=$?
17032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17033 test $ac_status = 0; }; then
17034 gl_options=`grep -v '#' conftest.out`
17035 for word in $gl_options; do
17036 GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
17037 done
17038 fi
17039 rm -f conftest.c conftest.out
17040 fi
17041
17042
17043
17044 if false; then
17045 GL_COND_LIBTOOL_TRUE=
17046 GL_COND_LIBTOOL_FALSE='#'
17047 else
17048 GL_COND_LIBTOOL_TRUE='#'
17049 GL_COND_LIBTOOL_FALSE=
17050 fi
17051
17052 gl_cond_libtool=false
17053 gl_libdeps=
17054 gl_ltlibdeps=
17055 gl_m4_base='lib/gnulib-m4'
17056
17057
17058
17059
17060
17061
17062
17063
17064
17065
17066
17067
17068 gl_source_base='lib'
17069 gl_source_base_prefix=
17070
17071
17072 if test $ac_cv_func_alloca_works = no; then
17073 :
17074 fi
17075
17076 # Define an additional variable used in the Makefile substitution.
17077 if test $ac_cv_working_alloca_h = yes; then
17078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
17079 printf %s "checking for alloca as a compiler built-in... " >&6; }
17080 if test ${gl_cv_rpl_alloca+y}
17081 then :
17082 printf %s "(cached) " >&6
17083 else case e in #(
17084 e)
17085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17086 /* end confdefs.h. */
17087
17088 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
17089 Need own alloca
17090 #endif
17091
17092 _ACEOF
17093 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17094 $EGREP_TRADITIONAL "Need own alloca" >/dev/null 2>&1
17095 then :
17096 gl_cv_rpl_alloca=yes
17097 else case e in #(
17098 e) gl_cv_rpl_alloca=no ;;
17099 esac
17100 fi
17101 rm -rf conftest*
17102
17103 ;;
17104 esac
17105 fi
17106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
17107 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
17108 if test $gl_cv_rpl_alloca = yes; then
17109
17110 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
17111
17112 GL_GENERATE_ALLOCA_H=true
17113 else
17114 GL_GENERATE_ALLOCA_H=false
17115 fi
17116 else
17117 GL_GENERATE_ALLOCA_H=true
17118 fi
17119
17120 if test $ac_cv_working_alloca_h = yes; then
17121 HAVE_ALLOCA_H=1
17122 else
17123 HAVE_ALLOCA_H=0
17124 fi
17125
17126
17127
17128
17129
17130
17131 case "$GL_GENERATE_ALLOCA_H" in
17132 false) ALLOCA_H='' ;;
17133 true)
17134 if test -z "$ALLOCA_H"; then
17135 ALLOCA_H="${gl_source_base_prefix}alloca.h"
17136 fi
17137 ;;
17138 *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;;
17139 esac
17140
17141
17142 if $GL_GENERATE_ALLOCA_H; then
17143 GL_GENERATE_ALLOCA_H_TRUE=
17144 GL_GENERATE_ALLOCA_H_FALSE='#'
17145 else
17146 GL_GENERATE_ALLOCA_H_TRUE='#'
17147 GL_GENERATE_ALLOCA_H_FALSE=
17148 fi
17149 :
17150 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
17151 GL_GENERATE_ALLOCA_H_TRUE='#'
17152 GL_GENERATE_ALLOCA_H_FALSE='#'
17153 fi
17154
17155
17156
17157
17158
17159
17160
17161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static_assert" >&5
17162 printf %s "checking for static_assert... " >&6; }
17163 if test ${gl_cv_static_assert+y}
17164 then :
17165 printf %s "(cached) " >&6
17166 else case e in #(
17167 e) gl_saved_CFLAGS=$CFLAGS
17168 for gl_working in "yes, a keyword" "yes, an <assert.h> macro"; do
17169 case $gl_working in #(
17170 *assert.h*) :
17171 CFLAGS="$gl_saved_CFLAGS -DINCLUDE_ASSERT_H" ;; #(
17172 *) :
17173 ;;
17174 esac
17175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17176 /* end confdefs.h. */
17177 #if defined __clang__ && __STDC_VERSION__ < 202311
17178 #pragma clang diagnostic error "-Wc2x-extensions"
17179 #pragma clang diagnostic error "-Wc++1z-extensions"
17180 #endif
17181 #ifdef INCLUDE_ASSERT_H
17182 #include <assert.h>
17183 #endif
17184 static_assert (2 + 2 == 4, "arithmetic does not work");
17185 static_assert (2 + 2 == 4);
17186
17187 int
17188 main (void)
17189 {
17190
17191 static_assert (sizeof (char) == 1, "sizeof does not work");
17192 static_assert (sizeof (char) == 1);
17193
17194 ;
17195 return 0;
17196 }
17197
17198 _ACEOF
17199 if ac_fn_c_try_compile "$LINENO"
17200 then :
17201 gl_cv_static_assert=$gl_working
17202 else case e in #(
17203 e) gl_cv_static_assert=no ;;
17204 esac
17205 fi
17206 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17207 CFLAGS=$gl_saved_CFLAGS
17208 test "$gl_cv_static_assert" != no && break
17209 done
17210 ;;
17211 esac
17212 fi
17213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_static_assert" >&5
17214 printf "%s\n" "$gl_cv_static_assert" >&6; }
17215
17216 GL_GENERATE_ASSERT_H=false
17217 case $gl_cv_static_assert in #(
17218 yes*keyword*) :
17219
17220 printf "%s\n" "#define HAVE_C_STATIC_ASSERT 1" >>confdefs.h
17221 ;; #(
17222 no) :
17223 GL_GENERATE_ASSERT_H=true
17224
17225
17226
17227
17228
17229
17230
17231
17232 if test $gl_cv_have_include_next = yes; then
17233 gl_cv_next_assert_h='<'assert.h'>'
17234 else
17235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <assert.h>" >&5
17236 printf %s "checking absolute name of <assert.h>... " >&6; }
17237 if test ${gl_cv_next_assert_h+y}
17238 then :
17239 printf %s "(cached) " >&6
17240 else case e in #(
17241 e)
17242
17243
17244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17245 /* end confdefs.h. */
17246 #include <assert.h>
17247 _ACEOF
17248 case "$host_os" in
17249 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17250 *) gl_absname_cpp="$ac_cpp" ;;
17251 esac
17252
17253 case "$host_os" in
17254 mingw* | windows*)
17255 gl_dirsep_regex='[/\\]'
17256 ;;
17257 *)
17258 gl_dirsep_regex='\/'
17259 ;;
17260 esac
17261 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17262 gl_header_literal_regex=`echo 'assert.h' \
17263 | sed -e "$gl_make_literal_regex_sed"`
17264 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17265 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17266 s|^/[^/]|//&|
17267 p
17268 q
17269 }'
17270
17271 gl_cv_absolute_assert_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17272 sed -n "$gl_absolute_header_sed"`
17273
17274 gl_header=$gl_cv_absolute_assert_h
17275 gl_cv_next_assert_h='"'$gl_header'"'
17276
17277 ;;
17278 esac
17279 fi
17280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_assert_h" >&5
17281 printf "%s\n" "$gl_cv_next_assert_h" >&6; }
17282 fi
17283 NEXT_ASSERT_H=$gl_cv_next_assert_h
17284
17285 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17286 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17287 gl_next_as_first_directive='<'assert.h'>'
17288 else
17289 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17290 gl_next_as_first_directive=$gl_cv_next_assert_h
17291 fi
17292 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H=$gl_next_as_first_directive
17293
17294
17295
17296 ;; #(
17297 *) :
17298 ;;
17299 esac
17300
17301
17302
17303
17304
17305
17306
17307 case "$GL_GENERATE_ASSERT_H" in
17308 false) ASSERT_H='' ;;
17309 true)
17310 if test -z "$ASSERT_H"; then
17311 ASSERT_H="${gl_source_base_prefix}assert.h"
17312 fi
17313 ;;
17314 *) echo "*** GL_GENERATE_ASSERT_H is not set correctly" 1>&2; exit 1 ;;
17315 esac
17316
17317
17318 if $GL_GENERATE_ASSERT_H; then
17319 GL_GENERATE_ASSERT_H_TRUE=
17320 GL_GENERATE_ASSERT_H_FALSE='#'
17321 else
17322 GL_GENERATE_ASSERT_H_TRUE='#'
17323 GL_GENERATE_ASSERT_H_FALSE=
17324 fi
17325 :
17326 if test -z "${GL_GENERATE_ASSERT_H_TRUE}" && test -z "${GL_GENERATE_ASSERT_H_FALSE}"; then
17327 GL_GENERATE_ASSERT_H_TRUE='#'
17328 GL_GENERATE_ASSERT_H_FALSE='#'
17329 fi
17330
17331
17332
17333
17334
17335
17336
17337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bool, true, false" >&5
17338 printf %s "checking for bool, true, false... " >&6; }
17339 if test ${gl_cv_c_bool+y}
17340 then :
17341 printf %s "(cached) " >&6
17342 else case e in #(
17343 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17344 /* end confdefs.h. */
17345
17346 #if true == false
17347 #error "true == false"
17348 #endif
17349 extern bool b;
17350 bool b = true == false;
17351 _ACEOF
17352 if ac_fn_c_try_compile "$LINENO"
17353 then :
17354 gl_cv_c_bool=yes
17355 else case e in #(
17356 e) gl_cv_c_bool=no ;;
17357 esac
17358 fi
17359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17360 esac
17361 fi
17362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_bool" >&5
17363 printf "%s\n" "$gl_cv_c_bool" >&6; }
17364 if test "$gl_cv_c_bool" = yes; then
17365
17366 printf "%s\n" "#define HAVE_C_BOOL 1" >>confdefs.h
17367
17368 fi
17369
17370
17371
17372
17373
17374
17375
17376 printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
17377
17378
17379
17380
17381 if test $REPLACE_CLOSE = 1; then
17382 GL_COND_OBJ_CLOSE_TRUE=
17383 GL_COND_OBJ_CLOSE_FALSE='#'
17384 else
17385 GL_COND_OBJ_CLOSE_TRUE='#'
17386 GL_COND_OBJ_CLOSE_FALSE=
17387 fi
17388 :
17389 if test -z "${GL_COND_OBJ_CLOSE_TRUE}" && test -z "${GL_COND_OBJ_CLOSE_FALSE}"; then
17390 GL_COND_OBJ_CLOSE_TRUE='#'
17391 GL_COND_OBJ_CLOSE_FALSE='#'
17392 fi
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402
17403 GL_GNULIB_CLOSE=1
17404
17405
17406
17407
17408
17409 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
17410
17411
17412
17413
17414
17415 printf "%s\n" "#define GNULIB_CLOSE 1" >>confdefs.h
17416
17417
17418
17419
17420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
17421 printf %s "checking whether // is distinct from /... " >&6; }
17422 if test ${gl_cv_double_slash_root+y}
17423 then :
17424 printf %s "(cached) " >&6
17425 else case e in #(
17426 e) if test x"$cross_compiling" = xyes ; then
17427 # When cross-compiling, there is no way to tell whether // is special
17428 # short of a list of hosts. However, the only known hosts to date
17429 # that have a distinct // are Apollo DomainOS (too old to port to),
17430 # Cygwin, and z/OS. If anyone knows of another system for which // has
17431 # special semantics and is distinct from /, please report it to
17432 # <[email protected]>.
17433 case $host in
17434 *-cygwin | i370-ibm-openedition)
17435 gl_cv_double_slash_root=yes ;;
17436 *)
17437 # Be optimistic and assume that / and // are the same when we
17438 # don't know.
17439 gl_cv_double_slash_root='unknown, assuming no' ;;
17440 esac
17441 else
17442 set x `ls -di / // 2>/dev/null`
17443 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
17444 gl_cv_double_slash_root=no
17445 else
17446 gl_cv_double_slash_root=yes
17447 fi
17448 fi ;;
17449 esac
17450 fi
17451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
17452 printf "%s\n" "$gl_cv_double_slash_root" >&6; }
17453 if test "$gl_cv_double_slash_root" = yes; then
17454
17455 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
17456
17457 fi
17458
17459
17460
17461
17462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
17463 printf %s "checking whether dup2 works... " >&6; }
17464 if test ${gl_cv_func_dup2_works+y}
17465 then :
17466 printf %s "(cached) " >&6
17467 else case e in #(
17468 e) if test "$cross_compiling" = yes
17469 then :
17470 case "$host_os" in
17471 mingw* | windows*) # on this platform, dup2 always returns 0 for success
17472 gl_cv_func_dup2_works="guessing no" ;;
17473 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
17474 gl_cv_func_dup2_works="guessing no" ;;
17475 aix* | freebsd*)
17476 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
17477 # not EBADF.
17478 gl_cv_func_dup2_works="guessing no" ;;
17479 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
17480 gl_cv_func_dup2_works="guessing no" ;;
17481 *-android*) # implemented using dup3(), which fails if oldfd == newfd
17482 gl_cv_func_dup2_works="guessing no" ;;
17483 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
17484 gl_cv_func_dup2_works="guessing no" ;;
17485 *) gl_cv_func_dup2_works="guessing yes" ;;
17486 esac
17487 else case e in #(
17488 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17489 /* end confdefs.h. */
17490
17491 #include <errno.h>
17492 #include <fcntl.h>
17493 #include <limits.h>
17494 #include <sys/resource.h>
17495 #include <unistd.h>
17496
17497
17498 $gl_mda_defines
17499
17500 #ifndef RLIM_SAVED_CUR
17501 # define RLIM_SAVED_CUR RLIM_INFINITY
17502 #endif
17503 #ifndef RLIM_SAVED_MAX
17504 # define RLIM_SAVED_MAX RLIM_INFINITY
17505 #endif
17506
17507 int
17508 main (void)
17509 {
17510 int result = 0;
17511 int bad_fd = INT_MAX;
17512 struct rlimit rlim;
17513 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
17514 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
17515 && rlim.rlim_cur != RLIM_INFINITY
17516 && rlim.rlim_cur != RLIM_SAVED_MAX
17517 && rlim.rlim_cur != RLIM_SAVED_CUR)
17518 bad_fd = rlim.rlim_cur;
17519 #ifdef FD_CLOEXEC
17520 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
17521 result |= 1;
17522 #endif
17523 if (dup2 (1, 1) != 1)
17524 result |= 2;
17525 #ifdef FD_CLOEXEC
17526 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
17527 result |= 4;
17528 #endif
17529 close (0);
17530 if (dup2 (0, 0) != -1)
17531 result |= 8;
17532 /* Many gnulib modules require POSIX conformance of EBADF. */
17533 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
17534 result |= 16;
17535 /* Flush out some cygwin core dumps. */
17536 if (dup2 (2, -1) != -1 || errno != EBADF)
17537 result |= 32;
17538 dup2 (2, 255);
17539 dup2 (2, 256);
17540 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
17541 {
17542 int fd = open (".", O_RDONLY);
17543 if (fd == -1)
17544 result |= 64;
17545 else if (dup2 (fd, fd + 1) == -1)
17546 result |= 128;
17547 close (fd);
17548 }
17549 return result;
17550 ;
17551 return 0;
17552 }
17553
17554 _ACEOF
17555 if ac_fn_c_try_run "$LINENO"
17556 then :
17557 gl_cv_func_dup2_works=yes
17558 else case e in #(
17559 e) gl_cv_func_dup2_works=no ;;
17560 esac
17561 fi
17562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17563 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17564 esac
17565 fi
17566
17567 ;;
17568 esac
17569 fi
17570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
17571 printf "%s\n" "$gl_cv_func_dup2_works" >&6; }
17572 case "$gl_cv_func_dup2_works" in
17573 *yes) ;;
17574 *)
17575 REPLACE_DUP2=1
17576 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
17577 if test "x$ac_cv_func_setdtablesize" = xyes
17578 then :
17579 printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
17580
17581 fi
17582
17583 ;;
17584 esac
17585
17586
17587
17588 if test $REPLACE_DUP2 = 1; then
17589 GL_COND_OBJ_DUP2_TRUE=
17590 GL_COND_OBJ_DUP2_FALSE='#'
17591 else
17592 GL_COND_OBJ_DUP2_TRUE='#'
17593 GL_COND_OBJ_DUP2_FALSE=
17594 fi
17595 :
17596 if test -z "${GL_COND_OBJ_DUP2_TRUE}" && test -z "${GL_COND_OBJ_DUP2_FALSE}"; then
17597 GL_COND_OBJ_DUP2_TRUE='#'
17598 GL_COND_OBJ_DUP2_FALSE='#'
17599 fi
17600
17601 if test -z "$GL_COND_OBJ_DUP2_TRUE"; then :
17602
17603
17604
17605 fi
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615 GL_GNULIB_DUP2=1
17616
17617
17618
17619
17620
17621 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h
17622
17623
17624
17625
17626
17627
17628
17629
17630 case "$GL_GENERATE_ERRNO_H" in
17631 false) ERRNO_H='' ;;
17632 true)
17633 if test -z "$ERRNO_H"; then
17634 ERRNO_H="${gl_source_base_prefix}errno.h"
17635 fi
17636 ;;
17637 *) echo "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;;
17638 esac
17639
17640
17641 if $GL_GENERATE_ERRNO_H; then
17642 GL_GENERATE_ERRNO_H_TRUE=
17643 GL_GENERATE_ERRNO_H_FALSE='#'
17644 else
17645 GL_GENERATE_ERRNO_H_TRUE='#'
17646 GL_GENERATE_ERRNO_H_FALSE=
17647 fi
17648 :
17649 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
17650 GL_GENERATE_ERRNO_H_TRUE='#'
17651 GL_GENERATE_ERRNO_H_FALSE='#'
17652 fi
17653
17654
17655
17656
17657
17658
17659
17660
17661
17662
17663 if test $COMPILE_ERROR_C = 1; then
17664 GL_COND_OBJ_ERROR_TRUE=
17665 GL_COND_OBJ_ERROR_FALSE='#'
17666 else
17667 GL_COND_OBJ_ERROR_TRUE='#'
17668 GL_COND_OBJ_ERROR_FALSE=
17669 fi
17670 :
17671 if test -z "${GL_COND_OBJ_ERROR_TRUE}" && test -z "${GL_COND_OBJ_ERROR_FALSE}"; then
17672 GL_COND_OBJ_ERROR_TRUE='#'
17673 GL_COND_OBJ_ERROR_FALSE='#'
17674 fi
17675
17676 if test -z "$GL_COND_OBJ_ERROR_TRUE"; then :
17677
17678
17679
17680
17681
17682 :
17683
17684
17685 fi
17686
17687
17688
17689
17690
17691
17692
17693
17694
17695 if test $ac_cv_func_fcntl = no; then
17696
17697
17698
17699 if test $ac_cv_func_fcntl = no; then
17700 HAVE_FCNTL=0
17701 else
17702 REPLACE_FCNTL=1
17703 fi
17704
17705 else
17706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
17707 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; }
17708 if test ${gl_cv_func_fcntl_f_dupfd_works+y}
17709 then :
17710 printf %s "(cached) " >&6
17711 else case e in #(
17712 e) if test "$cross_compiling" = yes
17713 then :
17714 case $host_os in
17715 aix* | cygwin* | haiku*)
17716 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
17717 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
17718 esac
17719 else case e in #(
17720 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17721 /* end confdefs.h. */
17722 #include <errno.h>
17723 #include <fcntl.h>
17724 #include <limits.h>
17725 #include <sys/resource.h>
17726 #include <unistd.h>
17727
17728
17729 $gl_mda_defines
17730
17731 #ifndef RLIM_SAVED_CUR
17732 # define RLIM_SAVED_CUR RLIM_INFINITY
17733 #endif
17734 #ifndef RLIM_SAVED_MAX
17735 # define RLIM_SAVED_MAX RLIM_INFINITY
17736 #endif
17737
17738 int
17739 main (void)
17740 {
17741 int result = 0;
17742 int bad_fd = INT_MAX;
17743 struct rlimit rlim;
17744 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
17745 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
17746 && rlim.rlim_cur != RLIM_INFINITY
17747 && rlim.rlim_cur != RLIM_SAVED_MAX
17748 && rlim.rlim_cur != RLIM_SAVED_CUR)
17749 bad_fd = rlim.rlim_cur;
17750 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
17751 if (errno != EINVAL) result |= 2;
17752 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
17753 if (errno != EINVAL) result |= 8;
17754 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
17755 {
17756 int fd;
17757 fd = open (".", O_RDONLY);
17758 if (fd == -1)
17759 result |= 16;
17760 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
17761 result |= 32;
17762
17763 close (fd);
17764 }
17765 return result;
17766 ;
17767 return 0;
17768 }
17769 _ACEOF
17770 if ac_fn_c_try_run "$LINENO"
17771 then :
17772 gl_cv_func_fcntl_f_dupfd_works=yes
17773 else case e in #(
17774 e) gl_cv_func_fcntl_f_dupfd_works=no ;;
17775 esac
17776 fi
17777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17778 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17779 esac
17780 fi
17781 ;;
17782 esac
17783 fi
17784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
17785 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
17786 case $gl_cv_func_fcntl_f_dupfd_works in
17787 *yes) ;;
17788 *)
17789
17790
17791 if test $ac_cv_func_fcntl = no; then
17792 HAVE_FCNTL=0
17793 else
17794 REPLACE_FCNTL=1
17795 fi
17796
17797
17798 printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
17799 ;;
17800 esac
17801
17802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
17803 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
17804 if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y}
17805 then :
17806 printf %s "(cached) " >&6
17807 else case e in #(
17808 e) if test "$cross_compiling" = yes
17809 then :
17810 case "$host_os" in
17811 # Guess no on NetBSD.
17812 netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;;
17813 *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;;
17814 esac
17815
17816 else case e in #(
17817 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17818 /* end confdefs.h. */
17819 #include <fcntl.h>
17820 #include <unistd.h>
17821 int main (int argc, char *argv[])
17822 {
17823 if (argc == 1)
17824 /* parent process */
17825 {
17826 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
17827 return 1;
17828 return execl ("./conftest", "./conftest", "child", NULL);
17829 }
17830 else
17831 /* child process */
17832 return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
17833 }
17834
17835
17836 _ACEOF
17837 if ac_fn_c_try_run "$LINENO"
17838 then :
17839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17840 /* end confdefs.h. */
17841
17842 #ifdef __linux__
17843 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
17844 it to support the semantics on older kernels that failed with EINVAL. */
17845 choke me
17846 #endif
17847
17848 int
17849 main (void)
17850 {
17851
17852 ;
17853 return 0;
17854 }
17855 _ACEOF
17856 if ac_fn_c_try_compile "$LINENO"
17857 then :
17858 gl_cv_func_fcntl_f_dupfd_cloexec=yes
17859 else case e in #(
17860 e) gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check" ;;
17861 esac
17862 fi
17863 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17864
17865 else case e in #(
17866 e) gl_cv_func_fcntl_f_dupfd_cloexec=no ;;
17867 esac
17868 fi
17869 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17870 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
17871 esac
17872 fi
17873
17874 ;;
17875 esac
17876 fi
17877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
17878 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
17879 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
17880 *yes) ;;
17881 *)
17882
17883
17884 if test $ac_cv_func_fcntl = no; then
17885 HAVE_FCNTL=0
17886 else
17887 REPLACE_FCNTL=1
17888 fi
17889
17890 ;;
17891 esac
17892 fi
17893
17894
17895
17896 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
17897 GL_COND_OBJ_FCNTL_TRUE=
17898 GL_COND_OBJ_FCNTL_FALSE='#'
17899 else
17900 GL_COND_OBJ_FCNTL_TRUE='#'
17901 GL_COND_OBJ_FCNTL_FALSE=
17902 fi
17903 :
17904 if test -z "${GL_COND_OBJ_FCNTL_TRUE}" && test -z "${GL_COND_OBJ_FCNTL_FALSE}"; then
17905 GL_COND_OBJ_FCNTL_TRUE='#'
17906 GL_COND_OBJ_FCNTL_FALSE='#'
17907 fi
17908
17909
17910
17911
17912
17913
17914
17915
17916
17917
17918 GL_GNULIB_FCNTL=1
17919
17920
17921
17922
17923
17924 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
17925
17926
17927
17928
17929
17930
17931
17932
17933
17934
17935
17936
17937
17938 if test $REPLACE_FCLOSE = 1; then
17939 REPLACE_FOPEN=1
17940 fi
17941
17942 if test $REPLACE_FOPEN = 1; then
17943
17944
17945
17946
17947
17948
17949
17950
17951 gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext"
17952
17953 :
17954 fi
17955
17956
17957
17958
17959
17960
17961
17962
17963
17964 GL_GNULIB_FOPEN=1
17965
17966
17967
17968
17969
17970 printf "%s\n" "#define GNULIB_TEST_FOPEN 1" >>confdefs.h
17971
17972
17973
17974
17975
17976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'x'" >&5
17977 printf %s "checking whether fopen supports the mode character 'x'... " >&6; }
17978 if test ${gl_cv_func_fopen_mode_x+y}
17979 then :
17980 printf %s "(cached) " >&6
17981 else case e in #(
17982 e) rm -f conftest.x
17983 if test "$cross_compiling" = yes
17984 then :
17985 case "$host_os" in
17986 # Guess yes on glibc and musl systems.
17987 linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl* | midipix*)
17988 gl_cv_func_fopen_mode_x="guessing yes" ;;
17989 # If we don't know, obey --enable-cross-guesses.
17990 *)
17991 gl_cv_func_fopen_mode_x="$gl_cross_guess_normal" ;;
17992 esac
17993
17994 else case e in #(
17995 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17996 /* end confdefs.h. */
17997
17998 #include <stdio.h>
17999 #include <errno.h>
18000 int main ()
18001 {
18002 FILE *fp;
18003 fp = fopen ("conftest.x", "w");
18004 fclose (fp);
18005 fp = fopen ("conftest.x", "wx");
18006 if (fp != NULL)
18007 /* 'x' ignored */
18008 return 1;
18009 else if (errno == EEXIST)
18010 return 0;
18011 else
18012 /* 'x' rejected */
18013 return 2;
18014 }
18015 _ACEOF
18016 if ac_fn_c_try_run "$LINENO"
18017 then :
18018 gl_cv_func_fopen_mode_x=yes
18019 else case e in #(
18020 e) gl_cv_func_fopen_mode_x=no ;;
18021 esac
18022 fi
18023 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18024 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18025 esac
18026 fi
18027
18028 rm -f conftest.x
18029 ;;
18030 esac
18031 fi
18032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_x" >&5
18033 printf "%s\n" "$gl_cv_func_fopen_mode_x" >&6; }
18034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fopen supports the mode character 'e'" >&5
18035 printf %s "checking whether fopen supports the mode character 'e'... " >&6; }
18036 if test ${gl_cv_func_fopen_mode_e+y}
18037 then :
18038 printf %s "(cached) " >&6
18039 else case e in #(
18040 e) echo foo > conftest.x
18041 if test "$cross_compiling" = yes
18042 then :
18043 case "$host_os" in
18044 # Guess yes on glibc and musl systems.
18045 linux*-gnu* | gnu* | kfreebsd*-gnu | *-musl* | midipix*)
18046 gl_cv_func_fopen_mode_e="guessing yes" ;;
18047 # Guess no on native Windows.
18048 mingw* | windows*)
18049 gl_cv_func_fopen_mode_e="guessing no" ;;
18050 # If we don't know, obey --enable-cross-guesses.
18051 *)
18052 gl_cv_func_fopen_mode_e="$gl_cross_guess_normal" ;;
18053 esac
18054
18055 else case e in #(
18056 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18057 /* end confdefs.h. */
18058
18059 #include <stdio.h>
18060 #include <errno.h>
18061 #include <fcntl.h>
18062
18063
18064 $gl_mda_defines
18065
18066 int main ()
18067 {
18068 FILE *fp = fopen ("conftest.x", "re");
18069 if (fp != NULL)
18070 {
18071 if (fcntl (fileno (fp), F_GETFD) & FD_CLOEXEC)
18072 return 0;
18073 else
18074 /* 'e' ignored */
18075 return 1;
18076 }
18077 else
18078 /* 'e' rejected */
18079 return 2;
18080 }
18081 _ACEOF
18082 if ac_fn_c_try_run "$LINENO"
18083 then :
18084 gl_cv_func_fopen_mode_e=yes
18085 else case e in #(
18086 e) gl_cv_func_fopen_mode_e=no ;;
18087 esac
18088 fi
18089 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18090 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18091 esac
18092 fi
18093
18094 rm -f conftest.x
18095 ;;
18096 esac
18097 fi
18098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fopen_mode_e" >&5
18099 printf "%s\n" "$gl_cv_func_fopen_mode_e" >&6; }
18100 REPLACE_FOPEN_FOR_FOPEN_GNU="$REPLACE_FOPEN"
18101 case "$gl_cv_func_fopen_mode_x" in
18102 *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;;
18103 esac
18104 case "$gl_cv_func_fopen_mode_e" in
18105 *no) REPLACE_FOPEN_FOR_FOPEN_GNU=1 ;;
18106 esac
18107
18108 if test $REPLACE_FOPEN_FOR_FOPEN_GNU = 1; then
18109
18110
18111
18112
18113
18114
18115
18116
18117 gl_LIBOBJS="$gl_LIBOBJS fopen.$ac_objext"
18118
18119 :
18120 fi
18121
18122
18123 printf "%s\n" "#define GNULIB_FOPEN_GNU 1" >>confdefs.h
18124
18125
18126
18127
18128
18129
18130
18131
18132
18133
18134
18135 GL_GNULIB_FOPEN_GNU=1
18136
18137
18138
18139
18140
18141 printf "%s\n" "#define GNULIB_TEST_FOPEN_GNU 1" >>confdefs.h
18142
18143
18144
18145
18146
18147
18148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
18149 printf %s "checking whether free is known to preserve errno... " >&6; }
18150 if test ${gl_cv_func_free_preserves_errno+y}
18151 then :
18152 printf %s "(cached) " >&6
18153 else case e in #(
18154 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18155 /* end confdefs.h. */
18156 #include <stdlib.h>
18157
18158 int
18159 main (void)
18160 {
18161 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
18162 #elif defined __OpenBSD__
18163 #elif defined __sun
18164 #else
18165 #error "'free' is not known to preserve errno"
18166 #endif
18167
18168 ;
18169 return 0;
18170 }
18171 _ACEOF
18172 if ac_fn_c_try_compile "$LINENO"
18173 then :
18174 gl_cv_func_free_preserves_errno=yes
18175 else case e in #(
18176 e) gl_cv_func_free_preserves_errno=no ;;
18177 esac
18178 fi
18179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18180 ;;
18181 esac
18182 fi
18183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
18184 printf "%s\n" "$gl_cv_func_free_preserves_errno" >&6; }
18185
18186 case $gl_cv_func_free_preserves_errno in
18187 *yes)
18188
18189 printf "%s\n" "#define HAVE_FREE_POSIX 1" >>confdefs.h
18190
18191 ;;
18192 *) REPLACE_FREE=1 ;;
18193 esac
18194
18195
18196 if test $REPLACE_FREE = 1; then
18197 GL_COND_OBJ_FREE_TRUE=
18198 GL_COND_OBJ_FREE_FALSE='#'
18199 else
18200 GL_COND_OBJ_FREE_TRUE='#'
18201 GL_COND_OBJ_FREE_FALSE=
18202 fi
18203 :
18204 if test -z "${GL_COND_OBJ_FREE_TRUE}" && test -z "${GL_COND_OBJ_FREE_FALSE}"; then
18205 GL_COND_OBJ_FREE_TRUE='#'
18206 GL_COND_OBJ_FREE_FALSE='#'
18207 fi
18208
18209 if test -z "$GL_COND_OBJ_FREE_TRUE"; then :
18210
18211 :
18212
18213 fi
18214
18215
18216
18217
18218
18219
18220
18221
18222
18223 GL_GNULIB_FREE_POSIX=1
18224
18225
18226
18227
18228
18229 printf "%s\n" "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
18230
18231
18232
18233
18234
18235
18236
18237 case "$host_os" in
18238 darwin* | mingw* | windows* | solaris*)
18239 REPLACE_FSTAT=1
18240 ;;
18241 esac
18242
18243
18244
18245
18246 if test $REPLACE_FSTAT = 1; then
18247 GL_COND_OBJ_FSTAT_TRUE=
18248 GL_COND_OBJ_FSTAT_FALSE='#'
18249 else
18250 GL_COND_OBJ_FSTAT_TRUE='#'
18251 GL_COND_OBJ_FSTAT_FALSE=
18252 fi
18253 :
18254 if test -z "${GL_COND_OBJ_FSTAT_TRUE}" && test -z "${GL_COND_OBJ_FSTAT_FALSE}"; then
18255 GL_COND_OBJ_FSTAT_TRUE='#'
18256 GL_COND_OBJ_FSTAT_FALSE='#'
18257 fi
18258
18259 if test -z "$GL_COND_OBJ_FSTAT_TRUE"; then :
18260
18261 case "$host_os" in
18262 mingw* | windows*)
18263
18264
18265
18266
18267
18268
18269
18270
18271 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
18272
18273 ;;
18274 esac
18275
18276
18277
18278 :
18279
18280
18281 fi
18282
18283
18284
18285
18286
18287
18288
18289
18290
18291 GL_GNULIB_FSTAT=1
18292
18293
18294
18295
18296
18297 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
18298
18299
18300
18301
18302
18303 printf "%s\n" "#define GNULIB_FSTAT 1" >>confdefs.h
18304
18305
18306
18307
18308
18309 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
18310 REPLACE_FTELL=1
18311 fi
18312
18313
18314 if test $REPLACE_FTELL = 1; then
18315 GL_COND_OBJ_FTELL_TRUE=
18316 GL_COND_OBJ_FTELL_FALSE='#'
18317 else
18318 GL_COND_OBJ_FTELL_TRUE='#'
18319 GL_COND_OBJ_FTELL_FALSE=
18320 fi
18321 :
18322 if test -z "${GL_COND_OBJ_FTELL_TRUE}" && test -z "${GL_COND_OBJ_FTELL_FALSE}"; then
18323 GL_COND_OBJ_FTELL_TRUE='#'
18324 GL_COND_OBJ_FTELL_FALSE='#'
18325 fi
18326
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336 GL_GNULIB_FTELL=1
18337
18338
18339
18340
18341
18342 printf "%s\n" "#define GNULIB_TEST_FTELL 1" >>confdefs.h
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355 if test $ac_cv_have_decl_ftello = no; then
18356 HAVE_DECL_FTELLO=0
18357 fi
18358
18359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ftello" >&5
18360 printf %s "checking for ftello... " >&6; }
18361 if test ${gl_cv_func_ftello+y}
18362 then :
18363 printf %s "(cached) " >&6
18364 else case e in #(
18365 e)
18366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18367 /* end confdefs.h. */
18368 #include <stdio.h>
18369 int
18370 main (void)
18371 {
18372 ftello (stdin);
18373 ;
18374 return 0;
18375 }
18376 _ACEOF
18377 if ac_fn_c_try_link "$LINENO"
18378 then :
18379 gl_cv_func_ftello=yes
18380 else case e in #(
18381 e) gl_cv_func_ftello=no ;;
18382 esac
18383 fi
18384 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18385 conftest$ac_exeext conftest.$ac_ext
18386 ;;
18387 esac
18388 fi
18389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello" >&5
18390 printf "%s\n" "$gl_cv_func_ftello" >&6; }
18391 if test $gl_cv_func_ftello = no; then
18392 HAVE_FTELLO=0
18393 else
18394 if test $WINDOWS_64_BIT_OFF_T = 1; then
18395 REPLACE_FTELLO=1
18396 fi
18397 if test $gl_cv_var_stdin_large_offset = no; then
18398 REPLACE_FTELLO=1
18399 fi
18400
18401 if test $REPLACE_FTELLO = 0; then
18402 case "$host_os" in
18403 mingw* | windows*) REPLACE_FTELLO=1 ;;
18404 esac
18405 fi
18406 if test $REPLACE_FTELLO = 0; then
18407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ftello works" >&5
18408 printf %s "checking whether ftello works... " >&6; }
18409 if test ${gl_cv_func_ftello_works+y}
18410 then :
18411 printf %s "(cached) " >&6
18412 else case e in #(
18413 e)
18414 case "$host_os" in
18415 # Guess no on Solaris.
18416 solaris*) gl_cv_func_ftello_works="guessing no" ;;
18417 # Guess yes on native Windows.
18418 mingw* | windows*) gl_cv_func_ftello_works="guessing yes" ;;
18419 # Guess yes otherwise.
18420 *) gl_cv_func_ftello_works="guessing yes" ;;
18421 esac
18422 if test "$cross_compiling" = yes
18423 then :
18424 :
18425 else case e in #(
18426 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18427 /* end confdefs.h. */
18428
18429 #include <stdio.h>
18430 #include <stdlib.h>
18431 #include <string.h>
18432 #define TESTFILE "conftest.tmp"
18433 int
18434 main (void)
18435 {
18436 FILE *fp;
18437
18438 /* Create a file with some contents. */
18439 fp = fopen (TESTFILE, "w");
18440 if (fp == NULL)
18441 return 70;
18442 if (fwrite ("foogarsh", 1, 8, fp) < 8)
18443 { fclose (fp); return 71; }
18444 if (fclose (fp))
18445 return 72;
18446
18447 /* The file's contents is now "foogarsh". */
18448
18449 /* Try writing after reading to EOF. */
18450 fp = fopen (TESTFILE, "r+");
18451 if (fp == NULL)
18452 return 73;
18453 if (fseek (fp, -1, SEEK_END))
18454 { fclose (fp); return 74; }
18455 if (!(getc (fp) == 'h'))
18456 { fclose (fp); return 1; }
18457 if (!(getc (fp) == EOF))
18458 { fclose (fp); return 2; }
18459 if (!(ftell (fp) == 8))
18460 { fclose (fp); return 3; }
18461 if (!(ftell (fp) == 8))
18462 { fclose (fp); return 4; }
18463 if (!(putc ('!', fp) == '!'))
18464 { fclose (fp); return 5; }
18465 if (!(ftell (fp) == 9))
18466 { fclose (fp); return 6; }
18467 if (!(fclose (fp) == 0))
18468 return 7;
18469 fp = fopen (TESTFILE, "r");
18470 if (fp == NULL)
18471 return 75;
18472 {
18473 char buf[10];
18474 if (!(fread (buf, 1, 10, fp) == 9))
18475 { fclose (fp); return 10; }
18476 if (!(memcmp (buf, "foogarsh!", 9) == 0))
18477 { fclose (fp); return 11; }
18478 }
18479 if (!(fclose (fp) == 0))
18480 return 12;
18481
18482 /* The file's contents is now "foogarsh!". */
18483
18484 return 0;
18485 }
18486 _ACEOF
18487 if ac_fn_c_try_run "$LINENO"
18488 then :
18489 gl_cv_func_ftello_works=yes
18490 else case e in #(
18491 e) gl_cv_func_ftello_works=no ;;
18492 esac
18493 fi
18494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18495 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18496 esac
18497 fi
18498
18499 ;;
18500 esac
18501 fi
18502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_ftello_works" >&5
18503 printf "%s\n" "$gl_cv_func_ftello_works" >&6; }
18504 case "$gl_cv_func_ftello_works" in
18505 *yes) ;;
18506 *)
18507 REPLACE_FTELLO=1
18508
18509 printf "%s\n" "#define FTELLO_BROKEN_AFTER_SWITCHING_FROM_READ_TO_WRITE 1" >>confdefs.h
18510
18511 ;;
18512 esac
18513 fi
18514 if test $REPLACE_FTELLO = 0; then
18515
18516 if test $gl_ftello_broken_after_ungetc = yes; then
18517 REPLACE_FTELLO=1
18518
18519 printf "%s\n" "#define FTELLO_BROKEN_AFTER_UNGETC 1" >>confdefs.h
18520
18521 fi
18522 fi
18523 fi
18524
18525
18526 if test $HAVE_FTELLO = 0 || test $REPLACE_FTELLO = 1; then
18527 GL_COND_OBJ_FTELLO_TRUE=
18528 GL_COND_OBJ_FTELLO_FALSE='#'
18529 else
18530 GL_COND_OBJ_FTELLO_TRUE='#'
18531 GL_COND_OBJ_FTELLO_FALSE=
18532 fi
18533 :
18534 if test -z "${GL_COND_OBJ_FTELLO_TRUE}" && test -z "${GL_COND_OBJ_FTELLO_FALSE}"; then
18535 GL_COND_OBJ_FTELLO_TRUE='#'
18536 GL_COND_OBJ_FTELLO_FALSE='#'
18537 fi
18538
18539 if test -z "$GL_COND_OBJ_FTELLO_TRUE"; then :
18540
18541
18542 if test $gl_cv_func_ftello != no; then
18543
18544 printf "%s\n" "#define HAVE_FTELLO 1" >>confdefs.h
18545
18546 fi
18547 ac_fn_c_check_func "$LINENO" "_ftelli64" "ac_cv_func__ftelli64"
18548 if test "x$ac_cv_func__ftelli64" = xyes
18549 then :
18550 printf "%s\n" "#define HAVE__FTELLI64 1" >>confdefs.h
18551
18552 fi
18553
18554
18555
18556 fi
18557
18558
18559
18560
18561
18562
18563
18564
18565
18566 GL_GNULIB_FTELLO=1
18567
18568
18569
18570
18571
18572 printf "%s\n" "#define GNULIB_TEST_FTELLO 1" >>confdefs.h
18573
18574
18575
18576
18577
18578
18579
18580
18581 if test $ac_cv_func_getdtablesize = yes &&
18582 test $ac_cv_have_decl_getdtablesize = yes; then
18583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
18584 printf %s "checking whether getdtablesize works... " >&6; }
18585 if test ${gl_cv_func_getdtablesize_works+y}
18586 then :
18587 printf %s "(cached) " >&6
18588 else case e in #(
18589 e) case "$host_os" in
18590 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
18591 *)
18592 if test "$cross_compiling" = yes
18593 then :
18594 case "$host_os" in
18595 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
18596 gl_cv_func_getdtablesize_works="guessing no" ;;
18597 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
18598 esac
18599
18600 else case e in #(
18601 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18602 /* end confdefs.h. */
18603
18604 #include <unistd.h>
18605
18606
18607 $gl_mda_defines
18608
18609
18610 int
18611 main (void)
18612 {
18613 int size = getdtablesize();
18614 if (dup2 (0, getdtablesize()) != -1)
18615 return 1;
18616 if (size != getdtablesize())
18617 return 2;
18618
18619 ;
18620 return 0;
18621 }
18622 _ACEOF
18623 if ac_fn_c_try_run "$LINENO"
18624 then :
18625 gl_cv_func_getdtablesize_works=yes
18626 else case e in #(
18627 e) gl_cv_func_getdtablesize_works=no ;;
18628 esac
18629 fi
18630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18631 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
18632 esac
18633 fi
18634
18635 ;;
18636 esac
18637 ;;
18638 esac
18639 fi
18640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
18641 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; }
18642 case "$gl_cv_func_getdtablesize_works" in
18643 *yes | "no (limitation)") ;;
18644 *) REPLACE_GETDTABLESIZE=1 ;;
18645 esac
18646 else
18647 HAVE_GETDTABLESIZE=0
18648 fi
18649
18650
18651 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
18652 GL_COND_OBJ_GETDTABLESIZE_TRUE=
18653 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
18654 else
18655 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
18656 GL_COND_OBJ_GETDTABLESIZE_FALSE=
18657 fi
18658 :
18659 if test -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then
18660 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
18661 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
18662 fi
18663
18664 if test -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then :
18665
18666 :
18667
18668 fi
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678 GL_GNULIB_GETDTABLESIZE=1
18679
18680
18681
18682
18683
18684 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
18685
18686
18687
18688
18689
18690
18691
18692
18693
18694
18695
18696
18697 REPLACE_GETOPT=0
18698 if test -n "$gl_replace_getopt"; then
18699 REPLACE_GETOPT=1
18700 fi
18701
18702 GL_GENERATE_GETOPT_H=false
18703 GL_GENERATE_GETOPT_CDEFS_H=false
18704 if test $REPLACE_GETOPT = 1; then
18705
18706
18707
18708 printf "%s\n" "#define __GETOPT_PREFIX rpl_" >>confdefs.h
18709
18710 GL_GENERATE_GETOPT_H=true
18711 GL_GENERATE_GETOPT_CDEFS_H=true
18712
18713 fi
18714
18715
18716
18717
18718
18719 case "$GL_GENERATE_GETOPT_H" in
18720 false) GETOPT_H='' ;;
18721 true)
18722 if test -z "$GETOPT_H"; then
18723 GETOPT_H="${gl_source_base_prefix}getopt.h"
18724 fi
18725 ;;
18726 *) echo "*** GL_GENERATE_GETOPT_H is not set correctly" 1>&2; exit 1 ;;
18727 esac
18728
18729
18730 if $GL_GENERATE_GETOPT_H; then
18731 GL_GENERATE_GETOPT_H_TRUE=
18732 GL_GENERATE_GETOPT_H_FALSE='#'
18733 else
18734 GL_GENERATE_GETOPT_H_TRUE='#'
18735 GL_GENERATE_GETOPT_H_FALSE=
18736 fi
18737 :
18738 if test -z "${GL_GENERATE_GETOPT_H_TRUE}" && test -z "${GL_GENERATE_GETOPT_H_FALSE}"; then
18739 GL_GENERATE_GETOPT_H_TRUE='#'
18740 GL_GENERATE_GETOPT_H_FALSE='#'
18741 fi
18742
18743
18744
18745
18746
18747
18748
18749
18750
18751 case "$GL_GENERATE_GETOPT_CDEFS_H" in
18752 false) GETOPT_CDEFS_H='' ;;
18753 true)
18754 if test -z "$GETOPT_CDEFS_H"; then
18755 GETOPT_CDEFS_H="${gl_source_base_prefix}getopt-cdefs.h"
18756 fi
18757 ;;
18758 *) echo "*** GL_GENERATE_GETOPT_CDEFS_H is not set correctly" 1>&2; exit 1 ;;
18759 esac
18760
18761
18762 if $GL_GENERATE_GETOPT_CDEFS_H; then
18763 GL_GENERATE_GETOPT_CDEFS_H_TRUE=
18764 GL_GENERATE_GETOPT_CDEFS_H_FALSE='#'
18765 else
18766 GL_GENERATE_GETOPT_CDEFS_H_TRUE='#'
18767 GL_GENERATE_GETOPT_CDEFS_H_FALSE=
18768 fi
18769 :
18770 if test -z "${GL_GENERATE_GETOPT_CDEFS_H_TRUE}" && test -z "${GL_GENERATE_GETOPT_CDEFS_H_FALSE}"; then
18771 GL_GENERATE_GETOPT_CDEFS_H_TRUE='#'
18772 GL_GENERATE_GETOPT_CDEFS_H_FALSE='#'
18773 fi
18774
18775
18776
18777
18778
18779
18780
18781 if test $REPLACE_GETOPT = 1; then
18782 GL_COND_OBJ_GETOPT_TRUE=
18783 GL_COND_OBJ_GETOPT_FALSE='#'
18784 else
18785 GL_COND_OBJ_GETOPT_TRUE='#'
18786 GL_COND_OBJ_GETOPT_FALSE=
18787 fi
18788 :
18789 if test -z "${GL_COND_OBJ_GETOPT_TRUE}" && test -z "${GL_COND_OBJ_GETOPT_FALSE}"; then
18790 GL_COND_OBJ_GETOPT_TRUE='#'
18791 GL_COND_OBJ_GETOPT_FALSE='#'
18792 fi
18793
18794 if test -z "$GL_COND_OBJ_GETOPT_TRUE"; then :
18795
18796
18797
18798
18799
18800
18801
18802 GL_GNULIB_UNISTD_H_GETOPT=1
18803
18804
18805
18806 fi
18807
18808
18809
18810
18811
18812
18813
18814
18815
18816 GL_GNULIB_GETOPT_POSIX=1
18817
18818
18819
18820
18821
18822 printf "%s\n" "#define GNULIB_TEST_GETOPT_POSIX 1" >>confdefs.h
18823
18824
18825
18826
18827
18828
18829
18830
18831
18832
18833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprogname" >&5
18834 printf %s "checking for getprogname... " >&6; }
18835 if test ${gl_cv_onwards_func_getprogname+y}
18836 then :
18837 printf %s "(cached) " >&6
18838 else case e in #(
18839 e)
18840 exec 9>&6 6>/dev/null
18841
18842 case "$host_os" in
18843
18844 linux*-android*)
18845 ac_fn_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "#include <stdlib.h>
18846 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18847 if test "x$ac_cv_have_decl_getprogname" = xyes
18848 then :
18849
18850 fi
18851 if test $ac_cv_have_decl_getprogname = yes; then
18852 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
18853 if test "x$ac_cv_func_getprogname" = xyes
18854 then :
18855
18856 fi
18857
18858 if test $ac_cv_func_getprogname = yes; then
18859 gl_cv_onwards_func_getprogname=yes
18860 else
18861 gl_cv_onwards_func_getprogname='future OS version'
18862 fi
18863 else
18864 gl_cv_onwards_func_getprogname='future OS version'
18865 fi
18866 ;;
18867
18868
18869 *)
18870 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
18871 if test "x$ac_cv_func_getprogname" = xyes
18872 then :
18873
18874 fi
18875
18876 gl_cv_onwards_func_getprogname=$ac_cv_func_getprogname
18877 ;;
18878
18879 esac
18880
18881 exec 6>&9 9>&-
18882
18883 ;;
18884 esac
18885 fi
18886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_getprogname" >&5
18887 printf "%s\n" "$gl_cv_onwards_func_getprogname" >&6; }
18888
18889 case "$gl_cv_onwards_func_getprogname" in
18890 future*) ac_cv_func_getprogname=no ;;
18891 *) ac_cv_func_getprogname=$gl_cv_onwards_func_getprogname ;;
18892 esac
18893 if test $ac_cv_func_getprogname = yes; then
18894
18895 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h
18896
18897 fi
18898
18899
18900 if test $ac_cv_func_getprogname = no; then
18901 HAVE_GETPROGNAME=0
18902 case "$gl_cv_onwards_func_getprogname" in
18903 future*) REPLACE_GETPROGNAME=1 ;;
18904 esac
18905 fi
18906 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
18907 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18908 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
18909 then :
18910 ac_have_decl=1
18911 else case e in #(
18912 e) ac_have_decl=0 ;;
18913 esac
18914 fi
18915 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
18916 if test $ac_have_decl = 1
18917 then :
18918
18919 else case e in #(
18920 e) HAVE_DECL_PROGRAM_INVOCATION_NAME=0 ;;
18921 esac
18922 fi
18923
18924
18925
18926 if test $HAVE_GETPROGNAME = 0 || test $REPLACE_GETPROGNAME = 1; then
18927 GL_COND_OBJ_GETPROGNAME_TRUE=
18928 GL_COND_OBJ_GETPROGNAME_FALSE='#'
18929 else
18930 GL_COND_OBJ_GETPROGNAME_TRUE='#'
18931 GL_COND_OBJ_GETPROGNAME_FALSE=
18932 fi
18933 :
18934 if test -z "${GL_COND_OBJ_GETPROGNAME_TRUE}" && test -z "${GL_COND_OBJ_GETPROGNAME_FALSE}"; then
18935 GL_COND_OBJ_GETPROGNAME_TRUE='#'
18936 GL_COND_OBJ_GETPROGNAME_FALSE='#'
18937 fi
18938
18939 if test -z "$GL_COND_OBJ_GETPROGNAME_TRUE"; then :
18940
18941
18942
18943
18944 ac_found=0
18945 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
18946 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18947 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
18948 then :
18949 ac_have_decl=1
18950 else case e in #(
18951 e) ac_have_decl=0 ;;
18952 esac
18953 fi
18954 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
18955 if test $ac_have_decl = 1
18956 then :
18957 ac_found=1
18958 fi
18959
18960 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
18961 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18962 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
18963 then :
18964 ac_have_decl=1
18965 else case e in #(
18966 e) ac_have_decl=0 ;;
18967 esac
18968 fi
18969 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
18970 if test $ac_have_decl = 1
18971 then :
18972 ac_found=1
18973 fi
18974
18975 ac_fn_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
18976 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18977 if test "x$ac_cv_have_decl___argv" = xyes
18978 then :
18979 ac_have_decl=1
18980 else case e in #(
18981 e) ac_have_decl=0 ;;
18982 esac
18983 fi
18984 printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h
18985 if test $ac_have_decl = 1
18986 then :
18987 ac_found=1
18988 fi
18989
18990
18991 # Incur the cost of this test only if none of the above worked.
18992 if test $ac_found = 0; then
18993 # On OpenBSD 5.1, using the global __progname variable appears to be
18994 # the only way to implement getprogname.
18995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
18996 printf %s "checking whether __progname is defined in default libraries... " >&6; }
18997 if test ${gl_cv_var___progname+y}
18998 then :
18999 printf %s "(cached) " >&6
19000 else case e in #(
19001 e)
19002 gl_cv_var___progname=
19003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19004 /* end confdefs.h. */
19005 extern char *__progname;
19006 int
19007 main (void)
19008 {
19009 return *__progname;
19010
19011 ;
19012 return 0;
19013 }
19014 _ACEOF
19015 if ac_fn_c_try_link "$LINENO"
19016 then :
19017 gl_cv_var___progname=yes
19018
19019 fi
19020 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19021 conftest$ac_exeext conftest.$ac_ext
19022
19023 ;;
19024 esac
19025 fi
19026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
19027 printf "%s\n" "$gl_cv_var___progname" >&6; }
19028 if test "$gl_cv_var___progname" = yes; then
19029
19030 printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
19031
19032 fi
19033 fi
19034
19035
19036 fi
19037
19038
19039
19040
19041
19042
19043
19044
19045
19046 GL_GNULIB_GETPROGNAME=1
19047
19048
19049
19050
19051
19052 printf "%s\n" "#define GNULIB_TEST_GETPROGNAME 1" >>confdefs.h
19053
19054
19055
19056
19057
19058
19059
19060 GNULIB_LOCALEDIR="${localedir}"
19061
19062 # Check whether --with-gnulib-prefix was given.
19063 if test ${with_gnulib_prefix+y}
19064 then :
19065 withval=$with_gnulib_prefix; if test "X$withval" != "X" && test "X$withval" != "Xno"; then
19066 GNULIB_LOCALEDIR="$withval/share/locale"
19067 fi
19068
19069 fi
19070
19071
19072
19073 gl_saved_prefix="${prefix}"
19074 gl_saved_datarootdir="${datarootdir}"
19075 gl_saved_localedir="${localedir}"
19076 gl_saved_gnuliblocaledir="${GNULIB_LOCALEDIR}"
19077 if test "X$prefix" = "XNONE"; then
19078 prefix="$ac_default_prefix"
19079 fi
19080 eval datarootdir="$datarootdir"
19081 eval localedir="$localedir"
19082 eval GNULIB_LOCALEDIR="$GNULIB_LOCALEDIR"
19083
19084
19085
19086
19087
19088 gl_final_GNULIB_LOCALEDIR="$GNULIB_LOCALEDIR"
19089 case "$build_os" in
19090 cygwin*)
19091 case "$host_os" in
19092 mingw* | windows*)
19093 gl_final_GNULIB_LOCALEDIR=`cygpath -w "$gl_final_GNULIB_LOCALEDIR"` ;;
19094 esac
19095 ;;
19096 esac
19097 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"`
19098 GNULIB_LOCALEDIR_c='"'"$GNULIB_LOCALEDIR_c"'"'
19099
19100
19101 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"`
19102 if test "$GNULIB_LOCALEDIR_c_make" = '\"'"${gl_final_GNULIB_LOCALEDIR}"'\"'; then
19103 GNULIB_LOCALEDIR_c_make='\"$(GNULIB_LOCALEDIR)\"'
19104 fi
19105
19106
19107 GNULIB_LOCALEDIR="${gl_saved_gnuliblocaledir}"
19108 localedir="${gl_saved_localedir}"
19109 datarootdir="${gl_saved_datarootdir}"
19110 prefix="${gl_saved_prefix}"
19111
19112
19113 printf "%s\n" "#define GNULIB_LOCALEDIR ${GNULIB_LOCALEDIR_c}" >>confdefs.h
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129 case "$GL_GENERATE_LIMITS_H" in
19130 false) LIMITS_H='' ;;
19131 true)
19132 if test -z "$LIMITS_H"; then
19133 LIMITS_H="${gl_source_base_prefix}limits.h"
19134 fi
19135 ;;
19136 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
19137 esac
19138
19139
19140 if $GL_GENERATE_LIMITS_H; then
19141 GL_GENERATE_LIMITS_H_TRUE=
19142 GL_GENERATE_LIMITS_H_FALSE='#'
19143 else
19144 GL_GENERATE_LIMITS_H_TRUE='#'
19145 GL_GENERATE_LIMITS_H_FALSE=
19146 fi
19147 :
19148 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
19149 GL_GENERATE_LIMITS_H_TRUE='#'
19150 GL_GENERATE_LIMITS_H_FALSE='#'
19151 fi
19152
19153
19154
19155
19156
19157
19158
19159
19160
19161
19162
19163
19164
19165
19166
19167
19168
19169
19170
19171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether lseek detects pipes" >&5
19172 printf %s "checking whether lseek detects pipes... " >&6; }
19173 if test ${gl_cv_func_lseek_pipe+y}
19174 then :
19175 printf %s "(cached) " >&6
19176 else case e in #(
19177 e) case "$host_os" in
19178 mingw* | windows*)
19179 gl_cv_func_lseek_pipe=no
19180 ;;
19181 *)
19182 if test $cross_compiling = no; then
19183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19184 /* end confdefs.h. */
19185
19186 #include <sys/types.h> /* for off_t */
19187 #include <stdio.h> /* for SEEK_CUR */
19188 #if HAVE_UNISTD_H
19189 # include <unistd.h>
19190 #else /* on Windows with MSVC */
19191 # include <io.h>
19192 #endif
19193
19194
19195 $gl_mda_defines
19196
19197 int
19198 main (void)
19199 {
19200
19201 /* Exit with success only if stdin is seekable. */
19202 return lseek (0, (off_t)0, SEEK_CUR) < 0;
19203
19204 ;
19205 return 0;
19206 }
19207 _ACEOF
19208 if ac_fn_c_try_link "$LINENO"
19209 then :
19210 if test -s conftest$ac_exeext \
19211 && ./conftest$ac_exeext < conftest.$ac_ext \
19212 && test 1 = "`echo hi \
19213 | { ./conftest$ac_exeext; echo $?; cat >/dev/null; }`"; then
19214 gl_cv_func_lseek_pipe=yes
19215 else
19216 gl_cv_func_lseek_pipe=no
19217 fi
19218
19219 else case e in #(
19220 e) gl_cv_func_lseek_pipe=no ;;
19221 esac
19222 fi
19223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19224 conftest$ac_exeext conftest.$ac_ext
19225 else
19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h. */
19228
19229 #if defined __BEOS__
19230 /* BeOS mistakenly return 0 when trying to seek on pipes. */
19231 Choke me.
19232 #endif
19233 _ACEOF
19234 if ac_fn_c_try_compile "$LINENO"
19235 then :
19236 gl_cv_func_lseek_pipe=yes
19237 else case e in #(
19238 e) gl_cv_func_lseek_pipe=no ;;
19239 esac
19240 fi
19241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19242 fi
19243 ;;
19244 esac
19245 ;;
19246 esac
19247 fi
19248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_pipe" >&5
19249 printf "%s\n" "$gl_cv_func_lseek_pipe" >&6; }
19250 if test "$gl_cv_func_lseek_pipe" = no; then
19251 REPLACE_LSEEK=1
19252
19253 printf "%s\n" "#define LSEEK_PIPE_BROKEN 1" >>confdefs.h
19254
19255 fi
19256
19257
19258 if test $WINDOWS_64_BIT_OFF_T = 1; then
19259 REPLACE_LSEEK=1
19260 fi
19261
19262 if test $REPLACE_LSEEK = 0
19263 then :
19264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether SEEK_DATA works but is incompatible with GNU" >&5
19265 printf %s "checking whether SEEK_DATA works but is incompatible with GNU... " >&6; }
19266 if test ${gl_cv_func_lseek_works_but_incompatible+y}
19267 then :
19268 printf %s "(cached) " >&6
19269 else case e in #(
19270 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19271 /* end confdefs.h. */
19272 #include <unistd.h>
19273 #if defined __APPLE__ && defined __MACH__ && defined SEEK_DATA
19274 # ifdef __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__
19275 # include <AvailabilityMacros.h>
19276 # endif
19277 # if 99990000 <= MAC_OS_X_VERSION_MIN_REQUIRED
19278 # define LSEEK_WORKS_BUT_IS_INCOMPATIBLE_WITH_GNU
19279 # endif
19280 #endif
19281 #ifndef LSEEK_WORKS_BUT_IS_INCOMPATIBLE_WITH_GNU
19282 #error "No need to work around the bug"
19283 #endif
19284
19285 _ACEOF
19286 if ac_fn_c_try_cpp "$LINENO"
19287 then :
19288 gl_cv_func_lseek_works_but_incompatible=yes
19289 else case e in #(
19290 e) gl_cv_func_lseek_works_but_incompatible=no ;;
19291 esac
19292 fi
19293 rm -f conftest.err conftest.i conftest.$ac_ext ;;
19294 esac
19295 fi
19296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_lseek_works_but_incompatible" >&5
19297 printf "%s\n" "$gl_cv_func_lseek_works_but_incompatible" >&6; }
19298 if test "$gl_cv_func_lseek_works_but_incompatible" = yes; then
19299 REPLACE_LSEEK=1
19300 fi
19301 fi
19302
19303
19304 if test $REPLACE_LSEEK = 1; then
19305 GL_COND_OBJ_LSEEK_TRUE=
19306 GL_COND_OBJ_LSEEK_FALSE='#'
19307 else
19308 GL_COND_OBJ_LSEEK_TRUE='#'
19309 GL_COND_OBJ_LSEEK_FALSE=
19310 fi
19311 :
19312 if test -z "${GL_COND_OBJ_LSEEK_TRUE}" && test -z "${GL_COND_OBJ_LSEEK_FALSE}"; then
19313 GL_COND_OBJ_LSEEK_TRUE='#'
19314 GL_COND_OBJ_LSEEK_FALSE='#'
19315 fi
19316
19317
19318
19319
19320
19321
19322
19323
19324
19325
19326 GL_GNULIB_LSEEK=1
19327
19328
19329
19330
19331
19332 printf "%s\n" "#define GNULIB_TEST_LSEEK 1" >>confdefs.h
19333
19334
19335
19336
19337 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
19338
19339
19340
19341
19342
19343
19344
19345
19346 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
19347
19348 fi
19349
19350
19351
19352
19353
19354
19355
19356
19357
19358 GL_GNULIB_MALLOC_POSIX=1
19359
19360
19361
19362
19363
19364 printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
19365
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memset_explicit" >&5
19378 printf %s "checking for memset_explicit... " >&6; }
19379 if test ${gl_cv_onwards_func_memset_explicit+y}
19380 then :
19381 printf %s "(cached) " >&6
19382 else case e in #(
19383 e)
19384 exec 9>&6 6>/dev/null
19385
19386 case "$host_os" in
19387
19388 linux*-android*)
19389 ac_fn_check_decl "$LINENO" "memset_explicit" "ac_cv_have_decl_memset_explicit" "#include <string.h>
19390 " "$ac_c_undeclared_builtin_options" "CFLAGS"
19391 if test "x$ac_cv_have_decl_memset_explicit" = xyes
19392 then :
19393
19394 fi
19395 if test $ac_cv_have_decl_memset_explicit = yes; then
19396 ac_fn_c_check_func "$LINENO" "memset_explicit" "ac_cv_func_memset_explicit"
19397 if test "x$ac_cv_func_memset_explicit" = xyes
19398 then :
19399
19400 fi
19401
19402 if test $ac_cv_func_memset_explicit = yes; then
19403 gl_cv_onwards_func_memset_explicit=yes
19404 else
19405 gl_cv_onwards_func_memset_explicit='future OS version'
19406 fi
19407 else
19408 gl_cv_onwards_func_memset_explicit='future OS version'
19409 fi
19410 ;;
19411
19412
19413 *)
19414 ac_fn_c_check_func "$LINENO" "memset_explicit" "ac_cv_func_memset_explicit"
19415 if test "x$ac_cv_func_memset_explicit" = xyes
19416 then :
19417
19418 fi
19419
19420 gl_cv_onwards_func_memset_explicit=$ac_cv_func_memset_explicit
19421 ;;
19422
19423 esac
19424
19425 exec 6>&9 9>&-
19426
19427 ;;
19428 esac
19429 fi
19430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_memset_explicit" >&5
19431 printf "%s\n" "$gl_cv_onwards_func_memset_explicit" >&6; }
19432
19433 case "$gl_cv_onwards_func_memset_explicit" in
19434 future*) ac_cv_func_memset_explicit=no ;;
19435 *) ac_cv_func_memset_explicit=$gl_cv_onwards_func_memset_explicit ;;
19436 esac
19437 if test $ac_cv_func_memset_explicit = yes; then
19438
19439 printf "%s\n" "#define HAVE_MEMSET_EXPLICIT 1" >>confdefs.h
19440
19441 fi
19442
19443
19444 if test $ac_cv_func_memset_explicit = no; then
19445 HAVE_MEMSET_EXPLICIT=0
19446 case "$gl_cv_onwards_func_memset_explicit" in
19447 future*) REPLACE_MEMSET_EXPLICIT=1 ;;
19448 esac
19449 fi
19450
19451
19452 if test $HAVE_MEMSET_EXPLICIT = 0 || test $REPLACE_MEMSET_EXPLICIT = 1; then
19453 GL_COND_OBJ_MEMSET_EXPLICIT_TRUE=
19454 GL_COND_OBJ_MEMSET_EXPLICIT_FALSE='#'
19455 else
19456 GL_COND_OBJ_MEMSET_EXPLICIT_TRUE='#'
19457 GL_COND_OBJ_MEMSET_EXPLICIT_FALSE=
19458 fi
19459 :
19460 if test -z "${GL_COND_OBJ_MEMSET_EXPLICIT_TRUE}" && test -z "${GL_COND_OBJ_MEMSET_EXPLICIT_FALSE}"; then
19461 GL_COND_OBJ_MEMSET_EXPLICIT_TRUE='#'
19462 GL_COND_OBJ_MEMSET_EXPLICIT_FALSE='#'
19463 fi
19464
19465 if test -z "$GL_COND_OBJ_MEMSET_EXPLICIT_TRUE"; then :
19466
19467
19468 ac_fn_c_check_func "$LINENO" "explicit_memset" "ac_cv_func_explicit_memset"
19469 if test "x$ac_cv_func_explicit_memset" = xyes
19470 then :
19471 printf "%s\n" "#define HAVE_EXPLICIT_MEMSET 1" >>confdefs.h
19472
19473 fi
19474
19475
19476 if test $ac_cv_func_memset_s = yes; then
19477 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working memset_s" >&5
19478 printf %s "checking for working memset_s... " >&6; }
19479 if test ${gl_cv_func_memset_s_works+y}
19480 then :
19481 printf %s "(cached) " >&6
19482 else case e in #(
19483 e) if test "$cross_compiling" = yes
19484 then :
19485 case "$host_os" in
19486 # Guess no on Solaris.
19487 solaris*)
19488 gl_cv_func_memset_s_works="guessing no" ;;
19489 *)
19490 gl_cv_func_memset_s_works="guessing yes" ;;
19491 esac
19492
19493 else case e in #(
19494 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19495 /* end confdefs.h. */
19496 #include <string.h>
19497 #include <stddef.h>
19498
19499 int
19500 main (void)
19501 {
19502
19503 (void) memset_s (NULL, 0, '?', 0);
19504
19505 ;
19506 return 0;
19507 }
19508
19509 _ACEOF
19510 if ac_fn_c_try_run "$LINENO"
19511 then :
19512 gl_cv_func_memset_s_works=yes
19513 else case e in #(
19514 e) gl_cv_func_memset_s_works=no ;;
19515 esac
19516 fi
19517 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19518 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19519 esac
19520 fi
19521
19522 ;;
19523 esac
19524 fi
19525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memset_s_works" >&5
19526 printf "%s\n" "$gl_cv_func_memset_s_works" >&6; }
19527 case "$gl_cv_func_memset_s_works" in
19528 *yes)
19529
19530 printf "%s\n" "#define HAVE_MEMSET_S_SUPPORTS_ZERO 1" >>confdefs.h
19531
19532 ;;
19533 esac
19534 fi
19535
19536
19537 fi
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548
19549
19550
19551
19552 GL_GNULIB_MEMSET_EXPLICIT=1
19553
19554
19555
19556
19557
19558 printf "%s\n" "#define GNULIB_TEST_MEMSET_EXPLICIT 1" >>confdefs.h
19559
19560
19561
19562
19563
19564 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19565 GL_COND_OBJ_MSVC_INVAL_TRUE=
19566 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
19567 else
19568 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
19569 GL_COND_OBJ_MSVC_INVAL_FALSE=
19570 fi
19571 :
19572 if test -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && test -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then
19573 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
19574 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
19575 fi
19576
19577
19578
19579 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
19580 GL_COND_OBJ_MSVC_NOTHROW_TRUE=
19581 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
19582 else
19583 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
19584 GL_COND_OBJ_MSVC_NOTHROW_FALSE=
19585 fi
19586 :
19587 if test -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && test -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then
19588 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
19589 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
19590 fi
19591
19592
19593
19594 printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h
19595
19596
19597
19598
19599
19600
19601 case "$host_os" in
19602 mingw* | windows* | pw*)
19603 REPLACE_OPEN=1
19604 ;;
19605 *)
19606
19607 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
19608 REPLACE_OPEN=1
19609 fi
19610
19611
19612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
19613 printf %s "checking whether open recognizes a trailing slash... " >&6; }
19614 if test ${gl_cv_func_open_slash+y}
19615 then :
19616 printf %s "(cached) " >&6
19617 else case e in #(
19618 e) # Assume that if we have lstat, we can also check symlinks.
19619 if test $ac_cv_func_lstat = yes; then
19620 touch conftest.tmp
19621 ln -s conftest.tmp conftest.lnk
19622 fi
19623 if test "$cross_compiling" = yes
19624 then :
19625
19626 case "$host_os" in
19627 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
19628 gl_cv_func_open_slash="guessing no" ;;
19629 *)
19630 gl_cv_func_open_slash="guessing yes" ;;
19631 esac
19632
19633 else case e in #(
19634 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19635 /* end confdefs.h. */
19636
19637 #include <fcntl.h>
19638 #if HAVE_UNISTD_H
19639 # include <unistd.h>
19640 #endif
19641
19642
19643 $gl_mda_defines
19644
19645 int main ()
19646 {
19647 int result = 0;
19648 #if HAVE_LSTAT
19649 if (open ("conftest.lnk/", O_RDONLY) != -1)
19650 result |= 1;
19651 #endif
19652 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
19653 result |= 2;
19654 return result;
19655 }
19656 _ACEOF
19657 if ac_fn_c_try_run "$LINENO"
19658 then :
19659 gl_cv_func_open_slash=yes
19660 else case e in #(
19661 e) gl_cv_func_open_slash=no ;;
19662 esac
19663 fi
19664 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19665 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19666 esac
19667 fi
19668
19669 rm -f conftest.sl conftest.tmp conftest.lnk
19670 ;;
19671 esac
19672 fi
19673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
19674 printf "%s\n" "$gl_cv_func_open_slash" >&6; }
19675 case "$gl_cv_func_open_slash" in
19676 *no)
19677
19678 printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
19679
19680 ;;
19681 esac
19682
19683 case "$gl_cv_func_open_slash" in
19684 *no)
19685 REPLACE_OPEN=1
19686 ;;
19687 esac
19688 ;;
19689 esac
19690
19691
19692
19693
19694 if test $REPLACE_OPEN = 1; then
19695 GL_COND_OBJ_OPEN_TRUE=
19696 GL_COND_OBJ_OPEN_FALSE='#'
19697 else
19698 GL_COND_OBJ_OPEN_TRUE='#'
19699 GL_COND_OBJ_OPEN_FALSE=
19700 fi
19701 :
19702 if test -z "${GL_COND_OBJ_OPEN_TRUE}" && test -z "${GL_COND_OBJ_OPEN_FALSE}"; then
19703 GL_COND_OBJ_OPEN_TRUE='#'
19704 GL_COND_OBJ_OPEN_FALSE='#'
19705 fi
19706
19707 if test -z "$GL_COND_OBJ_OPEN_TRUE"; then :
19708
19709
19710
19711 :
19712
19713
19714 fi
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724 GL_GNULIB_OPEN=1
19725
19726
19727
19728
19729
19730 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h
19731
19732
19733
19734
19735
19736
19737 :
19738
19739
19740
19741
19742 if test "$gl_cv_func_realloc_sanitize" != no; then
19743 REPLACE_REALLOC_FOR_REALLOC_POSIX=1
19744
19745 printf "%s\n" "#define NEED_SANITIZED_REALLOC 1" >>confdefs.h
19746
19747 else
19748 REPLACE_REALLOC_FOR_REALLOC_POSIX=$REPLACE_MALLOC_FOR_MALLOC_POSIX
19749 fi
19750
19751
19752
19753
19754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realloc (..., 0) returns nonnull" >&5
19755 printf %s "checking whether realloc (..., 0) returns nonnull... " >&6; }
19756 if test ${gl_cv_func_realloc_0_nonnull+y}
19757 then :
19758 printf %s "(cached) " >&6
19759 else case e in #(
19760 e) if test "$cross_compiling" = yes
19761 then :
19762 case $host_os in #(
19763 # Guess yes on platforms where we know the result.
19764 freebsd* | netbsd* | openbsd* | darwin* | bitrig* \
19765 | *-musl* | midipix* | midnightbsd* \
19766 | hpux* | solaris* | cygwin*) :
19767 gl_cv_func_realloc_0_nonnull="guessing yes" ;; #(
19768 *) :
19769 # Guess as follows if we don't know.
19770 gl_cv_func_realloc_0_nonnull=$gl_cross_guess_normal ;;
19771 esac
19772 else case e in #(
19773 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19774 /* end confdefs.h. */
19775 #include <stdlib.h>
19776 /* Use prealloc to test; "volatile" prevents the compiler
19777 from optimizing the realloc call away. */
19778 void *(*volatile prealloc) (void *, size_t) = realloc;
19779 int
19780 main (void)
19781 {
19782 void *p = prealloc (0, 0);
19783 int result = !p;
19784 p = prealloc (p, 0);
19785 result |= !p;
19786 free (p);
19787 return result;
19788 ;
19789 return 0;
19790 }
19791 _ACEOF
19792 if ac_fn_c_try_run "$LINENO"
19793 then :
19794 gl_cv_func_realloc_0_nonnull=yes
19795 else case e in #(
19796 e) gl_cv_func_realloc_0_nonnull=no ;;
19797 esac
19798 fi
19799 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19800 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19801 esac
19802 fi
19803 ;;
19804 esac
19805 fi
19806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_realloc_0_nonnull" >&5
19807 printf "%s\n" "$gl_cv_func_realloc_0_nonnull" >&6; }
19808 case $gl_cv_func_realloc_0_nonnull in #(
19809 *yes) :
19810
19811 printf "%s\n" "#define HAVE_REALLOC_0_NONNULL 1" >>confdefs.h
19812 ;; #(
19813 *) :
19814 case $gl_cv_func_realloc_sanitize,$gl_cv_malloc_ptrdiff,$gl_cv_func_malloc_posix,$host in #(
19815 yes,*,*,* | *,no,*,* | *,*,*no,* | *,*,*,aarch64c-*-freebsd*) :
19816 REPLACE_REALLOC_FOR_REALLOC_POSIX=1 ;; #(
19817 *) :
19818 # Optimize for common case of glibc 2.1.1+ and compatibles.
19819 REPLACE_REALLOC_FOR_REALLOC_POSIX=2 ;;
19820 esac ;;
19821 esac
19822
19823
19824 if test $REPLACE_REALLOC_FOR_REALLOC_POSIX != 0; then
19825 GL_COND_OBJ_REALLOC_POSIX_TRUE=
19826 GL_COND_OBJ_REALLOC_POSIX_FALSE='#'
19827 else
19828 GL_COND_OBJ_REALLOC_POSIX_TRUE='#'
19829 GL_COND_OBJ_REALLOC_POSIX_FALSE=
19830 fi
19831 :
19832 if test -z "${GL_COND_OBJ_REALLOC_POSIX_TRUE}" && test -z "${GL_COND_OBJ_REALLOC_POSIX_FALSE}"; then
19833 GL_COND_OBJ_REALLOC_POSIX_TRUE='#'
19834 GL_COND_OBJ_REALLOC_POSIX_FALSE='#'
19835 fi
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846 GL_GNULIB_REALLOC_POSIX=1
19847
19848
19849
19850
19851
19852 printf "%s\n" "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
19853
19854
19855
19856
19857 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
19858 if test "x$ac_cv_header_stdint_h" = xyes
19859 then :
19860 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
19861
19862 fi
19863
19864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
19865 printf %s "checking for SIZE_MAX... " >&6; }
19866 if test ${gl_cv_size_max+y}
19867 then :
19868 printf %s "(cached) " >&6
19869 else case e in #(
19870 e)
19871 gl_cv_size_max=no
19872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19873 /* end confdefs.h. */
19874
19875 #include <limits.h>
19876 #if HAVE_STDINT_H
19877 #include <stdint.h>
19878 #endif
19879 #ifdef SIZE_MAX
19880 Found it
19881 #endif
19882
19883 _ACEOF
19884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19885 $EGREP_TRADITIONAL "Found it" >/dev/null 2>&1
19886 then :
19887 gl_cv_size_max=yes
19888 fi
19889 rm -rf conftest*
19890
19891 if test $gl_cv_size_max != yes; then
19892 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
19893 #include <limits.h>"
19894 then :
19895
19896 else case e in #(
19897 e) size_t_bits_minus_1= ;;
19898 esac
19899 fi
19900
19901 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"
19902 then :
19903
19904 else case e in #(
19905 e) fits_in_uint= ;;
19906 esac
19907 fi
19908
19909 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
19910 if test $fits_in_uint = 1; then
19911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19912 /* end confdefs.h. */
19913 #include <stddef.h>
19914 extern size_t foo;
19915 extern unsigned long foo;
19916
19917 int
19918 main (void)
19919 {
19920
19921 ;
19922 return 0;
19923 }
19924 _ACEOF
19925 if ac_fn_c_try_compile "$LINENO"
19926 then :
19927 fits_in_uint=0
19928 fi
19929 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19930 fi
19931 if test $fits_in_uint = 1; then
19932 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
19933 else
19934 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
19935 fi
19936 else
19937 gl_cv_size_max='((size_t)~(size_t)0)'
19938 fi
19939 fi
19940 ;;
19941 esac
19942 fi
19943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
19944 printf "%s\n" "$gl_cv_size_max" >&6; }
19945 if test "$gl_cv_size_max" != yes; then
19946
19947 printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h
19948
19949 fi
19950
19951
19952
19953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
19954 printf %s "checking for ssize_t... " >&6; }
19955 if test ${gl_cv_ssize_t+y}
19956 then :
19957 printf %s "(cached) " >&6
19958 else case e in #(
19959 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19960 /* end confdefs.h. */
19961 #include <sys/types.h>
19962 int
19963 main (void)
19964 {
19965 int x = sizeof (ssize_t *) + sizeof (ssize_t);
19966 return !x;
19967 ;
19968 return 0;
19969 }
19970 _ACEOF
19971 if ac_fn_c_try_compile "$LINENO"
19972 then :
19973 gl_cv_ssize_t=yes
19974 else case e in #(
19975 e) gl_cv_ssize_t=no ;;
19976 esac
19977 fi
19978 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
19979 esac
19980 fi
19981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ssize_t" >&5
19982 printf "%s\n" "$gl_cv_ssize_t" >&6; }
19983 if test $gl_cv_ssize_t = no; then
19984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether size_t is wider than 'long'" >&5
19985 printf %s "checking whether size_t is wider than 'long'... " >&6; }
19986 if test ${gl_cv_size_t_large+y}
19987 then :
19988 printf %s "(cached) " >&6
19989 else case e in #(
19990 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19991 /* end confdefs.h. */
19992 #include <sys/types.h>
19993 typedef int array [2 * (sizeof (size_t) > sizeof (long)) - 1];
19994
19995 int
19996 main (void)
19997 {
19998
19999 ;
20000 return 0;
20001 }
20002 _ACEOF
20003 if ac_fn_c_try_compile "$LINENO"
20004 then :
20005 gl_cv_size_t_large=yes
20006 else case e in #(
20007 e) gl_cv_size_t_large=no ;;
20008 esac
20009 fi
20010 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20011 esac
20012 fi
20013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_t_large" >&5
20014 printf "%s\n" "$gl_cv_size_t_large" >&6; }
20015 if test $gl_cv_size_t_large = yes; then
20016 gl_def_ssize_t='long long'
20017 else
20018 gl_def_ssize_t='long'
20019 fi
20020
20021 printf "%s\n" "#define ssize_t $gl_def_ssize_t" >>confdefs.h
20022
20023 fi
20024
20025
20026
20027
20028
20029 case "$host_os" in
20030 mingw* | windows*)
20031 REPLACE_STAT=1
20032 ;;
20033 *)
20034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
20035 printf %s "checking whether stat handles trailing slashes on files... " >&6; }
20036 if test ${gl_cv_func_stat_file_slash+y}
20037 then :
20038 printf %s "(cached) " >&6
20039 else case e in #(
20040 e) touch conftest.tmp
20041 # Assume that if we have lstat, we can also check symlinks.
20042 if test $ac_cv_func_lstat = yes; then
20043 ln -s conftest.tmp conftest.lnk
20044 fi
20045 if test "$cross_compiling" = yes
20046 then :
20047 case "$host_os" in
20048 # Guess yes on Linux systems.
20049 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
20050 # Guess yes on systems that emulate the Linux system calls.
20051 midipix*) gl_cv_func_stat_file_slash="guessing yes" ;;
20052 # Guess yes on glibc systems.
20053 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
20054 # If we don't know, obey --enable-cross-guesses.
20055 *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
20056 esac
20057
20058 else case e in #(
20059 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20060 /* end confdefs.h. */
20061 #include <sys/stat.h>
20062
20063 int
20064 main (void)
20065 {
20066 int result = 0;
20067 struct stat st;
20068 if (!stat ("conftest.tmp/", &st))
20069 result |= 1;
20070 #if HAVE_LSTAT
20071 if (!stat ("conftest.lnk/", &st))
20072 result |= 2;
20073 #endif
20074 return result;
20075
20076 ;
20077 return 0;
20078 }
20079 _ACEOF
20080 if ac_fn_c_try_run "$LINENO"
20081 then :
20082 gl_cv_func_stat_file_slash=yes
20083 else case e in #(
20084 e) gl_cv_func_stat_file_slash=no ;;
20085 esac
20086 fi
20087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20088 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20089 esac
20090 fi
20091
20092 rm -f conftest.tmp conftest.lnk ;;
20093 esac
20094 fi
20095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
20096 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; }
20097 case $gl_cv_func_stat_file_slash in
20098 *no)
20099 REPLACE_STAT=1
20100
20101 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
20102 ;;
20103 esac
20104 case $host_os in
20105 darwin* | solaris*)
20106 REPLACE_FSTAT=1 ;;
20107 esac
20108 ;;
20109 esac
20110
20111
20112 if test $REPLACE_STAT = 1; then
20113 GL_COND_OBJ_STAT_TRUE=
20114 GL_COND_OBJ_STAT_FALSE='#'
20115 else
20116 GL_COND_OBJ_STAT_TRUE='#'
20117 GL_COND_OBJ_STAT_FALSE=
20118 fi
20119 :
20120 if test -z "${GL_COND_OBJ_STAT_TRUE}" && test -z "${GL_COND_OBJ_STAT_FALSE}"; then
20121 GL_COND_OBJ_STAT_TRUE='#'
20122 GL_COND_OBJ_STAT_FALSE='#'
20123 fi
20124
20125 if test -z "$GL_COND_OBJ_STAT_TRUE"; then :
20126
20127 case "$host_os" in
20128 mingw* | windows*)
20129
20130
20131
20132
20133
20134
20135
20136
20137 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
20138
20139 ;;
20140 esac
20141
20142
20143
20144 :
20145
20146
20147 fi
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157 GL_GNULIB_STAT=1
20158
20159
20160
20161
20162
20163 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h
20164
20165
20166
20167
20168
20169 printf "%s\n" "#define GNULIB_STAT 1" >>confdefs.h
20170
20171
20172
20173
20174
20175
20176 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>
20177 #include <sys/stat.h>
20178 "
20179 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
20180 then :
20181
20182 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
20183
20184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
20185 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
20186 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
20187 then :
20188 printf %s "(cached) " >&6
20189 else case e in #(
20190 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20191 /* end confdefs.h. */
20192
20193 #include <sys/types.h>
20194 #include <sys/stat.h>
20195 #if HAVE_SYS_TIME_H
20196 # include <sys/time.h>
20197 #endif
20198 #include <time.h>
20199 struct timespec ts;
20200 struct stat st;
20201
20202 int
20203 main (void)
20204 {
20205
20206 st.st_atim = ts;
20207
20208 ;
20209 return 0;
20210 }
20211 _ACEOF
20212 if ac_fn_c_try_compile "$LINENO"
20213 then :
20214 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
20215 else case e in #(
20216 e) ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no ;;
20217 esac
20218 fi
20219 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20220 esac
20221 fi
20222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
20223 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
20224 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
20225
20226 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
20227
20228 fi
20229 else case e in #(
20230 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>
20231 #include <sys/stat.h>
20232 "
20233 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
20234 then :
20235
20236 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
20237
20238
20239 else case e in #(
20240 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
20241 #include <sys/stat.h>
20242 "
20243 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
20244 then :
20245
20246 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
20247
20248
20249 else case e in #(
20250 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>
20251 #include <sys/stat.h>
20252 "
20253 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
20254 then :
20255
20256 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
20257
20258
20259 fi
20260 ;;
20261 esac
20262 fi
20263 ;;
20264 esac
20265 fi
20266 ;;
20267 esac
20268 fi
20269
20270
20271
20272
20273
20274 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>
20275 #include <sys/stat.h>
20276 "
20277 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
20278 then :
20279
20280 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
20281
20282
20283 else case e in #(
20284 e) ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
20285 #include <sys/stat.h>
20286 "
20287 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
20288 then :
20289
20290 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
20291
20292
20293 else case e in #(
20294 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>
20295 #include <sys/stat.h>
20296 "
20297 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
20298 then :
20299
20300 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h
20301
20302
20303 fi
20304 ;;
20305 esac
20306 fi
20307 ;;
20308 esac
20309 fi
20310
20311
20312
20313 if test $ac_cv_header_stdckdint_h = yes; then
20314 GL_GENERATE_STDCKDINT_H=false
20315 else
20316 GL_GENERATE_STDCKDINT_H=true
20317 fi
20318
20319
20320
20321
20322 case "$GL_GENERATE_STDCKDINT_H" in
20323 false) STDCKDINT_H='' ;;
20324 true)
20325 if test -z "$STDCKDINT_H"; then
20326 STDCKDINT_H="${gl_source_base_prefix}stdckdint.h"
20327 fi
20328 ;;
20329 *) echo "*** GL_GENERATE_STDCKDINT_H is not set correctly" 1>&2; exit 1 ;;
20330 esac
20331
20332
20333 if $GL_GENERATE_STDCKDINT_H; then
20334 GL_GENERATE_STDCKDINT_H_TRUE=
20335 GL_GENERATE_STDCKDINT_H_FALSE='#'
20336 else
20337 GL_GENERATE_STDCKDINT_H_TRUE='#'
20338 GL_GENERATE_STDCKDINT_H_FALSE=
20339 fi
20340 :
20341 if test -z "${GL_GENERATE_STDCKDINT_H_TRUE}" && test -z "${GL_GENERATE_STDCKDINT_H_FALSE}"; then
20342 GL_GENERATE_STDCKDINT_H_TRUE='#'
20343 GL_GENERATE_STDCKDINT_H_FALSE='#'
20344 fi
20345
20346
20347
20348
20349
20350
20351
20352
20353
20354
20355
20356
20357
20358
20359
20360
20361 case "$GL_GENERATE_STDDEF_H" in
20362 false) STDDEF_H='' ;;
20363 true)
20364 if test -z "$STDDEF_H"; then
20365 STDDEF_H="${gl_source_base_prefix}stddef.h"
20366 fi
20367 ;;
20368 *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;;
20369 esac
20370
20371
20372 if $GL_GENERATE_STDDEF_H; then
20373 GL_GENERATE_STDDEF_H_TRUE=
20374 GL_GENERATE_STDDEF_H_FALSE='#'
20375 else
20376 GL_GENERATE_STDDEF_H_TRUE='#'
20377 GL_GENERATE_STDDEF_H_FALSE=
20378 fi
20379 :
20380 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
20381 GL_GENERATE_STDDEF_H_TRUE='#'
20382 GL_GENERATE_STDDEF_H_FALSE='#'
20383 fi
20384
20385
20386
20387
20388
20389
20390
20391
20392
20393
20394
20395 case "$GL_GENERATE_STDINT_H" in
20396 false) STDINT_H='' ;;
20397 true)
20398 if test -z "$STDINT_H"; then
20399 STDINT_H="${gl_source_base_prefix}stdint.h"
20400 fi
20401 ;;
20402 *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;;
20403 esac
20404
20405
20406 if $GL_GENERATE_STDINT_H; then
20407 GL_GENERATE_STDINT_H_TRUE=
20408 GL_GENERATE_STDINT_H_FALSE='#'
20409 else
20410 GL_GENERATE_STDINT_H_TRUE='#'
20411 GL_GENERATE_STDINT_H_FALSE=
20412 fi
20413 :
20414 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
20415 GL_GENERATE_STDINT_H_TRUE='#'
20416 GL_GENERATE_STDINT_H_FALSE='#'
20417 fi
20418
20419
20420
20421
20422
20423
20424
20425
20426
20427 case "$GL_GENERATE_LIMITS_H" in
20428 false) LIMITS_H='' ;;
20429 true)
20430 if test -z "$LIMITS_H"; then
20431 LIMITS_H="${gl_source_base_prefix}limits.h"
20432 fi
20433 ;;
20434 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
20435 esac
20436
20437
20438 if $GL_GENERATE_LIMITS_H; then
20439 GL_GENERATE_LIMITS_H_TRUE=
20440 GL_GENERATE_LIMITS_H_FALSE='#'
20441 else
20442 GL_GENERATE_LIMITS_H_TRUE='#'
20443 GL_GENERATE_LIMITS_H_FALSE=
20444 fi
20445 :
20446 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
20447 GL_GENERATE_LIMITS_H_TRUE='#'
20448 GL_GENERATE_LIMITS_H_FALSE='#'
20449 fi
20450
20451
20452
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464 if test $REPLACE_STDIO_READ_FUNCS = 1; then
20465 GL_COND_OBJ_STDIO_READ_TRUE=
20466 GL_COND_OBJ_STDIO_READ_FALSE='#'
20467 else
20468 GL_COND_OBJ_STDIO_READ_TRUE='#'
20469 GL_COND_OBJ_STDIO_READ_FALSE=
20470 fi
20471 :
20472 if test -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && test -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then
20473 GL_COND_OBJ_STDIO_READ_TRUE='#'
20474 GL_COND_OBJ_STDIO_READ_FALSE='#'
20475 fi
20476
20477
20478 if test $REPLACE_STDIO_WRITE_FUNCS = 1; then
20479 GL_COND_OBJ_STDIO_WRITE_TRUE=
20480 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
20481 else
20482 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
20483 GL_COND_OBJ_STDIO_WRITE_FALSE=
20484 fi
20485 :
20486 if test -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then
20487 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
20488 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
20489 fi
20490
20491
20492
20493
20494
20495
20496
20497
20498
20499
20500 GL_GNULIB_FSCANF=1
20501
20502
20503
20504
20505
20506 printf "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h
20507
20508
20509
20510
20511
20512 printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524 GL_GNULIB_SCANF=1
20525
20526
20527
20528
20529
20530 printf "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h
20531
20532
20533
20534
20535
20536 printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548 GL_GNULIB_FGETC=1
20549
20550
20551
20552
20553
20554 printf "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h
20555
20556
20557
20558
20559
20560
20561
20562
20563
20564
20565
20566
20567 GL_GNULIB_GETC=1
20568
20569
20570
20571
20572
20573 printf "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586 GL_GNULIB_GETCHAR=1
20587
20588
20589
20590
20591
20592 printf "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603
20604
20605 GL_GNULIB_FGETS=1
20606
20607
20608
20609
20610
20611 printf "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621
20622
20623
20624 GL_GNULIB_FREAD=1
20625
20626
20627
20628
20629
20630 printf "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h
20631
20632
20633
20634
20635
20636
20637
20638
20639
20640
20641
20642
20643 GL_GNULIB_FPRINTF=1
20644
20645
20646
20647
20648
20649 printf "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h
20650
20651
20652
20653
20654
20655
20656
20657
20658
20659
20660
20661
20662 GL_GNULIB_PRINTF=1
20663
20664
20665
20666
20667
20668 printf "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
20680
20681 GL_GNULIB_VFPRINTF=1
20682
20683
20684
20685
20686
20687 printf "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h
20688
20689
20690
20691
20692
20693
20694
20695
20696
20697
20698
20699
20700 GL_GNULIB_VPRINTF=1
20701
20702
20703
20704
20705
20706 printf "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h
20707
20708
20709
20710
20711
20712
20713
20714
20715
20716
20717
20718
20719 GL_GNULIB_FPUTC=1
20720
20721
20722
20723
20724
20725 printf "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h
20726
20727
20728
20729
20730
20731
20732
20733
20734
20735
20736
20737
20738 GL_GNULIB_PUTC=1
20739
20740
20741
20742
20743
20744 printf "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h
20745
20746
20747
20748
20749
20750
20751
20752
20753
20754
20755
20756
20757 GL_GNULIB_PUTCHAR=1
20758
20759
20760
20761
20762
20763 printf "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h
20764
20765
20766
20767
20768
20769
20770
20771
20772
20773
20774
20775
20776 GL_GNULIB_FPUTS=1
20777
20778
20779
20780
20781
20782 printf "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h
20783
20784
20785
20786
20787
20788
20789
20790
20791
20792
20793
20794
20795 GL_GNULIB_PUTS=1
20796
20797
20798
20799
20800
20801 printf "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h
20802
20803
20804
20805
20806
20807
20808
20809
20810
20811
20812
20813
20814 GL_GNULIB_FWRITE=1
20815
20816
20817
20818
20819
20820 printf "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h
20821
20822
20823
20824
20825
20826
20827
20828
20829
20830
20831
20832
20833
20834
20835
20836 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
20837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
20838 printf %s "checking for working strerror function... " >&6; }
20839 if test ${gl_cv_func_working_strerror+y}
20840 then :
20841 printf %s "(cached) " >&6
20842 else case e in #(
20843 e) if test "$cross_compiling" = yes
20844 then :
20845 case "$host_os" in
20846 # Guess yes on glibc systems.
20847 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
20848 # Guess yes on musl systems.
20849 *-musl* | midipix*) gl_cv_func_working_strerror="guessing yes" ;;
20850 # If we don't know, obey --enable-cross-guesses.
20851 *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
20852 esac
20853
20854 else case e in #(
20855 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20856 /* end confdefs.h. */
20857 #include <string.h>
20858
20859 int
20860 main (void)
20861 {
20862 if (!*strerror (-2)) return 1;
20863 ;
20864 return 0;
20865 }
20866 _ACEOF
20867 if ac_fn_c_try_run "$LINENO"
20868 then :
20869 gl_cv_func_working_strerror=yes
20870 else case e in #(
20871 e) gl_cv_func_working_strerror=no ;;
20872 esac
20873 fi
20874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20875 conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
20876 esac
20877 fi
20878
20879 ;;
20880 esac
20881 fi
20882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
20883 printf "%s\n" "$gl_cv_func_working_strerror" >&6; }
20884 case "$gl_cv_func_working_strerror" in
20885 *yes) ;;
20886 *)
20887 REPLACE_STRERROR=1
20888 ;;
20889 esac
20890
20891 else
20892 REPLACE_STRERROR=1
20893 fi
20894
20895
20896 if test $REPLACE_STRERROR = 1; then
20897 GL_COND_OBJ_STRERROR_TRUE=
20898 GL_COND_OBJ_STRERROR_FALSE='#'
20899 else
20900 GL_COND_OBJ_STRERROR_TRUE='#'
20901 GL_COND_OBJ_STRERROR_FALSE=
20902 fi
20903 :
20904 if test -z "${GL_COND_OBJ_STRERROR_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_FALSE}"; then
20905 GL_COND_OBJ_STRERROR_TRUE='#'
20906 GL_COND_OBJ_STRERROR_FALSE='#'
20907 fi
20908
20909
20910
20911 printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h
20912
20913
20914
20915
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925
20926
20927
20928 GL_GNULIB_STRERROR=1
20929
20930
20931
20932
20933
20934 printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
20935
20936
20937
20938
20939
20940
20941 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
20942 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE=
20943 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
20944 else
20945 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
20946 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE=
20947 fi
20948 :
20949 if test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_FALSE}"; then
20950 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
20951 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
20952 fi
20953
20954 if test -z "$GL_COND_OBJ_STRERROR_OVERRIDE_TRUE"; then :
20955
20956
20957
20958
20959
20960 if test $ac_cv_header_sys_socket_h != yes; then
20961 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
20962 if test "x$ac_cv_header_winsock2_h" = xyes
20963 then :
20964 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
20965
20966 fi
20967
20968 fi
20969 if test "$ac_cv_header_winsock2_h" = yes; then
20970 HAVE_WINSOCK2_H=1
20971 UNISTD_H_HAVE_WINSOCK2_H=1
20972 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
20973 else
20974 HAVE_WINSOCK2_H=0
20975 fi
20976
20977
20978
20979 fi
20980
20981
20982
20983
20984
20985
20986
20987
20988
20989
20990
20991
20992
20993
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009
21010
21011
21012
21013
21014
21015
21016
21017
21018
21019
21020
21021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
21022 printf %s "checking for variable-length arrays... " >&6; }
21023 if test ${ac_cv_c_vararrays+y}
21024 then :
21025 printf %s "(cached) " >&6
21026 else case e in #(
21027 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21028 /* end confdefs.h. */
21029 #ifndef __STDC_NO_VLA__
21030 #error __STDC_NO_VLA__ not defined
21031 #endif
21032
21033 _ACEOF
21034 if ac_fn_c_try_compile "$LINENO"
21035 then :
21036 ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
21037 else case e in #(
21038 e) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21039 /* end confdefs.h. */
21040 /* Test for VLA support. This test is partly inspired
21041 from examples in the C standard. Use at least two VLA
21042 functions to detect the GCC 3.4.3 bug described in:
21043 https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
21044 */
21045 #ifdef __STDC_NO_VLA__
21046 syntax error;
21047 #else
21048 extern int n;
21049 int B[100];
21050 int fvla (int m, int C[m][m]);
21051
21052 int
21053 simple (int count, int all[static count])
21054 {
21055 return all[count - 1];
21056 }
21057
21058 int
21059 fvla (int m, int C[m][m])
21060 {
21061 typedef int VLA[m][m];
21062 VLA x;
21063 int D[m];
21064 static int (*q)[m] = &B;
21065 int (*s)[n] = q;
21066 return C && &x[0][0] == &D[0] && &D[0] == s[0];
21067 }
21068 #endif
21069
21070 int
21071 main (void)
21072 {
21073
21074 ;
21075 return 0;
21076 }
21077 _ACEOF
21078 if ac_fn_c_try_compile "$LINENO"
21079 then :
21080 ac_cv_c_vararrays=yes
21081 else case e in #(
21082 e) ac_cv_c_vararrays=no ;;
21083 esac
21084 fi
21085 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21086 esac
21087 fi
21088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext ;;
21089 esac
21090 fi
21091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
21092 printf "%s\n" "$ac_cv_c_vararrays" >&6; }
21093 if test "$ac_cv_c_vararrays" = yes; then
21094
21095 printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h
21096
21097 elif test "$ac_cv_c_vararrays" = no; then
21098
21099 printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h
21100
21101 fi
21102
21103
21104
21105
21106
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117 printf "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h
21118
21119
21120
21121
21122 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
21123 if test "x$ac_cv_header_stdint_h" = xyes
21124 then :
21125 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
21126
21127 fi
21128
21129
21130 # End of code from modules
21131
21132
21133
21134
21135
21136
21137
21138
21139
21140
21141
21142 gltests_libdeps=
21143 gltests_ltlibdeps=
21144
21145
21146
21147
21148
21149
21150
21151
21152
21153
21154
21155
21156 gl_source_base='tests'
21157 gl_source_base_prefix=
21158 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
21159
21160 gl_module_indicator_condition=$gltests_WITNESS
21161
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173 LIBGP_LIBDEPS="$gl_libdeps"
21174
21175 LIBGP_LTLIBDEPS="$gl_ltlibdeps"
21176
21177
21178 ac_config_files="$ac_config_files Makefile"
21179
21180 cat >confcache <<\_ACEOF
21181 # This file is a shell script that caches the results of configure
21182 # tests run on this system so they can be shared between configure
21183 # scripts and configure runs, see configure's option --config-cache.
21184 # It is not useful on other systems. If it contains results you don't
21185 # want to keep, you may remove or edit it.
21186 #
21187 # config.status only pays attention to the cache file if you give it
21188 # the --recheck option to rerun configure.
21189 #
21190 # 'ac_cv_env_foo' variables (set or unset) will be overridden when
21191 # loading this file, other *unset* 'ac_cv_foo' will be assigned the
21192 # following values.
21193
21194 _ACEOF
21195
21196 # The following way of writing the cache mishandles newlines in values,
21197 # but we know of no workaround that is simple, portable, and efficient.
21198 # So, we kill variables containing newlines.
21199 # Ultrix sh set writes to stderr and can't be redirected directly,
21200 # and sets the high bit in the cache file unless we assign to the vars.
21201 (
21202 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21203 eval ac_val=\$$ac_var
21204 case $ac_val in #(
21205 *${as_nl}*)
21206 case $ac_var in #(
21207 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
21208 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
21209 esac
21210 case $ac_var in #(
21211 _ | IFS | as_nl) ;; #(
21212 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
21213 *) { eval $ac_var=; unset $ac_var;} ;;
21214 esac ;;
21215 esac
21216 done
21217
21218 (set) 2>&1 |
21219 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21220 *${as_nl}ac_space=\ *)
21221 # 'set' does not quote correctly, so add quotes: double-quote
21222 # substitution turns \\\\ into \\, and sed turns \\ into \.
21223 sed -n \
21224 "s/'/'\\\\''/g;
21225 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21226 ;; #(
21227 *)
21228 # 'set' quotes correctly as required by POSIX, so do not add quotes.
21229 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21230 ;;
21231 esac |
21232 sort
21233 ) |
21234 sed '
21235 /^ac_cv_env_/b end
21236 t clear
21237 :clear
21238 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
21239 t end
21240 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21241 :end' >>confcache
21242 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21243 if test -w "$cache_file"; then
21244 if test "x$cache_file" != "x/dev/null"; then
21245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
21246 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
21247 if test ! -f "$cache_file" || test -h "$cache_file"; then
21248 cat confcache >"$cache_file"
21249 else
21250 case $cache_file in #(
21251 */* | ?:*)
21252 mv -f confcache "$cache_file"$$ &&
21253 mv -f "$cache_file"$$ "$cache_file" ;; #(
21254 *)
21255 mv -f confcache "$cache_file" ;;
21256 esac
21257 fi
21258 fi
21259 else
21260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
21261 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
21262 fi
21263 fi
21264 rm -f confcache
21265
21266 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21267 # Let make expand exec_prefix.
21268 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21269
21270 DEFS=-DHAVE_CONFIG_H
21271
21272 ac_libobjs=
21273 ac_ltlibobjs=
21274 U=
21275 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21276 # 1. Remove the extension, and $U if already installed.
21277 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21278 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
21279 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21280 # will be set to the directory where LIBOBJS objects are built.
21281 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21282 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
21283 done
21284 LIBOBJS=$ac_libobjs
21285
21286 LTLIBOBJS=$ac_ltlibobjs
21287
21288
21289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
21290 printf %s "checking that generated files are newer than configure... " >&6; }
21291 if test -n "$am_sleep_pid"; then
21292 # Hide warnings about reused PIDs.
21293 wait $am_sleep_pid 2>/dev/null
21294 fi
21295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
21296 printf "%s\n" "done" >&6; }
21297 case $enable_silent_rules in # (((
21298 yes) AM_DEFAULT_VERBOSITY=0;;
21299 no) AM_DEFAULT_VERBOSITY=1;;
21300 esac
21301 if test $am_cv_make_support_nested_variables = yes; then
21302 AM_V='$(V)'
21303 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
21304 else
21305 AM_V=$AM_DEFAULT_VERBOSITY
21306 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
21307 fi
21308
21309 if test -n "$EXEEXT"; then
21310 am__EXEEXT_TRUE=
21311 am__EXEEXT_FALSE='#'
21312 else
21313 am__EXEEXT_TRUE='#'
21314 am__EXEEXT_FALSE=
21315 fi
21316
21317 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21318 as_fn_error $? "conditional \"AMDEP\" was never defined.
21319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21320 fi
21321 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21322 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21324 fi
21325 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21326 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21328 fi
21329 # Check whether --enable-year2038 was given.
21330 if test ${enable_year2038+y}
21331 then :
21332 enableval=$enable_year2038;
21333 fi
21334
21335 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
21336 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
21337 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21338 fi
21339
21340 gl_libobjs=
21341 gl_ltlibobjs=
21342 gl_libobjdeps=
21343 gl_libgp_libobjs=
21344 gl_libgp_ltlibobjs=
21345 gl_libgp_libobjdeps=
21346 if test -n "$gl_LIBOBJS"; then
21347 # Remove the extension.
21348 sed_drop_objext='s/\.o$//;s/\.obj$//'
21349 sed_dirname1='s,//*,/,g'
21350 sed_dirname2='s,\(.\)/$,\1,'
21351 sed_dirname3='s,[^/]*$,,'
21352 sed_basename1='s,.*/,,'
21353 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21354 gl_libobjs="$gl_libobjs $i.$ac_objext"
21355 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
21356 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3"`
21357 i_base=`echo "$i" | sed -e "$sed_basename1"`
21358 gl_libgp_libobjs="$gl_libgp_libobjs $i_dir""libgp_a-$i_base.$ac_objext"
21359 gl_libgp_ltlibobjs="$gl_libgp_ltlibobjs $i_dir""libgp_la-$i_base.lo"
21360 gl_libobjdeps="$gl_libobjdeps $i_dir\$(DEPDIR)/$i_base.Po"
21361 gl_libgp_libobjdeps="$gl_libgp_libobjdeps $i_dir\$(DEPDIR)/libgp_a-$i_base.Po"
21362 done
21363 fi
21364 gl_LIBOBJS=$gl_libobjs
21365
21366 gl_LTLIBOBJS=$gl_ltlibobjs
21367
21368 gl_LIBOBJDEPS=$gl_libobjdeps
21369
21370 gl_libgp_LIBOBJS=$gl_libgp_libobjs
21371
21372 gl_libgp_LTLIBOBJS=$gl_libgp_ltlibobjs
21373
21374 gl_libgp_LIBOBJDEPS=$gl_libgp_libobjdeps
21375
21376
21377
21378 gltests_libobjs=
21379 gltests_ltlibobjs=
21380 gltests_libobjdeps=
21381 gltests_libgp_libobjs=
21382 gltests_libgp_ltlibobjs=
21383 gltests_libgp_libobjdeps=
21384 if test -n "$gltests_LIBOBJS"; then
21385 # Remove the extension.
21386 sed_drop_objext='s/\.o$//;s/\.obj$//'
21387 sed_dirname1='s,//*,/,g'
21388 sed_dirname2='s,\(.\)/$,\1,'
21389 sed_dirname3='s,[^/]*$,,'
21390 sed_basename1='s,.*/,,'
21391 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
21392 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
21393 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
21394 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3"`
21395 i_base=`echo "$i" | sed -e "$sed_basename1"`
21396 gltests_libgp_libobjs="$gltests_libgp_libobjs $i_dir""libgp_a-$i_base.$ac_objext"
21397 gltests_libgp_ltlibobjs="$gltests_libgp_ltlibobjs $i_dir""libgp_la-$i_base.lo"
21398 gltests_libobjdeps="$gltests_libobjdeps $i_dir\$(DEPDIR)/$i_base.Po"
21399 gltests_libgp_libobjdeps="$gltests_libgp_libobjdeps $i_dir\$(DEPDIR)/libgp_a-$i_base.Po"
21400 done
21401 fi
21402 gltests_LIBOBJS=$gltests_libobjs
21403
21404 gltests_LTLIBOBJS=$gltests_ltlibobjs
21405
21406 gltests_LIBOBJDEPS=$gltests_libobjdeps
21407
21408 gltests_libgp_LIBOBJS=$gltests_libgp_libobjs
21409
21410 gltests_libgp_LTLIBOBJS=$gltests_libgp_ltlibobjs
21411
21412 gltests_libgp_LIBOBJDEPS=$gltests_libgp_libobjdeps
21413
21414
21415
21416 : "${CONFIG_STATUS=./config.status}"
21417 ac_write_fail=0
21418 ac_clean_files_save=$ac_clean_files
21419 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21421 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
21422 as_write_fail=0
21423 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21424 #! $SHELL
21425 # Generated by $as_me.
21426 # Run this file to recreate the current configuration.
21427 # Compiler output produced by configure, useful for debugging
21428 # configure, is in config.log if it exists.
21429
21430 debug=false
21431 ac_cs_recheck=false
21432 ac_cs_silent=false
21433
21434 SHELL=\${CONFIG_SHELL-$SHELL}
21435 export SHELL
21436 _ASEOF
21437 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21438 ## -------------------- ##
21439 ## M4sh Initialization. ##
21440 ## -------------------- ##
21441
21442 # Be more Bourne compatible
21443 DUALCASE=1; export DUALCASE # for MKS sh
21444 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
21445 then :
21446 emulate sh
21447 NULLCMD=:
21448 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21449 # is contrary to our usage. Disable this feature.
21450 alias -g '${1+"$@"}'='"$@"'
21451 setopt NO_GLOB_SUBST
21452 else case e in #(
21453 e) case `(set -o) 2>/dev/null` in #(
21454 *posix*) :
21455 set -o posix ;; #(
21456 *) :
21457 ;;
21458 esac ;;
21459 esac
21460 fi
21461
21462
21463
21464 # Reset variables that may have inherited troublesome values from
21465 # the environment.
21466
21467 # IFS needs to be set, to space, tab, and newline, in precisely that order.
21468 # (If _AS_PATH_WALK were called with IFS unset, it would have the
21469 # side effect of setting IFS to empty, thus disabling word splitting.)
21470 # Quoting is to prevent editors from complaining about space-tab.
21471 as_nl='
21472 '
21473 export as_nl
21474 IFS=" "" $as_nl"
21475
21476 PS1='$ '
21477 PS2='> '
21478 PS4='+ '
21479
21480 # Ensure predictable behavior from utilities with locale-dependent output.
21481 LC_ALL=C
21482 export LC_ALL
21483 LANGUAGE=C
21484 export LANGUAGE
21485
21486 # We cannot yet rely on "unset" to work, but we need these variables
21487 # to be unset--not just set to an empty or harmless value--now, to
21488 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
21489 # also avoids known problems related to "unset" and subshell syntax
21490 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
21491 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
21492 do eval test \${$as_var+y} \
21493 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21494 done
21495
21496 # Ensure that fds 0, 1, and 2 are open.
21497 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
21498 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
21499 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
21500
21501 # The user is always right.
21502 if ${PATH_SEPARATOR+false} :; then
21503 PATH_SEPARATOR=:
21504 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21505 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21506 PATH_SEPARATOR=';'
21507 }
21508 fi
21509
21510
21511 # Find who we are. Look in the path if we contain no directory separator.
21512 as_myself=
21513 case $0 in #((
21514 *[\\/]* ) as_myself=$0 ;;
21515 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21516 for as_dir in $PATH
21517 do
21518 IFS=$as_save_IFS
21519 case $as_dir in #(((
21520 '') as_dir=./ ;;
21521 */) ;;
21522 *) as_dir=$as_dir/ ;;
21523 esac
21524 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
21525 done
21526 IFS=$as_save_IFS
21527
21528 ;;
21529 esac
21530 # We did not find ourselves, most probably we were run as 'sh COMMAND'
21531 # in which case we are not to be found in the path.
21532 if test "x$as_myself" = x; then
21533 as_myself=$0
21534 fi
21535 if test ! -f "$as_myself"; then
21536 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21537 exit 1
21538 fi
21539
21540
21541
21542 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21543 # ----------------------------------------
21544 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21545 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21546 # script with STATUS, using 1 if that was 0.
21547 as_fn_error ()
21548 {
21549 as_status=$1; test $as_status -eq 0 && as_status=1
21550 if test "$4"; then
21551 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21552 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21553 fi
21554 printf "%s\n" "$as_me: error: $2" >&2
21555 as_fn_exit $as_status
21556 } # as_fn_error
21557
21558
21559 # as_fn_set_status STATUS
21560 # -----------------------
21561 # Set $? to STATUS, without forking.
21562 as_fn_set_status ()
21563 {
21564 return $1
21565 } # as_fn_set_status
21566
21567 # as_fn_exit STATUS
21568 # -----------------
21569 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21570 as_fn_exit ()
21571 {
21572 set +e
21573 as_fn_set_status $1
21574 exit $1
21575 } # as_fn_exit
21576
21577 # as_fn_unset VAR
21578 # ---------------
21579 # Portably unset VAR.
21580 as_fn_unset ()
21581 {
21582 { eval $1=; unset $1;}
21583 }
21584 as_unset=as_fn_unset
21585
21586 # as_fn_append VAR VALUE
21587 # ----------------------
21588 # Append the text in VALUE to the end of the definition contained in VAR. Take
21589 # advantage of any shell optimizations that allow amortized linear growth over
21590 # repeated appends, instead of the typical quadratic growth present in naive
21591 # implementations.
21592 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
21593 then :
21594 eval 'as_fn_append ()
21595 {
21596 eval $1+=\$2
21597 }'
21598 else case e in #(
21599 e) as_fn_append ()
21600 {
21601 eval $1=\$$1\$2
21602 } ;;
21603 esac
21604 fi # as_fn_append
21605
21606 # as_fn_arith ARG...
21607 # ------------------
21608 # Perform arithmetic evaluation on the ARGs, and store the result in the
21609 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21610 # must be portable across $(()) and expr.
21611 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
21612 then :
21613 eval 'as_fn_arith ()
21614 {
21615 as_val=$(( $* ))
21616 }'
21617 else case e in #(
21618 e) as_fn_arith ()
21619 {
21620 as_val=`expr "$@" || test $? -eq 1`
21621 } ;;
21622 esac
21623 fi # as_fn_arith
21624
21625
21626 if expr a : '\(a\)' >/dev/null 2>&1 &&
21627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21628 as_expr=expr
21629 else
21630 as_expr=false
21631 fi
21632
21633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21634 as_basename=basename
21635 else
21636 as_basename=false
21637 fi
21638
21639 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21640 as_dirname=dirname
21641 else
21642 as_dirname=false
21643 fi
21644
21645 as_me=`$as_basename -- "$0" ||
21646 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21647 X"$0" : 'X\(//\)$' \| \
21648 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21649 printf "%s\n" X/"$0" |
21650 sed '/^.*\/\([^/][^/]*\)\/*$/{
21651 s//\1/
21652 q
21653 }
21654 /^X\/\(\/\/\)$/{
21655 s//\1/
21656 q
21657 }
21658 /^X\/\(\/\).*/{
21659 s//\1/
21660 q
21661 }
21662 s/.*/./; q'`
21663
21664 # Avoid depending upon Character Ranges.
21665 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21666 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21667 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21668 as_cr_digits='0123456789'
21669 as_cr_alnum=$as_cr_Letters$as_cr_digits
21670
21671
21672 # Determine whether it's possible to make 'echo' print without a newline.
21673 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
21674 # for compatibility with existing Makefiles.
21675 ECHO_C= ECHO_N= ECHO_T=
21676 case `echo -n x` in #(((((
21677 -n*)
21678 case `echo 'xy\c'` in
21679 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21680 xy) ECHO_C='\c';;
21681 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21682 ECHO_T=' ';;
21683 esac;;
21684 *)
21685 ECHO_N='-n';;
21686 esac
21687
21688 # For backward compatibility with old third-party macros, we provide
21689 # the shell variables $as_echo and $as_echo_n. New code should use
21690 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
21691 as_echo='printf %s\n'
21692 as_echo_n='printf %s'
21693
21694 rm -f conf$$ conf$$.exe conf$$.file
21695 if test -d conf$$.dir; then
21696 rm -f conf$$.dir/conf$$.file
21697 else
21698 rm -f conf$$.dir
21699 mkdir conf$$.dir 2>/dev/null
21700 fi
21701 if (echo >conf$$.file) 2>/dev/null; then
21702 if ln -s conf$$.file conf$$ 2>/dev/null; then
21703 as_ln_s='ln -s'
21704 # ... but there are two gotchas:
21705 # 1) On MSYS, both 'ln -s file dir' and 'ln file dir' fail.
21706 # 2) DJGPP < 2.04 has no symlinks; 'ln -s' creates a wrapper executable.
21707 # In both cases, we have to default to 'cp -pR'.
21708 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21709 as_ln_s='cp -pR'
21710 elif ln conf$$.file conf$$ 2>/dev/null; then
21711 as_ln_s=ln
21712 else
21713 as_ln_s='cp -pR'
21714 fi
21715 else
21716 as_ln_s='cp -pR'
21717 fi
21718 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21719 rmdir conf$$.dir 2>/dev/null
21720
21721
21722 # as_fn_mkdir_p
21723 # -------------
21724 # Create "$as_dir" as a directory, including parents if necessary.
21725 as_fn_mkdir_p ()
21726 {
21727
21728 case $as_dir in #(
21729 -*) as_dir=./$as_dir;;
21730 esac
21731 test -d "$as_dir" || eval $as_mkdir_p || {
21732 as_dirs=
21733 while :; do
21734 case $as_dir in #(
21735 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21736 *) as_qdir=$as_dir;;
21737 esac
21738 as_dirs="'$as_qdir' $as_dirs"
21739 as_dir=`$as_dirname -- "$as_dir" ||
21740 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21741 X"$as_dir" : 'X\(//\)[^/]' \| \
21742 X"$as_dir" : 'X\(//\)$' \| \
21743 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21744 printf "%s\n" X"$as_dir" |
21745 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21746 s//\1/
21747 q
21748 }
21749 /^X\(\/\/\)[^/].*/{
21750 s//\1/
21751 q
21752 }
21753 /^X\(\/\/\)$/{
21754 s//\1/
21755 q
21756 }
21757 /^X\(\/\).*/{
21758 s//\1/
21759 q
21760 }
21761 s/.*/./; q'`
21762 test -d "$as_dir" && break
21763 done
21764 test -z "$as_dirs" || eval "mkdir $as_dirs"
21765 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21766
21767
21768 } # as_fn_mkdir_p
21769 if mkdir -p . 2>/dev/null; then
21770 as_mkdir_p='mkdir -p "$as_dir"'
21771 else
21772 test -d ./-p && rmdir ./-p
21773 as_mkdir_p=false
21774 fi
21775
21776
21777 # as_fn_executable_p FILE
21778 # -----------------------
21779 # Test if FILE is an executable regular file.
21780 as_fn_executable_p ()
21781 {
21782 test -f "$1" && test -x "$1"
21783 } # as_fn_executable_p
21784 as_test_x='test -x'
21785 as_executable_p=as_fn_executable_p
21786
21787 # Sed expression to map a string onto a valid CPP name.
21788 as_sed_cpp="y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
21789 as_tr_cpp="eval sed '$as_sed_cpp'" # deprecated
21790
21791 # Sed expression to map a string onto a valid variable name.
21792 as_sed_sh="y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
21793 as_tr_sh="eval sed '$as_sed_sh'" # deprecated
21794
21795
21796 exec 6>&1
21797 ## ----------------------------------- ##
21798 ## Main body of $CONFIG_STATUS script. ##
21799 ## ----------------------------------- ##
21800 _ASEOF
21801 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21802
21803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21804 # Save the log message, to keep $0 and so on meaningful, and to
21805 # report actual input values of CONFIG_FILES etc. instead of their
21806 # values after options handling.
21807 ac_log="
21808 This file was extended by gperf $as_me package, which was
21809 generated by GNU Autoconf 2.72. Invocation command line was
21810
21811 CONFIG_FILES = $CONFIG_FILES
21812 CONFIG_HEADERS = $CONFIG_HEADERS
21813 CONFIG_LINKS = $CONFIG_LINKS
21814 CONFIG_COMMANDS = $CONFIG_COMMANDS
21815 $ $0 $@
21816
21817 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21818 "
21819
21820 _ACEOF
21821
21822 case $ac_config_files in *"
21823 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21824 esac
21825
21826 case $ac_config_headers in *"
21827 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21828 esac
21829
21830
21831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21832 # Files that config.status was made for.
21833 config_files="$ac_config_files"
21834 config_headers="$ac_config_headers"
21835 config_commands="$ac_config_commands"
21836
21837 _ACEOF
21838
21839 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21840 ac_cs_usage="\
21841 '$as_me' instantiates files and other configuration actions
21842 from templates according to the current configuration. Unless the files
21843 and actions are specified as TAGs, all are instantiated by default.
21844
21845 Usage: $0 [OPTION]... [TAG]...
21846
21847 -h, --help print this help, then exit
21848 -V, --version print version number and configuration settings, then exit
21849 --config print configuration, then exit
21850 -q, --quiet, --silent
21851 do not print progress messages
21852 -d, --debug don't remove temporary files
21853 --recheck update $as_me by reconfiguring in the same conditions
21854 --file=FILE[:TEMPLATE]
21855 instantiate the configuration file FILE
21856 --header=FILE[:TEMPLATE]
21857 instantiate the configuration header FILE
21858
21859 Configuration files:
21860 $config_files
21861
21862 Configuration headers:
21863 $config_headers
21864
21865 Configuration commands:
21866 $config_commands
21867
21868 Report bugs to the package provider."
21869
21870 _ACEOF
21871 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
21872 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
21873 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21874 ac_cs_config='$ac_cs_config_escaped'
21875 ac_cs_version="\\
21876 gperf config.status package
21877 configured by $0, generated by GNU Autoconf 2.72,
21878 with options \\"\$ac_cs_config\\"
21879
21880 Copyright (C) 2023 Free Software Foundation, Inc.
21881 This config.status script is free software; the Free Software Foundation
21882 gives unlimited permission to copy, distribute and modify it."
21883
21884 ac_pwd='$ac_pwd'
21885 srcdir='$srcdir'
21886 INSTALL='$INSTALL'
21887 MKDIR_P='$MKDIR_P'
21888 AWK='$AWK'
21889 test -n "\$AWK" || AWK=awk
21890 _ACEOF
21891
21892 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21893 # The default lists apply if the user does not specify any file.
21894 ac_need_defaults=:
21895 while test $# != 0
21896 do
21897 case $1 in
21898 --*=?*)
21899 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21900 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21901 ac_shift=:
21902 ;;
21903 --*=)
21904 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21905 ac_optarg=
21906 ac_shift=:
21907 ;;
21908 *)
21909 ac_option=$1
21910 ac_optarg=$2
21911 ac_shift=shift
21912 ;;
21913 esac
21914
21915 case $ac_option in
21916 # Handling of the options.
21917 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21918 ac_cs_recheck=: ;;
21919 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21920 printf "%s\n" "$ac_cs_version"; exit ;;
21921 --config | --confi | --conf | --con | --co | --c )
21922 printf "%s\n" "$ac_cs_config"; exit ;;
21923 --debug | --debu | --deb | --de | --d | -d )
21924 debug=: ;;
21925 --file | --fil | --fi | --f )
21926 $ac_shift
21927 case $ac_optarg in
21928 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21929 '') as_fn_error $? "missing file argument" ;;
21930 esac
21931 as_fn_append CONFIG_FILES " '$ac_optarg'"
21932 ac_need_defaults=false;;
21933 --header | --heade | --head | --hea )
21934 $ac_shift
21935 case $ac_optarg in
21936 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21937 esac
21938 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21939 ac_need_defaults=false;;
21940 --he | --h)
21941 # Conflict between --help and --header
21942 as_fn_error $? "ambiguous option: '$1'
21943 Try '$0 --help' for more information.";;
21944 --help | --hel | -h )
21945 printf "%s\n" "$ac_cs_usage"; exit ;;
21946 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21947 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21948 ac_cs_silent=: ;;
21949
21950 # This is an error.
21951 -*) as_fn_error $? "unrecognized option: '$1'
21952 Try '$0 --help' for more information." ;;
21953
21954 *) as_fn_append ac_config_targets " $1"
21955 ac_need_defaults=false ;;
21956
21957 esac
21958 shift
21959 done
21960
21961 ac_configure_extra_args=
21962
21963 if $ac_cs_silent; then
21964 exec 6>/dev/null
21965 ac_configure_extra_args="$ac_configure_extra_args --silent"
21966 fi
21967
21968 _ACEOF
21969 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21970 if \$ac_cs_recheck; then
21971 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21972 shift
21973 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
21974 CONFIG_SHELL='$SHELL'
21975 export CONFIG_SHELL
21976 exec "\$@"
21977 fi
21978
21979 _ACEOF
21980 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21981 exec 5>>config.log
21982 {
21983 echo
21984 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21985 ## Running $as_me. ##
21986 _ASBOX
21987 printf "%s\n" "$ac_log"
21988 } >&5
21989
21990 _ACEOF
21991 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21992 #
21993 # INIT-COMMANDS
21994 #
21995 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21996
21997 _ACEOF
21998
21999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22000
22001 # Handling of arguments.
22002 for ac_config_target in $ac_config_targets
22003 do
22004 case $ac_config_target in
22005 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
22006 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22007 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22008
22009 *) as_fn_error $? "invalid argument: '$ac_config_target'" "$LINENO" 5;;
22010 esac
22011 done
22012
22013
22014 # If the user did not use the arguments to specify the items to instantiate,
22015 # then the envvar interface is used. Set only those that are not.
22016 # We use the long form for the default assignment because of an extremely
22017 # bizarre bug on SunOS 4.1.3.
22018 if $ac_need_defaults; then
22019 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
22020 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
22021 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
22022 fi
22023
22024 # Have a temporary directory for convenience. Make it in the build tree
22025 # simply because there is no reason against having it here, and in addition,
22026 # creating and moving files from /tmp can sometimes cause problems.
22027 # Hook for its removal unless debugging.
22028 # Note that there is a small window in which the directory will not be cleaned:
22029 # after its creation but before its name has been assigned to '$tmp'.
22030 $debug ||
22031 {
22032 tmp= ac_tmp=
22033 trap 'exit_status=$?
22034 : "${ac_tmp:=$tmp}"
22035 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
22036 ' 0
22037 trap 'as_fn_exit 1' 1 2 13 15
22038 }
22039 # Create a (secure) tmp directory for tmp files.
22040
22041 {
22042 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22043 test -d "$tmp"
22044 } ||
22045 {
22046 tmp=./conf$$-$RANDOM
22047 (umask 077 && mkdir "$tmp")
22048 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
22049 ac_tmp=$tmp
22050
22051 # Set up the scripts for CONFIG_FILES section.
22052 # No need to generate them if there are no CONFIG_FILES.
22053 # This happens for instance with './config.status config.h'.
22054 if test -n "$CONFIG_FILES"; then
22055
22056
22057 ac_cr=`echo X | tr X '\015'`
22058 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22059 # But we know of no other shell where ac_cr would be empty at this
22060 # point, so we can use a bashism as a fallback.
22061 if test "x$ac_cr" = x; then
22062 eval ac_cr=\$\'\\r\'
22063 fi
22064 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22065 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22066 ac_cs_awk_cr='\\r'
22067 else
22068 ac_cs_awk_cr=$ac_cr
22069 fi
22070
22071 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
22072 _ACEOF
22073
22074
22075 {
22076 echo "cat >conf$$subs.awk <<_ACEOF" &&
22077 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22078 echo "_ACEOF"
22079 } >conf$$subs.sh ||
22080 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22081 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
22082 ac_delim='%!_!# '
22083 for ac_last_try in false false false false false :; do
22084 . ./conf$$subs.sh ||
22085 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22086
22087 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22088 if test $ac_delim_n = $ac_delim_num; then
22089 break
22090 elif $ac_last_try; then
22091 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
22092 else
22093 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22094 fi
22095 done
22096 rm -f conf$$subs.sh
22097
22098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22099 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
22100 _ACEOF
22101 sed -n '
22102 h
22103 s/^/S["/; s/!.*/"]=/
22104 p
22105 g
22106 s/^[^!]*!//
22107 :repl
22108 t repl
22109 s/'"$ac_delim"'$//
22110 t delim
22111 :nl
22112 h
22113 s/\(.\{148\}\)..*/\1/
22114 t more1
22115 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22116 p
22117 n
22118 b repl
22119 :more1
22120 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22121 p
22122 g
22123 s/.\{148\}//
22124 t nl
22125 :delim
22126 h
22127 s/\(.\{148\}\)..*/\1/
22128 t more2
22129 s/["\\]/\\&/g; s/^/"/; s/$/"/
22130 p
22131 b
22132 :more2
22133 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22134 p
22135 g
22136 s/.\{148\}//
22137 t delim
22138 ' <conf$$subs.awk | sed '
22139 /^[^""]/{
22140 N
22141 s/\n//
22142 }
22143 ' >>$CONFIG_STATUS || ac_write_fail=1
22144 rm -f conf$$subs.awk
22145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22146 _ACAWK
22147 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22148 for (key in S) S_is_set[key] = 1
22149 FS = ""
22150
22151 }
22152 {
22153 line = $ 0
22154 nfields = split(line, field, "@")
22155 substed = 0
22156 len = length(field[1])
22157 for (i = 2; i < nfields; i++) {
22158 key = field[i]
22159 keylen = length(key)
22160 if (S_is_set[key]) {
22161 value = S[key]
22162 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22163 len += length(value) + length(field[++i])
22164 substed = 1
22165 } else
22166 len += 1 + keylen
22167 }
22168
22169 print line
22170 }
22171
22172 _ACAWK
22173 _ACEOF
22174 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22175 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22176 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22177 else
22178 cat
22179 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22180 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22181 _ACEOF
22182
22183 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22184 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22185 # trailing colons and then remove the whole line if VPATH becomes empty
22186 # (actually we leave an empty line to preserve line numbers).
22187 if test "x$srcdir" = x.; then
22188 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
22189 h
22190 s///
22191 s/^/:/
22192 s/[ ]*$/:/
22193 s/:\$(srcdir):/:/g
22194 s/:\${srcdir}:/:/g
22195 s/:@srcdir@:/:/g
22196 s/^:*//
22197 s/:*$//
22198 x
22199 s/\(=[ ]*\).*/\1/
22200 G
22201 s/\n//
22202 s/^[^=]*=[ ]*$//
22203 }'
22204 fi
22205
22206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22207 fi # test -n "$CONFIG_FILES"
22208
22209 # Set up the scripts for CONFIG_HEADERS section.
22210 # No need to generate them if there are no CONFIG_HEADERS.
22211 # This happens for instance with './config.status Makefile'.
22212 if test -n "$CONFIG_HEADERS"; then
22213 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22214 BEGIN {
22215 _ACEOF
22216
22217 # Transform confdefs.h into an awk script 'defines.awk', embedded as
22218 # here-document in config.status, that substitutes the proper values into
22219 # config.h.in to produce config.h.
22220
22221 # Create a delimiter string that does not exist in confdefs.h, to ease
22222 # handling of long lines.
22223 ac_delim='%!_!# '
22224 for ac_last_try in false false :; do
22225 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22226 if test -z "$ac_tt"; then
22227 break
22228 elif $ac_last_try; then
22229 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22230 else
22231 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22232 fi
22233 done
22234
22235 # For the awk script, D is an array of macro values keyed by name,
22236 # likewise P contains macro parameters if any. Preserve backslash
22237 # newline sequences.
22238
22239 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22240 sed -n '
22241 s/.\{148\}/&'"$ac_delim"'/g
22242 t rset
22243 :rset
22244 s/^[ ]*#[ ]*define[ ][ ]*/ /
22245 t def
22246 d
22247 :def
22248 s/\\$//
22249 t bsnl
22250 s/["\\]/\\&/g
22251 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22252 D["\1"]=" \3"/p
22253 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
22254 d
22255 :bsnl
22256 s/["\\]/\\&/g
22257 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
22258 D["\1"]=" \3\\\\\\n"\\/p
22259 t cont
22260 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22261 t cont
22262 d
22263 :cont
22264 n
22265 s/.\{148\}/&'"$ac_delim"'/g
22266 t clear
22267 :clear
22268 s/\\$//
22269 t bsnlc
22270 s/["\\]/\\&/g; s/^/"/; s/$/"/p
22271 d
22272 :bsnlc
22273 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22274 b cont
22275 ' <confdefs.h | sed '
22276 s/'"$ac_delim"'/"\\\
22277 "/g' >>$CONFIG_STATUS || ac_write_fail=1
22278
22279 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22280 for (key in D) D_is_set[key] = 1
22281 FS = ""
22282 }
22283 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22284 line = \$ 0
22285 split(line, arg, " ")
22286 if (arg[1] == "#") {
22287 defundef = arg[2]
22288 mac1 = arg[3]
22289 } else {
22290 defundef = substr(arg[1], 2)
22291 mac1 = arg[2]
22292 }
22293 split(mac1, mac2, "(") #)
22294 macro = mac2[1]
22295 prefix = substr(line, 1, index(line, defundef) - 1)
22296 if (D_is_set[macro]) {
22297 # Preserve the white space surrounding the "#".
22298 print prefix "define", macro P[macro] D[macro]
22299 next
22300 } else {
22301 # Replace #undef with comments. This is necessary, for example,
22302 # in the case of _POSIX_SOURCE, which is predefined and required
22303 # on some systems where configure will not decide to define it.
22304 if (defundef == "undef") {
22305 print "/*", prefix defundef, macro, "*/"
22306 next
22307 }
22308 }
22309 }
22310 { print }
22311 _ACAWK
22312 _ACEOF
22313 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22314 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22315 fi # test -n "$CONFIG_HEADERS"
22316
22317
22318 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
22319 shift
22320 for ac_tag
22321 do
22322 case $ac_tag in
22323 :[FHLC]) ac_mode=$ac_tag; continue;;
22324 esac
22325 case $ac_mode$ac_tag in
22326 :[FHL]*:*);;
22327 :L* | :C*:*) as_fn_error $? "invalid tag '$ac_tag'" "$LINENO" 5;;
22328 :[FH]-) ac_tag=-:-;;
22329 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22330 esac
22331 ac_save_IFS=$IFS
22332 IFS=:
22333 set x $ac_tag
22334 IFS=$ac_save_IFS
22335 shift
22336 ac_file=$1
22337 shift
22338
22339 case $ac_mode in
22340 :L) ac_source=$1;;
22341 :[FH])
22342 ac_file_inputs=
22343 for ac_f
22344 do
22345 case $ac_f in
22346 -) ac_f="$ac_tmp/stdin";;
22347 *) # Look for the file first in the build tree, then in the source tree
22348 # (if the path is not absolute). The absolute path cannot be DOS-style,
22349 # because $ac_f cannot contain ':'.
22350 test -f "$ac_f" ||
22351 case $ac_f in
22352 [\\/$]*) false;;
22353 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22354 esac ||
22355 as_fn_error 1 "cannot find input file: '$ac_f'" "$LINENO" 5;;
22356 esac
22357 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22358 as_fn_append ac_file_inputs " '$ac_f'"
22359 done
22360
22361 # Let's still pretend it is 'configure' which instantiates (i.e., don't
22362 # use $as_me), people would be surprised to read:
22363 # /* config.h. Generated by config.status. */
22364 configure_input='Generated from '`
22365 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22366 `' by configure.'
22367 if test x"$ac_file" != x-; then
22368 configure_input="$ac_file. $configure_input"
22369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22370 printf "%s\n" "$as_me: creating $ac_file" >&6;}
22371 fi
22372 # Neutralize special characters interpreted by sed in replacement strings.
22373 case $configure_input in #(
22374 *\&* | *\|* | *\\* )
22375 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
22376 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22377 *) ac_sed_conf_input=$configure_input;;
22378 esac
22379
22380 case $ac_tag in
22381 *:-:* | *:-) cat >"$ac_tmp/stdin" \
22382 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22383 esac
22384 ;;
22385 esac
22386
22387 ac_dir=`$as_dirname -- "$ac_file" ||
22388 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22389 X"$ac_file" : 'X\(//\)[^/]' \| \
22390 X"$ac_file" : 'X\(//\)$' \| \
22391 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22392 printf "%s\n" X"$ac_file" |
22393 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22394 s//\1/
22395 q
22396 }
22397 /^X\(\/\/\)[^/].*/{
22398 s//\1/
22399 q
22400 }
22401 /^X\(\/\/\)$/{
22402 s//\1/
22403 q
22404 }
22405 /^X\(\/\).*/{
22406 s//\1/
22407 q
22408 }
22409 s/.*/./; q'`
22410 as_dir="$ac_dir"; as_fn_mkdir_p
22411 ac_builddir=.
22412
22413 case "$ac_dir" in
22414 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22415 *)
22416 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
22417 # A ".." for each directory in $ac_dir_suffix.
22418 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22419 case $ac_top_builddir_sub in
22420 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22421 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22422 esac ;;
22423 esac
22424 ac_abs_top_builddir=$ac_pwd
22425 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22426 # for backward compatibility:
22427 ac_top_builddir=$ac_top_build_prefix
22428
22429 case $srcdir in
22430 .) # We are building in place.
22431 ac_srcdir=.
22432 ac_top_srcdir=$ac_top_builddir_sub
22433 ac_abs_top_srcdir=$ac_pwd ;;
22434 [\\/]* | ?:[\\/]* ) # Absolute name.
22435 ac_srcdir=$srcdir$ac_dir_suffix;
22436 ac_top_srcdir=$srcdir
22437 ac_abs_top_srcdir=$srcdir ;;
22438 *) # Relative name.
22439 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22440 ac_top_srcdir=$ac_top_build_prefix$srcdir
22441 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22442 esac
22443 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22444
22445
22446 case $ac_mode in
22447 :F)
22448 #
22449 # CONFIG_FILE
22450 #
22451
22452 case $INSTALL in
22453 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22454 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22455 esac
22456 ac_MKDIR_P=$MKDIR_P
22457 case $MKDIR_P in
22458 [\\/$]* | ?:[\\/]* ) ;;
22459 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22460 esac
22461 _ACEOF
22462
22463 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22464 # If the template does not know about datarootdir, expand it.
22465 # FIXME: This hack should be removed a few years after 2.60.
22466 ac_datarootdir_hack=; ac_datarootdir_seen=
22467 ac_sed_dataroot='
22468 /datarootdir/ {
22469 p
22470 q
22471 }
22472 /@datadir@/p
22473 /@docdir@/p
22474 /@infodir@/p
22475 /@localedir@/p
22476 /@mandir@/p'
22477 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22478 *datarootdir*) ac_datarootdir_seen=yes;;
22479 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22481 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22482 _ACEOF
22483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22484 ac_datarootdir_hack='
22485 s&@datadir@&$datadir&g
22486 s&@docdir@&$docdir&g
22487 s&@infodir@&$infodir&g
22488 s&@localedir@&$localedir&g
22489 s&@mandir@&$mandir&g
22490 s&\\\${datarootdir}&$datarootdir&g' ;;
22491 esac
22492 _ACEOF
22493
22494 # Neutralize VPATH when '$srcdir' = '.'.
22495 # Shell code in configure.ac might set extrasub.
22496 # FIXME: do we really want to maintain this feature?
22497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22498 ac_sed_extra="$ac_vpsub
22499 $extrasub
22500 _ACEOF
22501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22502 :t
22503 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22504 s|@configure_input@|$ac_sed_conf_input|;t t
22505 s&@top_builddir@&$ac_top_builddir_sub&;t t
22506 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22507 s&@srcdir@&$ac_srcdir&;t t
22508 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22509 s&@top_srcdir@&$ac_top_srcdir&;t t
22510 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22511 s&@builddir@&$ac_builddir&;t t
22512 s&@abs_builddir@&$ac_abs_builddir&;t t
22513 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22514 s&@INSTALL@&$ac_INSTALL&;t t
22515 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22516 $ac_datarootdir_hack
22517 "
22518 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22519 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22520
22521 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22522 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22523 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22524 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22526 which seems to be undefined. Please make sure it is defined" >&5
22527 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable 'datarootdir'
22528 which seems to be undefined. Please make sure it is defined" >&2;}
22529
22530 rm -f "$ac_tmp/stdin"
22531 case $ac_file in
22532 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22533 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22534 esac \
22535 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22536 ;;
22537 :H)
22538 #
22539 # CONFIG_HEADER
22540 #
22541 if test x"$ac_file" != x-; then
22542 {
22543 printf "%s\n" "/* $configure_input */" >&1 \
22544 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22545 } >"$ac_tmp/config.h" \
22546 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22547 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22549 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
22550 else
22551 rm -f "$ac_file"
22552 mv "$ac_tmp/config.h" "$ac_file" \
22553 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22554 fi
22555 else
22556 printf "%s\n" "/* $configure_input */" >&1 \
22557 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22558 || as_fn_error $? "could not create -" "$LINENO" 5
22559 fi
22560 # Compute "$ac_file"'s index in $config_headers.
22561 _am_arg="$ac_file"
22562 _am_stamp_count=1
22563 for _am_header in $config_headers :; do
22564 case $_am_header in
22565 $_am_arg | $_am_arg:* )
22566 break ;;
22567 * )
22568 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22569 esac
22570 done
22571 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22572 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22573 X"$_am_arg" : 'X\(//\)[^/]' \| \
22574 X"$_am_arg" : 'X\(//\)$' \| \
22575 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22576 printf "%s\n" X"$_am_arg" |
22577 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22578 s//\1/
22579 q
22580 }
22581 /^X\(\/\/\)[^/].*/{
22582 s//\1/
22583 q
22584 }
22585 /^X\(\/\/\)$/{
22586 s//\1/
22587 q
22588 }
22589 /^X\(\/\).*/{
22590 s//\1/
22591 q
22592 }
22593 s/.*/./; q'`/stamp-h$_am_stamp_count
22594 ;;
22595
22596 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22597 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
22598 ;;
22599 esac
22600
22601
22602 case $ac_file$ac_mode in
22603 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22604 # Older Autoconf quotes --file arguments for eval, but not when files
22605 # are listed without --file. Let's play safe and only enable the eval
22606 # if we detect the quoting.
22607 # TODO: see whether this extra hack can be removed once we start
22608 # requiring Autoconf 2.70 or later.
22609 case $CONFIG_FILES in #(
22610 *\'*) :
22611 eval set x "$CONFIG_FILES" ;; #(
22612 *) :
22613 set x $CONFIG_FILES ;; #(
22614 *) :
22615 ;;
22616 esac
22617 shift
22618 # Used to flag and report bootstrapping failures.
22619 am_rc=0
22620 for am_mf
22621 do
22622 # Strip MF so we end up with the name of the file.
22623 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
22624 # Check whether this is an Automake generated Makefile which includes
22625 # dependency-tracking related rules and includes.
22626 # Grep'ing the whole file directly is not great: AIX grep has a line
22627 # limit of 2048, but all sed's we know have understand at least 4000.
22628 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22629 || continue
22630 am_dirpart=`$as_dirname -- "$am_mf" ||
22631 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22632 X"$am_mf" : 'X\(//\)[^/]' \| \
22633 X"$am_mf" : 'X\(//\)$' \| \
22634 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22635 printf "%s\n" X"$am_mf" |
22636 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22637 s//\1/
22638 q
22639 }
22640 /^X\(\/\/\)[^/].*/{
22641 s//\1/
22642 q
22643 }
22644 /^X\(\/\/\)$/{
22645 s//\1/
22646 q
22647 }
22648 /^X\(\/\).*/{
22649 s//\1/
22650 q
22651 }
22652 s/.*/./; q'`
22653 am_filepart=`$as_basename -- "$am_mf" ||
22654 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22655 X"$am_mf" : 'X\(//\)$' \| \
22656 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22657 printf "%s\n" X/"$am_mf" |
22658 sed '/^.*\/\([^/][^/]*\)\/*$/{
22659 s//\1/
22660 q
22661 }
22662 /^X\/\(\/\/\)$/{
22663 s//\1/
22664 q
22665 }
22666 /^X\/\(\/\).*/{
22667 s//\1/
22668 q
22669 }
22670 s/.*/./; q'`
22671 { echo "$as_me:$LINENO: cd "$am_dirpart" \
22672 && sed -e '/# am--include-marker/d' "$am_filepart" \
22673 | $MAKE -f - am--depfiles" >&5
22674 (cd "$am_dirpart" \
22675 && sed -e '/# am--include-marker/d' "$am_filepart" \
22676 | $MAKE -f - am--depfiles) >&5 2>&5
22677 ac_status=$?
22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22679 (exit $ac_status); } || am_rc=$?
22680 done
22681 if test $am_rc -ne 0; then
22682 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in '$ac_pwd':" >&5
22683 printf "%s\n" "$as_me: error: in '$ac_pwd':" >&2;}
22684 as_fn_error $? "Something went wrong bootstrapping makefile fragments
22685 for automatic dependency tracking. If GNU make was not used, consider
22686 re-running the configure script with MAKE=\"gmake\" (or whatever is
22687 necessary). You can also try re-running configure with the
22688 '--disable-dependency-tracking' option to at least be able to build
22689 the package (albeit without support for automatic dependency tracking).
22690 See 'config.log' for more details" "$LINENO" 5; }
22691 fi
22692 { am_dirpart=; unset am_dirpart;}
22693 { am_filepart=; unset am_filepart;}
22694 { am_mf=; unset am_mf;}
22695 { am_rc=; unset am_rc;}
22696 rm -f conftest-deps.mk
22697 }
22698 ;;
22699
22700 esac
22701 done # for ac_tag
22702
22703
22704 as_fn_exit 0
22705 _ACEOF
22706 ac_clean_files=$ac_clean_files_save
22707
22708 test $ac_write_fail = 0 ||
22709 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22710
22711
22712 # configure is writing to config.log, and then calls config.status.
22713 # config.status does its own redirection, appending to config.log.
22714 # Unfortunately, on DOS this fails, as config.log is still kept open
22715 # by configure, so config.status won't be able to write to it; its
22716 # output is simply discarded. So we exec the FD to /dev/null,
22717 # effectively closing config.log, so it can be properly (re)opened and
22718 # appended to by config.status. When coming back to configure, we
22719 # need to make the FD available again.
22720 if test "$no_create" != yes; then
22721 ac_cs_success=:
22722 ac_config_status_args=
22723 test "$silent" = yes &&
22724 ac_config_status_args="$ac_config_status_args --quiet"
22725 exec 5>/dev/null
22726 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22727 exec 5>>config.log
22728 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22729 # would make configure fail if this is the last instruction.
22730 $ac_cs_success || as_fn_exit 1
22731 fi
22732 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22734 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22735 fi
22736
22737