Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for GNU cflow 1.8.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
9 # Inc.
10 #
11 #
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
14 ## -------------------- ##
15 ## M4sh Initialization. ##
16 ## -------------------- ##
17
18 # Be more Bourne compatible
19 DUALCASE=1; export DUALCASE # for MKS sh
20 as_nop=:
21 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
22 then :
23 emulate sh
24 NULLCMD=:
25 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26 # is contrary to our usage. Disable this feature.
27 alias -g '${1+"$@"}'='"$@"'
28 setopt NO_GLOB_SUBST
29 else $as_nop
30 case `(set -o) 2>/dev/null` in #(
31 *posix*) :
32 set -o posix ;; #(
33 *) :
34 ;;
35 esac
36 fi
37
38
39
40 # Reset variables that may have inherited troublesome values from
41 # the environment.
42
43 # IFS needs to be set, to space, tab, and newline, in precisely that order.
44 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45 # side effect of setting IFS to empty, thus disabling word splitting.)
46 # Quoting is to prevent editors from complaining about space-tab.
47 as_nl='
48 '
49 export as_nl
50 IFS=" "" $as_nl"
51
52 PS1='$ '
53 PS2='> '
54 PS4='+ '
55
56 # Ensure predictable behavior from utilities with locale-dependent output.
57 LC_ALL=C
58 export LC_ALL
59 LANGUAGE=C
60 export LANGUAGE
61
62 # We cannot yet rely on "unset" to work, but we need these variables
63 # to be unset--not just set to an empty or harmless value--now, to
64 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
65 # also avoids known problems related to "unset" and subshell syntax
66 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
67 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
68 do eval test \${$as_var+y} \
69 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
70 done
71
72 # Ensure that fds 0, 1, and 2 are open.
73 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
74 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
75 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
76
77 # The user is always right.
78 if ${PATH_SEPARATOR+false} :; then
79 PATH_SEPARATOR=:
80 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
81 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
82 PATH_SEPARATOR=';'
83 }
84 fi
85
86
87 # Find who we are. Look in the path if we contain no directory separator.
88 as_myself=
89 case $0 in #((
90 *[\\/]* ) as_myself=$0 ;;
91 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
92 for as_dir in $PATH
93 do
94 IFS=$as_save_IFS
95 case $as_dir in #(((
96 '') as_dir=./ ;;
97 */) ;;
98 *) as_dir=$as_dir/ ;;
99 esac
100 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116
117 # Use a proper internal environment variable to ensure we don't fall
118 # into an infinite loop, continuously re-executing ourselves.
119 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
120 _as_can_reexec=no; export _as_can_reexec;
121 # We cannot yet assume a decent shell, so we have to provide a
122 # neutralization value for shells without unset; and this also
123 # works around shells that cannot unset nonexistent variables.
124 # Preserve -v and -x to the replacement shell.
125 BASH_ENV=/dev/null
126 ENV=/dev/null
127 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
128 case $- in # ((((
129 *v*x* | *x*v* ) as_opts=-vx ;;
130 *v* ) as_opts=-v ;;
131 *x* ) as_opts=-x ;;
132 * ) as_opts= ;;
133 esac
134 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
135 # Admittedly, this is quite paranoid, since all the known shells bail
136 # out after a failed `exec'.
137 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
138 exit 255
139 fi
140 # We don't want this to propagate to other subprocesses.
141 { _as_can_reexec=; unset _as_can_reexec;}
142 if test "x$CONFIG_SHELL" = x; then
143 as_bourne_compatible="as_nop=:
144 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
145 then :
146 emulate sh
147 NULLCMD=:
148 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
149 # is contrary to our usage. Disable this feature.
150 alias -g '\${1+\"\$@\"}'='\"\$@\"'
151 setopt NO_GLOB_SUBST
152 else \$as_nop
153 case \`(set -o) 2>/dev/null\` in #(
154 *posix*) :
155 set -o posix ;; #(
156 *) :
157 ;;
158 esac
159 fi
160 "
161 as_required="as_fn_return () { (exit \$1); }
162 as_fn_success () { as_fn_return 0; }
163 as_fn_failure () { as_fn_return 1; }
164 as_fn_ret_success () { return 0; }
165 as_fn_ret_failure () { return 1; }
166
167 exitcode=0
168 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
169 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
170 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
171 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
172 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
173 then :
174
175 else \$as_nop
176 exitcode=1; echo positional parameters were not saved.
177 fi
178 test x\$exitcode = x0 || exit 1
179 blah=\$(echo \$(echo blah))
180 test x\"\$blah\" = xblah || exit 1
181 test -x / || exit 1"
182 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
183 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
184 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
185 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
186 test \$(( 1 + 1 )) = 2 || exit 1"
187 if (eval "$as_required") 2>/dev/null
188 then :
189 as_have_required=yes
190 else $as_nop
191 as_have_required=no
192 fi
193 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
194 then :
195
196 else $as_nop
197 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 $as_nop
231 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 fi
237
238
239 if test "x$CONFIG_SHELL" != x
240 then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno
263 then :
264 printf "%s\n" "$0: This script requires a shell more modern than all"
265 printf "%s\n" "$0: the shells that I found on your system."
266 if test ${ZSH_VERSION+y} ; then
267 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
268 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
269 else
270 printf "%s\n" "$0: Please tell [email protected] and [email protected]
271 $0: about your system, including any error possibly output
272 $0: before this message. Then install a modern shell, or
273 $0: manually run the script under such a shell if you do
274 $0: have one."
275 fi
276 exit 1
277 fi
278 fi
279 fi
280 SHELL=${CONFIG_SHELL-/bin/sh}
281 export SHELL
282 # Unset more variables known to interfere with behavior of common tools.
283 CLICOLOR_FORCE= GREP_OPTIONS=
284 unset CLICOLOR_FORCE GREP_OPTIONS
285
286 ## --------------------- ##
287 ## M4sh Shell Functions. ##
288 ## --------------------- ##
289 # as_fn_unset VAR
290 # ---------------
291 # Portably unset VAR.
292 as_fn_unset ()
293 {
294 { eval $1=; unset $1;}
295 }
296 as_unset=as_fn_unset
297
298
299 # as_fn_set_status STATUS
300 # -----------------------
301 # Set $? to STATUS, without forking.
302 as_fn_set_status ()
303 {
304 return $1
305 } # as_fn_set_status
306
307 # as_fn_exit STATUS
308 # -----------------
309 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
310 as_fn_exit ()
311 {
312 set +e
313 as_fn_set_status $1
314 exit $1
315 } # as_fn_exit
316 # as_fn_nop
317 # ---------
318 # Do nothing but, unlike ":", preserve the value of $?.
319 as_fn_nop ()
320 {
321 return $?
322 }
323 as_nop=as_fn_nop
324
325 # as_fn_mkdir_p
326 # -------------
327 # Create "$as_dir" as a directory, including parents if necessary.
328 as_fn_mkdir_p ()
329 {
330
331 case $as_dir in #(
332 -*) as_dir=./$as_dir;;
333 esac
334 test -d "$as_dir" || eval $as_mkdir_p || {
335 as_dirs=
336 while :; do
337 case $as_dir in #(
338 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
339 *) as_qdir=$as_dir;;
340 esac
341 as_dirs="'$as_qdir' $as_dirs"
342 as_dir=`$as_dirname -- "$as_dir" ||
343 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
344 X"$as_dir" : 'X\(//\)[^/]' \| \
345 X"$as_dir" : 'X\(//\)$' \| \
346 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
347 printf "%s\n" X"$as_dir" |
348 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
349 s//\1/
350 q
351 }
352 /^X\(\/\/\)[^/].*/{
353 s//\1/
354 q
355 }
356 /^X\(\/\/\)$/{
357 s//\1/
358 q
359 }
360 /^X\(\/\).*/{
361 s//\1/
362 q
363 }
364 s/.*/./; q'`
365 test -d "$as_dir" && break
366 done
367 test -z "$as_dirs" || eval "mkdir $as_dirs"
368 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
369
370
371 } # as_fn_mkdir_p
372
373 # as_fn_executable_p FILE
374 # -----------------------
375 # Test if FILE is an executable regular file.
376 as_fn_executable_p ()
377 {
378 test -f "$1" && test -x "$1"
379 } # as_fn_executable_p
380 # as_fn_append VAR VALUE
381 # ----------------------
382 # Append the text in VALUE to the end of the definition contained in VAR. Take
383 # advantage of any shell optimizations that allow amortized linear growth over
384 # repeated appends, instead of the typical quadratic growth present in naive
385 # implementations.
386 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
387 then :
388 eval 'as_fn_append ()
389 {
390 eval $1+=\$2
391 }'
392 else $as_nop
393 as_fn_append ()
394 {
395 eval $1=\$$1\$2
396 }
397 fi # as_fn_append
398
399 # as_fn_arith ARG...
400 # ------------------
401 # Perform arithmetic evaluation on the ARGs, and store the result in the
402 # global $as_val. Take advantage of shells that can avoid forks. The arguments
403 # must be portable across $(()) and expr.
404 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
405 then :
406 eval 'as_fn_arith ()
407 {
408 as_val=$(( $* ))
409 }'
410 else $as_nop
411 as_fn_arith ()
412 {
413 as_val=`expr "$@" || test $? -eq 1`
414 }
415 fi # as_fn_arith
416
417 # as_fn_nop
418 # ---------
419 # Do nothing but, unlike ":", preserve the value of $?.
420 as_fn_nop ()
421 {
422 return $?
423 }
424 as_nop=as_fn_nop
425
426 # as_fn_error STATUS ERROR [LINENO LOG_FD]
427 # ----------------------------------------
428 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
429 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
430 # script with STATUS, using 1 if that was 0.
431 as_fn_error ()
432 {
433 as_status=$1; test $as_status -eq 0 && as_status=1
434 if test "$4"; then
435 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
436 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
437 fi
438 printf "%s\n" "$as_me: error: $2" >&2
439 as_fn_exit $as_status
440 } # as_fn_error
441
442 if expr a : '\(a\)' >/dev/null 2>&1 &&
443 test "X`expr 00001 : '.*\(...\)'`" = X001; then
444 as_expr=expr
445 else
446 as_expr=false
447 fi
448
449 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
450 as_basename=basename
451 else
452 as_basename=false
453 fi
454
455 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
456 as_dirname=dirname
457 else
458 as_dirname=false
459 fi
460
461 as_me=`$as_basename -- "$0" ||
462 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
463 X"$0" : 'X\(//\)$' \| \
464 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
465 printf "%s\n" X/"$0" |
466 sed '/^.*\/\([^/][^/]*\)\/*$/{
467 s//\1/
468 q
469 }
470 /^X\/\(\/\/\)$/{
471 s//\1/
472 q
473 }
474 /^X\/\(\/\).*/{
475 s//\1/
476 q
477 }
478 s/.*/./; q'`
479
480 # Avoid depending upon Character Ranges.
481 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
482 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
483 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
484 as_cr_digits='0123456789'
485 as_cr_alnum=$as_cr_Letters$as_cr_digits
486
487
488 as_lineno_1=$LINENO as_lineno_1a=$LINENO
489 as_lineno_2=$LINENO as_lineno_2a=$LINENO
490 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
491 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
492 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
493 sed -n '
494 p
495 /[$]LINENO/=
496 ' <$as_myself |
497 sed '
498 s/[$]LINENO.*/&-/
499 t lineno
500 b
501 :lineno
502 N
503 :loop
504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
505 t loop
506 s/-\n.*//
507 ' >$as_me.lineno &&
508 chmod +x "$as_me.lineno" ||
509 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
510
511 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
512 # already done that, so ensure we don't try to do so again and fall
513 # in an infinite loop. This has already happened in practice.
514 _as_can_reexec=no; export _as_can_reexec
515 # Don't try to exec as it changes $[0], causing all sort of problems
516 # (the dirname of $[0] is not the place where we might find the
517 # original and so on. Autoconf is especially sensitive to this).
518 . "./$as_me.lineno"
519 # Exit status is that of the last command.
520 exit
521 }
522
523
524 # Determine whether it's possible to make 'echo' print without a newline.
525 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
526 # for compatibility with existing Makefiles.
527 ECHO_C= ECHO_N= ECHO_T=
528 case `echo -n x` in #(((((
529 -n*)
530 case `echo 'xy\c'` in
531 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
532 xy) ECHO_C='\c';;
533 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
534 ECHO_T=' ';;
535 esac;;
536 *)
537 ECHO_N='-n';;
538 esac
539
540 # For backward compatibility with old third-party macros, we provide
541 # the shell variables $as_echo and $as_echo_n. New code should use
542 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
543 as_echo='printf %s\n'
544 as_echo_n='printf %s'
545
546
547 rm -f conf$$ conf$$.exe conf$$.file
548 if test -d conf$$.dir; then
549 rm -f conf$$.dir/conf$$.file
550 else
551 rm -f conf$$.dir
552 mkdir conf$$.dir 2>/dev/null
553 fi
554 if (echo >conf$$.file) 2>/dev/null; then
555 if ln -s conf$$.file conf$$ 2>/dev/null; then
556 as_ln_s='ln -s'
557 # ... but there are two gotchas:
558 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
559 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
560 # In both cases, we have to default to `cp -pR'.
561 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
562 as_ln_s='cp -pR'
563 elif ln conf$$.file conf$$ 2>/dev/null; then
564 as_ln_s=ln
565 else
566 as_ln_s='cp -pR'
567 fi
568 else
569 as_ln_s='cp -pR'
570 fi
571 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
572 rmdir conf$$.dir 2>/dev/null
573
574 if mkdir -p . 2>/dev/null; then
575 as_mkdir_p='mkdir -p "$as_dir"'
576 else
577 test -d ./-p && rmdir ./-p
578 as_mkdir_p=false
579 fi
580
581 as_test_x='test -x'
582 as_executable_p=as_fn_executable_p
583
584 # Sed expression to map a string onto a valid CPP name.
585 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
586
587 # Sed expression to map a string onto a valid variable name.
588 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
589
590
591 test -n "$DJDIR" || exec 7<&0 </dev/null
592 exec 6>&1
593
594 # Name of the host.
595 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
596 # so uname gets run too.
597 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
598
599 #
600 # Initializations.
601 #
602 ac_default_prefix=/usr/local
603 ac_clean_files=
604 ac_config_libobj_dir=.
605 LIBOBJS=
606 cross_compiling=no
607 subdirs=
608 MFLAGS=
609 MAKEFLAGS=
610
611 # Identity of this package.
612 PACKAGE_NAME='GNU cflow'
613 PACKAGE_TARNAME='cflow'
614 PACKAGE_VERSION='1.8'
615 PACKAGE_STRING='GNU cflow 1.8'
616 PACKAGE_BUGREPORT='[email protected]'
617 PACKAGE_URL='http://www.gnu.org/software/cflow'
618
619 ac_unique_file="src/cflow.h"
620 # Factoring default headers for most tests.
621 ac_includes_default="\
622 #include <stddef.h>
623 #ifdef HAVE_STDIO_H
624 # include <stdio.h>
625 #endif
626 #ifdef HAVE_STDLIB_H
627 # include <stdlib.h>
628 #endif
629 #ifdef HAVE_STRING_H
630 # include <string.h>
631 #endif
632 #ifdef HAVE_INTTYPES_H
633 # include <inttypes.h>
634 #endif
635 #ifdef HAVE_STDINT_H
636 # include <stdint.h>
637 #endif
638 #ifdef HAVE_STRINGS_H
639 # include <strings.h>
640 #endif
641 #ifdef HAVE_SYS_TYPES_H
642 # include <sys/types.h>
643 #endif
644 #ifdef HAVE_SYS_STAT_H
645 # include <sys/stat.h>
646 #endif
647 #ifdef HAVE_UNISTD_H
648 # include <unistd.h>
649 #endif"
650
651 ac_header_c_list=
652 ac_func_c_list=
653 gt_needs=
654 enable_year2038=no
655 ac_subst_vars='gltests_LIBOBJDEPS
656 gltests_LTLIBOBJS
657 gltests_LIBOBJS
658 gl_LIBOBJDEPS
659 gl_LTLIBOBJS
660 gl_LIBOBJS
661 am__EXEEXT_FALSE
662 am__EXEEXT_TRUE
663 LTLIBOBJS
664 AUTOM4TE
665 IMPRIMATUR_COND_DIST_INFO_FALSE
666 IMPRIMATUR_COND_DIST_INFO_TRUE
667 IMPRIMATUR_COND_FRENCHSPACING_FALSE
668 IMPRIMATUR_COND_FRENCHSPACING_TRUE
669 IMPRIMATUR_COND_MAKEDOC_FALSE
670 IMPRIMATUR_COND_MAKEDOC_TRUE
671 IMPRIMATUR_MAKEINFOFLAGS
672 RENDITION
673 IMPRIMATUR_MODULE_DIR
674 POSUB
675 INTLLIBS
676 INTL_MACOSX_LIBS
677 XGETTEXT_EXTRA_OPTIONS
678 MSGMERGE
679 XGETTEXT_015
680 XGETTEXT
681 GMSGFMT_015
682 MSGFMT_015
683 GMSGFMT
684 MSGFMT
685 GETTEXT_MACRO_VERSION
686 USE_NLS
687 SED
688 LTLIBICONV
689 LIBICONV
690 lispdir
691 EMACSLOADPATH
692 EMACS
693 LIBGNU_LTLIBDEPS
694 LIBGNU_LIBDEPS
695 GL_CFLAG_GNULIB_WARNINGS
696 GL_CFLAG_ALLOW_WARNINGS
697 gltests_WITNESS
698 HAVE_CRTDEFS_H
699 HAVE_WINT_T
700 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H
701 NEXT_WCHAR_H
702 HAVE_FEATURES_H
703 HAVE_UNISTD_H
704 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H
705 NEXT_UNISTD_H
706 GL_GNULIB_MDA_TZSET
707 GL_GNULIB_TZSET
708 GL_GNULIB_TIME_RZ
709 GL_GNULIB_TIME_R
710 GL_GNULIB_TIMESPEC_GETRES
711 GL_GNULIB_TIMESPEC_GET
712 GL_GNULIB_TIMEGM
713 GL_GNULIB_TIME
714 GL_GNULIB_STRPTIME
715 GL_GNULIB_STRFTIME
716 GL_GNULIB_NANOSLEEP
717 GL_GNULIB_LOCALTIME
718 GL_GNULIB_MKTIME
719 GL_GNULIB_CTIME
720 TIME_H_DEFINES_TIME_UTC
721 UNISTD_H_DEFINES_STRUCT_TIMESPEC
722 PTHREAD_H_DEFINES_STRUCT_TIMESPEC
723 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC
724 TIME_H_DEFINES_STRUCT_TIMESPEC
725 NEXT_AS_FIRST_DIRECTIVE_TIME_H
726 NEXT_TIME_H
727 REPLACE_TZSET
728 REPLACE_TIMESPEC_GET
729 REPLACE_TIMEGM
730 REPLACE_TIME
731 REPLACE_STRFTIME
732 REPLACE_NANOSLEEP
733 REPLACE_MKTIME
734 REPLACE_LOCALTIME_R
735 REPLACE_LOCALTIME
736 REPLACE_GMTIME
737 REPLACE_CTIME
738 HAVE_TIMEZONE_T
739 HAVE_TIMESPEC_GETRES
740 HAVE_TIMESPEC_GET
741 HAVE_TIMEGM
742 HAVE_STRPTIME
743 HAVE_NANOSLEEP
744 HAVE_DECL_LOCALTIME_R
745 WINDOWS_STAT_INODES
746 WINDOWS_64_BIT_OFF_T
747 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H
748 NEXT_SYS_TYPES_H
749 NEXT_AS_FIRST_DIRECTIVE_STRING_H
750 NEXT_STRING_H
751 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE
752 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE
753 GL_COND_OBJ_STRERROR_FALSE
754 GL_COND_OBJ_STRERROR_TRUE
755 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H
756 NEXT_STDLIB_H
757 GL_COND_OBJ_STDIO_WRITE_FALSE
758 GL_COND_OBJ_STDIO_WRITE_TRUE
759 GL_COND_OBJ_STDIO_READ_FALSE
760 GL_COND_OBJ_STDIO_READ_TRUE
761 NEXT_AS_FIRST_DIRECTIVE_STDIO_H
762 NEXT_STDIO_H
763 GL_GENERATE_STDINT_H_FALSE
764 GL_GENERATE_STDINT_H_TRUE
765 STDINT_H
766 GL_GENERATE_STDDEF_H_FALSE
767 GL_GENERATE_STDDEF_H_TRUE
768 STDDEF_H
769 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H
770 NEXT_STDDEF_H
771 HAVE_WCHAR_T
772 HAVE_MAX_ALIGN_T
773 REPLACE_NULL
774 GL_GENERATE_STDCKDINT_H_FALSE
775 GL_GENERATE_STDCKDINT_H_TRUE
776 STDCKDINT_H
777 GL_COND_OBJ_STAT_FALSE
778 GL_COND_OBJ_STAT_TRUE
779 GL_GNULIB_MDA_TEMPNAM
780 GL_GNULIB_MDA_PUTW
781 GL_GNULIB_MDA_GETW
782 GL_GNULIB_MDA_FILENO
783 GL_GNULIB_MDA_FDOPEN
784 GL_GNULIB_MDA_FCLOSEALL
785 GL_GNULIB_VSPRINTF_POSIX
786 GL_GNULIB_VSNPRINTF
787 GL_GNULIB_VPRINTF_POSIX
788 GL_GNULIB_VPRINTF
789 GL_GNULIB_VFPRINTF_POSIX
790 GL_GNULIB_VFPRINTF
791 GL_GNULIB_VDPRINTF
792 GL_GNULIB_VSCANF
793 GL_GNULIB_VFSCANF
794 GL_GNULIB_VASPRINTF
795 GL_GNULIB_TMPFILE
796 GL_GNULIB_STDIO_H_SIGPIPE
797 GL_GNULIB_STDIO_H_NONBLOCKING
798 GL_GNULIB_SPRINTF_POSIX
799 GL_GNULIB_SNPRINTF
800 GL_GNULIB_SCANF
801 GL_GNULIB_RENAMEAT
802 GL_GNULIB_RENAME
803 GL_GNULIB_REMOVE
804 GL_GNULIB_PUTS
805 GL_GNULIB_PUTCHAR
806 GL_GNULIB_PUTC
807 GL_GNULIB_PRINTF_POSIX
808 GL_GNULIB_PRINTF
809 GL_GNULIB_POPEN
810 GL_GNULIB_PERROR
811 GL_GNULIB_PCLOSE
812 GL_GNULIB_OBSTACK_PRINTF_POSIX
813 GL_GNULIB_OBSTACK_PRINTF
814 GL_GNULIB_GETLINE
815 GL_GNULIB_GETDELIM
816 GL_GNULIB_GETCHAR
817 GL_GNULIB_GETC
818 GL_GNULIB_FWRITE
819 GL_GNULIB_FTELLO
820 GL_GNULIB_FTELL
821 GL_GNULIB_FSEEKO
822 GL_GNULIB_FSEEK
823 GL_GNULIB_FSCANF
824 GL_GNULIB_FREOPEN
825 GL_GNULIB_FREAD
826 GL_GNULIB_FPUTS
827 GL_GNULIB_FPUTC
828 GL_GNULIB_FPURGE
829 GL_GNULIB_FPRINTF_POSIX
830 GL_GNULIB_FPRINTF
831 GL_GNULIB_FOPEN_GNU
832 GL_GNULIB_FOPEN
833 GL_GNULIB_FGETS
834 GL_GNULIB_FGETC
835 GL_GNULIB_FFLUSH
836 GL_GNULIB_FDOPEN
837 GL_GNULIB_FCLOSE
838 GL_GNULIB_DPRINTF
839 REPLACE_VSPRINTF
840 REPLACE_VSNPRINTF
841 REPLACE_VPRINTF
842 REPLACE_VFPRINTF
843 REPLACE_VDPRINTF
844 REPLACE_VASPRINTF
845 REPLACE_TMPFILE
846 REPLACE_STDIO_WRITE_FUNCS
847 REPLACE_STDIO_READ_FUNCS
848 REPLACE_SPRINTF
849 REPLACE_SNPRINTF
850 REPLACE_RENAMEAT
851 REPLACE_RENAME
852 REPLACE_REMOVE
853 REPLACE_PRINTF
854 REPLACE_POPEN
855 REPLACE_PERROR
856 REPLACE_OBSTACK_PRINTF
857 REPLACE_GETLINE
858 REPLACE_GETDELIM
859 REPLACE_FTELLO
860 REPLACE_FTELL
861 REPLACE_FSEEKO
862 REPLACE_FSEEK
863 REPLACE_FREOPEN
864 REPLACE_FPURGE
865 REPLACE_FPRINTF
866 REPLACE_FOPEN_FOR_FOPEN_GNU
867 REPLACE_FOPEN
868 REPLACE_FFLUSH
869 REPLACE_FDOPEN
870 REPLACE_FCLOSE
871 REPLACE_DPRINTF
872 HAVE_VDPRINTF
873 HAVE_VASPRINTF
874 HAVE_RENAMEAT
875 HAVE_POPEN
876 HAVE_PCLOSE
877 HAVE_FTELLO
878 HAVE_FSEEKO
879 HAVE_DPRINTF
880 HAVE_DECL_VSNPRINTF
881 HAVE_DECL_SNPRINTF
882 HAVE_DECL_PUTW
883 HAVE_DECL_OBSTACK_PRINTF
884 HAVE_DECL_GETW
885 HAVE_DECL_GETLINE
886 HAVE_DECL_GETDELIM
887 HAVE_DECL_FTELLO
888 HAVE_DECL_FSEEKO
889 HAVE_DECL_FPURGE
890 HAVE_DECL_FCLOSEALL
891 GL_COND_OBJ_REALLOCARRAY_FALSE
892 GL_COND_OBJ_REALLOCARRAY_TRUE
893 GL_COND_OBJ_OPEN_FALSE
894 GL_COND_OBJ_OPEN_TRUE
895 GL_COND_OBJ_OBSTACK_FALSE
896 GL_COND_OBJ_OBSTACK_TRUE
897 GL_GENERATE_OBSTACK_H_FALSE
898 GL_GENERATE_OBSTACK_H_TRUE
899 OBSTACK_H
900 REPLACE_OBSTACK
901 GL_COND_OBJ_MSVC_NOTHROW_FALSE
902 GL_COND_OBJ_MSVC_NOTHROW_TRUE
903 GL_COND_OBJ_MSVC_INVAL_FALSE
904 GL_COND_OBJ_MSVC_INVAL_TRUE
905 GL_GNULIB_MDA_STRDUP
906 GL_GNULIB_MDA_MEMCCPY
907 GL_GNULIB_STRVERSCMP
908 GL_GNULIB_STRSIGNAL
909 GL_GNULIB_SIGDESCR_NP
910 GL_GNULIB_SIGABBREV_NP
911 GL_GNULIB_STRERRORNAME_NP
912 GL_GNULIB_STRERROR_R
913 GL_GNULIB_STRERROR
914 GL_GNULIB_MBSTOK_R
915 GL_GNULIB_MBSSEP
916 GL_GNULIB_MBSSPN
917 GL_GNULIB_MBSPBRK
918 GL_GNULIB_MBSCSPN
919 GL_GNULIB_MBSCASESTR
920 GL_GNULIB_MBSPCASECMP
921 GL_GNULIB_MBSNCASECMP
922 GL_GNULIB_MBSCASECMP
923 GL_GNULIB_MBSSTR
924 GL_GNULIB_MBSRCHR
925 GL_GNULIB_MBSCHR
926 GL_GNULIB_MBSNLEN
927 GL_GNULIB_MBSLEN
928 GL_GNULIB_STRTOK_R
929 GL_GNULIB_STRCASESTR
930 GL_GNULIB_STRSTR
931 GL_GNULIB_STRSEP
932 GL_GNULIB_STRPBRK
933 GL_GNULIB_STRNLEN
934 GL_GNULIB_STRNDUP
935 GL_GNULIB_STRNCAT
936 GL_GNULIB_STRDUP
937 GL_GNULIB_STRCHRNUL
938 GL_GNULIB_STPNCPY
939 GL_GNULIB_STPCPY
940 GL_GNULIB_RAWMEMCHR
941 GL_GNULIB_MEMSET_EXPLICIT
942 GL_GNULIB_MEMRCHR
943 GL_GNULIB_MEMPCPY
944 GL_GNULIB_MEMMEM
945 GL_GNULIB_MEMCHR
946 GL_GNULIB_FFSLL
947 GL_GNULIB_FFSL
948 GL_GNULIB_EXPLICIT_BZERO
949 GL_COND_OBJ_MEMCHR_FALSE
950 GL_COND_OBJ_MEMCHR_TRUE
951 UNDEFINE_STRTOK_R
952 REPLACE_STRSIGNAL
953 REPLACE_STRERRORNAME_NP
954 REPLACE_STRERROR_R
955 REPLACE_STRERROR
956 REPLACE_STRTOK_R
957 REPLACE_STRCASESTR
958 REPLACE_STRSTR
959 REPLACE_STRNLEN
960 REPLACE_STRNDUP
961 REPLACE_STRNCAT
962 REPLACE_STRDUP
963 REPLACE_STRCHRNUL
964 REPLACE_STPNCPY
965 REPLACE_STPCPY
966 REPLACE_MEMPCPY
967 REPLACE_MEMMEM
968 REPLACE_MEMCHR
969 REPLACE_FFSLL
970 HAVE_STRVERSCMP
971 HAVE_DECL_STRSIGNAL
972 HAVE_SIGDESCR_NP
973 HAVE_SIGABBREV_NP
974 HAVE_STRERRORNAME_NP
975 HAVE_DECL_STRERROR_R
976 HAVE_DECL_STRTOK_R
977 HAVE_STRCASESTR
978 HAVE_STRSEP
979 HAVE_STRPBRK
980 HAVE_DECL_STRNLEN
981 HAVE_DECL_STRNDUP
982 HAVE_DECL_STRDUP
983 HAVE_STRCHRNUL
984 HAVE_STPNCPY
985 HAVE_STPCPY
986 HAVE_RAWMEMCHR
987 HAVE_DECL_MEMRCHR
988 HAVE_MEMSET_EXPLICIT
989 HAVE_MEMPCPY
990 HAVE_DECL_MEMMEM
991 HAVE_FFSLL
992 HAVE_FFSL
993 HAVE_EXPLICIT_BZERO
994 HAVE_MBSLEN
995 GL_GNULIB_MDA_WCSDUP
996 GL_GNULIB_WGETCWD
997 GL_GNULIB_WCSFTIME
998 GL_GNULIB_WCSWIDTH
999 GL_GNULIB_WCSTOK
1000 GL_GNULIB_WCSSTR
1001 GL_GNULIB_WCSPBRK
1002 GL_GNULIB_WCSSPN
1003 GL_GNULIB_WCSCSPN
1004 GL_GNULIB_WCSRCHR
1005 GL_GNULIB_WCSCHR
1006 GL_GNULIB_WCSDUP
1007 GL_GNULIB_WCSXFRM
1008 GL_GNULIB_WCSCOLL
1009 GL_GNULIB_WCSNCASECMP
1010 GL_GNULIB_WCSCASECMP
1011 GL_GNULIB_WCSNCMP
1012 GL_GNULIB_WCSCMP
1013 GL_GNULIB_WCSNCAT
1014 GL_GNULIB_WCSCAT
1015 GL_GNULIB_WCPNCPY
1016 GL_GNULIB_WCSNCPY
1017 GL_GNULIB_WCPCPY
1018 GL_GNULIB_WCSCPY
1019 GL_GNULIB_WCSNLEN
1020 GL_GNULIB_WCSLEN
1021 GL_GNULIB_WMEMSET
1022 GL_GNULIB_WMEMPCPY
1023 GL_GNULIB_WMEMMOVE
1024 GL_GNULIB_WMEMCPY
1025 GL_GNULIB_WMEMCMP
1026 GL_GNULIB_WMEMCHR
1027 GL_GNULIB_WCWIDTH
1028 GL_GNULIB_WCSNRTOMBS
1029 GL_GNULIB_WCSRTOMBS
1030 GL_GNULIB_WCRTOMB
1031 GL_GNULIB_MBSNRTOWCS
1032 GL_GNULIB_MBSRTOWCS
1033 GL_GNULIB_MBRLEN
1034 GL_GNULIB_MBRTOWC
1035 GL_GNULIB_MBSZERO
1036 GL_GNULIB_MBSINIT
1037 GL_GNULIB_WCTOB
1038 GL_GNULIB_BTOWC
1039 LOCALE_ZH_CN
1040 LC_MONETARY_IMPLEMENTED
1041 LC_TIME_IMPLEMENTED
1042 LC_NUMERIC_IMPLEMENTED
1043 LC_COLLATE_IMPLEMENTED
1044 LOCALE_FR_UTF8
1045 LOCALE_JA
1046 REPLACE_WMEMPCPY
1047 REPLACE_WMEMCMP
1048 REPLACE_WCSTOK
1049 REPLACE_WCSSTR
1050 REPLACE_WCSNCMP
1051 REPLACE_WCSCMP
1052 REPLACE_WCSFTIME
1053 REPLACE_WCSWIDTH
1054 REPLACE_WCWIDTH
1055 REPLACE_WCSNRTOMBS
1056 REPLACE_WCSRTOMBS
1057 REPLACE_WCRTOMB
1058 REPLACE_MBSNRTOWCS
1059 REPLACE_MBSRTOWCS
1060 REPLACE_MBRLEN
1061 REPLACE_MBRTOWC
1062 REPLACE_MBSINIT
1063 REPLACE_WCTOB
1064 REPLACE_BTOWC
1065 REPLACE_MBSTATE_T
1066 HAVE_DECL_WCWIDTH
1067 HAVE_DECL_WCSDUP
1068 HAVE_DECL_WCTOB
1069 HAVE_WCSFTIME
1070 HAVE_WCSWIDTH
1071 HAVE_WCSTOK
1072 HAVE_WCSSTR
1073 HAVE_WCSPBRK
1074 HAVE_WCSSPN
1075 HAVE_WCSCSPN
1076 HAVE_WCSRCHR
1077 HAVE_WCSCHR
1078 HAVE_WCSDUP
1079 HAVE_WCSXFRM
1080 HAVE_WCSCOLL
1081 HAVE_WCSNCASECMP
1082 HAVE_WCSCASECMP
1083 HAVE_WCSNCMP
1084 HAVE_WCSCMP
1085 HAVE_WCSNCAT
1086 HAVE_WCSCAT
1087 HAVE_WCPNCPY
1088 HAVE_WCSNCPY
1089 HAVE_WCPCPY
1090 HAVE_WCSCPY
1091 HAVE_WCSNLEN
1092 HAVE_WCSLEN
1093 HAVE_WMEMSET
1094 HAVE_WMEMPCPY
1095 HAVE_WMEMMOVE
1096 HAVE_WMEMCPY
1097 HAVE_WMEMCMP
1098 HAVE_WMEMCHR
1099 HAVE_WCSNRTOMBS
1100 HAVE_WCSRTOMBS
1101 HAVE_WCRTOMB
1102 HAVE_MBSNRTOWCS
1103 HAVE_MBSRTOWCS
1104 HAVE_MBRLEN
1105 HAVE_MBRTOWC
1106 HAVE_MBSINIT
1107 HAVE_BTOWC
1108 GL_GENERATE_LIMITS_H_FALSE
1109 GL_GENERATE_LIMITS_H_TRUE
1110 LIMITS_H
1111 GL_GNULIB_STRTOUMAX
1112 GL_GNULIB_STRTOIMAX
1113 GL_GNULIB_IMAXDIV
1114 GL_GNULIB_IMAXABS
1115 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H
1116 NEXT_INTTYPES_H
1117 UINT64_MAX_EQ_ULONG_MAX
1118 UINT32_MAX_LT_UINTMAX_MAX
1119 PRIPTR_PREFIX
1120 INT64_MAX_EQ_LONG_MAX
1121 INT32_MAX_LT_INTMAX_MAX
1122 REPLACE_STRTOUMAX
1123 REPLACE_STRTOIMAX
1124 REPLACE_IMAXDIV
1125 REPLACE_IMAXABS
1126 HAVE_IMAXDIV
1127 HAVE_IMAXABS
1128 HAVE_IMAXDIV_T
1129 HAVE_DECL_STRTOUMAX
1130 HAVE_DECL_STRTOIMAX
1131 HAVE_DECL_IMAXDIV
1132 HAVE_DECL_IMAXABS
1133 HAVE_SYS_INTTYPES_H
1134 HAVE_SYS_BITYPES_H
1135 HAVE_C99_STDINT_H
1136 WINT_T_SUFFIX
1137 WCHAR_T_SUFFIX
1138 SIG_ATOMIC_T_SUFFIX
1139 SIZE_T_SUFFIX
1140 PTRDIFF_T_SUFFIX
1141 HAVE_SIGNED_WINT_T
1142 HAVE_SIGNED_WCHAR_T
1143 HAVE_SIGNED_SIG_ATOMIC_T
1144 BITSIZEOF_WINT_T
1145 BITSIZEOF_WCHAR_T
1146 BITSIZEOF_SIG_ATOMIC_T
1147 BITSIZEOF_SIZE_T
1148 BITSIZEOF_PTRDIFF_T
1149 APPLE_UNIVERSAL_BUILD
1150 HAVE_STDINT_H
1151 NEXT_AS_FIRST_DIRECTIVE_STDINT_H
1152 NEXT_STDINT_H
1153 HAVE_SYS_TYPES_H
1154 HAVE_INTTYPES_H
1155 HAVE_WCHAR_H
1156 GNULIBHEADERS_OVERRIDE_WINT_T
1157 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H
1158 NEXT_LIMITS_H
1159 LTLIBINTL
1160 LIBINTL
1161 GL_COND_OBJ_GETPROGNAME_FALSE
1162 GL_COND_OBJ_GETPROGNAME_TRUE
1163 GL_COND_OBJ_GETDTABLESIZE_FALSE
1164 GL_COND_OBJ_GETDTABLESIZE_TRUE
1165 GL_GNULIB_MDA_UMASK
1166 GL_GNULIB_MDA_MKDIR
1167 GL_GNULIB_MDA_CHMOD
1168 GL_GNULIB_OVERRIDES_STRUCT_STAT
1169 GL_GNULIB_UTIMENSAT
1170 GL_GNULIB_STAT
1171 GL_GNULIB_MKNODAT
1172 GL_GNULIB_MKNOD
1173 GL_GNULIB_MKFIFOAT
1174 GL_GNULIB_MKFIFO
1175 GL_GNULIB_MKDIRAT
1176 GL_GNULIB_MKDIR
1177 GL_GNULIB_LSTAT
1178 GL_GNULIB_LCHMOD
1179 GL_GNULIB_GETUMASK
1180 GL_GNULIB_FUTIMENS
1181 GL_GNULIB_FSTATAT
1182 GL_GNULIB_FSTAT
1183 GL_GNULIB_FCHMODAT
1184 GL_GNULIB_CHMOD
1185 WINDOWS_64_BIT_ST_SIZE
1186 WINDOWS_STAT_TIMESPEC
1187 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H
1188 NEXT_SYS_STAT_H
1189 GL_COND_OBJ_FSTAT_FALSE
1190 GL_COND_OBJ_FSTAT_TRUE
1191 REPLACE_UTIMENSAT
1192 REPLACE_STAT
1193 REPLACE_MKNODAT
1194 REPLACE_MKNOD
1195 REPLACE_MKFIFOAT
1196 REPLACE_MKFIFO
1197 REPLACE_MKDIR
1198 REPLACE_LSTAT
1199 REPLACE_FUTIMENS
1200 REPLACE_FSTATAT
1201 REPLACE_FSTAT
1202 REPLACE_FCHMODAT
1203 REPLACE_CHMOD
1204 HAVE_UTIMENSAT
1205 HAVE_MKNODAT
1206 HAVE_MKNOD
1207 HAVE_MKFIFOAT
1208 HAVE_MKFIFO
1209 HAVE_MKDIRAT
1210 HAVE_LSTAT
1211 HAVE_LCHMOD
1212 HAVE_GETUMASK
1213 HAVE_FUTIMENS
1214 HAVE_FSTATAT
1215 HAVE_FCHMODAT
1216 GL_COND_OBJ_FREE_FALSE
1217 GL_COND_OBJ_FREE_TRUE
1218 GL_COND_OBJ_ITOLD_FALSE
1219 GL_COND_OBJ_ITOLD_TRUE
1220 GL_COND_OBJ_FLOAT_FALSE
1221 GL_COND_OBJ_FLOAT_TRUE
1222 GL_GENERATE_FLOAT_H_FALSE
1223 GL_GENERATE_FLOAT_H_TRUE
1224 FLOAT_H
1225 REPLACE_ITOLD
1226 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H
1227 NEXT_FLOAT_H
1228 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H
1229 NEXT_FCNTL_H
1230 GL_GNULIB_MDA_OPEN
1231 GL_GNULIB_MDA_CREAT
1232 GL_GNULIB_OPENAT
1233 GL_GNULIB_OPEN
1234 GL_GNULIB_NONBLOCKING
1235 GL_GNULIB_FCNTL
1236 GL_GNULIB_CREAT
1237 GL_COND_OBJ_FCNTL_FALSE
1238 GL_COND_OBJ_FCNTL_TRUE
1239 REPLACE_OPENAT
1240 REPLACE_OPEN
1241 REPLACE_FCNTL
1242 REPLACE_CREAT
1243 HAVE_OPENAT
1244 HAVE_FCNTL
1245 GL_COND_OBJ_ERROR_FALSE
1246 GL_COND_OBJ_ERROR_TRUE
1247 REPLACE_ERROR_AT_LINE
1248 REPLACE_ERROR
1249 HAVE_ERROR_AT_LINE
1250 HAVE_ERROR
1251 HAVE_ERROR_H
1252 NEXT_AS_FIRST_DIRECTIVE_ERROR_H
1253 NEXT_ERROR_H
1254 GL_GENERATE_ERRNO_H_FALSE
1255 GL_GENERATE_ERRNO_H_TRUE
1256 ERRNO_H
1257 EOVERFLOW_VALUE
1258 EOVERFLOW_HIDDEN
1259 ENOLINK_VALUE
1260 ENOLINK_HIDDEN
1261 EMULTIHOP_VALUE
1262 EMULTIHOP_HIDDEN
1263 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H
1264 NEXT_ERRNO_H
1265 GL_COND_OBJ_DUP2_FALSE
1266 GL_COND_OBJ_DUP2_TRUE
1267 GL_GNULIB_MDA_WRITE
1268 GL_GNULIB_MDA_UNLINK
1269 GL_GNULIB_MDA_SWAB
1270 GL_GNULIB_MDA_RMDIR
1271 GL_GNULIB_MDA_READ
1272 GL_GNULIB_MDA_LSEEK
1273 GL_GNULIB_MDA_ISATTY
1274 GL_GNULIB_MDA_GETPID
1275 GL_GNULIB_MDA_GETCWD
1276 GL_GNULIB_MDA_EXECVPE
1277 GL_GNULIB_MDA_EXECVP
1278 GL_GNULIB_MDA_EXECVE
1279 GL_GNULIB_MDA_EXECV
1280 GL_GNULIB_MDA_EXECLP
1281 GL_GNULIB_MDA_EXECLE
1282 GL_GNULIB_MDA_EXECL
1283 GL_GNULIB_MDA_DUP2
1284 GL_GNULIB_MDA_DUP
1285 GL_GNULIB_MDA_CLOSE
1286 GL_GNULIB_MDA_CHDIR
1287 GL_GNULIB_MDA_ACCESS
1288 GL_GNULIB_WRITE
1289 GL_GNULIB_USLEEP
1290 GL_GNULIB_UNLINKAT
1291 GL_GNULIB_UNLINK
1292 GL_GNULIB_UNISTD_H_SIGPIPE
1293 GL_GNULIB_UNISTD_H_NONBLOCKING
1294 GL_GNULIB_UNISTD_H_GETOPT
1295 GL_GNULIB_TTYNAME_R
1296 GL_GNULIB_TRUNCATE
1297 GL_GNULIB_SYMLINKAT
1298 GL_GNULIB_SYMLINK
1299 GL_GNULIB_SLEEP
1300 GL_GNULIB_SETHOSTNAME
1301 GL_GNULIB_RMDIR
1302 GL_GNULIB_READLINKAT
1303 GL_GNULIB_READLINK
1304 GL_GNULIB_READ
1305 GL_GNULIB_PWRITE
1306 GL_GNULIB_PREAD
1307 GL_GNULIB_PIPE2
1308 GL_GNULIB_PIPE
1309 GL_GNULIB_LSEEK
1310 GL_GNULIB_LINKAT
1311 GL_GNULIB_LINK
1312 GL_GNULIB_LCHOWN
1313 GL_GNULIB_ISATTY
1314 GL_GNULIB_GROUP_MEMBER
1315 GL_GNULIB_GETUSERSHELL
1316 GL_GNULIB_GETPASS_GNU
1317 GL_GNULIB_GETPASS
1318 GL_GNULIB_GETPAGESIZE
1319 GL_GNULIB_GETOPT_POSIX
1320 GL_GNULIB_GETLOGIN_R
1321 GL_GNULIB_GETLOGIN
1322 GL_GNULIB_GETHOSTNAME
1323 GL_GNULIB_GETGROUPS
1324 GL_GNULIB_GETENTROPY
1325 GL_GNULIB_GETDTABLESIZE
1326 GL_GNULIB_GETDOMAINNAME
1327 GL_GNULIB_GETCWD
1328 GL_GNULIB_FTRUNCATE
1329 GL_GNULIB_FSYNC
1330 GL_GNULIB_FDATASYNC
1331 GL_GNULIB_FCHOWNAT
1332 GL_GNULIB_FCHDIR
1333 GL_GNULIB_FACCESSAT
1334 GL_GNULIB_EXECVPE
1335 GL_GNULIB_EXECVP
1336 GL_GNULIB_EXECVE
1337 GL_GNULIB_EXECV
1338 GL_GNULIB_EXECLP
1339 GL_GNULIB_EXECLE
1340 GL_GNULIB_EXECL
1341 GL_GNULIB_EUIDACCESS
1342 GL_GNULIB_ENVIRON
1343 GL_GNULIB_DUP3
1344 GL_GNULIB_DUP2
1345 GL_GNULIB_DUP
1346 GL_GNULIB_COPY_FILE_RANGE
1347 GL_GNULIB_CLOSE
1348 GL_GNULIB_CHOWN
1349 GL_GNULIB_CHDIR
1350 GL_GNULIB_ACCESS
1351 GL_COND_OBJ_CLOSE_FALSE
1352 GL_COND_OBJ_CLOSE_TRUE
1353 HAVE_WINSOCK2_H
1354 HAVE_MSVC_INVALID_PARAMETER_HANDLER
1355 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS
1356 UNISTD_H_HAVE_WINSOCK2_H
1357 UNISTD_H_HAVE_SYS_RANDOM_H
1358 REPLACE_WRITE
1359 REPLACE_USLEEP
1360 REPLACE_UNLINKAT
1361 REPLACE_UNLINK
1362 REPLACE_TTYNAME_R
1363 REPLACE_TRUNCATE
1364 REPLACE_SYMLINKAT
1365 REPLACE_SYMLINK
1366 REPLACE_SLEEP
1367 REPLACE_SETHOSTNAME
1368 REPLACE_RMDIR
1369 REPLACE_READLINKAT
1370 REPLACE_READLINK
1371 REPLACE_READ
1372 REPLACE_PWRITE
1373 REPLACE_PREAD
1374 REPLACE_PIPE2
1375 REPLACE_LSEEK
1376 REPLACE_LINKAT
1377 REPLACE_LINK
1378 REPLACE_LCHOWN
1379 REPLACE_ISATTY
1380 REPLACE_GETPASS_FOR_GETPASS_GNU
1381 REPLACE_GETPASS
1382 REPLACE_GETPAGESIZE
1383 REPLACE_GETGROUPS
1384 REPLACE_GETLOGIN_R
1385 REPLACE_GETENTROPY
1386 REPLACE_GETDTABLESIZE
1387 REPLACE_GETDOMAINNAME
1388 REPLACE_GETCWD
1389 REPLACE_FTRUNCATE
1390 REPLACE_FDATASYNC
1391 REPLACE_FCHOWNAT
1392 REPLACE_FCHDIR
1393 REPLACE_FACCESSAT
1394 REPLACE_EXECVPE
1395 REPLACE_EXECVP
1396 REPLACE_EXECVE
1397 REPLACE_EXECV
1398 REPLACE_EXECLP
1399 REPLACE_EXECLE
1400 REPLACE_EXECL
1401 REPLACE_DUP3
1402 REPLACE_DUP2
1403 REPLACE_DUP
1404 REPLACE_COPY_FILE_RANGE
1405 REPLACE_CLOSE
1406 REPLACE_CHOWN
1407 REPLACE_ACCESS
1408 HAVE_SYS_PARAM_H
1409 HAVE_OS_H
1410 HAVE_DECL_TTYNAME_R
1411 HAVE_DECL_TRUNCATE
1412 HAVE_DECL_SETHOSTNAME
1413 HAVE_DECL_GETUSERSHELL
1414 HAVE_DECL_GETPAGESIZE
1415 HAVE_DECL_GETLOGIN_R
1416 HAVE_DECL_GETLOGIN
1417 HAVE_DECL_GETDOMAINNAME
1418 HAVE_DECL_FDATASYNC
1419 HAVE_DECL_FCHDIR
1420 HAVE_DECL_EXECVPE
1421 HAVE_DECL_ENVIRON
1422 HAVE_USLEEP
1423 HAVE_UNLINKAT
1424 HAVE_SYMLINKAT
1425 HAVE_SYMLINK
1426 HAVE_SLEEP
1427 HAVE_SETHOSTNAME
1428 HAVE_READLINKAT
1429 HAVE_READLINK
1430 HAVE_PWRITE
1431 HAVE_PREAD
1432 HAVE_PIPE2
1433 HAVE_PIPE
1434 HAVE_LINKAT
1435 HAVE_LINK
1436 HAVE_LCHOWN
1437 HAVE_GROUP_MEMBER
1438 HAVE_GETPASS
1439 HAVE_GETPAGESIZE
1440 HAVE_GETLOGIN
1441 HAVE_GETHOSTNAME
1442 HAVE_GETGROUPS
1443 HAVE_GETENTROPY
1444 HAVE_GETDTABLESIZE
1445 HAVE_FTRUNCATE
1446 HAVE_FSYNC
1447 HAVE_FDATASYNC
1448 HAVE_FCHOWNAT
1449 HAVE_FCHDIR
1450 HAVE_FACCESSAT
1451 HAVE_EXECVPE
1452 HAVE_EUIDACCESS
1453 HAVE_DUP3
1454 HAVE_COPY_FILE_RANGE
1455 HAVE_CHOWN
1456 GL_GNULIB_MDA_PUTENV
1457 GL_GNULIB_MDA_MKTEMP
1458 GL_GNULIB_MDA_GCVT
1459 GL_GNULIB_MDA_FCVT
1460 GL_GNULIB_MDA_ECVT
1461 GL_GNULIB_WCTOMB
1462 GL_GNULIB_UNSETENV
1463 GL_GNULIB_UNLOCKPT
1464 GL_GNULIB_SYSTEM_POSIX
1465 GL_GNULIB_STRTOULL
1466 GL_GNULIB_STRTOUL
1467 GL_GNULIB_STRTOLL
1468 GL_GNULIB_STRTOLD
1469 GL_GNULIB_STRTOL
1470 GL_GNULIB_STRTOD
1471 GL_GNULIB_SETENV
1472 GL_GNULIB_SECURE_GETENV
1473 GL_GNULIB_RPMATCH
1474 GL_GNULIB_REALPATH
1475 GL_GNULIB_REALLOC_POSIX
1476 GL_GNULIB_REALLOC_GNU
1477 GL_GNULIB_REALLOCARRAY
1478 GL_GNULIB_RANDOM_R
1479 GL_GNULIB_RANDOM
1480 GL_GNULIB_RAND
1481 GL_GNULIB_QSORT_R
1482 GL_GNULIB_PUTENV
1483 GL_GNULIB_PTSNAME_R
1484 GL_GNULIB_PTSNAME
1485 GL_GNULIB_POSIX_OPENPT
1486 GL_GNULIB_POSIX_MEMALIGN
1487 GL_GNULIB_MKSTEMPS
1488 GL_GNULIB_MKSTEMP
1489 GL_GNULIB_MKOSTEMPS
1490 GL_GNULIB_MKOSTEMP
1491 GL_GNULIB_MKDTEMP
1492 GL_GNULIB_MBTOWC
1493 GL_GNULIB_MBSTOWCS
1494 GL_GNULIB_MALLOC_POSIX
1495 GL_GNULIB_MALLOC_GNU
1496 GL_GNULIB_GRANTPT
1497 GL_GNULIB_GETSUBOPT
1498 GL_GNULIB_GETPROGNAME
1499 GL_GNULIB_GETLOADAVG
1500 GL_GNULIB_FREE_POSIX
1501 GL_GNULIB_CANONICALIZE_FILE_NAME
1502 GL_GNULIB_CALLOC_POSIX
1503 GL_GNULIB_CALLOC_GNU
1504 GL_GNULIB_ATOLL
1505 GL_GNULIB_ALIGNED_ALLOC
1506 GL_GNULIB__EXIT
1507 REPLACE_WCTOMB
1508 REPLACE_UNSETENV
1509 REPLACE_STRTOULL
1510 REPLACE_STRTOUL
1511 REPLACE_STRTOLL
1512 REPLACE_STRTOLD
1513 REPLACE_STRTOL
1514 REPLACE_STRTOD
1515 REPLACE_SETSTATE
1516 REPLACE_SETENV
1517 REPLACE_REALPATH
1518 REPLACE_REALLOCARRAY
1519 REPLACE_REALLOC_FOR_REALLOC_POSIX
1520 REPLACE_REALLOC_FOR_REALLOC_GNU
1521 REPLACE_RANDOM_R
1522 REPLACE_RANDOM
1523 REPLACE_RAND
1524 REPLACE_QSORT_R
1525 REPLACE_PUTENV
1526 REPLACE_PTSNAME_R
1527 REPLACE_PTSNAME
1528 REPLACE_POSIX_OPENPT
1529 REPLACE_POSIX_MEMALIGN
1530 REPLACE_MKSTEMP
1531 REPLACE_MKOSTEMPS
1532 REPLACE_MKOSTEMP
1533 REPLACE_MBTOWC
1534 REPLACE_MBSTOWCS
1535 REPLACE_MB_CUR_MAX
1536 REPLACE_MALLOC_FOR_MALLOC_POSIX
1537 REPLACE_MALLOC_FOR_MALLOC_GNU
1538 REPLACE_INITSTATE
1539 REPLACE_GETSUBOPT
1540 REPLACE_GETPROGNAME
1541 REPLACE_GETLOADAVG
1542 REPLACE_FREE
1543 REPLACE_CANONICALIZE_FILE_NAME
1544 REPLACE_CALLOC_FOR_CALLOC_POSIX
1545 REPLACE_CALLOC_FOR_CALLOC_GNU
1546 REPLACE_ALIGNED_ALLOC
1547 REPLACE__EXIT
1548 HAVE_DECL_UNSETENV
1549 HAVE_UNLOCKPT
1550 HAVE_SYS_LOADAVG_H
1551 HAVE_STRUCT_RANDOM_DATA
1552 HAVE_STRTOULL
1553 HAVE_STRTOUL
1554 HAVE_STRTOLL
1555 HAVE_STRTOLD
1556 HAVE_STRTOL
1557 HAVE_STRTOD
1558 HAVE_DECL_SETSTATE
1559 HAVE_SETSTATE
1560 HAVE_DECL_SETENV
1561 HAVE_SETENV
1562 HAVE_SECURE_GETENV
1563 HAVE_RPMATCH
1564 HAVE_REALPATH
1565 HAVE_REALLOCARRAY
1566 HAVE_RANDOM_R
1567 HAVE_RANDOM_H
1568 HAVE_RANDOM
1569 HAVE_QSORT_R
1570 HAVE_PTSNAME_R
1571 HAVE_PTSNAME
1572 HAVE_POSIX_OPENPT
1573 HAVE_POSIX_MEMALIGN
1574 HAVE_MKSTEMPS
1575 HAVE_MKSTEMP
1576 HAVE_MKOSTEMPS
1577 HAVE_MKOSTEMP
1578 HAVE_MKDTEMP
1579 HAVE_MBTOWC
1580 HAVE_DECL_INITSTATE
1581 HAVE_INITSTATE
1582 HAVE_GRANTPT
1583 HAVE_GETSUBOPT
1584 HAVE_GETPROGNAME
1585 HAVE_DECL_PROGRAM_INVOCATION_NAME
1586 HAVE_DECL_GETLOADAVG
1587 HAVE_DECL_GCVT
1588 HAVE_DECL_FCVT
1589 HAVE_DECL_ECVT
1590 HAVE_CANONICALIZE_FILE_NAME
1591 HAVE_ATOLL
1592 HAVE_ALIGNED_ALLOC
1593 HAVE__EXIT
1594 GL_GENERATE_ASSERT_H_FALSE
1595 GL_GENERATE_ASSERT_H_TRUE
1596 ASSERT_H
1597 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H
1598 NEXT_ASSERT_H
1599 PRAGMA_COLUMNS
1600 PRAGMA_SYSTEM_HEADER
1601 INCLUDE_NEXT_AS_FIRST_DIRECTIVE
1602 INCLUDE_NEXT
1603 GL_GENERATE_ALLOCA_H_FALSE
1604 GL_GENERATE_ALLOCA_H_TRUE
1605 ALLOCA_H
1606 HAVE_ALLOCA_H
1607 ALLOCA
1608 GL_COND_LIBTOOL_FALSE
1609 GL_COND_LIBTOOL_TRUE
1610 LIBOBJS
1611 LEXLIB
1612 LEX_OUTPUT_ROOT
1613 LEX
1614 RANLIB
1615 ARFLAGS
1616 AR
1617 EGREP
1618 GREP
1619 CPP
1620 host_os
1621 host_vendor
1622 host_cpu
1623 host
1624 build_os
1625 build_vendor
1626 build_cpu
1627 build
1628 am__fastdepCC_FALSE
1629 am__fastdepCC_TRUE
1630 CCDEPMODE
1631 am__nodep
1632 AMDEPBACKSLASH
1633 AMDEP_FALSE
1634 AMDEP_TRUE
1635 am__include
1636 DEPDIR
1637 OBJEXT
1638 EXEEXT
1639 ac_ct_CC
1640 CPPFLAGS
1641 LDFLAGS
1642 CFLAGS
1643 CC
1644 AM_BACKSLASH
1645 AM_DEFAULT_VERBOSITY
1646 AM_DEFAULT_V
1647 AM_V
1648 CSCOPE
1649 ETAGS
1650 CTAGS
1651 am__untar
1652 am__tar
1653 AMTAR
1654 am__leading_dot
1655 SET_MAKE
1656 AWK
1657 mkdir_p
1658 MKDIR_P
1659 INSTALL_STRIP_PROGRAM
1660 STRIP
1661 install_sh
1662 MAKEINFO
1663 AUTOHEADER
1664 AUTOMAKE
1665 AUTOCONF
1666 ACLOCAL
1667 VERSION
1668 PACKAGE
1669 CYGPATH_W
1670 am__isrc
1671 INSTALL_DATA
1672 INSTALL_SCRIPT
1673 INSTALL_PROGRAM
1674 target_alias
1675 host_alias
1676 build_alias
1677 LIBS
1678 ECHO_T
1679 ECHO_N
1680 ECHO_C
1681 DEFS
1682 mandir
1683 localedir
1684 libdir
1685 psdir
1686 pdfdir
1687 dvidir
1688 htmldir
1689 infodir
1690 docdir
1691 oldincludedir
1692 includedir
1693 runstatedir
1694 localstatedir
1695 sharedstatedir
1696 sysconfdir
1697 datadir
1698 datarootdir
1699 libexecdir
1700 sbindir
1701 bindir
1702 program_transform_name
1703 prefix
1704 exec_prefix
1705 PACKAGE_URL
1706 PACKAGE_BUGREPORT
1707 PACKAGE_STRING
1708 PACKAGE_VERSION
1709 PACKAGE_TARNAME
1710 PACKAGE_NAME
1711 PATH_SEPARATOR
1712 SHELL
1713 am__quote'
1714 ac_subst_files=''
1715 ac_user_opts='
1716 enable_option_checking
1717 enable_silent_rules
1718 enable_dependency_tracking
1719 enable_largefile
1720 enable_cross_guesses
1721 enable_debug
1722 with_lispdir
1723 with_gnu_ld
1724 enable_rpath
1725 with_libiconv_prefix
1726 enable_nls
1727 with_libintl_prefix
1728 enable_year2038
1729 '
1730 ac_precious_vars='build_alias
1731 host_alias
1732 target_alias
1733 CC
1734 CFLAGS
1735 LDFLAGS
1736 LIBS
1737 CPPFLAGS
1738 CPP
1739 EMACS
1740 EMACSLOADPATH'
1741
1742
1743 # Initialize some variables set by options.
1744 ac_init_help=
1745 ac_init_version=false
1746 ac_unrecognized_opts=
1747 ac_unrecognized_sep=
1748 # The variables have the same names as the options, with
1749 # dashes changed to underlines.
1750 cache_file=/dev/null
1751 exec_prefix=NONE
1752 no_create=
1753 no_recursion=
1754 prefix=NONE
1755 program_prefix=NONE
1756 program_suffix=NONE
1757 program_transform_name=s,x,x,
1758 silent=
1759 site=
1760 srcdir=
1761 verbose=
1762 x_includes=NONE
1763 x_libraries=NONE
1764
1765 # Installation directory options.
1766 # These are left unexpanded so users can "make install exec_prefix=/foo"
1767 # and all the variables that are supposed to be based on exec_prefix
1768 # by default will actually change.
1769 # Use braces instead of parens because sh, perl, etc. also accept them.
1770 # (The list follows the same order as the GNU Coding Standards.)
1771 bindir='${exec_prefix}/bin'
1772 sbindir='${exec_prefix}/sbin'
1773 libexecdir='${exec_prefix}/libexec'
1774 datarootdir='${prefix}/share'
1775 datadir='${datarootdir}'
1776 sysconfdir='${prefix}/etc'
1777 sharedstatedir='${prefix}/com'
1778 localstatedir='${prefix}/var'
1779 runstatedir='${localstatedir}/run'
1780 includedir='${prefix}/include'
1781 oldincludedir='/usr/include'
1782 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1783 infodir='${datarootdir}/info'
1784 htmldir='${docdir}'
1785 dvidir='${docdir}'
1786 pdfdir='${docdir}'
1787 psdir='${docdir}'
1788 libdir='${exec_prefix}/lib'
1789 localedir='${datarootdir}/locale'
1790 mandir='${datarootdir}/man'
1791
1792 ac_prev=
1793 ac_dashdash=
1794 for ac_option
1795 do
1796 # If the previous option needs an argument, assign it.
1797 if test -n "$ac_prev"; then
1798 eval $ac_prev=\$ac_option
1799 ac_prev=
1800 continue
1801 fi
1802
1803 case $ac_option in
1804 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1805 *=) ac_optarg= ;;
1806 *) ac_optarg=yes ;;
1807 esac
1808
1809 case $ac_dashdash$ac_option in
1810 --)
1811 ac_dashdash=yes ;;
1812
1813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1814 ac_prev=bindir ;;
1815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1816 bindir=$ac_optarg ;;
1817
1818 -build | --build | --buil | --bui | --bu)
1819 ac_prev=build_alias ;;
1820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1821 build_alias=$ac_optarg ;;
1822
1823 -cache-file | --cache-file | --cache-fil | --cache-fi \
1824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1825 ac_prev=cache_file ;;
1826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1828 cache_file=$ac_optarg ;;
1829
1830 --config-cache | -C)
1831 cache_file=config.cache ;;
1832
1833 -datadir | --datadir | --datadi | --datad)
1834 ac_prev=datadir ;;
1835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1836 datadir=$ac_optarg ;;
1837
1838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1839 | --dataroo | --dataro | --datar)
1840 ac_prev=datarootdir ;;
1841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1843 datarootdir=$ac_optarg ;;
1844
1845 -disable-* | --disable-*)
1846 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1847 # Reject names that are not valid shell variable names.
1848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1849 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1850 ac_useropt_orig=$ac_useropt
1851 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1852 case $ac_user_opts in
1853 *"
1854 "enable_$ac_useropt"
1855 "*) ;;
1856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1857 ac_unrecognized_sep=', ';;
1858 esac
1859 eval enable_$ac_useropt=no ;;
1860
1861 -docdir | --docdir | --docdi | --doc | --do)
1862 ac_prev=docdir ;;
1863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1864 docdir=$ac_optarg ;;
1865
1866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1867 ac_prev=dvidir ;;
1868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1869 dvidir=$ac_optarg ;;
1870
1871 -enable-* | --enable-*)
1872 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1873 # Reject names that are not valid shell variable names.
1874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1875 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1876 ac_useropt_orig=$ac_useropt
1877 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1878 case $ac_user_opts in
1879 *"
1880 "enable_$ac_useropt"
1881 "*) ;;
1882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1883 ac_unrecognized_sep=', ';;
1884 esac
1885 eval enable_$ac_useropt=\$ac_optarg ;;
1886
1887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1889 | --exec | --exe | --ex)
1890 ac_prev=exec_prefix ;;
1891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1893 | --exec=* | --exe=* | --ex=*)
1894 exec_prefix=$ac_optarg ;;
1895
1896 -gas | --gas | --ga | --g)
1897 # Obsolete; use --with-gas.
1898 with_gas=yes ;;
1899
1900 -help | --help | --hel | --he | -h)
1901 ac_init_help=long ;;
1902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1903 ac_init_help=recursive ;;
1904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1905 ac_init_help=short ;;
1906
1907 -host | --host | --hos | --ho)
1908 ac_prev=host_alias ;;
1909 -host=* | --host=* | --hos=* | --ho=*)
1910 host_alias=$ac_optarg ;;
1911
1912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1913 ac_prev=htmldir ;;
1914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1915 | --ht=*)
1916 htmldir=$ac_optarg ;;
1917
1918 -includedir | --includedir | --includedi | --included | --include \
1919 | --includ | --inclu | --incl | --inc)
1920 ac_prev=includedir ;;
1921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1922 | --includ=* | --inclu=* | --incl=* | --inc=*)
1923 includedir=$ac_optarg ;;
1924
1925 -infodir | --infodir | --infodi | --infod | --info | --inf)
1926 ac_prev=infodir ;;
1927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1928 infodir=$ac_optarg ;;
1929
1930 -libdir | --libdir | --libdi | --libd)
1931 ac_prev=libdir ;;
1932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1933 libdir=$ac_optarg ;;
1934
1935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1936 | --libexe | --libex | --libe)
1937 ac_prev=libexecdir ;;
1938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1939 | --libexe=* | --libex=* | --libe=*)
1940 libexecdir=$ac_optarg ;;
1941
1942 -localedir | --localedir | --localedi | --localed | --locale)
1943 ac_prev=localedir ;;
1944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1945 localedir=$ac_optarg ;;
1946
1947 -localstatedir | --localstatedir | --localstatedi | --localstated \
1948 | --localstate | --localstat | --localsta | --localst | --locals)
1949 ac_prev=localstatedir ;;
1950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1952 localstatedir=$ac_optarg ;;
1953
1954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1955 ac_prev=mandir ;;
1956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1957 mandir=$ac_optarg ;;
1958
1959 -nfp | --nfp | --nf)
1960 # Obsolete; use --without-fp.
1961 with_fp=no ;;
1962
1963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1964 | --no-cr | --no-c | -n)
1965 no_create=yes ;;
1966
1967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1969 no_recursion=yes ;;
1970
1971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1973 | --oldin | --oldi | --old | --ol | --o)
1974 ac_prev=oldincludedir ;;
1975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1978 oldincludedir=$ac_optarg ;;
1979
1980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1981 ac_prev=prefix ;;
1982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1983 prefix=$ac_optarg ;;
1984
1985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1986 | --program-pre | --program-pr | --program-p)
1987 ac_prev=program_prefix ;;
1988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1990 program_prefix=$ac_optarg ;;
1991
1992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1993 | --program-suf | --program-su | --program-s)
1994 ac_prev=program_suffix ;;
1995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1997 program_suffix=$ac_optarg ;;
1998
1999 -program-transform-name | --program-transform-name \
2000 | --program-transform-nam | --program-transform-na \
2001 | --program-transform-n | --program-transform- \
2002 | --program-transform | --program-transfor \
2003 | --program-transfo | --program-transf \
2004 | --program-trans | --program-tran \
2005 | --progr-tra | --program-tr | --program-t)
2006 ac_prev=program_transform_name ;;
2007 -program-transform-name=* | --program-transform-name=* \
2008 | --program-transform-nam=* | --program-transform-na=* \
2009 | --program-transform-n=* | --program-transform-=* \
2010 | --program-transform=* | --program-transfor=* \
2011 | --program-transfo=* | --program-transf=* \
2012 | --program-trans=* | --program-tran=* \
2013 | --progr-tra=* | --program-tr=* | --program-t=*)
2014 program_transform_name=$ac_optarg ;;
2015
2016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
2017 ac_prev=pdfdir ;;
2018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
2019 pdfdir=$ac_optarg ;;
2020
2021 -psdir | --psdir | --psdi | --psd | --ps)
2022 ac_prev=psdir ;;
2023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
2024 psdir=$ac_optarg ;;
2025
2026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2027 | -silent | --silent | --silen | --sile | --sil)
2028 silent=yes ;;
2029
2030 -runstatedir | --runstatedir | --runstatedi | --runstated \
2031 | --runstate | --runstat | --runsta | --runst | --runs \
2032 | --run | --ru | --r)
2033 ac_prev=runstatedir ;;
2034 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
2035 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
2036 | --run=* | --ru=* | --r=*)
2037 runstatedir=$ac_optarg ;;
2038
2039 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
2040 ac_prev=sbindir ;;
2041 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
2042 | --sbi=* | --sb=*)
2043 sbindir=$ac_optarg ;;
2044
2045 -sharedstatedir | --sharedstatedir | --sharedstatedi \
2046 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
2047 | --sharedst | --shareds | --shared | --share | --shar \
2048 | --sha | --sh)
2049 ac_prev=sharedstatedir ;;
2050 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
2051 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
2052 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
2053 | --sha=* | --sh=*)
2054 sharedstatedir=$ac_optarg ;;
2055
2056 -site | --site | --sit)
2057 ac_prev=site ;;
2058 -site=* | --site=* | --sit=*)
2059 site=$ac_optarg ;;
2060
2061 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
2062 ac_prev=srcdir ;;
2063 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
2064 srcdir=$ac_optarg ;;
2065
2066 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
2067 | --syscon | --sysco | --sysc | --sys | --sy)
2068 ac_prev=sysconfdir ;;
2069 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
2070 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
2071 sysconfdir=$ac_optarg ;;
2072
2073 -target | --target | --targe | --targ | --tar | --ta | --t)
2074 ac_prev=target_alias ;;
2075 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
2076 target_alias=$ac_optarg ;;
2077
2078 -v | -verbose | --verbose | --verbos | --verbo | --verb)
2079 verbose=yes ;;
2080
2081 -version | --version | --versio | --versi | --vers | -V)
2082 ac_init_version=: ;;
2083
2084 -with-* | --with-*)
2085 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
2086 # Reject names that are not valid shell variable names.
2087 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2088 as_fn_error $? "invalid package name: \`$ac_useropt'"
2089 ac_useropt_orig=$ac_useropt
2090 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2091 case $ac_user_opts in
2092 *"
2093 "with_$ac_useropt"
2094 "*) ;;
2095 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
2096 ac_unrecognized_sep=', ';;
2097 esac
2098 eval with_$ac_useropt=\$ac_optarg ;;
2099
2100 -without-* | --without-*)
2101 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
2102 # Reject names that are not valid shell variable names.
2103 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
2104 as_fn_error $? "invalid package name: \`$ac_useropt'"
2105 ac_useropt_orig=$ac_useropt
2106 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
2107 case $ac_user_opts in
2108 *"
2109 "with_$ac_useropt"
2110 "*) ;;
2111 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
2112 ac_unrecognized_sep=', ';;
2113 esac
2114 eval with_$ac_useropt=no ;;
2115
2116 --x)
2117 # Obsolete; use --with-x.
2118 with_x=yes ;;
2119
2120 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
2121 | --x-incl | --x-inc | --x-in | --x-i)
2122 ac_prev=x_includes ;;
2123 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
2124 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
2125 x_includes=$ac_optarg ;;
2126
2127 -x-libraries | --x-libraries | --x-librarie | --x-librari \
2128 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
2129 ac_prev=x_libraries ;;
2130 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
2131 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
2132 x_libraries=$ac_optarg ;;
2133
2134 -*) as_fn_error $? "unrecognized option: \`$ac_option'
2135 Try \`$0 --help' for more information"
2136 ;;
2137
2138 *=*)
2139 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
2140 # Reject names that are not valid shell variable names.
2141 case $ac_envvar in #(
2142 '' | [0-9]* | *[!_$as_cr_alnum]* )
2143 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
2144 esac
2145 eval $ac_envvar=\$ac_optarg
2146 export $ac_envvar ;;
2147
2148 *)
2149 # FIXME: should be removed in autoconf 3.0.
2150 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
2151 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
2152 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
2153 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
2154 ;;
2155
2156 esac
2157 done
2158
2159 if test -n "$ac_prev"; then
2160 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
2161 as_fn_error $? "missing argument to $ac_option"
2162 fi
2163
2164 if test -n "$ac_unrecognized_opts"; then
2165 case $enable_option_checking in
2166 no) ;;
2167 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
2168 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
2169 esac
2170 fi
2171
2172 # Check all directory arguments for consistency.
2173 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
2174 datadir sysconfdir sharedstatedir localstatedir includedir \
2175 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
2176 libdir localedir mandir runstatedir
2177 do
2178 eval ac_val=\$$ac_var
2179 # Remove trailing slashes.
2180 case $ac_val in
2181 */ )
2182 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
2183 eval $ac_var=\$ac_val;;
2184 esac
2185 # Be sure to have absolute directory names.
2186 case $ac_val in
2187 [\\/$]* | ?:[\\/]* ) continue;;
2188 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
2189 esac
2190 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
2191 done
2192
2193 # There might be people who depend on the old broken behavior: `$host'
2194 # used to hold the argument of --host etc.
2195 # FIXME: To remove some day.
2196 build=$build_alias
2197 host=$host_alias
2198 target=$target_alias
2199
2200 # FIXME: To remove some day.
2201 if test "x$host_alias" != x; then
2202 if test "x$build_alias" = x; then
2203 cross_compiling=maybe
2204 elif test "x$build_alias" != "x$host_alias"; then
2205 cross_compiling=yes
2206 fi
2207 fi
2208
2209 ac_tool_prefix=
2210 test -n "$host_alias" && ac_tool_prefix=$host_alias-
2211
2212 test "$silent" = yes && exec 6>/dev/null
2213
2214
2215 ac_pwd=`pwd` && test -n "$ac_pwd" &&
2216 ac_ls_di=`ls -di .` &&
2217 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
2218 as_fn_error $? "working directory cannot be determined"
2219 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
2220 as_fn_error $? "pwd does not report name of working directory"
2221
2222
2223 # Find the source files, if location was not specified.
2224 if test -z "$srcdir"; then
2225 ac_srcdir_defaulted=yes
2226 # Try the directory containing this script, then the parent directory.
2227 ac_confdir=`$as_dirname -- "$as_myself" ||
2228 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2229 X"$as_myself" : 'X\(//\)[^/]' \| \
2230 X"$as_myself" : 'X\(//\)$' \| \
2231 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2232 printf "%s\n" X"$as_myself" |
2233 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2234 s//\1/
2235 q
2236 }
2237 /^X\(\/\/\)[^/].*/{
2238 s//\1/
2239 q
2240 }
2241 /^X\(\/\/\)$/{
2242 s//\1/
2243 q
2244 }
2245 /^X\(\/\).*/{
2246 s//\1/
2247 q
2248 }
2249 s/.*/./; q'`
2250 srcdir=$ac_confdir
2251 if test ! -r "$srcdir/$ac_unique_file"; then
2252 srcdir=..
2253 fi
2254 else
2255 ac_srcdir_defaulted=no
2256 fi
2257 if test ! -r "$srcdir/$ac_unique_file"; then
2258 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2259 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2260 fi
2261 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2262 ac_abs_confdir=`(
2263 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2264 pwd)`
2265 # When building in place, set srcdir=.
2266 if test "$ac_abs_confdir" = "$ac_pwd"; then
2267 srcdir=.
2268 fi
2269 # Remove unnecessary trailing slashes from srcdir.
2270 # Double slashes in file names in object file debugging info
2271 # mess up M-x gdb in Emacs.
2272 case $srcdir in
2273 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2274 esac
2275 for ac_var in $ac_precious_vars; do
2276 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2277 eval ac_env_${ac_var}_value=\$${ac_var}
2278 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2279 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2280 done
2281
2282 #
2283 # Report the --help message.
2284 #
2285 if test "$ac_init_help" = "long"; then
2286 # Omit some internal or obsolete options to make the list less imposing.
2287 # This message is too long to be a string in the A/UX 3.1 sh.
2288 cat <<_ACEOF
2289 \`configure' configures GNU cflow 1.8 to adapt to many kinds of systems.
2290
2291 Usage: $0 [OPTION]... [VAR=VALUE]...
2292
2293 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2294 VAR=VALUE. See below for descriptions of some of the useful variables.
2295
2296 Defaults for the options are specified in brackets.
2297
2298 Configuration:
2299 -h, --help display this help and exit
2300 --help=short display options specific to this package
2301 --help=recursive display the short help of all the included packages
2302 -V, --version display version information and exit
2303 -q, --quiet, --silent do not print \`checking ...' messages
2304 --cache-file=FILE cache test results in FILE [disabled]
2305 -C, --config-cache alias for \`--cache-file=config.cache'
2306 -n, --no-create do not create output files
2307 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2308
2309 Installation directories:
2310 --prefix=PREFIX install architecture-independent files in PREFIX
2311 [$ac_default_prefix]
2312 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2313 [PREFIX]
2314
2315 By default, \`make install' will install all the files in
2316 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2317 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2318 for instance \`--prefix=\$HOME'.
2319
2320 For better control, use the options below.
2321
2322 Fine tuning of the installation directories:
2323 --bindir=DIR user executables [EPREFIX/bin]
2324 --sbindir=DIR system admin executables [EPREFIX/sbin]
2325 --libexecdir=DIR program executables [EPREFIX/libexec]
2326 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2327 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2328 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2329 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
2330 --libdir=DIR object code libraries [EPREFIX/lib]
2331 --includedir=DIR C header files [PREFIX/include]
2332 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2333 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2334 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2335 --infodir=DIR info documentation [DATAROOTDIR/info]
2336 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2337 --mandir=DIR man documentation [DATAROOTDIR/man]
2338 --docdir=DIR documentation root [DATAROOTDIR/doc/cflow]
2339 --htmldir=DIR html documentation [DOCDIR]
2340 --dvidir=DIR dvi documentation [DOCDIR]
2341 --pdfdir=DIR pdf documentation [DOCDIR]
2342 --psdir=DIR ps documentation [DOCDIR]
2343 _ACEOF
2344
2345 cat <<\_ACEOF
2346
2347 Program names:
2348 --program-prefix=PREFIX prepend PREFIX to installed program names
2349 --program-suffix=SUFFIX append SUFFIX to installed program names
2350 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2351
2352 System types:
2353 --build=BUILD configure for building on BUILD [guessed]
2354 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2355 _ACEOF
2356 fi
2357
2358 if test -n "$ac_init_help"; then
2359 case $ac_init_help in
2360 short | recursive ) echo "Configuration of GNU cflow 1.8:";;
2361 esac
2362 cat <<\_ACEOF
2363
2364 Optional Features:
2365 --disable-option-checking ignore unrecognized --enable/--with options
2366 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2367 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2368 --enable-silent-rules less verbose build output (undo: "make V=1")
2369 --disable-silent-rules verbose build output (undo: "make V=0")
2370 --enable-dependency-tracking
2371 do not reject slow dependency extractors
2372 --disable-dependency-tracking
2373 speeds up one-time build
2374 --disable-largefile omit support for large files
2375 --enable-cross-guesses={conservative|risky}
2376 specify policy for cross-compilation guesses
2377 --enable-debug enable debugging mode
2378 --disable-rpath do not hardcode runtime library paths
2379 --disable-nls do not use Native Language Support
2380 --enable-year2038 support timestamps after 2038
2381
2382 Optional Packages:
2383 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2384 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2385 --with-lispdir override the default lisp directory
2386 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2387 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
2388 --without-libiconv-prefix don't search for libiconv in includedir and libdir
2389 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
2390 --without-libintl-prefix don't search for libintl in includedir and libdir
2391
2392 Some influential environment variables:
2393 CC C compiler command
2394 CFLAGS C compiler flags
2395 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2396 nonstandard directory <lib dir>
2397 LIBS libraries to pass to the linker, e.g. -l<library>
2398 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2399 you have headers in a nonstandard directory <include dir>
2400 CPP C preprocessor
2401 EMACS the Emacs editor command
2402 EMACSLOADPATH
2403 the Emacs library search path
2404
2405 Use these variables to override the choices made by `configure' or to help
2406 it to find libraries and programs with nonstandard names/locations.
2407
2408 Report bugs to <[email protected]>.
2409 GNU cflow home page: <http://www.gnu.org/software/cflow>.
2410 General help using GNU software: <https://www.gnu.org/gethelp/>.
2411 _ACEOF
2412 ac_status=$?
2413 fi
2414
2415 if test "$ac_init_help" = "recursive"; then
2416 # If there are subdirs, report their specific --help.
2417 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2418 test -d "$ac_dir" ||
2419 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2420 continue
2421 ac_builddir=.
2422
2423 case "$ac_dir" in
2424 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2425 *)
2426 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2427 # A ".." for each directory in $ac_dir_suffix.
2428 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2429 case $ac_top_builddir_sub in
2430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2432 esac ;;
2433 esac
2434 ac_abs_top_builddir=$ac_pwd
2435 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2436 # for backward compatibility:
2437 ac_top_builddir=$ac_top_build_prefix
2438
2439 case $srcdir in
2440 .) # We are building in place.
2441 ac_srcdir=.
2442 ac_top_srcdir=$ac_top_builddir_sub
2443 ac_abs_top_srcdir=$ac_pwd ;;
2444 [\\/]* | ?:[\\/]* ) # Absolute name.
2445 ac_srcdir=$srcdir$ac_dir_suffix;
2446 ac_top_srcdir=$srcdir
2447 ac_abs_top_srcdir=$srcdir ;;
2448 *) # Relative name.
2449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2450 ac_top_srcdir=$ac_top_build_prefix$srcdir
2451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2452 esac
2453 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2454
2455 cd "$ac_dir" || { ac_status=$?; continue; }
2456 # Check for configure.gnu first; this name is used for a wrapper for
2457 # Metaconfig's "Configure" on case-insensitive file systems.
2458 if test -f "$ac_srcdir/configure.gnu"; then
2459 echo &&
2460 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2461 elif test -f "$ac_srcdir/configure"; then
2462 echo &&
2463 $SHELL "$ac_srcdir/configure" --help=recursive
2464 else
2465 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2466 fi || ac_status=$?
2467 cd "$ac_pwd" || { ac_status=$?; break; }
2468 done
2469 fi
2470
2471 test -n "$ac_init_help" && exit $ac_status
2472 if $ac_init_version; then
2473 cat <<\_ACEOF
2474 GNU cflow configure 1.8
2475 generated by GNU Autoconf 2.71
2476
2477 Copyright (C) 2021 Free Software Foundation, Inc.
2478 This configure script is free software; the Free Software Foundation
2479 gives unlimited permission to copy, distribute and modify it.
2480 _ACEOF
2481 exit
2482 fi
2483
2484 ## ------------------------ ##
2485 ## Autoconf initialization. ##
2486 ## ------------------------ ##
2487
2488 # ac_fn_c_try_compile LINENO
2489 # --------------------------
2490 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2491 ac_fn_c_try_compile ()
2492 {
2493 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2494 rm -f conftest.$ac_objext conftest.beam
2495 if { { ac_try="$ac_compile"
2496 case "(($ac_try" in
2497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2498 *) ac_try_echo=$ac_try;;
2499 esac
2500 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2501 printf "%s\n" "$ac_try_echo"; } >&5
2502 (eval "$ac_compile") 2>conftest.err
2503 ac_status=$?
2504 if test -s conftest.err; then
2505 grep -v '^ *+' conftest.err >conftest.er1
2506 cat conftest.er1 >&5
2507 mv -f conftest.er1 conftest.err
2508 fi
2509 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2510 test $ac_status = 0; } && {
2511 test -z "$ac_c_werror_flag" ||
2512 test ! -s conftest.err
2513 } && test -s conftest.$ac_objext
2514 then :
2515 ac_retval=0
2516 else $as_nop
2517 printf "%s\n" "$as_me: failed program was:" >&5
2518 sed 's/^/| /' conftest.$ac_ext >&5
2519
2520 ac_retval=1
2521 fi
2522 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2523 as_fn_set_status $ac_retval
2524
2525 } # ac_fn_c_try_compile
2526
2527 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2528 # -------------------------------------------------------
2529 # Tests whether HEADER exists and can be compiled using the include files in
2530 # INCLUDES, setting the cache variable VAR accordingly.
2531 ac_fn_c_check_header_compile ()
2532 {
2533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2535 printf %s "checking for $2... " >&6; }
2536 if eval test \${$3+y}
2537 then :
2538 printf %s "(cached) " >&6
2539 else $as_nop
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2542 $4
2543 #include <$2>
2544 _ACEOF
2545 if ac_fn_c_try_compile "$LINENO"
2546 then :
2547 eval "$3=yes"
2548 else $as_nop
2549 eval "$3=no"
2550 fi
2551 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2552 fi
2553 eval ac_res=\$$3
2554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2555 printf "%s\n" "$ac_res" >&6; }
2556 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2557
2558 } # ac_fn_c_check_header_compile
2559
2560 # ac_fn_c_try_cpp LINENO
2561 # ----------------------
2562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2563 ac_fn_c_try_cpp ()
2564 {
2565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2566 if { { ac_try="$ac_cpp conftest.$ac_ext"
2567 case "(($ac_try" in
2568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2569 *) ac_try_echo=$ac_try;;
2570 esac
2571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2572 printf "%s\n" "$ac_try_echo"; } >&5
2573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2574 ac_status=$?
2575 if test -s conftest.err; then
2576 grep -v '^ *+' conftest.err >conftest.er1
2577 cat conftest.er1 >&5
2578 mv -f conftest.er1 conftest.err
2579 fi
2580 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2581 test $ac_status = 0; } > conftest.i && {
2582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2583 test ! -s conftest.err
2584 }
2585 then :
2586 ac_retval=0
2587 else $as_nop
2588 printf "%s\n" "$as_me: failed program was:" >&5
2589 sed 's/^/| /' conftest.$ac_ext >&5
2590
2591 ac_retval=1
2592 fi
2593 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2594 as_fn_set_status $ac_retval
2595
2596 } # ac_fn_c_try_cpp
2597
2598 # ac_fn_c_try_link LINENO
2599 # -----------------------
2600 # Try to link conftest.$ac_ext, and return whether this succeeded.
2601 ac_fn_c_try_link ()
2602 {
2603 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2604 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2605 if { { ac_try="$ac_link"
2606 case "(($ac_try" in
2607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2608 *) ac_try_echo=$ac_try;;
2609 esac
2610 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2611 printf "%s\n" "$ac_try_echo"; } >&5
2612 (eval "$ac_link") 2>conftest.err
2613 ac_status=$?
2614 if test -s conftest.err; then
2615 grep -v '^ *+' conftest.err >conftest.er1
2616 cat conftest.er1 >&5
2617 mv -f conftest.er1 conftest.err
2618 fi
2619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2620 test $ac_status = 0; } && {
2621 test -z "$ac_c_werror_flag" ||
2622 test ! -s conftest.err
2623 } && test -s conftest$ac_exeext && {
2624 test "$cross_compiling" = yes ||
2625 test -x conftest$ac_exeext
2626 }
2627 then :
2628 ac_retval=0
2629 else $as_nop
2630 printf "%s\n" "$as_me: failed program was:" >&5
2631 sed 's/^/| /' conftest.$ac_ext >&5
2632
2633 ac_retval=1
2634 fi
2635 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2636 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2637 # interfere with the next link command; also delete a directory that is
2638 # left behind by Apple's compiler. We do this before executing the actions.
2639 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2640 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2641 as_fn_set_status $ac_retval
2642
2643 } # ac_fn_c_try_link
2644
2645 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2646 # -------------------------------------------
2647 # Tests whether TYPE exists after having included INCLUDES, setting cache
2648 # variable VAR accordingly.
2649 ac_fn_c_check_type ()
2650 {
2651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2653 printf %s "checking for $2... " >&6; }
2654 if eval test \${$3+y}
2655 then :
2656 printf %s "(cached) " >&6
2657 else $as_nop
2658 eval "$3=no"
2659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2660 /* end confdefs.h. */
2661 $4
2662 int
2663 main (void)
2664 {
2665 if (sizeof ($2))
2666 return 0;
2667 ;
2668 return 0;
2669 }
2670 _ACEOF
2671 if ac_fn_c_try_compile "$LINENO"
2672 then :
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
2688 else $as_nop
2689 eval "$3=yes"
2690 fi
2691 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2692 fi
2693 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2694 fi
2695 eval ac_res=\$$3
2696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2697 printf "%s\n" "$ac_res" >&6; }
2698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2699
2700 } # ac_fn_c_check_type
2701
2702 # ac_fn_c_try_run LINENO
2703 # ----------------------
2704 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2705 # executables *can* be run.
2706 ac_fn_c_try_run ()
2707 {
2708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2709 if { { ac_try="$ac_link"
2710 case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2713 esac
2714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2715 printf "%s\n" "$ac_try_echo"; } >&5
2716 (eval "$ac_link") 2>&5
2717 ac_status=$?
2718 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2719 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2720 { { case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2723 esac
2724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2725 printf "%s\n" "$ac_try_echo"; } >&5
2726 (eval "$ac_try") 2>&5
2727 ac_status=$?
2728 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2729 test $ac_status = 0; }; }
2730 then :
2731 ac_retval=0
2732 else $as_nop
2733 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2734 printf "%s\n" "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2736
2737 ac_retval=$ac_status
2738 fi
2739 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2740 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2741 as_fn_set_status $ac_retval
2742
2743 } # ac_fn_c_try_run
2744
2745 # ac_fn_c_check_func LINENO FUNC VAR
2746 # ----------------------------------
2747 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2748 ac_fn_c_check_func ()
2749 {
2750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2752 printf %s "checking for $2... " >&6; }
2753 if eval test \${$3+y}
2754 then :
2755 printf %s "(cached) " >&6
2756 else $as_nop
2757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2758 /* end confdefs.h. */
2759 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2760 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2761 #define $2 innocuous_$2
2762
2763 /* System header to define __stub macros and hopefully few prototypes,
2764 which can conflict with char $2 (); below. */
2765
2766 #include <limits.h>
2767 #undef $2
2768
2769 /* Override any GCC internal prototype to avoid an error.
2770 Use char because int might match the return type of a GCC
2771 builtin and then its argument prototype would still apply. */
2772 #ifdef __cplusplus
2773 extern "C"
2774 #endif
2775 char $2 ();
2776 /* The GNU C library defines this for functions which it implements
2777 to always fail with ENOSYS. Some functions are actually named
2778 something starting with __ and the normal name is an alias. */
2779 #if defined __stub_$2 || defined __stub___$2
2780 choke me
2781 #endif
2782
2783 int
2784 main (void)
2785 {
2786 return $2 ();
2787 ;
2788 return 0;
2789 }
2790 _ACEOF
2791 if ac_fn_c_try_link "$LINENO"
2792 then :
2793 eval "$3=yes"
2794 else $as_nop
2795 eval "$3=no"
2796 fi
2797 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2798 conftest$ac_exeext conftest.$ac_ext
2799 fi
2800 eval ac_res=\$$3
2801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2802 printf "%s\n" "$ac_res" >&6; }
2803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2804
2805 } # ac_fn_c_check_func
2806
2807 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2808 # --------------------------------------------
2809 # Tries to find the compile-time value of EXPR in a program that includes
2810 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2811 # computed
2812 ac_fn_c_compute_int ()
2813 {
2814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2815 if test "$cross_compiling" = yes; then
2816 # Depending upon the size, compute the lo and hi bounds.
2817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2818 /* end confdefs.h. */
2819 $4
2820 int
2821 main (void)
2822 {
2823 static int test_array [1 - 2 * !(($2) >= 0)];
2824 test_array [0] = 0;
2825 return test_array [0];
2826
2827 ;
2828 return 0;
2829 }
2830 _ACEOF
2831 if ac_fn_c_try_compile "$LINENO"
2832 then :
2833 ac_lo=0 ac_mid=0
2834 while :; do
2835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2836 /* end confdefs.h. */
2837 $4
2838 int
2839 main (void)
2840 {
2841 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2842 test_array [0] = 0;
2843 return test_array [0];
2844
2845 ;
2846 return 0;
2847 }
2848 _ACEOF
2849 if ac_fn_c_try_compile "$LINENO"
2850 then :
2851 ac_hi=$ac_mid; break
2852 else $as_nop
2853 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2854 if test $ac_lo -le $ac_mid; then
2855 ac_lo= ac_hi=
2856 break
2857 fi
2858 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2859 fi
2860 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2861 done
2862 else $as_nop
2863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2864 /* end confdefs.h. */
2865 $4
2866 int
2867 main (void)
2868 {
2869 static int test_array [1 - 2 * !(($2) < 0)];
2870 test_array [0] = 0;
2871 return test_array [0];
2872
2873 ;
2874 return 0;
2875 }
2876 _ACEOF
2877 if ac_fn_c_try_compile "$LINENO"
2878 then :
2879 ac_hi=-1 ac_mid=-1
2880 while :; do
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882 /* end confdefs.h. */
2883 $4
2884 int
2885 main (void)
2886 {
2887 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2888 test_array [0] = 0;
2889 return test_array [0];
2890
2891 ;
2892 return 0;
2893 }
2894 _ACEOF
2895 if ac_fn_c_try_compile "$LINENO"
2896 then :
2897 ac_lo=$ac_mid; break
2898 else $as_nop
2899 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2900 if test $ac_mid -le $ac_hi; then
2901 ac_lo= ac_hi=
2902 break
2903 fi
2904 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2905 fi
2906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2907 done
2908 else $as_nop
2909 ac_lo= ac_hi=
2910 fi
2911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2912 fi
2913 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2914 # Binary search between lo and hi bounds.
2915 while test "x$ac_lo" != "x$ac_hi"; do
2916 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2918 /* end confdefs.h. */
2919 $4
2920 int
2921 main (void)
2922 {
2923 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2924 test_array [0] = 0;
2925 return test_array [0];
2926
2927 ;
2928 return 0;
2929 }
2930 _ACEOF
2931 if ac_fn_c_try_compile "$LINENO"
2932 then :
2933 ac_hi=$ac_mid
2934 else $as_nop
2935 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2936 fi
2937 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2938 done
2939 case $ac_lo in #((
2940 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2941 '') ac_retval=1 ;;
2942 esac
2943 else
2944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2945 /* end confdefs.h. */
2946 $4
2947 static long int longval (void) { return $2; }
2948 static unsigned long int ulongval (void) { return $2; }
2949 #include <stdio.h>
2950 #include <stdlib.h>
2951 int
2952 main (void)
2953 {
2954
2955 FILE *f = fopen ("conftest.val", "w");
2956 if (! f)
2957 return 1;
2958 if (($2) < 0)
2959 {
2960 long int i = longval ();
2961 if (i != ($2))
2962 return 1;
2963 fprintf (f, "%ld", i);
2964 }
2965 else
2966 {
2967 unsigned long int i = ulongval ();
2968 if (i != ($2))
2969 return 1;
2970 fprintf (f, "%lu", i);
2971 }
2972 /* Do not output a trailing newline, as this causes \r\n confusion
2973 on some platforms. */
2974 return ferror (f) || fclose (f) != 0;
2975
2976 ;
2977 return 0;
2978 }
2979 _ACEOF
2980 if ac_fn_c_try_run "$LINENO"
2981 then :
2982 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2983 else $as_nop
2984 ac_retval=1
2985 fi
2986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2987 conftest.$ac_objext conftest.beam conftest.$ac_ext
2988 rm -f conftest.val
2989
2990 fi
2991 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2992 as_fn_set_status $ac_retval
2993
2994 } # ac_fn_c_compute_int
2995
2996 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2997 # ------------------------------------------------------------------
2998 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2999 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
3000 ac_fn_check_decl ()
3001 {
3002 ac_save_ac_compile="$ac_compile"
3003 if test -n "$ac_compile_for_check_decl"; then
3004 ac_compile="$ac_compile_for_check_decl"
3005 fi
3006 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3007 as_decl_name=`echo $2|sed 's/ *(.*//'`
3008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
3009 printf %s "checking whether $as_decl_name is declared... " >&6; }
3010 if eval test \${$3+y}
3011 then :
3012 printf %s "(cached) " >&6
3013 else $as_nop
3014 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
3015 eval ac_save_FLAGS=\$$6
3016 as_fn_append $6 " $5"
3017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3018 /* end confdefs.h. */
3019 $4
3020 int
3021 main (void)
3022 {
3023 #ifndef $as_decl_name
3024 #ifdef __cplusplus
3025 (void) $as_decl_use;
3026 #else
3027 (void) $as_decl_name;
3028 #endif
3029 #endif
3030
3031 ;
3032 return 0;
3033 }
3034 _ACEOF
3035 if ac_fn_c_try_compile "$LINENO"
3036 then :
3037 eval "$3=yes"
3038 else $as_nop
3039 eval "$3=no"
3040 fi
3041 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3042 eval $6=\$ac_save_FLAGS
3043
3044 fi
3045 eval ac_res=\$$3
3046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3047 printf "%s\n" "$ac_res" >&6; }
3048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3049 ac_compile="$ac_save_ac_compile"
3050
3051 } # ac_fn_check_decl
3052
3053 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3054 # ----------------------------------------------------
3055 # Tries to find if the field MEMBER exists in type AGGR, after including
3056 # INCLUDES, setting cache variable VAR accordingly.
3057 ac_fn_c_check_member ()
3058 {
3059 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3061 printf %s "checking for $2.$3... " >&6; }
3062 if eval test \${$4+y}
3063 then :
3064 printf %s "(cached) " >&6
3065 else $as_nop
3066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3067 /* end confdefs.h. */
3068 $5
3069 int
3070 main (void)
3071 {
3072 static $2 ac_aggr;
3073 if (ac_aggr.$3)
3074 return 0;
3075 ;
3076 return 0;
3077 }
3078 _ACEOF
3079 if ac_fn_c_try_compile "$LINENO"
3080 then :
3081 eval "$4=yes"
3082 else $as_nop
3083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3084 /* end confdefs.h. */
3085 $5
3086 int
3087 main (void)
3088 {
3089 static $2 ac_aggr;
3090 if (sizeof ac_aggr.$3)
3091 return 0;
3092 ;
3093 return 0;
3094 }
3095 _ACEOF
3096 if ac_fn_c_try_compile "$LINENO"
3097 then :
3098 eval "$4=yes"
3099 else $as_nop
3100 eval "$4=no"
3101 fi
3102 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3103 fi
3104 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3105 fi
3106 eval ac_res=\$$4
3107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3108 printf "%s\n" "$ac_res" >&6; }
3109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3110
3111 } # ac_fn_c_check_member
3112 ac_configure_args_raw=
3113 for ac_arg
3114 do
3115 case $ac_arg in
3116 *\'*)
3117 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3118 esac
3119 as_fn_append ac_configure_args_raw " '$ac_arg'"
3120 done
3121
3122 case $ac_configure_args_raw in
3123 *$as_nl*)
3124 ac_safe_unquote= ;;
3125 *)
3126 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
3127 ac_unsafe_a="$ac_unsafe_z#~"
3128 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
3129 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
3130 esac
3131
3132 cat >config.log <<_ACEOF
3133 This file contains any messages produced by compilers while
3134 running configure, to aid debugging if configure makes a mistake.
3135
3136 It was created by GNU cflow $as_me 1.8, which was
3137 generated by GNU Autoconf 2.71. Invocation command line was
3138
3139 $ $0$ac_configure_args_raw
3140
3141 _ACEOF
3142 exec 5>>config.log
3143 {
3144 cat <<_ASUNAME
3145 ## --------- ##
3146 ## Platform. ##
3147 ## --------- ##
3148
3149 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3150 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3151 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3152 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3153 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3154
3155 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3156 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3157
3158 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3159 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3160 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3161 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3162 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3163 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3164 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3165
3166 _ASUNAME
3167
3168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3169 for as_dir in $PATH
3170 do
3171 IFS=$as_save_IFS
3172 case $as_dir in #(((
3173 '') as_dir=./ ;;
3174 */) ;;
3175 *) as_dir=$as_dir/ ;;
3176 esac
3177 printf "%s\n" "PATH: $as_dir"
3178 done
3179 IFS=$as_save_IFS
3180
3181 } >&5
3182
3183 cat >&5 <<_ACEOF
3184
3185
3186 ## ----------- ##
3187 ## Core tests. ##
3188 ## ----------- ##
3189
3190 _ACEOF
3191
3192
3193 # Keep a trace of the command line.
3194 # Strip out --no-create and --no-recursion so they do not pile up.
3195 # Strip out --silent because we don't want to record it for future runs.
3196 # Also quote any args containing shell meta-characters.
3197 # Make two passes to allow for proper duplicate-argument suppression.
3198 ac_configure_args=
3199 ac_configure_args0=
3200 ac_configure_args1=
3201 ac_must_keep_next=false
3202 for ac_pass in 1 2
3203 do
3204 for ac_arg
3205 do
3206 case $ac_arg in
3207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3209 | -silent | --silent | --silen | --sile | --sil)
3210 continue ;;
3211 *\'*)
3212 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3213 esac
3214 case $ac_pass in
3215 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3216 2)
3217 as_fn_append ac_configure_args1 " '$ac_arg'"
3218 if test $ac_must_keep_next = true; then
3219 ac_must_keep_next=false # Got value, back to normal.
3220 else
3221 case $ac_arg in
3222 *=* | --config-cache | -C | -disable-* | --disable-* \
3223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3225 | -with-* | --with-* | -without-* | --without-* | --x)
3226 case "$ac_configure_args0 " in
3227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3228 esac
3229 ;;
3230 -* ) ac_must_keep_next=true ;;
3231 esac
3232 fi
3233 as_fn_append ac_configure_args " '$ac_arg'"
3234 ;;
3235 esac
3236 done
3237 done
3238 { ac_configure_args0=; unset ac_configure_args0;}
3239 { ac_configure_args1=; unset ac_configure_args1;}
3240
3241 # When interrupted or exit'd, cleanup temporary files, and complete
3242 # config.log. We remove comments because anyway the quotes in there
3243 # would cause problems or look ugly.
3244 # WARNING: Use '\'' to represent an apostrophe within the trap.
3245 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3246 trap 'exit_status=$?
3247 # Sanitize IFS.
3248 IFS=" "" $as_nl"
3249 # Save into config.log some information that might help in debugging.
3250 {
3251 echo
3252
3253 printf "%s\n" "## ---------------- ##
3254 ## Cache variables. ##
3255 ## ---------------- ##"
3256 echo
3257 # The following way of writing the cache mishandles newlines in values,
3258 (
3259 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3260 eval ac_val=\$$ac_var
3261 case $ac_val in #(
3262 *${as_nl}*)
3263 case $ac_var in #(
3264 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3265 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3266 esac
3267 case $ac_var in #(
3268 _ | IFS | as_nl) ;; #(
3269 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3270 *) { eval $ac_var=; unset $ac_var;} ;;
3271 esac ;;
3272 esac
3273 done
3274 (set) 2>&1 |
3275 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3276 *${as_nl}ac_space=\ *)
3277 sed -n \
3278 "s/'\''/'\''\\\\'\'''\''/g;
3279 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3280 ;; #(
3281 *)
3282 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3283 ;;
3284 esac |
3285 sort
3286 )
3287 echo
3288
3289 printf "%s\n" "## ----------------- ##
3290 ## Output variables. ##
3291 ## ----------------- ##"
3292 echo
3293 for ac_var in $ac_subst_vars
3294 do
3295 eval ac_val=\$$ac_var
3296 case $ac_val in
3297 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3298 esac
3299 printf "%s\n" "$ac_var='\''$ac_val'\''"
3300 done | sort
3301 echo
3302
3303 if test -n "$ac_subst_files"; then
3304 printf "%s\n" "## ------------------- ##
3305 ## File substitutions. ##
3306 ## ------------------- ##"
3307 echo
3308 for ac_var in $ac_subst_files
3309 do
3310 eval ac_val=\$$ac_var
3311 case $ac_val in
3312 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3313 esac
3314 printf "%s\n" "$ac_var='\''$ac_val'\''"
3315 done | sort
3316 echo
3317 fi
3318
3319 if test -s confdefs.h; then
3320 printf "%s\n" "## ----------- ##
3321 ## confdefs.h. ##
3322 ## ----------- ##"
3323 echo
3324 cat confdefs.h
3325 echo
3326 fi
3327 test "$ac_signal" != 0 &&
3328 printf "%s\n" "$as_me: caught signal $ac_signal"
3329 printf "%s\n" "$as_me: exit $exit_status"
3330 } >&5
3331 rm -f core *.core core.conftest.* &&
3332 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3333 exit $exit_status
3334 ' 0
3335 for ac_signal in 1 2 13 15; do
3336 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3337 done
3338 ac_signal=0
3339
3340 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3341 rm -f -r conftest* confdefs.h
3342
3343 printf "%s\n" "/* confdefs.h */" > confdefs.h
3344
3345 # Predefined preprocessor variables.
3346
3347 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
3348
3349 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
3350
3351 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
3352
3353 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
3354
3355 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
3356
3357 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
3358
3359
3360 # Let the site file select an alternate cache file if it wants to.
3361 # Prefer an explicitly selected file to automatically selected ones.
3362 if test -n "$CONFIG_SITE"; then
3363 ac_site_files="$CONFIG_SITE"
3364 elif test "x$prefix" != xNONE; then
3365 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
3366 else
3367 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
3368 fi
3369
3370 for ac_site_file in $ac_site_files
3371 do
3372 case $ac_site_file in #(
3373 */*) :
3374 ;; #(
3375 *) :
3376 ac_site_file=./$ac_site_file ;;
3377 esac
3378 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
3379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3380 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
3381 sed 's/^/| /' "$ac_site_file" >&5
3382 . "$ac_site_file" \
3383 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3384 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3385 as_fn_error $? "failed to load site script $ac_site_file
3386 See \`config.log' for more details" "$LINENO" 5; }
3387 fi
3388 done
3389
3390 if test -r "$cache_file"; then
3391 # Some versions of bash will fail to source /dev/null (special files
3392 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3393 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3395 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
3396 case $cache_file in
3397 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3398 *) . "./$cache_file";;
3399 esac
3400 fi
3401 else
3402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3403 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
3404 >$cache_file
3405 fi
3406
3407 # Test code for whether the C compiler supports C89 (global declarations)
3408 ac_c_conftest_c89_globals='
3409 /* Does the compiler advertise C89 conformance?
3410 Do not test the value of __STDC__, because some compilers set it to 0
3411 while being otherwise adequately conformant. */
3412 #if !defined __STDC__
3413 # error "Compiler does not advertise C89 conformance"
3414 #endif
3415
3416 #include <stddef.h>
3417 #include <stdarg.h>
3418 struct stat;
3419 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
3420 struct buf { int x; };
3421 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
3422 static char *e (p, i)
3423 char **p;
3424 int i;
3425 {
3426 return p[i];
3427 }
3428 static char *f (char * (*g) (char **, int), char **p, ...)
3429 {
3430 char *s;
3431 va_list v;
3432 va_start (v,p);
3433 s = g (p, va_arg (v,int));
3434 va_end (v);
3435 return s;
3436 }
3437
3438 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3439 function prototypes and stuff, but not \xHH hex character constants.
3440 These do not provoke an error unfortunately, instead are silently treated
3441 as an "x". The following induces an error, until -std is added to get
3442 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3443 array size at least. It is necessary to write \x00 == 0 to get something
3444 that is true only with -std. */
3445 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3446
3447 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3448 inside strings and character constants. */
3449 #define FOO(x) '\''x'\''
3450 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3451
3452 int test (int i, double x);
3453 struct s1 {int (*f) (int a);};
3454 struct s2 {int (*f) (double a);};
3455 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3456 int, int);'
3457
3458 # Test code for whether the C compiler supports C89 (body of main).
3459 ac_c_conftest_c89_main='
3460 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3461 '
3462
3463 # Test code for whether the C compiler supports C99 (global declarations)
3464 ac_c_conftest_c99_globals='
3465 // Does the compiler advertise C99 conformance?
3466 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3467 # error "Compiler does not advertise C99 conformance"
3468 #endif
3469
3470 #include <stdbool.h>
3471 extern int puts (const char *);
3472 extern int printf (const char *, ...);
3473 extern int dprintf (int, const char *, ...);
3474 extern void *malloc (size_t);
3475
3476 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3477 // dprintf is used instead of fprintf to avoid needing to declare
3478 // FILE and stderr.
3479 #define debug(...) dprintf (2, __VA_ARGS__)
3480 #define showlist(...) puts (#__VA_ARGS__)
3481 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3482 static void
3483 test_varargs_macros (void)
3484 {
3485 int x = 1234;
3486 int y = 5678;
3487 debug ("Flag");
3488 debug ("X = %d\n", x);
3489 showlist (The first, second, and third items.);
3490 report (x>y, "x is %d but y is %d", x, y);
3491 }
3492
3493 // Check long long types.
3494 #define BIG64 18446744073709551615ull
3495 #define BIG32 4294967295ul
3496 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3497 #if !BIG_OK
3498 #error "your preprocessor is broken"
3499 #endif
3500 #if BIG_OK
3501 #else
3502 #error "your preprocessor is broken"
3503 #endif
3504 static long long int bignum = -9223372036854775807LL;
3505 static unsigned long long int ubignum = BIG64;
3506
3507 struct incomplete_array
3508 {
3509 int datasize;
3510 double data[];
3511 };
3512
3513 struct named_init {
3514 int number;
3515 const wchar_t *name;
3516 double average;
3517 };
3518
3519 typedef const char *ccp;
3520
3521 static inline int
3522 test_restrict (ccp restrict text)
3523 {
3524 // See if C++-style comments work.
3525 // Iterate through items via the restricted pointer.
3526 // Also check for declarations in for loops.
3527 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3528 continue;
3529 return 0;
3530 }
3531
3532 // Check varargs and va_copy.
3533 static bool
3534 test_varargs (const char *format, ...)
3535 {
3536 va_list args;
3537 va_start (args, format);
3538 va_list args_copy;
3539 va_copy (args_copy, args);
3540
3541 const char *str = "";
3542 int number = 0;
3543 float fnumber = 0;
3544
3545 while (*format)
3546 {
3547 switch (*format++)
3548 {
3549 case '\''s'\'': // string
3550 str = va_arg (args_copy, const char *);
3551 break;
3552 case '\''d'\'': // int
3553 number = va_arg (args_copy, int);
3554 break;
3555 case '\''f'\'': // float
3556 fnumber = va_arg (args_copy, double);
3557 break;
3558 default:
3559 break;
3560 }
3561 }
3562 va_end (args_copy);
3563 va_end (args);
3564
3565 return *str && number && fnumber;
3566 }
3567 '
3568
3569 # Test code for whether the C compiler supports C99 (body of main).
3570 ac_c_conftest_c99_main='
3571 // Check bool.
3572 _Bool success = false;
3573 success |= (argc != 0);
3574
3575 // Check restrict.
3576 if (test_restrict ("String literal") == 0)
3577 success = true;
3578 char *restrict newvar = "Another string";
3579
3580 // Check varargs.
3581 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3582 test_varargs_macros ();
3583
3584 // Check flexible array members.
3585 struct incomplete_array *ia =
3586 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3587 ia->datasize = 10;
3588 for (int i = 0; i < ia->datasize; ++i)
3589 ia->data[i] = i * 1.234;
3590
3591 // Check named initializers.
3592 struct named_init ni = {
3593 .number = 34,
3594 .name = L"Test wide string",
3595 .average = 543.34343,
3596 };
3597
3598 ni.number = 58;
3599
3600 int dynamic_array[ni.number];
3601 dynamic_array[0] = argv[0][0];
3602 dynamic_array[ni.number - 1] = 543;
3603
3604 // work around unused variable warnings
3605 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3606 || dynamic_array[ni.number - 1] != 543);
3607 '
3608
3609 # Test code for whether the C compiler supports C11 (global declarations)
3610 ac_c_conftest_c11_globals='
3611 // Does the compiler advertise C11 conformance?
3612 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3613 # error "Compiler does not advertise C11 conformance"
3614 #endif
3615
3616 // Check _Alignas.
3617 char _Alignas (double) aligned_as_double;
3618 char _Alignas (0) no_special_alignment;
3619 extern char aligned_as_int;
3620 char _Alignas (0) _Alignas (int) aligned_as_int;
3621
3622 // Check _Alignof.
3623 enum
3624 {
3625 int_alignment = _Alignof (int),
3626 int_array_alignment = _Alignof (int[100]),
3627 char_alignment = _Alignof (char)
3628 };
3629 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3630
3631 // Check _Noreturn.
3632 int _Noreturn does_not_return (void) { for (;;) continue; }
3633
3634 // Check _Static_assert.
3635 struct test_static_assert
3636 {
3637 int x;
3638 _Static_assert (sizeof (int) <= sizeof (long int),
3639 "_Static_assert does not work in struct");
3640 long int y;
3641 };
3642
3643 // Check UTF-8 literals.
3644 #define u8 syntax error!
3645 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3646
3647 // Check duplicate typedefs.
3648 typedef long *long_ptr;
3649 typedef long int *long_ptr;
3650 typedef long_ptr long_ptr;
3651
3652 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3653 struct anonymous
3654 {
3655 union {
3656 struct { int i; int j; };
3657 struct { int k; long int l; } w;
3658 };
3659 int m;
3660 } v1;
3661 '
3662
3663 # Test code for whether the C compiler supports C11 (body of main).
3664 ac_c_conftest_c11_main='
3665 _Static_assert ((offsetof (struct anonymous, i)
3666 == offsetof (struct anonymous, w.k)),
3667 "Anonymous union alignment botch");
3668 v1.i = 2;
3669 v1.w.k = 5;
3670 ok |= v1.i != 5;
3671 '
3672
3673 # Test code for whether the C compiler supports C11 (complete).
3674 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3675 ${ac_c_conftest_c99_globals}
3676 ${ac_c_conftest_c11_globals}
3677
3678 int
3679 main (int argc, char **argv)
3680 {
3681 int ok = 0;
3682 ${ac_c_conftest_c89_main}
3683 ${ac_c_conftest_c99_main}
3684 ${ac_c_conftest_c11_main}
3685 return ok;
3686 }
3687 "
3688
3689 # Test code for whether the C compiler supports C99 (complete).
3690 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3691 ${ac_c_conftest_c99_globals}
3692
3693 int
3694 main (int argc, char **argv)
3695 {
3696 int ok = 0;
3697 ${ac_c_conftest_c89_main}
3698 ${ac_c_conftest_c99_main}
3699 return ok;
3700 }
3701 "
3702
3703 # Test code for whether the C compiler supports C89 (complete).
3704 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3705
3706 int
3707 main (int argc, char **argv)
3708 {
3709 int ok = 0;
3710 ${ac_c_conftest_c89_main}
3711 return ok;
3712 }
3713 "
3714
3715 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3716 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3717 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3718 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3719 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3720 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3721 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3722 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3723 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3724 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
3725 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
3726 as_fn_append ac_func_c_list " _set_invalid_parameter_handler HAVE__SET_INVALID_PARAMETER_HANDLER"
3727 as_fn_append ac_header_c_list " sys/socket.h sys_socket_h HAVE_SYS_SOCKET_H"
3728 as_fn_append ac_header_c_list " error.h error_h HAVE_ERROR_H"
3729 as_fn_append ac_func_c_list " fcntl HAVE_FCNTL"
3730 as_fn_append ac_func_c_list " symlink HAVE_SYMLINK"
3731 as_fn_append ac_func_c_list " getdtablesize HAVE_GETDTABLESIZE"
3732 as_fn_append ac_func_c_list " getexecname HAVE_GETEXECNAME"
3733 as_fn_append ac_header_c_list " limits.h limits_h HAVE_LIMITS_H"
3734 as_fn_append ac_func_c_list " mbsinit HAVE_MBSINIT"
3735 as_fn_append ac_func_c_list " mbrtowc HAVE_MBRTOWC"
3736 as_fn_append ac_header_c_list " sys/mman.h sys_mman_h HAVE_SYS_MMAN_H"
3737 as_fn_append ac_func_c_list " mprotect HAVE_MPROTECT"
3738 as_fn_append ac_header_c_list " obstack.h obstack_h HAVE_OBSTACK_H"
3739 as_fn_append ac_func_c_list " lstat HAVE_LSTAT"
3740 as_fn_append ac_header_c_list " sys/param.h sys_param_h HAVE_SYS_PARAM_H"
3741 as_fn_append ac_func_c_list " snprintf HAVE_SNPRINTF"
3742 as_fn_append ac_header_c_list " sys/time.h sys_time_h HAVE_SYS_TIME_H"
3743 as_fn_append ac_header_c_list " stdbool.h stdbool_h HAVE_STDBOOL_H"
3744 as_fn_append ac_header_c_list " stdckdint.h stdckdint_h HAVE_STDCKDINT_H"
3745 as_fn_append ac_func_c_list " vasnprintf HAVE_VASNPRINTF"
3746 as_fn_append ac_header_c_list " features.h features_h HAVE_FEATURES_H"
3747 as_fn_append ac_header_c_list " crtdefs.h crtdefs_h HAVE_CRTDEFS_H"
3748 gt_needs="$gt_needs need-formatstring-macros"
3749
3750 # Auxiliary files required by this configure script.
3751 ac_aux_files="config.rpath config.guess config.sub compile missing install-sh"
3752
3753 # Locations in which to look for auxiliary files.
3754 ac_aux_dir_candidates="${srcdir}/build-aux"
3755
3756 # Search for a directory containing all of the required auxiliary files,
3757 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3758 # If we don't find one directory that contains all the files we need,
3759 # we report the set of missing files from the *first* directory in
3760 # $ac_aux_dir_candidates and give up.
3761 ac_missing_aux_files=""
3762 ac_first_candidate=:
3763 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3765 as_found=false
3766 for as_dir in $ac_aux_dir_candidates
3767 do
3768 IFS=$as_save_IFS
3769 case $as_dir in #(((
3770 '') as_dir=./ ;;
3771 */) ;;
3772 *) as_dir=$as_dir/ ;;
3773 esac
3774 as_found=:
3775
3776 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3777 ac_aux_dir_found=yes
3778 ac_install_sh=
3779 for ac_aux in $ac_aux_files
3780 do
3781 # As a special case, if "install-sh" is required, that requirement
3782 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3783 # and $ac_install_sh is set appropriately for whichever one is found.
3784 if test x"$ac_aux" = x"install-sh"
3785 then
3786 if test -f "${as_dir}install-sh"; then
3787 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3788 ac_install_sh="${as_dir}install-sh -c"
3789 elif test -f "${as_dir}install.sh"; then
3790 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3791 ac_install_sh="${as_dir}install.sh -c"
3792 elif test -f "${as_dir}shtool"; then
3793 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3794 ac_install_sh="${as_dir}shtool install -c"
3795 else
3796 ac_aux_dir_found=no
3797 if $ac_first_candidate; then
3798 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3799 else
3800 break
3801 fi
3802 fi
3803 else
3804 if test -f "${as_dir}${ac_aux}"; then
3805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3806 else
3807 ac_aux_dir_found=no
3808 if $ac_first_candidate; then
3809 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3810 else
3811 break
3812 fi
3813 fi
3814 fi
3815 done
3816 if test "$ac_aux_dir_found" = yes; then
3817 ac_aux_dir="$as_dir"
3818 break
3819 fi
3820 ac_first_candidate=false
3821
3822 as_found=false
3823 done
3824 IFS=$as_save_IFS
3825 if $as_found
3826 then :
3827
3828 else $as_nop
3829 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3830 fi
3831
3832
3833 # These three variables are undocumented and unsupported,
3834 # and are intended to be withdrawn in a future Autoconf release.
3835 # They can cause serious problems if a builder's source tree is in a directory
3836 # whose full name contains unusual characters.
3837 if test -f "${ac_aux_dir}config.guess"; then
3838 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3839 fi
3840 if test -f "${ac_aux_dir}config.sub"; then
3841 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3842 fi
3843 if test -f "$ac_aux_dir/configure"; then
3844 ac_configure="$SHELL ${ac_aux_dir}configure"
3845 fi
3846
3847 # Check that the precious variables saved in the cache have kept the same
3848 # value.
3849 ac_cache_corrupted=false
3850 for ac_var in $ac_precious_vars; do
3851 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3852 eval ac_new_set=\$ac_env_${ac_var}_set
3853 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3854 eval ac_new_val=\$ac_env_${ac_var}_value
3855 case $ac_old_set,$ac_new_set in
3856 set,)
3857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3858 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3859 ac_cache_corrupted=: ;;
3860 ,set)
3861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3862 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3863 ac_cache_corrupted=: ;;
3864 ,);;
3865 *)
3866 if test "x$ac_old_val" != "x$ac_new_val"; then
3867 # differences in whitespace do not lead to failure.
3868 ac_old_val_w=`echo x $ac_old_val`
3869 ac_new_val_w=`echo x $ac_new_val`
3870 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3872 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3873 ac_cache_corrupted=:
3874 else
3875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3876 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3877 eval $ac_var=\$ac_old_val
3878 fi
3879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3880 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3882 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3883 fi;;
3884 esac
3885 # Pass precious variables to config.status.
3886 if test "$ac_new_set" = set; then
3887 case $ac_new_val in
3888 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3889 *) ac_arg=$ac_var=$ac_new_val ;;
3890 esac
3891 case " $ac_configure_args " in
3892 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3893 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3894 esac
3895 fi
3896 done
3897 if $ac_cache_corrupted; then
3898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3899 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3901 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3902 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3903 and start over" "$LINENO" 5
3904 fi
3905 ## -------------------- ##
3906 ## Main body of script. ##
3907 ## -------------------- ##
3908
3909 ac_ext=c
3910 ac_cpp='$CPP $CPPFLAGS'
3911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3914
3915
3916
3917
3918
3919 am__api_version='1.16'
3920
3921
3922
3923 # Find a good install program. We prefer a C program (faster),
3924 # so one script is as good as another. But avoid the broken or
3925 # incompatible versions:
3926 # SysV /etc/install, /usr/sbin/install
3927 # SunOS /usr/etc/install
3928 # IRIX /sbin/install
3929 # AIX /bin/install
3930 # AmigaOS /C/install, which installs bootblocks on floppy discs
3931 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3932 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3933 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3934 # OS/2's system install, which has a completely different semantic
3935 # ./install, which can be erroneously created by make from ./install.sh.
3936 # Reject install programs that cannot install multiple files.
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3938 printf %s "checking for a BSD-compatible install... " >&6; }
3939 if test -z "$INSTALL"; then
3940 if test ${ac_cv_path_install+y}
3941 then :
3942 printf %s "(cached) " >&6
3943 else $as_nop
3944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 for as_dir in $PATH
3946 do
3947 IFS=$as_save_IFS
3948 case $as_dir in #(((
3949 '') as_dir=./ ;;
3950 */) ;;
3951 *) as_dir=$as_dir/ ;;
3952 esac
3953 # Account for fact that we put trailing slashes in our PATH walk.
3954 case $as_dir in #((
3955 ./ | /[cC]/* | \
3956 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3957 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3958 /usr/ucb/* ) ;;
3959 *)
3960 # OSF1 and SCO ODT 3.0 have their own names for install.
3961 # Don't use installbsd from OSF since it installs stuff as root
3962 # by default.
3963 for ac_prog in ginstall scoinst install; do
3964 for ac_exec_ext in '' $ac_executable_extensions; do
3965 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
3966 if test $ac_prog = install &&
3967 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3968 # AIX install. It has an incompatible calling convention.
3969 :
3970 elif test $ac_prog = install &&
3971 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3972 # program-specific install script used by HP pwplus--don't use.
3973 :
3974 else
3975 rm -rf conftest.one conftest.two conftest.dir
3976 echo one > conftest.one
3977 echo two > conftest.two
3978 mkdir conftest.dir
3979 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
3980 test -s conftest.one && test -s conftest.two &&
3981 test -s conftest.dir/conftest.one &&
3982 test -s conftest.dir/conftest.two
3983 then
3984 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
3985 break 3
3986 fi
3987 fi
3988 fi
3989 done
3990 done
3991 ;;
3992 esac
3993
3994 done
3995 IFS=$as_save_IFS
3996
3997 rm -rf conftest.one conftest.two conftest.dir
3998
3999 fi
4000 if test ${ac_cv_path_install+y}; then
4001 INSTALL=$ac_cv_path_install
4002 else
4003 # As a last resort, use the slow shell script. Don't cache a
4004 # value for INSTALL within a source directory, because that will
4005 # break other packages using the cache if that directory is
4006 # removed, or if the value is a relative name.
4007 INSTALL=$ac_install_sh
4008 fi
4009 fi
4010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4011 printf "%s\n" "$INSTALL" >&6; }
4012
4013 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4014 # It thinks the first close brace ends the variable substitution.
4015 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4016
4017 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4018
4019 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4020
4021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4022 printf %s "checking whether build environment is sane... " >&6; }
4023 # Reject unsafe characters in $srcdir or the absolute working directory
4024 # name. Accept space and tab only in the latter.
4025 am_lf='
4026 '
4027 case `pwd` in
4028 *[\\\"\#\$\&\'\`$am_lf]*)
4029 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4030 esac
4031 case $srcdir in
4032 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4033 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4034 esac
4035
4036 # Do 'set' in a subshell so we don't clobber the current shell's
4037 # arguments. Must try -L first in case configure is actually a
4038 # symlink; some systems play weird games with the mod time of symlinks
4039 # (eg FreeBSD returns the mod time of the symlink's containing
4040 # directory).
4041 if (
4042 am_has_slept=no
4043 for am_try in 1 2; do
4044 echo "timestamp, slept: $am_has_slept" > conftest.file
4045 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4046 if test "$*" = "X"; then
4047 # -L didn't work.
4048 set X `ls -t "$srcdir/configure" conftest.file`
4049 fi
4050 if test "$*" != "X $srcdir/configure conftest.file" \
4051 && test "$*" != "X conftest.file $srcdir/configure"; then
4052
4053 # If neither matched, then we have a broken ls. This can happen
4054 # if, for instance, CONFIG_SHELL is bash and it inherits a
4055 # broken ls alias from the environment. This has actually
4056 # happened. Such a system could not be considered "sane".
4057 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4058 alias in your environment" "$LINENO" 5
4059 fi
4060 if test "$2" = conftest.file || test $am_try -eq 2; then
4061 break
4062 fi
4063 # Just in case.
4064 sleep 1
4065 am_has_slept=yes
4066 done
4067 test "$2" = conftest.file
4068 )
4069 then
4070 # Ok.
4071 :
4072 else
4073 as_fn_error $? "newly created file is older than distributed files!
4074 Check your system clock" "$LINENO" 5
4075 fi
4076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4077 printf "%s\n" "yes" >&6; }
4078 # If we didn't sleep, we still need to ensure time stamps of config.status and
4079 # generated files are strictly newer.
4080 am_sleep_pid=
4081 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4082 ( sleep 1 ) &
4083 am_sleep_pid=$!
4084 fi
4085
4086 rm -f conftest.file
4087
4088 test "$program_prefix" != NONE &&
4089 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4090 # Use a double $ so make ignores it.
4091 test "$program_suffix" != NONE &&
4092 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4093 # Double any \ or $.
4094 # By default was `s,x,x', remove it if useless.
4095 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4096 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
4097
4098
4099 # Expand $ac_aux_dir to an absolute path.
4100 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4101
4102
4103 if test x"${MISSING+set}" != xset; then
4104 MISSING="\${SHELL} '$am_aux_dir/missing'"
4105 fi
4106 # Use eval to expand $SHELL
4107 if eval "$MISSING --is-lightweight"; then
4108 am_missing_run="$MISSING "
4109 else
4110 am_missing_run=
4111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4112 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4113 fi
4114
4115 if test x"${install_sh+set}" != xset; then
4116 case $am_aux_dir in
4117 *\ * | *\ *)
4118 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4119 *)
4120 install_sh="\${SHELL} $am_aux_dir/install-sh"
4121 esac
4122 fi
4123
4124 # Installed binaries are usually stripped using 'strip' when the user
4125 # run "make install-strip". However 'strip' might not be the right
4126 # tool to use in cross-compilation environments, therefore Automake
4127 # will honor the 'STRIP' environment variable to overrule this program.
4128 if test "$cross_compiling" != no; then
4129 if test -n "$ac_tool_prefix"; then
4130 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4131 set dummy ${ac_tool_prefix}strip; ac_word=$2
4132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4133 printf %s "checking for $ac_word... " >&6; }
4134 if test ${ac_cv_prog_STRIP+y}
4135 then :
4136 printf %s "(cached) " >&6
4137 else $as_nop
4138 if test -n "$STRIP"; then
4139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4140 else
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4142 for as_dir in $PATH
4143 do
4144 IFS=$as_save_IFS
4145 case $as_dir in #(((
4146 '') as_dir=./ ;;
4147 */) ;;
4148 *) as_dir=$as_dir/ ;;
4149 esac
4150 for ac_exec_ext in '' $ac_executable_extensions; do
4151 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4152 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4153 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4154 break 2
4155 fi
4156 done
4157 done
4158 IFS=$as_save_IFS
4159
4160 fi
4161 fi
4162 STRIP=$ac_cv_prog_STRIP
4163 if test -n "$STRIP"; then
4164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4165 printf "%s\n" "$STRIP" >&6; }
4166 else
4167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4168 printf "%s\n" "no" >&6; }
4169 fi
4170
4171
4172 fi
4173 if test -z "$ac_cv_prog_STRIP"; then
4174 ac_ct_STRIP=$STRIP
4175 # Extract the first word of "strip", so it can be a program name with args.
4176 set dummy strip; ac_word=$2
4177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4178 printf %s "checking for $ac_word... " >&6; }
4179 if test ${ac_cv_prog_ac_ct_STRIP+y}
4180 then :
4181 printf %s "(cached) " >&6
4182 else $as_nop
4183 if test -n "$ac_ct_STRIP"; then
4184 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4185 else
4186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4187 for as_dir in $PATH
4188 do
4189 IFS=$as_save_IFS
4190 case $as_dir in #(((
4191 '') as_dir=./ ;;
4192 */) ;;
4193 *) as_dir=$as_dir/ ;;
4194 esac
4195 for ac_exec_ext in '' $ac_executable_extensions; do
4196 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4197 ac_cv_prog_ac_ct_STRIP="strip"
4198 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4199 break 2
4200 fi
4201 done
4202 done
4203 IFS=$as_save_IFS
4204
4205 fi
4206 fi
4207 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4208 if test -n "$ac_ct_STRIP"; then
4209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4210 printf "%s\n" "$ac_ct_STRIP" >&6; }
4211 else
4212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4213 printf "%s\n" "no" >&6; }
4214 fi
4215
4216 if test "x$ac_ct_STRIP" = x; then
4217 STRIP=":"
4218 else
4219 case $cross_compiling:$ac_tool_warned in
4220 yes:)
4221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4222 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4223 ac_tool_warned=yes ;;
4224 esac
4225 STRIP=$ac_ct_STRIP
4226 fi
4227 else
4228 STRIP="$ac_cv_prog_STRIP"
4229 fi
4230
4231 fi
4232 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4233
4234
4235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
4236 printf %s "checking for a race-free mkdir -p... " >&6; }
4237 if test -z "$MKDIR_P"; then
4238 if test ${ac_cv_path_mkdir+y}
4239 then :
4240 printf %s "(cached) " >&6
4241 else $as_nop
4242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4244 do
4245 IFS=$as_save_IFS
4246 case $as_dir in #(((
4247 '') as_dir=./ ;;
4248 */) ;;
4249 *) as_dir=$as_dir/ ;;
4250 esac
4251 for ac_prog in mkdir gmkdir; do
4252 for ac_exec_ext in '' $ac_executable_extensions; do
4253 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
4254 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
4255 'mkdir ('*'coreutils) '* | \
4256 'BusyBox '* | \
4257 'mkdir (fileutils) '4.1*)
4258 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
4259 break 3;;
4260 esac
4261 done
4262 done
4263 done
4264 IFS=$as_save_IFS
4265
4266 fi
4267
4268 test -d ./--version && rmdir ./--version
4269 if test ${ac_cv_path_mkdir+y}; then
4270 MKDIR_P="$ac_cv_path_mkdir -p"
4271 else
4272 # As a last resort, use the slow shell script. Don't cache a
4273 # value for MKDIR_P within a source directory, because that will
4274 # break other packages using the cache if that directory is
4275 # removed, or if the value is a relative name.
4276 MKDIR_P="$ac_install_sh -d"
4277 fi
4278 fi
4279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4280 printf "%s\n" "$MKDIR_P" >&6; }
4281
4282 for ac_prog in gawk mawk nawk awk
4283 do
4284 # Extract the first word of "$ac_prog", so it can be a program name with args.
4285 set dummy $ac_prog; ac_word=$2
4286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4287 printf %s "checking for $ac_word... " >&6; }
4288 if test ${ac_cv_prog_AWK+y}
4289 then :
4290 printf %s "(cached) " >&6
4291 else $as_nop
4292 if test -n "$AWK"; then
4293 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4294 else
4295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4296 for as_dir in $PATH
4297 do
4298 IFS=$as_save_IFS
4299 case $as_dir in #(((
4300 '') as_dir=./ ;;
4301 */) ;;
4302 *) as_dir=$as_dir/ ;;
4303 esac
4304 for ac_exec_ext in '' $ac_executable_extensions; do
4305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4306 ac_cv_prog_AWK="$ac_prog"
4307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4308 break 2
4309 fi
4310 done
4311 done
4312 IFS=$as_save_IFS
4313
4314 fi
4315 fi
4316 AWK=$ac_cv_prog_AWK
4317 if test -n "$AWK"; then
4318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4319 printf "%s\n" "$AWK" >&6; }
4320 else
4321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4322 printf "%s\n" "no" >&6; }
4323 fi
4324
4325
4326 test -n "$AWK" && break
4327 done
4328
4329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4330 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4331 set x ${MAKE-make}
4332 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4333 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
4334 then :
4335 printf %s "(cached) " >&6
4336 else $as_nop
4337 cat >conftest.make <<\_ACEOF
4338 SHELL = /bin/sh
4339 all:
4340 @echo '@@@%%%=$(MAKE)=@@@%%%'
4341 _ACEOF
4342 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4343 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4344 *@@@%%%=?*=@@@%%%*)
4345 eval ac_cv_prog_make_${ac_make}_set=yes;;
4346 *)
4347 eval ac_cv_prog_make_${ac_make}_set=no;;
4348 esac
4349 rm -f conftest.make
4350 fi
4351 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4353 printf "%s\n" "yes" >&6; }
4354 SET_MAKE=
4355 else
4356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4357 printf "%s\n" "no" >&6; }
4358 SET_MAKE="MAKE=${MAKE-make}"
4359 fi
4360
4361 rm -rf .tst 2>/dev/null
4362 mkdir .tst 2>/dev/null
4363 if test -d .tst; then
4364 am__leading_dot=.
4365 else
4366 am__leading_dot=_
4367 fi
4368 rmdir .tst 2>/dev/null
4369
4370 # Check whether --enable-silent-rules was given.
4371 if test ${enable_silent_rules+y}
4372 then :
4373 enableval=$enable_silent_rules;
4374 fi
4375
4376 case $enable_silent_rules in # (((
4377 yes) AM_DEFAULT_VERBOSITY=0;;
4378 no) AM_DEFAULT_VERBOSITY=1;;
4379 *) AM_DEFAULT_VERBOSITY=1;;
4380 esac
4381 am_make=${MAKE-make}
4382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4383 printf %s "checking whether $am_make supports nested variables... " >&6; }
4384 if test ${am_cv_make_support_nested_variables+y}
4385 then :
4386 printf %s "(cached) " >&6
4387 else $as_nop
4388 if printf "%s\n" 'TRUE=$(BAR$(V))
4389 BAR0=false
4390 BAR1=true
4391 V=1
4392 am__doit:
4393 @$(TRUE)
4394 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4395 am_cv_make_support_nested_variables=yes
4396 else
4397 am_cv_make_support_nested_variables=no
4398 fi
4399 fi
4400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4401 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4402 if test $am_cv_make_support_nested_variables = yes; then
4403 AM_V='$(V)'
4404 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4405 else
4406 AM_V=$AM_DEFAULT_VERBOSITY
4407 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4408 fi
4409 AM_BACKSLASH='\'
4410
4411 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4412 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4413 # is not polluted with repeated "-I."
4414 am__isrc=' -I$(srcdir)'
4415 # test to see if srcdir already configured
4416 if test -f $srcdir/config.status; then
4417 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4418 fi
4419 fi
4420
4421 # test whether we have cygpath
4422 if test -z "$CYGPATH_W"; then
4423 if (cygpath --version) >/dev/null 2>/dev/null; then
4424 CYGPATH_W='cygpath -w'
4425 else
4426 CYGPATH_W=echo
4427 fi
4428 fi
4429
4430
4431 # Define the identity of the package.
4432 PACKAGE='cflow'
4433 VERSION='1.8'
4434
4435
4436 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
4437
4438
4439 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
4440
4441 # Some tools Automake needs.
4442
4443 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4444
4445
4446 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4447
4448
4449 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4450
4451
4452 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4453
4454
4455 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4456
4457 # For better backward compatibility. To be removed once Automake 1.9.x
4458 # dies out for good. For more background, see:
4459 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4460 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4461 mkdir_p='$(MKDIR_P)'
4462
4463 # We need awk for the "check" target (and possibly the TAP driver). The
4464 # system "awk" is bad on some platforms.
4465 # Always define AMTAR for backward compatibility. Yes, it's still used
4466 # in the wild :-( We should find a proper way to deprecate it ...
4467 AMTAR='$${TAR-tar}'
4468
4469
4470 # We'll loop over all known methods to create a tar archive until one works.
4471 _am_tools='gnutar plaintar pax cpio none'
4472
4473 # The POSIX 1988 'ustar' format is defined with fixed-size fields.
4474 # There is notably a 21 bits limit for the UID and the GID. In fact,
4475 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
4476 # and bug#13588).
4477 am_max_uid=2097151 # 2^21 - 1
4478 am_max_gid=$am_max_uid
4479 # The $UID and $GID variables are not portable, so we need to resort
4480 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
4481 # below are definitely unexpected, so allow the users to see them
4482 # (that is, avoid stderr redirection).
4483 am_uid=`id -u || echo unknown`
4484 am_gid=`id -g || echo unknown`
4485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
4486 printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
4487 if test $am_uid -le $am_max_uid; then
4488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4489 printf "%s\n" "yes" >&6; }
4490 else
4491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4492 printf "%s\n" "no" >&6; }
4493 _am_tools=none
4494 fi
4495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
4496 printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
4497 if test $am_gid -le $am_max_gid; then
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4499 printf "%s\n" "yes" >&6; }
4500 else
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4502 printf "%s\n" "no" >&6; }
4503 _am_tools=none
4504 fi
4505
4506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
4507 printf %s "checking how to create a ustar tar archive... " >&6; }
4508
4509 # Go ahead even if we have the value already cached. We do so because we
4510 # need to set the values for the 'am__tar' and 'am__untar' variables.
4511 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
4512
4513 for _am_tool in $_am_tools; do
4514 case $_am_tool in
4515 gnutar)
4516 for _am_tar in tar gnutar gtar; do
4517 { echo "$as_me:$LINENO: $_am_tar --version" >&5
4518 ($_am_tar --version) >&5 2>&5
4519 ac_status=$?
4520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4521 (exit $ac_status); } && break
4522 done
4523 am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
4524 am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
4525 am__untar="$_am_tar -xf -"
4526 ;;
4527 plaintar)
4528 # Must skip GNU tar: if it does not support --format= it doesn't create
4529 # ustar tarball either.
4530 (tar --version) >/dev/null 2>&1 && continue
4531 am__tar='tar chf - "$$tardir"'
4532 am__tar_='tar chf - "$tardir"'
4533 am__untar='tar xf -'
4534 ;;
4535 pax)
4536 am__tar='pax -L -x ustar -w "$$tardir"'
4537 am__tar_='pax -L -x ustar -w "$tardir"'
4538 am__untar='pax -r'
4539 ;;
4540 cpio)
4541 am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
4542 am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
4543 am__untar='cpio -i -H ustar -d'
4544 ;;
4545 none)
4546 am__tar=false
4547 am__tar_=false
4548 am__untar=false
4549 ;;
4550 esac
4551
4552 # If the value was cached, stop now. We just wanted to have am__tar
4553 # and am__untar set.
4554 test -n "${am_cv_prog_tar_ustar}" && break
4555
4556 # tar/untar a dummy directory, and stop if the command works.
4557 rm -rf conftest.dir
4558 mkdir conftest.dir
4559 echo GrepMe > conftest.dir/file
4560 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
4561 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
4562 ac_status=$?
4563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564 (exit $ac_status); }
4565 rm -rf conftest.dir
4566 if test -s conftest.tar; then
4567 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
4568 ($am__untar <conftest.tar) >&5 2>&5
4569 ac_status=$?
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }
4572 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
4573 (cat conftest.dir/file) >&5 2>&5
4574 ac_status=$?
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }
4577 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
4578 fi
4579 done
4580 rm -rf conftest.dir
4581
4582 if test ${am_cv_prog_tar_ustar+y}
4583 then :
4584 printf %s "(cached) " >&6
4585 else $as_nop
4586 am_cv_prog_tar_ustar=$_am_tool
4587 fi
4588
4589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
4590 printf "%s\n" "$am_cv_prog_tar_ustar" >&6; }
4591
4592
4593
4594
4595
4596 # Variables for tags utilities; see am/tags.am
4597 if test -z "$CTAGS"; then
4598 CTAGS=ctags
4599 fi
4600
4601 if test -z "$ETAGS"; then
4602 ETAGS=etags
4603 fi
4604
4605 if test -z "$CSCOPE"; then
4606 CSCOPE=cscope
4607 fi
4608
4609
4610
4611 # POSIX will say in a future version that running "rm -f" with no argument
4612 # is OK; and we want to be able to make that assumption in our Makefile
4613 # recipes. So use an aggressive probe to check that the usage we want is
4614 # actually supported "in the wild" to an acceptable degree.
4615 # See automake bug#10828.
4616 # To make any issue more visible, cause the running configure to be aborted
4617 # by default if the 'rm' program in use doesn't match our expectations; the
4618 # user can still override this though.
4619 if rm -f && rm -fr && rm -rf; then : OK; else
4620 cat >&2 <<'END'
4621 Oops!
4622
4623 Your 'rm' program seems unable to run without file operands specified
4624 on the command line, even when the '-f' option is present. This is contrary
4625 to the behaviour of most rm programs out there, and not conforming with
4626 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4627
4628 Please tell [email protected] about your system, including the value
4629 of your $PATH and any error possibly output before this message. This
4630 can help us improve future automake versions.
4631
4632 END
4633 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4634 echo 'Configuration will proceed anyway, since you have set the' >&2
4635 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4636 echo >&2
4637 else
4638 cat >&2 <<'END'
4639 Aborting the configuration process, to ensure you take notice of the issue.
4640
4641 You can download and install GNU coreutils to get an 'rm' implementation
4642 that behaves properly: <https://www.gnu.org/software/coreutils/>.
4643
4644 If you want to complete the configuration process using your problematic
4645 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4646 to "yes", and re-run configure.
4647
4648 END
4649 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4650 fi
4651 fi
4652
4653 ac_config_headers="$ac_config_headers config.h"
4654
4655
4656 # Enable silent rules by default:
4657 # Check whether --enable-silent-rules was given.
4658 if test ${enable_silent_rules+y}
4659 then :
4660 enableval=$enable_silent_rules;
4661 fi
4662
4663 case $enable_silent_rules in # (((
4664 yes) AM_DEFAULT_VERBOSITY=0;;
4665 no) AM_DEFAULT_VERBOSITY=1;;
4666 *) AM_DEFAULT_VERBOSITY=0;;
4667 esac
4668 am_make=${MAKE-make}
4669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4670 printf %s "checking whether $am_make supports nested variables... " >&6; }
4671 if test ${am_cv_make_support_nested_variables+y}
4672 then :
4673 printf %s "(cached) " >&6
4674 else $as_nop
4675 if printf "%s\n" 'TRUE=$(BAR$(V))
4676 BAR0=false
4677 BAR1=true
4678 V=1
4679 am__doit:
4680 @$(TRUE)
4681 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4682 am_cv_make_support_nested_variables=yes
4683 else
4684 am_cv_make_support_nested_variables=no
4685 fi
4686 fi
4687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4688 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
4689 if test $am_cv_make_support_nested_variables = yes; then
4690 AM_V='$(V)'
4691 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4692 else
4693 AM_V=$AM_DEFAULT_VERBOSITY
4694 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4695 fi
4696 AM_BACKSLASH='\'
4697
4698
4699 # Checks for programs.
4700
4701
4702
4703
4704
4705
4706
4707
4708
4709 ac_ext=c
4710 ac_cpp='$CPP $CPPFLAGS'
4711 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4712 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4713 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4714 if test -n "$ac_tool_prefix"; then
4715 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4716 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4718 printf %s "checking for $ac_word... " >&6; }
4719 if test ${ac_cv_prog_CC+y}
4720 then :
4721 printf %s "(cached) " >&6
4722 else $as_nop
4723 if test -n "$CC"; then
4724 ac_cv_prog_CC="$CC" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 case $as_dir in #(((
4731 '') as_dir=./ ;;
4732 */) ;;
4733 *) as_dir=$as_dir/ ;;
4734 esac
4735 for ac_exec_ext in '' $ac_executable_extensions; do
4736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4737 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4739 break 2
4740 fi
4741 done
4742 done
4743 IFS=$as_save_IFS
4744
4745 fi
4746 fi
4747 CC=$ac_cv_prog_CC
4748 if test -n "$CC"; then
4749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4750 printf "%s\n" "$CC" >&6; }
4751 else
4752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4753 printf "%s\n" "no" >&6; }
4754 fi
4755
4756
4757 fi
4758 if test -z "$ac_cv_prog_CC"; then
4759 ac_ct_CC=$CC
4760 # Extract the first word of "gcc", so it can be a program name with args.
4761 set dummy gcc; ac_word=$2
4762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4763 printf %s "checking for $ac_word... " >&6; }
4764 if test ${ac_cv_prog_ac_ct_CC+y}
4765 then :
4766 printf %s "(cached) " >&6
4767 else $as_nop
4768 if test -n "$ac_ct_CC"; then
4769 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4770 else
4771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4772 for as_dir in $PATH
4773 do
4774 IFS=$as_save_IFS
4775 case $as_dir in #(((
4776 '') as_dir=./ ;;
4777 */) ;;
4778 *) as_dir=$as_dir/ ;;
4779 esac
4780 for ac_exec_ext in '' $ac_executable_extensions; do
4781 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4782 ac_cv_prog_ac_ct_CC="gcc"
4783 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4784 break 2
4785 fi
4786 done
4787 done
4788 IFS=$as_save_IFS
4789
4790 fi
4791 fi
4792 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4793 if test -n "$ac_ct_CC"; then
4794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4795 printf "%s\n" "$ac_ct_CC" >&6; }
4796 else
4797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4798 printf "%s\n" "no" >&6; }
4799 fi
4800
4801 if test "x$ac_ct_CC" = x; then
4802 CC=""
4803 else
4804 case $cross_compiling:$ac_tool_warned in
4805 yes:)
4806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4807 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4808 ac_tool_warned=yes ;;
4809 esac
4810 CC=$ac_ct_CC
4811 fi
4812 else
4813 CC="$ac_cv_prog_CC"
4814 fi
4815
4816 if test -z "$CC"; then
4817 if test -n "$ac_tool_prefix"; then
4818 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4819 set dummy ${ac_tool_prefix}cc; ac_word=$2
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4821 printf %s "checking for $ac_word... " >&6; }
4822 if test ${ac_cv_prog_CC+y}
4823 then :
4824 printf %s "(cached) " >&6
4825 else $as_nop
4826 if test -n "$CC"; then
4827 ac_cv_prog_CC="$CC" # Let the user override the test.
4828 else
4829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4830 for as_dir in $PATH
4831 do
4832 IFS=$as_save_IFS
4833 case $as_dir in #(((
4834 '') as_dir=./ ;;
4835 */) ;;
4836 *) as_dir=$as_dir/ ;;
4837 esac
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4840 ac_cv_prog_CC="${ac_tool_prefix}cc"
4841 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4842 break 2
4843 fi
4844 done
4845 done
4846 IFS=$as_save_IFS
4847
4848 fi
4849 fi
4850 CC=$ac_cv_prog_CC
4851 if test -n "$CC"; then
4852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4853 printf "%s\n" "$CC" >&6; }
4854 else
4855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 printf "%s\n" "no" >&6; }
4857 fi
4858
4859
4860 fi
4861 fi
4862 if test -z "$CC"; then
4863 # Extract the first word of "cc", so it can be a program name with args.
4864 set dummy cc; ac_word=$2
4865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4866 printf %s "checking for $ac_word... " >&6; }
4867 if test ${ac_cv_prog_CC+y}
4868 then :
4869 printf %s "(cached) " >&6
4870 else $as_nop
4871 if test -n "$CC"; then
4872 ac_cv_prog_CC="$CC" # Let the user override the test.
4873 else
4874 ac_prog_rejected=no
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878 IFS=$as_save_IFS
4879 case $as_dir in #(((
4880 '') as_dir=./ ;;
4881 */) ;;
4882 *) as_dir=$as_dir/ ;;
4883 esac
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4886 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4887 ac_prog_rejected=yes
4888 continue
4889 fi
4890 ac_cv_prog_CC="cc"
4891 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4892 break 2
4893 fi
4894 done
4895 done
4896 IFS=$as_save_IFS
4897
4898 if test $ac_prog_rejected = yes; then
4899 # We found a bogon in the path, so make sure we never use it.
4900 set dummy $ac_cv_prog_CC
4901 shift
4902 if test $# != 0; then
4903 # We chose a different compiler from the bogus one.
4904 # However, it has the same basename, so the bogon will be chosen
4905 # first if we set CC to just the basename; use the full file name.
4906 shift
4907 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4908 fi
4909 fi
4910 fi
4911 fi
4912 CC=$ac_cv_prog_CC
4913 if test -n "$CC"; then
4914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4915 printf "%s\n" "$CC" >&6; }
4916 else
4917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4918 printf "%s\n" "no" >&6; }
4919 fi
4920
4921
4922 fi
4923 if test -z "$CC"; then
4924 if test -n "$ac_tool_prefix"; then
4925 for ac_prog in cl.exe
4926 do
4927 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4928 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4930 printf %s "checking for $ac_word... " >&6; }
4931 if test ${ac_cv_prog_CC+y}
4932 then :
4933 printf %s "(cached) " >&6
4934 else $as_nop
4935 if test -n "$CC"; then
4936 ac_cv_prog_CC="$CC" # Let the user override the test.
4937 else
4938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4939 for as_dir in $PATH
4940 do
4941 IFS=$as_save_IFS
4942 case $as_dir in #(((
4943 '') as_dir=./ ;;
4944 */) ;;
4945 *) as_dir=$as_dir/ ;;
4946 esac
4947 for ac_exec_ext in '' $ac_executable_extensions; do
4948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4949 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4951 break 2
4952 fi
4953 done
4954 done
4955 IFS=$as_save_IFS
4956
4957 fi
4958 fi
4959 CC=$ac_cv_prog_CC
4960 if test -n "$CC"; then
4961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4962 printf "%s\n" "$CC" >&6; }
4963 else
4964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4965 printf "%s\n" "no" >&6; }
4966 fi
4967
4968
4969 test -n "$CC" && break
4970 done
4971 fi
4972 if test -z "$CC"; then
4973 ac_ct_CC=$CC
4974 for ac_prog in cl.exe
4975 do
4976 # Extract the first word of "$ac_prog", so it can be a program name with args.
4977 set dummy $ac_prog; ac_word=$2
4978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4979 printf %s "checking for $ac_word... " >&6; }
4980 if test ${ac_cv_prog_ac_ct_CC+y}
4981 then :
4982 printf %s "(cached) " >&6
4983 else $as_nop
4984 if test -n "$ac_ct_CC"; then
4985 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4986 else
4987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 for as_dir in $PATH
4989 do
4990 IFS=$as_save_IFS
4991 case $as_dir in #(((
4992 '') as_dir=./ ;;
4993 */) ;;
4994 *) as_dir=$as_dir/ ;;
4995 esac
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4998 ac_cv_prog_ac_ct_CC="$ac_prog"
4999 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5000 break 2
5001 fi
5002 done
5003 done
5004 IFS=$as_save_IFS
5005
5006 fi
5007 fi
5008 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5009 if test -n "$ac_ct_CC"; then
5010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5011 printf "%s\n" "$ac_ct_CC" >&6; }
5012 else
5013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 printf "%s\n" "no" >&6; }
5015 fi
5016
5017
5018 test -n "$ac_ct_CC" && break
5019 done
5020
5021 if test "x$ac_ct_CC" = x; then
5022 CC=""
5023 else
5024 case $cross_compiling:$ac_tool_warned in
5025 yes:)
5026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5027 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5028 ac_tool_warned=yes ;;
5029 esac
5030 CC=$ac_ct_CC
5031 fi
5032 fi
5033
5034 fi
5035 if test -z "$CC"; then
5036 if test -n "$ac_tool_prefix"; then
5037 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
5038 set dummy ${ac_tool_prefix}clang; ac_word=$2
5039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5040 printf %s "checking for $ac_word... " >&6; }
5041 if test ${ac_cv_prog_CC+y}
5042 then :
5043 printf %s "(cached) " >&6
5044 else $as_nop
5045 if test -n "$CC"; then
5046 ac_cv_prog_CC="$CC" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5050 do
5051 IFS=$as_save_IFS
5052 case $as_dir in #(((
5053 '') as_dir=./ ;;
5054 */) ;;
5055 *) as_dir=$as_dir/ ;;
5056 esac
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5059 ac_cv_prog_CC="${ac_tool_prefix}clang"
5060 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5061 break 2
5062 fi
5063 done
5064 done
5065 IFS=$as_save_IFS
5066
5067 fi
5068 fi
5069 CC=$ac_cv_prog_CC
5070 if test -n "$CC"; then
5071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5072 printf "%s\n" "$CC" >&6; }
5073 else
5074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5075 printf "%s\n" "no" >&6; }
5076 fi
5077
5078
5079 fi
5080 if test -z "$ac_cv_prog_CC"; then
5081 ac_ct_CC=$CC
5082 # Extract the first word of "clang", so it can be a program name with args.
5083 set dummy clang; ac_word=$2
5084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5085 printf %s "checking for $ac_word... " >&6; }
5086 if test ${ac_cv_prog_ac_ct_CC+y}
5087 then :
5088 printf %s "(cached) " >&6
5089 else $as_nop
5090 if test -n "$ac_ct_CC"; then
5091 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5092 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH
5095 do
5096 IFS=$as_save_IFS
5097 case $as_dir in #(((
5098 '') as_dir=./ ;;
5099 */) ;;
5100 *) as_dir=$as_dir/ ;;
5101 esac
5102 for ac_exec_ext in '' $ac_executable_extensions; do
5103 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5104 ac_cv_prog_ac_ct_CC="clang"
5105 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5106 break 2
5107 fi
5108 done
5109 done
5110 IFS=$as_save_IFS
5111
5112 fi
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 fi
5139
5140
5141 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5142 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5143 as_fn_error $? "no acceptable C compiler found in \$PATH
5144 See \`config.log' for more details" "$LINENO" 5; }
5145
5146 # Provide some information about the compiler.
5147 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5148 set X $ac_compile
5149 ac_compiler=$2
5150 for ac_option in --version -v -V -qversion -version; do
5151 { { ac_try="$ac_compiler $ac_option >&5"
5152 case "(($ac_try" in
5153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5154 *) ac_try_echo=$ac_try;;
5155 esac
5156 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5157 printf "%s\n" "$ac_try_echo"; } >&5
5158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5159 ac_status=$?
5160 if test -s conftest.err; then
5161 sed '10a\
5162 ... rest of stderr output deleted ...
5163 10q' conftest.err >conftest.er1
5164 cat conftest.er1 >&5
5165 fi
5166 rm -f conftest.er1 conftest.err
5167 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5168 test $ac_status = 0; }
5169 done
5170
5171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5172 /* end confdefs.h. */
5173
5174 int
5175 main (void)
5176 {
5177
5178 ;
5179 return 0;
5180 }
5181 _ACEOF
5182 ac_clean_files_save=$ac_clean_files
5183 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
5184 # Try to create an executable without -o first, disregard a.out.
5185 # It will help us diagnose broken compilers, and finding out an intuition
5186 # of exeext.
5187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
5188 printf %s "checking whether the C compiler works... " >&6; }
5189 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
5190
5191 # The possible output files:
5192 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
5193
5194 ac_rmfiles=
5195 for ac_file in $ac_files
5196 do
5197 case $ac_file in
5198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
5200 esac
5201 done
5202 rm -f $ac_rmfiles
5203
5204 if { { ac_try="$ac_link_default"
5205 case "(($ac_try" in
5206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5207 *) ac_try_echo=$ac_try;;
5208 esac
5209 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5210 printf "%s\n" "$ac_try_echo"; } >&5
5211 (eval "$ac_link_default") 2>&5
5212 ac_status=$?
5213 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5214 test $ac_status = 0; }
5215 then :
5216 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
5217 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
5218 # in a Makefile. We should not override ac_cv_exeext if it was cached,
5219 # so that the user can short-circuit this test for compilers unknown to
5220 # Autoconf.
5221 for ac_file in $ac_files ''
5222 do
5223 test -f "$ac_file" || continue
5224 case $ac_file in
5225 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
5226 ;;
5227 [ab].out )
5228 # We found the default executable, but exeext='' is most
5229 # certainly right.
5230 break;;
5231 *.* )
5232 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
5233 then :; else
5234 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5235 fi
5236 # We set ac_cv_exeext here because the later test for it is not
5237 # safe: cross compilers may not add the suffix if given an `-o'
5238 # argument, so we may need to know it at that point already.
5239 # Even if this section looks crufty: it has the advantage of
5240 # actually working.
5241 break;;
5242 * )
5243 break;;
5244 esac
5245 done
5246 test "$ac_cv_exeext" = no && ac_cv_exeext=
5247
5248 else $as_nop
5249 ac_file=''
5250 fi
5251 if test -z "$ac_file"
5252 then :
5253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5254 printf "%s\n" "no" >&6; }
5255 printf "%s\n" "$as_me: failed program was:" >&5
5256 sed 's/^/| /' conftest.$ac_ext >&5
5257
5258 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5259 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5260 as_fn_error 77 "C compiler cannot create executables
5261 See \`config.log' for more details" "$LINENO" 5; }
5262 else $as_nop
5263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5264 printf "%s\n" "yes" >&6; }
5265 fi
5266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
5267 printf %s "checking for C compiler default output file name... " >&6; }
5268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
5269 printf "%s\n" "$ac_file" >&6; }
5270 ac_exeext=$ac_cv_exeext
5271
5272 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
5273 ac_clean_files=$ac_clean_files_save
5274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
5275 printf %s "checking for suffix of executables... " >&6; }
5276 if { { ac_try="$ac_link"
5277 case "(($ac_try" in
5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5280 esac
5281 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5282 printf "%s\n" "$ac_try_echo"; } >&5
5283 (eval "$ac_link") 2>&5
5284 ac_status=$?
5285 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5286 test $ac_status = 0; }
5287 then :
5288 # If both `conftest.exe' and `conftest' are `present' (well, observable)
5289 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
5290 # work properly (i.e., refer to `conftest.exe'), while it won't with
5291 # `rm'.
5292 for ac_file in conftest.exe conftest conftest.*; do
5293 test -f "$ac_file" || continue
5294 case $ac_file in
5295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5296 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5297 break;;
5298 * ) break;;
5299 esac
5300 done
5301 else $as_nop
5302 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5303 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5304 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5305 See \`config.log' for more details" "$LINENO" 5; }
5306 fi
5307 rm -f conftest conftest$ac_cv_exeext
5308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5309 printf "%s\n" "$ac_cv_exeext" >&6; }
5310
5311 rm -f conftest.$ac_ext
5312 EXEEXT=$ac_cv_exeext
5313 ac_exeext=$EXEEXT
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5316 #include <stdio.h>
5317 int
5318 main (void)
5319 {
5320 FILE *f = fopen ("conftest.out", "w");
5321 return ferror (f) || fclose (f) != 0;
5322
5323 ;
5324 return 0;
5325 }
5326 _ACEOF
5327 ac_clean_files="$ac_clean_files conftest.out"
5328 # Check that the compiler produces executables we can run. If not, either
5329 # the compiler is broken, or we cross compile.
5330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5331 printf %s "checking whether we are cross compiling... " >&6; }
5332 if test "$cross_compiling" != yes; then
5333 { { ac_try="$ac_link"
5334 case "(($ac_try" in
5335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5336 *) ac_try_echo=$ac_try;;
5337 esac
5338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5339 printf "%s\n" "$ac_try_echo"; } >&5
5340 (eval "$ac_link") 2>&5
5341 ac_status=$?
5342 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5343 test $ac_status = 0; }
5344 if { ac_try='./conftest$ac_cv_exeext'
5345 { { case "(($ac_try" in
5346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5347 *) ac_try_echo=$ac_try;;
5348 esac
5349 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5350 printf "%s\n" "$ac_try_echo"; } >&5
5351 (eval "$ac_try") 2>&5
5352 ac_status=$?
5353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5354 test $ac_status = 0; }; }; then
5355 cross_compiling=no
5356 else
5357 if test "$cross_compiling" = maybe; then
5358 cross_compiling=yes
5359 else
5360 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5361 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5362 as_fn_error 77 "cannot run C compiled programs.
5363 If you meant to cross compile, use \`--host'.
5364 See \`config.log' for more details" "$LINENO" 5; }
5365 fi
5366 fi
5367 fi
5368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5369 printf "%s\n" "$cross_compiling" >&6; }
5370
5371 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5372 ac_clean_files=$ac_clean_files_save
5373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5374 printf %s "checking for suffix of object files... " >&6; }
5375 if test ${ac_cv_objext+y}
5376 then :
5377 printf %s "(cached) " >&6
5378 else $as_nop
5379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5381
5382 int
5383 main (void)
5384 {
5385
5386 ;
5387 return 0;
5388 }
5389 _ACEOF
5390 rm -f conftest.o conftest.obj
5391 if { { ac_try="$ac_compile"
5392 case "(($ac_try" in
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5395 esac
5396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5397 printf "%s\n" "$ac_try_echo"; } >&5
5398 (eval "$ac_compile") 2>&5
5399 ac_status=$?
5400 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5401 test $ac_status = 0; }
5402 then :
5403 for ac_file in conftest.o conftest.obj conftest.*; do
5404 test -f "$ac_file" || continue;
5405 case $ac_file in
5406 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5407 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5408 break;;
5409 esac
5410 done
5411 else $as_nop
5412 printf "%s\n" "$as_me: failed program was:" >&5
5413 sed 's/^/| /' conftest.$ac_ext >&5
5414
5415 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5416 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5417 as_fn_error $? "cannot compute suffix of object files: cannot compile
5418 See \`config.log' for more details" "$LINENO" 5; }
5419 fi
5420 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5421 fi
5422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5423 printf "%s\n" "$ac_cv_objext" >&6; }
5424 OBJEXT=$ac_cv_objext
5425 ac_objext=$OBJEXT
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5427 printf %s "checking whether the compiler supports GNU C... " >&6; }
5428 if test ${ac_cv_c_compiler_gnu+y}
5429 then :
5430 printf %s "(cached) " >&6
5431 else $as_nop
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433 /* end confdefs.h. */
5434
5435 int
5436 main (void)
5437 {
5438 #ifndef __GNUC__
5439 choke me
5440 #endif
5441
5442 ;
5443 return 0;
5444 }
5445 _ACEOF
5446 if ac_fn_c_try_compile "$LINENO"
5447 then :
5448 ac_compiler_gnu=yes
5449 else $as_nop
5450 ac_compiler_gnu=no
5451 fi
5452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5453 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5454
5455 fi
5456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5457 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5459
5460 if test $ac_compiler_gnu = yes; then
5461 GCC=yes
5462 else
5463 GCC=
5464 fi
5465 ac_test_CFLAGS=${CFLAGS+y}
5466 ac_save_CFLAGS=$CFLAGS
5467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5468 printf %s "checking whether $CC accepts -g... " >&6; }
5469 if test ${ac_cv_prog_cc_g+y}
5470 then :
5471 printf %s "(cached) " >&6
5472 else $as_nop
5473 ac_save_c_werror_flag=$ac_c_werror_flag
5474 ac_c_werror_flag=yes
5475 ac_cv_prog_cc_g=no
5476 CFLAGS="-g"
5477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5478 /* end confdefs.h. */
5479
5480 int
5481 main (void)
5482 {
5483
5484 ;
5485 return 0;
5486 }
5487 _ACEOF
5488 if ac_fn_c_try_compile "$LINENO"
5489 then :
5490 ac_cv_prog_cc_g=yes
5491 else $as_nop
5492 CFLAGS=""
5493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5494 /* end confdefs.h. */
5495
5496 int
5497 main (void)
5498 {
5499
5500 ;
5501 return 0;
5502 }
5503 _ACEOF
5504 if ac_fn_c_try_compile "$LINENO"
5505 then :
5506
5507 else $as_nop
5508 ac_c_werror_flag=$ac_save_c_werror_flag
5509 CFLAGS="-g"
5510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5511 /* end confdefs.h. */
5512
5513 int
5514 main (void)
5515 {
5516
5517 ;
5518 return 0;
5519 }
5520 _ACEOF
5521 if ac_fn_c_try_compile "$LINENO"
5522 then :
5523 ac_cv_prog_cc_g=yes
5524 fi
5525 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5526 fi
5527 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5528 fi
5529 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5530 ac_c_werror_flag=$ac_save_c_werror_flag
5531 fi
5532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5533 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5534 if test $ac_test_CFLAGS; then
5535 CFLAGS=$ac_save_CFLAGS
5536 elif test $ac_cv_prog_cc_g = yes; then
5537 if test "$GCC" = yes; then
5538 CFLAGS="-g -O2"
5539 else
5540 CFLAGS="-g"
5541 fi
5542 else
5543 if test "$GCC" = yes; then
5544 CFLAGS="-O2"
5545 else
5546 CFLAGS=
5547 fi
5548 fi
5549 ac_prog_cc_stdc=no
5550 if test x$ac_prog_cc_stdc = xno
5551 then :
5552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5553 printf %s "checking for $CC option to enable C11 features... " >&6; }
5554 if test ${ac_cv_prog_cc_c11+y}
5555 then :
5556 printf %s "(cached) " >&6
5557 else $as_nop
5558 ac_cv_prog_cc_c11=no
5559 ac_save_CC=$CC
5560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561 /* end confdefs.h. */
5562 $ac_c_conftest_c11_program
5563 _ACEOF
5564 for ac_arg in '' -std=gnu11
5565 do
5566 CC="$ac_save_CC $ac_arg"
5567 if ac_fn_c_try_compile "$LINENO"
5568 then :
5569 ac_cv_prog_cc_c11=$ac_arg
5570 fi
5571 rm -f core conftest.err conftest.$ac_objext conftest.beam
5572 test "x$ac_cv_prog_cc_c11" != "xno" && break
5573 done
5574 rm -f conftest.$ac_ext
5575 CC=$ac_save_CC
5576 fi
5577
5578 if test "x$ac_cv_prog_cc_c11" = xno
5579 then :
5580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5581 printf "%s\n" "unsupported" >&6; }
5582 else $as_nop
5583 if test "x$ac_cv_prog_cc_c11" = x
5584 then :
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5586 printf "%s\n" "none needed" >&6; }
5587 else $as_nop
5588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5589 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5590 CC="$CC $ac_cv_prog_cc_c11"
5591 fi
5592 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5593 ac_prog_cc_stdc=c11
5594 fi
5595 fi
5596 if test x$ac_prog_cc_stdc = xno
5597 then :
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5599 printf %s "checking for $CC option to enable C99 features... " >&6; }
5600 if test ${ac_cv_prog_cc_c99+y}
5601 then :
5602 printf %s "(cached) " >&6
5603 else $as_nop
5604 ac_cv_prog_cc_c99=no
5605 ac_save_CC=$CC
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 $ac_c_conftest_c99_program
5609 _ACEOF
5610 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5611 do
5612 CC="$ac_save_CC $ac_arg"
5613 if ac_fn_c_try_compile "$LINENO"
5614 then :
5615 ac_cv_prog_cc_c99=$ac_arg
5616 fi
5617 rm -f core conftest.err conftest.$ac_objext conftest.beam
5618 test "x$ac_cv_prog_cc_c99" != "xno" && break
5619 done
5620 rm -f conftest.$ac_ext
5621 CC=$ac_save_CC
5622 fi
5623
5624 if test "x$ac_cv_prog_cc_c99" = xno
5625 then :
5626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5627 printf "%s\n" "unsupported" >&6; }
5628 else $as_nop
5629 if test "x$ac_cv_prog_cc_c99" = x
5630 then :
5631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5632 printf "%s\n" "none needed" >&6; }
5633 else $as_nop
5634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5635 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5636 CC="$CC $ac_cv_prog_cc_c99"
5637 fi
5638 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5639 ac_prog_cc_stdc=c99
5640 fi
5641 fi
5642 if test x$ac_prog_cc_stdc = xno
5643 then :
5644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5645 printf %s "checking for $CC option to enable C89 features... " >&6; }
5646 if test ${ac_cv_prog_cc_c89+y}
5647 then :
5648 printf %s "(cached) " >&6
5649 else $as_nop
5650 ac_cv_prog_cc_c89=no
5651 ac_save_CC=$CC
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 $ac_c_conftest_c89_program
5655 _ACEOF
5656 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5657 do
5658 CC="$ac_save_CC $ac_arg"
5659 if ac_fn_c_try_compile "$LINENO"
5660 then :
5661 ac_cv_prog_cc_c89=$ac_arg
5662 fi
5663 rm -f core conftest.err conftest.$ac_objext conftest.beam
5664 test "x$ac_cv_prog_cc_c89" != "xno" && break
5665 done
5666 rm -f conftest.$ac_ext
5667 CC=$ac_save_CC
5668 fi
5669
5670 if test "x$ac_cv_prog_cc_c89" = xno
5671 then :
5672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5673 printf "%s\n" "unsupported" >&6; }
5674 else $as_nop
5675 if test "x$ac_cv_prog_cc_c89" = x
5676 then :
5677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5678 printf "%s\n" "none needed" >&6; }
5679 else $as_nop
5680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5681 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5682 CC="$CC $ac_cv_prog_cc_c89"
5683 fi
5684 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5685 ac_prog_cc_stdc=c89
5686 fi
5687 fi
5688
5689 ac_ext=c
5690 ac_cpp='$CPP $CPPFLAGS'
5691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5694
5695
5696 ac_ext=c
5697 ac_cpp='$CPP $CPPFLAGS'
5698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5702 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5703 if test ${am_cv_prog_cc_c_o+y}
5704 then :
5705 printf %s "(cached) " >&6
5706 else $as_nop
5707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5708 /* end confdefs.h. */
5709
5710 int
5711 main (void)
5712 {
5713
5714 ;
5715 return 0;
5716 }
5717 _ACEOF
5718 # Make sure it works both with $CC and with simple cc.
5719 # Following AC_PROG_CC_C_O, we do the test twice because some
5720 # compilers refuse to overwrite an existing .o file with -o,
5721 # though they will create one.
5722 am_cv_prog_cc_c_o=yes
5723 for am_i in 1 2; do
5724 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5725 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5726 ac_status=$?
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } \
5729 && test -f conftest2.$ac_objext; then
5730 : OK
5731 else
5732 am_cv_prog_cc_c_o=no
5733 break
5734 fi
5735 done
5736 rm -f core conftest*
5737 unset am_i
5738 fi
5739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5740 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5741 if test "$am_cv_prog_cc_c_o" != yes; then
5742 # Losing compiler, so override with the script.
5743 # FIXME: It is wrong to rewrite CC.
5744 # But if we don't then we get into trouble of one sort or another.
5745 # A longer-term fix would be to have automake use am__CC in this case,
5746 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5747 CC="$am_aux_dir/compile $CC"
5748 fi
5749 ac_ext=c
5750 ac_cpp='$CPP $CPPFLAGS'
5751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5754
5755
5756
5757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler is clang" >&5
5758 printf %s "checking whether the compiler is clang... " >&6; }
5759 if test ${gl_cv_compiler_clang+y}
5760 then :
5761 printf %s "(cached) " >&6
5762 else $as_nop
5763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5764 /* end confdefs.h. */
5765
5766 #ifdef __clang__
5767 barfbarf
5768 #endif
5769
5770 int
5771 main (void)
5772 {
5773
5774 ;
5775 return 0;
5776 }
5777
5778 _ACEOF
5779 if ac_fn_c_try_compile "$LINENO"
5780 then :
5781 gl_cv_compiler_clang=no
5782 else $as_nop
5783 gl_cv_compiler_clang=yes
5784 fi
5785 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5786
5787 fi
5788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_clang" >&5
5789 printf "%s\n" "$gl_cv_compiler_clang" >&6; }
5790
5791
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler option needed when checking for declarations" >&5
5793 printf %s "checking for compiler option needed when checking for declarations... " >&6; }
5794 if test ${gl_cv_compiler_check_decl_option+y}
5795 then :
5796 printf %s "(cached) " >&6
5797 else $as_nop
5798 if test $gl_cv_compiler_clang = yes; then
5799 save_ac_compile="$ac_compile"
5800 ac_compile="$ac_compile -Werror=implicit-function-declaration"
5801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5802 /* end confdefs.h. */
5803
5804 int
5805 main (void)
5806 {
5807
5808 ;
5809 return 0;
5810 }
5811 _ACEOF
5812 if ac_fn_c_try_compile "$LINENO"
5813 then :
5814 gl_cv_compiler_check_decl_option='-Werror=implicit-function-declaration'
5815 else $as_nop
5816 gl_cv_compiler_check_decl_option=none
5817 fi
5818 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5819 ac_compile="$save_ac_compile"
5820 else
5821 gl_cv_compiler_check_decl_option=none
5822 fi
5823
5824 fi
5825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_compiler_check_decl_option" >&5
5826 printf "%s\n" "$gl_cv_compiler_check_decl_option" >&6; }
5827 if test "x$gl_cv_compiler_check_decl_option" != xnone; then
5828 ac_compile_for_check_decl="$ac_compile $gl_cv_compiler_check_decl_option"
5829 else
5830 ac_compile_for_check_decl="$ac_compile"
5831 fi
5832
5833 DEPDIR="${am__leading_dot}deps"
5834
5835 ac_config_commands="$ac_config_commands depfiles"
5836
5837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5838 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
5839 cat > confinc.mk << 'END'
5840 am__doit:
5841 @echo this is the am__doit target >confinc.out
5842 .PHONY: am__doit
5843 END
5844 am__include="#"
5845 am__quote=
5846 # BSD make does it like this.
5847 echo '.include "confinc.mk" # ignored' > confmf.BSD
5848 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5849 echo 'include confinc.mk # ignored' > confmf.GNU
5850 _am_result=no
5851 for s in GNU BSD; do
5852 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5853 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5854 ac_status=$?
5855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856 (exit $ac_status); }
5857 case $?:`cat confinc.out 2>/dev/null` in #(
5858 '0:this is the am__doit target') :
5859 case $s in #(
5860 BSD) :
5861 am__include='.include' am__quote='"' ;; #(
5862 *) :
5863 am__include='include' am__quote='' ;;
5864 esac ;; #(
5865 *) :
5866 ;;
5867 esac
5868 if test "$am__include" != "#"; then
5869 _am_result="yes ($s style)"
5870 break
5871 fi
5872 done
5873 rm -f confinc.* confmf.*
5874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5875 printf "%s\n" "${_am_result}" >&6; }
5876
5877 # Check whether --enable-dependency-tracking was given.
5878 if test ${enable_dependency_tracking+y}
5879 then :
5880 enableval=$enable_dependency_tracking;
5881 fi
5882
5883 if test "x$enable_dependency_tracking" != xno; then
5884 am_depcomp="$ac_aux_dir/depcomp"
5885 AMDEPBACKSLASH='\'
5886 am__nodep='_no'
5887 fi
5888 if test "x$enable_dependency_tracking" != xno; then
5889 AMDEP_TRUE=
5890 AMDEP_FALSE='#'
5891 else
5892 AMDEP_TRUE='#'
5893 AMDEP_FALSE=
5894 fi
5895
5896
5897
5898 depcc="$CC" am_compiler_list=
5899
5900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5901 printf %s "checking dependency style of $depcc... " >&6; }
5902 if test ${am_cv_CC_dependencies_compiler_type+y}
5903 then :
5904 printf %s "(cached) " >&6
5905 else $as_nop
5906 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5907 # We make a subdir and do the tests there. Otherwise we can end up
5908 # making bogus files that we don't know about and never remove. For
5909 # instance it was reported that on HP-UX the gcc test will end up
5910 # making a dummy file named 'D' -- because '-MD' means "put the output
5911 # in D".
5912 rm -rf conftest.dir
5913 mkdir conftest.dir
5914 # Copy depcomp to subdir because otherwise we won't find it if we're
5915 # using a relative directory.
5916 cp "$am_depcomp" conftest.dir
5917 cd conftest.dir
5918 # We will build objects and dependencies in a subdirectory because
5919 # it helps to detect inapplicable dependency modes. For instance
5920 # both Tru64's cc and ICC support -MD to output dependencies as a
5921 # side effect of compilation, but ICC will put the dependencies in
5922 # the current directory while Tru64 will put them in the object
5923 # directory.
5924 mkdir sub
5925
5926 am_cv_CC_dependencies_compiler_type=none
5927 if test "$am_compiler_list" = ""; then
5928 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5929 fi
5930 am__universal=false
5931 case " $depcc " in #(
5932 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5933 esac
5934
5935 for depmode in $am_compiler_list; do
5936 # Setup a source with many dependencies, because some compilers
5937 # like to wrap large dependency lists on column 80 (with \), and
5938 # we should not choose a depcomp mode which is confused by this.
5939 #
5940 # We need to recreate these files for each test, as the compiler may
5941 # overwrite some of them when testing with obscure command lines.
5942 # This happens at least with the AIX C compiler.
5943 : > sub/conftest.c
5944 for i in 1 2 3 4 5 6; do
5945 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5946 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5947 # Solaris 10 /bin/sh.
5948 echo '/* dummy */' > sub/conftst$i.h
5949 done
5950 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5951
5952 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5953 # mode. It turns out that the SunPro C++ compiler does not properly
5954 # handle '-M -o', and we need to detect this. Also, some Intel
5955 # versions had trouble with output in subdirs.
5956 am__obj=sub/conftest.${OBJEXT-o}
5957 am__minus_obj="-o $am__obj"
5958 case $depmode in
5959 gcc)
5960 # This depmode causes a compiler race in universal mode.
5961 test "$am__universal" = false || continue
5962 ;;
5963 nosideeffect)
5964 # After this tag, mechanisms are not by side-effect, so they'll
5965 # only be used when explicitly requested.
5966 if test "x$enable_dependency_tracking" = xyes; then
5967 continue
5968 else
5969 break
5970 fi
5971 ;;
5972 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5973 # This compiler won't grok '-c -o', but also, the minuso test has
5974 # not run yet. These depmodes are late enough in the game, and
5975 # so weak that their functioning should not be impacted.
5976 am__obj=conftest.${OBJEXT-o}
5977 am__minus_obj=
5978 ;;
5979 none) break ;;
5980 esac
5981 if depmode=$depmode \
5982 source=sub/conftest.c object=$am__obj \
5983 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5984 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5985 >/dev/null 2>conftest.err &&
5986 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5987 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5988 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5989 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5990 # icc doesn't choke on unknown options, it will just issue warnings
5991 # or remarks (even with -Werror). So we grep stderr for any message
5992 # that says an option was ignored or not supported.
5993 # When given -MP, icc 7.0 and 7.1 complain thusly:
5994 # icc: Command line warning: ignoring option '-M'; no argument required
5995 # The diagnosis changed in icc 8.0:
5996 # icc: Command line remark: option '-MP' not supported
5997 if (grep 'ignoring option' conftest.err ||
5998 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5999 am_cv_CC_dependencies_compiler_type=$depmode
6000 break
6001 fi
6002 fi
6003 done
6004
6005 cd ..
6006 rm -rf conftest.dir
6007 else
6008 am_cv_CC_dependencies_compiler_type=none
6009 fi
6010
6011 fi
6012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6013 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6014 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6015
6016 if
6017 test "x$enable_dependency_tracking" != xno \
6018 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6019 am__fastdepCC_TRUE=
6020 am__fastdepCC_FALSE='#'
6021 else
6022 am__fastdepCC_TRUE='#'
6023 am__fastdepCC_FALSE=
6024 fi
6025
6026
6027
6028 ac_header= ac_cache=
6029 for ac_item in $ac_header_c_list
6030 do
6031 if test $ac_cache; then
6032 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
6033 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
6034 printf "%s\n" "#define $ac_item 1" >> confdefs.h
6035 fi
6036 ac_header= ac_cache=
6037 elif test $ac_header; then
6038 ac_cache=$ac_item
6039 else
6040 ac_header=$ac_item
6041 fi
6042 done
6043
6044
6045
6046
6047
6048
6049
6050
6051 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
6052 then :
6053
6054 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
6055
6056 fi
6057
6058
6059
6060
6061
6062
6063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6064 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6065 if test ${ac_cv_safe_to_define___extensions__+y}
6066 then :
6067 printf %s "(cached) " >&6
6068 else $as_nop
6069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6070 /* end confdefs.h. */
6071
6072 # define __EXTENSIONS__ 1
6073 $ac_includes_default
6074 int
6075 main (void)
6076 {
6077
6078 ;
6079 return 0;
6080 }
6081 _ACEOF
6082 if ac_fn_c_try_compile "$LINENO"
6083 then :
6084 ac_cv_safe_to_define___extensions__=yes
6085 else $as_nop
6086 ac_cv_safe_to_define___extensions__=no
6087 fi
6088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6089 fi
6090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
6091 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
6092
6093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
6094 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
6095 if test ${ac_cv_should_define__xopen_source+y}
6096 then :
6097 printf %s "(cached) " >&6
6098 else $as_nop
6099 ac_cv_should_define__xopen_source=no
6100 if test $ac_cv_header_wchar_h = yes
6101 then :
6102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6103 /* end confdefs.h. */
6104
6105 #include <wchar.h>
6106 mbstate_t x;
6107 int
6108 main (void)
6109 {
6110
6111 ;
6112 return 0;
6113 }
6114 _ACEOF
6115 if ac_fn_c_try_compile "$LINENO"
6116 then :
6117
6118 else $as_nop
6119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6120 /* end confdefs.h. */
6121
6122 #define _XOPEN_SOURCE 500
6123 #include <wchar.h>
6124 mbstate_t x;
6125 int
6126 main (void)
6127 {
6128
6129 ;
6130 return 0;
6131 }
6132 _ACEOF
6133 if ac_fn_c_try_compile "$LINENO"
6134 then :
6135 ac_cv_should_define__xopen_source=yes
6136 fi
6137 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6138 fi
6139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6140 fi
6141 fi
6142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
6143 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
6144
6145 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
6146
6147 printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
6148
6149 printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
6150
6151 printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
6152
6153 printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
6154
6155 printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
6156
6157 printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
6158
6159 printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
6160
6161 printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
6162
6163 printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
6164
6165 printf "%s\n" "#define __STDC_WANT_IEC_60559_EXT__ 1" >>confdefs.h
6166
6167 printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
6168
6169 printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
6170
6171 printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
6172
6173 printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
6174
6175 printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
6176
6177 if test $ac_cv_header_minix_config_h = yes
6178 then :
6179 MINIX=yes
6180 printf "%s\n" "#define _MINIX 1" >>confdefs.h
6181
6182 printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
6183
6184 printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
6185
6186 else $as_nop
6187 MINIX=
6188 fi
6189 if test $ac_cv_safe_to_define___extensions__ = yes
6190 then :
6191 printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
6192
6193 fi
6194 if test $ac_cv_should_define__xopen_source = yes
6195 then :
6196 printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
6197
6198 fi
6199
6200
6201
6202 # Make sure we can run config.sub.
6203 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6204 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6205
6206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6207 printf %s "checking build system type... " >&6; }
6208 if test ${ac_cv_build+y}
6209 then :
6210 printf %s "(cached) " >&6
6211 else $as_nop
6212 ac_build_alias=$build_alias
6213 test "x$ac_build_alias" = x &&
6214 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6215 test "x$ac_build_alias" = x &&
6216 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6217 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6218 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6219
6220 fi
6221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6222 printf "%s\n" "$ac_cv_build" >&6; }
6223 case $ac_cv_build in
6224 *-*-*) ;;
6225 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6226 esac
6227 build=$ac_cv_build
6228 ac_save_IFS=$IFS; IFS='-'
6229 set x $ac_cv_build
6230 shift
6231 build_cpu=$1
6232 build_vendor=$2
6233 shift; shift
6234 # Remember, the first character of IFS is used to create $*,
6235 # except with old shells:
6236 build_os=$*
6237 IFS=$ac_save_IFS
6238 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6239
6240
6241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6242 printf %s "checking host system type... " >&6; }
6243 if test ${ac_cv_host+y}
6244 then :
6245 printf %s "(cached) " >&6
6246 else $as_nop
6247 if test "x$host_alias" = x; then
6248 ac_cv_host=$ac_cv_build
6249 else
6250 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6251 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6252 fi
6253
6254 fi
6255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6256 printf "%s\n" "$ac_cv_host" >&6; }
6257 case $ac_cv_host in
6258 *-*-*) ;;
6259 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6260 esac
6261 host=$ac_cv_host
6262 ac_save_IFS=$IFS; IFS='-'
6263 set x $ac_cv_host
6264 shift
6265 host_cpu=$1
6266 host_vendor=$2
6267 shift; shift
6268 # Remember, the first character of IFS is used to create $*,
6269 # except with old shells:
6270 host_os=$*
6271 IFS=$ac_save_IFS
6272 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6273
6274
6275
6276
6277
6278
6279 case "$host_os" in
6280 openbsd*)
6281
6282 printf "%s\n" "#define _ISOC11_SOURCE 1" >>confdefs.h
6283
6284 ;;
6285 esac
6286
6287 ac_ext=c
6288 ac_cpp='$CPP $CPPFLAGS'
6289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6291 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
6293 printf %s "checking how to run the C preprocessor... " >&6; }
6294 # On Suns, sometimes $CPP names a directory.
6295 if test -n "$CPP" && test -d "$CPP"; then
6296 CPP=
6297 fi
6298 if test -z "$CPP"; then
6299 if test ${ac_cv_prog_CPP+y}
6300 then :
6301 printf %s "(cached) " >&6
6302 else $as_nop
6303 # Double quotes because $CC needs to be expanded
6304 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
6305 do
6306 ac_preproc_ok=false
6307 for ac_c_preproc_warn_flag in '' yes
6308 do
6309 # Use a header file that comes with gcc, so configuring glibc
6310 # with a fresh cross-compiler works.
6311 # On the NeXT, cc -E runs the code through the compiler's parser,
6312 # not just through cpp. "Syntax error" is here to catch this case.
6313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6314 /* end confdefs.h. */
6315 #include <limits.h>
6316 Syntax error
6317 _ACEOF
6318 if ac_fn_c_try_cpp "$LINENO"
6319 then :
6320
6321 else $as_nop
6322 # Broken: fails on valid input.
6323 continue
6324 fi
6325 rm -f conftest.err conftest.i conftest.$ac_ext
6326
6327 # OK, works on sane cases. Now check whether nonexistent headers
6328 # can be detected and how.
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6330 /* end confdefs.h. */
6331 #include <ac_nonexistent.h>
6332 _ACEOF
6333 if ac_fn_c_try_cpp "$LINENO"
6334 then :
6335 # Broken: success on invalid input.
6336 continue
6337 else $as_nop
6338 # Passes both tests.
6339 ac_preproc_ok=:
6340 break
6341 fi
6342 rm -f conftest.err conftest.i conftest.$ac_ext
6343
6344 done
6345 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6346 rm -f conftest.i conftest.err conftest.$ac_ext
6347 if $ac_preproc_ok
6348 then :
6349 break
6350 fi
6351
6352 done
6353 ac_cv_prog_CPP=$CPP
6354
6355 fi
6356 CPP=$ac_cv_prog_CPP
6357 else
6358 ac_cv_prog_CPP=$CPP
6359 fi
6360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
6361 printf "%s\n" "$CPP" >&6; }
6362 ac_preproc_ok=false
6363 for ac_c_preproc_warn_flag in '' yes
6364 do
6365 # Use a header file that comes with gcc, so configuring glibc
6366 # with a fresh cross-compiler works.
6367 # On the NeXT, cc -E runs the code through the compiler's parser,
6368 # not just through cpp. "Syntax error" is here to catch this case.
6369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6370 /* end confdefs.h. */
6371 #include <limits.h>
6372 Syntax error
6373 _ACEOF
6374 if ac_fn_c_try_cpp "$LINENO"
6375 then :
6376
6377 else $as_nop
6378 # Broken: fails on valid input.
6379 continue
6380 fi
6381 rm -f conftest.err conftest.i conftest.$ac_ext
6382
6383 # OK, works on sane cases. Now check whether nonexistent headers
6384 # can be detected and how.
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6386 /* end confdefs.h. */
6387 #include <ac_nonexistent.h>
6388 _ACEOF
6389 if ac_fn_c_try_cpp "$LINENO"
6390 then :
6391 # Broken: success on invalid input.
6392 continue
6393 else $as_nop
6394 # Passes both tests.
6395 ac_preproc_ok=:
6396 break
6397 fi
6398 rm -f conftest.err conftest.i conftest.$ac_ext
6399
6400 done
6401 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6402 rm -f conftest.i conftest.err conftest.$ac_ext
6403 if $ac_preproc_ok
6404 then :
6405
6406 else $as_nop
6407 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6408 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6409 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
6410 See \`config.log' for more details" "$LINENO" 5; }
6411 fi
6412
6413 ac_ext=c
6414 ac_cpp='$CPP $CPPFLAGS'
6415 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6416 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6417 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6418
6419
6420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6421 printf %s "checking for grep that handles long lines and -e... " >&6; }
6422 if test ${ac_cv_path_GREP+y}
6423 then :
6424 printf %s "(cached) " >&6
6425 else $as_nop
6426 if test -z "$GREP"; then
6427 ac_path_GREP_found=false
6428 # Loop through the user's path and test for each of PROGNAME-LIST
6429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6430 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6431 do
6432 IFS=$as_save_IFS
6433 case $as_dir in #(((
6434 '') as_dir=./ ;;
6435 */) ;;
6436 *) as_dir=$as_dir/ ;;
6437 esac
6438 for ac_prog in grep ggrep
6439 do
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6442 as_fn_executable_p "$ac_path_GREP" || continue
6443 # Check for GNU ac_path_GREP and select it if it is found.
6444 # Check for GNU $ac_path_GREP
6445 case `"$ac_path_GREP" --version 2>&1` in
6446 *GNU*)
6447 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6448 *)
6449 ac_count=0
6450 printf %s 0123456789 >"conftest.in"
6451 while :
6452 do
6453 cat "conftest.in" "conftest.in" >"conftest.tmp"
6454 mv "conftest.tmp" "conftest.in"
6455 cp "conftest.in" "conftest.nl"
6456 printf "%s\n" 'GREP' >> "conftest.nl"
6457 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6459 as_fn_arith $ac_count + 1 && ac_count=$as_val
6460 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6461 # Best one so far, save it but keep looking for a better one
6462 ac_cv_path_GREP="$ac_path_GREP"
6463 ac_path_GREP_max=$ac_count
6464 fi
6465 # 10*(2^10) chars as input seems more than enough
6466 test $ac_count -gt 10 && break
6467 done
6468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6469 esac
6470
6471 $ac_path_GREP_found && break 3
6472 done
6473 done
6474 done
6475 IFS=$as_save_IFS
6476 if test -z "$ac_cv_path_GREP"; then
6477 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6478 fi
6479 else
6480 ac_cv_path_GREP=$GREP
6481 fi
6482
6483 fi
6484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6485 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6486 GREP="$ac_cv_path_GREP"
6487
6488
6489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6490 printf %s "checking for egrep... " >&6; }
6491 if test ${ac_cv_path_EGREP+y}
6492 then :
6493 printf %s "(cached) " >&6
6494 else $as_nop
6495 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6496 then ac_cv_path_EGREP="$GREP -E"
6497 else
6498 if test -z "$EGREP"; then
6499 ac_path_EGREP_found=false
6500 # Loop through the user's path and test for each of PROGNAME-LIST
6501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6502 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6503 do
6504 IFS=$as_save_IFS
6505 case $as_dir in #(((
6506 '') as_dir=./ ;;
6507 */) ;;
6508 *) as_dir=$as_dir/ ;;
6509 esac
6510 for ac_prog in egrep
6511 do
6512 for ac_exec_ext in '' $ac_executable_extensions; do
6513 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6514 as_fn_executable_p "$ac_path_EGREP" || continue
6515 # Check for GNU ac_path_EGREP and select it if it is found.
6516 # Check for GNU $ac_path_EGREP
6517 case `"$ac_path_EGREP" --version 2>&1` in
6518 *GNU*)
6519 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6520 *)
6521 ac_count=0
6522 printf %s 0123456789 >"conftest.in"
6523 while :
6524 do
6525 cat "conftest.in" "conftest.in" >"conftest.tmp"
6526 mv "conftest.tmp" "conftest.in"
6527 cp "conftest.in" "conftest.nl"
6528 printf "%s\n" 'EGREP' >> "conftest.nl"
6529 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6530 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6531 as_fn_arith $ac_count + 1 && ac_count=$as_val
6532 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6533 # Best one so far, save it but keep looking for a better one
6534 ac_cv_path_EGREP="$ac_path_EGREP"
6535 ac_path_EGREP_max=$ac_count
6536 fi
6537 # 10*(2^10) chars as input seems more than enough
6538 test $ac_count -gt 10 && break
6539 done
6540 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6541 esac
6542
6543 $ac_path_EGREP_found && break 3
6544 done
6545 done
6546 done
6547 IFS=$as_save_IFS
6548 if test -z "$ac_cv_path_EGREP"; then
6549 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6550 fi
6551 else
6552 ac_cv_path_EGREP=$EGREP
6553 fi
6554
6555 fi
6556 fi
6557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6558 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6559 EGREP="$ac_cv_path_EGREP"
6560
6561
6562
6563
6564
6565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Minix Amsterdam compiler" >&5
6566 printf %s "checking for Minix Amsterdam compiler... " >&6; }
6567 if test ${gl_cv_c_amsterdam_compiler+y}
6568 then :
6569 printf %s "(cached) " >&6
6570 else $as_nop
6571
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6574
6575 #ifdef __ACK__
6576 Amsterdam
6577 #endif
6578
6579 _ACEOF
6580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6581 $EGREP "Amsterdam" >/dev/null 2>&1
6582 then :
6583 gl_cv_c_amsterdam_compiler=yes
6584 else $as_nop
6585 gl_cv_c_amsterdam_compiler=no
6586 fi
6587 rm -rf conftest*
6588
6589
6590 fi
6591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_amsterdam_compiler" >&5
6592 printf "%s\n" "$gl_cv_c_amsterdam_compiler" >&6; }
6593
6594 if test $gl_cv_c_amsterdam_compiler = yes; then
6595 if test -z "$AR"; then
6596 AR='cc -c.a'
6597 fi
6598 if test -z "$ARFLAGS"; then
6599 ARFLAGS='-o'
6600 fi
6601 else
6602 :
6603 fi
6604
6605 if test -n "$ac_tool_prefix"; then
6606 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6607 set dummy ${ac_tool_prefix}ar; ac_word=$2
6608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6609 printf %s "checking for $ac_word... " >&6; }
6610 if test ${ac_cv_prog_AR+y}
6611 then :
6612 printf %s "(cached) " >&6
6613 else $as_nop
6614 if test -n "$AR"; then
6615 ac_cv_prog_AR="$AR" # Let the user override the test.
6616 else
6617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6618 for as_dir in $PATH
6619 do
6620 IFS=$as_save_IFS
6621 case $as_dir in #(((
6622 '') as_dir=./ ;;
6623 */) ;;
6624 *) as_dir=$as_dir/ ;;
6625 esac
6626 for ac_exec_ext in '' $ac_executable_extensions; do
6627 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6628 ac_cv_prog_AR="${ac_tool_prefix}ar"
6629 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6630 break 2
6631 fi
6632 done
6633 done
6634 IFS=$as_save_IFS
6635
6636 fi
6637 fi
6638 AR=$ac_cv_prog_AR
6639 if test -n "$AR"; then
6640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6641 printf "%s\n" "$AR" >&6; }
6642 else
6643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 printf "%s\n" "no" >&6; }
6645 fi
6646
6647
6648 fi
6649 if test -z "$ac_cv_prog_AR"; then
6650 ac_ct_AR=$AR
6651 # Extract the first word of "ar", so it can be a program name with args.
6652 set dummy ar; ac_word=$2
6653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6654 printf %s "checking for $ac_word... " >&6; }
6655 if test ${ac_cv_prog_ac_ct_AR+y}
6656 then :
6657 printf %s "(cached) " >&6
6658 else $as_nop
6659 if test -n "$ac_ct_AR"; then
6660 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6661 else
6662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6663 for as_dir in $PATH
6664 do
6665 IFS=$as_save_IFS
6666 case $as_dir in #(((
6667 '') as_dir=./ ;;
6668 */) ;;
6669 *) as_dir=$as_dir/ ;;
6670 esac
6671 for ac_exec_ext in '' $ac_executable_extensions; do
6672 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6673 ac_cv_prog_ac_ct_AR="ar"
6674 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6675 break 2
6676 fi
6677 done
6678 done
6679 IFS=$as_save_IFS
6680
6681 fi
6682 fi
6683 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6684 if test -n "$ac_ct_AR"; then
6685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6686 printf "%s\n" "$ac_ct_AR" >&6; }
6687 else
6688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6689 printf "%s\n" "no" >&6; }
6690 fi
6691
6692 if test "x$ac_ct_AR" = x; then
6693 AR="ar"
6694 else
6695 case $cross_compiling:$ac_tool_warned in
6696 yes:)
6697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6698 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6699 ac_tool_warned=yes ;;
6700 esac
6701 AR=$ac_ct_AR
6702 fi
6703 else
6704 AR="$ac_cv_prog_AR"
6705 fi
6706
6707 if test -z "$ARFLAGS"; then
6708 ARFLAGS='cr'
6709 fi
6710
6711
6712
6713 if test -z "$RANLIB"; then
6714 if test $gl_cv_c_amsterdam_compiler = yes; then
6715 RANLIB=':'
6716 else
6717 if test -n "$ac_tool_prefix"; then
6718 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6719 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6721 printf %s "checking for $ac_word... " >&6; }
6722 if test ${ac_cv_prog_RANLIB+y}
6723 then :
6724 printf %s "(cached) " >&6
6725 else $as_nop
6726 if test -n "$RANLIB"; then
6727 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6728 else
6729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 for as_dir in $PATH
6731 do
6732 IFS=$as_save_IFS
6733 case $as_dir in #(((
6734 '') as_dir=./ ;;
6735 */) ;;
6736 *) as_dir=$as_dir/ ;;
6737 esac
6738 for ac_exec_ext in '' $ac_executable_extensions; do
6739 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6740 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6741 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6742 break 2
6743 fi
6744 done
6745 done
6746 IFS=$as_save_IFS
6747
6748 fi
6749 fi
6750 RANLIB=$ac_cv_prog_RANLIB
6751 if test -n "$RANLIB"; then
6752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6753 printf "%s\n" "$RANLIB" >&6; }
6754 else
6755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 printf "%s\n" "no" >&6; }
6757 fi
6758
6759
6760 fi
6761 if test -z "$ac_cv_prog_RANLIB"; then
6762 ac_ct_RANLIB=$RANLIB
6763 # Extract the first word of "ranlib", so it can be a program name with args.
6764 set dummy ranlib; ac_word=$2
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6766 printf %s "checking for $ac_word... " >&6; }
6767 if test ${ac_cv_prog_ac_ct_RANLIB+y}
6768 then :
6769 printf %s "(cached) " >&6
6770 else $as_nop
6771 if test -n "$ac_ct_RANLIB"; then
6772 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6773 else
6774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6775 for as_dir in $PATH
6776 do
6777 IFS=$as_save_IFS
6778 case $as_dir in #(((
6779 '') as_dir=./ ;;
6780 */) ;;
6781 *) as_dir=$as_dir/ ;;
6782 esac
6783 for ac_exec_ext in '' $ac_executable_extensions; do
6784 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6785 ac_cv_prog_ac_ct_RANLIB="ranlib"
6786 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6787 break 2
6788 fi
6789 done
6790 done
6791 IFS=$as_save_IFS
6792
6793 fi
6794 fi
6795 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6796 if test -n "$ac_ct_RANLIB"; then
6797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6798 printf "%s\n" "$ac_ct_RANLIB" >&6; }
6799 else
6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6801 printf "%s\n" "no" >&6; }
6802 fi
6803
6804 if test "x$ac_ct_RANLIB" = x; then
6805 RANLIB=":"
6806 else
6807 case $cross_compiling:$ac_tool_warned in
6808 yes:)
6809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6810 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6811 ac_tool_warned=yes ;;
6812 esac
6813 RANLIB=$ac_ct_RANLIB
6814 fi
6815 else
6816 RANLIB="$ac_cv_prog_RANLIB"
6817 fi
6818
6819 fi
6820 fi
6821
6822
6823 # Check whether --enable-largefile was given.
6824 if test ${enable_largefile+y}
6825 then :
6826 enableval=$enable_largefile;
6827 fi
6828 if test "$enable_largefile,$enable_year2038" != no,no
6829 then :
6830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable large file support" >&5
6831 printf %s "checking for $CC option to enable large file support... " >&6; }
6832 if test ${ac_cv_sys_largefile_opts+y}
6833 then :
6834 printf %s "(cached) " >&6
6835 else $as_nop
6836 ac_save_CC="$CC"
6837 ac_opt_found=no
6838 for ac_opt in "none needed" "-D_FILE_OFFSET_BITS=64" "-D_LARGE_FILES=1" "-n32"; do
6839 if test x"$ac_opt" != x"none needed"
6840 then :
6841 CC="$ac_save_CC $ac_opt"
6842 fi
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6845 #include <sys/types.h>
6846 #ifndef FTYPE
6847 # define FTYPE off_t
6848 #endif
6849 /* Check that FTYPE can represent 2**63 - 1 correctly.
6850 We can't simply define LARGE_FTYPE to be 9223372036854775807,
6851 since some C++ compilers masquerading as C compilers
6852 incorrectly reject 9223372036854775807. */
6853 #define LARGE_FTYPE (((FTYPE) 1 << 31 << 31) - 1 + ((FTYPE) 1 << 31 << 31))
6854 int FTYPE_is_large[(LARGE_FTYPE % 2147483629 == 721
6855 && LARGE_FTYPE % 2147483647 == 1)
6856 ? 1 : -1];
6857 int
6858 main (void)
6859 {
6860
6861 ;
6862 return 0;
6863 }
6864 _ACEOF
6865 if ac_fn_c_try_compile "$LINENO"
6866 then :
6867 if test x"$ac_opt" = x"none needed"
6868 then :
6869 # GNU/Linux s390x and alpha need _FILE_OFFSET_BITS=64 for wide ino_t.
6870 CC="$CC -DFTYPE=ino_t"
6871 if ac_fn_c_try_compile "$LINENO"
6872 then :
6873
6874 else $as_nop
6875 CC="$CC -D_FILE_OFFSET_BITS=64"
6876 if ac_fn_c_try_compile "$LINENO"
6877 then :
6878 ac_opt='-D_FILE_OFFSET_BITS=64'
6879 fi
6880 rm -f core conftest.err conftest.$ac_objext conftest.beam
6881 fi
6882 rm -f core conftest.err conftest.$ac_objext conftest.beam
6883 fi
6884 ac_cv_sys_largefile_opts=$ac_opt
6885 ac_opt_found=yes
6886 fi
6887 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6888 test $ac_opt_found = no || break
6889 done
6890 CC="$ac_save_CC"
6891
6892
6893 if test $ac_opt_found != yes; then
6894 case $host_os in #(
6895 mingw* | windows*) :
6896 ac_cv_sys_largefile_opts="supported through gnulib"
6897 ac_opt_found=yes
6898 ;; #(
6899 *) :
6900 ;;
6901 esac
6902 fi
6903
6904 test $ac_opt_found = yes || ac_cv_sys_largefile_opts="support not detected"
6905 fi
6906 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_opts" >&5
6907 printf "%s\n" "$ac_cv_sys_largefile_opts" >&6; }
6908
6909 ac_have_largefile=yes
6910 case $ac_cv_sys_largefile_opts in #(
6911 "none needed") :
6912 ;; #(
6913 "supported through gnulib") :
6914 ;; #(
6915 "support not detected") :
6916 ac_have_largefile=no ;; #(
6917 "-D_FILE_OFFSET_BITS=64") :
6918
6919 printf "%s\n" "#define _FILE_OFFSET_BITS 64" >>confdefs.h
6920 ;; #(
6921 "-D_LARGE_FILES=1") :
6922
6923 printf "%s\n" "#define _LARGE_FILES 1" >>confdefs.h
6924 ;; #(
6925 "-n32") :
6926 CC="$CC -n32" ;; #(
6927 *) :
6928 as_fn_error $? "internal error: bad value for \$ac_cv_sys_largefile_opts" "$LINENO" 5 ;;
6929 esac
6930
6931 if test "$enable_year2038" != no
6932 then :
6933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option for timestamps after 2038" >&5
6934 printf %s "checking for $CC option for timestamps after 2038... " >&6; }
6935 if test ${ac_cv_sys_year2038_opts+y}
6936 then :
6937 printf %s "(cached) " >&6
6938 else $as_nop
6939 ac_save_CPPFLAGS="$CPPFLAGS"
6940 ac_opt_found=no
6941 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
6942 if test x"$ac_opt" != x"none needed"
6943 then :
6944 CPPFLAGS="$ac_save_CPPFLAGS $ac_opt"
6945 fi
6946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6947 /* end confdefs.h. */
6948
6949 #include <time.h>
6950 /* Check that time_t can represent 2**32 - 1 correctly. */
6951 #define LARGE_TIME_T \\
6952 ((time_t) (((time_t) 1 << 30) - 1 + 3 * ((time_t) 1 << 30)))
6953 int verify_time_t_range[(LARGE_TIME_T / 65537 == 65535
6954 && LARGE_TIME_T % 65537 == 0)
6955 ? 1 : -1];
6956
6957 int
6958 main (void)
6959 {
6960
6961 ;
6962 return 0;
6963 }
6964 _ACEOF
6965 if ac_fn_c_try_compile "$LINENO"
6966 then :
6967 ac_cv_sys_year2038_opts="$ac_opt"
6968 ac_opt_found=yes
6969 fi
6970 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
6971 test $ac_opt_found = no || break
6972 done
6973 CPPFLAGS="$ac_save_CPPFLAGS"
6974 test $ac_opt_found = yes || ac_cv_sys_year2038_opts="support not detected"
6975 fi
6976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_year2038_opts" >&5
6977 printf "%s\n" "$ac_cv_sys_year2038_opts" >&6; }
6978
6979 ac_have_year2038=yes
6980 case $ac_cv_sys_year2038_opts in #(
6981 "none needed") :
6982 ;; #(
6983 "support not detected") :
6984 ac_have_year2038=no ;; #(
6985 "-D_TIME_BITS=64") :
6986
6987 printf "%s\n" "#define _TIME_BITS 64" >>confdefs.h
6988 ;; #(
6989 "-D__MINGW_USE_VC2005_COMPAT") :
6990
6991 printf "%s\n" "#define __MINGW_USE_VC2005_COMPAT 1" >>confdefs.h
6992 ;; #(
6993 "-U_USE_32_BIT_TIME_T"*) :
6994 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6995 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
6996 as_fn_error $? "the 'time_t' type is currently forced to be 32-bit. It
6997 will stop working after mid-January 2038. Remove
6998 _USE_32BIT_TIME_T from the compiler flags.
6999 See \`config.log' for more details" "$LINENO" 5; } ;; #(
7000 *) :
7001 as_fn_error $? "internal error: bad value for \$ac_cv_sys_year2038_opts" "$LINENO" 5 ;;
7002 esac
7003
7004 fi
7005
7006 fi
7007
7008
7009 # Pre-early section.
7010
7011
7012
7013 # Code from module absolute-header:
7014 # Code from module alignasof:
7015 # Code from module alignof:
7016 # Code from module alloca-opt:
7017 # Code from module assert-h:
7018 # Code from module attribute:
7019 # Code from module basename-lgpl:
7020 # Code from module bitrotate:
7021 # Code from module c99:
7022 # Code from module calloc-gnu:
7023 # Code from module calloc-posix:
7024 # Code from module cloexec:
7025 # Code from module close:
7026 # Code from module double-slash-root:
7027 # Code from module dup2:
7028 # Code from module errno:
7029 # Code from module error:
7030 # Code from module error-h:
7031 # Code from module exitfail:
7032 # Code from module extensions:
7033 # Code from module extern-inline:
7034 # Code from module fcntl:
7035 # Code from module fcntl-h:
7036 # Code from module fd-hook:
7037 # Code from module filename:
7038 # Code from module float:
7039 # Code from module free-posix:
7040 # Code from module fstat:
7041 # Code from module gen-header:
7042 # Code from module getdtablesize:
7043 # Code from module getprogname:
7044 # Code from module gettext-h:
7045 # Code from module gitlog-to-changelog:
7046 # Code from module hash:
7047 # Code from module ialloc:
7048 # Code from module idx:
7049 # Code from module include_next:
7050 # Code from module intprops:
7051 # Code from module inttypes-incomplete:
7052 # Code from module largefile:
7053
7054 # Code from module limits-h:
7055 # Code from module malloc-gnu:
7056 # Code from module malloc-posix:
7057 # Code from module malloca:
7058 # Code from module mbszero:
7059 # Code from module memchr:
7060 # Code from module minmax:
7061 # Code from module msvc-inval:
7062 # Code from module msvc-nothrow:
7063 # Code from module multiarch:
7064 # Code from module obstack:
7065 # Code from module open:
7066 # Code from module pathmax:
7067 # Code from module progname:
7068 # Code from module realloc-gnu:
7069 # Code from module realloc-posix:
7070 # Code from module reallocarray:
7071 # Code from module size_max:
7072 # Code from module snippet/_Noreturn:
7073 # Code from module snippet/arg-nonnull:
7074 # Code from module snippet/c++defs:
7075 # Code from module snippet/warn-on-use:
7076 # Code from module snprintf:
7077 # Code from module ssize_t:
7078 # Code from module stat:
7079 # Code from module stat-time:
7080 # Code from module std-gnu11:
7081 # Code from module stdbool:
7082 # Code from module stdckdint:
7083 # Code from module stddef:
7084 # Code from module stdint:
7085 # Code from module stdio:
7086
7087
7088 printf "%s\n" "#define __USE_MINGW_ANSI_STDIO 1" >>confdefs.h
7089
7090
7091 # Code from module stdlib:
7092 # Code from module strerror:
7093 # Code from module strerror-override:
7094 # Code from module string:
7095 # Code from module sys_stat:
7096 # Code from module sys_types:
7097 # Code from module time-h:
7098 # Code from module unistd:
7099 # Code from module vararrays:
7100 # Code from module vasnprintf:
7101 # Code from module wchar:
7102 # Code from module xalloc:
7103 # Code from module xalloc-die:
7104 # Code from module xalloc-oversized:
7105 # Code from module xsize:
7106
7107 for ac_prog in flex lex
7108 do
7109 # Extract the first word of "$ac_prog", so it can be a program name with args.
7110 set dummy $ac_prog; ac_word=$2
7111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7112 printf %s "checking for $ac_word... " >&6; }
7113 if test ${ac_cv_prog_LEX+y}
7114 then :
7115 printf %s "(cached) " >&6
7116 else $as_nop
7117 if test -n "$LEX"; then
7118 ac_cv_prog_LEX="$LEX" # Let the user override the test.
7119 else
7120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121 for as_dir in $PATH
7122 do
7123 IFS=$as_save_IFS
7124 case $as_dir in #(((
7125 '') as_dir=./ ;;
7126 */) ;;
7127 *) as_dir=$as_dir/ ;;
7128 esac
7129 for ac_exec_ext in '' $ac_executable_extensions; do
7130 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7131 ac_cv_prog_LEX="$ac_prog"
7132 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7133 break 2
7134 fi
7135 done
7136 done
7137 IFS=$as_save_IFS
7138
7139 fi
7140 fi
7141 LEX=$ac_cv_prog_LEX
7142 if test -n "$LEX"; then
7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
7144 printf "%s\n" "$LEX" >&6; }
7145 else
7146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7147 printf "%s\n" "no" >&6; }
7148 fi
7149
7150
7151 test -n "$LEX" && break
7152 done
7153 test -n "$LEX" || LEX=":"
7154
7155 if test "x$LEX" != "x:"; then
7156 cat >conftest.l <<_ACEOF
7157 %{
7158 #ifdef __cplusplus
7159 extern "C"
7160 #endif
7161 int yywrap(void);
7162 %}
7163 %%
7164 a { ECHO; }
7165 b { REJECT; }
7166 c { yymore (); }
7167 d { yyless (1); }
7168 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
7169 #ifdef __cplusplus
7170 yyless ((yyinput () != 0));
7171 #else
7172 yyless ((input () != 0));
7173 #endif
7174 }
7175 f { unput (yytext[0]); }
7176 . { BEGIN INITIAL; }
7177 %%
7178 #ifdef YYTEXT_POINTER
7179 extern char *yytext;
7180 #endif
7181 int
7182 yywrap (void)
7183 {
7184 return 1;
7185 }
7186 int
7187 main (void)
7188 {
7189 return ! yylex ();
7190 }
7191 _ACEOF
7192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex output file root" >&5
7193 printf %s "checking for lex output file root... " >&6; }
7194 if test ${ac_cv_prog_lex_root+y}
7195 then :
7196 printf %s "(cached) " >&6
7197 else $as_nop
7198
7199 ac_cv_prog_lex_root=unknown
7200 { { ac_try="$LEX conftest.l"
7201 case "(($ac_try" in
7202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7203 *) ac_try_echo=$ac_try;;
7204 esac
7205 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7206 printf "%s\n" "$ac_try_echo"; } >&5
7207 (eval "$LEX conftest.l") 2>&5
7208 ac_status=$?
7209 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7210 test $ac_status = 0; } &&
7211 if test -f lex.yy.c; then
7212 ac_cv_prog_lex_root=lex.yy
7213 elif test -f lexyy.c; then
7214 ac_cv_prog_lex_root=lexyy
7215 fi
7216 fi
7217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
7218 printf "%s\n" "$ac_cv_prog_lex_root" >&6; }
7219 if test "$ac_cv_prog_lex_root" = unknown
7220 then :
7221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot find output from $LEX; giving up on $LEX" >&5
7222 printf "%s\n" "$as_me: WARNING: cannot find output from $LEX; giving up on $LEX" >&2;}
7223 LEX=: LEXLIB=
7224 fi
7225 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
7226
7227 if test ${LEXLIB+y}
7228 then :
7229
7230 else $as_nop
7231
7232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lex library" >&5
7233 printf %s "checking for lex library... " >&6; }
7234 if test ${ac_cv_lib_lex+y}
7235 then :
7236 printf %s "(cached) " >&6
7237 else $as_nop
7238
7239 ac_save_LIBS="$LIBS"
7240 ac_found=false
7241 for ac_cv_lib_lex in 'none needed' -lfl -ll 'not found'; do
7242 case $ac_cv_lib_lex in #(
7243 'none needed') :
7244 ;; #(
7245 'not found') :
7246 break ;; #(
7247 *) :
7248 LIBS="$ac_cv_lib_lex $ac_save_LIBS" ;; #(
7249 *) :
7250 ;;
7251 esac
7252
7253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7254 /* end confdefs.h. */
7255 `cat $LEX_OUTPUT_ROOT.c`
7256 _ACEOF
7257 if ac_fn_c_try_link "$LINENO"
7258 then :
7259 ac_found=:
7260 fi
7261 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7262 conftest$ac_exeext conftest.$ac_ext
7263 if $ac_found; then
7264 break
7265 fi
7266 done
7267 LIBS="$ac_save_LIBS"
7268
7269 fi
7270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
7271 printf "%s\n" "$ac_cv_lib_lex" >&6; }
7272 if test "$ac_cv_lib_lex" = 'not found'
7273 then :
7274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: required lex library not found; giving up on $LEX" >&5
7275 printf "%s\n" "$as_me: WARNING: required lex library not found; giving up on $LEX" >&2;}
7276 LEX=: LEXLIB=
7277 elif test "$ac_cv_lib_lex" = 'none needed'
7278 then :
7279 LEXLIB=''
7280 else $as_nop
7281 LEXLIB=$ac_cv_lib_lex
7282 fi
7283
7284 fi
7285
7286
7287 if test "$LEX" != :
7288 then :
7289
7290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
7291 printf %s "checking whether yytext is a pointer... " >&6; }
7292 if test ${ac_cv_prog_lex_yytext_pointer+y}
7293 then :
7294 printf %s "(cached) " >&6
7295 else $as_nop
7296 # POSIX says lex can declare yytext either as a pointer or an array; the
7297 # default is implementation-dependent. Figure out which it is, since
7298 # not all implementations provide the %pointer and %array declarations.
7299 ac_cv_prog_lex_yytext_pointer=no
7300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7301 /* end confdefs.h. */
7302
7303 #define YYTEXT_POINTER 1
7304 `cat $LEX_OUTPUT_ROOT.c`
7305 _ACEOF
7306 if ac_fn_c_try_compile "$LINENO"
7307 then :
7308 ac_cv_prog_lex_yytext_pointer=yes
7309 fi
7310 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7311
7312 fi
7313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
7314 printf "%s\n" "$ac_cv_prog_lex_yytext_pointer" >&6; }
7315 if test $ac_cv_prog_lex_yytext_pointer = yes; then
7316
7317 printf "%s\n" "#define YYTEXT_POINTER 1" >>confdefs.h
7318
7319 fi
7320
7321 fi
7322 rm -f conftest.l $LEX_OUTPUT_ROOT.c
7323
7324 fi
7325 if test -n "$ac_tool_prefix"; then
7326 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7327 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 printf %s "checking for $ac_word... " >&6; }
7330 if test ${ac_cv_prog_RANLIB+y}
7331 then :
7332 printf %s "(cached) " >&6
7333 else $as_nop
7334 if test -n "$RANLIB"; then
7335 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7336 else
7337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 for as_dir in $PATH
7339 do
7340 IFS=$as_save_IFS
7341 case $as_dir in #(((
7342 '') as_dir=./ ;;
7343 */) ;;
7344 *) as_dir=$as_dir/ ;;
7345 esac
7346 for ac_exec_ext in '' $ac_executable_extensions; do
7347 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7348 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7349 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7350 break 2
7351 fi
7352 done
7353 done
7354 IFS=$as_save_IFS
7355
7356 fi
7357 fi
7358 RANLIB=$ac_cv_prog_RANLIB
7359 if test -n "$RANLIB"; then
7360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7361 printf "%s\n" "$RANLIB" >&6; }
7362 else
7363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 printf "%s\n" "no" >&6; }
7365 fi
7366
7367
7368 fi
7369 if test -z "$ac_cv_prog_RANLIB"; then
7370 ac_ct_RANLIB=$RANLIB
7371 # Extract the first word of "ranlib", so it can be a program name with args.
7372 set dummy ranlib; ac_word=$2
7373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7374 printf %s "checking for $ac_word... " >&6; }
7375 if test ${ac_cv_prog_ac_ct_RANLIB+y}
7376 then :
7377 printf %s "(cached) " >&6
7378 else $as_nop
7379 if test -n "$ac_ct_RANLIB"; then
7380 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7381 else
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 for as_dir in $PATH
7384 do
7385 IFS=$as_save_IFS
7386 case $as_dir in #(((
7387 '') as_dir=./ ;;
7388 */) ;;
7389 *) as_dir=$as_dir/ ;;
7390 esac
7391 for ac_exec_ext in '' $ac_executable_extensions; do
7392 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
7393 ac_cv_prog_ac_ct_RANLIB="ranlib"
7394 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
7395 break 2
7396 fi
7397 done
7398 done
7399 IFS=$as_save_IFS
7400
7401 fi
7402 fi
7403 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7404 if test -n "$ac_ct_RANLIB"; then
7405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7406 printf "%s\n" "$ac_ct_RANLIB" >&6; }
7407 else
7408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7409 printf "%s\n" "no" >&6; }
7410 fi
7411
7412 if test "x$ac_ct_RANLIB" = x; then
7413 RANLIB=":"
7414 else
7415 case $cross_compiling:$ac_tool_warned in
7416 yes:)
7417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7418 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7419 ac_tool_warned=yes ;;
7420 esac
7421 RANLIB=$ac_ct_RANLIB
7422 fi
7423 else
7424 RANLIB="$ac_cv_prog_RANLIB"
7425 fi
7426
7427
7428 # Checks for library functions.
7429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
7430 printf %s "checking for error_at_line... " >&6; }
7431 if test ${ac_cv_lib_error_at_line+y}
7432 then :
7433 printf %s "(cached) " >&6
7434 else $as_nop
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7437 #include <error.h>
7438 int
7439 main (void)
7440 {
7441 error_at_line (0, 0, "", 0, "an error occurred");
7442 ;
7443 return 0;
7444 }
7445 _ACEOF
7446 if ac_fn_c_try_link "$LINENO"
7447 then :
7448 ac_cv_lib_error_at_line=yes
7449 else $as_nop
7450 ac_cv_lib_error_at_line=no
7451 fi
7452 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7453 conftest$ac_exeext conftest.$ac_ext
7454 fi
7455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
7456 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
7457 if test $ac_cv_lib_error_at_line = no; then
7458 case " $LIBOBJS " in
7459 *" error.$ac_objext "* ) ;;
7460 *) LIBOBJS="$LIBOBJS error.$ac_objext"
7461 ;;
7462 esac
7463
7464 fi
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477 # Check whether --enable-cross-guesses was given.
7478 if test ${enable_cross_guesses+y}
7479 then :
7480 enableval=$enable_cross_guesses; if test "x$enableval" != xconservative && test "x$enableval" != xrisky; then
7481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-cross-guesses" >&5
7482 printf "%s\n" "$as_me: WARNING: invalid argument supplied to --enable-cross-guesses" >&2;}
7483 enableval=conservative
7484 fi
7485 gl_cross_guesses="$enableval"
7486 else $as_nop
7487 gl_cross_guesses=conservative
7488 fi
7489
7490 if test $gl_cross_guesses = risky; then
7491 gl_cross_guess_normal="guessing yes"
7492 gl_cross_guess_inverted="guessing no"
7493 else
7494 gl_cross_guess_normal="guessing no"
7495 gl_cross_guess_inverted="guessing yes"
7496 fi
7497 LIBC_FATAL_STDERR_=1
7498 export LIBC_FATAL_STDERR_
7499
7500
7501 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
7502 if test "x$ac_cv_type_size_t" = xyes
7503 then :
7504
7505 else $as_nop
7506
7507 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
7508
7509 fi
7510
7511 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
7512 # for constant arguments. Useless!
7513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
7514 printf %s "checking for working alloca.h... " >&6; }
7515 if test ${ac_cv_working_alloca_h+y}
7516 then :
7517 printf %s "(cached) " >&6
7518 else $as_nop
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7521 #include <alloca.h>
7522 int
7523 main (void)
7524 {
7525 char *p = (char *) alloca (2 * sizeof (int));
7526 if (p) return 0;
7527 ;
7528 return 0;
7529 }
7530 _ACEOF
7531 if ac_fn_c_try_link "$LINENO"
7532 then :
7533 ac_cv_working_alloca_h=yes
7534 else $as_nop
7535 ac_cv_working_alloca_h=no
7536 fi
7537 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7538 conftest$ac_exeext conftest.$ac_ext
7539 fi
7540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
7541 printf "%s\n" "$ac_cv_working_alloca_h" >&6; }
7542 if test $ac_cv_working_alloca_h = yes; then
7543
7544 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
7545
7546 fi
7547
7548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
7549 printf %s "checking for alloca... " >&6; }
7550 if test ${ac_cv_func_alloca_works+y}
7551 then :
7552 printf %s "(cached) " >&6
7553 else $as_nop
7554 if test $ac_cv_working_alloca_h = yes; then
7555 ac_cv_func_alloca_works=yes
7556 else
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7559 #include <stdlib.h>
7560 #include <stddef.h>
7561 #ifndef alloca
7562 # ifdef __GNUC__
7563 # define alloca __builtin_alloca
7564 # elif defined _MSC_VER
7565 # include <malloc.h>
7566 # define alloca _alloca
7567 # else
7568 # ifdef __cplusplus
7569 extern "C"
7570 # endif
7571 void *alloca (size_t);
7572 # endif
7573 #endif
7574
7575 int
7576 main (void)
7577 {
7578 char *p = (char *) alloca (1);
7579 if (p) return 0;
7580 ;
7581 return 0;
7582 }
7583 _ACEOF
7584 if ac_fn_c_try_link "$LINENO"
7585 then :
7586 ac_cv_func_alloca_works=yes
7587 else $as_nop
7588 ac_cv_func_alloca_works=no
7589 fi
7590 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7591 conftest$ac_exeext conftest.$ac_ext
7592 fi
7593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
7594 printf "%s\n" "$ac_cv_func_alloca_works" >&6; }
7595 fi
7596
7597 if test $ac_cv_func_alloca_works = yes; then
7598
7599 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
7600
7601 else
7602 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
7603 # that cause trouble. Some versions do not even contain alloca or
7604 # contain a buggy version. If you still want to use their alloca,
7605 # use ar to extract alloca.o from them instead of compiling alloca.c.
7606
7607
7608
7609
7610
7611 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
7612
7613 printf "%s\n" "#define C_ALLOCA 1" >>confdefs.h
7614
7615
7616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
7617 printf %s "checking stack direction for C alloca... " >&6; }
7618 if test ${ac_cv_c_stack_direction+y}
7619 then :
7620 printf %s "(cached) " >&6
7621 else $as_nop
7622 if test "$cross_compiling" = yes
7623 then :
7624 ac_cv_c_stack_direction=0
7625 else $as_nop
7626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627 /* end confdefs.h. */
7628 $ac_includes_default
7629 int
7630 find_stack_direction (int *addr, int depth)
7631 {
7632 int dir, dummy = 0;
7633 if (! addr)
7634 addr = &dummy;
7635 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
7636 dir = depth ? find_stack_direction (addr, depth - 1) : 0;
7637 return dir + dummy;
7638 }
7639
7640 int
7641 main (int argc, char **argv)
7642 {
7643 return find_stack_direction (0, argc + !argv + 20) < 0;
7644 }
7645 _ACEOF
7646 if ac_fn_c_try_run "$LINENO"
7647 then :
7648 ac_cv_c_stack_direction=1
7649 else $as_nop
7650 ac_cv_c_stack_direction=-1
7651 fi
7652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7653 conftest.$ac_objext conftest.beam conftest.$ac_ext
7654 fi
7655
7656 fi
7657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
7658 printf "%s\n" "$ac_cv_c_stack_direction" >&6; }
7659 printf "%s\n" "#define STACK_DIRECTION $ac_cv_c_stack_direction" >>confdefs.h
7660
7661
7662 fi
7663
7664
7665
7666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the preprocessor supports include_next" >&5
7667 printf %s "checking whether the preprocessor supports include_next... " >&6; }
7668 if test ${gl_cv_have_include_next+y}
7669 then :
7670 printf %s "(cached) " >&6
7671 else $as_nop
7672 rm -rf conftestd1a conftestd1b conftestd2
7673 mkdir conftestd1a conftestd1b conftestd2
7674 cat <<EOF > conftestd1a/conftest.h
7675 #define DEFINED_IN_CONFTESTD1
7676 #include_next <conftest.h>
7677 #ifdef DEFINED_IN_CONFTESTD2
7678 int foo;
7679 #else
7680 #error "include_next doesn't work"
7681 #endif
7682 EOF
7683 cat <<EOF > conftestd1b/conftest.h
7684 #define DEFINED_IN_CONFTESTD1
7685 #include <stdio.h>
7686 #include_next <conftest.h>
7687 #ifdef DEFINED_IN_CONFTESTD2
7688 int foo;
7689 #else
7690 #error "include_next doesn't work"
7691 #endif
7692 EOF
7693 cat <<EOF > conftestd2/conftest.h
7694 #ifndef DEFINED_IN_CONFTESTD1
7695 #error "include_next test doesn't work"
7696 #endif
7697 #define DEFINED_IN_CONFTESTD2
7698 EOF
7699 gl_save_CPPFLAGS="$CPPFLAGS"
7700 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1b -Iconftestd2"
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703 #include <conftest.h>
7704 _ACEOF
7705 if ac_fn_c_try_compile "$LINENO"
7706 then :
7707 gl_cv_have_include_next=yes
7708 else $as_nop
7709 CPPFLAGS="$gl_save_CPPFLAGS -Iconftestd1a -Iconftestd2"
7710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7712 #include <conftest.h>
7713 _ACEOF
7714 if ac_fn_c_try_compile "$LINENO"
7715 then :
7716 gl_cv_have_include_next=buggy
7717 else $as_nop
7718 gl_cv_have_include_next=no
7719 fi
7720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7721
7722 fi
7723 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7724 CPPFLAGS="$gl_save_CPPFLAGS"
7725 rm -rf conftestd1a conftestd1b conftestd2
7726
7727 fi
7728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_include_next" >&5
7729 printf "%s\n" "$gl_cv_have_include_next" >&6; }
7730 PRAGMA_SYSTEM_HEADER=
7731 if test $gl_cv_have_include_next = yes; then
7732 INCLUDE_NEXT=include_next
7733 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7734 if test -n "$GCC"; then
7735 PRAGMA_SYSTEM_HEADER='#pragma GCC system_header'
7736 fi
7737 else
7738 if test $gl_cv_have_include_next = buggy; then
7739 INCLUDE_NEXT=include
7740 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include_next
7741 else
7742 INCLUDE_NEXT=include
7743 INCLUDE_NEXT_AS_FIRST_DIRECTIVE=include
7744 fi
7745 fi
7746
7747
7748
7749
7750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether source code line length is unlimited" >&5
7751 printf %s "checking whether source code line length is unlimited... " >&6; }
7752 if test ${gl_cv_source_line_length_unlimited+y}
7753 then :
7754 printf %s "(cached) " >&6
7755 else $as_nop
7756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7757 /* end confdefs.h. */
7758
7759 #ifdef __TANDEM
7760 choke me
7761 #endif
7762
7763 _ACEOF
7764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7765 $EGREP "choke me" >/dev/null 2>&1
7766 then :
7767 gl_cv_source_line_length_unlimited=no
7768 else $as_nop
7769 gl_cv_source_line_length_unlimited=yes
7770 fi
7771 rm -rf conftest*
7772
7773
7774 fi
7775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_source_line_length_unlimited" >&5
7776 printf "%s\n" "$gl_cv_source_line_length_unlimited" >&6; }
7777 if test $gl_cv_source_line_length_unlimited = no; then
7778 PRAGMA_COLUMNS="#pragma COLUMNS 10000"
7779 else
7780 PRAGMA_COLUMNS=
7781 fi
7782
7783
7784
7785 HAVE__EXIT=1;
7786 HAVE_ALIGNED_ALLOC=1;
7787 HAVE_ATOLL=1;
7788 HAVE_CANONICALIZE_FILE_NAME=1;
7789 HAVE_DECL_ECVT=1;
7790 HAVE_DECL_FCVT=1;
7791 HAVE_DECL_GCVT=1;
7792 HAVE_DECL_GETLOADAVG=1;
7793 HAVE_DECL_PROGRAM_INVOCATION_NAME=1;
7794 HAVE_GETPROGNAME=1;
7795 HAVE_GETSUBOPT=1;
7796 HAVE_GRANTPT=1;
7797 HAVE_INITSTATE=1;
7798 HAVE_DECL_INITSTATE=1;
7799 HAVE_MBTOWC=1;
7800 HAVE_MKDTEMP=1;
7801 HAVE_MKOSTEMP=1;
7802 HAVE_MKOSTEMPS=1;
7803 HAVE_MKSTEMP=1;
7804 HAVE_MKSTEMPS=1;
7805 HAVE_POSIX_MEMALIGN=1;
7806 HAVE_POSIX_OPENPT=1;
7807 HAVE_PTSNAME=1;
7808 HAVE_PTSNAME_R=1;
7809 HAVE_QSORT_R=1;
7810 HAVE_RANDOM=1;
7811 HAVE_RANDOM_H=1;
7812 HAVE_RANDOM_R=1;
7813 HAVE_REALLOCARRAY=1;
7814 HAVE_REALPATH=1;
7815 HAVE_RPMATCH=1;
7816 HAVE_SECURE_GETENV=1;
7817 HAVE_SETENV=1;
7818 HAVE_DECL_SETENV=1;
7819 HAVE_SETSTATE=1;
7820 HAVE_DECL_SETSTATE=1;
7821 HAVE_STRTOD=1;
7822 HAVE_STRTOL=1;
7823 HAVE_STRTOLD=1;
7824 HAVE_STRTOLL=1;
7825 HAVE_STRTOUL=1;
7826 HAVE_STRTOULL=1;
7827 HAVE_STRUCT_RANDOM_DATA=1;
7828 HAVE_SYS_LOADAVG_H=0;
7829 HAVE_UNLOCKPT=1;
7830 HAVE_DECL_UNSETENV=1;
7831 REPLACE__EXIT=0;
7832 REPLACE_ALIGNED_ALLOC=0;
7833 REPLACE_CALLOC_FOR_CALLOC_GNU=0;
7834 REPLACE_CALLOC_FOR_CALLOC_POSIX=0;
7835 REPLACE_CANONICALIZE_FILE_NAME=0;
7836 REPLACE_FREE=0;
7837 REPLACE_GETLOADAVG=0;
7838 REPLACE_GETPROGNAME=0;
7839 REPLACE_GETSUBOPT=0;
7840 REPLACE_INITSTATE=0;
7841 REPLACE_MALLOC_FOR_MALLOC_GNU=0;
7842 REPLACE_MALLOC_FOR_MALLOC_POSIX=0;
7843 REPLACE_MB_CUR_MAX=0;
7844 REPLACE_MBSTOWCS=0;
7845 REPLACE_MBTOWC=0;
7846 REPLACE_MKOSTEMP=0;
7847 REPLACE_MKOSTEMPS=0;
7848 REPLACE_MKSTEMP=0;
7849 REPLACE_POSIX_MEMALIGN=0;
7850 REPLACE_POSIX_OPENPT=0;
7851 REPLACE_PTSNAME=0;
7852 REPLACE_PTSNAME_R=0;
7853 REPLACE_PUTENV=0;
7854 REPLACE_QSORT_R=0;
7855 REPLACE_RAND=0;
7856 REPLACE_RANDOM=0;
7857 REPLACE_RANDOM_R=0;
7858 REPLACE_REALLOC_FOR_REALLOC_GNU=0;
7859 REPLACE_REALLOC_FOR_REALLOC_POSIX=0;
7860 REPLACE_REALLOCARRAY=0;
7861 REPLACE_REALPATH=0;
7862 REPLACE_SETENV=0;
7863 REPLACE_SETSTATE=0;
7864 REPLACE_STRTOD=0;
7865 REPLACE_STRTOL=0;
7866 REPLACE_STRTOLD=0;
7867 REPLACE_STRTOLL=0;
7868 REPLACE_STRTOUL=0;
7869 REPLACE_STRTOULL=0;
7870 REPLACE_UNSETENV=0;
7871 REPLACE_WCTOMB=0;
7872
7873
7874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc is ptrdiff_t safe" >&5
7875 printf %s "checking whether malloc is ptrdiff_t safe... " >&6; }
7876 if test ${gl_cv_malloc_ptrdiff+y}
7877 then :
7878 printf %s "(cached) " >&6
7879 else $as_nop
7880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7881 /* end confdefs.h. */
7882 #include <stdint.h>
7883
7884 int
7885 main (void)
7886 {
7887 /* 64-bit ptrdiff_t is so wide that no practical platform
7888 can exceed it. */
7889 #define WIDE_PTRDIFF (PTRDIFF_MAX >> 31 >> 31 != 0)
7890
7891 /* On rare machines where size_t fits in ptrdiff_t there
7892 is no problem. */
7893 #define NARROW_SIZE (SIZE_MAX <= PTRDIFF_MAX)
7894
7895 /* glibc 2.30 and later malloc refuses to exceed ptrdiff_t
7896 bounds even on 32-bit platforms. We don't know which
7897 non-glibc systems are safe. */
7898 #define KNOWN_SAFE (2 < __GLIBC__ + (30 <= __GLIBC_MINOR__))
7899
7900 #if WIDE_PTRDIFF || NARROW_SIZE || KNOWN_SAFE
7901 return 0;
7902 #else
7903 #error "malloc might not be ptrdiff_t safe"
7904 syntax error
7905 #endif
7906
7907 ;
7908 return 0;
7909 }
7910 _ACEOF
7911 if ac_fn_c_try_compile "$LINENO"
7912 then :
7913 gl_cv_malloc_ptrdiff=yes
7914 else $as_nop
7915 gl_cv_malloc_ptrdiff=no
7916 fi
7917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7918
7919 fi
7920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_malloc_ptrdiff" >&5
7921 printf "%s\n" "$gl_cv_malloc_ptrdiff" >&6; }
7922
7923
7924
7925
7926 test "$gl_cv_malloc_ptrdiff" = yes || REPLACE_MALLOC_FOR_MALLOC_POSIX=1
7927
7928
7929
7930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc, realloc, calloc set errno on failure" >&5
7931 printf %s "checking whether malloc, realloc, calloc set errno on failure... " >&6; }
7932 if test ${gl_cv_func_malloc_posix+y}
7933 then :
7934 printf %s "(cached) " >&6
7935 else $as_nop
7936
7937 case "$host_os" in
7938 mingw* | windows*)
7939 gl_cv_func_malloc_posix=no ;;
7940 irix* | solaris*)
7941
7942 gl_cv_func_malloc_posix=no ;;
7943 *)
7944 gl_cv_func_malloc_posix=yes ;;
7945 esac
7946
7947 fi
7948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_malloc_posix" >&5
7949 printf "%s\n" "$gl_cv_func_malloc_posix" >&6; }
7950
7951
7952
7953
7954
7955 if test "$gl_cv_func_malloc_posix" = yes; then
7956
7957 printf "%s\n" "#define HAVE_MALLOC_POSIX 1" >>confdefs.h
7958
7959 else
7960 REPLACE_MALLOC_FOR_MALLOC_POSIX=1
7961 fi
7962
7963
7964
7965
7966 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
7967 REPLACE_CALLOC_FOR_CALLOC_POSIX=1
7968 fi
7969
7970
7971
7972 GL_GNULIB__EXIT=0
7973
7974
7975
7976 GL_GNULIB_ALIGNED_ALLOC=0
7977
7978
7979
7980 GL_GNULIB_ATOLL=0
7981
7982
7983
7984 GL_GNULIB_CALLOC_GNU=0
7985
7986
7987
7988 GL_GNULIB_CALLOC_POSIX=0
7989
7990
7991
7992 GL_GNULIB_CANONICALIZE_FILE_NAME=0
7993
7994
7995
7996 GL_GNULIB_FREE_POSIX=0
7997
7998
7999
8000 GL_GNULIB_GETLOADAVG=0
8001
8002
8003
8004 GL_GNULIB_GETPROGNAME=0
8005
8006
8007
8008 GL_GNULIB_GETSUBOPT=0
8009
8010
8011
8012 GL_GNULIB_GRANTPT=0
8013
8014
8015
8016 GL_GNULIB_MALLOC_GNU=0
8017
8018
8019
8020 GL_GNULIB_MALLOC_POSIX=0
8021
8022
8023
8024 GL_GNULIB_MBSTOWCS=0
8025
8026
8027
8028 GL_GNULIB_MBTOWC=0
8029
8030
8031
8032 GL_GNULIB_MKDTEMP=0
8033
8034
8035
8036 GL_GNULIB_MKOSTEMP=0
8037
8038
8039
8040 GL_GNULIB_MKOSTEMPS=0
8041
8042
8043
8044 GL_GNULIB_MKSTEMP=0
8045
8046
8047
8048 GL_GNULIB_MKSTEMPS=0
8049
8050
8051
8052 GL_GNULIB_POSIX_MEMALIGN=0
8053
8054
8055
8056 GL_GNULIB_POSIX_OPENPT=0
8057
8058
8059
8060 GL_GNULIB_PTSNAME=0
8061
8062
8063
8064 GL_GNULIB_PTSNAME_R=0
8065
8066
8067
8068 GL_GNULIB_PUTENV=0
8069
8070
8071
8072 GL_GNULIB_QSORT_R=0
8073
8074
8075
8076 GL_GNULIB_RAND=0
8077
8078
8079
8080 GL_GNULIB_RANDOM=0
8081
8082
8083
8084 GL_GNULIB_RANDOM_R=0
8085
8086
8087
8088 GL_GNULIB_REALLOCARRAY=0
8089
8090
8091
8092 GL_GNULIB_REALLOC_GNU=0
8093
8094
8095
8096 GL_GNULIB_REALLOC_POSIX=0
8097
8098
8099
8100 GL_GNULIB_REALPATH=0
8101
8102
8103
8104 GL_GNULIB_RPMATCH=0
8105
8106
8107
8108 GL_GNULIB_SECURE_GETENV=0
8109
8110
8111
8112 GL_GNULIB_SETENV=0
8113
8114
8115
8116 GL_GNULIB_STRTOD=0
8117
8118
8119
8120 GL_GNULIB_STRTOL=0
8121
8122
8123
8124 GL_GNULIB_STRTOLD=0
8125
8126
8127
8128 GL_GNULIB_STRTOLL=0
8129
8130
8131
8132 GL_GNULIB_STRTOUL=0
8133
8134
8135
8136 GL_GNULIB_STRTOULL=0
8137
8138
8139
8140 GL_GNULIB_SYSTEM_POSIX=0
8141
8142
8143
8144 GL_GNULIB_UNLOCKPT=0
8145
8146
8147
8148 GL_GNULIB_UNSETENV=0
8149
8150
8151
8152 GL_GNULIB_WCTOMB=0
8153
8154
8155
8156 GL_GNULIB_MDA_ECVT=1
8157
8158
8159
8160 GL_GNULIB_MDA_FCVT=1
8161
8162
8163
8164 GL_GNULIB_MDA_GCVT=1
8165
8166
8167
8168 GL_GNULIB_MDA_MKTEMP=1
8169
8170
8171
8172 GL_GNULIB_MDA_PUTENV=1
8173
8174
8175
8176
8177 HAVE_CHOWN=1;
8178 HAVE_COPY_FILE_RANGE=1;
8179 HAVE_DUP3=1;
8180 HAVE_EUIDACCESS=1;
8181 HAVE_EXECVPE=1;
8182 HAVE_FACCESSAT=1;
8183 HAVE_FCHDIR=1;
8184 HAVE_FCHOWNAT=1;
8185 HAVE_FDATASYNC=1;
8186 HAVE_FSYNC=1;
8187 HAVE_FTRUNCATE=1;
8188 HAVE_GETDTABLESIZE=1;
8189 HAVE_GETENTROPY=1;
8190 HAVE_GETGROUPS=1;
8191 HAVE_GETHOSTNAME=1;
8192 HAVE_GETLOGIN=1;
8193 HAVE_GETPAGESIZE=1;
8194 HAVE_GETPASS=1;
8195 HAVE_GROUP_MEMBER=1;
8196 HAVE_LCHOWN=1;
8197 HAVE_LINK=1;
8198 HAVE_LINKAT=1;
8199 HAVE_PIPE=1;
8200 HAVE_PIPE2=1;
8201 HAVE_PREAD=1;
8202 HAVE_PWRITE=1;
8203 HAVE_READLINK=1;
8204 HAVE_READLINKAT=1;
8205 HAVE_SETHOSTNAME=1;
8206 HAVE_SLEEP=1;
8207 HAVE_SYMLINK=1;
8208 HAVE_SYMLINKAT=1;
8209 HAVE_UNLINKAT=1;
8210 HAVE_USLEEP=1;
8211 HAVE_DECL_ENVIRON=1;
8212 HAVE_DECL_EXECVPE=1;
8213 HAVE_DECL_FCHDIR=1;
8214 HAVE_DECL_FDATASYNC=1;
8215 HAVE_DECL_GETDOMAINNAME=1;
8216 HAVE_DECL_GETLOGIN=1;
8217 HAVE_DECL_GETLOGIN_R=1;
8218 HAVE_DECL_GETPAGESIZE=1;
8219 HAVE_DECL_GETUSERSHELL=1;
8220 HAVE_DECL_SETHOSTNAME=1;
8221 HAVE_DECL_TRUNCATE=1;
8222 HAVE_DECL_TTYNAME_R=1;
8223 HAVE_OS_H=0;
8224 HAVE_SYS_PARAM_H=0;
8225 REPLACE_ACCESS=0;
8226 REPLACE_CHOWN=0;
8227 REPLACE_CLOSE=0;
8228 REPLACE_COPY_FILE_RANGE=0;
8229 REPLACE_DUP=0;
8230 REPLACE_DUP2=0;
8231 REPLACE_DUP3=0;
8232 REPLACE_EXECL=0;
8233 REPLACE_EXECLE=0;
8234 REPLACE_EXECLP=0;
8235 REPLACE_EXECV=0;
8236 REPLACE_EXECVE=0;
8237 REPLACE_EXECVP=0;
8238 REPLACE_EXECVPE=0;
8239 REPLACE_FACCESSAT=0;
8240 REPLACE_FCHDIR=0;
8241 REPLACE_FCHOWNAT=0;
8242 REPLACE_FDATASYNC=0;
8243 REPLACE_FTRUNCATE=0;
8244 REPLACE_GETCWD=0;
8245 REPLACE_GETDOMAINNAME=0;
8246 REPLACE_GETDTABLESIZE=0;
8247 REPLACE_GETENTROPY=0;
8248 REPLACE_GETLOGIN_R=0;
8249 REPLACE_GETGROUPS=0;
8250 REPLACE_GETPAGESIZE=0;
8251 REPLACE_GETPASS=0;
8252 REPLACE_GETPASS_FOR_GETPASS_GNU=0;
8253 REPLACE_ISATTY=0;
8254 REPLACE_LCHOWN=0;
8255 REPLACE_LINK=0;
8256 REPLACE_LINKAT=0;
8257 REPLACE_LSEEK=0;
8258 REPLACE_PIPE2=0;
8259 REPLACE_PREAD=0;
8260 REPLACE_PWRITE=0;
8261 REPLACE_READ=0;
8262 REPLACE_READLINK=0;
8263 REPLACE_READLINKAT=0;
8264 REPLACE_RMDIR=0;
8265 REPLACE_SETHOSTNAME=0;
8266 REPLACE_SLEEP=0;
8267 REPLACE_SYMLINK=0;
8268 REPLACE_SYMLINKAT=0;
8269 REPLACE_TRUNCATE=0;
8270 REPLACE_TTYNAME_R=0;
8271 REPLACE_UNLINK=0;
8272 REPLACE_UNLINKAT=0;
8273 REPLACE_USLEEP=0;
8274 REPLACE_WRITE=0;
8275 UNISTD_H_HAVE_SYS_RANDOM_H=0;
8276 UNISTD_H_HAVE_WINSOCK2_H=0;
8277 UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS=0;
8278
8279
8280 ac_func=
8281 for ac_item in $ac_func_c_list
8282 do
8283 if test $ac_func; then
8284 ac_fn_c_check_func "$LINENO" $ac_func ac_cv_func_$ac_func
8285 if eval test \"x\$ac_cv_func_$ac_func\" = xyes; then
8286 echo "#define $ac_item 1" >> confdefs.h
8287 fi
8288 ac_func=
8289 else
8290 ac_func=$ac_item
8291 fi
8292 done
8293
8294
8295 if test $ac_cv_func__set_invalid_parameter_handler = yes; then
8296 HAVE_MSVC_INVALID_PARAMETER_HANDLER=1
8297
8298 printf "%s\n" "#define HAVE_MSVC_INVALID_PARAMETER_HANDLER 1" >>confdefs.h
8299
8300 else
8301 HAVE_MSVC_INVALID_PARAMETER_HANDLER=0
8302 fi
8303
8304
8305
8306
8307
8308
8309
8310 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
8311 REPLACE_CLOSE=1
8312 fi
8313
8314
8315
8316
8317
8318
8319 if test $ac_cv_header_sys_socket_h != yes; then
8320 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
8321 if test "x$ac_cv_header_winsock2_h" = xyes
8322 then :
8323 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
8324
8325 fi
8326
8327 fi
8328 if test "$ac_cv_header_winsock2_h" = yes; then
8329 HAVE_WINSOCK2_H=1
8330 UNISTD_H_HAVE_WINSOCK2_H=1
8331 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
8332 else
8333 HAVE_WINSOCK2_H=0
8334 fi
8335
8336
8337 if test $UNISTD_H_HAVE_WINSOCK2_H = 1; then
8338 REPLACE_CLOSE=1
8339 fi
8340
8341
8342
8343
8344
8345 GL_GNULIB_ACCESS=0
8346
8347
8348
8349 GL_GNULIB_CHDIR=0
8350
8351
8352
8353 GL_GNULIB_CHOWN=0
8354
8355
8356
8357 GL_GNULIB_CLOSE=0
8358
8359
8360
8361 GL_GNULIB_COPY_FILE_RANGE=0
8362
8363
8364
8365 GL_GNULIB_DUP=0
8366
8367
8368
8369 GL_GNULIB_DUP2=0
8370
8371
8372
8373 GL_GNULIB_DUP3=0
8374
8375
8376
8377 GL_GNULIB_ENVIRON=0
8378
8379
8380
8381 GL_GNULIB_EUIDACCESS=0
8382
8383
8384
8385 GL_GNULIB_EXECL=0
8386
8387
8388
8389 GL_GNULIB_EXECLE=0
8390
8391
8392
8393 GL_GNULIB_EXECLP=0
8394
8395
8396
8397 GL_GNULIB_EXECV=0
8398
8399
8400
8401 GL_GNULIB_EXECVE=0
8402
8403
8404
8405 GL_GNULIB_EXECVP=0
8406
8407
8408
8409 GL_GNULIB_EXECVPE=0
8410
8411
8412
8413 GL_GNULIB_FACCESSAT=0
8414
8415
8416
8417 GL_GNULIB_FCHDIR=0
8418
8419
8420
8421 GL_GNULIB_FCHOWNAT=0
8422
8423
8424
8425 GL_GNULIB_FDATASYNC=0
8426
8427
8428
8429 GL_GNULIB_FSYNC=0
8430
8431
8432
8433 GL_GNULIB_FTRUNCATE=0
8434
8435
8436
8437 GL_GNULIB_GETCWD=0
8438
8439
8440
8441 GL_GNULIB_GETDOMAINNAME=0
8442
8443
8444
8445 GL_GNULIB_GETDTABLESIZE=0
8446
8447
8448
8449 GL_GNULIB_GETENTROPY=0
8450
8451
8452
8453 GL_GNULIB_GETGROUPS=0
8454
8455
8456
8457 GL_GNULIB_GETHOSTNAME=0
8458
8459
8460
8461 GL_GNULIB_GETLOGIN=0
8462
8463
8464
8465 GL_GNULIB_GETLOGIN_R=0
8466
8467
8468
8469 GL_GNULIB_GETOPT_POSIX=0
8470
8471
8472
8473 GL_GNULIB_GETPAGESIZE=0
8474
8475
8476
8477 GL_GNULIB_GETPASS=0
8478
8479
8480
8481 GL_GNULIB_GETPASS_GNU=0
8482
8483
8484
8485 GL_GNULIB_GETUSERSHELL=0
8486
8487
8488
8489 GL_GNULIB_GROUP_MEMBER=0
8490
8491
8492
8493 GL_GNULIB_ISATTY=0
8494
8495
8496
8497 GL_GNULIB_LCHOWN=0
8498
8499
8500
8501 GL_GNULIB_LINK=0
8502
8503
8504
8505 GL_GNULIB_LINKAT=0
8506
8507
8508
8509 GL_GNULIB_LSEEK=0
8510
8511
8512
8513 GL_GNULIB_PIPE=0
8514
8515
8516
8517 GL_GNULIB_PIPE2=0
8518
8519
8520
8521 GL_GNULIB_PREAD=0
8522
8523
8524
8525 GL_GNULIB_PWRITE=0
8526
8527
8528
8529 GL_GNULIB_READ=0
8530
8531
8532
8533 GL_GNULIB_READLINK=0
8534
8535
8536
8537 GL_GNULIB_READLINKAT=0
8538
8539
8540
8541 GL_GNULIB_RMDIR=0
8542
8543
8544
8545 GL_GNULIB_SETHOSTNAME=0
8546
8547
8548
8549 GL_GNULIB_SLEEP=0
8550
8551
8552
8553 GL_GNULIB_SYMLINK=0
8554
8555
8556
8557 GL_GNULIB_SYMLINKAT=0
8558
8559
8560
8561 GL_GNULIB_TRUNCATE=0
8562
8563
8564
8565 GL_GNULIB_TTYNAME_R=0
8566
8567
8568
8569 GL_GNULIB_UNISTD_H_GETOPT=0
8570
8571
8572
8573 GL_GNULIB_UNISTD_H_NONBLOCKING=0
8574
8575
8576
8577 GL_GNULIB_UNISTD_H_SIGPIPE=0
8578
8579
8580
8581 GL_GNULIB_UNLINK=0
8582
8583
8584
8585 GL_GNULIB_UNLINKAT=0
8586
8587
8588
8589 GL_GNULIB_USLEEP=0
8590
8591
8592
8593 GL_GNULIB_WRITE=0
8594
8595
8596
8597 GL_GNULIB_MDA_ACCESS=1
8598
8599
8600
8601 GL_GNULIB_MDA_CHDIR=1
8602
8603
8604
8605 GL_GNULIB_MDA_CLOSE=1
8606
8607
8608
8609 GL_GNULIB_MDA_DUP=1
8610
8611
8612
8613 GL_GNULIB_MDA_DUP2=1
8614
8615
8616
8617 GL_GNULIB_MDA_EXECL=1
8618
8619
8620
8621 GL_GNULIB_MDA_EXECLE=1
8622
8623
8624
8625 GL_GNULIB_MDA_EXECLP=1
8626
8627
8628
8629 GL_GNULIB_MDA_EXECV=1
8630
8631
8632
8633 GL_GNULIB_MDA_EXECVE=1
8634
8635
8636
8637 GL_GNULIB_MDA_EXECVP=1
8638
8639
8640
8641 GL_GNULIB_MDA_EXECVPE=1
8642
8643
8644
8645 GL_GNULIB_MDA_GETCWD=1
8646
8647
8648
8649 GL_GNULIB_MDA_GETPID=1
8650
8651
8652
8653 GL_GNULIB_MDA_ISATTY=1
8654
8655
8656
8657 GL_GNULIB_MDA_LSEEK=1
8658
8659
8660
8661 GL_GNULIB_MDA_READ=1
8662
8663
8664
8665 GL_GNULIB_MDA_RMDIR=1
8666
8667
8668
8669 GL_GNULIB_MDA_SWAB=1
8670
8671
8672
8673 GL_GNULIB_MDA_UNLINK=1
8674
8675
8676
8677 GL_GNULIB_MDA_WRITE=1
8678
8679
8680
8681 gl_mda_defines='
8682 #if defined _WIN32 && !defined __CYGWIN__
8683 #define access _access
8684 #define chdir _chdir
8685 #define chmod _chmod
8686 #define close _close
8687 #define creat _creat
8688 #define dup _dup
8689 #define dup2 _dup2
8690 #define ecvt _ecvt
8691 #define execl _execl
8692 #define execle _execle
8693 #define execlp _execlp
8694 #define execv _execv
8695 #define execve _execve
8696 #define execvp _execvp
8697 #define execvpe _execvpe
8698 #define fcloseall _fcloseall
8699 #define fcvt _fcvt
8700 #define fdopen _fdopen
8701 #define fileno _fileno
8702 #define gcvt _gcvt
8703 #define getcwd _getcwd
8704 #define getpid _getpid
8705 #define getw _getw
8706 #define isatty _isatty
8707 #define j0 _j0
8708 #define j1 _j1
8709 #define jn _jn
8710 #define lfind _lfind
8711 #define lsearch _lsearch
8712 #define lseek _lseek
8713 #define memccpy _memccpy
8714 #define mkdir _mkdir
8715 #define mktemp _mktemp
8716 #define open _open
8717 #define putenv _putenv
8718 #define putw _putw
8719 #define read _read
8720 #define rmdir _rmdir
8721 #define strdup _strdup
8722 #define swab _swab
8723 #define tempnam _tempnam
8724 #define tzset _tzset
8725 #define umask _umask
8726 #define unlink _unlink
8727 #define utime _utime
8728 #define wcsdup _wcsdup
8729 #define write _write
8730 #define y0 _y0
8731 #define y1 _y1
8732 #define yn _yn
8733 #endif
8734 '
8735
8736
8737
8738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for complete errno.h" >&5
8739 printf %s "checking for complete errno.h... " >&6; }
8740 if test ${gl_cv_header_errno_h_complete+y}
8741 then :
8742 printf %s "(cached) " >&6
8743 else $as_nop
8744
8745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8746 /* end confdefs.h. */
8747
8748 #include <errno.h>
8749 #if !defined ETXTBSY
8750 booboo
8751 #endif
8752 #if !defined ENOMSG
8753 booboo
8754 #endif
8755 #if !defined EIDRM
8756 booboo
8757 #endif
8758 #if !defined ENOLINK
8759 booboo
8760 #endif
8761 #if !defined EPROTO
8762 booboo
8763 #endif
8764 #if !defined EMULTIHOP
8765 booboo
8766 #endif
8767 #if !defined EBADMSG
8768 booboo
8769 #endif
8770 #if !defined EOVERFLOW
8771 booboo
8772 #endif
8773 #if !defined ENOTSUP
8774 booboo
8775 #endif
8776 #if !defined ENETRESET
8777 booboo
8778 #endif
8779 #if !defined ECONNABORTED
8780 booboo
8781 #endif
8782 #if !defined ESTALE
8783 booboo
8784 #endif
8785 #if !defined EDQUOT
8786 booboo
8787 #endif
8788 #if !defined ECANCELED
8789 booboo
8790 #endif
8791 #if !defined EOWNERDEAD
8792 booboo
8793 #endif
8794 #if !defined ENOTRECOVERABLE
8795 booboo
8796 #endif
8797 #if !defined EILSEQ
8798 booboo
8799 #endif
8800
8801 _ACEOF
8802 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8803 $EGREP "booboo" >/dev/null 2>&1
8804 then :
8805 gl_cv_header_errno_h_complete=no
8806 else $as_nop
8807 gl_cv_header_errno_h_complete=yes
8808 fi
8809 rm -rf conftest*
8810
8811
8812 fi
8813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_complete" >&5
8814 printf "%s\n" "$gl_cv_header_errno_h_complete" >&6; }
8815 if test $gl_cv_header_errno_h_complete = yes; then
8816 GL_GENERATE_ERRNO_H=false
8817 else
8818
8819
8820
8821
8822
8823
8824
8825
8826 if test $gl_cv_have_include_next = yes; then
8827 gl_cv_next_errno_h='<'errno.h'>'
8828 else
8829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <errno.h>" >&5
8830 printf %s "checking absolute name of <errno.h>... " >&6; }
8831 if test ${gl_cv_next_errno_h+y}
8832 then :
8833 printf %s "(cached) " >&6
8834 else $as_nop
8835
8836
8837
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8839 /* end confdefs.h. */
8840 #include <errno.h>
8841 _ACEOF
8842 case "$host_os" in
8843 aix*) gl_absname_cpp="$ac_cpp -C" ;;
8844 *) gl_absname_cpp="$ac_cpp" ;;
8845 esac
8846
8847 case "$host_os" in
8848 mingw* | windows*)
8849 gl_dirsep_regex='[/\\]'
8850 ;;
8851 *)
8852 gl_dirsep_regex='\/'
8853 ;;
8854 esac
8855 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
8856 gl_header_literal_regex=`echo 'errno.h' \
8857 | sed -e "$gl_make_literal_regex_sed"`
8858 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
8859 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
8860 s|^/[^/]|//&|
8861 p
8862 q
8863 }'
8864
8865 gl_cv_absolute_errno_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
8866 sed -n "$gl_absolute_header_sed"`
8867
8868 gl_header=$gl_cv_absolute_errno_h
8869 gl_cv_next_errno_h='"'$gl_header'"'
8870
8871
8872 fi
8873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_errno_h" >&5
8874 printf "%s\n" "$gl_cv_next_errno_h" >&6; }
8875 fi
8876 NEXT_ERRNO_H=$gl_cv_next_errno_h
8877
8878 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
8879 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
8880 gl_next_as_first_directive='<'errno.h'>'
8881 else
8882 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
8883 gl_next_as_first_directive=$gl_cv_next_errno_h
8884 fi
8885 NEXT_AS_FIRST_DIRECTIVE_ERRNO_H=$gl_next_as_first_directive
8886
8887
8888
8889
8890 GL_GENERATE_ERRNO_H=true
8891 fi
8892
8893 if $GL_GENERATE_ERRNO_H; then
8894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EMULTIHOP value" >&5
8895 printf %s "checking for EMULTIHOP value... " >&6; }
8896 if test ${gl_cv_header_errno_h_EMULTIHOP+y}
8897 then :
8898 printf %s "(cached) " >&6
8899 else $as_nop
8900
8901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8902 /* end confdefs.h. */
8903
8904 #include <errno.h>
8905 #ifdef EMULTIHOP
8906 yes
8907 #endif
8908
8909 _ACEOF
8910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8911 $EGREP "yes" >/dev/null 2>&1
8912 then :
8913 gl_cv_header_errno_h_EMULTIHOP=yes
8914 else $as_nop
8915 gl_cv_header_errno_h_EMULTIHOP=no
8916 fi
8917 rm -rf conftest*
8918
8919 if test $gl_cv_header_errno_h_EMULTIHOP = no; then
8920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8921 /* end confdefs.h. */
8922
8923 #define _XOPEN_SOURCE_EXTENDED 1
8924 #include <errno.h>
8925 #ifdef EMULTIHOP
8926 yes
8927 #endif
8928
8929 _ACEOF
8930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8931 $EGREP "yes" >/dev/null 2>&1
8932 then :
8933 gl_cv_header_errno_h_EMULTIHOP=hidden
8934 fi
8935 rm -rf conftest*
8936
8937 if test $gl_cv_header_errno_h_EMULTIHOP = hidden; then
8938 if ac_fn_c_compute_int "$LINENO" "EMULTIHOP" "gl_cv_header_errno_h_EMULTIHOP" "
8939 #define _XOPEN_SOURCE_EXTENDED 1
8940 #include <errno.h>
8941 /* The following two lines are a workaround against an autoconf-2.52 bug. */
8942 #include <stdio.h>
8943 #include <stdlib.h>
8944 "
8945 then :
8946
8947 fi
8948
8949 fi
8950 fi
8951
8952 fi
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EMULTIHOP" >&5
8954 printf "%s\n" "$gl_cv_header_errno_h_EMULTIHOP" >&6; }
8955 case $gl_cv_header_errno_h_EMULTIHOP in
8956 yes | no)
8957 EMULTIHOP_HIDDEN=0; EMULTIHOP_VALUE=
8958 ;;
8959 *)
8960 EMULTIHOP_HIDDEN=1; EMULTIHOP_VALUE="$gl_cv_header_errno_h_EMULTIHOP"
8961 ;;
8962 esac
8963
8964
8965 fi
8966
8967
8968 if $GL_GENERATE_ERRNO_H; then
8969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ENOLINK value" >&5
8970 printf %s "checking for ENOLINK value... " >&6; }
8971 if test ${gl_cv_header_errno_h_ENOLINK+y}
8972 then :
8973 printf %s "(cached) " >&6
8974 else $as_nop
8975
8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8977 /* end confdefs.h. */
8978
8979 #include <errno.h>
8980 #ifdef ENOLINK
8981 yes
8982 #endif
8983
8984 _ACEOF
8985 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8986 $EGREP "yes" >/dev/null 2>&1
8987 then :
8988 gl_cv_header_errno_h_ENOLINK=yes
8989 else $as_nop
8990 gl_cv_header_errno_h_ENOLINK=no
8991 fi
8992 rm -rf conftest*
8993
8994 if test $gl_cv_header_errno_h_ENOLINK = no; then
8995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8996 /* end confdefs.h. */
8997
8998 #define _XOPEN_SOURCE_EXTENDED 1
8999 #include <errno.h>
9000 #ifdef ENOLINK
9001 yes
9002 #endif
9003
9004 _ACEOF
9005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9006 $EGREP "yes" >/dev/null 2>&1
9007 then :
9008 gl_cv_header_errno_h_ENOLINK=hidden
9009 fi
9010 rm -rf conftest*
9011
9012 if test $gl_cv_header_errno_h_ENOLINK = hidden; then
9013 if ac_fn_c_compute_int "$LINENO" "ENOLINK" "gl_cv_header_errno_h_ENOLINK" "
9014 #define _XOPEN_SOURCE_EXTENDED 1
9015 #include <errno.h>
9016 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9017 #include <stdio.h>
9018 #include <stdlib.h>
9019 "
9020 then :
9021
9022 fi
9023
9024 fi
9025 fi
9026
9027 fi
9028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_ENOLINK" >&5
9029 printf "%s\n" "$gl_cv_header_errno_h_ENOLINK" >&6; }
9030 case $gl_cv_header_errno_h_ENOLINK in
9031 yes | no)
9032 ENOLINK_HIDDEN=0; ENOLINK_VALUE=
9033 ;;
9034 *)
9035 ENOLINK_HIDDEN=1; ENOLINK_VALUE="$gl_cv_header_errno_h_ENOLINK"
9036 ;;
9037 esac
9038
9039
9040 fi
9041
9042
9043 if $GL_GENERATE_ERRNO_H; then
9044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for EOVERFLOW value" >&5
9045 printf %s "checking for EOVERFLOW value... " >&6; }
9046 if test ${gl_cv_header_errno_h_EOVERFLOW+y}
9047 then :
9048 printf %s "(cached) " >&6
9049 else $as_nop
9050
9051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9052 /* end confdefs.h. */
9053
9054 #include <errno.h>
9055 #ifdef EOVERFLOW
9056 yes
9057 #endif
9058
9059 _ACEOF
9060 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9061 $EGREP "yes" >/dev/null 2>&1
9062 then :
9063 gl_cv_header_errno_h_EOVERFLOW=yes
9064 else $as_nop
9065 gl_cv_header_errno_h_EOVERFLOW=no
9066 fi
9067 rm -rf conftest*
9068
9069 if test $gl_cv_header_errno_h_EOVERFLOW = no; then
9070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9071 /* end confdefs.h. */
9072
9073 #define _XOPEN_SOURCE_EXTENDED 1
9074 #include <errno.h>
9075 #ifdef EOVERFLOW
9076 yes
9077 #endif
9078
9079 _ACEOF
9080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9081 $EGREP "yes" >/dev/null 2>&1
9082 then :
9083 gl_cv_header_errno_h_EOVERFLOW=hidden
9084 fi
9085 rm -rf conftest*
9086
9087 if test $gl_cv_header_errno_h_EOVERFLOW = hidden; then
9088 if ac_fn_c_compute_int "$LINENO" "EOVERFLOW" "gl_cv_header_errno_h_EOVERFLOW" "
9089 #define _XOPEN_SOURCE_EXTENDED 1
9090 #include <errno.h>
9091 /* The following two lines are a workaround against an autoconf-2.52 bug. */
9092 #include <stdio.h>
9093 #include <stdlib.h>
9094 "
9095 then :
9096
9097 fi
9098
9099 fi
9100 fi
9101
9102 fi
9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_errno_h_EOVERFLOW" >&5
9104 printf "%s\n" "$gl_cv_header_errno_h_EOVERFLOW" >&6; }
9105 case $gl_cv_header_errno_h_EOVERFLOW in
9106 yes | no)
9107 EOVERFLOW_HIDDEN=0; EOVERFLOW_VALUE=
9108 ;;
9109 *)
9110 EOVERFLOW_HIDDEN=1; EOVERFLOW_VALUE="$gl_cv_header_errno_h_EOVERFLOW"
9111 ;;
9112 esac
9113
9114
9115 fi
9116
9117
9118
9119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
9120 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
9121 if test ${ac_cv_c_undeclared_builtin_options+y}
9122 then :
9123 printf %s "(cached) " >&6
9124 else $as_nop
9125 ac_save_CFLAGS=$CFLAGS
9126 ac_cv_c_undeclared_builtin_options='cannot detect'
9127 for ac_arg in '' -fno-builtin; do
9128 CFLAGS="$ac_save_CFLAGS $ac_arg"
9129 # This test program should *not* compile successfully.
9130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9131 /* end confdefs.h. */
9132
9133 int
9134 main (void)
9135 {
9136 (void) strchr;
9137 ;
9138 return 0;
9139 }
9140 _ACEOF
9141 if ac_fn_c_try_compile "$LINENO"
9142 then :
9143
9144 else $as_nop
9145 # This test program should compile successfully.
9146 # No library function is consistently available on
9147 # freestanding implementations, so test against a dummy
9148 # declaration. Include always-available headers on the
9149 # off chance that they somehow elicit warnings.
9150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9151 /* end confdefs.h. */
9152 #include <float.h>
9153 #include <limits.h>
9154 #include <stdarg.h>
9155 #include <stddef.h>
9156 extern void ac_decl (int, char *);
9157
9158 int
9159 main (void)
9160 {
9161 (void) ac_decl (0, (char *) 0);
9162 (void) ac_decl;
9163
9164 ;
9165 return 0;
9166 }
9167 _ACEOF
9168 if ac_fn_c_try_compile "$LINENO"
9169 then :
9170 if test x"$ac_arg" = x
9171 then :
9172 ac_cv_c_undeclared_builtin_options='none needed'
9173 else $as_nop
9174 ac_cv_c_undeclared_builtin_options=$ac_arg
9175 fi
9176 break
9177 fi
9178 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9179 fi
9180 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9181 done
9182 CFLAGS=$ac_save_CFLAGS
9183
9184 fi
9185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
9186 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
9187 case $ac_cv_c_undeclared_builtin_options in #(
9188 'cannot detect') :
9189 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9190 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
9191 as_fn_error $? "cannot make $CC report undeclared builtins
9192 See \`config.log' for more details" "$LINENO" 5; } ;; #(
9193 'none needed') :
9194 ac_c_undeclared_builtin_options='' ;; #(
9195 *) :
9196 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
9197 esac
9198
9199
9200
9201
9202
9203
9204
9205
9206
9207
9208
9209
9210 if test $gl_cv_have_include_next = yes; then
9211 gl_cv_next_error_h='<'error.h'>'
9212 else
9213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <error.h>" >&5
9214 printf %s "checking absolute name of <error.h>... " >&6; }
9215 if test ${gl_cv_next_error_h+y}
9216 then :
9217 printf %s "(cached) " >&6
9218 else $as_nop
9219
9220 if test $ac_cv_header_error_h = yes; then
9221
9222
9223
9224
9225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9226 /* end confdefs.h. */
9227 #include <error.h>
9228 _ACEOF
9229 case "$host_os" in
9230 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9231 *) gl_absname_cpp="$ac_cpp" ;;
9232 esac
9233
9234 case "$host_os" in
9235 mingw* | windows*)
9236 gl_dirsep_regex='[/\\]'
9237 ;;
9238 *)
9239 gl_dirsep_regex='\/'
9240 ;;
9241 esac
9242 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9243 gl_header_literal_regex=`echo 'error.h' \
9244 | sed -e "$gl_make_literal_regex_sed"`
9245 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9246 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9247 s|^/[^/]|//&|
9248 p
9249 q
9250 }'
9251
9252 gl_cv_absolute_error_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9253 sed -n "$gl_absolute_header_sed"`
9254
9255 gl_header=$gl_cv_absolute_error_h
9256 gl_cv_next_error_h='"'$gl_header'"'
9257 else
9258 gl_cv_next_error_h='<'error.h'>'
9259 fi
9260
9261
9262 fi
9263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_error_h" >&5
9264 printf "%s\n" "$gl_cv_next_error_h" >&6; }
9265 fi
9266 NEXT_ERROR_H=$gl_cv_next_error_h
9267
9268 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9269 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9270 gl_next_as_first_directive='<'error.h'>'
9271 else
9272 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9273 gl_next_as_first_directive=$gl_cv_next_error_h
9274 fi
9275 NEXT_AS_FIRST_DIRECTIVE_ERROR_H=$gl_next_as_first_directive
9276
9277
9278
9279
9280 if test $ac_cv_header_error_h = yes; then
9281 HAVE_ERROR_H=1
9282 else
9283 HAVE_ERROR_H=0
9284 fi
9285
9286
9287 REPLACE_ERROR=0
9288
9289
9290
9291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error" >&5
9292 printf %s "checking for error... " >&6; }
9293 if test ${gl_cv_onwards_func_error+y}
9294 then :
9295 printf %s "(cached) " >&6
9296 else $as_nop
9297
9298 exec 9>&6 6>/dev/null
9299
9300 case "$host_os" in
9301
9302 linux*-android*)
9303 ac_fn_check_decl "$LINENO" "error" "ac_cv_have_decl_error" "#include <error.h>
9304 " "$ac_c_undeclared_builtin_options" "CFLAGS"
9305 if test "x$ac_cv_have_decl_error" = xyes
9306 then :
9307
9308 fi
9309 if test $ac_cv_have_decl_error = yes; then
9310 ac_fn_c_check_func "$LINENO" "error" "ac_cv_func_error"
9311 if test "x$ac_cv_func_error" = xyes
9312 then :
9313
9314 fi
9315
9316 if test $ac_cv_func_error = yes; then
9317 gl_cv_onwards_func_error=yes
9318 else
9319 gl_cv_onwards_func_error='future OS version'
9320 fi
9321 else
9322 gl_cv_onwards_func_error='future OS version'
9323 fi
9324 ;;
9325
9326
9327 *)
9328 ac_fn_c_check_func "$LINENO" "error" "ac_cv_func_error"
9329 if test "x$ac_cv_func_error" = xyes
9330 then :
9331
9332 fi
9333
9334 gl_cv_onwards_func_error=$ac_cv_func_error
9335 ;;
9336
9337 esac
9338
9339 exec 6>&9 9>&-
9340
9341
9342 fi
9343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_error" >&5
9344 printf "%s\n" "$gl_cv_onwards_func_error" >&6; }
9345
9346 case "$gl_cv_onwards_func_error" in
9347 future*) ac_cv_func_error=no ;;
9348 *) ac_cv_func_error=$gl_cv_onwards_func_error ;;
9349 esac
9350 if test $ac_cv_func_error = yes; then
9351
9352 printf "%s\n" "#define HAVE_ERROR 1" >>confdefs.h
9353
9354 fi
9355
9356
9357 if test $ac_cv_func_error = yes; then
9358 HAVE_ERROR=1
9359 else
9360 HAVE_ERROR=0
9361 case "$gl_cv_onwards_func_error" in
9362 future*) REPLACE_ERROR=1 ;;
9363 esac
9364 fi
9365
9366 ac_fn_check_decl "$LINENO" "error_at_line" "ac_cv_have_decl_error_at_line" "#include <error.h>
9367 " "$ac_c_undeclared_builtin_options" "CFLAGS"
9368 if test "x$ac_cv_have_decl_error_at_line" = xyes
9369 then :
9370
9371 fi
9372 if test $ac_cv_have_decl_error_at_line = yes; then
9373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
9374 printf %s "checking for error_at_line... " >&6; }
9375 if test ${ac_cv_lib_error_at_line+y}
9376 then :
9377 printf %s "(cached) " >&6
9378 else $as_nop
9379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9380 /* end confdefs.h. */
9381 #include <error.h>
9382 int
9383 main (void)
9384 {
9385 error_at_line (0, 0, "", 0, "an error occurred");
9386 ;
9387 return 0;
9388 }
9389 _ACEOF
9390 if ac_fn_c_try_link "$LINENO"
9391 then :
9392 ac_cv_lib_error_at_line=yes
9393 else $as_nop
9394 ac_cv_lib_error_at_line=no
9395 fi
9396 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9397 conftest$ac_exeext conftest.$ac_ext
9398 fi
9399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
9400 printf "%s\n" "$ac_cv_lib_error_at_line" >&6; }
9401 else
9402 ac_cv_lib_error_at_line=no
9403 fi
9404 if test $ac_cv_lib_error_at_line = yes; then
9405 HAVE_ERROR_AT_LINE=1
9406 else
9407 HAVE_ERROR_AT_LINE=0
9408 fi
9409 REPLACE_ERROR_AT_LINE=0
9410
9411 if test $ac_cv_func_error = yes && test $ac_cv_lib_error_at_line = yes; then
9412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working error function" >&5
9413 printf %s "checking for working error function... " >&6; }
9414 if test ${gl_cv_func_working_error+y}
9415 then :
9416 printf %s "(cached) " >&6
9417 else $as_nop
9418 if test $cross_compiling != yes; then
9419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9420 /* end confdefs.h. */
9421
9422 #include <error.h>
9423 static void print_no_progname (void) {}
9424
9425 int
9426 main (void)
9427 {
9428
9429 error_print_progname = print_no_progname;
9430 error (0, 0, "foo");
9431
9432 ;
9433 return 0;
9434 }
9435
9436 _ACEOF
9437 if ac_fn_c_try_link "$LINENO"
9438 then :
9439 rm -f conftest.out
9440 if test -s conftest$ac_exeext \
9441 && ./conftest$ac_exeext 2> conftest.out; then
9442 if grep ' ' conftest.out >/dev/null; then
9443 gl_cv_func_working_error=no
9444 else
9445 gl_cv_func_working_error=yes
9446 fi
9447 else
9448 gl_cv_func_working_error=no
9449 fi
9450 rm -f conftest.out
9451
9452 else $as_nop
9453 gl_cv_func_working_error=no
9454 fi
9455 rm -f core conftest.err conftest.$ac_objext conftest.beam \
9456 conftest$ac_exeext conftest.$ac_ext
9457 else
9458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9459 /* end confdefs.h. */
9460
9461 #include <error.h>
9462
9463 int
9464 main (void)
9465 {
9466
9467 error (0, 0, "foo");
9468
9469 ;
9470 return 0;
9471 }
9472
9473 _ACEOF
9474 if ac_fn_c_try_compile "$LINENO"
9475 then :
9476 case "$host_os" in
9477 # Guess yes on glibc systems.
9478 *-gnu* | gnu*) gl_cv_func_working_error="guessing yes" ;;
9479 # Guess no on Android.
9480 linux*-android*) gl_cv_func_working_error="guessing no" ;;
9481 # If we don't know, obey --enable-cross-guesses.
9482 *) gl_cv_func_working_error="$gl_cross_guess_normal" ;;
9483 esac
9484
9485 else $as_nop
9486 gl_cv_func_working_error=no
9487 fi
9488 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9489 fi
9490
9491 fi
9492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_error" >&5
9493 printf "%s\n" "$gl_cv_func_working_error" >&6; }
9494 case "$gl_cv_func_working_error" in
9495 *no)
9496 REPLACE_ERROR=1
9497 REPLACE_ERROR_AT_LINE=1
9498 ;;
9499 esac
9500 fi
9501
9502 if test $HAVE_ERROR = 0 || test $REPLACE_ERROR = 1 \
9503 || test $HAVE_ERROR_AT_LINE = 0 || test $REPLACE_ERROR_AT_LINE = 1; then
9504 COMPILE_ERROR_C=1
9505 else
9506 COMPILE_ERROR_C=0
9507 fi
9508
9509
9510
9511
9512
9513
9514 ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
9515 if test "x$ac_cv_have_decl_strerror_r" = xyes
9516 then :
9517 ac_have_decl=1
9518 else $as_nop
9519 ac_have_decl=0
9520 fi
9521 printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h
9522
9523
9524 if test $ac_cv_have_decl_strerror_r = yes; then
9525 # For backward compatibility's sake, define HAVE_STRERROR_R.
9526 # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well
9527 # as AC_CHECK_DECLS_ONCE.)
9528
9529 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
9530
9531 fi
9532
9533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
9534 printf %s "checking whether strerror_r returns char *... " >&6; }
9535 if test ${ac_cv_func_strerror_r_char_p+y}
9536 then :
9537 printf %s "(cached) " >&6
9538 else $as_nop
9539
9540 ac_cv_func_strerror_r_char_p=no
9541 if test $ac_cv_have_decl_strerror_r = yes; then
9542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9544 #include <string.h>
9545 int
9546 main (void)
9547 {
9548
9549 char buf[100];
9550 char x = *strerror_r (0, buf, sizeof buf);
9551 char *p = strerror_r (0, buf, sizeof buf);
9552 return !p || x;
9553
9554 ;
9555 return 0;
9556 }
9557 _ACEOF
9558 if ac_fn_c_try_compile "$LINENO"
9559 then :
9560 ac_cv_func_strerror_r_char_p=yes
9561 fi
9562 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9563
9564 fi
9565
9566 fi
9567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
9568 printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; }
9569 if test $ac_cv_func_strerror_r_char_p = yes; then
9570
9571 printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h
9572
9573 fi
9574
9575
9576 XGETTEXT_EXTRA_OPTIONS=
9577
9578
9579
9580
9581
9582 HAVE_FCNTL=1;
9583 HAVE_OPENAT=1;
9584 REPLACE_CREAT=0;
9585 REPLACE_FCNTL=0;
9586 REPLACE_OPEN=0;
9587 REPLACE_OPENAT=0;
9588
9589
9590
9591
9592 GL_GNULIB_CREAT=0
9593
9594
9595
9596 GL_GNULIB_FCNTL=0
9597
9598
9599
9600 GL_GNULIB_NONBLOCKING=0
9601
9602
9603
9604 GL_GNULIB_OPEN=0
9605
9606
9607
9608 GL_GNULIB_OPENAT=0
9609
9610
9611
9612 GL_GNULIB_MDA_CREAT=1
9613
9614
9615
9616 GL_GNULIB_MDA_OPEN=1
9617
9618
9619
9620
9621
9622
9623
9624
9625
9626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5
9627 printf %s "checking for working fcntl.h... " >&6; }
9628 if test ${gl_cv_header_working_fcntl_h+y}
9629 then :
9630 printf %s "(cached) " >&6
9631 else $as_nop
9632 if test "$cross_compiling" = yes
9633 then :
9634 case "$host_os" in
9635 # Guess 'no' on native Windows.
9636 mingw* | windows*) gl_cv_header_working_fcntl_h='no' ;;
9637 *) gl_cv_header_working_fcntl_h=cross-compiling ;;
9638 esac
9639
9640 else $as_nop
9641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9642 /* end confdefs.h. */
9643 #include <sys/types.h>
9644 #include <sys/stat.h>
9645 #if HAVE_UNISTD_H
9646 # include <unistd.h>
9647 #else /* on Windows with MSVC */
9648 # include <io.h>
9649 # include <stdlib.h>
9650 # defined sleep(n) _sleep ((n) * 1000)
9651 #endif
9652 #include <fcntl.h>
9653
9654
9655 $gl_mda_defines
9656
9657 #ifndef O_NOATIME
9658 #define O_NOATIME 0
9659 #endif
9660 #ifndef O_NOFOLLOW
9661 #define O_NOFOLLOW 0
9662 #endif
9663 static int const constants[] =
9664 {
9665 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND,
9666 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY
9667 };
9668
9669 int
9670 main (void)
9671 {
9672
9673 int result = !constants;
9674 #if HAVE_SYMLINK
9675 {
9676 static char const sym[] = "conftest.sym";
9677 if (symlink ("/dev/null", sym) != 0)
9678 result |= 2;
9679 else
9680 {
9681 int fd = open (sym, O_WRONLY | O_NOFOLLOW | O_CREAT, 0);
9682 if (fd >= 0)
9683 {
9684 close (fd);
9685 result |= 4;
9686 }
9687 }
9688 if (unlink (sym) != 0 || symlink (".", sym) != 0)
9689 result |= 2;
9690 else
9691 {
9692 int fd = open (sym, O_RDONLY | O_NOFOLLOW);
9693 if (fd >= 0)
9694 {
9695 close (fd);
9696 result |= 4;
9697 }
9698 }
9699 unlink (sym);
9700 }
9701 #endif
9702 {
9703 static char const file[] = "confdefs.h";
9704 int fd = open (file, O_RDONLY | O_NOATIME);
9705 if (fd < 0)
9706 result |= 8;
9707 else
9708 {
9709 struct stat st0;
9710 if (fstat (fd, &st0) != 0)
9711 result |= 16;
9712 else
9713 {
9714 char c;
9715 sleep (1);
9716 if (read (fd, &c, 1) != 1)
9717 result |= 24;
9718 else
9719 {
9720 if (close (fd) != 0)
9721 result |= 32;
9722 else
9723 {
9724 struct stat st1;
9725 if (stat (file, &st1) != 0)
9726 result |= 40;
9727 else
9728 if (st0.st_atime != st1.st_atime)
9729 result |= 64;
9730 }
9731 }
9732 }
9733 }
9734 }
9735 return result;
9736 ;
9737 return 0;
9738 }
9739 _ACEOF
9740 if ac_fn_c_try_run "$LINENO"
9741 then :
9742 gl_cv_header_working_fcntl_h=yes
9743 else $as_nop
9744 case $? in #(
9745 4) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #(
9746 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #(
9747 68) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #(
9748 *) gl_cv_header_working_fcntl_h='no';;
9749 esac
9750 fi
9751 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9752 conftest.$ac_objext conftest.beam conftest.$ac_ext
9753 fi
9754
9755
9756 fi
9757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5
9758 printf "%s\n" "$gl_cv_header_working_fcntl_h" >&6; }
9759
9760 case $gl_cv_header_working_fcntl_h in #(
9761 *O_NOATIME* | no | cross-compiling) ac_val=0;; #(
9762 *) ac_val=1;;
9763 esac
9764
9765 printf "%s\n" "#define HAVE_WORKING_O_NOATIME $ac_val" >>confdefs.h
9766
9767
9768 case $gl_cv_header_working_fcntl_h in #(
9769 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #(
9770 *) ac_val=1;;
9771 esac
9772
9773 printf "%s\n" "#define HAVE_WORKING_O_NOFOLLOW $ac_val" >>confdefs.h
9774
9775
9776
9777 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default
9778 "
9779 if test "x$ac_cv_type_pid_t" = xyes
9780 then :
9781
9782 else $as_nop
9783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9784 /* end confdefs.h. */
9785
9786 #if defined _WIN64 && !defined __CYGWIN__
9787 LLP64
9788 #endif
9789
9790 int
9791 main (void)
9792 {
9793
9794 ;
9795 return 0;
9796 }
9797
9798 _ACEOF
9799 if ac_fn_c_try_compile "$LINENO"
9800 then :
9801 ac_pid_type='int'
9802 else $as_nop
9803 ac_pid_type='__int64'
9804 fi
9805 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9806
9807 printf "%s\n" "#define pid_t $ac_pid_type" >>confdefs.h
9808
9809
9810 fi
9811
9812
9813 ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
9814 if test "x$ac_cv_type_mode_t" = xyes
9815 then :
9816
9817 else $as_nop
9818
9819 printf "%s\n" "#define mode_t int" >>confdefs.h
9820
9821 fi
9822
9823
9824
9825
9826
9827
9828
9829
9830
9831
9832
9833
9834 if test $gl_cv_have_include_next = yes; then
9835 gl_cv_next_fcntl_h='<'fcntl.h'>'
9836 else
9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <fcntl.h>" >&5
9838 printf %s "checking absolute name of <fcntl.h>... " >&6; }
9839 if test ${gl_cv_next_fcntl_h+y}
9840 then :
9841 printf %s "(cached) " >&6
9842 else $as_nop
9843
9844
9845
9846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9847 /* end confdefs.h. */
9848 #include <fcntl.h>
9849 _ACEOF
9850 case "$host_os" in
9851 aix*) gl_absname_cpp="$ac_cpp -C" ;;
9852 *) gl_absname_cpp="$ac_cpp" ;;
9853 esac
9854
9855 case "$host_os" in
9856 mingw* | windows*)
9857 gl_dirsep_regex='[/\\]'
9858 ;;
9859 *)
9860 gl_dirsep_regex='\/'
9861 ;;
9862 esac
9863 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
9864 gl_header_literal_regex=`echo 'fcntl.h' \
9865 | sed -e "$gl_make_literal_regex_sed"`
9866 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
9867 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
9868 s|^/[^/]|//&|
9869 p
9870 q
9871 }'
9872
9873 gl_cv_absolute_fcntl_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
9874 sed -n "$gl_absolute_header_sed"`
9875
9876 gl_header=$gl_cv_absolute_fcntl_h
9877 gl_cv_next_fcntl_h='"'$gl_header'"'
9878
9879
9880 fi
9881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_fcntl_h" >&5
9882 printf "%s\n" "$gl_cv_next_fcntl_h" >&6; }
9883 fi
9884 NEXT_FCNTL_H=$gl_cv_next_fcntl_h
9885
9886 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
9887 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
9888 gl_next_as_first_directive='<'fcntl.h'>'
9889 else
9890 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
9891 gl_next_as_first_directive=$gl_cv_next_fcntl_h
9892 fi
9893 NEXT_AS_FIRST_DIRECTIVE_FCNTL_H=$gl_next_as_first_directive
9894
9895
9896
9897
9898
9899
9900
9901
9902
9903
9904
9905
9906
9907
9908 HAVE_FCHMODAT=1;
9909 HAVE_FSTATAT=1;
9910 HAVE_FUTIMENS=1;
9911 HAVE_GETUMASK=1;
9912 HAVE_LCHMOD=1;
9913 HAVE_LSTAT=1;
9914 HAVE_MKDIRAT=1;
9915 HAVE_MKFIFO=1;
9916 HAVE_MKFIFOAT=1;
9917 HAVE_MKNOD=1;
9918 HAVE_MKNODAT=1;
9919 HAVE_UTIMENSAT=1;
9920 REPLACE_CHMOD=0;
9921 REPLACE_FCHMODAT=0;
9922 REPLACE_FSTAT=0;
9923 REPLACE_FSTATAT=0;
9924 REPLACE_FUTIMENS=0;
9925 REPLACE_LSTAT=0;
9926 REPLACE_MKDIR=0;
9927 REPLACE_MKFIFO=0;
9928 REPLACE_MKFIFOAT=0;
9929 REPLACE_MKNOD=0;
9930 REPLACE_MKNODAT=0;
9931 REPLACE_STAT=0;
9932 REPLACE_UTIMENSAT=0;
9933
9934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
9935 printf %s "checking whether stat file-mode macros are broken... " >&6; }
9936 if test ${ac_cv_header_stat_broken+y}
9937 then :
9938 printf %s "(cached) " >&6
9939 else $as_nop
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 #include <sys/types.h>
9943 #include <sys/stat.h>
9944
9945 #if defined S_ISBLK && defined S_IFDIR
9946 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
9947 #endif
9948
9949 #if defined S_ISBLK && defined S_IFCHR
9950 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
9951 #endif
9952
9953 #if defined S_ISLNK && defined S_IFREG
9954 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
9955 #endif
9956
9957 #if defined S_ISSOCK && defined S_IFREG
9958 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
9959 #endif
9960
9961 _ACEOF
9962 if ac_fn_c_try_compile "$LINENO"
9963 then :
9964 ac_cv_header_stat_broken=no
9965 else $as_nop
9966 ac_cv_header_stat_broken=yes
9967 fi
9968 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9969 fi
9970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
9971 printf "%s\n" "$ac_cv_header_stat_broken" >&6; }
9972 if test $ac_cv_header_stat_broken = yes; then
9973
9974 printf "%s\n" "#define STAT_MACROS_BROKEN 1" >>confdefs.h
9975
9976 fi
9977
9978
9979
9980 case "$host_os" in
9981 mingw* | windows*)
9982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit off_t" >&5
9983 printf %s "checking for 64-bit off_t... " >&6; }
9984 if test ${gl_cv_type_off_t_64+y}
9985 then :
9986 printf %s "(cached) " >&6
9987 else $as_nop
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9990 #include <sys/types.h>
9991 int verify_off_t_size[sizeof (off_t) >= 8 ? 1 : -1];
9992
9993 int
9994 main (void)
9995 {
9996
9997 ;
9998 return 0;
9999 }
10000 _ACEOF
10001 if ac_fn_c_try_compile "$LINENO"
10002 then :
10003 gl_cv_type_off_t_64=yes
10004 else $as_nop
10005 gl_cv_type_off_t_64=no
10006 fi
10007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10008
10009 fi
10010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_off_t_64" >&5
10011 printf "%s\n" "$gl_cv_type_off_t_64" >&6; }
10012 if test $gl_cv_type_off_t_64 = no; then
10013 WINDOWS_64_BIT_OFF_T=1
10014 else
10015 WINDOWS_64_BIT_OFF_T=0
10016 fi
10017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit st_size" >&5
10018 printf %s "checking for 64-bit st_size... " >&6; }
10019 if test ${gl_cv_member_st_size_64+y}
10020 then :
10021 printf %s "(cached) " >&6
10022 else $as_nop
10023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10024 /* end confdefs.h. */
10025 #include <sys/types.h>
10026 struct stat buf;
10027 int verify_st_size_size[sizeof (buf.st_size) >= 8 ? 1 : -1];
10028
10029 int
10030 main (void)
10031 {
10032
10033 ;
10034 return 0;
10035 }
10036 _ACEOF
10037 if ac_fn_c_try_compile "$LINENO"
10038 then :
10039 gl_cv_member_st_size_64=yes
10040 else $as_nop
10041 gl_cv_member_st_size_64=no
10042 fi
10043 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10044
10045 fi
10046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_member_st_size_64" >&5
10047 printf "%s\n" "$gl_cv_member_st_size_64" >&6; }
10048 if test $gl_cv_member_st_size_64 = no; then
10049 WINDOWS_64_BIT_ST_SIZE=1
10050 else
10051 WINDOWS_64_BIT_ST_SIZE=0
10052 fi
10053 ;;
10054 *)
10055 WINDOWS_64_BIT_OFF_T=0
10056 WINDOWS_64_BIT_ST_SIZE=0
10057 ;;
10058 esac
10059
10060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
10061 printf %s "checking for C/C++ restrict keyword... " >&6; }
10062 if test ${ac_cv_c_restrict+y}
10063 then :
10064 printf %s "(cached) " >&6
10065 else $as_nop
10066 ac_cv_c_restrict=no
10067 # Put '__restrict__' first, to avoid problems with glibc and non-GCC; see:
10068 # https://lists.gnu.org/archive/html/bug-autoconf/2016-02/msg00006.html
10069 # Put 'restrict' last, because C++ lacks it.
10070 for ac_kw in __restrict__ __restrict _Restrict restrict; do
10071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10072 /* end confdefs.h. */
10073 typedef int *int_ptr;
10074 int foo (int_ptr $ac_kw ip) { return ip[0]; }
10075 int bar (int [$ac_kw]); /* Catch GCC bug 14050. */
10076 int bar (int ip[$ac_kw]) { return ip[0]; }
10077
10078 int
10079 main (void)
10080 {
10081 int s[1];
10082 int *$ac_kw t = s;
10083 t[0] = 0;
10084 return foo (t) + bar (t);
10085
10086 ;
10087 return 0;
10088 }
10089 _ACEOF
10090 if ac_fn_c_try_compile "$LINENO"
10091 then :
10092 ac_cv_c_restrict=$ac_kw
10093 fi
10094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10095 test "$ac_cv_c_restrict" != no && break
10096 done
10097
10098 fi
10099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
10100 printf "%s\n" "$ac_cv_c_restrict" >&6; }
10101
10102 case $ac_cv_c_restrict in
10103 restrict) ;;
10104 no) printf "%s\n" "#define restrict /**/" >>confdefs.h
10105 ;;
10106 *) printf "%s\n" "#define restrict $ac_cv_c_restrict" >>confdefs.h
10107 ;;
10108 esac
10109
10110
10111
10112
10113
10114
10115
10116
10117
10118
10119
10120
10121
10122
10123
10124 if test $gl_cv_have_include_next = yes; then
10125 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
10126 else
10127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/stat.h>" >&5
10128 printf %s "checking absolute name of <sys/stat.h>... " >&6; }
10129 if test ${gl_cv_next_sys_stat_h+y}
10130 then :
10131 printf %s "(cached) " >&6
10132 else $as_nop
10133
10134 if test $ac_cv_header_sys_stat_h = yes; then
10135
10136
10137
10138
10139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10140 /* end confdefs.h. */
10141 #include <sys/stat.h>
10142 _ACEOF
10143 case "$host_os" in
10144 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10145 *) gl_absname_cpp="$ac_cpp" ;;
10146 esac
10147
10148 case "$host_os" in
10149 mingw* | windows*)
10150 gl_dirsep_regex='[/\\]'
10151 ;;
10152 *)
10153 gl_dirsep_regex='\/'
10154 ;;
10155 esac
10156 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10157 gl_header_literal_regex=`echo 'sys/stat.h' \
10158 | sed -e "$gl_make_literal_regex_sed"`
10159 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10160 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10161 s|^/[^/]|//&|
10162 p
10163 q
10164 }'
10165
10166 gl_cv_absolute_sys_stat_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10167 sed -n "$gl_absolute_header_sed"`
10168
10169 gl_header=$gl_cv_absolute_sys_stat_h
10170 gl_cv_next_sys_stat_h='"'$gl_header'"'
10171 else
10172 gl_cv_next_sys_stat_h='<'sys/stat.h'>'
10173 fi
10174
10175
10176 fi
10177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_stat_h" >&5
10178 printf "%s\n" "$gl_cv_next_sys_stat_h" >&6; }
10179 fi
10180 NEXT_SYS_STAT_H=$gl_cv_next_sys_stat_h
10181
10182 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10183 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10184 gl_next_as_first_directive='<'sys/stat.h'>'
10185 else
10186 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10187 gl_next_as_first_directive=$gl_cv_next_sys_stat_h
10188 fi
10189 NEXT_AS_FIRST_DIRECTIVE_SYS_STAT_H=$gl_next_as_first_directive
10190
10191
10192
10193
10194
10195
10196
10197
10198 WINDOWS_STAT_TIMESPEC=0
10199
10200
10201
10202
10203
10204
10205
10206
10207 ac_fn_c_check_type "$LINENO" "nlink_t" "ac_cv_type_nlink_t" "#include <sys/types.h>
10208 #include <sys/stat.h>
10209 "
10210 if test "x$ac_cv_type_nlink_t" = xyes
10211 then :
10212
10213 else $as_nop
10214
10215 printf "%s\n" "#define nlink_t int" >>confdefs.h
10216
10217 fi
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228 case "$host_os" in
10229 mingw* | windows*)
10230 ac_fn_c_check_header_compile "$LINENO" "sdkddkver.h" "ac_cv_header_sdkddkver_h" "$ac_includes_default"
10231 if test "x$ac_cv_header_sdkddkver_h" = xyes
10232 then :
10233 printf "%s\n" "#define HAVE_SDKDDKVER_H 1" >>confdefs.h
10234
10235 fi
10236
10237 ;;
10238 esac
10239
10240
10241
10242
10243
10244
10245
10246 GL_GNULIB_CHMOD=0
10247
10248
10249
10250 GL_GNULIB_FCHMODAT=0
10251
10252
10253
10254 GL_GNULIB_FSTAT=0
10255
10256
10257
10258 GL_GNULIB_FSTATAT=0
10259
10260
10261
10262 GL_GNULIB_FUTIMENS=0
10263
10264
10265
10266 GL_GNULIB_GETUMASK=0
10267
10268
10269
10270 GL_GNULIB_LCHMOD=0
10271
10272
10273
10274 GL_GNULIB_LSTAT=0
10275
10276
10277
10278 GL_GNULIB_MKDIR=0
10279
10280
10281
10282 GL_GNULIB_MKDIRAT=0
10283
10284
10285
10286 GL_GNULIB_MKFIFO=0
10287
10288
10289
10290 GL_GNULIB_MKFIFOAT=0
10291
10292
10293
10294 GL_GNULIB_MKNOD=0
10295
10296
10297
10298 GL_GNULIB_MKNODAT=0
10299
10300
10301
10302 GL_GNULIB_STAT=0
10303
10304
10305
10306 GL_GNULIB_UTIMENSAT=0
10307
10308
10309
10310 GL_GNULIB_OVERRIDES_STRUCT_STAT=0
10311
10312
10313
10314 GL_GNULIB_MDA_CHMOD=1
10315
10316
10317
10318 GL_GNULIB_MDA_MKDIR=1
10319
10320
10321
10322 GL_GNULIB_MDA_UMASK=1
10323
10324
10325
10326
10327 ac_fn_check_decl "$LINENO" "getdtablesize" "ac_cv_have_decl_getdtablesize" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
10328 if test "x$ac_cv_have_decl_getdtablesize" = xyes
10329 then :
10330 ac_have_decl=1
10331 else $as_nop
10332 ac_have_decl=0
10333 fi
10334 printf "%s\n" "#define HAVE_DECL_GETDTABLESIZE $ac_have_decl" >>confdefs.h
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348 if test $gl_cv_have_include_next = yes; then
10349 gl_cv_next_limits_h='<'limits.h'>'
10350 else
10351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <limits.h>" >&5
10352 printf %s "checking absolute name of <limits.h>... " >&6; }
10353 if test ${gl_cv_next_limits_h+y}
10354 then :
10355 printf %s "(cached) " >&6
10356 else $as_nop
10357
10358 if test $ac_cv_header_limits_h = yes; then
10359
10360
10361
10362
10363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10364 /* end confdefs.h. */
10365 #include <limits.h>
10366 _ACEOF
10367 case "$host_os" in
10368 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10369 *) gl_absname_cpp="$ac_cpp" ;;
10370 esac
10371
10372 case "$host_os" in
10373 mingw* | windows*)
10374 gl_dirsep_regex='[/\\]'
10375 ;;
10376 *)
10377 gl_dirsep_regex='\/'
10378 ;;
10379 esac
10380 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10381 gl_header_literal_regex=`echo 'limits.h' \
10382 | sed -e "$gl_make_literal_regex_sed"`
10383 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10384 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10385 s|^/[^/]|//&|
10386 p
10387 q
10388 }'
10389
10390 gl_cv_absolute_limits_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10391 sed -n "$gl_absolute_header_sed"`
10392
10393 gl_header=$gl_cv_absolute_limits_h
10394 gl_cv_next_limits_h='"'$gl_header'"'
10395 else
10396 gl_cv_next_limits_h='<'limits.h'>'
10397 fi
10398
10399
10400 fi
10401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_limits_h" >&5
10402 printf "%s\n" "$gl_cv_next_limits_h" >&6; }
10403 fi
10404 NEXT_LIMITS_H=$gl_cv_next_limits_h
10405
10406 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10407 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10408 gl_next_as_first_directive='<'limits.h'>'
10409 else
10410 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10411 gl_next_as_first_directive=$gl_cv_next_limits_h
10412 fi
10413 NEXT_AS_FIRST_DIRECTIVE_LIMITS_H=$gl_next_as_first_directive
10414
10415
10416
10417
10418
10419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has WORD_BIT, BOOL_WIDTH etc." >&5
10420 printf %s "checking whether limits.h has WORD_BIT, BOOL_WIDTH etc.... " >&6; }
10421 if test ${gl_cv_header_limits_width+y}
10422 then :
10423 printf %s "(cached) " >&6
10424 else $as_nop
10425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10426 /* end confdefs.h. */
10427 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
10428 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
10429 #endif
10430 #include <limits.h>
10431 long long llm = LLONG_MAX;
10432 int wb = WORD_BIT;
10433 int ullw = ULLONG_WIDTH;
10434 int bw = BOOL_WIDTH;
10435 int bm = BOOL_MAX;
10436 int mblm = MB_LEN_MAX;
10437
10438 int
10439 main (void)
10440 {
10441
10442 ;
10443 return 0;
10444 }
10445 _ACEOF
10446 if ac_fn_c_try_compile "$LINENO"
10447 then :
10448 gl_cv_header_limits_width=yes
10449 else $as_nop
10450 gl_cv_header_limits_width=no
10451 fi
10452 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10453 fi
10454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_width" >&5
10455 printf "%s\n" "$gl_cv_header_limits_width" >&6; }
10456 GL_GENERATE_LIMITS_H=true
10457 if test "$gl_cv_header_limits_width" = yes
10458 then :
10459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether limits.h has SSIZE_MAX" >&5
10460 printf %s "checking whether limits.h has SSIZE_MAX... " >&6; }
10461 if test ${gl_cv_header_limits_ssize_max+y}
10462 then :
10463 printf %s "(cached) " >&6
10464 else $as_nop
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10466 /* end confdefs.h. */
10467 #include <limits.h>
10468 #ifndef SSIZE_MAX
10469 #error "SSIZE_MAX is not defined"
10470 #endif
10471
10472 _ACEOF
10473 if ac_fn_c_try_compile "$LINENO"
10474 then :
10475 gl_cv_header_limits_ssize_max=yes
10476 else $as_nop
10477 gl_cv_header_limits_ssize_max=no
10478 fi
10479 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10480 fi
10481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_limits_ssize_max" >&5
10482 printf "%s\n" "$gl_cv_header_limits_ssize_max" >&6; }
10483 if test "$gl_cv_header_limits_ssize_max" = yes; then
10484 GL_GENERATE_LIMITS_H=false
10485 fi
10486 fi
10487
10488
10489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5
10490 printf %s "checking for wint_t... " >&6; }
10491 if test ${gt_cv_c_wint_t+y}
10492 then :
10493 printf %s "(cached) " >&6
10494 else $as_nop
10495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10497 #include <wchar.h>
10498 wint_t foo = (wchar_t)'\0';
10499 int
10500 main (void)
10501 {
10502
10503 ;
10504 return 0;
10505 }
10506 _ACEOF
10507 if ac_fn_c_try_compile "$LINENO"
10508 then :
10509 gt_cv_c_wint_t=yes
10510 else $as_nop
10511 gt_cv_c_wint_t=no
10512 fi
10513 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10514 fi
10515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5
10516 printf "%s\n" "$gt_cv_c_wint_t" >&6; }
10517 if test $gt_cv_c_wint_t = yes; then
10518
10519 printf "%s\n" "#define HAVE_WINT_T 1" >>confdefs.h
10520
10521
10522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether wint_t is large enough" >&5
10523 printf %s "checking whether wint_t is large enough... " >&6; }
10524 if test ${gl_cv_type_wint_t_large_enough+y}
10525 then :
10526 printf %s "(cached) " >&6
10527 else $as_nop
10528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10529 /* end confdefs.h. */
10530 #include <wchar.h>
10531 int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
10532
10533 int
10534 main (void)
10535 {
10536
10537 ;
10538 return 0;
10539 }
10540 _ACEOF
10541 if ac_fn_c_try_compile "$LINENO"
10542 then :
10543 gl_cv_type_wint_t_large_enough=yes
10544 else $as_nop
10545 gl_cv_type_wint_t_large_enough=no
10546 fi
10547 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10548 fi
10549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_wint_t_large_enough" >&5
10550 printf "%s\n" "$gl_cv_type_wint_t_large_enough" >&6; }
10551 if test $gl_cv_type_wint_t_large_enough = no; then
10552 GNULIBHEADERS_OVERRIDE_WINT_T=1
10553 else
10554 GNULIBHEADERS_OVERRIDE_WINT_T=0
10555 fi
10556 else
10557 GNULIBHEADERS_OVERRIDE_WINT_T=0
10558 fi
10559
10560
10561
10562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler produces multi-arch binaries" >&5
10563 printf %s "checking whether the compiler produces multi-arch binaries... " >&6; }
10564 if test ${gl_cv_c_multiarch+y}
10565 then :
10566 printf %s "(cached) " >&6
10567 else $as_nop
10568 gl_cv_c_multiarch=no
10569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10570 /* end confdefs.h. */
10571 #ifndef __APPLE_CC__
10572 not a universal capable compiler
10573 #endif
10574 typedef int dummy;
10575
10576 _ACEOF
10577 if ac_fn_c_try_compile "$LINENO"
10578 then :
10579
10580 arch=
10581 prev=
10582 for word in ${CC} ${CFLAGS} ${CPPFLAGS} ${LDFLAGS}; do
10583 if test -n "$prev"; then
10584 case $word in
10585 i?86 | x86_64 | ppc | ppc64 | arm | arm64)
10586 if test -z "$arch" || test "$arch" = "$word"; then
10587 arch="$word"
10588 else
10589 gl_cv_c_multiarch=yes
10590 fi
10591 ;;
10592 esac
10593 prev=
10594 else
10595 if test "x$word" = "x-arch"; then
10596 prev=arch
10597 fi
10598 fi
10599 done
10600
10601 fi
10602 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
10603
10604 fi
10605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_multiarch" >&5
10606 printf "%s\n" "$gl_cv_c_multiarch" >&6; }
10607 if test $gl_cv_c_multiarch = yes; then
10608 APPLE_UNIVERSAL_BUILD=1
10609 else
10610 APPLE_UNIVERSAL_BUILD=0
10611 fi
10612
10613
10614
10615
10616
10617
10618
10619
10620 printf "%s\n" "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
10621
10622
10623 printf "%s\n" "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
10624
10625
10626
10627 if test $ac_cv_header_wchar_h = yes; then
10628 HAVE_WCHAR_H=1
10629 else
10630 HAVE_WCHAR_H=0
10631 fi
10632
10633
10634
10635 if test $ac_cv_header_inttypes_h = yes; then
10636 HAVE_INTTYPES_H=1
10637 else
10638 HAVE_INTTYPES_H=0
10639 fi
10640
10641
10642
10643 if test $ac_cv_header_sys_types_h = yes; then
10644 HAVE_SYS_TYPES_H=1
10645 else
10646 HAVE_SYS_TYPES_H=0
10647 fi
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659 if test $gl_cv_have_include_next = yes; then
10660 gl_cv_next_stdint_h='<'stdint.h'>'
10661 else
10662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdint.h>" >&5
10663 printf %s "checking absolute name of <stdint.h>... " >&6; }
10664 if test ${gl_cv_next_stdint_h+y}
10665 then :
10666 printf %s "(cached) " >&6
10667 else $as_nop
10668
10669 if test $ac_cv_header_stdint_h = yes; then
10670
10671
10672
10673
10674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10675 /* end confdefs.h. */
10676 #include <stdint.h>
10677 _ACEOF
10678 case "$host_os" in
10679 aix*) gl_absname_cpp="$ac_cpp -C" ;;
10680 *) gl_absname_cpp="$ac_cpp" ;;
10681 esac
10682
10683 case "$host_os" in
10684 mingw* | windows*)
10685 gl_dirsep_regex='[/\\]'
10686 ;;
10687 *)
10688 gl_dirsep_regex='\/'
10689 ;;
10690 esac
10691 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
10692 gl_header_literal_regex=`echo 'stdint.h' \
10693 | sed -e "$gl_make_literal_regex_sed"`
10694 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
10695 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
10696 s|^/[^/]|//&|
10697 p
10698 q
10699 }'
10700
10701 gl_cv_absolute_stdint_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
10702 sed -n "$gl_absolute_header_sed"`
10703
10704 gl_header=$gl_cv_absolute_stdint_h
10705 gl_cv_next_stdint_h='"'$gl_header'"'
10706 else
10707 gl_cv_next_stdint_h='<'stdint.h'>'
10708 fi
10709
10710
10711 fi
10712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdint_h" >&5
10713 printf "%s\n" "$gl_cv_next_stdint_h" >&6; }
10714 fi
10715 NEXT_STDINT_H=$gl_cv_next_stdint_h
10716
10717 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
10718 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
10719 gl_next_as_first_directive='<'stdint.h'>'
10720 else
10721 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
10722 gl_next_as_first_directive=$gl_cv_next_stdint_h
10723 fi
10724 NEXT_AS_FIRST_DIRECTIVE_STDINT_H=$gl_next_as_first_directive
10725
10726
10727
10728
10729 if test $ac_cv_header_stdint_h = yes; then
10730 HAVE_STDINT_H=1
10731 else
10732 HAVE_STDINT_H=0
10733 fi
10734
10735
10736 if test $ac_cv_header_stdint_h = yes; then
10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h conforms to C99" >&5
10738 printf %s "checking whether stdint.h conforms to C99... " >&6; }
10739 if test ${gl_cv_header_working_stdint_h+y}
10740 then :
10741 printf %s "(cached) " >&6
10742 else $as_nop
10743 gl_cv_header_working_stdint_h=no
10744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10745 /* end confdefs.h. */
10746
10747
10748 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10749 #define __STDC_CONSTANT_MACROS 1
10750 #define __STDC_LIMIT_MACROS 1
10751 #include <stdint.h>
10752 /* Dragonfly defines WCHAR_MIN, WCHAR_MAX only in <wchar.h>. */
10753 #if !(defined WCHAR_MIN && defined WCHAR_MAX)
10754 #error "WCHAR_MIN, WCHAR_MAX not defined in <stdint.h>"
10755 #endif
10756
10757
10758 #include <stddef.h>
10759 #include <signal.h>
10760 #if HAVE_WCHAR_H
10761 # include <wchar.h>
10762 #endif
10763
10764
10765 #ifdef INT8_MAX
10766 int8_t a1 = INT8_MAX;
10767 int8_t a1min = INT8_MIN;
10768 #endif
10769 #ifdef INT16_MAX
10770 int16_t a2 = INT16_MAX;
10771 int16_t a2min = INT16_MIN;
10772 #endif
10773 #ifdef INT32_MAX
10774 int32_t a3 = INT32_MAX;
10775 int32_t a3min = INT32_MIN;
10776 #endif
10777 #ifdef INT64_MAX
10778 int64_t a4 = INT64_MAX;
10779 int64_t a4min = INT64_MIN;
10780 #endif
10781 #ifdef UINT8_MAX
10782 uint8_t b1 = UINT8_MAX;
10783 #else
10784 typedef int b1[(unsigned char) -1 != 255 ? 1 : -1];
10785 #endif
10786 #ifdef UINT16_MAX
10787 uint16_t b2 = UINT16_MAX;
10788 #endif
10789 #ifdef UINT32_MAX
10790 uint32_t b3 = UINT32_MAX;
10791 #endif
10792 #ifdef UINT64_MAX
10793 uint64_t b4 = UINT64_MAX;
10794 #endif
10795 int_least8_t c1 = INT8_C (0x7f);
10796 int_least8_t c1max = INT_LEAST8_MAX;
10797 int_least8_t c1min = INT_LEAST8_MIN;
10798 int_least16_t c2 = INT16_C (0x7fff);
10799 int_least16_t c2max = INT_LEAST16_MAX;
10800 int_least16_t c2min = INT_LEAST16_MIN;
10801 int_least32_t c3 = INT32_C (0x7fffffff);
10802 int_least32_t c3max = INT_LEAST32_MAX;
10803 int_least32_t c3min = INT_LEAST32_MIN;
10804 int_least64_t c4 = INT64_C (0x7fffffffffffffff);
10805 int_least64_t c4max = INT_LEAST64_MAX;
10806 int_least64_t c4min = INT_LEAST64_MIN;
10807 uint_least8_t d1 = UINT8_C (0xff);
10808 uint_least8_t d1max = UINT_LEAST8_MAX;
10809 uint_least16_t d2 = UINT16_C (0xffff);
10810 uint_least16_t d2max = UINT_LEAST16_MAX;
10811 uint_least32_t d3 = UINT32_C (0xffffffff);
10812 uint_least32_t d3max = UINT_LEAST32_MAX;
10813 uint_least64_t d4 = UINT64_C (0xffffffffffffffff);
10814 uint_least64_t d4max = UINT_LEAST64_MAX;
10815 int_fast8_t e1 = INT_FAST8_MAX;
10816 int_fast8_t e1min = INT_FAST8_MIN;
10817 int_fast16_t e2 = INT_FAST16_MAX;
10818 int_fast16_t e2min = INT_FAST16_MIN;
10819 int_fast32_t e3 = INT_FAST32_MAX;
10820 int_fast32_t e3min = INT_FAST32_MIN;
10821 int_fast64_t e4 = INT_FAST64_MAX;
10822 int_fast64_t e4min = INT_FAST64_MIN;
10823 uint_fast8_t f1 = UINT_FAST8_MAX;
10824 uint_fast16_t f2 = UINT_FAST16_MAX;
10825 uint_fast32_t f3 = UINT_FAST32_MAX;
10826 uint_fast64_t f4 = UINT_FAST64_MAX;
10827 #ifdef INTPTR_MAX
10828 intptr_t g = INTPTR_MAX;
10829 intptr_t gmin = INTPTR_MIN;
10830 #endif
10831 #ifdef UINTPTR_MAX
10832 uintptr_t h = UINTPTR_MAX;
10833 #endif
10834 intmax_t i = INTMAX_MAX;
10835 uintmax_t j = UINTMAX_MAX;
10836
10837 /* Check that SIZE_MAX has the correct type, if possible. */
10838 /* ISO C 11 mandates _Generic, but GCC versions < 4.9 lack it. */
10839 #if 201112 <= __STDC_VERSION__ \
10840 && (!defined __GNUC__ || 4 < __GNUC__ + (9 <= __GNUC_MINOR__) \
10841 || defined __clang__)
10842 int k = _Generic (SIZE_MAX, size_t: 0);
10843 #elif (2 <= __GNUC__ || 4 <= __clang_major__ || defined __IBM__TYPEOF__ \
10844 || (0x5110 <= __SUNPRO_C && !__STDC__))
10845 extern size_t k;
10846 extern __typeof__ (SIZE_MAX) k;
10847 #endif
10848
10849 #include <limits.h> /* for CHAR_BIT */
10850 #define TYPE_MINIMUM(t) \
10851 ((t) ((t) 0 < (t) -1 ? (t) 0 : ~ TYPE_MAXIMUM (t)))
10852 #define TYPE_MAXIMUM(t) \
10853 ((t) ((t) 0 < (t) -1 \
10854 ? (t) -1 \
10855 : ((((t) 1 << (sizeof (t) * CHAR_BIT - 2)) - 1) * 2 + 1)))
10856 struct s {
10857 int check_PTRDIFF:
10858 PTRDIFF_MIN == TYPE_MINIMUM (ptrdiff_t)
10859 && PTRDIFF_MAX == TYPE_MAXIMUM (ptrdiff_t)
10860 ? 1 : -1;
10861 /* Detect bug in FreeBSD 6.0/ia64 and FreeBSD 13.0/arm64. */
10862 int check_SIG_ATOMIC:
10863 SIG_ATOMIC_MIN == TYPE_MINIMUM (sig_atomic_t)
10864 && SIG_ATOMIC_MAX == TYPE_MAXIMUM (sig_atomic_t)
10865 ? 1 : -1;
10866 int check_SIZE: SIZE_MAX == TYPE_MAXIMUM (size_t) ? 1 : -1;
10867 int check_WCHAR:
10868 WCHAR_MIN == TYPE_MINIMUM (wchar_t)
10869 && WCHAR_MAX == TYPE_MAXIMUM (wchar_t)
10870 ? 1 : -1;
10871 /* Detect bug in mingw. */
10872 int check_WINT:
10873 WINT_MIN == TYPE_MINIMUM (wint_t)
10874 && WINT_MAX == TYPE_MAXIMUM (wint_t)
10875 ? 1 : -1;
10876
10877 /* Detect bugs in glibc 2.4 and Solaris 10 stdint.h, among others. */
10878 int check_UINT8_C:
10879 (-1 < UINT8_C (0)) == (-1 < (uint_least8_t) 0) ? 1 : -1;
10880 int check_UINT16_C:
10881 (-1 < UINT16_C (0)) == (-1 < (uint_least16_t) 0) ? 1 : -1;
10882
10883 /* Detect bugs in OpenBSD 3.9 stdint.h. */
10884 #ifdef UINT8_MAX
10885 int check_uint8: (uint8_t) -1 == UINT8_MAX ? 1 : -1;
10886 #endif
10887 #ifdef UINT16_MAX
10888 int check_uint16: (uint16_t) -1 == UINT16_MAX ? 1 : -1;
10889 #endif
10890 #ifdef UINT32_MAX
10891 int check_uint32: (uint32_t) -1 == UINT32_MAX ? 1 : -1;
10892 #endif
10893 #ifdef UINT64_MAX
10894 int check_uint64: (uint64_t) -1 == UINT64_MAX ? 1 : -1;
10895 #endif
10896 int check_uint_least8: (uint_least8_t) -1 == UINT_LEAST8_MAX ? 1 : -1;
10897 int check_uint_least16: (uint_least16_t) -1 == UINT_LEAST16_MAX ? 1 : -1;
10898 int check_uint_least32: (uint_least32_t) -1 == UINT_LEAST32_MAX ? 1 : -1;
10899 int check_uint_least64: (uint_least64_t) -1 == UINT_LEAST64_MAX ? 1 : -1;
10900 int check_uint_fast8: (uint_fast8_t) -1 == UINT_FAST8_MAX ? 1 : -1;
10901 int check_uint_fast16: (uint_fast16_t) -1 == UINT_FAST16_MAX ? 1 : -1;
10902 int check_uint_fast32: (uint_fast32_t) -1 == UINT_FAST32_MAX ? 1 : -1;
10903 int check_uint_fast64: (uint_fast64_t) -1 == UINT_FAST64_MAX ? 1 : -1;
10904 int check_uintptr: (uintptr_t) -1 == UINTPTR_MAX ? 1 : -1;
10905 int check_uintmax: (uintmax_t) -1 == UINTMAX_MAX ? 1 : -1;
10906 int check_size: (size_t) -1 == SIZE_MAX ? 1 : -1;
10907 };
10908
10909 int
10910 main (void)
10911 {
10912
10913 ;
10914 return 0;
10915 }
10916 _ACEOF
10917 if ac_fn_c_try_compile "$LINENO"
10918 then :
10919 if test "$cross_compiling" = yes
10920 then :
10921 case "$host_os" in
10922 # Guess yes on native Windows.
10923 mingw* | windows*) gl_cv_header_working_stdint_h="guessing yes" ;;
10924 # In general, assume it works.
10925 *) gl_cv_header_working_stdint_h="guessing yes" ;;
10926 esac
10927
10928 else $as_nop
10929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10930 /* end confdefs.h. */
10931
10932
10933 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
10934 #define __STDC_CONSTANT_MACROS 1
10935 #define __STDC_LIMIT_MACROS 1
10936 #include <stdint.h>
10937
10938
10939 #include <stddef.h>
10940 #include <signal.h>
10941 #if HAVE_WCHAR_H
10942 # include <wchar.h>
10943 #endif
10944
10945
10946 #include <stdio.h>
10947 #include <string.h>
10948 #define MVAL(macro) MVAL1(macro)
10949 #define MVAL1(expression) #expression
10950 static const char *macro_values[] =
10951 {
10952 #ifdef INT8_MAX
10953 MVAL (INT8_MAX),
10954 #endif
10955 #ifdef INT16_MAX
10956 MVAL (INT16_MAX),
10957 #endif
10958 #ifdef INT32_MAX
10959 MVAL (INT32_MAX),
10960 #endif
10961 #ifdef INT64_MAX
10962 MVAL (INT64_MAX),
10963 #endif
10964 #ifdef UINT8_MAX
10965 MVAL (UINT8_MAX),
10966 #endif
10967 #ifdef UINT16_MAX
10968 MVAL (UINT16_MAX),
10969 #endif
10970 #ifdef UINT32_MAX
10971 MVAL (UINT32_MAX),
10972 #endif
10973 #ifdef UINT64_MAX
10974 MVAL (UINT64_MAX),
10975 #endif
10976 NULL
10977 };
10978
10979 int
10980 main (void)
10981 {
10982
10983 const char **mv;
10984 for (mv = macro_values; *mv != NULL; mv++)
10985 {
10986 const char *value = *mv;
10987 /* Test whether it looks like a cast expression. */
10988 if (strncmp (value, "((unsigned int)"/*)*/, 15) == 0
10989 || strncmp (value, "((unsigned short)"/*)*/, 17) == 0
10990 || strncmp (value, "((unsigned char)"/*)*/, 16) == 0
10991 || strncmp (value, "((int)"/*)*/, 6) == 0
10992 || strncmp (value, "((signed short)"/*)*/, 15) == 0
10993 || strncmp (value, "((signed char)"/*)*/, 14) == 0)
10994 return mv - macro_values + 1;
10995 }
10996 return 0;
10997
10998 ;
10999 return 0;
11000 }
11001 _ACEOF
11002 if ac_fn_c_try_run "$LINENO"
11003 then :
11004 gl_cv_header_working_stdint_h=yes
11005 fi
11006 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11007 conftest.$ac_objext conftest.beam conftest.$ac_ext
11008 fi
11009
11010
11011 fi
11012 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11013
11014 fi
11015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdint_h" >&5
11016 printf "%s\n" "$gl_cv_header_working_stdint_h" >&6; }
11017 fi
11018
11019 HAVE_C99_STDINT_H=0
11020 HAVE_SYS_BITYPES_H=0
11021 HAVE_SYS_INTTYPES_H=0
11022 GL_GENERATE_STDINT_H=true
11023 case "$gl_cv_header_working_stdint_h" in
11024 *yes)
11025 HAVE_C99_STDINT_H=1
11026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h works without ISO C predefines" >&5
11027 printf %s "checking whether stdint.h works without ISO C predefines... " >&6; }
11028 if test ${gl_cv_header_stdint_without_STDC_macros+y}
11029 then :
11030 printf %s "(cached) " >&6
11031 else $as_nop
11032 gl_cv_header_stdint_without_STDC_macros=no
11033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11034 /* end confdefs.h. */
11035
11036
11037 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1 /* work if build isn't clean */
11038 #include <stdint.h>
11039
11040
11041 #include <stddef.h>
11042 #include <signal.h>
11043 #if HAVE_WCHAR_H
11044 # include <wchar.h>
11045 #endif
11046
11047
11048 intmax_t im = INTMAX_MAX;
11049 int32_t i32 = INT32_C (0x7fffffff);
11050
11051 int
11052 main (void)
11053 {
11054
11055 ;
11056 return 0;
11057 }
11058 _ACEOF
11059 if ac_fn_c_try_compile "$LINENO"
11060 then :
11061 gl_cv_header_stdint_without_STDC_macros=yes
11062 fi
11063 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11064
11065 fi
11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_without_STDC_macros" >&5
11067 printf "%s\n" "$gl_cv_header_stdint_without_STDC_macros" >&6; }
11068
11069 if test $gl_cv_header_stdint_without_STDC_macros = no; then
11070
11071 printf "%s\n" "#define __STDC_CONSTANT_MACROS 1" >>confdefs.h
11072
11073
11074 printf "%s\n" "#define __STDC_LIMIT_MACROS 1" >>confdefs.h
11075
11076 fi
11077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stdint.h has UINTMAX_WIDTH etc." >&5
11078 printf %s "checking whether stdint.h has UINTMAX_WIDTH etc.... " >&6; }
11079 if test ${gl_cv_header_stdint_width+y}
11080 then :
11081 printf %s "(cached) " >&6
11082 else $as_nop
11083 gl_cv_header_stdint_width=no
11084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11085 /* end confdefs.h. */
11086
11087 /* Work if build is not clean. */
11088 #define _GL_JUST_INCLUDE_SYSTEM_STDINT_H 1
11089 #ifndef __STDC_WANT_IEC_60559_BFP_EXT__
11090 #define __STDC_WANT_IEC_60559_BFP_EXT__ 1
11091 #endif
11092 #include <stdint.h>
11093
11094 #include <stddef.h>
11095 #include <signal.h>
11096 #if HAVE_WCHAR_H
11097 # include <wchar.h>
11098 #endif
11099
11100 int iw = UINTMAX_WIDTH;
11101
11102 int
11103 main (void)
11104 {
11105
11106 ;
11107 return 0;
11108 }
11109 _ACEOF
11110 if ac_fn_c_try_compile "$LINENO"
11111 then :
11112 gl_cv_header_stdint_width=yes
11113 fi
11114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11115 fi
11116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_width" >&5
11117 printf "%s\n" "$gl_cv_header_stdint_width" >&6; }
11118 if test "$gl_cv_header_stdint_width" = yes; then
11119 GL_GENERATE_STDINT_H=false
11120 fi
11121 ;;
11122 *)
11123 ac_fn_c_check_header_compile "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
11124 if test "x$ac_cv_header_sys_inttypes_h" = xyes
11125 then :
11126 printf "%s\n" "#define HAVE_SYS_INTTYPES_H 1" >>confdefs.h
11127
11128 fi
11129 ac_fn_c_check_header_compile "$LINENO" "sys/bitypes.h" "ac_cv_header_sys_bitypes_h" "$ac_includes_default"
11130 if test "x$ac_cv_header_sys_bitypes_h" = xyes
11131 then :
11132 printf "%s\n" "#define HAVE_SYS_BITYPES_H 1" >>confdefs.h
11133
11134 fi
11135
11136 if test $ac_cv_header_sys_inttypes_h = yes; then
11137 HAVE_SYS_INTTYPES_H=1
11138 fi
11139 if test $ac_cv_header_sys_bitypes_h = yes; then
11140 HAVE_SYS_BITYPES_H=1
11141 fi
11142
11143
11144 if test $APPLE_UNIVERSAL_BUILD = 0; then
11145
11146
11147 for gltype in ptrdiff_t size_t ; do
11148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11149 printf %s "checking for bit size of $gltype... " >&6; }
11150 if eval test \${gl_cv_bitsizeof_${gltype}+y}
11151 then :
11152 printf %s "(cached) " >&6
11153 else $as_nop
11154 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11155 #include <stddef.h>
11156 #include <signal.h>
11157 #if HAVE_WCHAR_H
11158 # include <wchar.h>
11159 #endif
11160
11161 #include <limits.h>"
11162 then :
11163
11164 else $as_nop
11165 result=unknown
11166 fi
11167
11168 eval gl_cv_bitsizeof_${gltype}=\$result
11169
11170 fi
11171 eval ac_res=\$gl_cv_bitsizeof_${gltype}
11172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11173 printf "%s\n" "$ac_res" >&6; }
11174 eval result=\$gl_cv_bitsizeof_${gltype}
11175 if test $result = unknown; then
11176 result=0
11177 fi
11178 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11179 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
11180
11181 eval BITSIZEOF_${GLTYPE}=\$result
11182 done
11183
11184
11185 fi
11186
11187
11188 for gltype in sig_atomic_t wchar_t wint_t ; do
11189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bit size of $gltype" >&5
11190 printf %s "checking for bit size of $gltype... " >&6; }
11191 if eval test \${gl_cv_bitsizeof_${gltype}+y}
11192 then :
11193 printf %s "(cached) " >&6
11194 else $as_nop
11195 if ac_fn_c_compute_int "$LINENO" "sizeof ($gltype) * CHAR_BIT" "result" "
11196 #include <stddef.h>
11197 #include <signal.h>
11198 #if HAVE_WCHAR_H
11199 # include <wchar.h>
11200 #endif
11201
11202 #include <limits.h>"
11203 then :
11204
11205 else $as_nop
11206 result=unknown
11207 fi
11208
11209 eval gl_cv_bitsizeof_${gltype}=\$result
11210
11211 fi
11212 eval ac_res=\$gl_cv_bitsizeof_${gltype}
11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11214 printf "%s\n" "$ac_res" >&6; }
11215 eval result=\$gl_cv_bitsizeof_${gltype}
11216 if test $result = unknown; then
11217 result=0
11218 fi
11219 GLTYPE=`echo "$gltype" | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11220 printf "%s\n" "#define BITSIZEOF_${GLTYPE} $result" >>confdefs.h
11221
11222 eval BITSIZEOF_${GLTYPE}=\$result
11223 done
11224
11225
11226
11227
11228 for gltype in sig_atomic_t wchar_t wint_t ; do
11229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $gltype is signed" >&5
11230 printf %s "checking whether $gltype is signed... " >&6; }
11231 if eval test \${gl_cv_type_${gltype}_signed+y}
11232 then :
11233 printf %s "(cached) " >&6
11234 else $as_nop
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237
11238 #include <stddef.h>
11239 #include <signal.h>
11240 #if HAVE_WCHAR_H
11241 # include <wchar.h>
11242 #endif
11243
11244 int verify[2 * (($gltype) -1 < ($gltype) 0) - 1];
11245 int
11246 main (void)
11247 {
11248
11249 ;
11250 return 0;
11251 }
11252 _ACEOF
11253 if ac_fn_c_try_compile "$LINENO"
11254 then :
11255 result=yes
11256 else $as_nop
11257 result=no
11258 fi
11259 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11260 eval gl_cv_type_${gltype}_signed=\$result
11261
11262 fi
11263 eval ac_res=\$gl_cv_type_${gltype}_signed
11264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11265 printf "%s\n" "$ac_res" >&6; }
11266 eval result=\$gl_cv_type_${gltype}_signed
11267 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11268 if test "$result" = yes; then
11269 printf "%s\n" "#define HAVE_SIGNED_${GLTYPE} 1" >>confdefs.h
11270
11271 eval HAVE_SIGNED_${GLTYPE}=1
11272 else
11273 eval HAVE_SIGNED_${GLTYPE}=0
11274 fi
11275 done
11276
11277
11278 gl_cv_type_ptrdiff_t_signed=yes
11279 gl_cv_type_size_t_signed=no
11280 if test $APPLE_UNIVERSAL_BUILD = 0; then
11281
11282
11283 for gltype in ptrdiff_t size_t ; do
11284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11285 printf %s "checking for $gltype integer literal suffix... " >&6; }
11286 if eval test \${gl_cv_type_${gltype}_suffix+y}
11287 then :
11288 printf %s "(cached) " >&6
11289 else $as_nop
11290 eval gl_cv_type_${gltype}_suffix=no
11291 eval result=\$gl_cv_type_${gltype}_signed
11292 if test "$result" = yes; then
11293 glsufu=
11294 else
11295 glsufu=u
11296 fi
11297 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
11298 case $glsuf in
11299 '') gltype1='int';;
11300 l) gltype1='long int';;
11301 ll) gltype1='long long int';;
11302 i64) gltype1='__int64';;
11303 u) gltype1='unsigned int';;
11304 ul) gltype1='unsigned long int';;
11305 ull) gltype1='unsigned long long int';;
11306 ui64)gltype1='unsigned __int64';;
11307 esac
11308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11309 /* end confdefs.h. */
11310
11311 #include <stddef.h>
11312 #include <signal.h>
11313 #if HAVE_WCHAR_H
11314 # include <wchar.h>
11315 #endif
11316
11317 extern $gltype foo;
11318 extern $gltype1 foo;
11319 int
11320 main (void)
11321 {
11322
11323 ;
11324 return 0;
11325 }
11326 _ACEOF
11327 if ac_fn_c_try_compile "$LINENO"
11328 then :
11329 eval gl_cv_type_${gltype}_suffix=\$glsuf
11330 fi
11331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11332 eval result=\$gl_cv_type_${gltype}_suffix
11333 test "$result" != no && break
11334 done
11335 fi
11336 eval ac_res=\$gl_cv_type_${gltype}_suffix
11337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11338 printf "%s\n" "$ac_res" >&6; }
11339 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11340 eval result=\$gl_cv_type_${gltype}_suffix
11341 test "$result" = no && result=
11342 eval ${GLTYPE}_SUFFIX=\$result
11343 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
11344
11345 done
11346
11347
11348 fi
11349
11350
11351 for gltype in sig_atomic_t wchar_t wint_t ; do
11352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $gltype integer literal suffix" >&5
11353 printf %s "checking for $gltype integer literal suffix... " >&6; }
11354 if eval test \${gl_cv_type_${gltype}_suffix+y}
11355 then :
11356 printf %s "(cached) " >&6
11357 else $as_nop
11358 eval gl_cv_type_${gltype}_suffix=no
11359 eval result=\$gl_cv_type_${gltype}_signed
11360 if test "$result" = yes; then
11361 glsufu=
11362 else
11363 glsufu=u
11364 fi
11365 for glsuf in "$glsufu" ${glsufu}l ${glsufu}ll ${glsufu}i64; do
11366 case $glsuf in
11367 '') gltype1='int';;
11368 l) gltype1='long int';;
11369 ll) gltype1='long long int';;
11370 i64) gltype1='__int64';;
11371 u) gltype1='unsigned int';;
11372 ul) gltype1='unsigned long int';;
11373 ull) gltype1='unsigned long long int';;
11374 ui64)gltype1='unsigned __int64';;
11375 esac
11376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11377 /* end confdefs.h. */
11378
11379 #include <stddef.h>
11380 #include <signal.h>
11381 #if HAVE_WCHAR_H
11382 # include <wchar.h>
11383 #endif
11384
11385 extern $gltype foo;
11386 extern $gltype1 foo;
11387 int
11388 main (void)
11389 {
11390
11391 ;
11392 return 0;
11393 }
11394 _ACEOF
11395 if ac_fn_c_try_compile "$LINENO"
11396 then :
11397 eval gl_cv_type_${gltype}_suffix=\$glsuf
11398 fi
11399 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11400 eval result=\$gl_cv_type_${gltype}_suffix
11401 test "$result" != no && break
11402 done
11403 fi
11404 eval ac_res=\$gl_cv_type_${gltype}_suffix
11405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11406 printf "%s\n" "$ac_res" >&6; }
11407 GLTYPE=`echo $gltype | tr 'abcdefghijklmnopqrstuvwxyz ' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ_'`
11408 eval result=\$gl_cv_type_${gltype}_suffix
11409 test "$result" = no && result=
11410 eval ${GLTYPE}_SUFFIX=\$result
11411 printf "%s\n" "#define ${GLTYPE}_SUFFIX $result" >>confdefs.h
11412
11413 done
11414
11415
11416
11417 if test $GNULIBHEADERS_OVERRIDE_WINT_T = 1; then
11418 BITSIZEOF_WINT_T=32
11419 fi
11420
11421 ;;
11422 esac
11423
11424
11425
11426 GL_GENERATE_LIMITS_H=true
11427
11428
11429
11430
11431
11432
11433
11434 HAVE_DECL_IMAXABS=1;
11435 HAVE_DECL_IMAXDIV=1;
11436 HAVE_DECL_STRTOIMAX=1;
11437 HAVE_DECL_STRTOUMAX=1;
11438 HAVE_IMAXDIV_T=1;
11439 HAVE_IMAXABS=1;
11440 HAVE_IMAXDIV=1;
11441 REPLACE_IMAXABS=0;
11442 REPLACE_IMAXDIV=0;
11443 REPLACE_STRTOIMAX=0;
11444 REPLACE_STRTOUMAX=0;
11445 INT32_MAX_LT_INTMAX_MAX=1;
11446 INT64_MAX_EQ_LONG_MAX='defined _LP64';
11447 PRIPTR_PREFIX=__PRIPTR_PREFIX;
11448 UINT32_MAX_LT_UINTMAX_MAX=1;
11449 UINT64_MAX_EQ_ULONG_MAX='defined _LP64';
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465 if test $gl_cv_have_include_next = yes; then
11466 gl_cv_next_inttypes_h='<'inttypes.h'>'
11467 else
11468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <inttypes.h>" >&5
11469 printf %s "checking absolute name of <inttypes.h>... " >&6; }
11470 if test ${gl_cv_next_inttypes_h+y}
11471 then :
11472 printf %s "(cached) " >&6
11473 else $as_nop
11474
11475 if test $ac_cv_header_inttypes_h = yes; then
11476
11477
11478
11479
11480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11481 /* end confdefs.h. */
11482 #include <inttypes.h>
11483 _ACEOF
11484 case "$host_os" in
11485 aix*) gl_absname_cpp="$ac_cpp -C" ;;
11486 *) gl_absname_cpp="$ac_cpp" ;;
11487 esac
11488
11489 case "$host_os" in
11490 mingw* | windows*)
11491 gl_dirsep_regex='[/\\]'
11492 ;;
11493 *)
11494 gl_dirsep_regex='\/'
11495 ;;
11496 esac
11497 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
11498 gl_header_literal_regex=`echo 'inttypes.h' \
11499 | sed -e "$gl_make_literal_regex_sed"`
11500 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
11501 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
11502 s|^/[^/]|//&|
11503 p
11504 q
11505 }'
11506
11507 gl_cv_absolute_inttypes_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
11508 sed -n "$gl_absolute_header_sed"`
11509
11510 gl_header=$gl_cv_absolute_inttypes_h
11511 gl_cv_next_inttypes_h='"'$gl_header'"'
11512 else
11513 gl_cv_next_inttypes_h='<'inttypes.h'>'
11514 fi
11515
11516
11517 fi
11518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_inttypes_h" >&5
11519 printf "%s\n" "$gl_cv_next_inttypes_h" >&6; }
11520 fi
11521 NEXT_INTTYPES_H=$gl_cv_next_inttypes_h
11522
11523 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
11524 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
11525 gl_next_as_first_directive='<'inttypes.h'>'
11526 else
11527 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
11528 gl_next_as_first_directive=$gl_cv_next_inttypes_h
11529 fi
11530 NEXT_AS_FIRST_DIRECTIVE_INTTYPES_H=$gl_next_as_first_directive
11531
11532
11533
11534
11535
11536
11537
11538
11539
11540
11541
11542
11543
11544
11545
11546 GL_GNULIB_IMAXABS=0
11547
11548
11549
11550 GL_GNULIB_IMAXDIV=0
11551
11552
11553
11554 GL_GNULIB_STRTOIMAX=0
11555
11556
11557
11558 GL_GNULIB_STRTOUMAX=0
11559
11560
11561
11562
11563
11564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
11565 printf %s "checking whether malloc (0) returns nonnull... " >&6; }
11566 if test ${ac_cv_func_malloc_0_nonnull+y}
11567 then :
11568 printf %s "(cached) " >&6
11569 else $as_nop
11570 if test "$cross_compiling" = yes
11571 then :
11572 case "$host_os" in
11573 # Guess yes on platforms where we know the result.
11574 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
11575 | gnu* | *-musl* | midipix* | midnightbsd* \
11576 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
11577 ac_cv_func_malloc_0_nonnull="guessing yes" ;;
11578 # If we don't know, obey --enable-cross-guesses.
11579 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
11580 esac
11581
11582 else $as_nop
11583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11584 /* end confdefs.h. */
11585 #include <stdlib.h>
11586
11587 int
11588 main (void)
11589 {
11590 void *p = malloc (0);
11591 void * volatile vp = p;
11592 int result = !vp;
11593 free (p);
11594 return result;
11595 ;
11596 return 0;
11597 }
11598
11599 _ACEOF
11600 if ac_fn_c_try_run "$LINENO"
11601 then :
11602 ac_cv_func_malloc_0_nonnull=yes
11603 else $as_nop
11604 ac_cv_func_malloc_0_nonnull=no
11605 fi
11606 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11607 conftest.$ac_objext conftest.beam conftest.$ac_ext
11608 fi
11609
11610
11611 fi
11612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
11613 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
11614 case $ac_cv_func_malloc_0_nonnull in #(
11615 *yes) :
11616 gl_cv_func_malloc_0_nonnull=1 ;; #(
11617 *) :
11618 gl_cv_func_malloc_0_nonnull=0 ;;
11619 esac
11620
11621
11622 printf "%s\n" "#define MALLOC_0_IS_NONNULL $gl_cv_func_malloc_0_nonnull" >>confdefs.h
11623
11624
11625
11626
11627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
11628 printf %s "checking for mbstate_t... " >&6; }
11629 if test ${ac_cv_type_mbstate_t+y}
11630 then :
11631 printf %s "(cached) " >&6
11632 else $as_nop
11633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11634 /* end confdefs.h. */
11635 $ac_includes_default
11636 #include <wchar.h>
11637 int
11638 main (void)
11639 {
11640 mbstate_t x; return sizeof x;
11641 ;
11642 return 0;
11643 }
11644 _ACEOF
11645 if ac_fn_c_try_compile "$LINENO"
11646 then :
11647 ac_cv_type_mbstate_t=yes
11648 else $as_nop
11649 ac_cv_type_mbstate_t=no
11650 fi
11651 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
11652 fi
11653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
11654 printf "%s\n" "$ac_cv_type_mbstate_t" >&6; }
11655 if test $ac_cv_type_mbstate_t = yes; then
11656
11657 printf "%s\n" "#define HAVE_MBSTATE_T 1" >>confdefs.h
11658
11659 else
11660
11661 printf "%s\n" "#define mbstate_t int" >>confdefs.h
11662
11663 fi
11664
11665
11666 HAVE_BTOWC=1;
11667 HAVE_MBSINIT=1;
11668 HAVE_MBRTOWC=1;
11669 HAVE_MBRLEN=1;
11670 HAVE_MBSRTOWCS=1;
11671 HAVE_MBSNRTOWCS=1;
11672 HAVE_WCRTOMB=1;
11673 HAVE_WCSRTOMBS=1;
11674 HAVE_WCSNRTOMBS=1;
11675 HAVE_WMEMCHR=1;
11676 HAVE_WMEMCMP=1;
11677 HAVE_WMEMCPY=1;
11678 HAVE_WMEMMOVE=1;
11679 HAVE_WMEMPCPY=1;
11680 HAVE_WMEMSET=1;
11681 HAVE_WCSLEN=1;
11682 HAVE_WCSNLEN=1;
11683 HAVE_WCSCPY=1;
11684 HAVE_WCPCPY=1;
11685 HAVE_WCSNCPY=1;
11686 HAVE_WCPNCPY=1;
11687 HAVE_WCSCAT=1;
11688 HAVE_WCSNCAT=1;
11689 HAVE_WCSCMP=1;
11690 HAVE_WCSNCMP=1;
11691 HAVE_WCSCASECMP=1;
11692 HAVE_WCSNCASECMP=1;
11693 HAVE_WCSCOLL=1;
11694 HAVE_WCSXFRM=1;
11695 HAVE_WCSDUP=1;
11696 HAVE_WCSCHR=1;
11697 HAVE_WCSRCHR=1;
11698 HAVE_WCSCSPN=1;
11699 HAVE_WCSSPN=1;
11700 HAVE_WCSPBRK=1;
11701 HAVE_WCSSTR=1;
11702 HAVE_WCSTOK=1;
11703 HAVE_WCSWIDTH=1;
11704 HAVE_WCSFTIME=1;
11705 HAVE_DECL_WCTOB=1;
11706 HAVE_DECL_WCSDUP=1;
11707 HAVE_DECL_WCWIDTH=1;
11708 REPLACE_MBSTATE_T=0;
11709 REPLACE_BTOWC=0;
11710 REPLACE_WCTOB=0;
11711 REPLACE_MBSINIT=0;
11712 REPLACE_MBRTOWC=0;
11713 REPLACE_MBRLEN=0;
11714 REPLACE_MBSRTOWCS=0;
11715 REPLACE_MBSNRTOWCS=0;
11716 REPLACE_WCRTOMB=0;
11717 REPLACE_WCSRTOMBS=0;
11718 REPLACE_WCSNRTOMBS=0;
11719 REPLACE_WCWIDTH=0;
11720 REPLACE_WCSWIDTH=0;
11721 REPLACE_WCSFTIME=0;
11722 REPLACE_WCSCMP=0;
11723 REPLACE_WCSNCMP=0;
11724 REPLACE_WCSSTR=0;
11725 REPLACE_WCSTOK=0;
11726 REPLACE_WMEMCMP=0;
11727 REPLACE_WMEMPCPY=0;
11728
11729
11730
11731
11732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
11733 printf %s "checking for nl_langinfo and CODESET... " >&6; }
11734 if test ${am_cv_langinfo_codeset+y}
11735 then :
11736 printf %s "(cached) " >&6
11737 else $as_nop
11738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11739 /* end confdefs.h. */
11740 #include <langinfo.h>
11741 int
11742 main (void)
11743 {
11744 char* cs = nl_langinfo(CODESET); return !cs;
11745 ;
11746 return 0;
11747 }
11748 _ACEOF
11749 if ac_fn_c_try_link "$LINENO"
11750 then :
11751 am_cv_langinfo_codeset=yes
11752 else $as_nop
11753 am_cv_langinfo_codeset=no
11754 fi
11755 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11756 conftest$ac_exeext conftest.$ac_ext
11757
11758 fi
11759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
11760 printf "%s\n" "$am_cv_langinfo_codeset" >&6; }
11761 if test $am_cv_langinfo_codeset = yes; then
11762
11763 printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
11764
11765 fi
11766
11767
11768
11769
11770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a traditional japanese locale" >&5
11771 printf %s "checking for a traditional japanese locale... " >&6; }
11772 if test ${gt_cv_locale_ja+y}
11773 then :
11774 printf %s "(cached) " >&6
11775 else $as_nop
11776
11777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11778 /* end confdefs.h. */
11779
11780 #include <locale.h>
11781 #include <time.h>
11782 #if HAVE_LANGINFO_CODESET
11783 # include <langinfo.h>
11784 #endif
11785 #include <stdlib.h>
11786 #include <string.h>
11787 struct tm t;
11788 char buf[16];
11789 int main ()
11790 {
11791 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
11792 imitates locale dependent behaviour by looking at the environment
11793 variables, and all locales use the UTF-8 encoding. */
11794 #if defined __BEOS__ || defined __HAIKU__
11795 return 1;
11796 #else
11797 /* Check whether the given locale name is recognized by the system. */
11798 # if defined _WIN32 && !defined __CYGWIN__
11799 /* On native Windows, setlocale(category, "") looks at the system settings,
11800 not at the environment variables. Also, when an encoding suffix such
11801 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11802 category of the locale to "C". */
11803 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11804 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11805 return 1;
11806 # else
11807 if (setlocale (LC_ALL, "") == NULL) return 1;
11808 # endif
11809 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11810 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11811 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11812 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11813 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11814 some unit tests fail.
11815 On MirBSD 10, when an unsupported locale is specified, setlocale()
11816 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
11817 # if HAVE_LANGINFO_CODESET
11818 {
11819 const char *cs = nl_langinfo (CODESET);
11820 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
11821 || strcmp (cs, "UTF-8") == 0)
11822 return 1;
11823 }
11824 # endif
11825 # ifdef __CYGWIN__
11826 /* On Cygwin, avoid locale names without encoding suffix, because the
11827 locale_charset() function relies on the encoding suffix. Note that
11828 LC_ALL is set on the command line. */
11829 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11830 # endif
11831 /* Check whether MB_CUR_MAX is > 1. This excludes the dysfunctional locales
11832 on Cygwin 1.5.x. */
11833 if (MB_CUR_MAX == 1)
11834 return 1;
11835 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
11836 This excludes the UTF-8 encoding (except on MirBSD). */
11837 {
11838 const char *p;
11839 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11840 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
11841 for (p = buf; *p != '\0'; p++)
11842 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
11843 return 1;
11844 }
11845 return 0;
11846 #endif
11847 }
11848
11849 _ACEOF
11850 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11851 (eval $ac_link) 2>&5
11852 ac_status=$?
11853 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11854 test $ac_status = 0; } && test -s conftest$ac_exeext; then
11855 case "$host_os" in
11856 # Handle native Windows specially, because there setlocale() interprets
11857 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
11858 # "fr" or "fra" as "French" or "French_France.1252",
11859 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
11860 # "ja" as "Japanese" or "Japanese_Japan.932",
11861 # and similar.
11862 mingw* | windows*)
11863 # Note that on native Windows, the Japanese locale is
11864 # Japanese_Japan.932, and CP932 is very different from EUC-JP, so we
11865 # cannot use it here.
11866 gt_cv_locale_ja=none
11867 ;;
11868 *)
11869 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
11870 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
11871 # configure script would override the LC_ALL setting. Likewise for
11872 # LC_CTYPE, which is also set at the beginning of the configure script.
11873 # Test for the AIX locale name.
11874 if (LC_ALL=ja_JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11875 gt_cv_locale_ja=ja_JP
11876 else
11877 # Test for the locale name with explicit encoding suffix.
11878 if (LC_ALL=ja_JP.EUC-JP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11879 gt_cv_locale_ja=ja_JP.EUC-JP
11880 else
11881 # Test for the HP-UX, OSF/1, NetBSD locale name.
11882 if (LC_ALL=ja_JP.eucJP LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11883 gt_cv_locale_ja=ja_JP.eucJP
11884 else
11885 # Test for the IRIX, FreeBSD locale name.
11886 if (LC_ALL=ja_JP.EUC LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11887 gt_cv_locale_ja=ja_JP.EUC
11888 else
11889 # Test for the Solaris 7 locale name.
11890 if (LC_ALL=ja LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
11891 gt_cv_locale_ja=ja
11892 else
11893 # Special test for NetBSD 1.6.
11894 if test -f /usr/share/locale/ja_JP.eucJP/LC_CTYPE; then
11895 gt_cv_locale_ja=ja_JP.eucJP
11896 else
11897 # None found.
11898 gt_cv_locale_ja=none
11899 fi
11900 fi
11901 fi
11902 fi
11903 fi
11904 fi
11905 ;;
11906 esac
11907 fi
11908 rm -fr conftest*
11909
11910 fi
11911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_ja" >&5
11912 printf "%s\n" "$gt_cv_locale_ja" >&6; }
11913 LOCALE_JA=$gt_cv_locale_ja
11914 case $LOCALE_JA in #(
11915 '' | *[[:space:]\"\$\'*[]*)
11916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid locale \"$LOCALE_JA\"; assuming \"none\"" >&5
11917 printf "%s\n" "$as_me: WARNING: invalid locale \"$LOCALE_JA\"; assuming \"none\"" >&2;}
11918 LOCALE_JA=none;;
11919 esac
11920
11921
11922
11923
11924
11925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a french Unicode locale" >&5
11926 printf %s "checking for a french Unicode locale... " >&6; }
11927 if test ${gt_cv_locale_fr_utf8+y}
11928 then :
11929 printf %s "(cached) " >&6
11930 else $as_nop
11931
11932 case "$host_os" in
11933 *-musl* | midipix*)
11934 gt_cv_locale_fr_utf8=fr_FR.UTF-8
11935 ;;
11936 *)
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938 /* end confdefs.h. */
11939
11940 #include <locale.h>
11941 #include <time.h>
11942 #if HAVE_LANGINFO_CODESET
11943 # include <langinfo.h>
11944 #endif
11945 #include <stdlib.h>
11946 #include <string.h>
11947 struct tm t;
11948 char buf[16];
11949 int main () {
11950 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
11951 imitates locale dependent behaviour by looking at the environment
11952 variables, and all locales use the UTF-8 encoding. */
11953 #if !(defined __BEOS__ || defined __HAIKU__)
11954 /* Check whether the given locale name is recognized by the system. */
11955 # if defined _WIN32 && !defined __CYGWIN__
11956 /* On native Windows, setlocale(category, "") looks at the system settings,
11957 not at the environment variables. Also, when an encoding suffix such
11958 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
11959 category of the locale to "C". */
11960 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
11961 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
11962 return 1;
11963 # else
11964 if (setlocale (LC_ALL, "") == NULL) return 1;
11965 # endif
11966 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
11967 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
11968 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
11969 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
11970 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
11971 some unit tests fail. */
11972 # if HAVE_LANGINFO_CODESET
11973 {
11974 const char *cs = nl_langinfo (CODESET);
11975 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0)
11976 return 1;
11977 }
11978 # endif
11979 # ifdef __CYGWIN__
11980 /* On Cygwin, avoid locale names without encoding suffix, because the
11981 locale_charset() function relies on the encoding suffix. Note that
11982 LC_ALL is set on the command line. */
11983 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
11984 # endif
11985 /* Check whether in the abbreviation of the second month, the second
11986 character (should be U+00E9: LATIN SMALL LETTER E WITH ACUTE) is
11987 two bytes long, with UTF-8 encoding. */
11988 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
11989 if (strftime (buf, sizeof (buf), "%b", &t) < 4
11990 || buf[1] != (char) 0xc3 || buf[2] != (char) 0xa9 || buf[3] != 'v')
11991 return 1;
11992 #endif
11993 #if !defined __BIONIC__ /* Bionic libc's 'struct lconv' is just a dummy. */
11994 /* Check whether the decimal separator is a comma.
11995 On NetBSD 3.0 in the fr_FR.ISO8859-1 locale, localeconv()->decimal_point
11996 are nl_langinfo(RADIXCHAR) are both ".". */
11997 if (localeconv () ->decimal_point[0] != ',') return 1;
11998 #endif
11999 return 0;
12000 }
12001
12002 _ACEOF
12003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12004 (eval $ac_link) 2>&5
12005 ac_status=$?
12006 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12007 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12008 case "$host_os" in
12009 # Handle native Windows specially, because there setlocale() interprets
12010 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12011 # "fr" or "fra" as "French" or "French_France.1252",
12012 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12013 # "ja" as "Japanese" or "Japanese_Japan.932",
12014 # and similar.
12015 mingw* | windows*)
12016 # Test for the hypothetical native Windows locale name.
12017 if (LC_ALL=French_France.65001 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12018 gt_cv_locale_fr_utf8=French_France.65001
12019 else
12020 # None found.
12021 gt_cv_locale_fr_utf8=none
12022 fi
12023 ;;
12024 *)
12025 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12026 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12027 # configure script would override the LC_ALL setting. Likewise for
12028 # LC_CTYPE, which is also set at the beginning of the configure script.
12029 # Test for the usual locale name.
12030 if (LC_ALL=fr_FR LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12031 gt_cv_locale_fr_utf8=fr_FR
12032 else
12033 # Test for the locale name with explicit encoding suffix.
12034 if (LC_ALL=fr_FR.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12035 gt_cv_locale_fr_utf8=fr_FR.UTF-8
12036 else
12037 # Test for the Solaris 7 locale name.
12038 if (LC_ALL=fr.UTF-8 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12039 gt_cv_locale_fr_utf8=fr.UTF-8
12040 else
12041 # None found.
12042 gt_cv_locale_fr_utf8=none
12043 fi
12044 fi
12045 fi
12046 ;;
12047 esac
12048 fi
12049 rm -fr conftest*
12050 ;;
12051 esac
12052
12053 fi
12054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_fr_utf8" >&5
12055 printf "%s\n" "$gt_cv_locale_fr_utf8" >&6; }
12056 LOCALE_FR_UTF8=$gt_cv_locale_fr_utf8
12057 case $LOCALE_FR_UTF8 in #(
12058 '' | *[[:space:]\"\$\'*[]*)
12059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid locale \"$LOCALE_FR_UTF8\"; assuming \"none\"" >&5
12060 printf "%s\n" "$as_me: WARNING: invalid locale \"$LOCALE_FR_UTF8\"; assuming \"none\"" >&2;}
12061 LOCALE_FR_UTF8=none;;
12062 esac
12063
12064
12065 case "$host_os" in
12066 *-musl* | midipix*)
12067 LC_COLLATE_IMPLEMENTED=false
12068 LC_NUMERIC_IMPLEMENTED=false
12069 LC_TIME_IMPLEMENTED=false
12070 LC_MONETARY_IMPLEMENTED=false
12071 ;;
12072 *)
12073 LC_COLLATE_IMPLEMENTED=true
12074 LC_NUMERIC_IMPLEMENTED=true
12075 LC_TIME_IMPLEMENTED=true
12076 LC_MONETARY_IMPLEMENTED=true
12077 ;;
12078 esac
12079
12080
12081
12082
12083
12084
12085
12086
12087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a transitional chinese locale" >&5
12088 printf %s "checking for a transitional chinese locale... " >&6; }
12089 if test ${gt_cv_locale_zh_CN+y}
12090 then :
12091 printf %s "(cached) " >&6
12092 else $as_nop
12093
12094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12095 /* end confdefs.h. */
12096
12097 #include <locale.h>
12098 #include <stdlib.h>
12099 #include <time.h>
12100 #if HAVE_LANGINFO_CODESET
12101 # include <langinfo.h>
12102 #endif
12103 #include <stdlib.h>
12104 #include <string.h>
12105 struct tm t;
12106 char buf[16];
12107 int main ()
12108 {
12109 /* On BeOS and Haiku, locales are not implemented in libc. Rather, libintl
12110 imitates locale dependent behaviour by looking at the environment
12111 variables, and all locales use the UTF-8 encoding. */
12112 #if defined __BEOS__ || defined __HAIKU__
12113 return 1;
12114 #else
12115 /* Check whether the given locale name is recognized by the system. */
12116 # if defined _WIN32 && !defined __CYGWIN__
12117 /* On native Windows, setlocale(category, "") looks at the system settings,
12118 not at the environment variables. Also, when an encoding suffix such
12119 as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
12120 category of the locale to "C". */
12121 if (setlocale (LC_ALL, getenv ("LC_ALL")) == NULL
12122 || strcmp (setlocale (LC_CTYPE, NULL), "C") == 0)
12123 return 1;
12124 # else
12125 if (setlocale (LC_ALL, "") == NULL) return 1;
12126 # endif
12127 /* Check whether nl_langinfo(CODESET) is nonempty and not "ASCII" or "646".
12128 On Mac OS X 10.3.5 (Darwin 7.5) in the fr_FR locale, nl_langinfo(CODESET)
12129 is empty, and the behaviour of Tcl 8.4 in this locale is not useful.
12130 On OpenBSD 4.0, when an unsupported locale is specified, setlocale()
12131 succeeds but then nl_langinfo(CODESET) is "646". In this situation,
12132 some unit tests fail.
12133 On MirBSD 10, when an unsupported locale is specified, setlocale()
12134 succeeds but then nl_langinfo(CODESET) is "UTF-8". */
12135 # if HAVE_LANGINFO_CODESET
12136 {
12137 const char *cs = nl_langinfo (CODESET);
12138 if (cs[0] == '\0' || strcmp (cs, "ASCII") == 0 || strcmp (cs, "646") == 0
12139 || strcmp (cs, "UTF-8") == 0)
12140 return 1;
12141 }
12142 # endif
12143 # ifdef __CYGWIN__
12144 /* On Cygwin, avoid locale names without encoding suffix, because the
12145 locale_charset() function relies on the encoding suffix. Note that
12146 LC_ALL is set on the command line. */
12147 if (strchr (getenv ("LC_ALL"), '.') == NULL) return 1;
12148 # endif
12149 /* Check whether in a month name, no byte in the range 0x80..0x9F occurs.
12150 This excludes the UTF-8 encoding (except on MirBSD). */
12151 {
12152 const char *p;
12153 t.tm_year = 1975 - 1900; t.tm_mon = 2 - 1; t.tm_mday = 4;
12154 if (strftime (buf, sizeof (buf), "%B", &t) < 2) return 1;
12155 for (p = buf; *p != '\0'; p++)
12156 if ((unsigned char) *p >= 0x80 && (unsigned char) *p < 0xa0)
12157 return 1;
12158 }
12159 /* Check whether a typical GB18030 multibyte sequence is recognized as a
12160 single wide character. This excludes the GB2312 and GBK encodings. */
12161 if (mblen ("\203\062\332\066", 5) != 4)
12162 return 1;
12163 return 0;
12164 #endif
12165 }
12166
12167 _ACEOF
12168 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12169 (eval $ac_link) 2>&5
12170 ac_status=$?
12171 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12172 test $ac_status = 0; } && test -s conftest$ac_exeext; then
12173 case "$host_os" in
12174 # Handle native Windows specially, because there setlocale() interprets
12175 # "ar" as "Arabic" or "Arabic_Saudi Arabia.1256",
12176 # "fr" or "fra" as "French" or "French_France.1252",
12177 # "ge"(!) or "deu"(!) as "German" or "German_Germany.1252",
12178 # "ja" as "Japanese" or "Japanese_Japan.932",
12179 # and similar.
12180 mingw* | windows*)
12181 # Test for the hypothetical native Windows locale name.
12182 if (LC_ALL=Chinese_China.54936 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12183 gt_cv_locale_zh_CN=Chinese_China.54936
12184 else
12185 # None found.
12186 gt_cv_locale_zh_CN=none
12187 fi
12188 ;;
12189 solaris2.8)
12190 # On Solaris 8, the locales zh_CN.GB18030, zh_CN.GBK, zh.GBK are
12191 # broken. One witness is the test case in gl_MBRTOWC_SANITYCHECK.
12192 # Another witness is that "LC_ALL=zh_CN.GB18030 bash -c true" dumps core.
12193 gt_cv_locale_zh_CN=none
12194 ;;
12195 *)
12196 # Setting LC_ALL is not enough. Need to set LC_TIME to empty, because
12197 # otherwise on Mac OS X 10.3.5 the LC_TIME=C from the beginning of the
12198 # configure script would override the LC_ALL setting. Likewise for
12199 # LC_CTYPE, which is also set at the beginning of the configure script.
12200 # Test for the locale name without encoding suffix.
12201 if (LC_ALL=zh_CN LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12202 gt_cv_locale_zh_CN=zh_CN
12203 else
12204 # Test for the locale name with explicit encoding suffix.
12205 if (LC_ALL=zh_CN.GB18030 LC_TIME= LC_CTYPE= ./conftest; exit) 2>/dev/null; then
12206 gt_cv_locale_zh_CN=zh_CN.GB18030
12207 else
12208 # None found.
12209 gt_cv_locale_zh_CN=none
12210 fi
12211 fi
12212 ;;
12213 esac
12214 else
12215 # If there was a link error, due to mblen(), the system is so old that
12216 # it certainly doesn't have a chinese locale.
12217 gt_cv_locale_zh_CN=none
12218 fi
12219 rm -fr conftest*
12220
12221 fi
12222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_locale_zh_CN" >&5
12223 printf "%s\n" "$gt_cv_locale_zh_CN" >&6; }
12224 LOCALE_ZH_CN=$gt_cv_locale_zh_CN
12225 case $LOCALE_ZH_CN in #(
12226 '' | *[[:space:]\"\$\'*[]*)
12227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: invalid locale \"$LOCALE_ZH_CN\"; assuming \"none\"" >&5
12228 printf "%s\n" "$as_me: WARNING: invalid locale \"$LOCALE_ZH_CN\"; assuming \"none\"" >&2;}
12229 LOCALE_ZH_CN=none;;
12230 esac
12231
12232
12233
12234
12235
12236
12237
12238
12239
12240 if case "$host_os" in
12241 mingw* | windows*) true ;;
12242 *) test $ac_cv_func_mbsinit = yes ;;
12243 esac \
12244 && test $ac_cv_func_mbrtowc = yes; then
12245
12246
12247
12248
12249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc handles incomplete characters" >&5
12250 printf %s "checking whether mbrtowc handles incomplete characters... " >&6; }
12251 if test ${gl_cv_func_mbrtowc_incomplete_state+y}
12252 then :
12253 printf %s "(cached) " >&6
12254 else $as_nop
12255
12256 case "$host_os" in
12257 # Guess no on AIX and OSF/1.
12258 aix* | osf*) gl_cv_func_mbrtowc_incomplete_state="guessing no" ;;
12259 # Guess yes otherwise.
12260 *) gl_cv_func_mbrtowc_incomplete_state="guessing yes" ;;
12261 esac
12262 if test $LOCALE_JA != none; then
12263 if test "$cross_compiling" = yes
12264 then :
12265 :
12266 else $as_nop
12267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12268 /* end confdefs.h. */
12269
12270 #include <locale.h>
12271 #include <string.h>
12272 #include <wchar.h>
12273 int main ()
12274 {
12275 if (setlocale (LC_ALL, "$LOCALE_JA") != NULL)
12276 {
12277 const char input[] = "B\217\253\344\217\251\316er"; /* "Büßer" */
12278 mbstate_t state;
12279 wchar_t wc;
12280
12281 memset (&state, '\0', sizeof (mbstate_t));
12282 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12283 if (mbsinit (&state))
12284 return 2;
12285 }
12286 return 0;
12287 }
12288 _ACEOF
12289 if ac_fn_c_try_run "$LINENO"
12290 then :
12291 gl_cv_func_mbrtowc_incomplete_state=yes
12292 else $as_nop
12293 gl_cv_func_mbrtowc_incomplete_state=no
12294 fi
12295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12296 conftest.$ac_objext conftest.beam conftest.$ac_ext
12297 fi
12298
12299 else
12300 if test $LOCALE_FR_UTF8 != none; then
12301 if test "$cross_compiling" = yes
12302 then :
12303 :
12304 else $as_nop
12305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12306 /* end confdefs.h. */
12307
12308 #include <locale.h>
12309 #include <string.h>
12310 #include <wchar.h>
12311 int main ()
12312 {
12313 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
12314 {
12315 const char input[] = "B\303\274\303\237er"; /* "Büßer" */
12316 mbstate_t state;
12317 wchar_t wc;
12318
12319 memset (&state, '\0', sizeof (mbstate_t));
12320 if (mbrtowc (&wc, input + 1, 1, &state) == (size_t)(-2))
12321 if (mbsinit (&state))
12322 return 2;
12323 }
12324 return 0;
12325 }
12326 _ACEOF
12327 if ac_fn_c_try_run "$LINENO"
12328 then :
12329 gl_cv_func_mbrtowc_incomplete_state=yes
12330 else $as_nop
12331 gl_cv_func_mbrtowc_incomplete_state=no
12332 fi
12333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12334 conftest.$ac_objext conftest.beam conftest.$ac_ext
12335 fi
12336
12337 fi
12338 fi
12339
12340 fi
12341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_incomplete_state" >&5
12342 printf "%s\n" "$gl_cv_func_mbrtowc_incomplete_state" >&6; }
12343
12344
12345
12346
12347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether mbrtowc works as well as mbtowc" >&5
12348 printf %s "checking whether mbrtowc works as well as mbtowc... " >&6; }
12349 if test ${gl_cv_func_mbrtowc_sanitycheck+y}
12350 then :
12351 printf %s "(cached) " >&6
12352 else $as_nop
12353
12354 case "$host_os" in
12355 # Guess no on Solaris 8.
12356 solaris2.8) gl_cv_func_mbrtowc_sanitycheck="guessing no" ;;
12357 # Guess yes otherwise.
12358 *) gl_cv_func_mbrtowc_sanitycheck="guessing yes" ;;
12359 esac
12360 if test $LOCALE_ZH_CN != none; then
12361 if test "$cross_compiling" = yes
12362 then :
12363 :
12364 else $as_nop
12365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12366 /* end confdefs.h. */
12367
12368 #include <locale.h>
12369 #include <stdlib.h>
12370 #include <string.h>
12371 #include <wchar.h>
12372 int main ()
12373 {
12374 /* This fails on Solaris 8:
12375 mbrtowc returns 2, and sets wc to 0x00F0.
12376 mbtowc returns 4 (correct) and sets wc to 0x5EDC. */
12377 if (setlocale (LC_ALL, "$LOCALE_ZH_CN") != NULL)
12378 {
12379 char input[] = "B\250\271\201\060\211\070er"; /* "Büßer" */
12380 mbstate_t state;
12381 wchar_t wc;
12382
12383 memset (&state, '\0', sizeof (mbstate_t));
12384 if (mbrtowc (&wc, input + 3, 6, &state) != 4
12385 && mbtowc (&wc, input + 3, 6) == 4)
12386 return 2;
12387 }
12388 return 0;
12389 }
12390 _ACEOF
12391 if ac_fn_c_try_run "$LINENO"
12392 then :
12393 gl_cv_func_mbrtowc_sanitycheck=yes
12394 else $as_nop
12395 gl_cv_func_mbrtowc_sanitycheck=no
12396 fi
12397 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12398 conftest.$ac_objext conftest.beam conftest.$ac_ext
12399 fi
12400
12401 fi
12402
12403 fi
12404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_mbrtowc_sanitycheck" >&5
12405 printf "%s\n" "$gl_cv_func_mbrtowc_sanitycheck" >&6; }
12406
12407 REPLACE_MBSTATE_T=0
12408 case "$gl_cv_func_mbrtowc_incomplete_state" in
12409 *yes) ;;
12410 *) REPLACE_MBSTATE_T=1 ;;
12411 esac
12412 case "$gl_cv_func_mbrtowc_sanitycheck" in
12413 *yes) ;;
12414 *) REPLACE_MBSTATE_T=1 ;;
12415 esac
12416 else
12417 REPLACE_MBSTATE_T=1
12418 fi
12419
12420
12421
12422 case "$host_os" in
12423 *-musl* | midipix*)
12424
12425 printf "%s\n" "#define MUSL_LIBC 1" >>confdefs.h
12426
12427 ;;
12428 esac
12429
12430
12431
12432 GL_GNULIB_BTOWC=0
12433
12434
12435
12436 GL_GNULIB_WCTOB=0
12437
12438
12439
12440 GL_GNULIB_MBSINIT=0
12441
12442
12443
12444 GL_GNULIB_MBSZERO=0
12445
12446
12447
12448 GL_GNULIB_MBRTOWC=0
12449
12450
12451
12452 GL_GNULIB_MBRLEN=0
12453
12454
12455
12456 GL_GNULIB_MBSRTOWCS=0
12457
12458
12459
12460 GL_GNULIB_MBSNRTOWCS=0
12461
12462
12463
12464 GL_GNULIB_WCRTOMB=0
12465
12466
12467
12468 GL_GNULIB_WCSRTOMBS=0
12469
12470
12471
12472 GL_GNULIB_WCSNRTOMBS=0
12473
12474
12475
12476 GL_GNULIB_WCWIDTH=0
12477
12478
12479
12480 GL_GNULIB_WMEMCHR=0
12481
12482
12483
12484 GL_GNULIB_WMEMCMP=0
12485
12486
12487
12488 GL_GNULIB_WMEMCPY=0
12489
12490
12491
12492 GL_GNULIB_WMEMMOVE=0
12493
12494
12495
12496 GL_GNULIB_WMEMPCPY=0
12497
12498
12499
12500 GL_GNULIB_WMEMSET=0
12501
12502
12503
12504 GL_GNULIB_WCSLEN=0
12505
12506
12507
12508 GL_GNULIB_WCSNLEN=0
12509
12510
12511
12512 GL_GNULIB_WCSCPY=0
12513
12514
12515
12516 GL_GNULIB_WCPCPY=0
12517
12518
12519
12520 GL_GNULIB_WCSNCPY=0
12521
12522
12523
12524 GL_GNULIB_WCPNCPY=0
12525
12526
12527
12528 GL_GNULIB_WCSCAT=0
12529
12530
12531
12532 GL_GNULIB_WCSNCAT=0
12533
12534
12535
12536 GL_GNULIB_WCSCMP=0
12537
12538
12539
12540 GL_GNULIB_WCSNCMP=0
12541
12542
12543
12544 GL_GNULIB_WCSCASECMP=0
12545
12546
12547
12548 GL_GNULIB_WCSNCASECMP=0
12549
12550
12551
12552 GL_GNULIB_WCSCOLL=0
12553
12554
12555
12556 GL_GNULIB_WCSXFRM=0
12557
12558
12559
12560 GL_GNULIB_WCSDUP=0
12561
12562
12563
12564 GL_GNULIB_WCSCHR=0
12565
12566
12567
12568 GL_GNULIB_WCSRCHR=0
12569
12570
12571
12572 GL_GNULIB_WCSCSPN=0
12573
12574
12575
12576 GL_GNULIB_WCSSPN=0
12577
12578
12579
12580 GL_GNULIB_WCSPBRK=0
12581
12582
12583
12584 GL_GNULIB_WCSSTR=0
12585
12586
12587
12588 GL_GNULIB_WCSTOK=0
12589
12590
12591
12592 GL_GNULIB_WCSWIDTH=0
12593
12594
12595
12596 GL_GNULIB_WCSFTIME=0
12597
12598
12599
12600 GL_GNULIB_WGETCWD=0
12601
12602
12603
12604 GL_GNULIB_MDA_WCSDUP=1
12605
12606
12607
12608
12609
12610
12611 # Check for mmap(). Don't use AC_FUNC_MMAP, because it checks too much: it
12612 # fails on HP-UX 11, because MAP_FIXED mappings do not work. But this is
12613 # irrelevant for anonymous mappings.
12614 ac_fn_c_check_func "$LINENO" "mmap" "ac_cv_func_mmap"
12615 if test "x$ac_cv_func_mmap" = xyes
12616 then :
12617 gl_have_mmap=yes
12618 else $as_nop
12619 gl_have_mmap=no
12620 fi
12621
12622
12623 # Try to allow MAP_ANONYMOUS.
12624 gl_have_mmap_anonymous=no
12625 if test $gl_have_mmap = yes; then
12626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS" >&5
12627 printf %s "checking for MAP_ANONYMOUS... " >&6; }
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12630
12631 #include <sys/mman.h>
12632 #ifdef MAP_ANONYMOUS
12633 I cannot identify this map
12634 #endif
12635
12636 _ACEOF
12637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12638 $EGREP "I cannot identify this map" >/dev/null 2>&1
12639 then :
12640 gl_have_mmap_anonymous=yes
12641 fi
12642 rm -rf conftest*
12643
12644 if test $gl_have_mmap_anonymous != yes; then
12645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12646 /* end confdefs.h. */
12647
12648 #include <sys/mman.h>
12649 #ifdef MAP_ANON
12650 I cannot identify this map
12651 #endif
12652
12653 _ACEOF
12654 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12655 $EGREP "I cannot identify this map" >/dev/null 2>&1
12656 then :
12657
12658 printf "%s\n" "#define MAP_ANONYMOUS MAP_ANON" >>confdefs.h
12659
12660 gl_have_mmap_anonymous=yes
12661 fi
12662 rm -rf conftest*
12663
12664 fi
12665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_have_mmap_anonymous" >&5
12666 printf "%s\n" "$gl_have_mmap_anonymous" >&6; }
12667 if test $gl_have_mmap_anonymous = yes; then
12668
12669 printf "%s\n" "#define HAVE_MAP_ANONYMOUS 1" >>confdefs.h
12670
12671 fi
12672 fi
12673
12674
12675
12676
12677 HAVE_MBSLEN=0;
12678 HAVE_EXPLICIT_BZERO=1;
12679 HAVE_FFSL=1;
12680 HAVE_FFSLL=1;
12681 HAVE_DECL_MEMMEM=1;
12682 HAVE_MEMPCPY=1;
12683 HAVE_MEMSET_EXPLICIT=1;
12684 HAVE_DECL_MEMRCHR=1;
12685 HAVE_RAWMEMCHR=1;
12686 HAVE_STPCPY=1;
12687 HAVE_STPNCPY=1;
12688 HAVE_STRCHRNUL=1;
12689 HAVE_DECL_STRDUP=1;
12690 HAVE_DECL_STRNDUP=1;
12691 HAVE_DECL_STRNLEN=1;
12692 HAVE_STRPBRK=1;
12693 HAVE_STRSEP=1;
12694 HAVE_STRCASESTR=1;
12695 HAVE_DECL_STRTOK_R=1;
12696 HAVE_DECL_STRERROR_R=1;
12697 HAVE_STRERRORNAME_NP=1;
12698 HAVE_SIGABBREV_NP=1;
12699 HAVE_SIGDESCR_NP=1;
12700 HAVE_DECL_STRSIGNAL=1;
12701 HAVE_STRVERSCMP=1;
12702 REPLACE_FFSLL=0;
12703 REPLACE_MEMCHR=0;
12704 REPLACE_MEMMEM=0;
12705 REPLACE_MEMPCPY=0;
12706 REPLACE_STPCPY=0;
12707 REPLACE_STPNCPY=0;
12708 REPLACE_STRCHRNUL=0;
12709 REPLACE_STRDUP=0;
12710 REPLACE_STRNCAT=0;
12711 REPLACE_STRNDUP=0;
12712 REPLACE_STRNLEN=0;
12713 REPLACE_STRSTR=0;
12714 REPLACE_STRCASESTR=0;
12715 REPLACE_STRTOK_R=0;
12716 REPLACE_STRERROR=0;
12717 REPLACE_STRERROR_R=0;
12718 REPLACE_STRERRORNAME_NP=0;
12719 REPLACE_STRSIGNAL=0;
12720 UNDEFINE_STRTOK_R=0;
12721
12722
12723
12724
12725
12726
12727
12728
12729 # Detect platform-specific bugs in some versions of glibc:
12730 # memchr should not dereference anything with length 0
12731 # https://bugzilla.redhat.com/show_bug.cgi?id=499689
12732 # memchr should not dereference overestimated length after a match
12733 # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=521737
12734 # https://sourceware.org/bugzilla/show_bug.cgi?id=10162
12735 # memchr should cast the second argument to 'unsigned char'.
12736 # This bug exists in Android 4.3.
12737 # Assume that memchr works on platforms that lack mprotect.
12738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether memchr works" >&5
12739 printf %s "checking whether memchr works... " >&6; }
12740 if test ${gl_cv_func_memchr_works+y}
12741 then :
12742 printf %s "(cached) " >&6
12743 else $as_nop
12744 if test "$cross_compiling" = yes
12745 then :
12746 case "$host_os" in
12747 # Guess no on Android.
12748 linux*-android*) gl_cv_func_memchr_works="guessing no" ;;
12749 # Guess yes on native Windows.
12750 mingw* | windows*) gl_cv_func_memchr_works="guessing yes" ;;
12751 # If we don't know, obey --enable-cross-guesses.
12752 *) gl_cv_func_memchr_works="$gl_cross_guess_normal" ;;
12753 esac
12754
12755 else $as_nop
12756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12757 /* end confdefs.h. */
12758
12759 #include <string.h>
12760 #if HAVE_SYS_MMAN_H
12761 # include <fcntl.h>
12762 # include <unistd.h>
12763 # include <sys/types.h>
12764 # include <sys/mman.h>
12765 # ifndef MAP_FILE
12766 # define MAP_FILE 0
12767 # endif
12768 #endif
12769
12770 int
12771 main (void)
12772 {
12773
12774 int result = 0;
12775 char *fence = NULL;
12776 #if HAVE_SYS_MMAN_H && HAVE_MPROTECT
12777 # if HAVE_MAP_ANONYMOUS
12778 const int flags = MAP_ANONYMOUS | MAP_PRIVATE;
12779 const int fd = -1;
12780 # else /* !HAVE_MAP_ANONYMOUS */
12781 const int flags = MAP_FILE | MAP_PRIVATE;
12782 int fd = open ("/dev/zero", O_RDONLY, 0666);
12783 if (fd >= 0)
12784 # endif
12785 {
12786 int pagesize = getpagesize ();
12787 char *two_pages =
12788 (char *) mmap (NULL, 2 * pagesize, PROT_READ | PROT_WRITE,
12789 flags, fd, 0);
12790 if (two_pages != (char *)(-1)
12791 && mprotect (two_pages + pagesize, pagesize, PROT_NONE) == 0)
12792 fence = two_pages + pagesize;
12793 }
12794 #endif
12795 if (fence)
12796 {
12797 /* Test against bugs on glibc systems. */
12798 if (memchr (fence, 0, 0))
12799 result |= 1;
12800 strcpy (fence - 9, "12345678");
12801 if (memchr (fence - 9, 0, 79) != fence - 1)
12802 result |= 2;
12803 if (memchr (fence - 1, 0, 3) != fence - 1)
12804 result |= 4;
12805 /* Test against bug on AIX 7.2. */
12806 if (memchr (fence - 4, '6', 16) != fence - 4)
12807 result |= 8;
12808 }
12809 /* Test against bug on Android 4.3. */
12810 {
12811 char input[3];
12812 input[0] = 'a';
12813 input[1] = 'b';
12814 input[2] = 'c';
12815 if (memchr (input, 0x789abc00 | 'b', 3) != input + 1)
12816 result |= 16;
12817 }
12818 return result;
12819
12820 ;
12821 return 0;
12822 }
12823 _ACEOF
12824 if ac_fn_c_try_run "$LINENO"
12825 then :
12826 gl_cv_func_memchr_works=yes
12827 else $as_nop
12828 gl_cv_func_memchr_works=no
12829 fi
12830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12831 conftest.$ac_objext conftest.beam conftest.$ac_ext
12832 fi
12833
12834
12835 fi
12836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_memchr_works" >&5
12837 printf "%s\n" "$gl_cv_func_memchr_works" >&6; }
12838 case "$gl_cv_func_memchr_works" in
12839 *yes) ;;
12840 *) REPLACE_MEMCHR=1 ;;
12841 esac
12842
12843
12844
12845 GL_GNULIB_EXPLICIT_BZERO=0
12846
12847
12848
12849 GL_GNULIB_FFSL=0
12850
12851
12852
12853 GL_GNULIB_FFSLL=0
12854
12855
12856
12857 GL_GNULIB_MEMCHR=0
12858
12859
12860
12861 GL_GNULIB_MEMMEM=0
12862
12863
12864
12865 GL_GNULIB_MEMPCPY=0
12866
12867
12868
12869 GL_GNULIB_MEMRCHR=0
12870
12871
12872
12873 GL_GNULIB_MEMSET_EXPLICIT=0
12874
12875
12876
12877 GL_GNULIB_RAWMEMCHR=0
12878
12879
12880
12881 GL_GNULIB_STPCPY=0
12882
12883
12884
12885 GL_GNULIB_STPNCPY=0
12886
12887
12888
12889 GL_GNULIB_STRCHRNUL=0
12890
12891
12892
12893 GL_GNULIB_STRDUP=0
12894
12895
12896
12897 GL_GNULIB_STRNCAT=0
12898
12899
12900
12901 GL_GNULIB_STRNDUP=0
12902
12903
12904
12905 GL_GNULIB_STRNLEN=0
12906
12907
12908
12909 GL_GNULIB_STRPBRK=0
12910
12911
12912
12913 GL_GNULIB_STRSEP=0
12914
12915
12916
12917 GL_GNULIB_STRSTR=0
12918
12919
12920
12921 GL_GNULIB_STRCASESTR=0
12922
12923
12924
12925 GL_GNULIB_STRTOK_R=0
12926
12927
12928
12929 GL_GNULIB_MBSLEN=0
12930
12931
12932
12933 GL_GNULIB_MBSNLEN=0
12934
12935
12936
12937 GL_GNULIB_MBSCHR=0
12938
12939
12940
12941 GL_GNULIB_MBSRCHR=0
12942
12943
12944
12945 GL_GNULIB_MBSSTR=0
12946
12947
12948
12949 GL_GNULIB_MBSCASECMP=0
12950
12951
12952
12953 GL_GNULIB_MBSNCASECMP=0
12954
12955
12956
12957 GL_GNULIB_MBSPCASECMP=0
12958
12959
12960
12961 GL_GNULIB_MBSCASESTR=0
12962
12963
12964
12965 GL_GNULIB_MBSCSPN=0
12966
12967
12968
12969 GL_GNULIB_MBSPBRK=0
12970
12971
12972
12973 GL_GNULIB_MBSSPN=0
12974
12975
12976
12977 GL_GNULIB_MBSSEP=0
12978
12979
12980
12981 GL_GNULIB_MBSTOK_R=0
12982
12983
12984
12985 GL_GNULIB_STRERROR=0
12986
12987
12988
12989 GL_GNULIB_STRERROR_R=0
12990
12991
12992
12993 GL_GNULIB_STRERRORNAME_NP=0
12994
12995
12996
12997 GL_GNULIB_SIGABBREV_NP=0
12998
12999
13000
13001 GL_GNULIB_SIGDESCR_NP=0
13002
13003
13004
13005 GL_GNULIB_STRSIGNAL=0
13006
13007
13008
13009 GL_GNULIB_STRVERSCMP=0
13010
13011
13012
13013 GL_GNULIB_MDA_MEMCCPY=1
13014
13015
13016
13017 GL_GNULIB_MDA_STRDUP=1
13018
13019
13020
13021
13022
13023
13024
13025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <limits.h> defines MIN and MAX" >&5
13026 printf %s "checking whether <limits.h> defines MIN and MAX... " >&6; }
13027 if test ${gl_cv_minmax_in_limits_h+y}
13028 then :
13029 printf %s "(cached) " >&6
13030 else $as_nop
13031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13032 /* end confdefs.h. */
13033 #include <limits.h>
13034 int x = MIN (42, 17);
13035 int
13036 main (void)
13037 {
13038
13039 ;
13040 return 0;
13041 }
13042 _ACEOF
13043 if ac_fn_c_try_compile "$LINENO"
13044 then :
13045 gl_cv_minmax_in_limits_h=yes
13046 else $as_nop
13047 gl_cv_minmax_in_limits_h=no
13048 fi
13049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13050 fi
13051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_limits_h" >&5
13052 printf "%s\n" "$gl_cv_minmax_in_limits_h" >&6; }
13053 if test $gl_cv_minmax_in_limits_h = yes; then
13054
13055 printf "%s\n" "#define HAVE_MINMAX_IN_LIMITS_H 1" >>confdefs.h
13056
13057 fi
13058
13059
13060
13061
13062
13063
13064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <sys/param.h> defines MIN and MAX" >&5
13065 printf %s "checking whether <sys/param.h> defines MIN and MAX... " >&6; }
13066 if test ${gl_cv_minmax_in_sys_param_h+y}
13067 then :
13068 printf %s "(cached) " >&6
13069 else $as_nop
13070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13071 /* end confdefs.h. */
13072 #include <sys/param.h>
13073 int x = MIN (42, 17);
13074 int
13075 main (void)
13076 {
13077
13078 ;
13079 return 0;
13080 }
13081 _ACEOF
13082 if ac_fn_c_try_compile "$LINENO"
13083 then :
13084 gl_cv_minmax_in_sys_param_h=yes
13085 else $as_nop
13086 gl_cv_minmax_in_sys_param_h=no
13087 fi
13088 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13089 fi
13090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_minmax_in_sys_param_h" >&5
13091 printf "%s\n" "$gl_cv_minmax_in_sys_param_h" >&6; }
13092 if test $gl_cv_minmax_in_sys_param_h = yes; then
13093
13094 printf "%s\n" "#define HAVE_MINMAX_IN_SYS_PARAM_H 1" >>confdefs.h
13095
13096 fi
13097
13098
13099
13100
13101
13102
13103
13104
13105
13106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for O_CLOEXEC" >&5
13107 printf %s "checking for O_CLOEXEC... " >&6; }
13108 if test ${gl_cv_macro_O_CLOEXEC+y}
13109 then :
13110 printf %s "(cached) " >&6
13111 else $as_nop
13112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13113 /* end confdefs.h. */
13114 #include <fcntl.h>
13115 #ifndef O_CLOEXEC
13116 choke me;
13117 #endif
13118
13119 int
13120 main (void)
13121 {
13122 return O_CLOEXEC;
13123 ;
13124 return 0;
13125 }
13126 _ACEOF
13127 if ac_fn_c_try_compile "$LINENO"
13128 then :
13129 gl_cv_macro_O_CLOEXEC=yes
13130 else $as_nop
13131 gl_cv_macro_O_CLOEXEC=no
13132 fi
13133 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13134 fi
13135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_O_CLOEXEC" >&5
13136 printf "%s\n" "$gl_cv_macro_O_CLOEXEC" >&6; }
13137
13138
13139
13140
13141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for promoted mode_t type" >&5
13142 printf %s "checking for promoted mode_t type... " >&6; }
13143 if test ${gl_cv_promoted_mode_t+y}
13144 then :
13145 printf %s "(cached) " >&6
13146 else $as_nop
13147
13148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13149 /* end confdefs.h. */
13150 #include <sys/types.h>
13151 int
13152 main (void)
13153 {
13154 typedef int array[2 * (sizeof (mode_t) < sizeof (int)) - 1];
13155 ;
13156 return 0;
13157 }
13158 _ACEOF
13159 if ac_fn_c_try_compile "$LINENO"
13160 then :
13161 gl_cv_promoted_mode_t='int'
13162 else $as_nop
13163 gl_cv_promoted_mode_t='mode_t'
13164 fi
13165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13166
13167 fi
13168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_promoted_mode_t" >&5
13169 printf "%s\n" "$gl_cv_promoted_mode_t" >&6; }
13170
13171 printf "%s\n" "#define PROMOTED_MODE_T $gl_cv_promoted_mode_t" >>confdefs.h
13172
13173
13174
13175
13176
13177
13178 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
13179 REPLACE_REALLOC_FOR_REALLOC_POSIX=1
13180 fi
13181
13182
13183 HAVE_DECL_FCLOSEALL=1;
13184 HAVE_DECL_FPURGE=1;
13185 HAVE_DECL_FSEEKO=1;
13186 HAVE_DECL_FTELLO=1;
13187 HAVE_DECL_GETDELIM=1;
13188 HAVE_DECL_GETLINE=1;
13189 HAVE_DECL_GETW=1;
13190 HAVE_DECL_OBSTACK_PRINTF=1;
13191 HAVE_DECL_PUTW=1;
13192 HAVE_DECL_SNPRINTF=1;
13193 HAVE_DECL_VSNPRINTF=1;
13194 HAVE_DPRINTF=1;
13195 HAVE_FSEEKO=1;
13196 HAVE_FTELLO=1;
13197 HAVE_PCLOSE=1;
13198 HAVE_POPEN=1;
13199 HAVE_RENAMEAT=1;
13200 HAVE_VASPRINTF=1;
13201 HAVE_VDPRINTF=1;
13202 REPLACE_DPRINTF=0;
13203 REPLACE_FCLOSE=0;
13204 REPLACE_FDOPEN=0;
13205 REPLACE_FFLUSH=0;
13206 REPLACE_FOPEN=0;
13207 REPLACE_FOPEN_FOR_FOPEN_GNU=0;
13208 REPLACE_FPRINTF=0;
13209 REPLACE_FPURGE=0;
13210 REPLACE_FREOPEN=0;
13211 REPLACE_FSEEK=0;
13212 REPLACE_FSEEKO=0;
13213 REPLACE_FTELL=0;
13214 REPLACE_FTELLO=0;
13215 REPLACE_GETDELIM=0;
13216 REPLACE_GETLINE=0;
13217 REPLACE_OBSTACK_PRINTF=0;
13218 REPLACE_PERROR=0;
13219 REPLACE_POPEN=0;
13220 REPLACE_PRINTF=0;
13221 REPLACE_REMOVE=0;
13222 REPLACE_RENAME=0;
13223 REPLACE_RENAMEAT=0;
13224 REPLACE_SNPRINTF=0;
13225 REPLACE_SPRINTF=0;
13226 REPLACE_STDIO_READ_FUNCS=0;
13227 REPLACE_STDIO_WRITE_FUNCS=0;
13228 REPLACE_TMPFILE=0;
13229 REPLACE_VASPRINTF=0;
13230 REPLACE_VDPRINTF=0;
13231 REPLACE_VFPRINTF=0;
13232 REPLACE_VPRINTF=0;
13233 REPLACE_VSNPRINTF=0;
13234 REPLACE_VSPRINTF=0;
13235
13236
13237
13238
13239
13240
13241
13242
13243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf returns a byte count as in C99" >&5
13244 printf %s "checking whether snprintf returns a byte count as in C99... " >&6; }
13245 if test ${gl_cv_func_snprintf_retval_c99+y}
13246 then :
13247 printf %s "(cached) " >&6
13248 else $as_nop
13249
13250 if test "$cross_compiling" = yes
13251 then :
13252 case "$host_os" in
13253 # Guess yes on glibc systems.
13254 *-gnu* | gnu*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13255 # Guess yes on musl systems.
13256 *-musl* | midipix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13257 # Guess yes on FreeBSD >= 5.
13258 freebsd[1-4].*) gl_cv_func_snprintf_retval_c99="guessing no";;
13259 freebsd* | kfreebsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13260 midnightbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13261 # Guess yes on Mac OS X >= 10.3.
13262 darwin[1-6].*) gl_cv_func_snprintf_retval_c99="guessing no";;
13263 darwin*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13264 # Guess yes on OpenBSD >= 3.9.
13265 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
13266 gl_cv_func_snprintf_retval_c99="guessing no";;
13267 openbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13268 # Guess yes on Solaris >= 2.10.
13269 solaris2.[1-9][0-9]*) gl_cv_func_printf_sizes_c99="guessing yes";;
13270 solaris*) gl_cv_func_printf_sizes_c99="guessing no";;
13271 # Guess yes on AIX >= 4.
13272 aix[1-3]*) gl_cv_func_snprintf_retval_c99="guessing no";;
13273 aix*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13274 # Guess yes on NetBSD >= 3.
13275 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
13276 gl_cv_func_snprintf_retval_c99="guessing no";;
13277 netbsd*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13278 # Guess yes on BeOS.
13279 beos*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13280 # Guess yes on Android.
13281 linux*-android*) gl_cv_func_snprintf_retval_c99="guessing yes";;
13282 # Guess yes on MSVC, no on mingw.
13283 windows*-msvc*) gl_cv_func_snprintf_retval_c99="guessing yes" ;;
13284 mingw* | windows*) cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13285 /* end confdefs.h. */
13286
13287 #ifdef _MSC_VER
13288 Known
13289 #endif
13290
13291 _ACEOF
13292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13293 $EGREP "Known" >/dev/null 2>&1
13294 then :
13295 gl_cv_func_snprintf_retval_c99="guessing yes"
13296 else $as_nop
13297 gl_cv_func_snprintf_retval_c99="guessing no"
13298 fi
13299 rm -rf conftest*
13300
13301 ;;
13302 # If we don't know, obey --enable-cross-guesses.
13303 *) gl_cv_func_snprintf_retval_c99="$gl_cross_guess_normal";;
13304 esac
13305
13306 else $as_nop
13307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13308 /* end confdefs.h. */
13309
13310 #include <stdio.h>
13311 #include <string.h>
13312 #if HAVE_SNPRINTF
13313 # define my_snprintf snprintf
13314 #else
13315 # include <stdarg.h>
13316 static int my_snprintf (char *buf, int size, const char *format, ...)
13317 {
13318 va_list args;
13319 int ret;
13320 va_start (args, format);
13321 ret = vsnprintf (buf, size, format, args);
13322 va_end (args);
13323 return ret;
13324 }
13325 #endif
13326 static char buf[100];
13327 int main ()
13328 {
13329 strcpy (buf, "ABCDEF");
13330 if (my_snprintf (buf, 3, "%d %d", 4567, 89) != 7)
13331 return 1;
13332 if (my_snprintf (buf, 0, "%d %d", 4567, 89) != 7)
13333 return 2;
13334 if (my_snprintf (NULL, 0, "%d %d", 4567, 89) != 7)
13335 return 3;
13336 return 0;
13337 }
13338 _ACEOF
13339 if ac_fn_c_try_run "$LINENO"
13340 then :
13341 gl_cv_func_snprintf_retval_c99=yes
13342 else $as_nop
13343 gl_cv_func_snprintf_retval_c99=no
13344 fi
13345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13346 conftest.$ac_objext conftest.beam conftest.$ac_ext
13347 fi
13348
13349
13350 fi
13351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_retval_c99" >&5
13352 printf "%s\n" "$gl_cv_func_snprintf_retval_c99" >&6; }
13353
13354
13355
13356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports POSIX/XSI format strings with positions" >&5
13357 printf %s "checking whether printf supports POSIX/XSI format strings with positions... " >&6; }
13358 if test ${gl_cv_func_printf_positions+y}
13359 then :
13360 printf %s "(cached) " >&6
13361 else $as_nop
13362
13363 if test "$cross_compiling" = yes
13364 then :
13365
13366 case "$host_os" in
13367 netbsd[1-3]* | netbsdelf[1-3]* | netbsdaout[1-3]* | netbsdcoff[1-3]*)
13368 gl_cv_func_printf_positions="guessing no";;
13369 beos*)
13370 gl_cv_func_printf_positions="guessing no";;
13371 # Guess yes on Android.
13372 linux*-android*)
13373 gl_cv_func_printf_positions="guessing yes";;
13374 # Guess no on native Windows.
13375 mingw* | windows* | pw*)
13376 gl_cv_func_printf_positions="guessing no";;
13377 *)
13378 gl_cv_func_printf_positions="guessing yes";;
13379 esac
13380
13381 else $as_nop
13382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13383 /* end confdefs.h. */
13384
13385 #include <stdio.h>
13386 #include <string.h>
13387 /* The string "%2$d %1$d", with dollar characters protected from the shell's
13388 dollar expansion (possibly an autoconf bug). */
13389 static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' };
13390 static char buf[100];
13391 int main ()
13392 {
13393 sprintf (buf, format, 33, 55);
13394 return (strcmp (buf, "55 33") != 0);
13395 }
13396 _ACEOF
13397 if ac_fn_c_try_run "$LINENO"
13398 then :
13399 gl_cv_func_printf_positions=yes
13400 else $as_nop
13401 gl_cv_func_printf_positions=no
13402 fi
13403 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
13404 conftest.$ac_objext conftest.beam conftest.$ac_ext
13405 fi
13406
13407
13408 fi
13409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_positions" >&5
13410 printf "%s\n" "$gl_cv_func_printf_positions" >&6; }
13411
13412 ac_fn_check_decl "$LINENO" "snprintf" "ac_cv_have_decl_snprintf" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13413 if test "x$ac_cv_have_decl_snprintf" = xyes
13414 then :
13415 ac_have_decl=1
13416 else $as_nop
13417 ac_have_decl=0
13418 fi
13419 printf "%s\n" "#define HAVE_DECL_SNPRINTF $ac_have_decl" >>confdefs.h
13420
13421
13422
13423 GL_GNULIB_DPRINTF=0
13424
13425
13426
13427 GL_GNULIB_FCLOSE=0
13428
13429
13430
13431 GL_GNULIB_FDOPEN=0
13432
13433
13434
13435 GL_GNULIB_FFLUSH=0
13436
13437
13438
13439 GL_GNULIB_FGETC=0
13440
13441
13442
13443 GL_GNULIB_FGETS=0
13444
13445
13446
13447 GL_GNULIB_FOPEN=0
13448
13449
13450
13451 GL_GNULIB_FOPEN_GNU=0
13452
13453
13454
13455 GL_GNULIB_FPRINTF=0
13456
13457
13458
13459 GL_GNULIB_FPRINTF_POSIX=0
13460
13461
13462
13463 GL_GNULIB_FPURGE=0
13464
13465
13466
13467 GL_GNULIB_FPUTC=0
13468
13469
13470
13471 GL_GNULIB_FPUTS=0
13472
13473
13474
13475 GL_GNULIB_FREAD=0
13476
13477
13478
13479 GL_GNULIB_FREOPEN=0
13480
13481
13482
13483 GL_GNULIB_FSCANF=0
13484
13485
13486
13487 GL_GNULIB_FSEEK=0
13488
13489
13490
13491 GL_GNULIB_FSEEKO=0
13492
13493
13494
13495 GL_GNULIB_FTELL=0
13496
13497
13498
13499 GL_GNULIB_FTELLO=0
13500
13501
13502
13503 GL_GNULIB_FWRITE=0
13504
13505
13506
13507 GL_GNULIB_GETC=0
13508
13509
13510
13511 GL_GNULIB_GETCHAR=0
13512
13513
13514
13515 GL_GNULIB_GETDELIM=0
13516
13517
13518
13519 GL_GNULIB_GETLINE=0
13520
13521
13522
13523 GL_GNULIB_OBSTACK_PRINTF=0
13524
13525
13526
13527 GL_GNULIB_OBSTACK_PRINTF_POSIX=0
13528
13529
13530
13531 GL_GNULIB_PCLOSE=0
13532
13533
13534
13535 GL_GNULIB_PERROR=0
13536
13537
13538
13539 GL_GNULIB_POPEN=0
13540
13541
13542
13543 GL_GNULIB_PRINTF=0
13544
13545
13546
13547 GL_GNULIB_PRINTF_POSIX=0
13548
13549
13550
13551 GL_GNULIB_PUTC=0
13552
13553
13554
13555 GL_GNULIB_PUTCHAR=0
13556
13557
13558
13559 GL_GNULIB_PUTS=0
13560
13561
13562
13563 GL_GNULIB_REMOVE=0
13564
13565
13566
13567 GL_GNULIB_RENAME=0
13568
13569
13570
13571 GL_GNULIB_RENAMEAT=0
13572
13573
13574
13575 GL_GNULIB_SCANF=0
13576
13577
13578
13579 GL_GNULIB_SNPRINTF=0
13580
13581
13582
13583 GL_GNULIB_SPRINTF_POSIX=0
13584
13585
13586
13587 GL_GNULIB_STDIO_H_NONBLOCKING=0
13588
13589
13590
13591 GL_GNULIB_STDIO_H_SIGPIPE=0
13592
13593
13594
13595 GL_GNULIB_TMPFILE=0
13596
13597
13598
13599 GL_GNULIB_VASPRINTF=0
13600
13601
13602
13603 GL_GNULIB_VFSCANF=0
13604
13605
13606
13607 GL_GNULIB_VSCANF=0
13608
13609
13610
13611 GL_GNULIB_VDPRINTF=0
13612
13613
13614
13615 GL_GNULIB_VFPRINTF=0
13616
13617
13618
13619 GL_GNULIB_VFPRINTF_POSIX=0
13620
13621
13622
13623 GL_GNULIB_VPRINTF=0
13624
13625
13626
13627 GL_GNULIB_VPRINTF_POSIX=0
13628
13629
13630
13631 GL_GNULIB_VSNPRINTF=0
13632
13633
13634
13635 GL_GNULIB_VSPRINTF_POSIX=0
13636
13637
13638
13639 GL_GNULIB_MDA_FCLOSEALL=1
13640
13641
13642
13643 GL_GNULIB_MDA_FDOPEN=1
13644
13645
13646
13647 GL_GNULIB_MDA_FILENO=1
13648
13649
13650
13651 GL_GNULIB_MDA_GETW=1
13652
13653
13654
13655 GL_GNULIB_MDA_PUTW=1
13656
13657
13658
13659 GL_GNULIB_MDA_TEMPNAM=1
13660
13661
13662
13663
13664
13665
13666
13667 REPLACE_NULL=0;
13668 HAVE_MAX_ALIGN_T=1;
13669 HAVE_WCHAR_T=1;
13670
13671
13672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5
13673 printf %s "checking for wchar_t... " >&6; }
13674 if test ${gt_cv_c_wchar_t+y}
13675 then :
13676 printf %s "(cached) " >&6
13677 else $as_nop
13678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13679 /* end confdefs.h. */
13680 #include <stddef.h>
13681 wchar_t foo = (wchar_t)'\0';
13682 int
13683 main (void)
13684 {
13685
13686 ;
13687 return 0;
13688 }
13689 _ACEOF
13690 if ac_fn_c_try_compile "$LINENO"
13691 then :
13692 gt_cv_c_wchar_t=yes
13693 else $as_nop
13694 gt_cv_c_wchar_t=no
13695 fi
13696 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13697 fi
13698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5
13699 printf "%s\n" "$gt_cv_c_wchar_t" >&6; }
13700 if test $gt_cv_c_wchar_t = yes; then
13701
13702 printf "%s\n" "#define HAVE_WCHAR_T 1" >>confdefs.h
13703
13704 fi
13705
13706
13707
13708
13709
13710
13711
13712 GL_GENERATE_STDDEF_H=false
13713
13714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good max_align_t" >&5
13715 printf %s "checking for good max_align_t... " >&6; }
13716 if test ${gl_cv_type_max_align_t+y}
13717 then :
13718 printf %s "(cached) " >&6
13719 else $as_nop
13720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13721 /* end confdefs.h. */
13722 /* On FreeBSD 12.0/x86, max_align_t defined by <stddef.h> has
13723 the correct alignment with the default (wrong) definition of
13724 _Alignof, but a wrong alignment as soon as we activate an
13725 ISO C compliant _Alignof definition. */
13726 #if ((defined __GNUC__ && 4 <= __GNUC__) || defined __clang__) && !defined __cplusplus
13727 #define _Alignof(type) __builtin_offsetof (struct { char __a; type __b; }, __b)
13728 #endif
13729 #include <stddef.h>
13730 unsigned int s = sizeof (max_align_t);
13731 #if defined __GNUC__ || defined __clang__ || defined __IBM__ALIGNOF__
13732 int check1[2 * (__alignof__ (double) <= __alignof__ (max_align_t)) - 1];
13733 int check2[2 * (__alignof__ (long double) <= __alignof__ (max_align_t)) - 1];
13734 #endif
13735 typedef struct { char a; max_align_t b; } max_helper;
13736 typedef struct { char a; long b; } long_helper;
13737 typedef struct { char a; double b; } double_helper;
13738 typedef struct { char a; long double b; } long_double_helper;
13739 int check3[2 * (offsetof (long_helper, b) <= offsetof (max_helper, b)) - 1];
13740 int check4[2 * (offsetof (double_helper, b) <= offsetof (max_helper, b)) - 1];
13741 int check5[2 * (offsetof (long_double_helper, b) <= offsetof (max_helper, b)) - 1];
13742
13743 int
13744 main (void)
13745 {
13746
13747 ;
13748 return 0;
13749 }
13750 _ACEOF
13751 if ac_fn_c_try_compile "$LINENO"
13752 then :
13753 gl_cv_type_max_align_t=yes
13754 else $as_nop
13755 gl_cv_type_max_align_t=no
13756 fi
13757 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13758
13759 fi
13760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_type_max_align_t" >&5
13761 printf "%s\n" "$gl_cv_type_max_align_t" >&6; }
13762 if test $gl_cv_type_max_align_t = no; then
13763 HAVE_MAX_ALIGN_T=0
13764 GL_GENERATE_STDDEF_H=true
13765 fi
13766
13767 if test $gt_cv_c_wchar_t = no; then
13768 HAVE_WCHAR_T=0
13769 GL_GENERATE_STDDEF_H=true
13770 fi
13771
13772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NULL can be used in arbitrary expressions" >&5
13773 printf %s "checking whether NULL can be used in arbitrary expressions... " >&6; }
13774 if test ${gl_cv_decl_null_works+y}
13775 then :
13776 printf %s "(cached) " >&6
13777 else $as_nop
13778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13779 /* end confdefs.h. */
13780 #include <stddef.h>
13781 int test[2 * (sizeof NULL == sizeof (void *)) -1];
13782
13783 int
13784 main (void)
13785 {
13786
13787 ;
13788 return 0;
13789 }
13790 _ACEOF
13791 if ac_fn_c_try_compile "$LINENO"
13792 then :
13793 gl_cv_decl_null_works=yes
13794 else $as_nop
13795 gl_cv_decl_null_works=no
13796 fi
13797 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
13798 fi
13799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_decl_null_works" >&5
13800 printf "%s\n" "$gl_cv_decl_null_works" >&6; }
13801 if test $gl_cv_decl_null_works = no; then
13802 REPLACE_NULL=1
13803 GL_GENERATE_STDDEF_H=true
13804 fi
13805
13806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for unreachable" >&5
13807 printf %s "checking for unreachable... " >&6; }
13808 if test ${gl_cv_func_unreachable+y}
13809 then :
13810 printf %s "(cached) " >&6
13811 else $as_nop
13812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13813 /* end confdefs.h. */
13814 #include <stddef.h>
13815
13816 int
13817 main (void)
13818 {
13819 unreachable ();
13820
13821 ;
13822 return 0;
13823 }
13824 _ACEOF
13825 if ac_fn_c_try_link "$LINENO"
13826 then :
13827 gl_cv_func_unreachable=yes
13828 else $as_nop
13829 gl_cv_func_unreachable=no
13830 fi
13831 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13832 conftest$ac_exeext conftest.$ac_ext
13833
13834 fi
13835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_unreachable" >&5
13836 printf "%s\n" "$gl_cv_func_unreachable" >&6; }
13837 if test $gl_cv_func_unreachable = no; then
13838 GL_GENERATE_STDDEF_H=true
13839 fi
13840
13841 if $GL_GENERATE_STDDEF_H; then
13842
13843
13844
13845
13846
13847
13848
13849
13850 if test $gl_cv_have_include_next = yes; then
13851 gl_cv_next_stddef_h='<'stddef.h'>'
13852 else
13853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stddef.h>" >&5
13854 printf %s "checking absolute name of <stddef.h>... " >&6; }
13855 if test ${gl_cv_next_stddef_h+y}
13856 then :
13857 printf %s "(cached) " >&6
13858 else $as_nop
13859
13860
13861
13862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13863 /* end confdefs.h. */
13864 #include <stddef.h>
13865 _ACEOF
13866 case "$host_os" in
13867 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13868 *) gl_absname_cpp="$ac_cpp" ;;
13869 esac
13870
13871 case "$host_os" in
13872 mingw* | windows*)
13873 gl_dirsep_regex='[/\\]'
13874 ;;
13875 *)
13876 gl_dirsep_regex='\/'
13877 ;;
13878 esac
13879 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13880 gl_header_literal_regex=`echo 'stddef.h' \
13881 | sed -e "$gl_make_literal_regex_sed"`
13882 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13883 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13884 s|^/[^/]|//&|
13885 p
13886 q
13887 }'
13888
13889 gl_cv_absolute_stddef_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13890 sed -n "$gl_absolute_header_sed"`
13891
13892 gl_header=$gl_cv_absolute_stddef_h
13893 gl_cv_next_stddef_h='"'$gl_header'"'
13894
13895
13896 fi
13897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stddef_h" >&5
13898 printf "%s\n" "$gl_cv_next_stddef_h" >&6; }
13899 fi
13900 NEXT_STDDEF_H=$gl_cv_next_stddef_h
13901
13902 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
13903 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
13904 gl_next_as_first_directive='<'stddef.h'>'
13905 else
13906 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
13907 gl_next_as_first_directive=$gl_cv_next_stddef_h
13908 fi
13909 NEXT_AS_FIRST_DIRECTIVE_STDDEF_H=$gl_next_as_first_directive
13910
13911
13912
13913
13914 fi
13915
13916
13917
13918 ac_fn_check_decl "$LINENO" "fcloseall" "ac_cv_have_decl_fcloseall" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13919 if test "x$ac_cv_have_decl_fcloseall" = xyes
13920 then :
13921 ac_have_decl=1
13922 else $as_nop
13923 ac_have_decl=0
13924 fi
13925 printf "%s\n" "#define HAVE_DECL_FCLOSEALL $ac_have_decl" >>confdefs.h
13926
13927 ac_fn_check_decl "$LINENO" "getw" "ac_cv_have_decl_getw" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13928 if test "x$ac_cv_have_decl_getw" = xyes
13929 then :
13930 ac_have_decl=1
13931 else $as_nop
13932 ac_have_decl=0
13933 fi
13934 printf "%s\n" "#define HAVE_DECL_GETW $ac_have_decl" >>confdefs.h
13935
13936 ac_fn_check_decl "$LINENO" "putw" "ac_cv_have_decl_putw" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
13937 if test "x$ac_cv_have_decl_putw" = xyes
13938 then :
13939 ac_have_decl=1
13940 else $as_nop
13941 ac_have_decl=0
13942 fi
13943 printf "%s\n" "#define HAVE_DECL_PUTW $ac_have_decl" >>confdefs.h
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955 if test $gl_cv_have_include_next = yes; then
13956 gl_cv_next_stdio_h='<'stdio.h'>'
13957 else
13958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdio.h>" >&5
13959 printf %s "checking absolute name of <stdio.h>... " >&6; }
13960 if test ${gl_cv_next_stdio_h+y}
13961 then :
13962 printf %s "(cached) " >&6
13963 else $as_nop
13964
13965
13966
13967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13968 /* end confdefs.h. */
13969 #include <stdio.h>
13970 _ACEOF
13971 case "$host_os" in
13972 aix*) gl_absname_cpp="$ac_cpp -C" ;;
13973 *) gl_absname_cpp="$ac_cpp" ;;
13974 esac
13975
13976 case "$host_os" in
13977 mingw* | windows*)
13978 gl_dirsep_regex='[/\\]'
13979 ;;
13980 *)
13981 gl_dirsep_regex='\/'
13982 ;;
13983 esac
13984 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
13985 gl_header_literal_regex=`echo 'stdio.h' \
13986 | sed -e "$gl_make_literal_regex_sed"`
13987 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
13988 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
13989 s|^/[^/]|//&|
13990 p
13991 q
13992 }'
13993
13994 gl_cv_absolute_stdio_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
13995 sed -n "$gl_absolute_header_sed"`
13996
13997 gl_header=$gl_cv_absolute_stdio_h
13998 gl_cv_next_stdio_h='"'$gl_header'"'
13999
14000
14001 fi
14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdio_h" >&5
14003 printf "%s\n" "$gl_cv_next_stdio_h" >&6; }
14004 fi
14005 NEXT_STDIO_H=$gl_cv_next_stdio_h
14006
14007 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14008 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14009 gl_next_as_first_directive='<'stdio.h'>'
14010 else
14011 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14012 gl_next_as_first_directive=$gl_cv_next_stdio_h
14013 fi
14014 NEXT_AS_FIRST_DIRECTIVE_STDIO_H=$gl_next_as_first_directive
14015
14016
14017
14018
14019
14020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which flavor of printf attribute matches inttypes macros" >&5
14021 printf %s "checking which flavor of printf attribute matches inttypes macros... " >&6; }
14022 if test ${gl_cv_func_printf_attribute_flavor+y}
14023 then :
14024 printf %s "(cached) " >&6
14025 else $as_nop
14026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14027 /* end confdefs.h. */
14028
14029 #define __STDC_FORMAT_MACROS 1
14030 #include <stdio.h>
14031 #include <inttypes.h>
14032 /* For non-mingw systems, compilation will trivially succeed.
14033 For mingw, compilation will succeed for older mingw (system
14034 printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
14035 #if (defined _WIN32 && ! defined __CYGWIN__) && \
14036 (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
14037 extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
14038 #endif
14039
14040 int
14041 main (void)
14042 {
14043
14044 ;
14045 return 0;
14046 }
14047 _ACEOF
14048 if ac_fn_c_try_compile "$LINENO"
14049 then :
14050 gl_cv_func_printf_attribute_flavor=system
14051 else $as_nop
14052 gl_cv_func_printf_attribute_flavor=gnu
14053 fi
14054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14055 fi
14056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_printf_attribute_flavor" >&5
14057 printf "%s\n" "$gl_cv_func_printf_attribute_flavor" >&6; }
14058 if test "$gl_cv_func_printf_attribute_flavor" = gnu; then
14059
14060 printf "%s\n" "#define GNULIB_PRINTF_ATTRIBUTE_FLAVOR_GNU 1" >>confdefs.h
14061
14062 fi
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072
14073
14074
14075
14076
14077
14078 if test $ac_cv_have_decl_fcloseall = no; then
14079 HAVE_DECL_FCLOSEALL=0
14080 fi
14081
14082
14083 if test $ac_cv_have_decl_getw = no; then
14084 HAVE_DECL_GETW=0
14085 fi
14086
14087
14088 if test $ac_cv_have_decl_putw = no; then
14089 HAVE_DECL_PUTW=0
14090 fi
14091
14092 ac_fn_check_decl "$LINENO" "ecvt" "ac_cv_have_decl_ecvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14093 if test "x$ac_cv_have_decl_ecvt" = xyes
14094 then :
14095 ac_have_decl=1
14096 else $as_nop
14097 ac_have_decl=0
14098 fi
14099 printf "%s\n" "#define HAVE_DECL_ECVT $ac_have_decl" >>confdefs.h
14100
14101 ac_fn_check_decl "$LINENO" "fcvt" "ac_cv_have_decl_fcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14102 if test "x$ac_cv_have_decl_fcvt" = xyes
14103 then :
14104 ac_have_decl=1
14105 else $as_nop
14106 ac_have_decl=0
14107 fi
14108 printf "%s\n" "#define HAVE_DECL_FCVT $ac_have_decl" >>confdefs.h
14109
14110 ac_fn_check_decl "$LINENO" "gcvt" "ac_cv_have_decl_gcvt" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14111 if test "x$ac_cv_have_decl_gcvt" = xyes
14112 then :
14113 ac_have_decl=1
14114 else $as_nop
14115 ac_have_decl=0
14116 fi
14117 printf "%s\n" "#define HAVE_DECL_GCVT $ac_have_decl" >>confdefs.h
14118
14119
14120
14121
14122
14123
14124
14125
14126
14127
14128
14129 if test $gl_cv_have_include_next = yes; then
14130 gl_cv_next_stdlib_h='<'stdlib.h'>'
14131 else
14132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <stdlib.h>" >&5
14133 printf %s "checking absolute name of <stdlib.h>... " >&6; }
14134 if test ${gl_cv_next_stdlib_h+y}
14135 then :
14136 printf %s "(cached) " >&6
14137 else $as_nop
14138
14139
14140
14141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14143 #include <stdlib.h>
14144 _ACEOF
14145 case "$host_os" in
14146 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14147 *) gl_absname_cpp="$ac_cpp" ;;
14148 esac
14149
14150 case "$host_os" in
14151 mingw* | windows*)
14152 gl_dirsep_regex='[/\\]'
14153 ;;
14154 *)
14155 gl_dirsep_regex='\/'
14156 ;;
14157 esac
14158 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14159 gl_header_literal_regex=`echo 'stdlib.h' \
14160 | sed -e "$gl_make_literal_regex_sed"`
14161 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14162 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14163 s|^/[^/]|//&|
14164 p
14165 q
14166 }'
14167
14168 gl_cv_absolute_stdlib_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14169 sed -n "$gl_absolute_header_sed"`
14170
14171 gl_header=$gl_cv_absolute_stdlib_h
14172 gl_cv_next_stdlib_h='"'$gl_header'"'
14173
14174
14175 fi
14176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_stdlib_h" >&5
14177 printf "%s\n" "$gl_cv_next_stdlib_h" >&6; }
14178 fi
14179 NEXT_STDLIB_H=$gl_cv_next_stdlib_h
14180
14181 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14182 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14183 gl_next_as_first_directive='<'stdlib.h'>'
14184 else
14185 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14186 gl_next_as_first_directive=$gl_cv_next_stdlib_h
14187 fi
14188 NEXT_AS_FIRST_DIRECTIVE_STDLIB_H=$gl_next_as_first_directive
14189
14190
14191
14192
14193
14194
14195
14196
14197
14198
14199
14200
14201
14202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether MB_CUR_MAX is correct" >&5
14203 printf %s "checking whether MB_CUR_MAX is correct... " >&6; }
14204 if test ${gl_cv_macro_MB_CUR_MAX_good+y}
14205 then :
14206 printf %s "(cached) " >&6
14207 else $as_nop
14208
14209 case "$host_os" in
14210 # Guess no on Solaris.
14211 solaris*) gl_cv_macro_MB_CUR_MAX_good="guessing no" ;;
14212 # Guess yes otherwise.
14213 *) gl_cv_macro_MB_CUR_MAX_good="guessing yes" ;;
14214 esac
14215 if test $LOCALE_FR_UTF8 != none; then
14216 if test "$cross_compiling" = yes
14217 then :
14218 :
14219 else $as_nop
14220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14221 /* end confdefs.h. */
14222
14223 #include <locale.h>
14224 #include <stdlib.h>
14225 int main ()
14226 {
14227 int result = 0;
14228 if (setlocale (LC_ALL, "$LOCALE_FR_UTF8") != NULL)
14229 {
14230 if (MB_CUR_MAX < 4)
14231 result |= 1;
14232 }
14233 return result;
14234 }
14235 _ACEOF
14236 if ac_fn_c_try_run "$LINENO"
14237 then :
14238 gl_cv_macro_MB_CUR_MAX_good=yes
14239 else $as_nop
14240 gl_cv_macro_MB_CUR_MAX_good=no
14241 fi
14242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14243 conftest.$ac_objext conftest.beam conftest.$ac_ext
14244 fi
14245
14246 fi
14247
14248 fi
14249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_macro_MB_CUR_MAX_good" >&5
14250 printf "%s\n" "$gl_cv_macro_MB_CUR_MAX_good" >&6; }
14251 case "$gl_cv_macro_MB_CUR_MAX_good" in
14252 *yes) ;;
14253 *) REPLACE_MB_CUR_MAX=1 ;;
14254 esac
14255
14256
14257 if test $ac_cv_have_decl_ecvt = no; then
14258 HAVE_DECL_ECVT=0
14259 fi
14260
14261 if test $ac_cv_have_decl_fcvt = no; then
14262 HAVE_DECL_FCVT=0
14263 fi
14264
14265 if test $ac_cv_have_decl_gcvt = no; then
14266 HAVE_DECL_GCVT=0
14267 fi
14268
14269
14270 REPLACE_STRERROR_0=0
14271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror(0) succeeds" >&5
14272 printf %s "checking whether strerror(0) succeeds... " >&6; }
14273 if test ${gl_cv_func_strerror_0_works+y}
14274 then :
14275 printf %s "(cached) " >&6
14276 else $as_nop
14277 if test "$cross_compiling" = yes
14278 then :
14279 case "$host_os" in
14280 # Guess yes on glibc systems.
14281 *-gnu* | gnu*) gl_cv_func_strerror_0_works="guessing yes" ;;
14282 # Guess yes on musl systems.
14283 *-musl* | midipix*) gl_cv_func_strerror_0_works="guessing yes" ;;
14284 # Guess yes on native Windows.
14285 mingw* | windows*) gl_cv_func_strerror_0_works="guessing yes" ;;
14286 # If we don't know, obey --enable-cross-guesses.
14287 *) gl_cv_func_strerror_0_works="$gl_cross_guess_normal" ;;
14288 esac
14289
14290 else $as_nop
14291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14292 /* end confdefs.h. */
14293 #include <string.h>
14294 #include <errno.h>
14295
14296 int
14297 main (void)
14298 {
14299 int result = 0;
14300 char *str;
14301 errno = 0;
14302 str = strerror (0);
14303 if (!*str) result |= 1;
14304 if (errno) result |= 2;
14305 if (strstr (str, "nknown") || strstr (str, "ndefined"))
14306 result |= 4;
14307 return result;
14308 ;
14309 return 0;
14310 }
14311 _ACEOF
14312 if ac_fn_c_try_run "$LINENO"
14313 then :
14314 gl_cv_func_strerror_0_works=yes
14315 else $as_nop
14316 gl_cv_func_strerror_0_works=no
14317 fi
14318 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14319 conftest.$ac_objext conftest.beam conftest.$ac_ext
14320 fi
14321
14322
14323 fi
14324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_strerror_0_works" >&5
14325 printf "%s\n" "$gl_cv_func_strerror_0_works" >&6; }
14326 case "$gl_cv_func_strerror_0_works" in
14327 *yes) ;;
14328 *)
14329 REPLACE_STRERROR_0=1
14330
14331 printf "%s\n" "#define REPLACE_STRERROR_0 1" >>confdefs.h
14332
14333 ;;
14334 esac
14335
14336
14337
14338
14339
14340
14341
14342
14343
14344
14345
14346 if test $gl_cv_have_include_next = yes; then
14347 gl_cv_next_string_h='<'string.h'>'
14348 else
14349 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <string.h>" >&5
14350 printf %s "checking absolute name of <string.h>... " >&6; }
14351 if test ${gl_cv_next_string_h+y}
14352 then :
14353 printf %s "(cached) " >&6
14354 else $as_nop
14355
14356
14357
14358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14359 /* end confdefs.h. */
14360 #include <string.h>
14361 _ACEOF
14362 case "$host_os" in
14363 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14364 *) gl_absname_cpp="$ac_cpp" ;;
14365 esac
14366
14367 case "$host_os" in
14368 mingw* | windows*)
14369 gl_dirsep_regex='[/\\]'
14370 ;;
14371 *)
14372 gl_dirsep_regex='\/'
14373 ;;
14374 esac
14375 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14376 gl_header_literal_regex=`echo 'string.h' \
14377 | sed -e "$gl_make_literal_regex_sed"`
14378 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14379 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14380 s|^/[^/]|//&|
14381 p
14382 q
14383 }'
14384
14385 gl_cv_absolute_string_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14386 sed -n "$gl_absolute_header_sed"`
14387
14388 gl_header=$gl_cv_absolute_string_h
14389 gl_cv_next_string_h='"'$gl_header'"'
14390
14391
14392 fi
14393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_string_h" >&5
14394 printf "%s\n" "$gl_cv_next_string_h" >&6; }
14395 fi
14396 NEXT_STRING_H=$gl_cv_next_string_h
14397
14398 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14399 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14400 gl_next_as_first_directive='<'string.h'>'
14401 else
14402 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14403 gl_next_as_first_directive=$gl_cv_next_string_h
14404 fi
14405 NEXT_AS_FIRST_DIRECTIVE_STRING_H=$gl_next_as_first_directive
14406
14407
14408
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429 printf "%s\n" "#define _USE_STD_STAT 1" >>confdefs.h
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440 if test $gl_cv_have_include_next = yes; then
14441 gl_cv_next_sys_types_h='<'sys/types.h'>'
14442 else
14443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <sys/types.h>" >&5
14444 printf %s "checking absolute name of <sys/types.h>... " >&6; }
14445 if test ${gl_cv_next_sys_types_h+y}
14446 then :
14447 printf %s "(cached) " >&6
14448 else $as_nop
14449
14450
14451
14452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14453 /* end confdefs.h. */
14454 #include <sys/types.h>
14455 _ACEOF
14456 case "$host_os" in
14457 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14458 *) gl_absname_cpp="$ac_cpp" ;;
14459 esac
14460
14461 case "$host_os" in
14462 mingw* | windows*)
14463 gl_dirsep_regex='[/\\]'
14464 ;;
14465 *)
14466 gl_dirsep_regex='\/'
14467 ;;
14468 esac
14469 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14470 gl_header_literal_regex=`echo 'sys/types.h' \
14471 | sed -e "$gl_make_literal_regex_sed"`
14472 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14473 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14474 s|^/[^/]|//&|
14475 p
14476 q
14477 }'
14478
14479 gl_cv_absolute_sys_types_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14480 sed -n "$gl_absolute_header_sed"`
14481
14482 gl_header=$gl_cv_absolute_sys_types_h
14483 gl_cv_next_sys_types_h='"'$gl_header'"'
14484
14485
14486 fi
14487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_sys_types_h" >&5
14488 printf "%s\n" "$gl_cv_next_sys_types_h" >&6; }
14489 fi
14490 NEXT_SYS_TYPES_H=$gl_cv_next_sys_types_h
14491
14492 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14493 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14494 gl_next_as_first_directive='<'sys/types.h'>'
14495 else
14496 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14497 gl_next_as_first_directive=$gl_cv_next_sys_types_h
14498 fi
14499 NEXT_AS_FIRST_DIRECTIVE_SYS_TYPES_H=$gl_next_as_first_directive
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512 WINDOWS_STAT_INODES=0
14513
14514
14515
14516
14517
14518
14519 HAVE_DECL_LOCALTIME_R=1;
14520 HAVE_NANOSLEEP=1;
14521 HAVE_STRPTIME=1;
14522 HAVE_TIMEGM=1;
14523 HAVE_TIMESPEC_GET=1;
14524 HAVE_TIMESPEC_GETRES=1;
14525 HAVE_TIMEZONE_T=0;
14526 REPLACE_CTIME=0;
14527 REPLACE_GMTIME=0;
14528 REPLACE_LOCALTIME=0;
14529 REPLACE_LOCALTIME_R=0;
14530 REPLACE_MKTIME=0;
14531 REPLACE_NANOSLEEP=0;
14532 REPLACE_STRFTIME=0;
14533 REPLACE_TIME=0;
14534 REPLACE_TIMEGM=0;
14535 REPLACE_TIMESPEC_GET=0;
14536 REPLACE_TZSET=0;
14537
14538
14539
14540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <time.h>" >&5
14541 printf %s "checking for struct timespec in <time.h>... " >&6; }
14542 if test ${gl_cv_sys_struct_timespec_in_time_h+y}
14543 then :
14544 printf %s "(cached) " >&6
14545 else $as_nop
14546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14547 /* end confdefs.h. */
14548 #include <time.h>
14549
14550 int
14551 main (void)
14552 {
14553 static struct timespec x; x.tv_sec = x.tv_nsec;
14554 ;
14555 return 0;
14556 }
14557 _ACEOF
14558 if ac_fn_c_try_compile "$LINENO"
14559 then :
14560 gl_cv_sys_struct_timespec_in_time_h=yes
14561 else $as_nop
14562 gl_cv_sys_struct_timespec_in_time_h=no
14563 fi
14564 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14565 fi
14566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_time_h" >&5
14567 printf "%s\n" "$gl_cv_sys_struct_timespec_in_time_h" >&6; }
14568
14569 TIME_H_DEFINES_STRUCT_TIMESPEC=0
14570 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=0
14571 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=0
14572 UNISTD_H_DEFINES_STRUCT_TIMESPEC=0
14573 if test $gl_cv_sys_struct_timespec_in_time_h = yes; then
14574 TIME_H_DEFINES_STRUCT_TIMESPEC=1
14575 else
14576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <sys/time.h>" >&5
14577 printf %s "checking for struct timespec in <sys/time.h>... " >&6; }
14578 if test ${gl_cv_sys_struct_timespec_in_sys_time_h+y}
14579 then :
14580 printf %s "(cached) " >&6
14581 else $as_nop
14582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14583 /* end confdefs.h. */
14584 #include <sys/time.h>
14585
14586 int
14587 main (void)
14588 {
14589 static struct timespec x; x.tv_sec = x.tv_nsec;
14590 ;
14591 return 0;
14592 }
14593 _ACEOF
14594 if ac_fn_c_try_compile "$LINENO"
14595 then :
14596 gl_cv_sys_struct_timespec_in_sys_time_h=yes
14597 else $as_nop
14598 gl_cv_sys_struct_timespec_in_sys_time_h=no
14599 fi
14600 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14601 fi
14602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_sys_time_h" >&5
14603 printf "%s\n" "$gl_cv_sys_struct_timespec_in_sys_time_h" >&6; }
14604 if test $gl_cv_sys_struct_timespec_in_sys_time_h = yes; then
14605 SYS_TIME_H_DEFINES_STRUCT_TIMESPEC=1
14606 else
14607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <pthread.h>" >&5
14608 printf %s "checking for struct timespec in <pthread.h>... " >&6; }
14609 if test ${gl_cv_sys_struct_timespec_in_pthread_h+y}
14610 then :
14611 printf %s "(cached) " >&6
14612 else $as_nop
14613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14614 /* end confdefs.h. */
14615 #include <pthread.h>
14616
14617 int
14618 main (void)
14619 {
14620 static struct timespec x; x.tv_sec = x.tv_nsec;
14621 ;
14622 return 0;
14623 }
14624 _ACEOF
14625 if ac_fn_c_try_compile "$LINENO"
14626 then :
14627 gl_cv_sys_struct_timespec_in_pthread_h=yes
14628 else $as_nop
14629 gl_cv_sys_struct_timespec_in_pthread_h=no
14630 fi
14631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14632 fi
14633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_pthread_h" >&5
14634 printf "%s\n" "$gl_cv_sys_struct_timespec_in_pthread_h" >&6; }
14635 if test $gl_cv_sys_struct_timespec_in_pthread_h = yes; then
14636 PTHREAD_H_DEFINES_STRUCT_TIMESPEC=1
14637 else
14638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timespec in <unistd.h>" >&5
14639 printf %s "checking for struct timespec in <unistd.h>... " >&6; }
14640 if test ${gl_cv_sys_struct_timespec_in_unistd_h+y}
14641 then :
14642 printf %s "(cached) " >&6
14643 else $as_nop
14644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14645 /* end confdefs.h. */
14646 #include <unistd.h>
14647
14648 int
14649 main (void)
14650 {
14651 static struct timespec x; x.tv_sec = x.tv_nsec;
14652 ;
14653 return 0;
14654 }
14655 _ACEOF
14656 if ac_fn_c_try_compile "$LINENO"
14657 then :
14658 gl_cv_sys_struct_timespec_in_unistd_h=yes
14659 else $as_nop
14660 gl_cv_sys_struct_timespec_in_unistd_h=no
14661 fi
14662 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14663 fi
14664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_sys_struct_timespec_in_unistd_h" >&5
14665 printf "%s\n" "$gl_cv_sys_struct_timespec_in_unistd_h" >&6; }
14666 if test $gl_cv_sys_struct_timespec_in_unistd_h = yes; then
14667 UNISTD_H_DEFINES_STRUCT_TIMESPEC=1
14668 fi
14669 fi
14670 fi
14671 fi
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688 if test $gl_cv_have_include_next = yes; then
14689 gl_cv_next_time_h='<'time.h'>'
14690 else
14691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <time.h>" >&5
14692 printf %s "checking absolute name of <time.h>... " >&6; }
14693 if test ${gl_cv_next_time_h+y}
14694 then :
14695 printf %s "(cached) " >&6
14696 else $as_nop
14697
14698
14699
14700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701 /* end confdefs.h. */
14702 #include <time.h>
14703 _ACEOF
14704 case "$host_os" in
14705 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14706 *) gl_absname_cpp="$ac_cpp" ;;
14707 esac
14708
14709 case "$host_os" in
14710 mingw* | windows*)
14711 gl_dirsep_regex='[/\\]'
14712 ;;
14713 *)
14714 gl_dirsep_regex='\/'
14715 ;;
14716 esac
14717 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14718 gl_header_literal_regex=`echo 'time.h' \
14719 | sed -e "$gl_make_literal_regex_sed"`
14720 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14721 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14722 s|^/[^/]|//&|
14723 p
14724 q
14725 }'
14726
14727 gl_cv_absolute_time_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14728 sed -n "$gl_absolute_header_sed"`
14729
14730 gl_header=$gl_cv_absolute_time_h
14731 gl_cv_next_time_h='"'$gl_header'"'
14732
14733
14734 fi
14735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_time_h" >&5
14736 printf "%s\n" "$gl_cv_next_time_h" >&6; }
14737 fi
14738 NEXT_TIME_H=$gl_cv_next_time_h
14739
14740 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14741 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14742 gl_next_as_first_directive='<'time.h'>'
14743 else
14744 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14745 gl_next_as_first_directive=$gl_cv_next_time_h
14746 fi
14747 NEXT_AS_FIRST_DIRECTIVE_TIME_H=$gl_next_as_first_directive
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for TIME_UTC in <time.h>" >&5
14761 printf %s "checking for TIME_UTC in <time.h>... " >&6; }
14762 if test ${gl_cv_time_h_has_TIME_UTC+y}
14763 then :
14764 printf %s "(cached) " >&6
14765 else $as_nop
14766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14767 /* end confdefs.h. */
14768 #include <time.h>
14769
14770 int
14771 main (void)
14772 {
14773 static int x = TIME_UTC; x++;
14774 ;
14775 return 0;
14776 }
14777 _ACEOF
14778 if ac_fn_c_try_compile "$LINENO"
14779 then :
14780 gl_cv_time_h_has_TIME_UTC=yes
14781 else $as_nop
14782 gl_cv_time_h_has_TIME_UTC=no
14783 fi
14784 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
14785 fi
14786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_time_h_has_TIME_UTC" >&5
14787 printf "%s\n" "$gl_cv_time_h_has_TIME_UTC" >&6; }
14788 if test $gl_cv_time_h_has_TIME_UTC = yes; then
14789 TIME_H_DEFINES_TIME_UTC=1
14790 else
14791 TIME_H_DEFINES_TIME_UTC=0
14792 fi
14793
14794
14795
14796
14797 GL_GNULIB_CTIME=0
14798
14799
14800
14801 GL_GNULIB_MKTIME=0
14802
14803
14804
14805 GL_GNULIB_LOCALTIME=0
14806
14807
14808
14809 GL_GNULIB_NANOSLEEP=0
14810
14811
14812
14813 GL_GNULIB_STRFTIME=0
14814
14815
14816
14817 GL_GNULIB_STRPTIME=0
14818
14819
14820
14821 GL_GNULIB_TIME=0
14822
14823
14824
14825 GL_GNULIB_TIMEGM=0
14826
14827
14828
14829 GL_GNULIB_TIMESPEC_GET=0
14830
14831
14832
14833 GL_GNULIB_TIMESPEC_GETRES=0
14834
14835
14836
14837 GL_GNULIB_TIME_R=0
14838
14839
14840
14841 GL_GNULIB_TIME_RZ=0
14842
14843
14844
14845 GL_GNULIB_TZSET=0
14846
14847
14848
14849 GL_GNULIB_MDA_TZSET=1
14850
14851
14852
14853 ac_fn_check_decl "$LINENO" "execvpe" "ac_cv_have_decl_execvpe" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS"
14854 if test "x$ac_cv_have_decl_execvpe" = xyes
14855 then :
14856 ac_have_decl=1
14857 else $as_nop
14858 ac_have_decl=0
14859 fi
14860 printf "%s\n" "#define HAVE_DECL_EXECVPE $ac_have_decl" >>confdefs.h
14861
14862
14863
14864
14865
14866
14867
14868
14869
14870
14871
14872
14873
14874 if test $gl_cv_have_include_next = yes; then
14875 gl_cv_next_unistd_h='<'unistd.h'>'
14876 else
14877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <unistd.h>" >&5
14878 printf %s "checking absolute name of <unistd.h>... " >&6; }
14879 if test ${gl_cv_next_unistd_h+y}
14880 then :
14881 printf %s "(cached) " >&6
14882 else $as_nop
14883
14884 if test $ac_cv_header_unistd_h = yes; then
14885
14886
14887
14888
14889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14890 /* end confdefs.h. */
14891 #include <unistd.h>
14892 _ACEOF
14893 case "$host_os" in
14894 aix*) gl_absname_cpp="$ac_cpp -C" ;;
14895 *) gl_absname_cpp="$ac_cpp" ;;
14896 esac
14897
14898 case "$host_os" in
14899 mingw* | windows*)
14900 gl_dirsep_regex='[/\\]'
14901 ;;
14902 *)
14903 gl_dirsep_regex='\/'
14904 ;;
14905 esac
14906 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
14907 gl_header_literal_regex=`echo 'unistd.h' \
14908 | sed -e "$gl_make_literal_regex_sed"`
14909 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
14910 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
14911 s|^/[^/]|//&|
14912 p
14913 q
14914 }'
14915
14916 gl_cv_absolute_unistd_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
14917 sed -n "$gl_absolute_header_sed"`
14918
14919 gl_header=$gl_cv_absolute_unistd_h
14920 gl_cv_next_unistd_h='"'$gl_header'"'
14921 else
14922 gl_cv_next_unistd_h='<'unistd.h'>'
14923 fi
14924
14925
14926 fi
14927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_unistd_h" >&5
14928 printf "%s\n" "$gl_cv_next_unistd_h" >&6; }
14929 fi
14930 NEXT_UNISTD_H=$gl_cv_next_unistd_h
14931
14932 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
14933 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
14934 gl_next_as_first_directive='<'unistd.h'>'
14935 else
14936 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
14937 gl_next_as_first_directive=$gl_cv_next_unistd_h
14938 fi
14939 NEXT_AS_FIRST_DIRECTIVE_UNISTD_H=$gl_next_as_first_directive
14940
14941
14942
14943
14944 if test $ac_cv_header_unistd_h = yes; then
14945 HAVE_UNISTD_H=1
14946 else
14947 HAVE_UNISTD_H=0
14948 fi
14949
14950
14951
14952
14953
14954
14955
14956
14957
14958
14959
14960
14961
14962 if test $ac_cv_have_decl_execvpe = no; then
14963 HAVE_DECL_EXECVPE=0
14964 fi
14965
14966
14967
14968
14969
14970 if test $ac_cv_header_features_h = yes; then
14971 HAVE_FEATURES_H=1
14972 else
14973 HAVE_FEATURES_H=0
14974 fi
14975
14976
14977
14978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5
14979 printf %s "checking for inttypes.h... " >&6; }
14980 if test ${gl_cv_header_inttypes_h+y}
14981 then :
14982 printf %s "(cached) " >&6
14983 else $as_nop
14984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14985 /* end confdefs.h. */
14986
14987 #include <sys/types.h>
14988 #include <inttypes.h>
14989
14990 int
14991 main (void)
14992 {
14993 uintmax_t i = (uintmax_t) -1; return !i;
14994 ;
14995 return 0;
14996 }
14997 _ACEOF
14998 if ac_fn_c_try_compile "$LINENO"
14999 then :
15000 gl_cv_header_inttypes_h=yes
15001 else $as_nop
15002 gl_cv_header_inttypes_h=no
15003 fi
15004 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15005 fi
15006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5
15007 printf "%s\n" "$gl_cv_header_inttypes_h" >&6; }
15008 if test $gl_cv_header_inttypes_h = yes; then
15009
15010 printf "%s\n" "#define HAVE_INTTYPES_H_WITH_UINTMAX 1" >>confdefs.h
15011
15012 fi
15013
15014
15015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5
15016 printf %s "checking for stdint.h... " >&6; }
15017 if test ${gl_cv_header_stdint_h+y}
15018 then :
15019 printf %s "(cached) " >&6
15020 else $as_nop
15021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15022 /* end confdefs.h. */
15023 #include <sys/types.h>
15024 #include <stdint.h>
15025 int
15026 main (void)
15027 {
15028 uintmax_t i = (uintmax_t) -1; return !i;
15029 ;
15030 return 0;
15031 }
15032 _ACEOF
15033 if ac_fn_c_try_compile "$LINENO"
15034 then :
15035 gl_cv_header_stdint_h=yes
15036 else $as_nop
15037 gl_cv_header_stdint_h=no
15038 fi
15039 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15040 fi
15041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5
15042 printf "%s\n" "$gl_cv_header_stdint_h" >&6; }
15043 if test $gl_cv_header_stdint_h = yes; then
15044
15045 printf "%s\n" "#define HAVE_STDINT_H_WITH_UINTMAX 1" >>confdefs.h
15046
15047 fi
15048
15049
15050
15051
15052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5
15053 printf %s "checking for intmax_t... " >&6; }
15054 if test ${gt_cv_c_intmax_t+y}
15055 then :
15056 printf %s "(cached) " >&6
15057 else $as_nop
15058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h. */
15060
15061 #include <stddef.h>
15062 #include <stdlib.h>
15063 #if HAVE_STDINT_H_WITH_UINTMAX
15064 #include <stdint.h>
15065 #endif
15066 #if HAVE_INTTYPES_H_WITH_UINTMAX
15067 #include <inttypes.h>
15068 #endif
15069
15070 int
15071 main (void)
15072 {
15073 intmax_t x = -1; return !x;
15074 ;
15075 return 0;
15076 }
15077 _ACEOF
15078 if ac_fn_c_try_compile "$LINENO"
15079 then :
15080 gt_cv_c_intmax_t=yes
15081 else $as_nop
15082 gt_cv_c_intmax_t=no
15083 fi
15084 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15085 fi
15086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5
15087 printf "%s\n" "$gt_cv_c_intmax_t" >&6; }
15088 if test $gt_cv_c_intmax_t = yes; then
15089
15090 printf "%s\n" "#define HAVE_INTMAX_T 1" >>confdefs.h
15091
15092 else
15093
15094 printf "%s\n" "#define intmax_t long long" >>confdefs.h
15095
15096 fi
15097
15098
15099
15100
15101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf truncates the result as in C99" >&5
15102 printf %s "checking whether snprintf truncates the result as in C99... " >&6; }
15103 if test ${gl_cv_func_snprintf_truncation_c99+y}
15104 then :
15105 printf %s "(cached) " >&6
15106 else $as_nop
15107
15108 if test "$cross_compiling" = yes
15109 then :
15110
15111 case "$host_os" in
15112 # Guess yes on glibc systems.
15113 *-gnu* | gnu*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
15114 # Guess yes on musl systems.
15115 *-musl* | midipix*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
15116 # Guess yes on FreeBSD >= 5.
15117 freebsd[1-4].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
15118 freebsd* | kfreebsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
15119 midnightbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
15120 # Guess yes on Mac OS X >= 10.3.
15121 darwin[1-6].*) gl_cv_func_snprintf_truncation_c99="guessing no";;
15122 darwin*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
15123 # Guess yes on OpenBSD >= 3.9.
15124 openbsd[1-2].* | openbsd3.[0-8] | openbsd3.[0-8].*)
15125 gl_cv_func_snprintf_truncation_c99="guessing no";;
15126 openbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
15127 # Guess yes on Solaris >= 2.6.
15128 solaris2.[0-5] | solaris2.[0-5].*)
15129 gl_cv_func_snprintf_truncation_c99="guessing no";;
15130 solaris*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
15131 # Guess yes on AIX >= 4.
15132 aix[1-3]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
15133 aix*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
15134 # Guess yes on HP-UX >= 11.
15135 hpux[7-9]* | hpux10*) gl_cv_func_snprintf_truncation_c99="guessing no";;
15136 hpux*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
15137 # Guess yes on IRIX >= 6.5.
15138 irix6.5) gl_cv_func_snprintf_truncation_c99="guessing yes";;
15139 # Guess yes on OSF/1 >= 5.
15140 osf[3-4]*) gl_cv_func_snprintf_truncation_c99="guessing no";;
15141 osf*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
15142 # Guess yes on NetBSD >= 3.
15143 netbsd[1-2]* | netbsdelf[1-2]* | netbsdaout[1-2]* | netbsdcoff[1-2]*)
15144 gl_cv_func_snprintf_truncation_c99="guessing no";;
15145 netbsd*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
15146 # Guess yes on BeOS.
15147 beos*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
15148 # Guess yes on Android.
15149 linux*-android*) gl_cv_func_snprintf_truncation_c99="guessing yes";;
15150 # Guess no on native Windows.
15151 mingw* | windows*) gl_cv_func_snprintf_truncation_c99="guessing no";;
15152 # If we don't know, obey --enable-cross-guesses.
15153 *) gl_cv_func_snprintf_truncation_c99="$gl_cross_guess_normal";;
15154 esac
15155
15156 else $as_nop
15157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15158 /* end confdefs.h. */
15159
15160 #include <stdio.h>
15161 #include <string.h>
15162 #if HAVE_SNPRINTF
15163 # define my_snprintf snprintf
15164 #else
15165 # include <stdarg.h>
15166 static int my_snprintf (char *buf, int size, const char *format, ...)
15167 {
15168 va_list args;
15169 int ret;
15170 va_start (args, format);
15171 ret = vsnprintf (buf, size, format, args);
15172 va_end (args);
15173 return ret;
15174 }
15175 #endif
15176 static char buf[100];
15177 int main ()
15178 {
15179 strcpy (buf, "ABCDEF");
15180 my_snprintf (buf, 3, "%d %d", 4567, 89);
15181 if (memcmp (buf, "45\0DEF", 6) != 0)
15182 return 1;
15183 return 0;
15184 }
15185 _ACEOF
15186 if ac_fn_c_try_run "$LINENO"
15187 then :
15188 gl_cv_func_snprintf_truncation_c99=yes
15189 else $as_nop
15190 gl_cv_func_snprintf_truncation_c99=no
15191 fi
15192 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15193 conftest.$ac_objext conftest.beam conftest.$ac_ext
15194 fi
15195
15196
15197 fi
15198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_truncation_c99" >&5
15199 printf "%s\n" "$gl_cv_func_snprintf_truncation_c99" >&6; }
15200
15201
15202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where to find the exponent in a 'double'" >&5
15203 printf %s "checking where to find the exponent in a 'double'... " >&6; }
15204 if test ${gl_cv_cc_double_expbit0+y}
15205 then :
15206 printf %s "(cached) " >&6
15207 else $as_nop
15208
15209 if test "$cross_compiling" = yes
15210 then :
15211
15212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15213 /* end confdefs.h. */
15214
15215 #if defined arm || defined __arm || defined __arm__
15216 mixed_endianness
15217 #endif
15218
15219 _ACEOF
15220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15221 $EGREP "mixed_endianness" >/dev/null 2>&1
15222 then :
15223 gl_cv_cc_double_expbit0="unknown"
15224 else $as_nop
15225
15226 :
15227 if test ${ac_cv_c_bigendian+y}
15228 then :
15229 printf %s "(cached) " >&6
15230 else $as_nop
15231 ac_cv_c_bigendian=unknown
15232 # See if we're dealing with a universal compiler.
15233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15234 /* end confdefs.h. */
15235 #ifndef __APPLE_CC__
15236 not a universal capable compiler
15237 #endif
15238 typedef int dummy;
15239
15240 _ACEOF
15241 if ac_fn_c_try_compile "$LINENO"
15242 then :
15243
15244 # Check for potential -arch flags. It is not universal unless
15245 # there are at least two -arch flags with different values.
15246 ac_arch=
15247 ac_prev=
15248 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
15249 if test -n "$ac_prev"; then
15250 case $ac_word in
15251 i?86 | x86_64 | ppc | ppc64)
15252 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
15253 ac_arch=$ac_word
15254 else
15255 ac_cv_c_bigendian=universal
15256 break
15257 fi
15258 ;;
15259 esac
15260 ac_prev=
15261 elif test "x$ac_word" = "x-arch"; then
15262 ac_prev=arch
15263 fi
15264 done
15265 fi
15266 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15267 if test $ac_cv_c_bigendian = unknown; then
15268 # See if sys/param.h defines the BYTE_ORDER macro.
15269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15270 /* end confdefs.h. */
15271 #include <sys/types.h>
15272 #include <sys/param.h>
15273
15274 int
15275 main (void)
15276 {
15277 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
15278 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
15279 && LITTLE_ENDIAN)
15280 bogus endian macros
15281 #endif
15282
15283 ;
15284 return 0;
15285 }
15286 _ACEOF
15287 if ac_fn_c_try_compile "$LINENO"
15288 then :
15289 # It does; now see whether it defined to BIG_ENDIAN or not.
15290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15291 /* end confdefs.h. */
15292 #include <sys/types.h>
15293 #include <sys/param.h>
15294
15295 int
15296 main (void)
15297 {
15298 #if BYTE_ORDER != BIG_ENDIAN
15299 not big endian
15300 #endif
15301
15302 ;
15303 return 0;
15304 }
15305 _ACEOF
15306 if ac_fn_c_try_compile "$LINENO"
15307 then :
15308 ac_cv_c_bigendian=yes
15309 else $as_nop
15310 ac_cv_c_bigendian=no
15311 fi
15312 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15313 fi
15314 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15315 fi
15316 if test $ac_cv_c_bigendian = unknown; then
15317 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
15318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15319 /* end confdefs.h. */
15320 #include <limits.h>
15321
15322 int
15323 main (void)
15324 {
15325 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
15326 bogus endian macros
15327 #endif
15328
15329 ;
15330 return 0;
15331 }
15332 _ACEOF
15333 if ac_fn_c_try_compile "$LINENO"
15334 then :
15335 # It does; now see whether it defined to _BIG_ENDIAN or not.
15336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15337 /* end confdefs.h. */
15338 #include <limits.h>
15339
15340 int
15341 main (void)
15342 {
15343 #ifndef _BIG_ENDIAN
15344 not big endian
15345 #endif
15346
15347 ;
15348 return 0;
15349 }
15350 _ACEOF
15351 if ac_fn_c_try_compile "$LINENO"
15352 then :
15353 ac_cv_c_bigendian=yes
15354 else $as_nop
15355 ac_cv_c_bigendian=no
15356 fi
15357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15358 fi
15359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15360 fi
15361 if test $ac_cv_c_bigendian = unknown; then
15362 # Compile a test program.
15363 if test "$cross_compiling" = yes
15364 then :
15365 # Try to guess by grepping values from an object file.
15366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15367 /* end confdefs.h. */
15368 unsigned short int ascii_mm[] =
15369 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
15370 unsigned short int ascii_ii[] =
15371 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
15372 int use_ascii (int i) {
15373 return ascii_mm[i] + ascii_ii[i];
15374 }
15375 unsigned short int ebcdic_ii[] =
15376 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
15377 unsigned short int ebcdic_mm[] =
15378 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
15379 int use_ebcdic (int i) {
15380 return ebcdic_mm[i] + ebcdic_ii[i];
15381 }
15382 extern int foo;
15383
15384 int
15385 main (void)
15386 {
15387 return use_ascii (foo) == use_ebcdic (foo);
15388 ;
15389 return 0;
15390 }
15391 _ACEOF
15392 if ac_fn_c_try_compile "$LINENO"
15393 then :
15394 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
15395 ac_cv_c_bigendian=yes
15396 fi
15397 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
15398 if test "$ac_cv_c_bigendian" = unknown; then
15399 ac_cv_c_bigendian=no
15400 else
15401 # finding both strings is unlikely to happen, but who knows?
15402 ac_cv_c_bigendian=unknown
15403 fi
15404 fi
15405 fi
15406 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
15407 else $as_nop
15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15409 /* end confdefs.h. */
15410 $ac_includes_default
15411 int
15412 main (void)
15413 {
15414
15415 /* Are we little or big endian? From Harbison&Steele. */
15416 union
15417 {
15418 long int l;
15419 char c[sizeof (long int)];
15420 } u;
15421 u.l = 1;
15422 return u.c[sizeof (long int) - 1] == 1;
15423
15424 ;
15425 return 0;
15426 }
15427 _ACEOF
15428 if ac_fn_c_try_run "$LINENO"
15429 then :
15430 ac_cv_c_bigendian=no
15431 else $as_nop
15432 ac_cv_c_bigendian=yes
15433 fi
15434 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15435 conftest.$ac_objext conftest.beam conftest.$ac_ext
15436 fi
15437
15438 fi
15439 fi
15440 :
15441 case $ac_cv_c_bigendian in #(
15442 yes)
15443 gl_cv_cc_double_expbit0="word 0 bit 20";; #(
15444 no)
15445 gl_cv_cc_double_expbit0="word 1 bit 20" ;; #(
15446 universal)
15447
15448 printf "%s\n" "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
15449
15450 ;; #(
15451 *)
15452 gl_cv_cc_double_expbit0="unknown" ;;
15453 esac
15454
15455
15456 fi
15457 rm -rf conftest*
15458
15459
15460 else $as_nop
15461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15462 /* end confdefs.h. */
15463
15464 #include <float.h>
15465 #include <stddef.h>
15466 #include <stdio.h>
15467 #include <string.h>
15468 #define NWORDS \
15469 ((sizeof (double) + sizeof (unsigned int) - 1) / sizeof (unsigned int))
15470 typedef union { double value; unsigned int word[NWORDS]; } memory_double;
15471 static unsigned int ored_words[NWORDS];
15472 static unsigned int anded_words[NWORDS];
15473 static void add_to_ored_words (double x)
15474 {
15475 memory_double m;
15476 size_t i;
15477 /* Clear it first, in case sizeof (double) < sizeof (memory_double). */
15478 memset (&m, 0, sizeof (memory_double));
15479 m.value = x;
15480 for (i = 0; i < NWORDS; i++)
15481 {
15482 ored_words[i] |= m.word[i];
15483 anded_words[i] &= m.word[i];
15484 }
15485 }
15486 int main ()
15487 {
15488 size_t j;
15489 FILE *fp = fopen ("conftest.out", "w");
15490 if (fp == NULL)
15491 return 1;
15492 for (j = 0; j < NWORDS; j++)
15493 anded_words[j] = ~ (unsigned int) 0;
15494 add_to_ored_words (0.25);
15495 add_to_ored_words (0.5);
15496 add_to_ored_words (1.0);
15497 add_to_ored_words (2.0);
15498 add_to_ored_words (4.0);
15499 /* Remove bits that are common (e.g. if representation of the first mantissa
15500 bit is explicit). */
15501 for (j = 0; j < NWORDS; j++)
15502 ored_words[j] &= ~anded_words[j];
15503 /* Now find the nonzero word. */
15504 for (j = 0; j < NWORDS; j++)
15505 if (ored_words[j] != 0)
15506 break;
15507 if (j < NWORDS)
15508 {
15509 size_t i;
15510 for (i = j + 1; i < NWORDS; i++)
15511 if (ored_words[i] != 0)
15512 {
15513 fprintf (fp, "unknown");
15514 return (fclose (fp) != 0);
15515 }
15516 for (i = 0; ; i++)
15517 if ((ored_words[j] >> i) & 1)
15518 {
15519 fprintf (fp, "word %d bit %d", (int) j, (int) i);
15520 return (fclose (fp) != 0);
15521 }
15522 }
15523 fprintf (fp, "unknown");
15524 return (fclose (fp) != 0);
15525 }
15526
15527 _ACEOF
15528 if ac_fn_c_try_run "$LINENO"
15529 then :
15530 gl_cv_cc_double_expbit0=`cat conftest.out`
15531 else $as_nop
15532 gl_cv_cc_double_expbit0="unknown"
15533 fi
15534 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15535 conftest.$ac_objext conftest.beam conftest.$ac_ext
15536 fi
15537
15538 rm -f conftest.out
15539
15540 fi
15541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_double_expbit0" >&5
15542 printf "%s\n" "$gl_cv_cc_double_expbit0" >&6; }
15543 case "$gl_cv_cc_double_expbit0" in
15544 word*bit*)
15545 word=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word //' -e 's/ bit.*//'`
15546 bit=`echo "$gl_cv_cc_double_expbit0" | sed -e 's/word.*bit //'`
15547
15548 printf "%s\n" "#define DBL_EXPBIT0_WORD $word" >>confdefs.h
15549
15550
15551 printf "%s\n" "#define DBL_EXPBIT0_BIT $bit" >>confdefs.h
15552
15553 ;;
15554 esac
15555
15556
15557
15558
15559
15560 ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen"
15561 if test "x$ac_cv_func_wcslen" = xyes
15562 then :
15563 printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h
15564
15565 fi
15566
15567
15568
15569
15570 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
15571 if test "x$ac_cv_func_snprintf" = xyes
15572 then :
15573 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
15574
15575 fi
15576 ac_fn_c_check_func "$LINENO" "strnlen" "ac_cv_func_strnlen"
15577 if test "x$ac_cv_func_strnlen" = xyes
15578 then :
15579 printf "%s\n" "#define HAVE_STRNLEN 1" >>confdefs.h
15580
15581 fi
15582 ac_fn_c_check_func "$LINENO" "wcrtomb" "ac_cv_func_wcrtomb"
15583 if test "x$ac_cv_func_wcrtomb" = xyes
15584 then :
15585 printf "%s\n" "#define HAVE_WCRTOMB 1" >>confdefs.h
15586
15587 fi
15588
15589 ac_fn_check_decl "$LINENO" "_snprintf" "ac_cv_have_decl__snprintf" "#include <stdio.h>
15590 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15591 if test "x$ac_cv_have_decl__snprintf" = xyes
15592 then :
15593 ac_have_decl=1
15594 else $as_nop
15595 ac_have_decl=0
15596 fi
15597 printf "%s\n" "#define HAVE_DECL__SNPRINTF $ac_have_decl" >>confdefs.h
15598
15599
15600 case "$gl_cv_func_snprintf_retval_c99" in
15601 *yes)
15602
15603 printf "%s\n" "#define HAVE_SNPRINTF_RETVAL_C99 1" >>confdefs.h
15604
15605 ;;
15606 esac
15607
15608 case "$gl_cv_func_snprintf_truncation_c99" in
15609 *yes)
15610
15611 printf "%s\n" "#define HAVE_SNPRINTF_TRUNCATION_C99 1" >>confdefs.h
15612
15613 ;;
15614 esac
15615
15616
15617
15618
15619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether <wchar.h> uses 'inline' correctly" >&5
15620 printf %s "checking whether <wchar.h> uses 'inline' correctly... " >&6; }
15621 if test ${gl_cv_header_wchar_h_correct_inline+y}
15622 then :
15623 printf %s "(cached) " >&6
15624 else $as_nop
15625 gl_cv_header_wchar_h_correct_inline=yes
15626 case "$host_os" in
15627 *-gnu* | gnu*)
15628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15629 /* end confdefs.h. */
15630
15631
15632 #define wcstod renamed_wcstod
15633 #include <wchar.h>
15634 extern int zero (void);
15635 int main () { return zero(); }
15636
15637 _ACEOF
15638 save_ac_compile="$ac_compile"
15639 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest1/`
15640 if echo '#include "conftest.c"' >conftest1.c \
15641 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15642 (eval $ac_compile) 2>&5
15643 ac_status=$?
15644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15645 test $ac_status = 0; }; then
15646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15647 /* end confdefs.h. */
15648
15649
15650 #define wcstod renamed_wcstod
15651 #include <wchar.h>
15652 int zero (void) { return 0; }
15653
15654 _ACEOF
15655 ac_compile=`echo "$save_ac_compile" | sed s/conftest/conftest2/`
15656 if echo '#include "conftest.c"' >conftest2.c \
15657 && { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15658 (eval $ac_compile) 2>&5
15659 ac_status=$?
15660 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15661 test $ac_status = 0; }; then
15662 if $CC -o conftest$ac_exeext $CFLAGS $LDFLAGS conftest1.$ac_objext conftest2.$ac_objext $LIBS >&5 2>&1; then
15663 :
15664 else
15665 gl_cv_header_wchar_h_correct_inline=no
15666 fi
15667 fi
15668 fi
15669 ac_compile="$save_ac_compile"
15670 rm -f conftest12.c conftest12.$ac_objext conftest$ac_exeext
15671 ;;
15672 esac
15673
15674 fi
15675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_wchar_h_correct_inline" >&5
15676 printf "%s\n" "$gl_cv_header_wchar_h_correct_inline" >&6; }
15677 if test $gl_cv_header_wchar_h_correct_inline = no; then
15678 as_fn_error $? "<wchar.h> cannot be used with this compiler ($CC $CFLAGS $CPPFLAGS).
15679 This is a known interoperability problem of glibc <= 2.5 with gcc >= 4.3 in
15680 C99 mode. You have four options:
15681 - Add the flag -fgnu89-inline to CC and reconfigure, or
15682 - Fix your include files, using parts of
15683 <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=b037a293a48718af30d706c2e18c929d0e69a621>, or
15684 - Use a gcc version older than 4.3, or
15685 - Don't use the flags -std=c99 or -std=gnu99.
15686 Configuration aborted." "$LINENO" 5
15687 fi
15688
15689
15690
15691
15692 if test $ac_cv_header_crtdefs_h = yes; then
15693 HAVE_CRTDEFS_H=1
15694 else
15695 HAVE_CRTDEFS_H=0
15696 fi
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711 if test $gl_cv_have_include_next = yes; then
15712 gl_cv_next_wchar_h='<'wchar.h'>'
15713 else
15714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <wchar.h>" >&5
15715 printf %s "checking absolute name of <wchar.h>... " >&6; }
15716 if test ${gl_cv_next_wchar_h+y}
15717 then :
15718 printf %s "(cached) " >&6
15719 else $as_nop
15720
15721 if test $ac_cv_header_wchar_h = yes; then
15722
15723
15724
15725
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h. */
15728 #include <wchar.h>
15729 _ACEOF
15730 case "$host_os" in
15731 aix*) gl_absname_cpp="$ac_cpp -C" ;;
15732 *) gl_absname_cpp="$ac_cpp" ;;
15733 esac
15734
15735 case "$host_os" in
15736 mingw* | windows*)
15737 gl_dirsep_regex='[/\\]'
15738 ;;
15739 *)
15740 gl_dirsep_regex='\/'
15741 ;;
15742 esac
15743 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
15744 gl_header_literal_regex=`echo 'wchar.h' \
15745 | sed -e "$gl_make_literal_regex_sed"`
15746 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
15747 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
15748 s|^/[^/]|//&|
15749 p
15750 q
15751 }'
15752
15753 gl_cv_absolute_wchar_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
15754 sed -n "$gl_absolute_header_sed"`
15755
15756 gl_header=$gl_cv_absolute_wchar_h
15757 gl_cv_next_wchar_h='"'$gl_header'"'
15758 else
15759 gl_cv_next_wchar_h='<'wchar.h'>'
15760 fi
15761
15762
15763 fi
15764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_wchar_h" >&5
15765 printf "%s\n" "$gl_cv_next_wchar_h" >&6; }
15766 fi
15767 NEXT_WCHAR_H=$gl_cv_next_wchar_h
15768
15769 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
15770 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
15771 gl_next_as_first_directive='<'wchar.h'>'
15772 else
15773 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
15774 gl_next_as_first_directive=$gl_cv_next_wchar_h
15775 fi
15776 NEXT_AS_FIRST_DIRECTIVE_WCHAR_H=$gl_next_as_first_directive
15777
15778
15779
15780
15781 if test $ac_cv_header_wchar_h = yes; then
15782 HAVE_WCHAR_H=1
15783 else
15784 HAVE_WCHAR_H=0
15785 fi
15786
15787
15788
15789
15790
15791 if test $gt_cv_c_wint_t = yes; then
15792 HAVE_WINT_T=1
15793 else
15794 HAVE_WINT_T=0
15795 fi
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806 ac_fn_check_decl "$LINENO" "wcsdup" "ac_cv_have_decl_wcsdup" "
15807 #include <wchar.h>
15808
15809 " "$ac_c_undeclared_builtin_options" "CFLAGS"
15810 if test "x$ac_cv_have_decl_wcsdup" = xyes
15811 then :
15812 ac_have_decl=1
15813 else $as_nop
15814 ac_have_decl=0
15815 fi
15816 printf "%s\n" "#define HAVE_DECL_WCSDUP $ac_have_decl" >>confdefs.h
15817
15818 if test $ac_cv_have_decl_wcsdup = no; then
15819 HAVE_DECL_WCSDUP=0
15820 fi
15821
15822
15823
15824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler option to allow warnings" >&5
15825 printf %s "checking for C compiler option to allow warnings... " >&6; }
15826 if test ${gl_cv_cc_wallow+y}
15827 then :
15828 printf %s "(cached) " >&6
15829 else $as_nop
15830 rm -f conftest*
15831 echo 'int dummy;' > conftest.c
15832 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -c conftest.c 2>conftest1.err'
15833 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15834 (eval $ac_try) 2>&5
15835 ac_status=$?
15836 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15837 test $ac_status = 0; }; } >/dev/null
15838 { ac_try='${CC-cc} $CFLAGS $CPPFLAGS -Wno-error -c conftest.c 2>conftest2.err'
15839 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
15840 (eval $ac_try) 2>&5
15841 ac_status=$?
15842 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15843 test $ac_status = 0; }; } >/dev/null
15844 if test $? = 0 && test `wc -l < conftest1.err` = `wc -l < conftest2.err`; then
15845 gl_cv_cc_wallow='-Wno-error'
15846 else
15847 gl_cv_cc_wallow=none
15848 fi
15849 rm -f conftest*
15850
15851 fi
15852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_wallow" >&5
15853 printf "%s\n" "$gl_cv_cc_wallow" >&6; }
15854 case "$gl_cv_cc_wallow" in
15855 none) GL_CFLAG_ALLOW_WARNINGS='' ;;
15856 *) GL_CFLAG_ALLOW_WARNINGS="$gl_cv_cc_wallow" ;;
15857 esac
15858
15859
15860
15861
15862 GL_CFLAG_GNULIB_WARNINGS=''
15863 if test -n "$GL_CFLAG_ALLOW_WARNINGS"; then
15864 cat > conftest.c <<\EOF
15865 #if __GNUC__ >= 3 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15866 -Wno-cast-qual
15867 -Wno-conversion
15868 -Wno-float-equal
15869 -Wno-sign-compare
15870 -Wno-undef
15871 -Wno-unused-function
15872 -Wno-unused-parameter
15873 #endif
15874 #if __GNUC__ + (__GNUC_MINOR__ >= 9) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15875 -Wno-float-conversion
15876 #endif
15877 #if __GNUC__ >= 7 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15878 -Wimplicit-fallthrough
15879 #endif
15880 #if __GNUC__ + (__GNUC_MINOR__ >= 8) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15881 -Wno-pedantic
15882 #endif
15883 #if 3 < __clang_major__ + (9 <= __clang_minor__)
15884 -Wno-tautological-constant-out-of-range-compare
15885 #endif
15886 #if __GNUC__ + (__GNUC_MINOR__ >= 3) > 4 || (__clang_major__ + (__clang_minor__ >= 9) > 3)
15887 -Wno-sign-conversion
15888 -Wno-type-limits
15889 #endif
15890 #if __GNUC__ + (__GNUC_MINOR__ >= 5) > 4
15891 -Wno-unsuffixed-float-constants
15892 #endif
15893 EOF
15894 gl_command="$CC $CFLAGS $CPPFLAGS -E conftest.c > conftest.out"
15895 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gl_command\""; } >&5
15896 (eval $gl_command) 2>&5
15897 ac_status=$?
15898 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15899 test $ac_status = 0; }; then
15900 gl_options=`grep -v '#' conftest.out`
15901 for word in $gl_options; do
15902 GL_CFLAG_GNULIB_WARNINGS="$GL_CFLAG_GNULIB_WARNINGS $word"
15903 done
15904 fi
15905 rm -f conftest.c conftest.out
15906 fi
15907
15908
15909
15910 if false; then
15911 GL_COND_LIBTOOL_TRUE=
15912 GL_COND_LIBTOOL_FALSE='#'
15913 else
15914 GL_COND_LIBTOOL_TRUE='#'
15915 GL_COND_LIBTOOL_FALSE=
15916 fi
15917
15918 gl_cond_libtool=false
15919 gl_libdeps=
15920 gl_ltlibdeps=
15921 gl_m4_base='m4'
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934 gl_source_base='gnu'
15935 gl_source_base_prefix=
15936
15937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alignas and alignof" >&5
15938 printf %s "checking for alignas and alignof... " >&6; }
15939 if test ${gl_cv_header_working_stdalign_h+y}
15940 then :
15941 printf %s "(cached) " >&6
15942 else $as_nop
15943 gl_save_CFLAGS=$CFLAGS
15944 for gl_working in "yes, keywords" "yes, <stdalign.h> macros"; do
15945 case $gl_working in #(
15946 *stdalign.h*) :
15947 CFLAGS="$gl_save_CFLAGS -DINCLUDE_STDALIGN_H" ;; #(
15948 *) :
15949 ;;
15950 esac
15951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15952 /* end confdefs.h. */
15953 #include <stdint.h>
15954 #ifdef INCLUDE_STDALIGN_H
15955 #include <stdalign.h>
15956 #endif
15957 #include <stddef.h>
15958
15959 /* Test that alignof yields a result consistent with offsetof.
15960 This catches GCC bug 52023
15961 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023>. */
15962 #ifdef __cplusplus
15963 template <class t> struct alignof_helper { char a; t b; };
15964 # define ao(type) offsetof (alignof_helper<type>, b)
15965 #else
15966 # define ao(type) offsetof (struct { char a; type b; }, b)
15967 #endif
15968 char test_double[ao (double) % _Alignof (double) == 0 ? 1 : -1];
15969 char test_long[ao (long int) % _Alignof (long int) == 0 ? 1 : -1];
15970 char test_alignof[alignof (double) == _Alignof (double) ? 1 : -1];
15971
15972 /* Test alignas only on platforms where gnulib can help. */
15973 #if \
15974 ((defined __cplusplus && 201103 <= __cplusplus) \
15975 || (__TINYC__ && defined __attribute__) \
15976 || (defined __APPLE__ && defined __MACH__ \
15977 ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
15978 : __GNUC__) \
15979 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
15980 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
15981 || 1300 <= _MSC_VER)
15982 struct alignas_test { char c; char alignas (8) alignas_8; };
15983 char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
15984 ? 1 : -1];
15985 #endif
15986
15987 int
15988 main (void)
15989 {
15990
15991 ;
15992 return 0;
15993 }
15994 _ACEOF
15995 if ac_fn_c_try_compile "$LINENO"
15996 then :
15997 gl_cv_header_working_stdalign_h=$gl_working
15998 else $as_nop
15999 gl_cv_header_working_stdalign_h=no
16000 fi
16001 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16002
16003 CFLAGS=$gl_save_CFLAGS
16004 test "$gl_cv_header_working_stdalign_h" != no && break
16005 done
16006 fi
16007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_stdalign_h" >&5
16008 printf "%s\n" "$gl_cv_header_working_stdalign_h" >&6; }
16009
16010 case $gl_cv_header_working_stdalign_h in #(
16011 yes*keyword*) :
16012
16013 printf "%s\n" "#define HAVE_C_ALIGNASOF 1" >>confdefs.h
16014 ;; #(
16015 *) :
16016 ;;
16017 esac
16018
16019
16020
16021
16022
16023 if test $ac_cv_func_alloca_works = no; then
16024 :
16025 fi
16026
16027 # Define an additional variable used in the Makefile substitution.
16028 if test $ac_cv_working_alloca_h = yes; then
16029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for alloca as a compiler built-in" >&5
16030 printf %s "checking for alloca as a compiler built-in... " >&6; }
16031 if test ${gl_cv_rpl_alloca+y}
16032 then :
16033 printf %s "(cached) " >&6
16034 else $as_nop
16035
16036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16037 /* end confdefs.h. */
16038
16039 #if defined __GNUC__ || defined _AIX || defined _MSC_VER
16040 Need own alloca
16041 #endif
16042
16043 _ACEOF
16044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16045 $EGREP "Need own alloca" >/dev/null 2>&1
16046 then :
16047 gl_cv_rpl_alloca=yes
16048 else $as_nop
16049 gl_cv_rpl_alloca=no
16050 fi
16051 rm -rf conftest*
16052
16053
16054 fi
16055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_rpl_alloca" >&5
16056 printf "%s\n" "$gl_cv_rpl_alloca" >&6; }
16057 if test $gl_cv_rpl_alloca = yes; then
16058
16059 printf "%s\n" "#define HAVE_ALLOCA 1" >>confdefs.h
16060
16061 GL_GENERATE_ALLOCA_H=true
16062 else
16063 GL_GENERATE_ALLOCA_H=false
16064 fi
16065 else
16066 GL_GENERATE_ALLOCA_H=true
16067 fi
16068
16069 if test $ac_cv_working_alloca_h = yes; then
16070 HAVE_ALLOCA_H=1
16071 else
16072 HAVE_ALLOCA_H=0
16073 fi
16074
16075
16076
16077
16078
16079
16080 case "$GL_GENERATE_ALLOCA_H" in
16081 false) ALLOCA_H='' ;;
16082 true)
16083 if test -z "$ALLOCA_H"; then
16084 ALLOCA_H="${gl_source_base_prefix}alloca.h"
16085 fi
16086 ;;
16087 *) echo "*** GL_GENERATE_ALLOCA_H is not set correctly" 1>&2; exit 1 ;;
16088 esac
16089
16090
16091 if $GL_GENERATE_ALLOCA_H; then
16092 GL_GENERATE_ALLOCA_H_TRUE=
16093 GL_GENERATE_ALLOCA_H_FALSE='#'
16094 else
16095 GL_GENERATE_ALLOCA_H_TRUE='#'
16096 GL_GENERATE_ALLOCA_H_FALSE=
16097 fi
16098 :
16099 if test -z "${GL_GENERATE_ALLOCA_H_TRUE}" && test -z "${GL_GENERATE_ALLOCA_H_FALSE}"; then
16100 GL_GENERATE_ALLOCA_H_TRUE='#'
16101 GL_GENERATE_ALLOCA_H_FALSE='#'
16102 fi
16103
16104
16105
16106
16107
16108
16109
16110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for static_assert" >&5
16111 printf %s "checking for static_assert... " >&6; }
16112 if test ${gl_cv_static_assert+y}
16113 then :
16114 printf %s "(cached) " >&6
16115 else $as_nop
16116 gl_save_CFLAGS=$CFLAGS
16117 for gl_working in "yes, a keyword" "yes, an <assert.h> macro"; do
16118 case $gl_working in #(
16119 *assert.h*) :
16120 CFLAGS="$gl_save_CFLAGS -DINCLUDE_ASSERT_H" ;; #(
16121 *) :
16122 ;;
16123 esac
16124
16125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16126 /* end confdefs.h. */
16127 #if defined __clang__ && __STDC_VERSION__ < 202311
16128 #pragma clang diagnostic error "-Wc2x-extensions"
16129 #pragma clang diagnostic error "-Wc++1z-extensions"
16130 #endif
16131 #ifdef INCLUDE_ASSERT_H
16132 #include <assert.h>
16133 #endif
16134 static_assert (2 + 2 == 4, "arithmetic does not work");
16135 static_assert (2 + 2 == 4);
16136
16137 int
16138 main (void)
16139 {
16140
16141 static_assert (sizeof (char) == 1, "sizeof does not work");
16142 static_assert (sizeof (char) == 1);
16143
16144 ;
16145 return 0;
16146 }
16147 _ACEOF
16148 if ac_fn_c_try_compile "$LINENO"
16149 then :
16150 gl_cv_static_assert=$gl_working
16151 else $as_nop
16152 gl_cv_static_assert=no
16153 fi
16154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16155 CFLAGS=$gl_save_CFLAGS
16156 test "$gl_cv_static_assert" != no && break
16157 done
16158 fi
16159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_static_assert" >&5
16160 printf "%s\n" "$gl_cv_static_assert" >&6; }
16161
16162 GL_GENERATE_ASSERT_H=false
16163 case $gl_cv_static_assert in #(
16164 yes*keyword*) :
16165
16166 printf "%s\n" "#define HAVE_C_STATIC_ASSERT 1" >>confdefs.h
16167 ;; #(
16168 no) :
16169 GL_GENERATE_ASSERT_H=true
16170
16171
16172
16173
16174
16175
16176
16177
16178 if test $gl_cv_have_include_next = yes; then
16179 gl_cv_next_assert_h='<'assert.h'>'
16180 else
16181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <assert.h>" >&5
16182 printf %s "checking absolute name of <assert.h>... " >&6; }
16183 if test ${gl_cv_next_assert_h+y}
16184 then :
16185 printf %s "(cached) " >&6
16186 else $as_nop
16187
16188
16189
16190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16191 /* end confdefs.h. */
16192 #include <assert.h>
16193 _ACEOF
16194 case "$host_os" in
16195 aix*) gl_absname_cpp="$ac_cpp -C" ;;
16196 *) gl_absname_cpp="$ac_cpp" ;;
16197 esac
16198
16199 case "$host_os" in
16200 mingw* | windows*)
16201 gl_dirsep_regex='[/\\]'
16202 ;;
16203 *)
16204 gl_dirsep_regex='\/'
16205 ;;
16206 esac
16207 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
16208 gl_header_literal_regex=`echo 'assert.h' \
16209 | sed -e "$gl_make_literal_regex_sed"`
16210 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
16211 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
16212 s|^/[^/]|//&|
16213 p
16214 q
16215 }'
16216
16217 gl_cv_absolute_assert_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
16218 sed -n "$gl_absolute_header_sed"`
16219
16220 gl_header=$gl_cv_absolute_assert_h
16221 gl_cv_next_assert_h='"'$gl_header'"'
16222
16223
16224 fi
16225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_assert_h" >&5
16226 printf "%s\n" "$gl_cv_next_assert_h" >&6; }
16227 fi
16228 NEXT_ASSERT_H=$gl_cv_next_assert_h
16229
16230 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
16231 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
16232 gl_next_as_first_directive='<'assert.h'>'
16233 else
16234 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
16235 gl_next_as_first_directive=$gl_cv_next_assert_h
16236 fi
16237 NEXT_AS_FIRST_DIRECTIVE_ASSERT_H=$gl_next_as_first_directive
16238
16239
16240
16241 ;; #(
16242 *) :
16243 ;;
16244 esac
16245
16246
16247
16248
16249
16250
16251
16252 case "$GL_GENERATE_ASSERT_H" in
16253 false) ASSERT_H='' ;;
16254 true)
16255 if test -z "$ASSERT_H"; then
16256 ASSERT_H="${gl_source_base_prefix}assert.h"
16257 fi
16258 ;;
16259 *) echo "*** GL_GENERATE_ASSERT_H is not set correctly" 1>&2; exit 1 ;;
16260 esac
16261
16262
16263 if $GL_GENERATE_ASSERT_H; then
16264 GL_GENERATE_ASSERT_H_TRUE=
16265 GL_GENERATE_ASSERT_H_FALSE='#'
16266 else
16267 GL_GENERATE_ASSERT_H_TRUE='#'
16268 GL_GENERATE_ASSERT_H_FALSE=
16269 fi
16270 :
16271 if test -z "${GL_GENERATE_ASSERT_H_TRUE}" && test -z "${GL_GENERATE_ASSERT_H_FALSE}"; then
16272 GL_GENERATE_ASSERT_H_TRUE='#'
16273 GL_GENERATE_ASSERT_H_FALSE='#'
16274 fi
16275
16276
16277
16278
16279
16280
16281
16282
16283
16284 REPLACE_CALLOC_FOR_CALLOC_GNU="$REPLACE_CALLOC_FOR_CALLOC_POSIX"
16285 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 0; then
16286
16287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether calloc (0, n) and calloc (n, 0) return nonnull" >&5
16288 printf %s "checking whether calloc (0, n) and calloc (n, 0) return nonnull... " >&6; }
16289 if test ${ac_cv_func_calloc_0_nonnull+y}
16290 then :
16291 printf %s "(cached) " >&6
16292 else $as_nop
16293 if test $cross_compiling != yes; then
16294 ac_cv_func_calloc_0_nonnull=yes
16295 if test "$cross_compiling" = yes
16296 then :
16297 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16298 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
16299 as_fn_error $? "cannot run test program while cross compiling
16300 See \`config.log' for more details" "$LINENO" 5; }
16301 else $as_nop
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16304 $ac_includes_default
16305 int
16306 main (void)
16307 {
16308 int result = 0;
16309 char * volatile p = calloc (0, 0);
16310 if (!p)
16311 result |= 1;
16312 free (p);
16313 return result;
16314
16315 ;
16316 return 0;
16317 }
16318 _ACEOF
16319 if ac_fn_c_try_run "$LINENO"
16320 then :
16321
16322 else $as_nop
16323 ac_cv_func_calloc_0_nonnull=no
16324 fi
16325 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16326 conftest.$ac_objext conftest.beam conftest.$ac_ext
16327 fi
16328
16329 else
16330 case "$host_os" in
16331 # Guess yes on glibc systems.
16332 *-gnu* | gnu*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
16333 # Guess yes on musl systems.
16334 *-musl* | midipix*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
16335 # Guess yes on native Windows.
16336 mingw* | windows*) ac_cv_func_calloc_0_nonnull="guessing yes" ;;
16337 # If we don't know, obey --enable-cross-guesses.
16338 *) ac_cv_func_calloc_0_nonnull="$gl_cross_guess_normal" ;;
16339 esac
16340 fi
16341
16342 fi
16343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_calloc_0_nonnull" >&5
16344 printf "%s\n" "$ac_cv_func_calloc_0_nonnull" >&6; }
16345 case $ac_cv_func_calloc_0_nonnull in #(
16346 *yes) :
16347 ;; #(
16348 *) :
16349 REPLACE_CALLOC_FOR_CALLOC_GNU=1 ;;
16350 esac
16351
16352 fi
16353
16354 if test $REPLACE_CALLOC_FOR_CALLOC_GNU = 1; then
16355
16356
16357
16358
16359
16360
16361
16362
16363 gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
16364
16365 fi
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375 GL_GNULIB_CALLOC_GNU=1
16376
16377
16378
16379
16380
16381 printf "%s\n" "#define GNULIB_TEST_CALLOC_GNU 1" >>confdefs.h
16382
16383
16384
16385
16386
16387
16388 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
16389 REPLACE_CALLOC_FOR_CALLOC_POSIX=1
16390 fi
16391
16392 if test $REPLACE_CALLOC_FOR_CALLOC_POSIX = 1; then
16393
16394
16395
16396
16397
16398
16399
16400
16401 gl_LIBOBJS="$gl_LIBOBJS calloc.$ac_objext"
16402
16403 fi
16404
16405
16406
16407
16408
16409
16410
16411
16412
16413 GL_GNULIB_CALLOC_POSIX=1
16414
16415
16416
16417
16418
16419 printf "%s\n" "#define GNULIB_TEST_CALLOC_POSIX 1" >>confdefs.h
16420
16421
16422
16423
16424
16425 printf "%s\n" "#define GNULIB_TEST_CLOEXEC 1" >>confdefs.h
16426
16427
16428
16429
16430 if test $REPLACE_CLOSE = 1; then
16431 GL_COND_OBJ_CLOSE_TRUE=
16432 GL_COND_OBJ_CLOSE_FALSE='#'
16433 else
16434 GL_COND_OBJ_CLOSE_TRUE='#'
16435 GL_COND_OBJ_CLOSE_FALSE=
16436 fi
16437 :
16438 if test -z "${GL_COND_OBJ_CLOSE_TRUE}" && test -z "${GL_COND_OBJ_CLOSE_FALSE}"; then
16439 GL_COND_OBJ_CLOSE_TRUE='#'
16440 GL_COND_OBJ_CLOSE_FALSE='#'
16441 fi
16442
16443
16444
16445
16446
16447
16448
16449
16450
16451
16452 GL_GNULIB_CLOSE=1
16453
16454
16455
16456
16457
16458 printf "%s\n" "#define GNULIB_TEST_CLOSE 1" >>confdefs.h
16459
16460
16461
16462
16463
16464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether // is distinct from /" >&5
16465 printf %s "checking whether // is distinct from /... " >&6; }
16466 if test ${gl_cv_double_slash_root+y}
16467 then :
16468 printf %s "(cached) " >&6
16469 else $as_nop
16470 if test x"$cross_compiling" = xyes ; then
16471 # When cross-compiling, there is no way to tell whether // is special
16472 # short of a list of hosts. However, the only known hosts to date
16473 # that have a distinct // are Apollo DomainOS (too old to port to),
16474 # Cygwin, and z/OS. If anyone knows of another system for which // has
16475 # special semantics and is distinct from /, please report it to
16476 # <[email protected]>.
16477 case $host in
16478 *-cygwin | i370-ibm-openedition)
16479 gl_cv_double_slash_root=yes ;;
16480 *)
16481 # Be optimistic and assume that / and // are the same when we
16482 # don't know.
16483 gl_cv_double_slash_root='unknown, assuming no' ;;
16484 esac
16485 else
16486 set x `ls -di / // 2>/dev/null`
16487 if test "$2" = "$4" && wc //dev/null >/dev/null 2>&1; then
16488 gl_cv_double_slash_root=no
16489 else
16490 gl_cv_double_slash_root=yes
16491 fi
16492 fi
16493 fi
16494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_double_slash_root" >&5
16495 printf "%s\n" "$gl_cv_double_slash_root" >&6; }
16496 if test "$gl_cv_double_slash_root" = yes; then
16497
16498 printf "%s\n" "#define DOUBLE_SLASH_IS_DISTINCT_ROOT 1" >>confdefs.h
16499
16500 fi
16501
16502
16503
16504
16505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether dup2 works" >&5
16506 printf %s "checking whether dup2 works... " >&6; }
16507 if test ${gl_cv_func_dup2_works+y}
16508 then :
16509 printf %s "(cached) " >&6
16510 else $as_nop
16511 if test "$cross_compiling" = yes
16512 then :
16513 case "$host_os" in
16514 mingw* | windows*) # on this platform, dup2 always returns 0 for success
16515 gl_cv_func_dup2_works="guessing no" ;;
16516 cygwin*) # on cygwin 1.5.x, dup2(1,1) returns 0
16517 gl_cv_func_dup2_works="guessing no" ;;
16518 aix* | freebsd*)
16519 # on AIX 7.1 and FreeBSD 6.1, dup2 (1,toobig) gives EMFILE,
16520 # not EBADF.
16521 gl_cv_func_dup2_works="guessing no" ;;
16522 haiku*) # on Haiku alpha 2, dup2(1, 1) resets FD_CLOEXEC.
16523 gl_cv_func_dup2_works="guessing no" ;;
16524 *-android*) # implemented using dup3(), which fails if oldfd == newfd
16525 gl_cv_func_dup2_works="guessing no" ;;
16526 os2*) # on OS/2 kLIBC, dup2() does not work on a directory fd.
16527 gl_cv_func_dup2_works="guessing no" ;;
16528 *) gl_cv_func_dup2_works="guessing yes" ;;
16529 esac
16530 else $as_nop
16531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16532 /* end confdefs.h. */
16533
16534 #include <errno.h>
16535 #include <fcntl.h>
16536 #include <limits.h>
16537 #include <sys/resource.h>
16538 #include <unistd.h>
16539
16540
16541 $gl_mda_defines
16542
16543 #ifndef RLIM_SAVED_CUR
16544 # define RLIM_SAVED_CUR RLIM_INFINITY
16545 #endif
16546 #ifndef RLIM_SAVED_MAX
16547 # define RLIM_SAVED_MAX RLIM_INFINITY
16548 #endif
16549
16550 int
16551 main (void)
16552 {
16553 int result = 0;
16554 int bad_fd = INT_MAX;
16555 struct rlimit rlim;
16556 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
16557 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
16558 && rlim.rlim_cur != RLIM_INFINITY
16559 && rlim.rlim_cur != RLIM_SAVED_MAX
16560 && rlim.rlim_cur != RLIM_SAVED_CUR)
16561 bad_fd = rlim.rlim_cur;
16562 #ifdef FD_CLOEXEC
16563 if (fcntl (1, F_SETFD, FD_CLOEXEC) == -1)
16564 result |= 1;
16565 #endif
16566 if (dup2 (1, 1) != 1)
16567 result |= 2;
16568 #ifdef FD_CLOEXEC
16569 if (fcntl (1, F_GETFD) != FD_CLOEXEC)
16570 result |= 4;
16571 #endif
16572 close (0);
16573 if (dup2 (0, 0) != -1)
16574 result |= 8;
16575 /* Many gnulib modules require POSIX conformance of EBADF. */
16576 if (dup2 (2, bad_fd) == -1 && errno != EBADF)
16577 result |= 16;
16578 /* Flush out some cygwin core dumps. */
16579 if (dup2 (2, -1) != -1 || errno != EBADF)
16580 result |= 32;
16581 dup2 (2, 255);
16582 dup2 (2, 256);
16583 /* On OS/2 kLIBC, dup2() does not work on a directory fd. */
16584 {
16585 int fd = open (".", O_RDONLY);
16586 if (fd == -1)
16587 result |= 64;
16588 else if (dup2 (fd, fd + 1) == -1)
16589 result |= 128;
16590 close (fd);
16591 }
16592 return result;
16593 ;
16594 return 0;
16595 }
16596
16597 _ACEOF
16598 if ac_fn_c_try_run "$LINENO"
16599 then :
16600 gl_cv_func_dup2_works=yes
16601 else $as_nop
16602 gl_cv_func_dup2_works=no
16603 fi
16604 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16605 conftest.$ac_objext conftest.beam conftest.$ac_ext
16606 fi
16607
16608
16609 fi
16610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_dup2_works" >&5
16611 printf "%s\n" "$gl_cv_func_dup2_works" >&6; }
16612 case "$gl_cv_func_dup2_works" in
16613 *yes) ;;
16614 *)
16615 REPLACE_DUP2=1
16616 ac_fn_c_check_func "$LINENO" "setdtablesize" "ac_cv_func_setdtablesize"
16617 if test "x$ac_cv_func_setdtablesize" = xyes
16618 then :
16619 printf "%s\n" "#define HAVE_SETDTABLESIZE 1" >>confdefs.h
16620
16621 fi
16622
16623 ;;
16624 esac
16625
16626
16627
16628 if test $REPLACE_DUP2 = 1; then
16629 GL_COND_OBJ_DUP2_TRUE=
16630 GL_COND_OBJ_DUP2_FALSE='#'
16631 else
16632 GL_COND_OBJ_DUP2_TRUE='#'
16633 GL_COND_OBJ_DUP2_FALSE=
16634 fi
16635 :
16636 if test -z "${GL_COND_OBJ_DUP2_TRUE}" && test -z "${GL_COND_OBJ_DUP2_FALSE}"; then
16637 GL_COND_OBJ_DUP2_TRUE='#'
16638 GL_COND_OBJ_DUP2_FALSE='#'
16639 fi
16640
16641 if test -z "$GL_COND_OBJ_DUP2_TRUE"; then :
16642
16643
16644
16645 fi
16646
16647
16648
16649
16650
16651
16652
16653
16654
16655 GL_GNULIB_DUP2=1
16656
16657
16658
16659
16660
16661 printf "%s\n" "#define GNULIB_TEST_DUP2 1" >>confdefs.h
16662
16663
16664
16665
16666
16667
16668
16669
16670 case "$GL_GENERATE_ERRNO_H" in
16671 false) ERRNO_H='' ;;
16672 true)
16673 if test -z "$ERRNO_H"; then
16674 ERRNO_H="${gl_source_base_prefix}errno.h"
16675 fi
16676 ;;
16677 *) echo "*** GL_GENERATE_ERRNO_H is not set correctly" 1>&2; exit 1 ;;
16678 esac
16679
16680
16681 if $GL_GENERATE_ERRNO_H; then
16682 GL_GENERATE_ERRNO_H_TRUE=
16683 GL_GENERATE_ERRNO_H_FALSE='#'
16684 else
16685 GL_GENERATE_ERRNO_H_TRUE='#'
16686 GL_GENERATE_ERRNO_H_FALSE=
16687 fi
16688 :
16689 if test -z "${GL_GENERATE_ERRNO_H_TRUE}" && test -z "${GL_GENERATE_ERRNO_H_FALSE}"; then
16690 GL_GENERATE_ERRNO_H_TRUE='#'
16691 GL_GENERATE_ERRNO_H_FALSE='#'
16692 fi
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703 if test $COMPILE_ERROR_C = 1; then
16704 GL_COND_OBJ_ERROR_TRUE=
16705 GL_COND_OBJ_ERROR_FALSE='#'
16706 else
16707 GL_COND_OBJ_ERROR_TRUE='#'
16708 GL_COND_OBJ_ERROR_FALSE=
16709 fi
16710 :
16711 if test -z "${GL_COND_OBJ_ERROR_TRUE}" && test -z "${GL_COND_OBJ_ERROR_FALSE}"; then
16712 GL_COND_OBJ_ERROR_TRUE='#'
16713 GL_COND_OBJ_ERROR_FALSE='#'
16714 fi
16715
16716 if test -z "$GL_COND_OBJ_ERROR_TRUE"; then :
16717
16718
16719
16720
16721
16722 :
16723
16724
16725 fi
16726
16727
16728 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error:3:c-format"
16729
16730
16731
16732 XGETTEXT_EXTRA_OPTIONS="$XGETTEXT_EXTRA_OPTIONS --flag=error_at_line:5:c-format"
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742 if test $ac_cv_func_fcntl = no; then
16743
16744
16745
16746 if test $ac_cv_func_fcntl = no; then
16747 HAVE_FCNTL=0
16748 else
16749 REPLACE_FCNTL=1
16750 fi
16751
16752 else
16753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl handles F_DUPFD correctly" >&5
16754 printf %s "checking whether fcntl handles F_DUPFD correctly... " >&6; }
16755 if test ${gl_cv_func_fcntl_f_dupfd_works+y}
16756 then :
16757 printf %s "(cached) " >&6
16758 else $as_nop
16759 if test "$cross_compiling" = yes
16760 then :
16761 case $host_os in
16762 aix* | cygwin* | haiku*)
16763 gl_cv_func_fcntl_f_dupfd_works="guessing no" ;;
16764 *) gl_cv_func_fcntl_f_dupfd_works="guessing yes" ;;
16765 esac
16766 else $as_nop
16767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16768 /* end confdefs.h. */
16769 #include <errno.h>
16770 #include <fcntl.h>
16771 #include <limits.h>
16772 #include <sys/resource.h>
16773 #include <unistd.h>
16774
16775
16776 $gl_mda_defines
16777
16778 #ifndef RLIM_SAVED_CUR
16779 # define RLIM_SAVED_CUR RLIM_INFINITY
16780 #endif
16781 #ifndef RLIM_SAVED_MAX
16782 # define RLIM_SAVED_MAX RLIM_INFINITY
16783 #endif
16784
16785 int
16786 main (void)
16787 {
16788 int result = 0;
16789 int bad_fd = INT_MAX;
16790 struct rlimit rlim;
16791 if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
16792 && 0 <= rlim.rlim_cur && rlim.rlim_cur <= INT_MAX
16793 && rlim.rlim_cur != RLIM_INFINITY
16794 && rlim.rlim_cur != RLIM_SAVED_MAX
16795 && rlim.rlim_cur != RLIM_SAVED_CUR)
16796 bad_fd = rlim.rlim_cur;
16797 if (fcntl (0, F_DUPFD, -1) != -1) result |= 1;
16798 if (errno != EINVAL) result |= 2;
16799 if (fcntl (0, F_DUPFD, bad_fd) != -1) result |= 4;
16800 if (errno != EINVAL) result |= 8;
16801 /* On OS/2 kLIBC, F_DUPFD does not work on a directory fd */
16802 {
16803 int fd;
16804 fd = open (".", O_RDONLY);
16805 if (fd == -1)
16806 result |= 16;
16807 else if (fcntl (fd, F_DUPFD, STDERR_FILENO + 1) == -1)
16808 result |= 32;
16809
16810 close (fd);
16811 }
16812 return result;
16813 ;
16814 return 0;
16815 }
16816 _ACEOF
16817 if ac_fn_c_try_run "$LINENO"
16818 then :
16819 gl_cv_func_fcntl_f_dupfd_works=yes
16820 else $as_nop
16821 gl_cv_func_fcntl_f_dupfd_works=no
16822 fi
16823 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16824 conftest.$ac_objext conftest.beam conftest.$ac_ext
16825 fi
16826
16827 fi
16828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_works" >&5
16829 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_works" >&6; }
16830 case $gl_cv_func_fcntl_f_dupfd_works in
16831 *yes) ;;
16832 *)
16833
16834
16835 if test $ac_cv_func_fcntl = no; then
16836 HAVE_FCNTL=0
16837 else
16838 REPLACE_FCNTL=1
16839 fi
16840
16841
16842 printf "%s\n" "#define FCNTL_DUPFD_BUGGY 1" >>confdefs.h
16843 ;;
16844 esac
16845
16846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether fcntl understands F_DUPFD_CLOEXEC" >&5
16847 printf %s "checking whether fcntl understands F_DUPFD_CLOEXEC... " >&6; }
16848 if test ${gl_cv_func_fcntl_f_dupfd_cloexec+y}
16849 then :
16850 printf %s "(cached) " >&6
16851 else $as_nop
16852 if test "$cross_compiling" = yes
16853 then :
16854 case "$host_os" in
16855 # Guess no on NetBSD.
16856 netbsd*) gl_cv_func_fcntl_f_dupfd_cloexec="guessing no" ;;
16857 *) gl_cv_func_fcntl_f_dupfd_cloexec="$gl_cross_guess_normal" ;;
16858 esac
16859
16860 else $as_nop
16861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16862 /* end confdefs.h. */
16863 #include <fcntl.h>
16864 #include <unistd.h>
16865 int main (int argc, char *argv[])
16866 {
16867 if (argc == 1)
16868 /* parent process */
16869 {
16870 if (fcntl (1, F_DUPFD_CLOEXEC, 10) < 0)
16871 return 1;
16872 return execl ("./conftest", "./conftest", "child", NULL);
16873 }
16874 else
16875 /* child process */
16876 return (fcntl (10, F_GETFL) < 0 ? 0 : 42);
16877 }
16878
16879
16880 _ACEOF
16881 if ac_fn_c_try_run "$LINENO"
16882 then :
16883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16884 /* end confdefs.h. */
16885
16886 #ifdef __linux__
16887 /* The Linux kernel only added F_DUPFD_CLOEXEC in 2.6.24, so we always replace
16888 it to support the semantics on older kernels that failed with EINVAL. */
16889 choke me
16890 #endif
16891
16892 int
16893 main (void)
16894 {
16895
16896 ;
16897 return 0;
16898 }
16899 _ACEOF
16900 if ac_fn_c_try_compile "$LINENO"
16901 then :
16902 gl_cv_func_fcntl_f_dupfd_cloexec=yes
16903 else $as_nop
16904 gl_cv_func_fcntl_f_dupfd_cloexec="needs runtime check"
16905 fi
16906 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16907
16908 else $as_nop
16909 gl_cv_func_fcntl_f_dupfd_cloexec=no
16910 fi
16911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16912 conftest.$ac_objext conftest.beam conftest.$ac_ext
16913 fi
16914
16915
16916 fi
16917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_fcntl_f_dupfd_cloexec" >&5
16918 printf "%s\n" "$gl_cv_func_fcntl_f_dupfd_cloexec" >&6; }
16919 case "$gl_cv_func_fcntl_f_dupfd_cloexec" in
16920 *yes) ;;
16921 *)
16922
16923
16924 if test $ac_cv_func_fcntl = no; then
16925 HAVE_FCNTL=0
16926 else
16927 REPLACE_FCNTL=1
16928 fi
16929
16930 ;;
16931 esac
16932 fi
16933
16934
16935
16936 if test $HAVE_FCNTL = 0 || test $REPLACE_FCNTL = 1; then
16937 GL_COND_OBJ_FCNTL_TRUE=
16938 GL_COND_OBJ_FCNTL_FALSE='#'
16939 else
16940 GL_COND_OBJ_FCNTL_TRUE='#'
16941 GL_COND_OBJ_FCNTL_FALSE=
16942 fi
16943 :
16944 if test -z "${GL_COND_OBJ_FCNTL_TRUE}" && test -z "${GL_COND_OBJ_FCNTL_FALSE}"; then
16945 GL_COND_OBJ_FCNTL_TRUE='#'
16946 GL_COND_OBJ_FCNTL_FALSE='#'
16947 fi
16948
16949
16950
16951
16952
16953
16954
16955
16956
16957
16958 GL_GNULIB_FCNTL=1
16959
16960
16961
16962
16963
16964 printf "%s\n" "#define GNULIB_TEST_FCNTL 1" >>confdefs.h
16965
16966
16967
16968
16969
16970
16971
16972
16973
16974
16975
16976
16977
16978 GL_GENERATE_FLOAT_H=false
16979 REPLACE_FLOAT_LDBL=0
16980 case "$host_os" in
16981 aix* | beos* | openbsd* | mirbsd* | irix*)
16982 GL_GENERATE_FLOAT_H=true
16983 ;;
16984 freebsd* | dragonfly*)
16985 case "$host_cpu" in
16986 i[34567]86 )
16987 GL_GENERATE_FLOAT_H=true
16988 ;;
16989 x86_64 )
16990 # On x86_64 systems, the C compiler may still be generating
16991 # 32-bit code.
16992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16993 /* end confdefs.h. */
16994 #if defined __LP64__ || defined __x86_64__ || defined __amd64__
16995 int ok;
16996 #else
16997 error fail
16998 #endif
16999
17000 _ACEOF
17001 if ac_fn_c_try_compile "$LINENO"
17002 then :
17003
17004 else $as_nop
17005 GL_GENERATE_FLOAT_H=true
17006 fi
17007 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17008 ;;
17009 esac
17010 ;;
17011 linux*)
17012 case "$host_cpu" in
17013 powerpc*)
17014 GL_GENERATE_FLOAT_H=true
17015 ;;
17016 esac
17017 ;;
17018 esac
17019 case "$host_os" in
17020 aix* | freebsd* | dragonfly* | linux*)
17021 if $GL_GENERATE_FLOAT_H; then
17022 REPLACE_FLOAT_LDBL=1
17023 fi
17024 ;;
17025 esac
17026
17027 REPLACE_ITOLD=0
17028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether conversion from 'int' to 'long double' works" >&5
17029 printf %s "checking whether conversion from 'int' to 'long double' works... " >&6; }
17030 if test ${gl_cv_func_itold_works+y}
17031 then :
17032 printf %s "(cached) " >&6
17033 else $as_nop
17034
17035 if test "$cross_compiling" = yes
17036 then :
17037 case "$host" in
17038 sparc*-*-linux*)
17039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17040 /* end confdefs.h. */
17041 #if defined __LP64__ || defined __arch64__
17042 int ok;
17043 #else
17044 error fail
17045 #endif
17046
17047 _ACEOF
17048 if ac_fn_c_try_compile "$LINENO"
17049 then :
17050 gl_cv_func_itold_works="guessing no"
17051 else $as_nop
17052 gl_cv_func_itold_works="guessing yes"
17053 fi
17054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17055 ;;
17056 # Guess yes on native Windows.
17057 mingw* | windows*)
17058 gl_cv_func_itold_works="guessing yes" ;;
17059 *)
17060 gl_cv_func_itold_works="guessing yes" ;;
17061 esac
17062
17063 else $as_nop
17064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17065 /* end confdefs.h. */
17066
17067 int i = -1;
17068 volatile long double ld;
17069 int main ()
17070 {
17071 ld += i * 1.0L;
17072 if (ld > 0)
17073 return 1;
17074 return 0;
17075 }
17076 _ACEOF
17077 if ac_fn_c_try_run "$LINENO"
17078 then :
17079 gl_cv_func_itold_works=yes
17080 else $as_nop
17081 gl_cv_func_itold_works=no
17082 fi
17083 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17084 conftest.$ac_objext conftest.beam conftest.$ac_ext
17085 fi
17086
17087
17088 fi
17089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_itold_works" >&5
17090 printf "%s\n" "$gl_cv_func_itold_works" >&6; }
17091 case "$gl_cv_func_itold_works" in
17092 *no)
17093 REPLACE_ITOLD=1
17094 GL_GENERATE_FLOAT_H=true
17095 ;;
17096 esac
17097
17098 if $GL_GENERATE_FLOAT_H; then
17099
17100
17101
17102
17103
17104
17105
17106
17107 if test $gl_cv_have_include_next = yes; then
17108 gl_cv_next_float_h='<'float.h'>'
17109 else
17110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking absolute name of <float.h>" >&5
17111 printf %s "checking absolute name of <float.h>... " >&6; }
17112 if test ${gl_cv_next_float_h+y}
17113 then :
17114 printf %s "(cached) " >&6
17115 else $as_nop
17116
17117
17118
17119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17120 /* end confdefs.h. */
17121 #include <float.h>
17122 _ACEOF
17123 case "$host_os" in
17124 aix*) gl_absname_cpp="$ac_cpp -C" ;;
17125 *) gl_absname_cpp="$ac_cpp" ;;
17126 esac
17127
17128 case "$host_os" in
17129 mingw* | windows*)
17130 gl_dirsep_regex='[/\\]'
17131 ;;
17132 *)
17133 gl_dirsep_regex='\/'
17134 ;;
17135 esac
17136 gl_make_literal_regex_sed='s,[]$^\\.*/[],\\&,g'
17137 gl_header_literal_regex=`echo 'float.h' \
17138 | sed -e "$gl_make_literal_regex_sed"`
17139 gl_absolute_header_sed="/${gl_dirsep_regex}${gl_header_literal_regex}/"'{
17140 s/.*"\(.*'"${gl_dirsep_regex}${gl_header_literal_regex}"'\)".*/\1/
17141 s|^/[^/]|//&|
17142 p
17143 q
17144 }'
17145
17146 gl_cv_absolute_float_h=`(eval "$gl_absname_cpp conftest.$ac_ext") 2>&5 |
17147 sed -n "$gl_absolute_header_sed"`
17148
17149 gl_header=$gl_cv_absolute_float_h
17150 gl_cv_next_float_h='"'$gl_header'"'
17151
17152
17153 fi
17154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_next_float_h" >&5
17155 printf "%s\n" "$gl_cv_next_float_h" >&6; }
17156 fi
17157 NEXT_FLOAT_H=$gl_cv_next_float_h
17158
17159 if test $gl_cv_have_include_next = yes || test $gl_cv_have_include_next = buggy; then
17160 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include_next'
17161 gl_next_as_first_directive='<'float.h'>'
17162 else
17163 # INCLUDE_NEXT_AS_FIRST_DIRECTIVE='include'
17164 gl_next_as_first_directive=$gl_cv_next_float_h
17165 fi
17166 NEXT_AS_FIRST_DIRECTIVE_FLOAT_H=$gl_next_as_first_directive
17167
17168
17169
17170
17171 fi
17172
17173
17174
17175
17176
17177
17178 case "$GL_GENERATE_FLOAT_H" in
17179 false) FLOAT_H='' ;;
17180 true)
17181 if test -z "$FLOAT_H"; then
17182 FLOAT_H="${gl_source_base_prefix}float.h"
17183 fi
17184 ;;
17185 *) echo "*** GL_GENERATE_FLOAT_H is not set correctly" 1>&2; exit 1 ;;
17186 esac
17187
17188
17189 if $GL_GENERATE_FLOAT_H; then
17190 GL_GENERATE_FLOAT_H_TRUE=
17191 GL_GENERATE_FLOAT_H_FALSE='#'
17192 else
17193 GL_GENERATE_FLOAT_H_TRUE='#'
17194 GL_GENERATE_FLOAT_H_FALSE=
17195 fi
17196 :
17197 if test -z "${GL_GENERATE_FLOAT_H_TRUE}" && test -z "${GL_GENERATE_FLOAT_H_FALSE}"; then
17198 GL_GENERATE_FLOAT_H_TRUE='#'
17199 GL_GENERATE_FLOAT_H_FALSE='#'
17200 fi
17201
17202
17203
17204
17205
17206
17207
17208 if test $REPLACE_FLOAT_LDBL = 1; then
17209 GL_COND_OBJ_FLOAT_TRUE=
17210 GL_COND_OBJ_FLOAT_FALSE='#'
17211 else
17212 GL_COND_OBJ_FLOAT_TRUE='#'
17213 GL_COND_OBJ_FLOAT_FALSE=
17214 fi
17215 :
17216 if test -z "${GL_COND_OBJ_FLOAT_TRUE}" && test -z "${GL_COND_OBJ_FLOAT_FALSE}"; then
17217 GL_COND_OBJ_FLOAT_TRUE='#'
17218 GL_COND_OBJ_FLOAT_FALSE='#'
17219 fi
17220
17221
17222 if test $REPLACE_ITOLD = 1; then
17223 GL_COND_OBJ_ITOLD_TRUE=
17224 GL_COND_OBJ_ITOLD_FALSE='#'
17225 else
17226 GL_COND_OBJ_ITOLD_TRUE='#'
17227 GL_COND_OBJ_ITOLD_FALSE=
17228 fi
17229 :
17230 if test -z "${GL_COND_OBJ_ITOLD_TRUE}" && test -z "${GL_COND_OBJ_ITOLD_FALSE}"; then
17231 GL_COND_OBJ_ITOLD_TRUE='#'
17232 GL_COND_OBJ_ITOLD_FALSE='#'
17233 fi
17234
17235
17236
17237
17238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether free is known to preserve errno" >&5
17239 printf %s "checking whether free is known to preserve errno... " >&6; }
17240 if test ${gl_cv_func_free_preserves_errno+y}
17241 then :
17242 printf %s "(cached) " >&6
17243 else $as_nop
17244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17245 /* end confdefs.h. */
17246 #include <stdlib.h>
17247
17248 int
17249 main (void)
17250 {
17251 #if 2 < __GLIBC__ + (33 <= __GLIBC_MINOR__)
17252 #elif defined __OpenBSD__
17253 #elif defined __sun
17254 #else
17255 #error "'free' is not known to preserve errno"
17256 #endif
17257
17258 ;
17259 return 0;
17260 }
17261 _ACEOF
17262 if ac_fn_c_try_compile "$LINENO"
17263 then :
17264 gl_cv_func_free_preserves_errno=yes
17265 else $as_nop
17266 gl_cv_func_free_preserves_errno=no
17267 fi
17268 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17269
17270 fi
17271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_free_preserves_errno" >&5
17272 printf "%s\n" "$gl_cv_func_free_preserves_errno" >&6; }
17273
17274 case $gl_cv_func_free_preserves_errno in
17275 *yes)
17276
17277 printf "%s\n" "#define HAVE_FREE_POSIX 1" >>confdefs.h
17278
17279 ;;
17280 *) REPLACE_FREE=1 ;;
17281 esac
17282
17283
17284 if test $REPLACE_FREE = 1; then
17285 GL_COND_OBJ_FREE_TRUE=
17286 GL_COND_OBJ_FREE_FALSE='#'
17287 else
17288 GL_COND_OBJ_FREE_TRUE='#'
17289 GL_COND_OBJ_FREE_FALSE=
17290 fi
17291 :
17292 if test -z "${GL_COND_OBJ_FREE_TRUE}" && test -z "${GL_COND_OBJ_FREE_FALSE}"; then
17293 GL_COND_OBJ_FREE_TRUE='#'
17294 GL_COND_OBJ_FREE_FALSE='#'
17295 fi
17296
17297 if test -z "$GL_COND_OBJ_FREE_TRUE"; then :
17298
17299 :
17300
17301 fi
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311 GL_GNULIB_FREE_POSIX=1
17312
17313
17314
17315
17316
17317 printf "%s\n" "#define GNULIB_TEST_FREE_POSIX 1" >>confdefs.h
17318
17319
17320
17321
17322
17323
17324
17325 case "$host_os" in
17326 darwin* | mingw* | windows* | solaris*)
17327 REPLACE_FSTAT=1
17328 ;;
17329 esac
17330
17331
17332
17333
17334 if test $REPLACE_FSTAT = 1; then
17335 GL_COND_OBJ_FSTAT_TRUE=
17336 GL_COND_OBJ_FSTAT_FALSE='#'
17337 else
17338 GL_COND_OBJ_FSTAT_TRUE='#'
17339 GL_COND_OBJ_FSTAT_FALSE=
17340 fi
17341 :
17342 if test -z "${GL_COND_OBJ_FSTAT_TRUE}" && test -z "${GL_COND_OBJ_FSTAT_FALSE}"; then
17343 GL_COND_OBJ_FSTAT_TRUE='#'
17344 GL_COND_OBJ_FSTAT_FALSE='#'
17345 fi
17346
17347 if test -z "$GL_COND_OBJ_FSTAT_TRUE"; then :
17348
17349 case "$host_os" in
17350 mingw* | windows*)
17351
17352
17353
17354
17355
17356
17357
17358
17359 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
17360
17361 ;;
17362 esac
17363
17364
17365
17366 :
17367
17368
17369 fi
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379 GL_GNULIB_FSTAT=1
17380
17381
17382
17383
17384
17385 printf "%s\n" "#define GNULIB_TEST_FSTAT 1" >>confdefs.h
17386
17387
17388
17389
17390
17391
17392
17393
17394 if test $ac_cv_func_getdtablesize = yes &&
17395 test $ac_cv_have_decl_getdtablesize = yes; then
17396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether getdtablesize works" >&5
17397 printf %s "checking whether getdtablesize works... " >&6; }
17398 if test ${gl_cv_func_getdtablesize_works+y}
17399 then :
17400 printf %s "(cached) " >&6
17401 else $as_nop
17402 case "$host_os" in
17403 vms*) gl_cv_func_getdtablesize_works="no (limitation)" ;;
17404 *)
17405 if test "$cross_compiling" = yes
17406 then :
17407 case "$host_os" in
17408 cygwin*) # on cygwin 1.5.25, getdtablesize() automatically grows
17409 gl_cv_func_getdtablesize_works="guessing no" ;;
17410 *) gl_cv_func_getdtablesize_works="guessing yes" ;;
17411 esac
17412
17413 else $as_nop
17414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17415 /* end confdefs.h. */
17416
17417 #include <unistd.h>
17418
17419
17420 $gl_mda_defines
17421
17422
17423 int
17424 main (void)
17425 {
17426 int size = getdtablesize();
17427 if (dup2 (0, getdtablesize()) != -1)
17428 return 1;
17429 if (size != getdtablesize())
17430 return 2;
17431
17432 ;
17433 return 0;
17434 }
17435 _ACEOF
17436 if ac_fn_c_try_run "$LINENO"
17437 then :
17438 gl_cv_func_getdtablesize_works=yes
17439 else $as_nop
17440 gl_cv_func_getdtablesize_works=no
17441 fi
17442 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17443 conftest.$ac_objext conftest.beam conftest.$ac_ext
17444 fi
17445
17446 ;;
17447 esac
17448
17449 fi
17450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_getdtablesize_works" >&5
17451 printf "%s\n" "$gl_cv_func_getdtablesize_works" >&6; }
17452 case "$gl_cv_func_getdtablesize_works" in
17453 *yes | "no (limitation)") ;;
17454 *) REPLACE_GETDTABLESIZE=1 ;;
17455 esac
17456 else
17457 HAVE_GETDTABLESIZE=0
17458 fi
17459
17460
17461 if test $HAVE_GETDTABLESIZE = 0 || test $REPLACE_GETDTABLESIZE = 1; then
17462 GL_COND_OBJ_GETDTABLESIZE_TRUE=
17463 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
17464 else
17465 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
17466 GL_COND_OBJ_GETDTABLESIZE_FALSE=
17467 fi
17468 :
17469 if test -z "${GL_COND_OBJ_GETDTABLESIZE_TRUE}" && test -z "${GL_COND_OBJ_GETDTABLESIZE_FALSE}"; then
17470 GL_COND_OBJ_GETDTABLESIZE_TRUE='#'
17471 GL_COND_OBJ_GETDTABLESIZE_FALSE='#'
17472 fi
17473
17474 if test -z "$GL_COND_OBJ_GETDTABLESIZE_TRUE"; then :
17475
17476 :
17477
17478 fi
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488 GL_GNULIB_GETDTABLESIZE=1
17489
17490
17491
17492
17493
17494 printf "%s\n" "#define GNULIB_TEST_GETDTABLESIZE 1" >>confdefs.h
17495
17496
17497
17498
17499
17500
17501
17502
17503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for getprogname" >&5
17504 printf %s "checking for getprogname... " >&6; }
17505 if test ${gl_cv_onwards_func_getprogname+y}
17506 then :
17507 printf %s "(cached) " >&6
17508 else $as_nop
17509
17510 exec 9>&6 6>/dev/null
17511
17512 case "$host_os" in
17513
17514 linux*-android*)
17515 ac_fn_check_decl "$LINENO" "getprogname" "ac_cv_have_decl_getprogname" "#include <stdlib.h>
17516 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17517 if test "x$ac_cv_have_decl_getprogname" = xyes
17518 then :
17519
17520 fi
17521 if test $ac_cv_have_decl_getprogname = yes; then
17522 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
17523 if test "x$ac_cv_func_getprogname" = xyes
17524 then :
17525
17526 fi
17527
17528 if test $ac_cv_func_getprogname = yes; then
17529 gl_cv_onwards_func_getprogname=yes
17530 else
17531 gl_cv_onwards_func_getprogname='future OS version'
17532 fi
17533 else
17534 gl_cv_onwards_func_getprogname='future OS version'
17535 fi
17536 ;;
17537
17538
17539 *)
17540 ac_fn_c_check_func "$LINENO" "getprogname" "ac_cv_func_getprogname"
17541 if test "x$ac_cv_func_getprogname" = xyes
17542 then :
17543
17544 fi
17545
17546 gl_cv_onwards_func_getprogname=$ac_cv_func_getprogname
17547 ;;
17548
17549 esac
17550
17551 exec 6>&9 9>&-
17552
17553
17554 fi
17555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_getprogname" >&5
17556 printf "%s\n" "$gl_cv_onwards_func_getprogname" >&6; }
17557
17558 case "$gl_cv_onwards_func_getprogname" in
17559 future*) ac_cv_func_getprogname=no ;;
17560 *) ac_cv_func_getprogname=$gl_cv_onwards_func_getprogname ;;
17561 esac
17562 if test $ac_cv_func_getprogname = yes; then
17563
17564 printf "%s\n" "#define HAVE_GETPROGNAME 1" >>confdefs.h
17565
17566 fi
17567
17568
17569 if test $ac_cv_func_getprogname = no; then
17570 HAVE_GETPROGNAME=0
17571 case "$gl_cv_onwards_func_getprogname" in
17572 future*) REPLACE_GETPROGNAME=1 ;;
17573 esac
17574 fi
17575 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
17576 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17577 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
17578 then :
17579 ac_have_decl=1
17580 else $as_nop
17581 ac_have_decl=0
17582 fi
17583 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
17584 if test $ac_have_decl = 1
17585 then :
17586
17587 else $as_nop
17588 HAVE_DECL_PROGRAM_INVOCATION_NAME=0
17589 fi
17590
17591
17592
17593 if test $HAVE_GETPROGNAME = 0 || test $REPLACE_GETPROGNAME = 1; then
17594 GL_COND_OBJ_GETPROGNAME_TRUE=
17595 GL_COND_OBJ_GETPROGNAME_FALSE='#'
17596 else
17597 GL_COND_OBJ_GETPROGNAME_TRUE='#'
17598 GL_COND_OBJ_GETPROGNAME_FALSE=
17599 fi
17600 :
17601 if test -z "${GL_COND_OBJ_GETPROGNAME_TRUE}" && test -z "${GL_COND_OBJ_GETPROGNAME_FALSE}"; then
17602 GL_COND_OBJ_GETPROGNAME_TRUE='#'
17603 GL_COND_OBJ_GETPROGNAME_FALSE='#'
17604 fi
17605
17606 if test -z "$GL_COND_OBJ_GETPROGNAME_TRUE"; then :
17607
17608
17609
17610
17611 ac_found=0
17612 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
17613 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17614 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
17615 then :
17616 ac_have_decl=1
17617 else $as_nop
17618 ac_have_decl=0
17619 fi
17620 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
17621 if test $ac_have_decl = 1
17622 then :
17623 ac_found=1
17624 fi
17625
17626 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
17627 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17628 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
17629 then :
17630 ac_have_decl=1
17631 else $as_nop
17632 ac_have_decl=0
17633 fi
17634 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
17635 if test $ac_have_decl = 1
17636 then :
17637 ac_found=1
17638 fi
17639
17640 ac_fn_check_decl "$LINENO" "__argv" "ac_cv_have_decl___argv" "#include <stdlib.h>
17641 " "$ac_c_undeclared_builtin_options" "CFLAGS"
17642 if test "x$ac_cv_have_decl___argv" = xyes
17643 then :
17644 ac_have_decl=1
17645 else $as_nop
17646 ac_have_decl=0
17647 fi
17648 printf "%s\n" "#define HAVE_DECL___ARGV $ac_have_decl" >>confdefs.h
17649 if test $ac_have_decl = 1
17650 then :
17651 ac_found=1
17652 fi
17653
17654
17655 # Incur the cost of this test only if none of the above worked.
17656 if test $ac_found = 0; then
17657 # On OpenBSD 5.1, using the global __progname variable appears to be
17658 # the only way to implement getprogname.
17659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether __progname is defined in default libraries" >&5
17660 printf %s "checking whether __progname is defined in default libraries... " >&6; }
17661 if test ${gl_cv_var___progname+y}
17662 then :
17663 printf %s "(cached) " >&6
17664 else $as_nop
17665
17666 gl_cv_var___progname=
17667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17668 /* end confdefs.h. */
17669 extern char *__progname;
17670 int
17671 main (void)
17672 {
17673 return *__progname;
17674
17675 ;
17676 return 0;
17677 }
17678 _ACEOF
17679 if ac_fn_c_try_link "$LINENO"
17680 then :
17681 gl_cv_var___progname=yes
17682
17683 fi
17684 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17685 conftest$ac_exeext conftest.$ac_ext
17686
17687
17688 fi
17689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_var___progname" >&5
17690 printf "%s\n" "$gl_cv_var___progname" >&6; }
17691 if test "$gl_cv_var___progname" = yes; then
17692
17693 printf "%s\n" "#define HAVE_VAR___PROGNAME 1" >>confdefs.h
17694
17695 fi
17696 fi
17697
17698
17699 fi
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709 GL_GNULIB_GETPROGNAME=1
17710
17711
17712
17713
17714
17715 printf "%s\n" "#define GNULIB_TEST_GETPROGNAME 1" >>confdefs.h
17716
17717
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734 case "$GL_GENERATE_LIMITS_H" in
17735 false) LIMITS_H='' ;;
17736 true)
17737 if test -z "$LIMITS_H"; then
17738 LIMITS_H="${gl_source_base_prefix}limits.h"
17739 fi
17740 ;;
17741 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
17742 esac
17743
17744
17745 if $GL_GENERATE_LIMITS_H; then
17746 GL_GENERATE_LIMITS_H_TRUE=
17747 GL_GENERATE_LIMITS_H_FALSE='#'
17748 else
17749 GL_GENERATE_LIMITS_H_TRUE='#'
17750 GL_GENERATE_LIMITS_H_FALSE=
17751 fi
17752 :
17753 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
17754 GL_GENERATE_LIMITS_H_TRUE='#'
17755 GL_GENERATE_LIMITS_H_FALSE='#'
17756 fi
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766 REPLACE_MALLOC_FOR_MALLOC_GNU="$REPLACE_MALLOC_FOR_MALLOC_POSIX"
17767 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 0; then
17768
17769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether malloc (0) returns nonnull" >&5
17770 printf %s "checking whether malloc (0) returns nonnull... " >&6; }
17771 if test ${ac_cv_func_malloc_0_nonnull+y}
17772 then :
17773 printf %s "(cached) " >&6
17774 else $as_nop
17775 if test "$cross_compiling" = yes
17776 then :
17777 case "$host_os" in
17778 # Guess yes on platforms where we know the result.
17779 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
17780 | gnu* | *-musl* | midipix* | midnightbsd* \
17781 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
17782 ac_cv_func_malloc_0_nonnull="guessing yes" ;;
17783 # If we don't know, obey --enable-cross-guesses.
17784 *) ac_cv_func_malloc_0_nonnull="$gl_cross_guess_normal" ;;
17785 esac
17786
17787 else $as_nop
17788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17789 /* end confdefs.h. */
17790 #include <stdlib.h>
17791
17792 int
17793 main (void)
17794 {
17795 void *p = malloc (0);
17796 void * volatile vp = p;
17797 int result = !vp;
17798 free (p);
17799 return result;
17800 ;
17801 return 0;
17802 }
17803
17804 _ACEOF
17805 if ac_fn_c_try_run "$LINENO"
17806 then :
17807 ac_cv_func_malloc_0_nonnull=yes
17808 else $as_nop
17809 ac_cv_func_malloc_0_nonnull=no
17810 fi
17811 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17812 conftest.$ac_objext conftest.beam conftest.$ac_ext
17813 fi
17814
17815
17816 fi
17817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
17818 printf "%s\n" "$ac_cv_func_malloc_0_nonnull" >&6; }
17819 case $ac_cv_func_malloc_0_nonnull in #(
17820 *yes) :
17821 ;; #(
17822 *) :
17823 REPLACE_MALLOC_FOR_MALLOC_GNU=1 ;;
17824 esac
17825
17826 fi
17827
17828 if test $REPLACE_MALLOC_FOR_MALLOC_GNU = 1; then
17829
17830
17831
17832
17833
17834
17835
17836
17837 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
17838
17839 fi
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849 GL_GNULIB_MALLOC_GNU=1
17850
17851
17852
17853
17854
17855 printf "%s\n" "#define GNULIB_TEST_MALLOC_GNU 1" >>confdefs.h
17856
17857
17858
17859
17860 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
17861
17862
17863
17864
17865
17866
17867
17868
17869 gl_LIBOBJS="$gl_LIBOBJS malloc.$ac_objext"
17870
17871 fi
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881 GL_GNULIB_MALLOC_POSIX=1
17882
17883
17884
17885
17886
17887 printf "%s\n" "#define GNULIB_TEST_MALLOC_POSIX 1" >>confdefs.h
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902
17903
17904
17905
17906
17907
17908
17909
17910
17911 GL_GNULIB_MBSZERO=1
17912
17913
17914
17915
17916
17917 printf "%s\n" "#define GNULIB_TEST_MBSZERO 1" >>confdefs.h
17918
17919
17920
17921
17922
17923 if test $REPLACE_MEMCHR = 1; then
17924 GL_COND_OBJ_MEMCHR_TRUE=
17925 GL_COND_OBJ_MEMCHR_FALSE='#'
17926 else
17927 GL_COND_OBJ_MEMCHR_TRUE='#'
17928 GL_COND_OBJ_MEMCHR_FALSE=
17929 fi
17930 :
17931 if test -z "${GL_COND_OBJ_MEMCHR_TRUE}" && test -z "${GL_COND_OBJ_MEMCHR_FALSE}"; then
17932 GL_COND_OBJ_MEMCHR_TRUE='#'
17933 GL_COND_OBJ_MEMCHR_FALSE='#'
17934 fi
17935
17936 if test -z "$GL_COND_OBJ_MEMCHR_TRUE"; then :
17937
17938
17939 ac_fn_c_check_header_compile "$LINENO" "bp-sym.h" "ac_cv_header_bp_sym_h" "$ac_includes_default"
17940 if test "x$ac_cv_header_bp_sym_h" = xyes
17941 then :
17942 printf "%s\n" "#define HAVE_BP_SYM_H 1" >>confdefs.h
17943
17944 fi
17945
17946
17947
17948 fi
17949
17950
17951
17952
17953
17954
17955
17956
17957
17958
17959
17960
17961
17962
17963 GL_GNULIB_MEMCHR=1
17964
17965
17966
17967
17968
17969 printf "%s\n" "#define GNULIB_TEST_MEMCHR 1" >>confdefs.h
17970
17971
17972
17973
17974
17975
17976
17977
17978 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17979 GL_COND_OBJ_MSVC_INVAL_TRUE=
17980 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
17981 else
17982 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
17983 GL_COND_OBJ_MSVC_INVAL_FALSE=
17984 fi
17985 :
17986 if test -z "${GL_COND_OBJ_MSVC_INVAL_TRUE}" && test -z "${GL_COND_OBJ_MSVC_INVAL_FALSE}"; then
17987 GL_COND_OBJ_MSVC_INVAL_TRUE='#'
17988 GL_COND_OBJ_MSVC_INVAL_FALSE='#'
17989 fi
17990
17991
17992
17993 if test $HAVE_MSVC_INVALID_PARAMETER_HANDLER = 1; then
17994 GL_COND_OBJ_MSVC_NOTHROW_TRUE=
17995 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
17996 else
17997 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
17998 GL_COND_OBJ_MSVC_NOTHROW_FALSE=
17999 fi
18000 :
18001 if test -z "${GL_COND_OBJ_MSVC_NOTHROW_TRUE}" && test -z "${GL_COND_OBJ_MSVC_NOTHROW_FALSE}"; then
18002 GL_COND_OBJ_MSVC_NOTHROW_TRUE='#'
18003 GL_COND_OBJ_MSVC_NOTHROW_FALSE='#'
18004 fi
18005
18006
18007
18008 printf "%s\n" "#define GNULIB_MSVC_NOTHROW 1" >>confdefs.h
18009
18010
18011
18012
18013
18014 if test $ac_cv_header_obstack_h = yes; then
18015 HAVE_OBSTACK=1
18016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for obstacks that work with any size object" >&5
18017 printf %s "checking for obstacks that work with any size object... " >&6; }
18018 if test ${gl_cv_func_obstack+y}
18019 then :
18020 printf %s "(cached) " >&6
18021 else $as_nop
18022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18023 /* end confdefs.h. */
18024 #include "obstack.h"
18025 void *obstack_chunk_alloc (size_t n) { return 0; }
18026 void obstack_chunk_free (void *p) { }
18027 /* Check that an internal function returns size_t, not int. */
18028 size_t _obstack_memory_used (struct obstack *);
18029
18030 int
18031 main (void)
18032 {
18033 struct obstack mem;
18034 obstack_init (&mem);
18035 obstack_free (&mem, 0);
18036
18037 ;
18038 return 0;
18039 }
18040 _ACEOF
18041 if ac_fn_c_try_link "$LINENO"
18042 then :
18043 gl_cv_func_obstack=yes
18044 else $as_nop
18045 gl_cv_func_obstack=no
18046 fi
18047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18048 conftest$ac_exeext conftest.$ac_ext
18049
18050 fi
18051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_obstack" >&5
18052 printf "%s\n" "$gl_cv_func_obstack" >&6; }
18053 if test $gl_cv_func_obstack = yes; then
18054 REPLACE_OBSTACK=0
18055 else
18056 REPLACE_OBSTACK=1
18057 fi
18058 else
18059 HAVE_OBSTACK=0
18060 REPLACE_OBSTACK=0
18061 fi
18062 if test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1; then
18063 GL_GENERATE_OBSTACK_H=true
18064 else
18065 GL_GENERATE_OBSTACK_H=false
18066 fi
18067
18068
18069
18070
18071
18072
18073 case "$GL_GENERATE_OBSTACK_H" in
18074 false) OBSTACK_H='' ;;
18075 true)
18076 if test -z "$OBSTACK_H"; then
18077 OBSTACK_H="${gl_source_base_prefix}obstack.h"
18078 fi
18079 ;;
18080 *) echo "*** GL_GENERATE_OBSTACK_H is not set correctly" 1>&2; exit 1 ;;
18081 esac
18082
18083
18084 if $GL_GENERATE_OBSTACK_H; then
18085 GL_GENERATE_OBSTACK_H_TRUE=
18086 GL_GENERATE_OBSTACK_H_FALSE='#'
18087 else
18088 GL_GENERATE_OBSTACK_H_TRUE='#'
18089 GL_GENERATE_OBSTACK_H_FALSE=
18090 fi
18091 :
18092 if test -z "${GL_GENERATE_OBSTACK_H_TRUE}" && test -z "${GL_GENERATE_OBSTACK_H_FALSE}"; then
18093 GL_GENERATE_OBSTACK_H_TRUE='#'
18094 GL_GENERATE_OBSTACK_H_FALSE='#'
18095 fi
18096
18097
18098
18099
18100
18101
18102 if test $HAVE_OBSTACK = 0 || test $REPLACE_OBSTACK = 1; then
18103 GL_COND_OBJ_OBSTACK_TRUE=
18104 GL_COND_OBJ_OBSTACK_FALSE='#'
18105 else
18106 GL_COND_OBJ_OBSTACK_TRUE='#'
18107 GL_COND_OBJ_OBSTACK_FALSE=
18108 fi
18109 :
18110 if test -z "${GL_COND_OBJ_OBSTACK_TRUE}" && test -z "${GL_COND_OBJ_OBSTACK_FALSE}"; then
18111 GL_COND_OBJ_OBSTACK_TRUE='#'
18112 GL_COND_OBJ_OBSTACK_FALSE='#'
18113 fi
18114
18115
18116
18117
18118
18119 case "$host_os" in
18120 mingw* | windows* | pw*)
18121 REPLACE_OPEN=1
18122 ;;
18123 *)
18124
18125 if test "$gl_cv_macro_O_CLOEXEC" != yes; then
18126 REPLACE_OPEN=1
18127 fi
18128
18129
18130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether open recognizes a trailing slash" >&5
18131 printf %s "checking whether open recognizes a trailing slash... " >&6; }
18132 if test ${gl_cv_func_open_slash+y}
18133 then :
18134 printf %s "(cached) " >&6
18135 else $as_nop
18136 # Assume that if we have lstat, we can also check symlinks.
18137 if test $ac_cv_func_lstat = yes; then
18138 touch conftest.tmp
18139 ln -s conftest.tmp conftest.lnk
18140 fi
18141 if test "$cross_compiling" = yes
18142 then :
18143
18144 case "$host_os" in
18145 freebsd* | aix* | hpux* | solaris2.[0-9] | solaris2.[0-9].*)
18146 gl_cv_func_open_slash="guessing no" ;;
18147 *)
18148 gl_cv_func_open_slash="guessing yes" ;;
18149 esac
18150
18151 else $as_nop
18152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18153 /* end confdefs.h. */
18154
18155 #include <fcntl.h>
18156 #if HAVE_UNISTD_H
18157 # include <unistd.h>
18158 #endif
18159
18160
18161 $gl_mda_defines
18162
18163 int main ()
18164 {
18165 int result = 0;
18166 #if HAVE_LSTAT
18167 if (open ("conftest.lnk/", O_RDONLY) != -1)
18168 result |= 1;
18169 #endif
18170 if (open ("conftest.sl/", O_CREAT, 0600) >= 0)
18171 result |= 2;
18172 return result;
18173 }
18174 _ACEOF
18175 if ac_fn_c_try_run "$LINENO"
18176 then :
18177 gl_cv_func_open_slash=yes
18178 else $as_nop
18179 gl_cv_func_open_slash=no
18180 fi
18181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18182 conftest.$ac_objext conftest.beam conftest.$ac_ext
18183 fi
18184
18185 rm -f conftest.sl conftest.tmp conftest.lnk
18186
18187 fi
18188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_open_slash" >&5
18189 printf "%s\n" "$gl_cv_func_open_slash" >&6; }
18190 case "$gl_cv_func_open_slash" in
18191 *no)
18192
18193 printf "%s\n" "#define OPEN_TRAILING_SLASH_BUG 1" >>confdefs.h
18194
18195 ;;
18196 esac
18197
18198 case "$gl_cv_func_open_slash" in
18199 *no)
18200 REPLACE_OPEN=1
18201 ;;
18202 esac
18203 ;;
18204 esac
18205
18206
18207
18208
18209 if test $REPLACE_OPEN = 1; then
18210 GL_COND_OBJ_OPEN_TRUE=
18211 GL_COND_OBJ_OPEN_FALSE='#'
18212 else
18213 GL_COND_OBJ_OPEN_TRUE='#'
18214 GL_COND_OBJ_OPEN_FALSE=
18215 fi
18216 :
18217 if test -z "${GL_COND_OBJ_OPEN_TRUE}" && test -z "${GL_COND_OBJ_OPEN_FALSE}"; then
18218 GL_COND_OBJ_OPEN_TRUE='#'
18219 GL_COND_OBJ_OPEN_FALSE='#'
18220 fi
18221
18222 if test -z "$GL_COND_OBJ_OPEN_TRUE"; then :
18223
18224
18225
18226 :
18227
18228
18229 fi
18230
18231
18232
18233
18234
18235
18236
18237
18238
18239 GL_GNULIB_OPEN=1
18240
18241
18242
18243
18244
18245 printf "%s\n" "#define GNULIB_TEST_OPEN 1" >>confdefs.h
18246
18247
18248
18249
18250
18251
18252 ac_fn_check_decl "$LINENO" "program_invocation_name" "ac_cv_have_decl_program_invocation_name" "#include <errno.h>
18253 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18254 if test "x$ac_cv_have_decl_program_invocation_name" = xyes
18255 then :
18256 ac_have_decl=1
18257 else $as_nop
18258 ac_have_decl=0
18259 fi
18260 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_NAME $ac_have_decl" >>confdefs.h
18261
18262 ac_fn_check_decl "$LINENO" "program_invocation_short_name" "ac_cv_have_decl_program_invocation_short_name" "#include <errno.h>
18263 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18264 if test "x$ac_cv_have_decl_program_invocation_short_name" = xyes
18265 then :
18266 ac_have_decl=1
18267 else $as_nop
18268 ac_have_decl=0
18269 fi
18270 printf "%s\n" "#define HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME $ac_have_decl" >>confdefs.h
18271
18272
18273
18274
18275 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 0; then
18276
18277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether realloc (0, 0) returns nonnull" >&5
18278 printf %s "checking whether realloc (0, 0) returns nonnull... " >&6; }
18279 if test ${ac_cv_func_realloc_0_nonnull+y}
18280 then :
18281 printf %s "(cached) " >&6
18282 else $as_nop
18283 if test "$cross_compiling" = yes
18284 then :
18285 case "$host_os" in
18286 # Guess yes on platforms where we know the result.
18287 *-gnu* | freebsd* | netbsd* | openbsd* | bitrig* \
18288 | gnu* | *-musl* | midipix* | midnightbsd* \
18289 | hpux* | solaris* | cygwin* | mingw* | windows* | msys* )
18290 ac_cv_func_realloc_0_nonnull="guessing yes" ;;
18291 # If we don't know, obey --enable-cross-guesses.
18292 *) ac_cv_func_realloc_0_nonnull="$gl_cross_guess_normal" ;;
18293 esac
18294
18295 else $as_nop
18296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18297 /* end confdefs.h. */
18298 #include <stdlib.h>
18299
18300 int
18301 main (void)
18302 {
18303 void *p = realloc (0, 0);
18304 void * volatile vp = p;
18305 int result = !vp;
18306 free (p);
18307 return result;
18308 ;
18309 return 0;
18310 }
18311
18312 _ACEOF
18313 if ac_fn_c_try_run "$LINENO"
18314 then :
18315 ac_cv_func_realloc_0_nonnull=yes
18316 else $as_nop
18317 ac_cv_func_realloc_0_nonnull=no
18318 fi
18319 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18320 conftest.$ac_objext conftest.beam conftest.$ac_ext
18321 fi
18322
18323
18324 fi
18325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5
18326 printf "%s\n" "$ac_cv_func_realloc_0_nonnull" >&6; }
18327 case $ac_cv_func_realloc_0_nonnull in #(
18328 *yes) :
18329 ;; #(
18330 *) :
18331 REPLACE_REALLOC_FOR_REALLOC_GNU=1 ;;
18332 esac
18333
18334 fi
18335
18336 if test $REPLACE_REALLOC_FOR_REALLOC_GNU = 1; then
18337
18338
18339
18340
18341
18342
18343
18344
18345 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
18346
18347 fi
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357 GL_GNULIB_REALLOC_GNU=1
18358
18359
18360
18361
18362
18363 printf "%s\n" "#define GNULIB_TEST_REALLOC_GNU 1" >>confdefs.h
18364
18365
18366
18367
18368
18369
18370 if test $REPLACE_MALLOC_FOR_MALLOC_POSIX = 1; then
18371 REPLACE_REALLOC_FOR_REALLOC_POSIX=1
18372 fi
18373
18374 if test $REPLACE_REALLOC_FOR_REALLOC_POSIX = 1; then
18375
18376
18377
18378
18379
18380
18381
18382
18383 gl_LIBOBJS="$gl_LIBOBJS realloc.$ac_objext"
18384
18385 fi
18386
18387
18388
18389
18390
18391
18392
18393
18394
18395 GL_GNULIB_REALLOC_POSIX=1
18396
18397
18398
18399
18400
18401 printf "%s\n" "#define GNULIB_TEST_REALLOC_POSIX 1" >>confdefs.h
18402
18403
18404
18405
18406
18407
18408
18409
18410
18411
18412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for reallocarray" >&5
18413 printf %s "checking for reallocarray... " >&6; }
18414 if test ${gl_cv_onwards_func_reallocarray+y}
18415 then :
18416 printf %s "(cached) " >&6
18417 else $as_nop
18418
18419 exec 9>&6 6>/dev/null
18420
18421 case "$host_os" in
18422
18423 linux*-android*)
18424 ac_fn_check_decl "$LINENO" "reallocarray" "ac_cv_have_decl_reallocarray" "#include <stdlib.h>
18425 " "$ac_c_undeclared_builtin_options" "CFLAGS"
18426 if test "x$ac_cv_have_decl_reallocarray" = xyes
18427 then :
18428
18429 fi
18430 if test $ac_cv_have_decl_reallocarray = yes; then
18431 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
18432 if test "x$ac_cv_func_reallocarray" = xyes
18433 then :
18434
18435 fi
18436
18437 if test $ac_cv_func_reallocarray = yes; then
18438 gl_cv_onwards_func_reallocarray=yes
18439 else
18440 gl_cv_onwards_func_reallocarray='future OS version'
18441 fi
18442 else
18443 gl_cv_onwards_func_reallocarray='future OS version'
18444 fi
18445 ;;
18446
18447
18448 *)
18449 ac_fn_c_check_func "$LINENO" "reallocarray" "ac_cv_func_reallocarray"
18450 if test "x$ac_cv_func_reallocarray" = xyes
18451 then :
18452
18453 fi
18454
18455 gl_cv_onwards_func_reallocarray=$ac_cv_func_reallocarray
18456 ;;
18457
18458 esac
18459
18460 exec 6>&9 9>&-
18461
18462
18463 fi
18464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_onwards_func_reallocarray" >&5
18465 printf "%s\n" "$gl_cv_onwards_func_reallocarray" >&6; }
18466
18467 case "$gl_cv_onwards_func_reallocarray" in
18468 future*) ac_cv_func_reallocarray=no ;;
18469 *) ac_cv_func_reallocarray=$gl_cv_onwards_func_reallocarray ;;
18470 esac
18471 if test $ac_cv_func_reallocarray = yes; then
18472
18473 printf "%s\n" "#define HAVE_REALLOCARRAY 1" >>confdefs.h
18474
18475 fi
18476
18477
18478 if test "$ac_cv_func_reallocarray" = no; then
18479 HAVE_REALLOCARRAY=0
18480 case "$gl_cv_onwards_func_reallocarray" in
18481 future*) REPLACE_REALLOCARRAY=1 ;;
18482 esac
18483 elif test "$gl_cv_malloc_ptrdiff" = no; then
18484 REPLACE_REALLOCARRAY=1
18485 fi
18486
18487
18488 if test $HAVE_REALLOCARRAY = 0 || test $REPLACE_REALLOCARRAY = 1; then
18489 GL_COND_OBJ_REALLOCARRAY_TRUE=
18490 GL_COND_OBJ_REALLOCARRAY_FALSE='#'
18491 else
18492 GL_COND_OBJ_REALLOCARRAY_TRUE='#'
18493 GL_COND_OBJ_REALLOCARRAY_FALSE=
18494 fi
18495 :
18496 if test -z "${GL_COND_OBJ_REALLOCARRAY_TRUE}" && test -z "${GL_COND_OBJ_REALLOCARRAY_FALSE}"; then
18497 GL_COND_OBJ_REALLOCARRAY_TRUE='#'
18498 GL_COND_OBJ_REALLOCARRAY_FALSE='#'
18499 fi
18500
18501 if test -z "$GL_COND_OBJ_REALLOCARRAY_TRUE"; then :
18502
18503 :
18504
18505 fi
18506
18507
18508 printf "%s\n" "#define GNULIB_REALLOCARRAY 1" >>confdefs.h
18509
18510
18511
18512
18513
18514
18515
18516
18517
18518
18519
18520 GL_GNULIB_REALLOCARRAY=1
18521
18522
18523
18524
18525
18526 printf "%s\n" "#define GNULIB_TEST_REALLOCARRAY 1" >>confdefs.h
18527
18528
18529
18530
18531 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
18532 if test "x$ac_cv_header_stdint_h" = xyes
18533 then :
18534 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
18535
18536 fi
18537
18538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
18539 printf %s "checking for SIZE_MAX... " >&6; }
18540 if test ${gl_cv_size_max+y}
18541 then :
18542 printf %s "(cached) " >&6
18543 else $as_nop
18544
18545 gl_cv_size_max=no
18546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18547 /* end confdefs.h. */
18548
18549 #include <limits.h>
18550 #if HAVE_STDINT_H
18551 #include <stdint.h>
18552 #endif
18553 #ifdef SIZE_MAX
18554 Found it
18555 #endif
18556
18557 _ACEOF
18558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18559 $EGREP "Found it" >/dev/null 2>&1
18560 then :
18561 gl_cv_size_max=yes
18562 fi
18563 rm -rf conftest*
18564
18565 if test $gl_cv_size_max != yes; then
18566 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
18567 #include <limits.h>"
18568 then :
18569
18570 else $as_nop
18571 size_t_bits_minus_1=
18572 fi
18573
18574 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"
18575 then :
18576
18577 else $as_nop
18578 fits_in_uint=
18579 fi
18580
18581 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
18582 if test $fits_in_uint = 1; then
18583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18584 /* end confdefs.h. */
18585 #include <stddef.h>
18586 extern size_t foo;
18587 extern unsigned long foo;
18588
18589 int
18590 main (void)
18591 {
18592
18593 ;
18594 return 0;
18595 }
18596 _ACEOF
18597 if ac_fn_c_try_compile "$LINENO"
18598 then :
18599 fits_in_uint=0
18600 fi
18601 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18602 fi
18603 if test $fits_in_uint = 1; then
18604 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
18605 else
18606 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
18607 fi
18608 else
18609 gl_cv_size_max='((size_t)~(size_t)0)'
18610 fi
18611 fi
18612
18613 fi
18614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
18615 printf "%s\n" "$gl_cv_size_max" >&6; }
18616 if test "$gl_cv_size_max" != yes; then
18617
18618 printf "%s\n" "#define SIZE_MAX $gl_cv_size_max" >>confdefs.h
18619
18620 fi
18621
18622
18623
18624
18625 gl_cv_func_snprintf_usable=no
18626 ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf"
18627 if test "x$ac_cv_func_snprintf" = xyes
18628 then :
18629 printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h
18630
18631 fi
18632
18633 if test $ac_cv_func_snprintf = yes; then
18634
18635
18636
18637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether snprintf respects a size of 1" >&5
18638 printf %s "checking whether snprintf respects a size of 1... " >&6; }
18639 if test ${gl_cv_func_snprintf_size1+y}
18640 then :
18641 printf %s "(cached) " >&6
18642 else $as_nop
18643
18644 if test "$cross_compiling" = yes
18645 then :
18646 case "$host_os" in
18647 # Guess yes on Android.
18648 linux*-android*) gl_cv_func_snprintf_size1="guessing yes" ;;
18649 # Guess yes on native Windows.
18650 mingw* | windows*) gl_cv_func_snprintf_size1="guessing yes" ;;
18651 *) gl_cv_func_snprintf_size1="guessing yes" ;;
18652 esac
18653
18654 else $as_nop
18655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18656 /* end confdefs.h. */
18657
18658 #include <stdio.h>
18659 #if HAVE_SNPRINTF
18660 # define my_snprintf snprintf
18661 #else
18662 # include <stdarg.h>
18663 static int my_snprintf (char *buf, int size, const char *format, ...)
18664 {
18665 va_list args;
18666 int ret;
18667 va_start (args, format);
18668 ret = vsnprintf (buf, size, format, args);
18669 va_end (args);
18670 return ret;
18671 }
18672 #endif
18673 int main()
18674 {
18675 static char buf[8] = { 'D', 'E', 'A', 'D', 'B', 'E', 'E', 'F' };
18676 my_snprintf (buf, 1, "%d", 12345);
18677 return buf[1] != 'E';
18678 }
18679 _ACEOF
18680 if ac_fn_c_try_run "$LINENO"
18681 then :
18682 gl_cv_func_snprintf_size1=yes
18683 else $as_nop
18684 gl_cv_func_snprintf_size1=no
18685 fi
18686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18687 conftest.$ac_objext conftest.beam conftest.$ac_ext
18688 fi
18689
18690
18691 fi
18692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_snprintf_size1" >&5
18693 printf "%s\n" "$gl_cv_func_snprintf_size1" >&6; }
18694
18695 case "$gl_cv_func_snprintf_size1" in
18696 *yes)
18697
18698 case "$gl_cv_func_snprintf_retval_c99" in
18699 *yes)
18700
18701 case "$gl_cv_func_printf_positions" in
18702 *yes)
18703 gl_cv_func_snprintf_usable=yes
18704 ;;
18705 esac
18706 ;;
18707 esac
18708 ;;
18709 esac
18710 fi
18711 if test $gl_cv_func_snprintf_usable = no; then
18712
18713
18714
18715
18716
18717
18718
18719
18720
18721
18722 gl_LIBOBJS="$gl_LIBOBJS snprintf.$ac_objext"
18723
18724 if test $ac_cv_func_snprintf = yes; then
18725 REPLACE_SNPRINTF=1
18726 else
18727
18728 if test $ac_cv_have_decl_snprintf = yes; then
18729 REPLACE_SNPRINTF=1
18730 fi
18731 fi
18732 :
18733
18734 fi
18735
18736 if test $ac_cv_have_decl_snprintf = no; then
18737 HAVE_DECL_SNPRINTF=0
18738 fi
18739
18740
18741
18742
18743
18744
18745
18746
18747
18748
18749 GL_GNULIB_SNPRINTF=1
18750
18751
18752
18753
18754
18755 printf "%s\n" "#define GNULIB_TEST_SNPRINTF 1" >>confdefs.h
18756
18757
18758
18759
18760
18761 printf "%s\n" "#define GNULIB_SNPRINTF 1" >>confdefs.h
18762
18763
18764
18765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssize_t" >&5
18766 printf %s "checking for ssize_t... " >&6; }
18767 if test ${gl_cv_ssize_t+y}
18768 then :
18769 printf %s "(cached) " >&6
18770 else $as_nop
18771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18772 /* end confdefs.h. */
18773 #include <sys/types.h>
18774 int
18775 main (void)
18776 {
18777 int x = sizeof (ssize_t *) + sizeof (ssize_t);
18778 return !x;
18779 ;
18780 return 0;
18781 }
18782 _ACEOF
18783 if ac_fn_c_try_compile "$LINENO"
18784 then :
18785 gl_cv_ssize_t=yes
18786 else $as_nop
18787 gl_cv_ssize_t=no
18788 fi
18789 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18790 fi
18791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_ssize_t" >&5
18792 printf "%s\n" "$gl_cv_ssize_t" >&6; }
18793 if test $gl_cv_ssize_t = no; then
18794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether size_t is wider than 'long'" >&5
18795 printf %s "checking whether size_t is wider than 'long'... " >&6; }
18796 if test ${gl_cv_size_t_large+y}
18797 then :
18798 printf %s "(cached) " >&6
18799 else $as_nop
18800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18801 /* end confdefs.h. */
18802 #include <sys/types.h>
18803 typedef int array [2 * (sizeof (size_t) > sizeof (long)) - 1];
18804
18805 int
18806 main (void)
18807 {
18808
18809 ;
18810 return 0;
18811 }
18812 _ACEOF
18813 if ac_fn_c_try_compile "$LINENO"
18814 then :
18815 gl_cv_size_t_large=yes
18816 else $as_nop
18817 gl_cv_size_t_large=no
18818 fi
18819 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18820 fi
18821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_t_large" >&5
18822 printf "%s\n" "$gl_cv_size_t_large" >&6; }
18823 if test $gl_cv_size_t_large = yes; then
18824 gl_def_ssize_t='long long'
18825 else
18826 gl_def_ssize_t='long'
18827 fi
18828
18829 printf "%s\n" "#define ssize_t $gl_def_ssize_t" >>confdefs.h
18830
18831 fi
18832
18833
18834
18835
18836
18837 case "$host_os" in
18838 mingw* | windows*)
18839 REPLACE_STAT=1
18840 ;;
18841 *)
18842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stat handles trailing slashes on files" >&5
18843 printf %s "checking whether stat handles trailing slashes on files... " >&6; }
18844 if test ${gl_cv_func_stat_file_slash+y}
18845 then :
18846 printf %s "(cached) " >&6
18847 else $as_nop
18848 touch conftest.tmp
18849 # Assume that if we have lstat, we can also check symlinks.
18850 if test $ac_cv_func_lstat = yes; then
18851 ln -s conftest.tmp conftest.lnk
18852 fi
18853 if test "$cross_compiling" = yes
18854 then :
18855 case "$host_os" in
18856 # Guess yes on Linux systems.
18857 linux-* | linux) gl_cv_func_stat_file_slash="guessing yes" ;;
18858 # Guess yes on systems that emulate the Linux system calls.
18859 midipix*) gl_cv_func_stat_file_slash="guessing yes" ;;
18860 # Guess yes on glibc systems.
18861 *-gnu* | gnu*) gl_cv_func_stat_file_slash="guessing yes" ;;
18862 # If we don't know, obey --enable-cross-guesses.
18863 *) gl_cv_func_stat_file_slash="$gl_cross_guess_normal" ;;
18864 esac
18865
18866 else $as_nop
18867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18868 /* end confdefs.h. */
18869 #include <sys/stat.h>
18870
18871 int
18872 main (void)
18873 {
18874 int result = 0;
18875 struct stat st;
18876 if (!stat ("conftest.tmp/", &st))
18877 result |= 1;
18878 #if HAVE_LSTAT
18879 if (!stat ("conftest.lnk/", &st))
18880 result |= 2;
18881 #endif
18882 return result;
18883
18884 ;
18885 return 0;
18886 }
18887 _ACEOF
18888 if ac_fn_c_try_run "$LINENO"
18889 then :
18890 gl_cv_func_stat_file_slash=yes
18891 else $as_nop
18892 gl_cv_func_stat_file_slash=no
18893 fi
18894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18895 conftest.$ac_objext conftest.beam conftest.$ac_ext
18896 fi
18897
18898 rm -f conftest.tmp conftest.lnk
18899 fi
18900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_stat_file_slash" >&5
18901 printf "%s\n" "$gl_cv_func_stat_file_slash" >&6; }
18902 case $gl_cv_func_stat_file_slash in
18903 *no)
18904 REPLACE_STAT=1
18905
18906 printf "%s\n" "#define REPLACE_FUNC_STAT_FILE 1" >>confdefs.h
18907 ;;
18908 esac
18909 case $host_os in
18910 darwin* | solaris*)
18911 REPLACE_FSTAT=1 ;;
18912 esac
18913 ;;
18914 esac
18915
18916
18917 if test $REPLACE_STAT = 1; then
18918 GL_COND_OBJ_STAT_TRUE=
18919 GL_COND_OBJ_STAT_FALSE='#'
18920 else
18921 GL_COND_OBJ_STAT_TRUE='#'
18922 GL_COND_OBJ_STAT_FALSE=
18923 fi
18924 :
18925 if test -z "${GL_COND_OBJ_STAT_TRUE}" && test -z "${GL_COND_OBJ_STAT_FALSE}"; then
18926 GL_COND_OBJ_STAT_TRUE='#'
18927 GL_COND_OBJ_STAT_FALSE='#'
18928 fi
18929
18930 if test -z "$GL_COND_OBJ_STAT_TRUE"; then :
18931
18932 case "$host_os" in
18933 mingw* | windows*)
18934
18935
18936
18937
18938
18939
18940
18941
18942 gl_LIBOBJS="$gl_LIBOBJS stat-w32.$ac_objext"
18943
18944 ;;
18945 esac
18946
18947
18948
18949 :
18950
18951
18952 fi
18953
18954
18955
18956
18957
18958
18959
18960
18961
18962 GL_GNULIB_STAT=1
18963
18964
18965
18966
18967
18968 printf "%s\n" "#define GNULIB_TEST_STAT 1" >>confdefs.h
18969
18970
18971
18972
18973
18974
18975
18976 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>
18977 #include <sys/stat.h>
18978 "
18979 if test "x$ac_cv_member_struct_stat_st_atim_tv_nsec" = xyes
18980 then :
18981
18982 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC 1" >>confdefs.h
18983
18984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct stat.st_atim is of type struct timespec" >&5
18985 printf %s "checking whether struct stat.st_atim is of type struct timespec... " >&6; }
18986 if test ${ac_cv_typeof_struct_stat_st_atim_is_struct_timespec+y}
18987 then :
18988 printf %s "(cached) " >&6
18989 else $as_nop
18990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18991 /* end confdefs.h. */
18992
18993 #include <sys/types.h>
18994 #include <sys/stat.h>
18995 #if HAVE_SYS_TIME_H
18996 # include <sys/time.h>
18997 #endif
18998 #include <time.h>
18999 struct timespec ts;
19000 struct stat st;
19001
19002 int
19003 main (void)
19004 {
19005
19006 st.st_atim = ts;
19007
19008 ;
19009 return 0;
19010 }
19011 _ACEOF
19012 if ac_fn_c_try_compile "$LINENO"
19013 then :
19014 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=yes
19015 else $as_nop
19016 ac_cv_typeof_struct_stat_st_atim_is_struct_timespec=no
19017 fi
19018 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19019 fi
19020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&5
19021 printf "%s\n" "$ac_cv_typeof_struct_stat_st_atim_is_struct_timespec" >&6; }
19022 if test $ac_cv_typeof_struct_stat_st_atim_is_struct_timespec = yes; then
19023
19024 printf "%s\n" "#define TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC 1" >>confdefs.h
19025
19026 fi
19027 else $as_nop
19028 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>
19029 #include <sys/stat.h>
19030 "
19031 if test "x$ac_cv_member_struct_stat_st_atimespec_tv_nsec" = xyes
19032 then :
19033
19034 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC 1" >>confdefs.h
19035
19036
19037 else $as_nop
19038 ac_fn_c_check_member "$LINENO" "struct stat" "st_atimensec" "ac_cv_member_struct_stat_st_atimensec" "#include <sys/types.h>
19039 #include <sys/stat.h>
19040 "
19041 if test "x$ac_cv_member_struct_stat_st_atimensec" = xyes
19042 then :
19043
19044 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIMENSEC 1" >>confdefs.h
19045
19046
19047 else $as_nop
19048 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>
19049 #include <sys/stat.h>
19050 "
19051 if test "x$ac_cv_member_struct_stat_st_atim_st__tim_tv_nsec" = xyes
19052 then :
19053
19054 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC 1" >>confdefs.h
19055
19056
19057 fi
19058
19059 fi
19060
19061 fi
19062
19063 fi
19064
19065
19066
19067
19068
19069 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>
19070 #include <sys/stat.h>
19071 "
19072 if test "x$ac_cv_member_struct_stat_st_birthtimespec_tv_nsec" = xyes
19073 then :
19074
19075 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC 1" >>confdefs.h
19076
19077
19078 else $as_nop
19079 ac_fn_c_check_member "$LINENO" "struct stat" "st_birthtimensec" "ac_cv_member_struct_stat_st_birthtimensec" "#include <sys/types.h>
19080 #include <sys/stat.h>
19081 "
19082 if test "x$ac_cv_member_struct_stat_st_birthtimensec" = xyes
19083 then :
19084
19085 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC 1" >>confdefs.h
19086
19087
19088 else $as_nop
19089 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>
19090 #include <sys/stat.h>
19091 "
19092 if test "x$ac_cv_member_struct_stat_st_birthtim_tv_nsec" = xyes
19093 then :
19094
19095 printf "%s\n" "#define HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC 1" >>confdefs.h
19096
19097
19098 fi
19099
19100 fi
19101
19102 fi
19103
19104
19105
19106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for bool, true, false" >&5
19107 printf %s "checking for bool, true, false... " >&6; }
19108 if test ${gl_cv_c_bool+y}
19109 then :
19110 printf %s "(cached) " >&6
19111 else $as_nop
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19114
19115 #if true == false
19116 #error "true == false"
19117 #endif
19118 extern bool b;
19119 bool b = true == false;
19120 _ACEOF
19121 if ac_fn_c_try_compile "$LINENO"
19122 then :
19123 gl_cv_c_bool=yes
19124 else $as_nop
19125 gl_cv_c_bool=no
19126 fi
19127 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19128 fi
19129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_c_bool" >&5
19130 printf "%s\n" "$gl_cv_c_bool" >&6; }
19131 if test "$gl_cv_c_bool" = yes; then
19132
19133 printf "%s\n" "#define HAVE_C_BOOL 1" >>confdefs.h
19134
19135 fi
19136
19137
19138
19139
19140
19141
19142 if test $ac_cv_header_stdckdint_h = yes; then
19143 GL_GENERATE_STDCKDINT_H=false
19144 else
19145 GL_GENERATE_STDCKDINT_H=true
19146 fi
19147
19148
19149
19150
19151 case "$GL_GENERATE_STDCKDINT_H" in
19152 false) STDCKDINT_H='' ;;
19153 true)
19154 if test -z "$STDCKDINT_H"; then
19155 STDCKDINT_H="${gl_source_base_prefix}stdckdint.h"
19156 fi
19157 ;;
19158 *) echo "*** GL_GENERATE_STDCKDINT_H is not set correctly" 1>&2; exit 1 ;;
19159 esac
19160
19161
19162 if $GL_GENERATE_STDCKDINT_H; then
19163 GL_GENERATE_STDCKDINT_H_TRUE=
19164 GL_GENERATE_STDCKDINT_H_FALSE='#'
19165 else
19166 GL_GENERATE_STDCKDINT_H_TRUE='#'
19167 GL_GENERATE_STDCKDINT_H_FALSE=
19168 fi
19169 :
19170 if test -z "${GL_GENERATE_STDCKDINT_H_TRUE}" && test -z "${GL_GENERATE_STDCKDINT_H_FALSE}"; then
19171 GL_GENERATE_STDCKDINT_H_TRUE='#'
19172 GL_GENERATE_STDCKDINT_H_FALSE='#'
19173 fi
19174
19175
19176
19177
19178
19179
19180
19181
19182
19183
19184
19185
19186
19187
19188
19189
19190 case "$GL_GENERATE_STDDEF_H" in
19191 false) STDDEF_H='' ;;
19192 true)
19193 if test -z "$STDDEF_H"; then
19194 STDDEF_H="${gl_source_base_prefix}stddef.h"
19195 fi
19196 ;;
19197 *) echo "*** GL_GENERATE_STDDEF_H is not set correctly" 1>&2; exit 1 ;;
19198 esac
19199
19200
19201 if $GL_GENERATE_STDDEF_H; then
19202 GL_GENERATE_STDDEF_H_TRUE=
19203 GL_GENERATE_STDDEF_H_FALSE='#'
19204 else
19205 GL_GENERATE_STDDEF_H_TRUE='#'
19206 GL_GENERATE_STDDEF_H_FALSE=
19207 fi
19208 :
19209 if test -z "${GL_GENERATE_STDDEF_H_TRUE}" && test -z "${GL_GENERATE_STDDEF_H_FALSE}"; then
19210 GL_GENERATE_STDDEF_H_TRUE='#'
19211 GL_GENERATE_STDDEF_H_FALSE='#'
19212 fi
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224 case "$GL_GENERATE_STDINT_H" in
19225 false) STDINT_H='' ;;
19226 true)
19227 if test -z "$STDINT_H"; then
19228 STDINT_H="${gl_source_base_prefix}stdint.h"
19229 fi
19230 ;;
19231 *) echo "*** GL_GENERATE_STDINT_H is not set correctly" 1>&2; exit 1 ;;
19232 esac
19233
19234
19235 if $GL_GENERATE_STDINT_H; then
19236 GL_GENERATE_STDINT_H_TRUE=
19237 GL_GENERATE_STDINT_H_FALSE='#'
19238 else
19239 GL_GENERATE_STDINT_H_TRUE='#'
19240 GL_GENERATE_STDINT_H_FALSE=
19241 fi
19242 :
19243 if test -z "${GL_GENERATE_STDINT_H_TRUE}" && test -z "${GL_GENERATE_STDINT_H_FALSE}"; then
19244 GL_GENERATE_STDINT_H_TRUE='#'
19245 GL_GENERATE_STDINT_H_FALSE='#'
19246 fi
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256 case "$GL_GENERATE_LIMITS_H" in
19257 false) LIMITS_H='' ;;
19258 true)
19259 if test -z "$LIMITS_H"; then
19260 LIMITS_H="${gl_source_base_prefix}limits.h"
19261 fi
19262 ;;
19263 *) echo "*** GL_GENERATE_LIMITS_H is not set correctly" 1>&2; exit 1 ;;
19264 esac
19265
19266
19267 if $GL_GENERATE_LIMITS_H; then
19268 GL_GENERATE_LIMITS_H_TRUE=
19269 GL_GENERATE_LIMITS_H_FALSE='#'
19270 else
19271 GL_GENERATE_LIMITS_H_TRUE='#'
19272 GL_GENERATE_LIMITS_H_FALSE=
19273 fi
19274 :
19275 if test -z "${GL_GENERATE_LIMITS_H_TRUE}" && test -z "${GL_GENERATE_LIMITS_H_FALSE}"; then
19276 GL_GENERATE_LIMITS_H_TRUE='#'
19277 GL_GENERATE_LIMITS_H_FALSE='#'
19278 fi
19279
19280
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293 if test $REPLACE_STDIO_READ_FUNCS = 1; then
19294 GL_COND_OBJ_STDIO_READ_TRUE=
19295 GL_COND_OBJ_STDIO_READ_FALSE='#'
19296 else
19297 GL_COND_OBJ_STDIO_READ_TRUE='#'
19298 GL_COND_OBJ_STDIO_READ_FALSE=
19299 fi
19300 :
19301 if test -z "${GL_COND_OBJ_STDIO_READ_TRUE}" && test -z "${GL_COND_OBJ_STDIO_READ_FALSE}"; then
19302 GL_COND_OBJ_STDIO_READ_TRUE='#'
19303 GL_COND_OBJ_STDIO_READ_FALSE='#'
19304 fi
19305
19306
19307 if test $REPLACE_STDIO_WRITE_FUNCS = 1; then
19308 GL_COND_OBJ_STDIO_WRITE_TRUE=
19309 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
19310 else
19311 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
19312 GL_COND_OBJ_STDIO_WRITE_FALSE=
19313 fi
19314 :
19315 if test -z "${GL_COND_OBJ_STDIO_WRITE_TRUE}" && test -z "${GL_COND_OBJ_STDIO_WRITE_FALSE}"; then
19316 GL_COND_OBJ_STDIO_WRITE_TRUE='#'
19317 GL_COND_OBJ_STDIO_WRITE_FALSE='#'
19318 fi
19319
19320
19321
19322
19323
19324
19325
19326
19327
19328
19329 GL_GNULIB_FSCANF=1
19330
19331
19332
19333
19334
19335 printf "%s\n" "#define GNULIB_TEST_FSCANF 1" >>confdefs.h
19336
19337
19338
19339
19340
19341 printf "%s\n" "#define GNULIB_FSCANF 1" >>confdefs.h
19342
19343
19344
19345
19346
19347
19348
19349
19350
19351
19352
19353 GL_GNULIB_SCANF=1
19354
19355
19356
19357
19358
19359 printf "%s\n" "#define GNULIB_TEST_SCANF 1" >>confdefs.h
19360
19361
19362
19363
19364
19365 printf "%s\n" "#define GNULIB_SCANF 1" >>confdefs.h
19366
19367
19368
19369
19370
19371
19372
19373
19374
19375
19376
19377 GL_GNULIB_FGETC=1
19378
19379
19380
19381
19382
19383 printf "%s\n" "#define GNULIB_TEST_FGETC 1" >>confdefs.h
19384
19385
19386
19387
19388
19389
19390
19391
19392
19393
19394
19395
19396 GL_GNULIB_GETC=1
19397
19398
19399
19400
19401
19402 printf "%s\n" "#define GNULIB_TEST_GETC 1" >>confdefs.h
19403
19404
19405
19406
19407
19408
19409
19410
19411
19412
19413
19414
19415 GL_GNULIB_GETCHAR=1
19416
19417
19418
19419
19420
19421 printf "%s\n" "#define GNULIB_TEST_GETCHAR 1" >>confdefs.h
19422
19423
19424
19425
19426
19427
19428
19429
19430
19431
19432
19433
19434 GL_GNULIB_FGETS=1
19435
19436
19437
19438
19439
19440 printf "%s\n" "#define GNULIB_TEST_FGETS 1" >>confdefs.h
19441
19442
19443
19444
19445
19446
19447
19448
19449
19450
19451
19452
19453 GL_GNULIB_FREAD=1
19454
19455
19456
19457
19458
19459 printf "%s\n" "#define GNULIB_TEST_FREAD 1" >>confdefs.h
19460
19461
19462
19463
19464
19465
19466
19467
19468
19469
19470
19471
19472 GL_GNULIB_FPRINTF=1
19473
19474
19475
19476
19477
19478 printf "%s\n" "#define GNULIB_TEST_FPRINTF 1" >>confdefs.h
19479
19480
19481
19482
19483
19484
19485
19486
19487
19488
19489
19490
19491 GL_GNULIB_PRINTF=1
19492
19493
19494
19495
19496
19497 printf "%s\n" "#define GNULIB_TEST_PRINTF 1" >>confdefs.h
19498
19499
19500
19501
19502
19503
19504
19505
19506
19507
19508
19509
19510 GL_GNULIB_VFPRINTF=1
19511
19512
19513
19514
19515
19516 printf "%s\n" "#define GNULIB_TEST_VFPRINTF 1" >>confdefs.h
19517
19518
19519
19520
19521
19522
19523
19524
19525
19526
19527
19528
19529 GL_GNULIB_VPRINTF=1
19530
19531
19532
19533
19534
19535 printf "%s\n" "#define GNULIB_TEST_VPRINTF 1" >>confdefs.h
19536
19537
19538
19539
19540
19541
19542
19543
19544
19545
19546
19547
19548 GL_GNULIB_FPUTC=1
19549
19550
19551
19552
19553
19554 printf "%s\n" "#define GNULIB_TEST_FPUTC 1" >>confdefs.h
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567 GL_GNULIB_PUTC=1
19568
19569
19570
19571
19572
19573 printf "%s\n" "#define GNULIB_TEST_PUTC 1" >>confdefs.h
19574
19575
19576
19577
19578
19579
19580
19581
19582
19583
19584
19585
19586 GL_GNULIB_PUTCHAR=1
19587
19588
19589
19590
19591
19592 printf "%s\n" "#define GNULIB_TEST_PUTCHAR 1" >>confdefs.h
19593
19594
19595
19596
19597
19598
19599
19600
19601
19602
19603
19604
19605 GL_GNULIB_FPUTS=1
19606
19607
19608
19609
19610
19611 printf "%s\n" "#define GNULIB_TEST_FPUTS 1" >>confdefs.h
19612
19613
19614
19615
19616
19617
19618
19619
19620
19621
19622
19623
19624 GL_GNULIB_PUTS=1
19625
19626
19627
19628
19629
19630 printf "%s\n" "#define GNULIB_TEST_PUTS 1" >>confdefs.h
19631
19632
19633
19634
19635
19636
19637
19638
19639
19640
19641
19642
19643 GL_GNULIB_FWRITE=1
19644
19645
19646
19647
19648
19649 printf "%s\n" "#define GNULIB_TEST_FWRITE 1" >>confdefs.h
19650
19651
19652
19653
19654
19655
19656
19657
19658
19659
19660
19661
19662
19663
19664
19665 if test "$GL_GENERATE_ERRNO_H:$REPLACE_STRERROR_0" = false:0; then
19666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working strerror function" >&5
19667 printf %s "checking for working strerror function... " >&6; }
19668 if test ${gl_cv_func_working_strerror+y}
19669 then :
19670 printf %s "(cached) " >&6
19671 else $as_nop
19672 if test "$cross_compiling" = yes
19673 then :
19674 case "$host_os" in
19675 # Guess yes on glibc systems.
19676 *-gnu* | gnu*) gl_cv_func_working_strerror="guessing yes" ;;
19677 # Guess yes on musl systems.
19678 *-musl* | midipix*) gl_cv_func_working_strerror="guessing yes" ;;
19679 # If we don't know, obey --enable-cross-guesses.
19680 *) gl_cv_func_working_strerror="$gl_cross_guess_normal" ;;
19681 esac
19682
19683 else $as_nop
19684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19685 /* end confdefs.h. */
19686 #include <string.h>
19687
19688 int
19689 main (void)
19690 {
19691 if (!*strerror (-2)) return 1;
19692 ;
19693 return 0;
19694 }
19695 _ACEOF
19696 if ac_fn_c_try_run "$LINENO"
19697 then :
19698 gl_cv_func_working_strerror=yes
19699 else $as_nop
19700 gl_cv_func_working_strerror=no
19701 fi
19702 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19703 conftest.$ac_objext conftest.beam conftest.$ac_ext
19704 fi
19705
19706
19707 fi
19708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_working_strerror" >&5
19709 printf "%s\n" "$gl_cv_func_working_strerror" >&6; }
19710 case "$gl_cv_func_working_strerror" in
19711 *yes) ;;
19712 *)
19713 REPLACE_STRERROR=1
19714 ;;
19715 esac
19716
19717 else
19718 REPLACE_STRERROR=1
19719 fi
19720
19721
19722 if test $REPLACE_STRERROR = 1; then
19723 GL_COND_OBJ_STRERROR_TRUE=
19724 GL_COND_OBJ_STRERROR_FALSE='#'
19725 else
19726 GL_COND_OBJ_STRERROR_TRUE='#'
19727 GL_COND_OBJ_STRERROR_FALSE=
19728 fi
19729 :
19730 if test -z "${GL_COND_OBJ_STRERROR_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_FALSE}"; then
19731 GL_COND_OBJ_STRERROR_TRUE='#'
19732 GL_COND_OBJ_STRERROR_FALSE='#'
19733 fi
19734
19735
19736
19737 printf "%s\n" "#define GNULIB_STRERROR 1" >>confdefs.h
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754 GL_GNULIB_STRERROR=1
19755
19756
19757
19758
19759
19760 printf "%s\n" "#define GNULIB_TEST_STRERROR 1" >>confdefs.h
19761
19762
19763
19764
19765
19766
19767 if test -n "$ERRNO_H" || test $REPLACE_STRERROR_0 = 1; then
19768 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE=
19769 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
19770 else
19771 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
19772 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE=
19773 fi
19774 :
19775 if test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_TRUE}" && test -z "${GL_COND_OBJ_STRERROR_OVERRIDE_FALSE}"; then
19776 GL_COND_OBJ_STRERROR_OVERRIDE_TRUE='#'
19777 GL_COND_OBJ_STRERROR_OVERRIDE_FALSE='#'
19778 fi
19779
19780 if test -z "$GL_COND_OBJ_STRERROR_OVERRIDE_TRUE"; then :
19781
19782
19783
19784
19785
19786 if test $ac_cv_header_sys_socket_h != yes; then
19787 ac_fn_c_check_header_compile "$LINENO" "winsock2.h" "ac_cv_header_winsock2_h" "$ac_includes_default"
19788 if test "x$ac_cv_header_winsock2_h" = xyes
19789 then :
19790 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
19791
19792 fi
19793
19794 fi
19795 if test "$ac_cv_header_winsock2_h" = yes; then
19796 HAVE_WINSOCK2_H=1
19797 UNISTD_H_HAVE_WINSOCK2_H=1
19798 SYS_IOCTL_H_HAVE_WINSOCK2_H=1
19799 else
19800 HAVE_WINSOCK2_H=0
19801 fi
19802
19803
19804
19805 fi
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for variable-length arrays" >&5
19848 printf %s "checking for variable-length arrays... " >&6; }
19849 if test ${ac_cv_c_vararrays+y}
19850 then :
19851 printf %s "(cached) " >&6
19852 else $as_nop
19853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19854 /* end confdefs.h. */
19855 #ifdef __STDC_NO_VLA__
19856 defined
19857 #endif
19858
19859 _ACEOF
19860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19861 $EGREP "defined" >/dev/null 2>&1
19862 then :
19863 ac_cv_c_vararrays='no: __STDC_NO_VLA__ is defined'
19864 else $as_nop
19865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19866 /* end confdefs.h. */
19867 /* Test for VLA support. This test is partly inspired
19868 from examples in the C standard. Use at least two VLA
19869 functions to detect the GCC 3.4.3 bug described in:
19870 https://lists.gnu.org/archive/html/bug-gnulib/2014-08/msg00014.html
19871 */
19872 #ifdef __STDC_NO_VLA__
19873 syntax error;
19874 #else
19875 extern int n;
19876 int B[100];
19877 int fvla (int m, int C[m][m]);
19878
19879 int
19880 simple (int count, int all[static count])
19881 {
19882 return all[count - 1];
19883 }
19884
19885 int
19886 fvla (int m, int C[m][m])
19887 {
19888 typedef int VLA[m][m];
19889 VLA x;
19890 int D[m];
19891 static int (*q)[m] = &B;
19892 int (*s)[n] = q;
19893 return C && &x[0][0] == &D[0] && &D[0] == s[0];
19894 }
19895 #endif
19896
19897 int
19898 main (void)
19899 {
19900
19901 ;
19902 return 0;
19903 }
19904 _ACEOF
19905 if ac_fn_c_try_compile "$LINENO"
19906 then :
19907 ac_cv_c_vararrays=yes
19908 else $as_nop
19909 ac_cv_c_vararrays=no
19910 fi
19911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19912 fi
19913 rm -rf conftest*
19914
19915 fi
19916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_vararrays" >&5
19917 printf "%s\n" "$ac_cv_c_vararrays" >&6; }
19918 if test "$ac_cv_c_vararrays" = yes; then
19919
19920 printf "%s\n" "#define HAVE_C_VARARRAYS 1" >>confdefs.h
19921
19922 elif test "$ac_cv_c_vararrays" = no; then
19923
19924 printf "%s\n" "#define __STDC_NO_VLA__ 1" >>confdefs.h
19925
19926 fi
19927
19928
19929
19930
19931 if test $ac_cv_func_vasnprintf = no; then
19932
19933
19934
19935
19936
19937
19938
19939
19940
19941
19942 gl_LIBOBJS="$gl_LIBOBJS vasnprintf.$ac_objext"
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952 gl_LIBOBJS="$gl_LIBOBJS printf-args.$ac_objext"
19953
19954
19955
19956
19957
19958
19959
19960
19961
19962 gl_LIBOBJS="$gl_LIBOBJS printf-parse.$ac_objext"
19963
19964
19965
19966
19967
19968
19969
19970
19971
19972 gl_LIBOBJS="$gl_LIBOBJS asnprintf.$ac_objext"
19973
19974 if test $ac_cv_func_vasnprintf = yes; then
19975
19976 printf "%s\n" "#define REPLACE_VASNPRINTF 1" >>confdefs.h
19977
19978 fi
19979
19980
19981
19982
19983
19984
19985
19986
19987
19988 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
19989 if test "x$ac_cv_type_ptrdiff_t" = xyes
19990 then :
19991
19992 else $as_nop
19993
19994 printf "%s\n" "#define ptrdiff_t long" >>confdefs.h
19995
19996
19997 fi
19998
19999
20000
20001
20002
20003
20004
20005 fi
20006
20007
20008
20009
20010
20011
20012
20013
20014
20015
20016
20017
20018
20019 :
20020
20021
20022 printf "%s\n" "#define GNULIB_XALLOC 1" >>confdefs.h
20023
20024
20025
20026
20027 printf "%s\n" "#define GNULIB_XALLOC_DIE 1" >>confdefs.h
20028
20029
20030
20031
20032 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
20033 if test "x$ac_cv_header_stdint_h" = xyes
20034 then :
20035 printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
20036
20037 fi
20038
20039
20040 # End of code from modules
20041
20042
20043
20044
20045
20046
20047
20048
20049
20050
20051
20052 gltests_libdeps=
20053 gltests_ltlibdeps=
20054
20055
20056
20057
20058
20059
20060
20061
20062
20063
20064
20065
20066 gl_source_base='tests'
20067 gl_source_base_prefix=
20068 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
20069
20070 gl_module_indicator_condition=$gltests_WITNESS
20071
20072
20073
20074
20075
20076
20077
20078
20079
20080
20081
20082
20083 LIBGNU_LIBDEPS="$gl_libdeps"
20084
20085 LIBGNU_LTLIBDEPS="$gl_ltlibdeps"
20086
20087
20088 # Check whether --enable-debug was given.
20089 if test ${enable_debug+y}
20090 then :
20091 enableval=$enable_debug; mu_debug_mode=$enableval
20092 else $as_nop
20093 mu_debug_mode=maybe
20094 fi
20095
20096
20097 save_CC=$CC
20098 CC="$CC -Wall"
20099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20100 /* end confdefs.h. */
20101
20102 int
20103 main (void)
20104 {
20105 void main(){}
20106 ;
20107 return 0;
20108 }
20109 _ACEOF
20110 if ac_fn_c_try_compile "$LINENO"
20111 then :
20112
20113 else $as_nop
20114 CFLAGS="$CFLAGS -Wall"
20115 fi
20116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20117
20118 CC="$CC -Wdeclaration-after-statement"
20119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20120 /* end confdefs.h. */
20121
20122 int
20123 main (void)
20124 {
20125 void main(){}
20126 ;
20127 return 0;
20128 }
20129 _ACEOF
20130 if ac_fn_c_try_compile "$LINENO"
20131 then :
20132
20133 else $as_nop
20134 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
20135 fi
20136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20137
20138 if test "$mu_debug_mode" != no; then
20139 CFLAGS=`echo $CFLAGS | sed 's/-O[0-9]//g'`
20140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cc accepts -ggdb" >&5
20141 printf %s "checking whether cc accepts -ggdb... " >&6; }
20142 CC="$CC -ggdb"
20143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20144 /* end confdefs.h. */
20145
20146 int
20147 main (void)
20148 {
20149 void main(){}
20150 ;
20151 return 0;
20152 }
20153 _ACEOF
20154 if ac_fn_c_try_compile "$LINENO"
20155 then :
20156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20157 printf "%s\n" "yes" >&6; }
20158 CFLAGS="$CFLAGS -ggdb"
20159 else $as_nop
20160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20161 printf "%s\n" "no" >&6; }
20162 CFLAGS="$CFLAGS -g"
20163 fi
20164 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20165 fi
20166 CC=$save_CC
20167
20168 ### Check for Emacs site-lisp directory
20169 # If set to t, that means we are running in a shell under Emacs.
20170 # If you have an Emacs named "t", then use the full path.
20171 test x"$EMACS" = xt && EMACS=
20172 for ac_prog in emacs xemacs
20173 do
20174 # Extract the first word of "$ac_prog", so it can be a program name with args.
20175 set dummy $ac_prog; ac_word=$2
20176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20177 printf %s "checking for $ac_word... " >&6; }
20178 if test ${ac_cv_prog_EMACS+y}
20179 then :
20180 printf %s "(cached) " >&6
20181 else $as_nop
20182 if test -n "$EMACS"; then
20183 ac_cv_prog_EMACS="$EMACS" # Let the user override the test.
20184 else
20185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20186 for as_dir in $PATH
20187 do
20188 IFS=$as_save_IFS
20189 case $as_dir in #(((
20190 '') as_dir=./ ;;
20191 */) ;;
20192 *) as_dir=$as_dir/ ;;
20193 esac
20194 for ac_exec_ext in '' $ac_executable_extensions; do
20195 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
20196 ac_cv_prog_EMACS="$ac_prog"
20197 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
20198 break 2
20199 fi
20200 done
20201 done
20202 IFS=$as_save_IFS
20203
20204 fi
20205 fi
20206 EMACS=$ac_cv_prog_EMACS
20207 if test -n "$EMACS"; then
20208 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EMACS" >&5
20209 printf "%s\n" "$EMACS" >&6; }
20210 else
20211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20212 printf "%s\n" "no" >&6; }
20213 fi
20214
20215
20216 test -n "$EMACS" && break
20217 done
20218 test -n "$EMACS" || EMACS="no"
20219
20220
20221
20222
20223 # Check whether --with-lispdir was given.
20224 if test ${with_lispdir+y}
20225 then :
20226 withval=$with_lispdir; lispdir="$withval"
20227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
20228 printf %s "checking where .elc files should go... " >&6; }
20229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lispdir" >&5
20230 printf "%s\n" "$lispdir" >&6; }
20231 else $as_nop
20232
20233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where .elc files should go" >&5
20234 printf %s "checking where .elc files should go... " >&6; }
20235 if test ${am_cv_lispdir+y}
20236 then :
20237 printf %s "(cached) " >&6
20238 else $as_nop
20239
20240 if test $EMACS != "no"; then
20241 if test x${lispdir+set} != xset; then
20242 # If $EMACS isn't GNU Emacs or XEmacs, this can blow up pretty badly
20243 # Some emacsen will start up in interactive mode, requiring C-x C-c to exit,
20244 # which is non-obvious for non-emacs users.
20245 # Redirecting /dev/null should help a bit; pity we can't detect "broken"
20246 # emacsen earlier and avoid running this altogether.
20247 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$EMACS -batch -Q -eval '(while load-path (princ (concat (car load-path) \"\\n\")) (setq load-path (cdr load-path)))' </dev/null >conftest.out"; } >&5
20248 ($EMACS -batch -Q -eval '(while load-path (princ (concat (car load-path) "\n")) (setq load-path (cdr load-path)))' </dev/null >conftest.out) 2>&5
20249 ac_status=$?
20250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20251 test $ac_status = 0; }
20252 am_cv_lispdir=`sed -n \
20253 -e 's,/$,,' \
20254 -e '/.*\/lib\/x*emacs\/site-lisp$/{s,.*/lib/\(x*emacs/site-lisp\)$,${libdir}/\1,;p;q;}' \
20255 -e '/.*\/share\/x*emacs\/site-lisp$/{s,.*/share/\(x*emacs/site-lisp\),${datarootdir}/\1,;p;q;}' \
20256 conftest.out`
20257 rm conftest.out
20258 fi
20259 fi
20260 test -z "$am_cv_lispdir" && am_cv_lispdir='${datadir}/emacs/site-lisp'
20261
20262 fi
20263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_lispdir" >&5
20264 printf "%s\n" "$am_cv_lispdir" >&6; }
20265 lispdir="$am_cv_lispdir"
20266
20267 fi
20268
20269
20270
20271
20272 # Gettext.
20273
20274 if test "X$prefix" = "XNONE"; then
20275 acl_final_prefix="$ac_default_prefix"
20276 else
20277 acl_final_prefix="$prefix"
20278 fi
20279 if test "X$exec_prefix" = "XNONE"; then
20280 acl_final_exec_prefix='${prefix}'
20281 else
20282 acl_final_exec_prefix="$exec_prefix"
20283 fi
20284 acl_save_prefix="$prefix"
20285 prefix="$acl_final_prefix"
20286 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
20287 prefix="$acl_save_prefix"
20288
20289
20290
20291 # Check whether --with-gnu-ld was given.
20292 if test ${with_gnu_ld+y}
20293 then :
20294 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
20295 else $as_nop
20296 with_gnu_ld=no
20297 fi
20298
20299 # Prepare PATH_SEPARATOR.
20300 # The user is always right.
20301 if test "${PATH_SEPARATOR+set}" != set; then
20302 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
20303 # contains only /bin. Note that ksh looks also at the FPATH variable,
20304 # so we have to set that as well for the test.
20305 PATH_SEPARATOR=:
20306 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20307 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
20308 || PATH_SEPARATOR=';'
20309 }
20310 fi
20311
20312 ac_prog=ld
20313 if test "$GCC" = yes; then
20314 # Check if gcc -print-prog-name=ld gives a path.
20315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
20316 printf %s "checking for ld used by $CC... " >&6; }
20317 case $host in
20318 *-*-mingw*)
20319 # gcc leaves a trailing carriage return which upsets mingw
20320 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
20321 *)
20322 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
20323 esac
20324 case $ac_prog in
20325 # Accept absolute paths.
20326 [\\/]* | ?:[\\/]*)
20327 re_direlt='/[^/][^/]*/\.\./'
20328 # Canonicalize the pathname of ld
20329 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
20330 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
20331 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
20332 done
20333 test -z "$LD" && LD="$ac_prog"
20334 ;;
20335 "")
20336 # If it fails, then pretend we aren't using GCC.
20337 ac_prog=ld
20338 ;;
20339 *)
20340 # If it is relative, then search for the first ld in PATH.
20341 with_gnu_ld=unknown
20342 ;;
20343 esac
20344 elif test "$with_gnu_ld" = yes; then
20345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
20346 printf %s "checking for GNU ld... " >&6; }
20347 else
20348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
20349 printf %s "checking for non-GNU ld... " >&6; }
20350 fi
20351 if test ${acl_cv_path_LD+y}
20352 then :
20353 printf %s "(cached) " >&6
20354 else $as_nop
20355 if test -z "$LD"; then
20356 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
20357 for ac_dir in $PATH; do
20358 IFS="$acl_save_ifs"
20359 test -z "$ac_dir" && ac_dir=.
20360 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20361 acl_cv_path_LD="$ac_dir/$ac_prog"
20362 # Check to see if the program is GNU ld. I'd rather use --version,
20363 # but apparently some variants of GNU ld only accept -v.
20364 # Break only if it was the GNU/non-GNU ld that we prefer.
20365 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
20366 *GNU* | *'with BFD'*)
20367 test "$with_gnu_ld" != no && break
20368 ;;
20369 *)
20370 test "$with_gnu_ld" != yes && break
20371 ;;
20372 esac
20373 fi
20374 done
20375 IFS="$acl_save_ifs"
20376 else
20377 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20378 fi
20379 fi
20380
20381 LD="$acl_cv_path_LD"
20382 if test -n "$LD"; then
20383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
20384 printf "%s\n" "$LD" >&6; }
20385 else
20386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20387 printf "%s\n" "no" >&6; }
20388 fi
20389 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
20390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
20391 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
20392 if test ${acl_cv_prog_gnu_ld+y}
20393 then :
20394 printf %s "(cached) " >&6
20395 else $as_nop
20396 # I'd rather use --version here, but apparently some GNU lds only accept -v.
20397 case `$LD -v 2>&1 </dev/null` in
20398 *GNU* | *'with BFD'*)
20399 acl_cv_prog_gnu_ld=yes
20400 ;;
20401 *)
20402 acl_cv_prog_gnu_ld=no
20403 ;;
20404 esac
20405 fi
20406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
20407 printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; }
20408 with_gnu_ld=$acl_cv_prog_gnu_ld
20409
20410
20411
20412
20413
20414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
20415 printf %s "checking for shared library run path origin... " >&6; }
20416 if test ${acl_cv_rpath+y}
20417 then :
20418 printf %s "(cached) " >&6
20419 else $as_nop
20420
20421 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20422 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20423 . ./conftest.sh
20424 rm -f ./conftest.sh
20425 acl_cv_rpath=done
20426
20427 fi
20428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
20429 printf "%s\n" "$acl_cv_rpath" >&6; }
20430 wl="$acl_cv_wl"
20431 acl_libext="$acl_cv_libext"
20432 acl_shlibext="$acl_cv_shlibext"
20433 acl_libname_spec="$acl_cv_libname_spec"
20434 acl_library_names_spec="$acl_cv_library_names_spec"
20435 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20436 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20437 acl_hardcode_direct="$acl_cv_hardcode_direct"
20438 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
20439 # Check whether --enable-rpath was given.
20440 if test ${enable_rpath+y}
20441 then :
20442 enableval=$enable_rpath; :
20443 else $as_nop
20444 enable_rpath=yes
20445 fi
20446
20447
20448
20449
20450 acl_libdirstem=lib
20451 acl_libdirstem2=
20452 case "$host_os" in
20453 solaris*)
20454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
20455 printf %s "checking for 64-bit host... " >&6; }
20456 if test ${gl_cv_solaris_64bit+y}
20457 then :
20458 printf %s "(cached) " >&6
20459 else $as_nop
20460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20461 /* end confdefs.h. */
20462
20463 #ifdef _LP64
20464 sixtyfour bits
20465 #endif
20466
20467 _ACEOF
20468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20469 $EGREP "sixtyfour bits" >/dev/null 2>&1
20470 then :
20471 gl_cv_solaris_64bit=yes
20472 else $as_nop
20473 gl_cv_solaris_64bit=no
20474 fi
20475 rm -rf conftest*
20476
20477
20478 fi
20479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
20480 printf "%s\n" "$gl_cv_solaris_64bit" >&6; }
20481 if test $gl_cv_solaris_64bit = yes; then
20482 acl_libdirstem=lib/64
20483 case "$host_cpu" in
20484 sparc*) acl_libdirstem2=lib/sparcv9 ;;
20485 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
20486 esac
20487 fi
20488 ;;
20489 *)
20490 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
20491 if test -n "$searchpath"; then
20492 acl_save_IFS="${IFS= }"; IFS=":"
20493 for searchdir in $searchpath; do
20494 if test -d "$searchdir"; then
20495 case "$searchdir" in
20496 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
20497 */../ | */.. )
20498 # Better ignore directories of this form. They are misleading.
20499 ;;
20500 *) searchdir=`cd "$searchdir" && pwd`
20501 case "$searchdir" in
20502 */lib64 ) acl_libdirstem=lib64 ;;
20503 esac ;;
20504 esac
20505 fi
20506 done
20507 IFS="$acl_save_IFS"
20508 fi
20509 ;;
20510 esac
20511 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
20512
20513
20514
20515
20516
20517
20518
20519
20520
20521
20522
20523
20524 use_additional=yes
20525
20526 acl_save_prefix="$prefix"
20527 prefix="$acl_final_prefix"
20528 acl_save_exec_prefix="$exec_prefix"
20529 exec_prefix="$acl_final_exec_prefix"
20530
20531 eval additional_includedir=\"$includedir\"
20532 eval additional_libdir=\"$libdir\"
20533
20534 exec_prefix="$acl_save_exec_prefix"
20535 prefix="$acl_save_prefix"
20536
20537
20538 # Check whether --with-libiconv-prefix was given.
20539 if test ${with_libiconv_prefix+y}
20540 then :
20541 withval=$with_libiconv_prefix;
20542 if test "X$withval" = "Xno"; then
20543 use_additional=no
20544 else
20545 if test "X$withval" = "X"; then
20546
20547 acl_save_prefix="$prefix"
20548 prefix="$acl_final_prefix"
20549 acl_save_exec_prefix="$exec_prefix"
20550 exec_prefix="$acl_final_exec_prefix"
20551
20552 eval additional_includedir=\"$includedir\"
20553 eval additional_libdir=\"$libdir\"
20554
20555 exec_prefix="$acl_save_exec_prefix"
20556 prefix="$acl_save_prefix"
20557
20558 else
20559 additional_includedir="$withval/include"
20560 additional_libdir="$withval/$acl_libdirstem"
20561 if test "$acl_libdirstem2" != "$acl_libdirstem" \
20562 && ! test -d "$withval/$acl_libdirstem"; then
20563 additional_libdir="$withval/$acl_libdirstem2"
20564 fi
20565 fi
20566 fi
20567
20568 fi
20569
20570 LIBICONV=
20571 LTLIBICONV=
20572 INCICONV=
20573 LIBICONV_PREFIX=
20574 HAVE_LIBICONV=
20575 rpathdirs=
20576 ltrpathdirs=
20577 names_already_handled=
20578 names_next_round='iconv '
20579 while test -n "$names_next_round"; do
20580 names_this_round="$names_next_round"
20581 names_next_round=
20582 for name in $names_this_round; do
20583 already_handled=
20584 for n in $names_already_handled; do
20585 if test "$n" = "$name"; then
20586 already_handled=yes
20587 break
20588 fi
20589 done
20590 if test -z "$already_handled"; then
20591 names_already_handled="$names_already_handled $name"
20592 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
20593 eval value=\"\$HAVE_LIB$uppername\"
20594 if test -n "$value"; then
20595 if test "$value" = yes; then
20596 eval value=\"\$LIB$uppername\"
20597 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
20598 eval value=\"\$LTLIB$uppername\"
20599 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
20600 else
20601 :
20602 fi
20603 else
20604 found_dir=
20605 found_la=
20606 found_so=
20607 found_a=
20608 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
20609 if test -n "$acl_shlibext"; then
20610 shrext=".$acl_shlibext" # typically: shrext=.so
20611 else
20612 shrext=
20613 fi
20614 if test $use_additional = yes; then
20615 dir="$additional_libdir"
20616 if test -n "$acl_shlibext"; then
20617 if test -f "$dir/$libname$shrext"; then
20618 found_dir="$dir"
20619 found_so="$dir/$libname$shrext"
20620 else
20621 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20622 ver=`(cd "$dir" && \
20623 for f in "$libname$shrext".*; do echo "$f"; done \
20624 | sed -e "s,^$libname$shrext\\\\.,," \
20625 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20626 | sed 1q ) 2>/dev/null`
20627 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20628 found_dir="$dir"
20629 found_so="$dir/$libname$shrext.$ver"
20630 fi
20631 else
20632 eval library_names=\"$acl_library_names_spec\"
20633 for f in $library_names; do
20634 if test -f "$dir/$f"; then
20635 found_dir="$dir"
20636 found_so="$dir/$f"
20637 break
20638 fi
20639 done
20640 fi
20641 fi
20642 fi
20643 if test "X$found_dir" = "X"; then
20644 if test -f "$dir/$libname.$acl_libext"; then
20645 found_dir="$dir"
20646 found_a="$dir/$libname.$acl_libext"
20647 fi
20648 fi
20649 if test "X$found_dir" != "X"; then
20650 if test -f "$dir/$libname.la"; then
20651 found_la="$dir/$libname.la"
20652 fi
20653 fi
20654 fi
20655 if test "X$found_dir" = "X"; then
20656 for x in $LDFLAGS $LTLIBICONV; do
20657
20658 acl_save_prefix="$prefix"
20659 prefix="$acl_final_prefix"
20660 acl_save_exec_prefix="$exec_prefix"
20661 exec_prefix="$acl_final_exec_prefix"
20662 eval x=\"$x\"
20663 exec_prefix="$acl_save_exec_prefix"
20664 prefix="$acl_save_prefix"
20665
20666 case "$x" in
20667 -L*)
20668 dir=`echo "X$x" | sed -e 's/^X-L//'`
20669 if test -n "$acl_shlibext"; then
20670 if test -f "$dir/$libname$shrext"; then
20671 found_dir="$dir"
20672 found_so="$dir/$libname$shrext"
20673 else
20674 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
20675 ver=`(cd "$dir" && \
20676 for f in "$libname$shrext".*; do echo "$f"; done \
20677 | sed -e "s,^$libname$shrext\\\\.,," \
20678 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
20679 | sed 1q ) 2>/dev/null`
20680 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
20681 found_dir="$dir"
20682 found_so="$dir/$libname$shrext.$ver"
20683 fi
20684 else
20685 eval library_names=\"$acl_library_names_spec\"
20686 for f in $library_names; do
20687 if test -f "$dir/$f"; then
20688 found_dir="$dir"
20689 found_so="$dir/$f"
20690 break
20691 fi
20692 done
20693 fi
20694 fi
20695 fi
20696 if test "X$found_dir" = "X"; then
20697 if test -f "$dir/$libname.$acl_libext"; then
20698 found_dir="$dir"
20699 found_a="$dir/$libname.$acl_libext"
20700 fi
20701 fi
20702 if test "X$found_dir" != "X"; then
20703 if test -f "$dir/$libname.la"; then
20704 found_la="$dir/$libname.la"
20705 fi
20706 fi
20707 ;;
20708 esac
20709 if test "X$found_dir" != "X"; then
20710 break
20711 fi
20712 done
20713 fi
20714 if test "X$found_dir" != "X"; then
20715 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
20716 if test "X$found_so" != "X"; then
20717 if test "$enable_rpath" = no \
20718 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
20719 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
20720 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20721 else
20722 haveit=
20723 for x in $ltrpathdirs; do
20724 if test "X$x" = "X$found_dir"; then
20725 haveit=yes
20726 break
20727 fi
20728 done
20729 if test -z "$haveit"; then
20730 ltrpathdirs="$ltrpathdirs $found_dir"
20731 fi
20732 if test "$acl_hardcode_direct" = yes; then
20733 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20734 else
20735 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
20736 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20737 haveit=
20738 for x in $rpathdirs; do
20739 if test "X$x" = "X$found_dir"; then
20740 haveit=yes
20741 break
20742 fi
20743 done
20744 if test -z "$haveit"; then
20745 rpathdirs="$rpathdirs $found_dir"
20746 fi
20747 else
20748 haveit=
20749 for x in $LDFLAGS $LIBICONV; do
20750
20751 acl_save_prefix="$prefix"
20752 prefix="$acl_final_prefix"
20753 acl_save_exec_prefix="$exec_prefix"
20754 exec_prefix="$acl_final_exec_prefix"
20755 eval x=\"$x\"
20756 exec_prefix="$acl_save_exec_prefix"
20757 prefix="$acl_save_prefix"
20758
20759 if test "X$x" = "X-L$found_dir"; then
20760 haveit=yes
20761 break
20762 fi
20763 done
20764 if test -z "$haveit"; then
20765 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
20766 fi
20767 if test "$acl_hardcode_minus_L" != no; then
20768 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
20769 else
20770 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20771 fi
20772 fi
20773 fi
20774 fi
20775 else
20776 if test "X$found_a" != "X"; then
20777 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
20778 else
20779 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
20780 fi
20781 fi
20782 additional_includedir=
20783 case "$found_dir" in
20784 */$acl_libdirstem | */$acl_libdirstem/)
20785 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
20786 if test "$name" = 'iconv'; then
20787 LIBICONV_PREFIX="$basedir"
20788 fi
20789 additional_includedir="$basedir/include"
20790 ;;
20791 */$acl_libdirstem2 | */$acl_libdirstem2/)
20792 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
20793 if test "$name" = 'iconv'; then
20794 LIBICONV_PREFIX="$basedir"
20795 fi
20796 additional_includedir="$basedir/include"
20797 ;;
20798 esac
20799 if test "X$additional_includedir" != "X"; then
20800 if test "X$additional_includedir" != "X/usr/include"; then
20801 haveit=
20802 if test "X$additional_includedir" = "X/usr/local/include"; then
20803 if test -n "$GCC"; then
20804 case $host_os in
20805 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20806 esac
20807 fi
20808 fi
20809 if test -z "$haveit"; then
20810 for x in $CPPFLAGS $INCICONV; do
20811
20812 acl_save_prefix="$prefix"
20813 prefix="$acl_final_prefix"
20814 acl_save_exec_prefix="$exec_prefix"
20815 exec_prefix="$acl_final_exec_prefix"
20816 eval x=\"$x\"
20817 exec_prefix="$acl_save_exec_prefix"
20818 prefix="$acl_save_prefix"
20819
20820 if test "X$x" = "X-I$additional_includedir"; then
20821 haveit=yes
20822 break
20823 fi
20824 done
20825 if test -z "$haveit"; then
20826 if test -d "$additional_includedir"; then
20827 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
20828 fi
20829 fi
20830 fi
20831 fi
20832 fi
20833 if test -n "$found_la"; then
20834 save_libdir="$libdir"
20835 case "$found_la" in
20836 */* | *\\*) . "$found_la" ;;
20837 *) . "./$found_la" ;;
20838 esac
20839 libdir="$save_libdir"
20840 for dep in $dependency_libs; do
20841 case "$dep" in
20842 -L*)
20843 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
20844 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
20845 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
20846 haveit=
20847 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
20848 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
20849 if test -n "$GCC"; then
20850 case $host_os in
20851 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
20852 esac
20853 fi
20854 fi
20855 if test -z "$haveit"; then
20856 haveit=
20857 for x in $LDFLAGS $LIBICONV; do
20858
20859 acl_save_prefix="$prefix"
20860 prefix="$acl_final_prefix"
20861 acl_save_exec_prefix="$exec_prefix"
20862 exec_prefix="$acl_final_exec_prefix"
20863 eval x=\"$x\"
20864 exec_prefix="$acl_save_exec_prefix"
20865 prefix="$acl_save_prefix"
20866
20867 if test "X$x" = "X-L$additional_libdir"; then
20868 haveit=yes
20869 break
20870 fi
20871 done
20872 if test -z "$haveit"; then
20873 if test -d "$additional_libdir"; then
20874 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
20875 fi
20876 fi
20877 haveit=
20878 for x in $LDFLAGS $LTLIBICONV; do
20879
20880 acl_save_prefix="$prefix"
20881 prefix="$acl_final_prefix"
20882 acl_save_exec_prefix="$exec_prefix"
20883 exec_prefix="$acl_final_exec_prefix"
20884 eval x=\"$x\"
20885 exec_prefix="$acl_save_exec_prefix"
20886 prefix="$acl_save_prefix"
20887
20888 if test "X$x" = "X-L$additional_libdir"; then
20889 haveit=yes
20890 break
20891 fi
20892 done
20893 if test -z "$haveit"; then
20894 if test -d "$additional_libdir"; then
20895 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
20896 fi
20897 fi
20898 fi
20899 fi
20900 ;;
20901 -R*)
20902 dir=`echo "X$dep" | sed -e 's/^X-R//'`
20903 if test "$enable_rpath" != no; then
20904 haveit=
20905 for x in $rpathdirs; do
20906 if test "X$x" = "X$dir"; then
20907 haveit=yes
20908 break
20909 fi
20910 done
20911 if test -z "$haveit"; then
20912 rpathdirs="$rpathdirs $dir"
20913 fi
20914 haveit=
20915 for x in $ltrpathdirs; do
20916 if test "X$x" = "X$dir"; then
20917 haveit=yes
20918 break
20919 fi
20920 done
20921 if test -z "$haveit"; then
20922 ltrpathdirs="$ltrpathdirs $dir"
20923 fi
20924 fi
20925 ;;
20926 -l*)
20927 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
20928 ;;
20929 *.la)
20930 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
20931 ;;
20932 *)
20933 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
20934 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
20935 ;;
20936 esac
20937 done
20938 fi
20939 else
20940 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
20941 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
20942 fi
20943 fi
20944 fi
20945 done
20946 done
20947 if test "X$rpathdirs" != "X"; then
20948 if test -n "$acl_hardcode_libdir_separator"; then
20949 alldirs=
20950 for found_dir in $rpathdirs; do
20951 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
20952 done
20953 acl_save_libdir="$libdir"
20954 libdir="$alldirs"
20955 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20956 libdir="$acl_save_libdir"
20957 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20958 else
20959 for found_dir in $rpathdirs; do
20960 acl_save_libdir="$libdir"
20961 libdir="$found_dir"
20962 eval flag=\"$acl_hardcode_libdir_flag_spec\"
20963 libdir="$acl_save_libdir"
20964 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
20965 done
20966 fi
20967 fi
20968 if test "X$ltrpathdirs" != "X"; then
20969 for found_dir in $ltrpathdirs; do
20970 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
20971 done
20972 fi
20973
20974
20975
20976
20977
20978
20979
20980
20981
20982
20983
20984
20985 am_save_CPPFLAGS="$CPPFLAGS"
20986
20987 for element in $INCICONV; do
20988 haveit=
20989 for x in $CPPFLAGS; do
20990
20991 acl_save_prefix="$prefix"
20992 prefix="$acl_final_prefix"
20993 acl_save_exec_prefix="$exec_prefix"
20994 exec_prefix="$acl_final_exec_prefix"
20995 eval x=\"$x\"
20996 exec_prefix="$acl_save_exec_prefix"
20997 prefix="$acl_save_prefix"
20998
20999 if test "X$x" = "X$element"; then
21000 haveit=yes
21001 break
21002 fi
21003 done
21004 if test -z "$haveit"; then
21005 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21006 fi
21007 done
21008
21009
21010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21011 printf %s "checking for iconv... " >&6; }
21012 if test ${am_cv_func_iconv+y}
21013 then :
21014 printf %s "(cached) " >&6
21015 else $as_nop
21016
21017 am_cv_func_iconv="no, consider installing GNU libiconv"
21018 am_cv_lib_iconv=no
21019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21020 /* end confdefs.h. */
21021
21022 #include <stdlib.h>
21023 #include <iconv.h>
21024
21025 int
21026 main (void)
21027 {
21028 iconv_t cd = iconv_open("","");
21029 iconv(cd,NULL,NULL,NULL,NULL);
21030 iconv_close(cd);
21031 ;
21032 return 0;
21033 }
21034 _ACEOF
21035 if ac_fn_c_try_link "$LINENO"
21036 then :
21037 am_cv_func_iconv=yes
21038 fi
21039 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21040 conftest$ac_exeext conftest.$ac_ext
21041 if test "$am_cv_func_iconv" != yes; then
21042 am_save_LIBS="$LIBS"
21043 LIBS="$LIBS $LIBICONV"
21044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21045 /* end confdefs.h. */
21046
21047 #include <stdlib.h>
21048 #include <iconv.h>
21049
21050 int
21051 main (void)
21052 {
21053 iconv_t cd = iconv_open("","");
21054 iconv(cd,NULL,NULL,NULL,NULL);
21055 iconv_close(cd);
21056 ;
21057 return 0;
21058 }
21059 _ACEOF
21060 if ac_fn_c_try_link "$LINENO"
21061 then :
21062 am_cv_lib_iconv=yes
21063 am_cv_func_iconv=yes
21064 fi
21065 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21066 conftest$ac_exeext conftest.$ac_ext
21067 LIBS="$am_save_LIBS"
21068 fi
21069
21070 fi
21071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21072 printf "%s\n" "$am_cv_func_iconv" >&6; }
21073 if test "$am_cv_func_iconv" = yes; then
21074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
21075 printf %s "checking for working iconv... " >&6; }
21076 if test ${am_cv_func_iconv_works+y}
21077 then :
21078 printf %s "(cached) " >&6
21079 else $as_nop
21080
21081 am_save_LIBS="$LIBS"
21082 if test $am_cv_lib_iconv = yes; then
21083 LIBS="$LIBS $LIBICONV"
21084 fi
21085 if test "$cross_compiling" = yes
21086 then :
21087
21088 case "$host_os" in
21089 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
21090 *) am_cv_func_iconv_works="guessing yes" ;;
21091 esac
21092
21093 else $as_nop
21094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21095 /* end confdefs.h. */
21096
21097 #include <iconv.h>
21098 #include <string.h>
21099 int main ()
21100 {
21101 int result = 0;
21102 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
21103 returns. */
21104 {
21105 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
21106 if (cd_utf8_to_88591 != (iconv_t)(-1))
21107 {
21108 static const char input[] = "\342\202\254"; /* EURO SIGN */
21109 char buf[10];
21110 const char *inptr = input;
21111 size_t inbytesleft = strlen (input);
21112 char *outptr = buf;
21113 size_t outbytesleft = sizeof (buf);
21114 size_t res = iconv (cd_utf8_to_88591,
21115 (char **) &inptr, &inbytesleft,
21116 &outptr, &outbytesleft);
21117 if (res == 0)
21118 result |= 1;
21119 iconv_close (cd_utf8_to_88591);
21120 }
21121 }
21122 /* Test against Solaris 10 bug: Failures are not distinguishable from
21123 successful returns. */
21124 {
21125 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
21126 if (cd_ascii_to_88591 != (iconv_t)(-1))
21127 {
21128 static const char input[] = "\263";
21129 char buf[10];
21130 const char *inptr = input;
21131 size_t inbytesleft = strlen (input);
21132 char *outptr = buf;
21133 size_t outbytesleft = sizeof (buf);
21134 size_t res = iconv (cd_ascii_to_88591,
21135 (char **) &inptr, &inbytesleft,
21136 &outptr, &outbytesleft);
21137 if (res == 0)
21138 result |= 2;
21139 iconv_close (cd_ascii_to_88591);
21140 }
21141 }
21142 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
21143 {
21144 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
21145 if (cd_88591_to_utf8 != (iconv_t)(-1))
21146 {
21147 static const char input[] = "\304";
21148 static char buf[2] = { (char)0xDE, (char)0xAD };
21149 const char *inptr = input;
21150 size_t inbytesleft = 1;
21151 char *outptr = buf;
21152 size_t outbytesleft = 1;
21153 size_t res = iconv (cd_88591_to_utf8,
21154 (char **) &inptr, &inbytesleft,
21155 &outptr, &outbytesleft);
21156 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
21157 result |= 4;
21158 iconv_close (cd_88591_to_utf8);
21159 }
21160 }
21161 #if 0 /* This bug could be worked around by the caller. */
21162 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
21163 {
21164 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
21165 if (cd_88591_to_utf8 != (iconv_t)(-1))
21166 {
21167 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
21168 char buf[50];
21169 const char *inptr = input;
21170 size_t inbytesleft = strlen (input);
21171 char *outptr = buf;
21172 size_t outbytesleft = sizeof (buf);
21173 size_t res = iconv (cd_88591_to_utf8,
21174 (char **) &inptr, &inbytesleft,
21175 &outptr, &outbytesleft);
21176 if ((int)res > 0)
21177 result |= 8;
21178 iconv_close (cd_88591_to_utf8);
21179 }
21180 }
21181 #endif
21182 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
21183 provided. */
21184 if (/* Try standardized names. */
21185 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
21186 /* Try IRIX, OSF/1 names. */
21187 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
21188 /* Try AIX names. */
21189 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
21190 /* Try HP-UX names. */
21191 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
21192 result |= 16;
21193 return result;
21194 }
21195 _ACEOF
21196 if ac_fn_c_try_run "$LINENO"
21197 then :
21198 am_cv_func_iconv_works=yes
21199 else $as_nop
21200 am_cv_func_iconv_works=no
21201 fi
21202 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21203 conftest.$ac_objext conftest.beam conftest.$ac_ext
21204 fi
21205
21206 LIBS="$am_save_LIBS"
21207
21208 fi
21209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
21210 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
21211 case "$am_cv_func_iconv_works" in
21212 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
21213 *) am_func_iconv=yes ;;
21214 esac
21215 else
21216 am_func_iconv=no am_cv_lib_iconv=no
21217 fi
21218 if test "$am_func_iconv" = yes; then
21219
21220 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
21221
21222 fi
21223 if test "$am_cv_lib_iconv" = yes; then
21224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
21225 printf %s "checking how to link with libiconv... " >&6; }
21226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
21227 printf "%s\n" "$LIBICONV" >&6; }
21228 else
21229 CPPFLAGS="$am_save_CPPFLAGS"
21230 LIBICONV=
21231 LTLIBICONV=
21232 fi
21233
21234
21235
21236 if test "$am_cv_func_iconv" = yes; then
21237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
21238 printf %s "checking for iconv declaration... " >&6; }
21239 if test ${am_cv_proto_iconv+y}
21240 then :
21241 printf %s "(cached) " >&6
21242 else $as_nop
21243
21244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21245 /* end confdefs.h. */
21246
21247 #include <stdlib.h>
21248 #include <iconv.h>
21249 extern
21250 #ifdef __cplusplus
21251 "C"
21252 #endif
21253 #if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus)
21254 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
21255 #else
21256 size_t iconv();
21257 #endif
21258
21259 int
21260 main (void)
21261 {
21262
21263 ;
21264 return 0;
21265 }
21266 _ACEOF
21267 if ac_fn_c_try_compile "$LINENO"
21268 then :
21269 am_cv_proto_iconv_arg1=""
21270 else $as_nop
21271 am_cv_proto_iconv_arg1="const"
21272 fi
21273 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21274 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
21275 fi
21276
21277 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
21278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result:
21279 $am_cv_proto_iconv" >&5
21280 printf "%s\n" "
21281 $am_cv_proto_iconv" >&6; }
21282
21283 printf "%s\n" "#define ICONV_CONST $am_cv_proto_iconv_arg1" >>confdefs.h
21284
21285
21286 fi
21287
21288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
21289 printf %s "checking for a sed that does not truncate output... " >&6; }
21290 if test ${ac_cv_path_SED+y}
21291 then :
21292 printf %s "(cached) " >&6
21293 else $as_nop
21294 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
21295 for ac_i in 1 2 3 4 5 6 7; do
21296 ac_script="$ac_script$as_nl$ac_script"
21297 done
21298 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
21299 { ac_script=; unset ac_script;}
21300 if test -z "$SED"; then
21301 ac_path_SED_found=false
21302 # Loop through the user's path and test for each of PROGNAME-LIST
21303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21304 for as_dir in $PATH
21305 do
21306 IFS=$as_save_IFS
21307 case $as_dir in #(((
21308 '') as_dir=./ ;;
21309 */) ;;
21310 *) as_dir=$as_dir/ ;;
21311 esac
21312 for ac_prog in sed gsed
21313 do
21314 for ac_exec_ext in '' $ac_executable_extensions; do
21315 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
21316 as_fn_executable_p "$ac_path_SED" || continue
21317 # Check for GNU ac_path_SED and select it if it is found.
21318 # Check for GNU $ac_path_SED
21319 case `"$ac_path_SED" --version 2>&1` in
21320 *GNU*)
21321 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
21322 *)
21323 ac_count=0
21324 printf %s 0123456789 >"conftest.in"
21325 while :
21326 do
21327 cat "conftest.in" "conftest.in" >"conftest.tmp"
21328 mv "conftest.tmp" "conftest.in"
21329 cp "conftest.in" "conftest.nl"
21330 printf "%s\n" '' >> "conftest.nl"
21331 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
21332 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
21333 as_fn_arith $ac_count + 1 && ac_count=$as_val
21334 if test $ac_count -gt ${ac_path_SED_max-0}; then
21335 # Best one so far, save it but keep looking for a better one
21336 ac_cv_path_SED="$ac_path_SED"
21337 ac_path_SED_max=$ac_count
21338 fi
21339 # 10*(2^10) chars as input seems more than enough
21340 test $ac_count -gt 10 && break
21341 done
21342 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
21343 esac
21344
21345 $ac_path_SED_found && break 3
21346 done
21347 done
21348 done
21349 IFS=$as_save_IFS
21350 if test -z "$ac_cv_path_SED"; then
21351 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
21352 fi
21353 else
21354 ac_cv_path_SED=$SED
21355 fi
21356
21357 fi
21358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
21359 printf "%s\n" "$ac_cv_path_SED" >&6; }
21360 SED="$ac_cv_path_SED"
21361 rm -f conftest.sed
21362
21363
21364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
21365 printf %s "checking whether NLS is requested... " >&6; }
21366 # Check whether --enable-nls was given.
21367 if test ${enable_nls+y}
21368 then :
21369 enableval=$enable_nls; USE_NLS=$enableval
21370 else $as_nop
21371 USE_NLS=yes
21372 fi
21373
21374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
21375 printf "%s\n" "$USE_NLS" >&6; }
21376
21377
21378
21379
21380 GETTEXT_MACRO_VERSION=0.19
21381
21382
21383
21384
21385 # Prepare PATH_SEPARATOR.
21386 # The user is always right.
21387 if test "${PATH_SEPARATOR+set}" != set; then
21388 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
21389 # contains only /bin. Note that ksh looks also at the FPATH variable,
21390 # so we have to set that as well for the test.
21391 PATH_SEPARATOR=:
21392 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21393 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21394 || PATH_SEPARATOR=';'
21395 }
21396 fi
21397
21398 # Find out how to test for executable files. Don't use a zero-byte file,
21399 # as systems may use methods other than mode bits to determine executability.
21400 cat >conf$$.file <<_ASEOF
21401 #! /bin/sh
21402 exit 0
21403 _ASEOF
21404 chmod +x conf$$.file
21405 if test -x conf$$.file >/dev/null 2>&1; then
21406 ac_executable_p="test -x"
21407 else
21408 ac_executable_p="test -f"
21409 fi
21410 rm -f conf$$.file
21411
21412 # Extract the first word of "msgfmt", so it can be a program name with args.
21413 set dummy msgfmt; ac_word=$2
21414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21415 printf %s "checking for $ac_word... " >&6; }
21416 if test ${ac_cv_path_MSGFMT+y}
21417 then :
21418 printf %s "(cached) " >&6
21419 else $as_nop
21420 case "$MSGFMT" in
21421 [\\/]* | ?:[\\/]*)
21422 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
21423 ;;
21424 *)
21425 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21426 for ac_dir in $PATH; do
21427 IFS="$ac_save_IFS"
21428 test -z "$ac_dir" && ac_dir=.
21429 for ac_exec_ext in '' $ac_executable_extensions; do
21430 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21431 echo "$as_me: trying $ac_dir/$ac_word..." >&5
21432 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
21433 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21434 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
21435 break 2
21436 fi
21437 fi
21438 done
21439 done
21440 IFS="$ac_save_IFS"
21441 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
21442 ;;
21443 esac
21444 fi
21445 MSGFMT="$ac_cv_path_MSGFMT"
21446 if test "$MSGFMT" != ":"; then
21447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
21448 printf "%s\n" "$MSGFMT" >&6; }
21449 else
21450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21451 printf "%s\n" "no" >&6; }
21452 fi
21453
21454 # Extract the first word of "gmsgfmt", so it can be a program name with args.
21455 set dummy gmsgfmt; ac_word=$2
21456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21457 printf %s "checking for $ac_word... " >&6; }
21458 if test ${ac_cv_path_GMSGFMT+y}
21459 then :
21460 printf %s "(cached) " >&6
21461 else $as_nop
21462 case $GMSGFMT in
21463 [\\/]* | ?:[\\/]*)
21464 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
21465 ;;
21466 *)
21467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21468 for as_dir in $PATH
21469 do
21470 IFS=$as_save_IFS
21471 case $as_dir in #(((
21472 '') as_dir=./ ;;
21473 */) ;;
21474 *) as_dir=$as_dir/ ;;
21475 esac
21476 for ac_exec_ext in '' $ac_executable_extensions; do
21477 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21478 ac_cv_path_GMSGFMT="$as_dir$ac_word$ac_exec_ext"
21479 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21480 break 2
21481 fi
21482 done
21483 done
21484 IFS=$as_save_IFS
21485
21486 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
21487 ;;
21488 esac
21489 fi
21490 GMSGFMT=$ac_cv_path_GMSGFMT
21491 if test -n "$GMSGFMT"; then
21492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
21493 printf "%s\n" "$GMSGFMT" >&6; }
21494 else
21495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21496 printf "%s\n" "no" >&6; }
21497 fi
21498
21499
21500
21501 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21502 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
21503 *) MSGFMT_015=$MSGFMT ;;
21504 esac
21505
21506 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21507 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
21508 *) GMSGFMT_015=$GMSGFMT ;;
21509 esac
21510
21511
21512
21513 # Prepare PATH_SEPARATOR.
21514 # The user is always right.
21515 if test "${PATH_SEPARATOR+set}" != set; then
21516 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
21517 # contains only /bin. Note that ksh looks also at the FPATH variable,
21518 # so we have to set that as well for the test.
21519 PATH_SEPARATOR=:
21520 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21521 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21522 || PATH_SEPARATOR=';'
21523 }
21524 fi
21525
21526 # Find out how to test for executable files. Don't use a zero-byte file,
21527 # as systems may use methods other than mode bits to determine executability.
21528 cat >conf$$.file <<_ASEOF
21529 #! /bin/sh
21530 exit 0
21531 _ASEOF
21532 chmod +x conf$$.file
21533 if test -x conf$$.file >/dev/null 2>&1; then
21534 ac_executable_p="test -x"
21535 else
21536 ac_executable_p="test -f"
21537 fi
21538 rm -f conf$$.file
21539
21540 # Extract the first word of "xgettext", so it can be a program name with args.
21541 set dummy xgettext; ac_word=$2
21542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21543 printf %s "checking for $ac_word... " >&6; }
21544 if test ${ac_cv_path_XGETTEXT+y}
21545 then :
21546 printf %s "(cached) " >&6
21547 else $as_nop
21548 case "$XGETTEXT" in
21549 [\\/]* | ?:[\\/]*)
21550 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
21551 ;;
21552 *)
21553 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21554 for ac_dir in $PATH; do
21555 IFS="$ac_save_IFS"
21556 test -z "$ac_dir" && ac_dir=.
21557 for ac_exec_ext in '' $ac_executable_extensions; do
21558 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21559 echo "$as_me: trying $ac_dir/$ac_word..." >&5
21560 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
21561 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
21562 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
21563 break 2
21564 fi
21565 fi
21566 done
21567 done
21568 IFS="$ac_save_IFS"
21569 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
21570 ;;
21571 esac
21572 fi
21573 XGETTEXT="$ac_cv_path_XGETTEXT"
21574 if test "$XGETTEXT" != ":"; then
21575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
21576 printf "%s\n" "$XGETTEXT" >&6; }
21577 else
21578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21579 printf "%s\n" "no" >&6; }
21580 fi
21581
21582 rm -f messages.po
21583
21584 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
21585 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
21586 *) XGETTEXT_015=$XGETTEXT ;;
21587 esac
21588
21589
21590
21591 # Prepare PATH_SEPARATOR.
21592 # The user is always right.
21593 if test "${PATH_SEPARATOR+set}" != set; then
21594 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
21595 # contains only /bin. Note that ksh looks also at the FPATH variable,
21596 # so we have to set that as well for the test.
21597 PATH_SEPARATOR=:
21598 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21599 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
21600 || PATH_SEPARATOR=';'
21601 }
21602 fi
21603
21604 # Find out how to test for executable files. Don't use a zero-byte file,
21605 # as systems may use methods other than mode bits to determine executability.
21606 cat >conf$$.file <<_ASEOF
21607 #! /bin/sh
21608 exit 0
21609 _ASEOF
21610 chmod +x conf$$.file
21611 if test -x conf$$.file >/dev/null 2>&1; then
21612 ac_executable_p="test -x"
21613 else
21614 ac_executable_p="test -f"
21615 fi
21616 rm -f conf$$.file
21617
21618 # Extract the first word of "msgmerge", so it can be a program name with args.
21619 set dummy msgmerge; ac_word=$2
21620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21621 printf %s "checking for $ac_word... " >&6; }
21622 if test ${ac_cv_path_MSGMERGE+y}
21623 then :
21624 printf %s "(cached) " >&6
21625 else $as_nop
21626 case "$MSGMERGE" in
21627 [\\/]* | ?:[\\/]*)
21628 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
21629 ;;
21630 *)
21631 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
21632 for ac_dir in $PATH; do
21633 IFS="$ac_save_IFS"
21634 test -z "$ac_dir" && ac_dir=.
21635 for ac_exec_ext in '' $ac_executable_extensions; do
21636 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
21637 echo "$as_me: trying $ac_dir/$ac_word..." >&5
21638 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
21639 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
21640 break 2
21641 fi
21642 fi
21643 done
21644 done
21645 IFS="$ac_save_IFS"
21646 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
21647 ;;
21648 esac
21649 fi
21650 MSGMERGE="$ac_cv_path_MSGMERGE"
21651 if test "$MSGMERGE" != ":"; then
21652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
21653 printf "%s\n" "$MSGMERGE" >&6; }
21654 else
21655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21656 printf "%s\n" "no" >&6; }
21657 fi
21658
21659
21660 test -n "$localedir" || localedir='${datadir}/locale'
21661
21662
21663 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
21664
21665
21666 ac_config_commands="$ac_config_commands po-directories"
21667
21668
21669
21670
21671
21672
21673
21674
21675
21676
21677
21678
21679
21680
21681
21682
21683
21684
21685
21686
21687
21688
21689
21690
21691
21692
21693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
21694 printf %s "checking for CFPreferencesCopyAppValue... " >&6; }
21695 if test ${gt_cv_func_CFPreferencesCopyAppValue+y}
21696 then :
21697 printf %s "(cached) " >&6
21698 else $as_nop
21699 gt_save_LIBS="$LIBS"
21700 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21702 /* end confdefs.h. */
21703 #include <CoreFoundation/CFPreferences.h>
21704 int
21705 main (void)
21706 {
21707 CFPreferencesCopyAppValue(NULL, NULL)
21708 ;
21709 return 0;
21710 }
21711 _ACEOF
21712 if ac_fn_c_try_link "$LINENO"
21713 then :
21714 gt_cv_func_CFPreferencesCopyAppValue=yes
21715 else $as_nop
21716 gt_cv_func_CFPreferencesCopyAppValue=no
21717 fi
21718 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21719 conftest$ac_exeext conftest.$ac_ext
21720 LIBS="$gt_save_LIBS"
21721 fi
21722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
21723 printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
21724 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
21725
21726 printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
21727
21728 fi
21729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
21730 printf %s "checking for CFLocaleCopyCurrent... " >&6; }
21731 if test ${gt_cv_func_CFLocaleCopyCurrent+y}
21732 then :
21733 printf %s "(cached) " >&6
21734 else $as_nop
21735 gt_save_LIBS="$LIBS"
21736 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
21737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21738 /* end confdefs.h. */
21739 #include <CoreFoundation/CFLocale.h>
21740 int
21741 main (void)
21742 {
21743 CFLocaleCopyCurrent();
21744 ;
21745 return 0;
21746 }
21747 _ACEOF
21748 if ac_fn_c_try_link "$LINENO"
21749 then :
21750 gt_cv_func_CFLocaleCopyCurrent=yes
21751 else $as_nop
21752 gt_cv_func_CFLocaleCopyCurrent=no
21753 fi
21754 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21755 conftest$ac_exeext conftest.$ac_ext
21756 LIBS="$gt_save_LIBS"
21757 fi
21758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
21759 printf "%s\n" "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
21760 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21761
21762 printf "%s\n" "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
21763
21764 fi
21765 INTL_MACOSX_LIBS=
21766 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
21767 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
21768 fi
21769
21770
21771
21772
21773
21774
21775 LIBINTL=
21776 LTLIBINTL=
21777 POSUB=
21778
21779 case " $gt_needs " in
21780 *" need-formatstring-macros "*) gt_api_version=3 ;;
21781 *" need-ngettext "*) gt_api_version=2 ;;
21782 *) gt_api_version=1 ;;
21783 esac
21784 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
21785 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
21786
21787 if test "$USE_NLS" = "yes"; then
21788 gt_use_preinstalled_gnugettext=no
21789
21790
21791 if test $gt_api_version -ge 3; then
21792 gt_revision_test_code='
21793 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
21794 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
21795 #endif
21796 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
21797 '
21798 else
21799 gt_revision_test_code=
21800 fi
21801 if test $gt_api_version -ge 2; then
21802 gt_expression_test_code=' + * ngettext ("", "", 0)'
21803 else
21804 gt_expression_test_code=
21805 fi
21806
21807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
21808 printf %s "checking for GNU gettext in libc... " >&6; }
21809 if eval test \${$gt_func_gnugettext_libc+y}
21810 then :
21811 printf %s "(cached) " >&6
21812 else $as_nop
21813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21814 /* end confdefs.h. */
21815
21816 #include <libintl.h>
21817 $gt_revision_test_code
21818 extern int _nl_msg_cat_cntr;
21819 extern int *_nl_domain_bindings;
21820
21821 int
21822 main (void)
21823 {
21824
21825 bindtextdomain ("", "");
21826 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
21827
21828 ;
21829 return 0;
21830 }
21831 _ACEOF
21832 if ac_fn_c_try_link "$LINENO"
21833 then :
21834 eval "$gt_func_gnugettext_libc=yes"
21835 else $as_nop
21836 eval "$gt_func_gnugettext_libc=no"
21837 fi
21838 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21839 conftest$ac_exeext conftest.$ac_ext
21840 fi
21841 eval ac_res=\$$gt_func_gnugettext_libc
21842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21843 printf "%s\n" "$ac_res" >&6; }
21844
21845 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
21846
21847
21848
21849
21850
21851 am_save_CPPFLAGS="$CPPFLAGS"
21852
21853 for element in $INCICONV; do
21854 haveit=
21855 for x in $CPPFLAGS; do
21856
21857 acl_save_prefix="$prefix"
21858 prefix="$acl_final_prefix"
21859 acl_save_exec_prefix="$exec_prefix"
21860 exec_prefix="$acl_final_exec_prefix"
21861 eval x=\"$x\"
21862 exec_prefix="$acl_save_exec_prefix"
21863 prefix="$acl_save_prefix"
21864
21865 if test "X$x" = "X$element"; then
21866 haveit=yes
21867 break
21868 fi
21869 done
21870 if test -z "$haveit"; then
21871 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
21872 fi
21873 done
21874
21875
21876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
21877 printf %s "checking for iconv... " >&6; }
21878 if test ${am_cv_func_iconv+y}
21879 then :
21880 printf %s "(cached) " >&6
21881 else $as_nop
21882
21883 am_cv_func_iconv="no, consider installing GNU libiconv"
21884 am_cv_lib_iconv=no
21885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21886 /* end confdefs.h. */
21887
21888 #include <stdlib.h>
21889 #include <iconv.h>
21890
21891 int
21892 main (void)
21893 {
21894 iconv_t cd = iconv_open("","");
21895 iconv(cd,NULL,NULL,NULL,NULL);
21896 iconv_close(cd);
21897 ;
21898 return 0;
21899 }
21900 _ACEOF
21901 if ac_fn_c_try_link "$LINENO"
21902 then :
21903 am_cv_func_iconv=yes
21904 fi
21905 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21906 conftest$ac_exeext conftest.$ac_ext
21907 if test "$am_cv_func_iconv" != yes; then
21908 am_save_LIBS="$LIBS"
21909 LIBS="$LIBS $LIBICONV"
21910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21911 /* end confdefs.h. */
21912
21913 #include <stdlib.h>
21914 #include <iconv.h>
21915
21916 int
21917 main (void)
21918 {
21919 iconv_t cd = iconv_open("","");
21920 iconv(cd,NULL,NULL,NULL,NULL);
21921 iconv_close(cd);
21922 ;
21923 return 0;
21924 }
21925 _ACEOF
21926 if ac_fn_c_try_link "$LINENO"
21927 then :
21928 am_cv_lib_iconv=yes
21929 am_cv_func_iconv=yes
21930 fi
21931 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21932 conftest$ac_exeext conftest.$ac_ext
21933 LIBS="$am_save_LIBS"
21934 fi
21935
21936 fi
21937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
21938 printf "%s\n" "$am_cv_func_iconv" >&6; }
21939 if test "$am_cv_func_iconv" = yes; then
21940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
21941 printf %s "checking for working iconv... " >&6; }
21942 if test ${am_cv_func_iconv_works+y}
21943 then :
21944 printf %s "(cached) " >&6
21945 else $as_nop
21946
21947 am_save_LIBS="$LIBS"
21948 if test $am_cv_lib_iconv = yes; then
21949 LIBS="$LIBS $LIBICONV"
21950 fi
21951 if test "$cross_compiling" = yes
21952 then :
21953
21954 case "$host_os" in
21955 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
21956 *) am_cv_func_iconv_works="guessing yes" ;;
21957 esac
21958
21959 else $as_nop
21960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21961 /* end confdefs.h. */
21962
21963 #include <iconv.h>
21964 #include <string.h>
21965 int main ()
21966 {
21967 int result = 0;
21968 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
21969 returns. */
21970 {
21971 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
21972 if (cd_utf8_to_88591 != (iconv_t)(-1))
21973 {
21974 static const char input[] = "\342\202\254"; /* EURO SIGN */
21975 char buf[10];
21976 const char *inptr = input;
21977 size_t inbytesleft = strlen (input);
21978 char *outptr = buf;
21979 size_t outbytesleft = sizeof (buf);
21980 size_t res = iconv (cd_utf8_to_88591,
21981 (char **) &inptr, &inbytesleft,
21982 &outptr, &outbytesleft);
21983 if (res == 0)
21984 result |= 1;
21985 iconv_close (cd_utf8_to_88591);
21986 }
21987 }
21988 /* Test against Solaris 10 bug: Failures are not distinguishable from
21989 successful returns. */
21990 {
21991 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
21992 if (cd_ascii_to_88591 != (iconv_t)(-1))
21993 {
21994 static const char input[] = "\263";
21995 char buf[10];
21996 const char *inptr = input;
21997 size_t inbytesleft = strlen (input);
21998 char *outptr = buf;
21999 size_t outbytesleft = sizeof (buf);
22000 size_t res = iconv (cd_ascii_to_88591,
22001 (char **) &inptr, &inbytesleft,
22002 &outptr, &outbytesleft);
22003 if (res == 0)
22004 result |= 2;
22005 iconv_close (cd_ascii_to_88591);
22006 }
22007 }
22008 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
22009 {
22010 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
22011 if (cd_88591_to_utf8 != (iconv_t)(-1))
22012 {
22013 static const char input[] = "\304";
22014 static char buf[2] = { (char)0xDE, (char)0xAD };
22015 const char *inptr = input;
22016 size_t inbytesleft = 1;
22017 char *outptr = buf;
22018 size_t outbytesleft = 1;
22019 size_t res = iconv (cd_88591_to_utf8,
22020 (char **) &inptr, &inbytesleft,
22021 &outptr, &outbytesleft);
22022 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
22023 result |= 4;
22024 iconv_close (cd_88591_to_utf8);
22025 }
22026 }
22027 #if 0 /* This bug could be worked around by the caller. */
22028 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
22029 {
22030 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
22031 if (cd_88591_to_utf8 != (iconv_t)(-1))
22032 {
22033 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
22034 char buf[50];
22035 const char *inptr = input;
22036 size_t inbytesleft = strlen (input);
22037 char *outptr = buf;
22038 size_t outbytesleft = sizeof (buf);
22039 size_t res = iconv (cd_88591_to_utf8,
22040 (char **) &inptr, &inbytesleft,
22041 &outptr, &outbytesleft);
22042 if ((int)res > 0)
22043 result |= 8;
22044 iconv_close (cd_88591_to_utf8);
22045 }
22046 }
22047 #endif
22048 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
22049 provided. */
22050 if (/* Try standardized names. */
22051 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
22052 /* Try IRIX, OSF/1 names. */
22053 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
22054 /* Try AIX names. */
22055 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
22056 /* Try HP-UX names. */
22057 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
22058 result |= 16;
22059 return result;
22060 }
22061 _ACEOF
22062 if ac_fn_c_try_run "$LINENO"
22063 then :
22064 am_cv_func_iconv_works=yes
22065 else $as_nop
22066 am_cv_func_iconv_works=no
22067 fi
22068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22069 conftest.$ac_objext conftest.beam conftest.$ac_ext
22070 fi
22071
22072 LIBS="$am_save_LIBS"
22073
22074 fi
22075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
22076 printf "%s\n" "$am_cv_func_iconv_works" >&6; }
22077 case "$am_cv_func_iconv_works" in
22078 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
22079 *) am_func_iconv=yes ;;
22080 esac
22081 else
22082 am_func_iconv=no am_cv_lib_iconv=no
22083 fi
22084 if test "$am_func_iconv" = yes; then
22085
22086 printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h
22087
22088 fi
22089 if test "$am_cv_lib_iconv" = yes; then
22090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
22091 printf %s "checking how to link with libiconv... " >&6; }
22092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
22093 printf "%s\n" "$LIBICONV" >&6; }
22094 else
22095 CPPFLAGS="$am_save_CPPFLAGS"
22096 LIBICONV=
22097 LTLIBICONV=
22098 fi
22099
22100
22101
22102
22103
22104
22105
22106
22107
22108
22109
22110 use_additional=yes
22111
22112 acl_save_prefix="$prefix"
22113 prefix="$acl_final_prefix"
22114 acl_save_exec_prefix="$exec_prefix"
22115 exec_prefix="$acl_final_exec_prefix"
22116
22117 eval additional_includedir=\"$includedir\"
22118 eval additional_libdir=\"$libdir\"
22119
22120 exec_prefix="$acl_save_exec_prefix"
22121 prefix="$acl_save_prefix"
22122
22123
22124 # Check whether --with-libintl-prefix was given.
22125 if test ${with_libintl_prefix+y}
22126 then :
22127 withval=$with_libintl_prefix;
22128 if test "X$withval" = "Xno"; then
22129 use_additional=no
22130 else
22131 if test "X$withval" = "X"; then
22132
22133 acl_save_prefix="$prefix"
22134 prefix="$acl_final_prefix"
22135 acl_save_exec_prefix="$exec_prefix"
22136 exec_prefix="$acl_final_exec_prefix"
22137
22138 eval additional_includedir=\"$includedir\"
22139 eval additional_libdir=\"$libdir\"
22140
22141 exec_prefix="$acl_save_exec_prefix"
22142 prefix="$acl_save_prefix"
22143
22144 else
22145 additional_includedir="$withval/include"
22146 additional_libdir="$withval/$acl_libdirstem"
22147 if test "$acl_libdirstem2" != "$acl_libdirstem" \
22148 && ! test -d "$withval/$acl_libdirstem"; then
22149 additional_libdir="$withval/$acl_libdirstem2"
22150 fi
22151 fi
22152 fi
22153
22154 fi
22155
22156 LIBINTL=
22157 LTLIBINTL=
22158 INCINTL=
22159 LIBINTL_PREFIX=
22160 HAVE_LIBINTL=
22161 rpathdirs=
22162 ltrpathdirs=
22163 names_already_handled=
22164 names_next_round='intl '
22165 while test -n "$names_next_round"; do
22166 names_this_round="$names_next_round"
22167 names_next_round=
22168 for name in $names_this_round; do
22169 already_handled=
22170 for n in $names_already_handled; do
22171 if test "$n" = "$name"; then
22172 already_handled=yes
22173 break
22174 fi
22175 done
22176 if test -z "$already_handled"; then
22177 names_already_handled="$names_already_handled $name"
22178 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
22179 eval value=\"\$HAVE_LIB$uppername\"
22180 if test -n "$value"; then
22181 if test "$value" = yes; then
22182 eval value=\"\$LIB$uppername\"
22183 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
22184 eval value=\"\$LTLIB$uppername\"
22185 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
22186 else
22187 :
22188 fi
22189 else
22190 found_dir=
22191 found_la=
22192 found_so=
22193 found_a=
22194 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
22195 if test -n "$acl_shlibext"; then
22196 shrext=".$acl_shlibext" # typically: shrext=.so
22197 else
22198 shrext=
22199 fi
22200 if test $use_additional = yes; then
22201 dir="$additional_libdir"
22202 if test -n "$acl_shlibext"; then
22203 if test -f "$dir/$libname$shrext"; then
22204 found_dir="$dir"
22205 found_so="$dir/$libname$shrext"
22206 else
22207 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22208 ver=`(cd "$dir" && \
22209 for f in "$libname$shrext".*; do echo "$f"; done \
22210 | sed -e "s,^$libname$shrext\\\\.,," \
22211 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22212 | sed 1q ) 2>/dev/null`
22213 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22214 found_dir="$dir"
22215 found_so="$dir/$libname$shrext.$ver"
22216 fi
22217 else
22218 eval library_names=\"$acl_library_names_spec\"
22219 for f in $library_names; do
22220 if test -f "$dir/$f"; then
22221 found_dir="$dir"
22222 found_so="$dir/$f"
22223 break
22224 fi
22225 done
22226 fi
22227 fi
22228 fi
22229 if test "X$found_dir" = "X"; then
22230 if test -f "$dir/$libname.$acl_libext"; then
22231 found_dir="$dir"
22232 found_a="$dir/$libname.$acl_libext"
22233 fi
22234 fi
22235 if test "X$found_dir" != "X"; then
22236 if test -f "$dir/$libname.la"; then
22237 found_la="$dir/$libname.la"
22238 fi
22239 fi
22240 fi
22241 if test "X$found_dir" = "X"; then
22242 for x in $LDFLAGS $LTLIBINTL; do
22243
22244 acl_save_prefix="$prefix"
22245 prefix="$acl_final_prefix"
22246 acl_save_exec_prefix="$exec_prefix"
22247 exec_prefix="$acl_final_exec_prefix"
22248 eval x=\"$x\"
22249 exec_prefix="$acl_save_exec_prefix"
22250 prefix="$acl_save_prefix"
22251
22252 case "$x" in
22253 -L*)
22254 dir=`echo "X$x" | sed -e 's/^X-L//'`
22255 if test -n "$acl_shlibext"; then
22256 if test -f "$dir/$libname$shrext"; then
22257 found_dir="$dir"
22258 found_so="$dir/$libname$shrext"
22259 else
22260 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
22261 ver=`(cd "$dir" && \
22262 for f in "$libname$shrext".*; do echo "$f"; done \
22263 | sed -e "s,^$libname$shrext\\\\.,," \
22264 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
22265 | sed 1q ) 2>/dev/null`
22266 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
22267 found_dir="$dir"
22268 found_so="$dir/$libname$shrext.$ver"
22269 fi
22270 else
22271 eval library_names=\"$acl_library_names_spec\"
22272 for f in $library_names; do
22273 if test -f "$dir/$f"; then
22274 found_dir="$dir"
22275 found_so="$dir/$f"
22276 break
22277 fi
22278 done
22279 fi
22280 fi
22281 fi
22282 if test "X$found_dir" = "X"; then
22283 if test -f "$dir/$libname.$acl_libext"; then
22284 found_dir="$dir"
22285 found_a="$dir/$libname.$acl_libext"
22286 fi
22287 fi
22288 if test "X$found_dir" != "X"; then
22289 if test -f "$dir/$libname.la"; then
22290 found_la="$dir/$libname.la"
22291 fi
22292 fi
22293 ;;
22294 esac
22295 if test "X$found_dir" != "X"; then
22296 break
22297 fi
22298 done
22299 fi
22300 if test "X$found_dir" != "X"; then
22301 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
22302 if test "X$found_so" != "X"; then
22303 if test "$enable_rpath" = no \
22304 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
22305 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
22306 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22307 else
22308 haveit=
22309 for x in $ltrpathdirs; do
22310 if test "X$x" = "X$found_dir"; then
22311 haveit=yes
22312 break
22313 fi
22314 done
22315 if test -z "$haveit"; then
22316 ltrpathdirs="$ltrpathdirs $found_dir"
22317 fi
22318 if test "$acl_hardcode_direct" = yes; then
22319 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22320 else
22321 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
22322 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22323 haveit=
22324 for x in $rpathdirs; do
22325 if test "X$x" = "X$found_dir"; then
22326 haveit=yes
22327 break
22328 fi
22329 done
22330 if test -z "$haveit"; then
22331 rpathdirs="$rpathdirs $found_dir"
22332 fi
22333 else
22334 haveit=
22335 for x in $LDFLAGS $LIBINTL; do
22336
22337 acl_save_prefix="$prefix"
22338 prefix="$acl_final_prefix"
22339 acl_save_exec_prefix="$exec_prefix"
22340 exec_prefix="$acl_final_exec_prefix"
22341 eval x=\"$x\"
22342 exec_prefix="$acl_save_exec_prefix"
22343 prefix="$acl_save_prefix"
22344
22345 if test "X$x" = "X-L$found_dir"; then
22346 haveit=yes
22347 break
22348 fi
22349 done
22350 if test -z "$haveit"; then
22351 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
22352 fi
22353 if test "$acl_hardcode_minus_L" != no; then
22354 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
22355 else
22356 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22357 fi
22358 fi
22359 fi
22360 fi
22361 else
22362 if test "X$found_a" != "X"; then
22363 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
22364 else
22365 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
22366 fi
22367 fi
22368 additional_includedir=
22369 case "$found_dir" in
22370 */$acl_libdirstem | */$acl_libdirstem/)
22371 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
22372 if test "$name" = 'intl'; then
22373 LIBINTL_PREFIX="$basedir"
22374 fi
22375 additional_includedir="$basedir/include"
22376 ;;
22377 */$acl_libdirstem2 | */$acl_libdirstem2/)
22378 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
22379 if test "$name" = 'intl'; then
22380 LIBINTL_PREFIX="$basedir"
22381 fi
22382 additional_includedir="$basedir/include"
22383 ;;
22384 esac
22385 if test "X$additional_includedir" != "X"; then
22386 if test "X$additional_includedir" != "X/usr/include"; then
22387 haveit=
22388 if test "X$additional_includedir" = "X/usr/local/include"; then
22389 if test -n "$GCC"; then
22390 case $host_os in
22391 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22392 esac
22393 fi
22394 fi
22395 if test -z "$haveit"; then
22396 for x in $CPPFLAGS $INCINTL; do
22397
22398 acl_save_prefix="$prefix"
22399 prefix="$acl_final_prefix"
22400 acl_save_exec_prefix="$exec_prefix"
22401 exec_prefix="$acl_final_exec_prefix"
22402 eval x=\"$x\"
22403 exec_prefix="$acl_save_exec_prefix"
22404 prefix="$acl_save_prefix"
22405
22406 if test "X$x" = "X-I$additional_includedir"; then
22407 haveit=yes
22408 break
22409 fi
22410 done
22411 if test -z "$haveit"; then
22412 if test -d "$additional_includedir"; then
22413 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
22414 fi
22415 fi
22416 fi
22417 fi
22418 fi
22419 if test -n "$found_la"; then
22420 save_libdir="$libdir"
22421 case "$found_la" in
22422 */* | *\\*) . "$found_la" ;;
22423 *) . "./$found_la" ;;
22424 esac
22425 libdir="$save_libdir"
22426 for dep in $dependency_libs; do
22427 case "$dep" in
22428 -L*)
22429 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
22430 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
22431 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
22432 haveit=
22433 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
22434 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
22435 if test -n "$GCC"; then
22436 case $host_os in
22437 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
22438 esac
22439 fi
22440 fi
22441 if test -z "$haveit"; then
22442 haveit=
22443 for x in $LDFLAGS $LIBINTL; do
22444
22445 acl_save_prefix="$prefix"
22446 prefix="$acl_final_prefix"
22447 acl_save_exec_prefix="$exec_prefix"
22448 exec_prefix="$acl_final_exec_prefix"
22449 eval x=\"$x\"
22450 exec_prefix="$acl_save_exec_prefix"
22451 prefix="$acl_save_prefix"
22452
22453 if test "X$x" = "X-L$additional_libdir"; then
22454 haveit=yes
22455 break
22456 fi
22457 done
22458 if test -z "$haveit"; then
22459 if test -d "$additional_libdir"; then
22460 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
22461 fi
22462 fi
22463 haveit=
22464 for x in $LDFLAGS $LTLIBINTL; do
22465
22466 acl_save_prefix="$prefix"
22467 prefix="$acl_final_prefix"
22468 acl_save_exec_prefix="$exec_prefix"
22469 exec_prefix="$acl_final_exec_prefix"
22470 eval x=\"$x\"
22471 exec_prefix="$acl_save_exec_prefix"
22472 prefix="$acl_save_prefix"
22473
22474 if test "X$x" = "X-L$additional_libdir"; then
22475 haveit=yes
22476 break
22477 fi
22478 done
22479 if test -z "$haveit"; then
22480 if test -d "$additional_libdir"; then
22481 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
22482 fi
22483 fi
22484 fi
22485 fi
22486 ;;
22487 -R*)
22488 dir=`echo "X$dep" | sed -e 's/^X-R//'`
22489 if test "$enable_rpath" != no; then
22490 haveit=
22491 for x in $rpathdirs; do
22492 if test "X$x" = "X$dir"; then
22493 haveit=yes
22494 break
22495 fi
22496 done
22497 if test -z "$haveit"; then
22498 rpathdirs="$rpathdirs $dir"
22499 fi
22500 haveit=
22501 for x in $ltrpathdirs; do
22502 if test "X$x" = "X$dir"; then
22503 haveit=yes
22504 break
22505 fi
22506 done
22507 if test -z "$haveit"; then
22508 ltrpathdirs="$ltrpathdirs $dir"
22509 fi
22510 fi
22511 ;;
22512 -l*)
22513 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
22514 ;;
22515 *.la)
22516 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
22517 ;;
22518 *)
22519 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
22520 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
22521 ;;
22522 esac
22523 done
22524 fi
22525 else
22526 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
22527 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
22528 fi
22529 fi
22530 fi
22531 done
22532 done
22533 if test "X$rpathdirs" != "X"; then
22534 if test -n "$acl_hardcode_libdir_separator"; then
22535 alldirs=
22536 for found_dir in $rpathdirs; do
22537 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
22538 done
22539 acl_save_libdir="$libdir"
22540 libdir="$alldirs"
22541 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22542 libdir="$acl_save_libdir"
22543 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22544 else
22545 for found_dir in $rpathdirs; do
22546 acl_save_libdir="$libdir"
22547 libdir="$found_dir"
22548 eval flag=\"$acl_hardcode_libdir_flag_spec\"
22549 libdir="$acl_save_libdir"
22550 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
22551 done
22552 fi
22553 fi
22554 if test "X$ltrpathdirs" != "X"; then
22555 for found_dir in $ltrpathdirs; do
22556 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
22557 done
22558 fi
22559
22560
22561
22562
22563
22564
22565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
22566 printf %s "checking for GNU gettext in libintl... " >&6; }
22567 if eval test \${$gt_func_gnugettext_libintl+y}
22568 then :
22569 printf %s "(cached) " >&6
22570 else $as_nop
22571 gt_save_CPPFLAGS="$CPPFLAGS"
22572 CPPFLAGS="$CPPFLAGS $INCINTL"
22573 gt_save_LIBS="$LIBS"
22574 LIBS="$LIBS $LIBINTL"
22575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22576 /* end confdefs.h. */
22577
22578 #include <libintl.h>
22579 $gt_revision_test_code
22580 extern int _nl_msg_cat_cntr;
22581 extern
22582 #ifdef __cplusplus
22583 "C"
22584 #endif
22585 const char *_nl_expand_alias (const char *);
22586
22587 int
22588 main (void)
22589 {
22590
22591 bindtextdomain ("", "");
22592 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
22593
22594 ;
22595 return 0;
22596 }
22597 _ACEOF
22598 if ac_fn_c_try_link "$LINENO"
22599 then :
22600 eval "$gt_func_gnugettext_libintl=yes"
22601 else $as_nop
22602 eval "$gt_func_gnugettext_libintl=no"
22603 fi
22604 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22605 conftest$ac_exeext conftest.$ac_ext
22606 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
22607 LIBS="$LIBS $LIBICONV"
22608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22609 /* end confdefs.h. */
22610
22611 #include <libintl.h>
22612 $gt_revision_test_code
22613 extern int _nl_msg_cat_cntr;
22614 extern
22615 #ifdef __cplusplus
22616 "C"
22617 #endif
22618 const char *_nl_expand_alias (const char *);
22619
22620 int
22621 main (void)
22622 {
22623
22624 bindtextdomain ("", "");
22625 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
22626
22627 ;
22628 return 0;
22629 }
22630 _ACEOF
22631 if ac_fn_c_try_link "$LINENO"
22632 then :
22633 LIBINTL="$LIBINTL $LIBICONV"
22634 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
22635 eval "$gt_func_gnugettext_libintl=yes"
22636
22637 fi
22638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22639 conftest$ac_exeext conftest.$ac_ext
22640 fi
22641 CPPFLAGS="$gt_save_CPPFLAGS"
22642 LIBS="$gt_save_LIBS"
22643 fi
22644 eval ac_res=\$$gt_func_gnugettext_libintl
22645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22646 printf "%s\n" "$ac_res" >&6; }
22647 fi
22648
22649 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
22650 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
22651 && test "$PACKAGE" != gettext-runtime \
22652 && test "$PACKAGE" != gettext-tools; }; then
22653 gt_use_preinstalled_gnugettext=yes
22654 else
22655 LIBINTL=
22656 LTLIBINTL=
22657 INCINTL=
22658 fi
22659
22660
22661
22662 if test -n "$INTL_MACOSX_LIBS"; then
22663 if test "$gt_use_preinstalled_gnugettext" = "yes" \
22664 || test "$nls_cv_use_gnu_gettext" = "yes"; then
22665 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
22666 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
22667 fi
22668 fi
22669
22670 if test "$gt_use_preinstalled_gnugettext" = "yes" \
22671 || test "$nls_cv_use_gnu_gettext" = "yes"; then
22672
22673 printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h
22674
22675 else
22676 USE_NLS=no
22677 fi
22678 fi
22679
22680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
22681 printf %s "checking whether to use NLS... " >&6; }
22682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
22683 printf "%s\n" "$USE_NLS" >&6; }
22684 if test "$USE_NLS" = "yes"; then
22685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
22686 printf %s "checking where the gettext function comes from... " >&6; }
22687 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22688 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
22689 gt_source="external libintl"
22690 else
22691 gt_source="libc"
22692 fi
22693 else
22694 gt_source="included intl directory"
22695 fi
22696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
22697 printf "%s\n" "$gt_source" >&6; }
22698 fi
22699
22700 if test "$USE_NLS" = "yes"; then
22701
22702 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
22703 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
22704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
22705 printf %s "checking how to link with libintl... " >&6; }
22706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
22707 printf "%s\n" "$LIBINTL" >&6; }
22708
22709 for element in $INCINTL; do
22710 haveit=
22711 for x in $CPPFLAGS; do
22712
22713 acl_save_prefix="$prefix"
22714 prefix="$acl_final_prefix"
22715 acl_save_exec_prefix="$exec_prefix"
22716 exec_prefix="$acl_final_exec_prefix"
22717 eval x=\"$x\"
22718 exec_prefix="$acl_save_exec_prefix"
22719 prefix="$acl_save_prefix"
22720
22721 if test "X$x" = "X$element"; then
22722 haveit=yes
22723 break
22724 fi
22725 done
22726 if test -z "$haveit"; then
22727 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
22728 fi
22729 done
22730
22731 fi
22732
22733
22734 printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h
22735
22736
22737 printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h
22738
22739 fi
22740
22741 POSUB=po
22742 fi
22743
22744
22745
22746 INTLLIBS="$LIBINTL"
22747
22748
22749
22750
22751
22752
22753
22754
22755
22756
22757 IMPRIMATUR_MODULE_DIR=doc/imprimatur
22758
22759
22760
22761
22762 # Doc hints.
22763 # Select a rendition level:
22764 # DISTRIB for stable releases (at most one dot in the version number)
22765 # and maintenance releases (two dots, patchlevel < 50)
22766 # PROOF for alpha releases.
22767 # PUBLISH can only be required manually when running make in doc/
22768 case `echo $VERSION|sed 's/[^.]//g'` in
22769 ""|".") RENDITION=DISTRIB;;
22770 "..") if test `echo $VERSION | sed 's/.*\.//'` -lt 50; then
22771 RENDITION=DISTRIB
22772 else
22773 RENDITION=PROOF
22774 fi;;
22775 *) RENDITION=PROOF;;
22776 esac
22777
22778 IMPRIMATUR_MAKEINFOFLAGS='-I $(top_srcdir)/doc/imprimatur -D $(RENDITION)'
22779
22780 if false; then
22781 IMPRIMATUR_COND_MAKEDOC_TRUE=
22782 IMPRIMATUR_COND_MAKEDOC_FALSE='#'
22783 else
22784 IMPRIMATUR_COND_MAKEDOC_TRUE='#'
22785 IMPRIMATUR_COND_MAKEDOC_FALSE=
22786 fi
22787
22788 if false; then
22789 IMPRIMATUR_COND_FRENCHSPACING_TRUE=
22790 IMPRIMATUR_COND_FRENCHSPACING_FALSE='#'
22791 else
22792 IMPRIMATUR_COND_FRENCHSPACING_TRUE='#'
22793 IMPRIMATUR_COND_FRENCHSPACING_FALSE=
22794 fi
22795
22796 if false; then
22797 IMPRIMATUR_COND_DIST_INFO_TRUE=
22798 IMPRIMATUR_COND_DIST_INFO_FALSE='#'
22799 else
22800 IMPRIMATUR_COND_DIST_INFO_TRUE='#'
22801 IMPRIMATUR_COND_DIST_INFO_FALSE=
22802 fi
22803
22804 ac_config_files="$ac_config_files doc/imprimatur/Makefile"
22805
22806 if test -z "$IMPRIMATUR_COND_MAKEDOC_TRUE"; then :
22807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add doc/imprimatur/Makedoc to your config files" >&5
22808 printf "%s\n" "$as_me: Add doc/imprimatur/Makedoc to your config files" >&6;}
22809 fi
22810
22811
22812
22813
22814 ### Initialize the test suite.
22815 ac_config_commands="$ac_config_commands tests/atconfig"
22816
22817 ac_config_files="$ac_config_files tests/Makefile tests/atlocal"
22818
22819
22820 AUTOM4TE=${AUTOM4TE-"${am_missing_run}autom4te"}
22821
22822
22823 ac_config_files="$ac_config_files Makefile gnu/Makefile src/Makefile elisp/Makefile po/Makefile.in doc/Makefile"
22824
22825 cat >confcache <<\_ACEOF
22826 # This file is a shell script that caches the results of configure
22827 # tests run on this system so they can be shared between configure
22828 # scripts and configure runs, see configure's option --config-cache.
22829 # It is not useful on other systems. If it contains results you don't
22830 # want to keep, you may remove or edit it.
22831 #
22832 # config.status only pays attention to the cache file if you give it
22833 # the --recheck option to rerun configure.
22834 #
22835 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22836 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22837 # following values.
22838
22839 _ACEOF
22840
22841 # The following way of writing the cache mishandles newlines in values,
22842 # but we know of no workaround that is simple, portable, and efficient.
22843 # So, we kill variables containing newlines.
22844 # Ultrix sh set writes to stderr and can't be redirected directly,
22845 # and sets the high bit in the cache file unless we assign to the vars.
22846 (
22847 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22848 eval ac_val=\$$ac_var
22849 case $ac_val in #(
22850 *${as_nl}*)
22851 case $ac_var in #(
22852 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22853 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22854 esac
22855 case $ac_var in #(
22856 _ | IFS | as_nl) ;; #(
22857 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22858 *) { eval $ac_var=; unset $ac_var;} ;;
22859 esac ;;
22860 esac
22861 done
22862
22863 (set) 2>&1 |
22864 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22865 *${as_nl}ac_space=\ *)
22866 # `set' does not quote correctly, so add quotes: double-quote
22867 # substitution turns \\\\ into \\, and sed turns \\ into \.
22868 sed -n \
22869 "s/'/'\\\\''/g;
22870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22871 ;; #(
22872 *)
22873 # `set' quotes correctly as required by POSIX, so do not add quotes.
22874 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22875 ;;
22876 esac |
22877 sort
22878 ) |
22879 sed '
22880 /^ac_cv_env_/b end
22881 t clear
22882 :clear
22883 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
22884 t end
22885 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22886 :end' >>confcache
22887 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22888 if test -w "$cache_file"; then
22889 if test "x$cache_file" != "x/dev/null"; then
22890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22891 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
22892 if test ! -f "$cache_file" || test -h "$cache_file"; then
22893 cat confcache >"$cache_file"
22894 else
22895 case $cache_file in #(
22896 */* | ?:*)
22897 mv -f confcache "$cache_file"$$ &&
22898 mv -f "$cache_file"$$ "$cache_file" ;; #(
22899 *)
22900 mv -f confcache "$cache_file" ;;
22901 esac
22902 fi
22903 fi
22904 else
22905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22906 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
22907 fi
22908 fi
22909 rm -f confcache
22910
22911 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22912 # Let make expand exec_prefix.
22913 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22914
22915 DEFS=-DHAVE_CONFIG_H
22916
22917 ac_libobjs=
22918 ac_ltlibobjs=
22919 U=
22920 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22921 # 1. Remove the extension, and $U if already installed.
22922 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22923 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
22924 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22925 # will be set to the directory where LIBOBJS objects are built.
22926 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22927 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22928 done
22929 LIBOBJS=$ac_libobjs
22930
22931 LTLIBOBJS=$ac_ltlibobjs
22932
22933
22934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22935 printf %s "checking that generated files are newer than configure... " >&6; }
22936 if test -n "$am_sleep_pid"; then
22937 # Hide warnings about reused PIDs.
22938 wait $am_sleep_pid 2>/dev/null
22939 fi
22940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
22941 printf "%s\n" "done" >&6; }
22942 if test -n "$EXEEXT"; then
22943 am__EXEEXT_TRUE=
22944 am__EXEEXT_FALSE='#'
22945 else
22946 am__EXEEXT_TRUE='#'
22947 am__EXEEXT_FALSE=
22948 fi
22949
22950 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22951 as_fn_error $? "conditional \"AMDEP\" was never defined.
22952 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22953 fi
22954 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22955 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22956 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22957 fi
22958 # Check whether --enable-year2038 was given.
22959 if test ${enable_year2038+y}
22960 then :
22961 enableval=$enable_year2038;
22962 fi
22963
22964 if test -z "${GL_COND_LIBTOOL_TRUE}" && test -z "${GL_COND_LIBTOOL_FALSE}"; then
22965 as_fn_error $? "conditional \"GL_COND_LIBTOOL\" was never defined.
22966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22967 fi
22968
22969
22970 gl_libobjs=
22971 gl_ltlibobjs=
22972 gl_libobjdeps=
22973 if test -n "$gl_LIBOBJS"; then
22974 # Remove the extension.
22975 sed_drop_objext='s/\.o$//;s/\.obj$//'
22976 sed_dirname1='s,//*,/,g'
22977 sed_dirname2='s,\(.\)/$,\1,'
22978 sed_dirname3='s,^[^/]*$,.,'
22979 sed_dirname4='s,\(.\)/[^/]*$,\1,'
22980 sed_basename1='s,.*/,,'
22981 for i in `for i in $gl_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
22982 gl_libobjs="$gl_libobjs $i.$ac_objext"
22983 gl_ltlibobjs="$gl_ltlibobjs $i.lo"
22984 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
22985 i_base=`echo "$i" | sed -e "$sed_basename1"`
22986 gl_libobjdeps="$gl_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
22987 done
22988 fi
22989 gl_LIBOBJS=$gl_libobjs
22990
22991 gl_LTLIBOBJS=$gl_ltlibobjs
22992
22993 gl_LIBOBJDEPS=$gl_libobjdeps
22994
22995
22996
22997 gltests_libobjs=
22998 gltests_ltlibobjs=
22999 gltests_libobjdeps=
23000 if test -n "$gltests_LIBOBJS"; then
23001 # Remove the extension.
23002 sed_drop_objext='s/\.o$//;s/\.obj$//'
23003 sed_dirname1='s,//*,/,g'
23004 sed_dirname2='s,\(.\)/$,\1,'
23005 sed_dirname3='s,^[^/]*$,.,'
23006 sed_dirname4='s,\(.\)/[^/]*$,\1,'
23007 sed_basename1='s,.*/,,'
23008 for i in `for i in $gltests_LIBOBJS; do echo "$i"; done | sed -e "$sed_drop_objext" | sort | uniq`; do
23009 gltests_libobjs="$gltests_libobjs $i.$ac_objext"
23010 gltests_ltlibobjs="$gltests_ltlibobjs $i.lo"
23011 i_dir=`echo "$i" | sed -e "$sed_dirname1" -e "$sed_dirname2" -e "$sed_dirname3" -e "$sed_dirname4"`
23012 i_base=`echo "$i" | sed -e "$sed_basename1"`
23013 gltests_libobjdeps="$gltests_libobjdeps $i_dir/\$(DEPDIR)/$i_base.Po"
23014 done
23015 fi
23016 gltests_LIBOBJS=$gltests_libobjs
23017
23018 gltests_LTLIBOBJS=$gltests_ltlibobjs
23019
23020 gltests_LIBOBJDEPS=$gltests_libobjdeps
23021
23022
23023 if test -z "${IMPRIMATUR_COND_MAKEDOC_TRUE}" && test -z "${IMPRIMATUR_COND_MAKEDOC_FALSE}"; then
23024 as_fn_error $? "conditional \"IMPRIMATUR_COND_MAKEDOC\" was never defined.
23025 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23026 fi
23027 if test -z "${IMPRIMATUR_COND_FRENCHSPACING_TRUE}" && test -z "${IMPRIMATUR_COND_FRENCHSPACING_FALSE}"; then
23028 as_fn_error $? "conditional \"IMPRIMATUR_COND_FRENCHSPACING\" was never defined.
23029 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23030 fi
23031 if test -z "${IMPRIMATUR_COND_DIST_INFO_TRUE}" && test -z "${IMPRIMATUR_COND_DIST_INFO_FALSE}"; then
23032 as_fn_error $? "conditional \"IMPRIMATUR_COND_DIST_INFO\" was never defined.
23033 Usually this means the macro was only invoked conditionally." "$LINENO" 5
23034 fi
23035
23036 : "${CONFIG_STATUS=./config.status}"
23037 ac_write_fail=0
23038 ac_clean_files_save=$ac_clean_files
23039 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
23041 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
23042 as_write_fail=0
23043 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
23044 #! $SHELL
23045 # Generated by $as_me.
23046 # Run this file to recreate the current configuration.
23047 # Compiler output produced by configure, useful for debugging
23048 # configure, is in config.log if it exists.
23049
23050 debug=false
23051 ac_cs_recheck=false
23052 ac_cs_silent=false
23053
23054 SHELL=\${CONFIG_SHELL-$SHELL}
23055 export SHELL
23056 _ASEOF
23057 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
23058 ## -------------------- ##
23059 ## M4sh Initialization. ##
23060 ## -------------------- ##
23061
23062 # Be more Bourne compatible
23063 DUALCASE=1; export DUALCASE # for MKS sh
23064 as_nop=:
23065 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
23066 then :
23067 emulate sh
23068 NULLCMD=:
23069 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23070 # is contrary to our usage. Disable this feature.
23071 alias -g '${1+"$@"}'='"$@"'
23072 setopt NO_GLOB_SUBST
23073 else $as_nop
23074 case `(set -o) 2>/dev/null` in #(
23075 *posix*) :
23076 set -o posix ;; #(
23077 *) :
23078 ;;
23079 esac
23080 fi
23081
23082
23083
23084 # Reset variables that may have inherited troublesome values from
23085 # the environment.
23086
23087 # IFS needs to be set, to space, tab, and newline, in precisely that order.
23088 # (If _AS_PATH_WALK were called with IFS unset, it would have the
23089 # side effect of setting IFS to empty, thus disabling word splitting.)
23090 # Quoting is to prevent editors from complaining about space-tab.
23091 as_nl='
23092 '
23093 export as_nl
23094 IFS=" "" $as_nl"
23095
23096 PS1='$ '
23097 PS2='> '
23098 PS4='+ '
23099
23100 # Ensure predictable behavior from utilities with locale-dependent output.
23101 LC_ALL=C
23102 export LC_ALL
23103 LANGUAGE=C
23104 export LANGUAGE
23105
23106 # We cannot yet rely on "unset" to work, but we need these variables
23107 # to be unset--not just set to an empty or harmless value--now, to
23108 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
23109 # also avoids known problems related to "unset" and subshell syntax
23110 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
23111 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
23112 do eval test \${$as_var+y} \
23113 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
23114 done
23115
23116 # Ensure that fds 0, 1, and 2 are open.
23117 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
23118 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
23119 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
23120
23121 # The user is always right.
23122 if ${PATH_SEPARATOR+false} :; then
23123 PATH_SEPARATOR=:
23124 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
23125 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
23126 PATH_SEPARATOR=';'
23127 }
23128 fi
23129
23130
23131 # Find who we are. Look in the path if we contain no directory separator.
23132 as_myself=
23133 case $0 in #((
23134 *[\\/]* ) as_myself=$0 ;;
23135 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23136 for as_dir in $PATH
23137 do
23138 IFS=$as_save_IFS
23139 case $as_dir in #(((
23140 '') as_dir=./ ;;
23141 */) ;;
23142 *) as_dir=$as_dir/ ;;
23143 esac
23144 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
23145 done
23146 IFS=$as_save_IFS
23147
23148 ;;
23149 esac
23150 # We did not find ourselves, most probably we were run as `sh COMMAND'
23151 # in which case we are not to be found in the path.
23152 if test "x$as_myself" = x; then
23153 as_myself=$0
23154 fi
23155 if test ! -f "$as_myself"; then
23156 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23157 exit 1
23158 fi
23159
23160
23161
23162 # as_fn_error STATUS ERROR [LINENO LOG_FD]
23163 # ----------------------------------------
23164 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
23165 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
23166 # script with STATUS, using 1 if that was 0.
23167 as_fn_error ()
23168 {
23169 as_status=$1; test $as_status -eq 0 && as_status=1
23170 if test "$4"; then
23171 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
23172 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
23173 fi
23174 printf "%s\n" "$as_me: error: $2" >&2
23175 as_fn_exit $as_status
23176 } # as_fn_error
23177
23178
23179
23180 # as_fn_set_status STATUS
23181 # -----------------------
23182 # Set $? to STATUS, without forking.
23183 as_fn_set_status ()
23184 {
23185 return $1
23186 } # as_fn_set_status
23187
23188 # as_fn_exit STATUS
23189 # -----------------
23190 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
23191 as_fn_exit ()
23192 {
23193 set +e
23194 as_fn_set_status $1
23195 exit $1
23196 } # as_fn_exit
23197
23198 # as_fn_unset VAR
23199 # ---------------
23200 # Portably unset VAR.
23201 as_fn_unset ()
23202 {
23203 { eval $1=; unset $1;}
23204 }
23205 as_unset=as_fn_unset
23206
23207 # as_fn_append VAR VALUE
23208 # ----------------------
23209 # Append the text in VALUE to the end of the definition contained in VAR. Take
23210 # advantage of any shell optimizations that allow amortized linear growth over
23211 # repeated appends, instead of the typical quadratic growth present in naive
23212 # implementations.
23213 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
23214 then :
23215 eval 'as_fn_append ()
23216 {
23217 eval $1+=\$2
23218 }'
23219 else $as_nop
23220 as_fn_append ()
23221 {
23222 eval $1=\$$1\$2
23223 }
23224 fi # as_fn_append
23225
23226 # as_fn_arith ARG...
23227 # ------------------
23228 # Perform arithmetic evaluation on the ARGs, and store the result in the
23229 # global $as_val. Take advantage of shells that can avoid forks. The arguments
23230 # must be portable across $(()) and expr.
23231 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
23232 then :
23233 eval 'as_fn_arith ()
23234 {
23235 as_val=$(( $* ))
23236 }'
23237 else $as_nop
23238 as_fn_arith ()
23239 {
23240 as_val=`expr "$@" || test $? -eq 1`
23241 }
23242 fi # as_fn_arith
23243
23244
23245 if expr a : '\(a\)' >/dev/null 2>&1 &&
23246 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23247 as_expr=expr
23248 else
23249 as_expr=false
23250 fi
23251
23252 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23253 as_basename=basename
23254 else
23255 as_basename=false
23256 fi
23257
23258 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23259 as_dirname=dirname
23260 else
23261 as_dirname=false
23262 fi
23263
23264 as_me=`$as_basename -- "$0" ||
23265 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23266 X"$0" : 'X\(//\)$' \| \
23267 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23268 printf "%s\n" X/"$0" |
23269 sed '/^.*\/\([^/][^/]*\)\/*$/{
23270 s//\1/
23271 q
23272 }
23273 /^X\/\(\/\/\)$/{
23274 s//\1/
23275 q
23276 }
23277 /^X\/\(\/\).*/{
23278 s//\1/
23279 q
23280 }
23281 s/.*/./; q'`
23282
23283 # Avoid depending upon Character Ranges.
23284 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23285 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23286 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23287 as_cr_digits='0123456789'
23288 as_cr_alnum=$as_cr_Letters$as_cr_digits
23289
23290
23291 # Determine whether it's possible to make 'echo' print without a newline.
23292 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
23293 # for compatibility with existing Makefiles.
23294 ECHO_C= ECHO_N= ECHO_T=
23295 case `echo -n x` in #(((((
23296 -n*)
23297 case `echo 'xy\c'` in
23298 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23299 xy) ECHO_C='\c';;
23300 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
23301 ECHO_T=' ';;
23302 esac;;
23303 *)
23304 ECHO_N='-n';;
23305 esac
23306
23307 # For backward compatibility with old third-party macros, we provide
23308 # the shell variables $as_echo and $as_echo_n. New code should use
23309 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
23310 as_echo='printf %s\n'
23311 as_echo_n='printf %s'
23312
23313 rm -f conf$$ conf$$.exe conf$$.file
23314 if test -d conf$$.dir; then
23315 rm -f conf$$.dir/conf$$.file
23316 else
23317 rm -f conf$$.dir
23318 mkdir conf$$.dir 2>/dev/null
23319 fi
23320 if (echo >conf$$.file) 2>/dev/null; then
23321 if ln -s conf$$.file conf$$ 2>/dev/null; then
23322 as_ln_s='ln -s'
23323 # ... but there are two gotchas:
23324 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23325 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23326 # In both cases, we have to default to `cp -pR'.
23327 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23328 as_ln_s='cp -pR'
23329 elif ln conf$$.file conf$$ 2>/dev/null; then
23330 as_ln_s=ln
23331 else
23332 as_ln_s='cp -pR'
23333 fi
23334 else
23335 as_ln_s='cp -pR'
23336 fi
23337 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23338 rmdir conf$$.dir 2>/dev/null
23339
23340
23341 # as_fn_mkdir_p
23342 # -------------
23343 # Create "$as_dir" as a directory, including parents if necessary.
23344 as_fn_mkdir_p ()
23345 {
23346
23347 case $as_dir in #(
23348 -*) as_dir=./$as_dir;;
23349 esac
23350 test -d "$as_dir" || eval $as_mkdir_p || {
23351 as_dirs=
23352 while :; do
23353 case $as_dir in #(
23354 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
23355 *) as_qdir=$as_dir;;
23356 esac
23357 as_dirs="'$as_qdir' $as_dirs"
23358 as_dir=`$as_dirname -- "$as_dir" ||
23359 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23360 X"$as_dir" : 'X\(//\)[^/]' \| \
23361 X"$as_dir" : 'X\(//\)$' \| \
23362 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23363 printf "%s\n" X"$as_dir" |
23364 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23365 s//\1/
23366 q
23367 }
23368 /^X\(\/\/\)[^/].*/{
23369 s//\1/
23370 q
23371 }
23372 /^X\(\/\/\)$/{
23373 s//\1/
23374 q
23375 }
23376 /^X\(\/\).*/{
23377 s//\1/
23378 q
23379 }
23380 s/.*/./; q'`
23381 test -d "$as_dir" && break
23382 done
23383 test -z "$as_dirs" || eval "mkdir $as_dirs"
23384 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
23385
23386
23387 } # as_fn_mkdir_p
23388 if mkdir -p . 2>/dev/null; then
23389 as_mkdir_p='mkdir -p "$as_dir"'
23390 else
23391 test -d ./-p && rmdir ./-p
23392 as_mkdir_p=false
23393 fi
23394
23395
23396 # as_fn_executable_p FILE
23397 # -----------------------
23398 # Test if FILE is an executable regular file.
23399 as_fn_executable_p ()
23400 {
23401 test -f "$1" && test -x "$1"
23402 } # as_fn_executable_p
23403 as_test_x='test -x'
23404 as_executable_p=as_fn_executable_p
23405
23406 # Sed expression to map a string onto a valid CPP name.
23407 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23408
23409 # Sed expression to map a string onto a valid variable name.
23410 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23411
23412
23413 exec 6>&1
23414 ## ----------------------------------- ##
23415 ## Main body of $CONFIG_STATUS script. ##
23416 ## ----------------------------------- ##
23417 _ASEOF
23418 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23419
23420 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23421 # Save the log message, to keep $0 and so on meaningful, and to
23422 # report actual input values of CONFIG_FILES etc. instead of their
23423 # values after options handling.
23424 ac_log="
23425 This file was extended by GNU cflow $as_me 1.8, which was
23426 generated by GNU Autoconf 2.71. Invocation command line was
23427
23428 CONFIG_FILES = $CONFIG_FILES
23429 CONFIG_HEADERS = $CONFIG_HEADERS
23430 CONFIG_LINKS = $CONFIG_LINKS
23431 CONFIG_COMMANDS = $CONFIG_COMMANDS
23432 $ $0 $@
23433
23434 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23435 "
23436
23437 _ACEOF
23438
23439 case $ac_config_files in *"
23440 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23441 esac
23442
23443 case $ac_config_headers in *"
23444 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23445 esac
23446
23447
23448 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23449 # Files that config.status was made for.
23450 config_files="$ac_config_files"
23451 config_headers="$ac_config_headers"
23452 config_commands="$ac_config_commands"
23453
23454 _ACEOF
23455
23456 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23457 ac_cs_usage="\
23458 \`$as_me' instantiates files and other configuration actions
23459 from templates according to the current configuration. Unless the files
23460 and actions are specified as TAGs, all are instantiated by default.
23461
23462 Usage: $0 [OPTION]... [TAG]...
23463
23464 -h, --help print this help, then exit
23465 -V, --version print version number and configuration settings, then exit
23466 --config print configuration, then exit
23467 -q, --quiet, --silent
23468 do not print progress messages
23469 -d, --debug don't remove temporary files
23470 --recheck update $as_me by reconfiguring in the same conditions
23471 --file=FILE[:TEMPLATE]
23472 instantiate the configuration file FILE
23473 --header=FILE[:TEMPLATE]
23474 instantiate the configuration header FILE
23475
23476 Configuration files:
23477 $config_files
23478
23479 Configuration headers:
23480 $config_headers
23481
23482 Configuration commands:
23483 $config_commands
23484
23485 Report bugs to <[email protected]>.
23486 GNU cflow home page: <http://www.gnu.org/software/cflow>.
23487 General help using GNU software: <https://www.gnu.org/gethelp/>."
23488
23489 _ACEOF
23490 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
23491 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
23492 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23493 ac_cs_config='$ac_cs_config_escaped'
23494 ac_cs_version="\\
23495 GNU cflow config.status 1.8
23496 configured by $0, generated by GNU Autoconf 2.71,
23497 with options \\"\$ac_cs_config\\"
23498
23499 Copyright (C) 2021 Free Software Foundation, Inc.
23500 This config.status script is free software; the Free Software Foundation
23501 gives unlimited permission to copy, distribute and modify it."
23502
23503 ac_pwd='$ac_pwd'
23504 srcdir='$srcdir'
23505 INSTALL='$INSTALL'
23506 MKDIR_P='$MKDIR_P'
23507 AWK='$AWK'
23508 test -n "\$AWK" || AWK=awk
23509 _ACEOF
23510
23511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23512 # The default lists apply if the user does not specify any file.
23513 ac_need_defaults=:
23514 while test $# != 0
23515 do
23516 case $1 in
23517 --*=?*)
23518 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23519 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23520 ac_shift=:
23521 ;;
23522 --*=)
23523 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23524 ac_optarg=
23525 ac_shift=:
23526 ;;
23527 *)
23528 ac_option=$1
23529 ac_optarg=$2
23530 ac_shift=shift
23531 ;;
23532 esac
23533
23534 case $ac_option in
23535 # Handling of the options.
23536 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23537 ac_cs_recheck=: ;;
23538 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23539 printf "%s\n" "$ac_cs_version"; exit ;;
23540 --config | --confi | --conf | --con | --co | --c )
23541 printf "%s\n" "$ac_cs_config"; exit ;;
23542 --debug | --debu | --deb | --de | --d | -d )
23543 debug=: ;;
23544 --file | --fil | --fi | --f )
23545 $ac_shift
23546 case $ac_optarg in
23547 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23548 '') as_fn_error $? "missing file argument" ;;
23549 esac
23550 as_fn_append CONFIG_FILES " '$ac_optarg'"
23551 ac_need_defaults=false;;
23552 --header | --heade | --head | --hea )
23553 $ac_shift
23554 case $ac_optarg in
23555 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23556 esac
23557 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23558 ac_need_defaults=false;;
23559 --he | --h)
23560 # Conflict between --help and --header
23561 as_fn_error $? "ambiguous option: \`$1'
23562 Try \`$0 --help' for more information.";;
23563 --help | --hel | -h )
23564 printf "%s\n" "$ac_cs_usage"; exit ;;
23565 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23566 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23567 ac_cs_silent=: ;;
23568
23569 # This is an error.
23570 -*) as_fn_error $? "unrecognized option: \`$1'
23571 Try \`$0 --help' for more information." ;;
23572
23573 *) as_fn_append ac_config_targets " $1"
23574 ac_need_defaults=false ;;
23575
23576 esac
23577 shift
23578 done
23579
23580 ac_configure_extra_args=
23581
23582 if $ac_cs_silent; then
23583 exec 6>/dev/null
23584 ac_configure_extra_args="$ac_configure_extra_args --silent"
23585 fi
23586
23587 _ACEOF
23588 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23589 if \$ac_cs_recheck; then
23590 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23591 shift
23592 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
23593 CONFIG_SHELL='$SHELL'
23594 export CONFIG_SHELL
23595 exec "\$@"
23596 fi
23597
23598 _ACEOF
23599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23600 exec 5>>config.log
23601 {
23602 echo
23603 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23604 ## Running $as_me. ##
23605 _ASBOX
23606 printf "%s\n" "$ac_log"
23607 } >&5
23608
23609 _ACEOF
23610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23611 #
23612 # INIT-COMMANDS
23613 #
23614 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
23615 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
23616 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
23617 # from automake < 1.5.
23618 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
23619 # Capture the value of LINGUAS because we need it to compute CATALOGS.
23620 LINGUAS="${LINGUAS-%UNSET%}"
23621
23622 ac_cv_exeext="$ac_cv_exeext"
23623
23624
23625 _ACEOF
23626
23627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23628
23629 # Handling of arguments.
23630 for ac_config_target in $ac_config_targets
23631 do
23632 case $ac_config_target in
23633 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23634 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23635 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
23636 "doc/imprimatur/Makefile") CONFIG_FILES="$CONFIG_FILES doc/imprimatur/Makefile" ;;
23637 "tests/atconfig") CONFIG_COMMANDS="$CONFIG_COMMANDS tests/atconfig" ;;
23638 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
23639 "tests/atlocal") CONFIG_FILES="$CONFIG_FILES tests/atlocal" ;;
23640 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23641 "gnu/Makefile") CONFIG_FILES="$CONFIG_FILES gnu/Makefile" ;;
23642 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23643 "elisp/Makefile") CONFIG_FILES="$CONFIG_FILES elisp/Makefile" ;;
23644 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
23645 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23646
23647 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23648 esac
23649 done
23650
23651
23652 # If the user did not use the arguments to specify the items to instantiate,
23653 # then the envvar interface is used. Set only those that are not.
23654 # We use the long form for the default assignment because of an extremely
23655 # bizarre bug on SunOS 4.1.3.
23656 if $ac_need_defaults; then
23657 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
23658 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
23659 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
23660 fi
23661
23662 # Have a temporary directory for convenience. Make it in the build tree
23663 # simply because there is no reason against having it here, and in addition,
23664 # creating and moving files from /tmp can sometimes cause problems.
23665 # Hook for its removal unless debugging.
23666 # Note that there is a small window in which the directory will not be cleaned:
23667 # after its creation but before its name has been assigned to `$tmp'.
23668 $debug ||
23669 {
23670 tmp= ac_tmp=
23671 trap 'exit_status=$?
23672 : "${ac_tmp:=$tmp}"
23673 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23674 ' 0
23675 trap 'as_fn_exit 1' 1 2 13 15
23676 }
23677 # Create a (secure) tmp directory for tmp files.
23678
23679 {
23680 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23681 test -d "$tmp"
23682 } ||
23683 {
23684 tmp=./conf$$-$RANDOM
23685 (umask 077 && mkdir "$tmp")
23686 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23687 ac_tmp=$tmp
23688
23689 # Set up the scripts for CONFIG_FILES section.
23690 # No need to generate them if there are no CONFIG_FILES.
23691 # This happens for instance with `./config.status config.h'.
23692 if test -n "$CONFIG_FILES"; then
23693
23694
23695 ac_cr=`echo X | tr X '\015'`
23696 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23697 # But we know of no other shell where ac_cr would be empty at this
23698 # point, so we can use a bashism as a fallback.
23699 if test "x$ac_cr" = x; then
23700 eval ac_cr=\$\'\\r\'
23701 fi
23702 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23703 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23704 ac_cs_awk_cr='\\r'
23705 else
23706 ac_cs_awk_cr=$ac_cr
23707 fi
23708
23709 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23710 _ACEOF
23711
23712
23713 {
23714 echo "cat >conf$$subs.awk <<_ACEOF" &&
23715 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23716 echo "_ACEOF"
23717 } >conf$$subs.sh ||
23718 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23719 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23720 ac_delim='%!_!# '
23721 for ac_last_try in false false false false false :; do
23722 . ./conf$$subs.sh ||
23723 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23724
23725 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23726 if test $ac_delim_n = $ac_delim_num; then
23727 break
23728 elif $ac_last_try; then
23729 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23730 else
23731 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23732 fi
23733 done
23734 rm -f conf$$subs.sh
23735
23736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23737 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23738 _ACEOF
23739 sed -n '
23740 h
23741 s/^/S["/; s/!.*/"]=/
23742 p
23743 g
23744 s/^[^!]*!//
23745 :repl
23746 t repl
23747 s/'"$ac_delim"'$//
23748 t delim
23749 :nl
23750 h
23751 s/\(.\{148\}\)..*/\1/
23752 t more1
23753 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23754 p
23755 n
23756 b repl
23757 :more1
23758 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23759 p
23760 g
23761 s/.\{148\}//
23762 t nl
23763 :delim
23764 h
23765 s/\(.\{148\}\)..*/\1/
23766 t more2
23767 s/["\\]/\\&/g; s/^/"/; s/$/"/
23768 p
23769 b
23770 :more2
23771 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23772 p
23773 g
23774 s/.\{148\}//
23775 t delim
23776 ' <conf$$subs.awk | sed '
23777 /^[^""]/{
23778 N
23779 s/\n//
23780 }
23781 ' >>$CONFIG_STATUS || ac_write_fail=1
23782 rm -f conf$$subs.awk
23783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23784 _ACAWK
23785 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23786 for (key in S) S_is_set[key] = 1
23787 FS = ""
23788
23789 }
23790 {
23791 line = $ 0
23792 nfields = split(line, field, "@")
23793 substed = 0
23794 len = length(field[1])
23795 for (i = 2; i < nfields; i++) {
23796 key = field[i]
23797 keylen = length(key)
23798 if (S_is_set[key]) {
23799 value = S[key]
23800 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23801 len += length(value) + length(field[++i])
23802 substed = 1
23803 } else
23804 len += 1 + keylen
23805 }
23806
23807 print line
23808 }
23809
23810 _ACAWK
23811 _ACEOF
23812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23813 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23814 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23815 else
23816 cat
23817 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23818 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23819 _ACEOF
23820
23821 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23822 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23823 # trailing colons and then remove the whole line if VPATH becomes empty
23824 # (actually we leave an empty line to preserve line numbers).
23825 if test "x$srcdir" = x.; then
23826 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23827 h
23828 s///
23829 s/^/:/
23830 s/[ ]*$/:/
23831 s/:\$(srcdir):/:/g
23832 s/:\${srcdir}:/:/g
23833 s/:@srcdir@:/:/g
23834 s/^:*//
23835 s/:*$//
23836 x
23837 s/\(=[ ]*\).*/\1/
23838 G
23839 s/\n//
23840 s/^[^=]*=[ ]*$//
23841 }'
23842 fi
23843
23844 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23845 fi # test -n "$CONFIG_FILES"
23846
23847 # Set up the scripts for CONFIG_HEADERS section.
23848 # No need to generate them if there are no CONFIG_HEADERS.
23849 # This happens for instance with `./config.status Makefile'.
23850 if test -n "$CONFIG_HEADERS"; then
23851 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23852 BEGIN {
23853 _ACEOF
23854
23855 # Transform confdefs.h into an awk script `defines.awk', embedded as
23856 # here-document in config.status, that substitutes the proper values into
23857 # config.h.in to produce config.h.
23858
23859 # Create a delimiter string that does not exist in confdefs.h, to ease
23860 # handling of long lines.
23861 ac_delim='%!_!# '
23862 for ac_last_try in false false :; do
23863 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23864 if test -z "$ac_tt"; then
23865 break
23866 elif $ac_last_try; then
23867 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23868 else
23869 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23870 fi
23871 done
23872
23873 # For the awk script, D is an array of macro values keyed by name,
23874 # likewise P contains macro parameters if any. Preserve backslash
23875 # newline sequences.
23876
23877 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23878 sed -n '
23879 s/.\{148\}/&'"$ac_delim"'/g
23880 t rset
23881 :rset
23882 s/^[ ]*#[ ]*define[ ][ ]*/ /
23883 t def
23884 d
23885 :def
23886 s/\\$//
23887 t bsnl
23888 s/["\\]/\\&/g
23889 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23890 D["\1"]=" \3"/p
23891 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23892 d
23893 :bsnl
23894 s/["\\]/\\&/g
23895 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23896 D["\1"]=" \3\\\\\\n"\\/p
23897 t cont
23898 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23899 t cont
23900 d
23901 :cont
23902 n
23903 s/.\{148\}/&'"$ac_delim"'/g
23904 t clear
23905 :clear
23906 s/\\$//
23907 t bsnlc
23908 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23909 d
23910 :bsnlc
23911 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23912 b cont
23913 ' <confdefs.h | sed '
23914 s/'"$ac_delim"'/"\\\
23915 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23916
23917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23918 for (key in D) D_is_set[key] = 1
23919 FS = ""
23920 }
23921 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23922 line = \$ 0
23923 split(line, arg, " ")
23924 if (arg[1] == "#") {
23925 defundef = arg[2]
23926 mac1 = arg[3]
23927 } else {
23928 defundef = substr(arg[1], 2)
23929 mac1 = arg[2]
23930 }
23931 split(mac1, mac2, "(") #)
23932 macro = mac2[1]
23933 prefix = substr(line, 1, index(line, defundef) - 1)
23934 if (D_is_set[macro]) {
23935 # Preserve the white space surrounding the "#".
23936 print prefix "define", macro P[macro] D[macro]
23937 next
23938 } else {
23939 # Replace #undef with comments. This is necessary, for example,
23940 # in the case of _POSIX_SOURCE, which is predefined and required
23941 # on some systems where configure will not decide to define it.
23942 if (defundef == "undef") {
23943 print "/*", prefix defundef, macro, "*/"
23944 next
23945 }
23946 }
23947 }
23948 { print }
23949 _ACAWK
23950 _ACEOF
23951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23952 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23953 fi # test -n "$CONFIG_HEADERS"
23954
23955
23956 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23957 shift
23958 for ac_tag
23959 do
23960 case $ac_tag in
23961 :[FHLC]) ac_mode=$ac_tag; continue;;
23962 esac
23963 case $ac_mode$ac_tag in
23964 :[FHL]*:*);;
23965 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23966 :[FH]-) ac_tag=-:-;;
23967 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23968 esac
23969 ac_save_IFS=$IFS
23970 IFS=:
23971 set x $ac_tag
23972 IFS=$ac_save_IFS
23973 shift
23974 ac_file=$1
23975 shift
23976
23977 case $ac_mode in
23978 :L) ac_source=$1;;
23979 :[FH])
23980 ac_file_inputs=
23981 for ac_f
23982 do
23983 case $ac_f in
23984 -) ac_f="$ac_tmp/stdin";;
23985 *) # Look for the file first in the build tree, then in the source tree
23986 # (if the path is not absolute). The absolute path cannot be DOS-style,
23987 # because $ac_f cannot contain `:'.
23988 test -f "$ac_f" ||
23989 case $ac_f in
23990 [\\/$]*) false;;
23991 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23992 esac ||
23993 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23994 esac
23995 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23996 as_fn_append ac_file_inputs " '$ac_f'"
23997 done
23998
23999 # Let's still pretend it is `configure' which instantiates (i.e., don't
24000 # use $as_me), people would be surprised to read:
24001 # /* config.h. Generated by config.status. */
24002 configure_input='Generated from '`
24003 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
24004 `' by configure.'
24005 if test x"$ac_file" != x-; then
24006 configure_input="$ac_file. $configure_input"
24007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
24008 printf "%s\n" "$as_me: creating $ac_file" >&6;}
24009 fi
24010 # Neutralize special characters interpreted by sed in replacement strings.
24011 case $configure_input in #(
24012 *\&* | *\|* | *\\* )
24013 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
24014 sed 's/[\\\\&|]/\\\\&/g'`;; #(
24015 *) ac_sed_conf_input=$configure_input;;
24016 esac
24017
24018 case $ac_tag in
24019 *:-:* | *:-) cat >"$ac_tmp/stdin" \
24020 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
24021 esac
24022 ;;
24023 esac
24024
24025 ac_dir=`$as_dirname -- "$ac_file" ||
24026 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24027 X"$ac_file" : 'X\(//\)[^/]' \| \
24028 X"$ac_file" : 'X\(//\)$' \| \
24029 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24030 printf "%s\n" X"$ac_file" |
24031 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24032 s//\1/
24033 q
24034 }
24035 /^X\(\/\/\)[^/].*/{
24036 s//\1/
24037 q
24038 }
24039 /^X\(\/\/\)$/{
24040 s//\1/
24041 q
24042 }
24043 /^X\(\/\).*/{
24044 s//\1/
24045 q
24046 }
24047 s/.*/./; q'`
24048 as_dir="$ac_dir"; as_fn_mkdir_p
24049 ac_builddir=.
24050
24051 case "$ac_dir" in
24052 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24053 *)
24054 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
24055 # A ".." for each directory in $ac_dir_suffix.
24056 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24057 case $ac_top_builddir_sub in
24058 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24059 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24060 esac ;;
24061 esac
24062 ac_abs_top_builddir=$ac_pwd
24063 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24064 # for backward compatibility:
24065 ac_top_builddir=$ac_top_build_prefix
24066
24067 case $srcdir in
24068 .) # We are building in place.
24069 ac_srcdir=.
24070 ac_top_srcdir=$ac_top_builddir_sub
24071 ac_abs_top_srcdir=$ac_pwd ;;
24072 [\\/]* | ?:[\\/]* ) # Absolute name.
24073 ac_srcdir=$srcdir$ac_dir_suffix;
24074 ac_top_srcdir=$srcdir
24075 ac_abs_top_srcdir=$srcdir ;;
24076 *) # Relative name.
24077 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24078 ac_top_srcdir=$ac_top_build_prefix$srcdir
24079 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24080 esac
24081 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24082
24083
24084 case $ac_mode in
24085 :F)
24086 #
24087 # CONFIG_FILE
24088 #
24089
24090 case $INSTALL in
24091 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24092 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24093 esac
24094 ac_MKDIR_P=$MKDIR_P
24095 case $MKDIR_P in
24096 [\\/$]* | ?:[\\/]* ) ;;
24097 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24098 esac
24099 _ACEOF
24100
24101 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24102 # If the template does not know about datarootdir, expand it.
24103 # FIXME: This hack should be removed a few years after 2.60.
24104 ac_datarootdir_hack=; ac_datarootdir_seen=
24105 ac_sed_dataroot='
24106 /datarootdir/ {
24107 p
24108 q
24109 }
24110 /@datadir@/p
24111 /@docdir@/p
24112 /@infodir@/p
24113 /@localedir@/p
24114 /@mandir@/p'
24115 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24116 *datarootdir*) ac_datarootdir_seen=yes;;
24117 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24119 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24120 _ACEOF
24121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24122 ac_datarootdir_hack='
24123 s&@datadir@&$datadir&g
24124 s&@docdir@&$docdir&g
24125 s&@infodir@&$infodir&g
24126 s&@localedir@&$localedir&g
24127 s&@mandir@&$mandir&g
24128 s&\\\${datarootdir}&$datarootdir&g' ;;
24129 esac
24130 _ACEOF
24131
24132 # Neutralize VPATH when `$srcdir' = `.'.
24133 # Shell code in configure.ac might set extrasub.
24134 # FIXME: do we really want to maintain this feature?
24135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24136 ac_sed_extra="$ac_vpsub
24137 $extrasub
24138 _ACEOF
24139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24140 :t
24141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24142 s|@configure_input@|$ac_sed_conf_input|;t t
24143 s&@top_builddir@&$ac_top_builddir_sub&;t t
24144 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24145 s&@srcdir@&$ac_srcdir&;t t
24146 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24147 s&@top_srcdir@&$ac_top_srcdir&;t t
24148 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24149 s&@builddir@&$ac_builddir&;t t
24150 s&@abs_builddir@&$ac_abs_builddir&;t t
24151 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24152 s&@INSTALL@&$ac_INSTALL&;t t
24153 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24154 $ac_datarootdir_hack
24155 "
24156 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24157 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24158
24159 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24160 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24161 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24162 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24164 which seems to be undefined. Please make sure it is defined" >&5
24165 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24166 which seems to be undefined. Please make sure it is defined" >&2;}
24167
24168 rm -f "$ac_tmp/stdin"
24169 case $ac_file in
24170 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24171 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24172 esac \
24173 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24174 ;;
24175 :H)
24176 #
24177 # CONFIG_HEADER
24178 #
24179 if test x"$ac_file" != x-; then
24180 {
24181 printf "%s\n" "/* $configure_input */" >&1 \
24182 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24183 } >"$ac_tmp/config.h" \
24184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24185 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24187 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
24188 else
24189 rm -f "$ac_file"
24190 mv "$ac_tmp/config.h" "$ac_file" \
24191 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24192 fi
24193 else
24194 printf "%s\n" "/* $configure_input */" >&1 \
24195 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24196 || as_fn_error $? "could not create -" "$LINENO" 5
24197 fi
24198 # Compute "$ac_file"'s index in $config_headers.
24199 _am_arg="$ac_file"
24200 _am_stamp_count=1
24201 for _am_header in $config_headers :; do
24202 case $_am_header in
24203 $_am_arg | $_am_arg:* )
24204 break ;;
24205 * )
24206 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24207 esac
24208 done
24209 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24210 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24211 X"$_am_arg" : 'X\(//\)[^/]' \| \
24212 X"$_am_arg" : 'X\(//\)$' \| \
24213 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24214 printf "%s\n" X"$_am_arg" |
24215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24216 s//\1/
24217 q
24218 }
24219 /^X\(\/\/\)[^/].*/{
24220 s//\1/
24221 q
24222 }
24223 /^X\(\/\/\)$/{
24224 s//\1/
24225 q
24226 }
24227 /^X\(\/\).*/{
24228 s//\1/
24229 q
24230 }
24231 s/.*/./; q'`/stamp-h$_am_stamp_count
24232 ;;
24233
24234 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24235 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
24236 ;;
24237 esac
24238
24239
24240 case $ac_file$ac_mode in
24241 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24242 # Older Autoconf quotes --file arguments for eval, but not when files
24243 # are listed without --file. Let's play safe and only enable the eval
24244 # if we detect the quoting.
24245 # TODO: see whether this extra hack can be removed once we start
24246 # requiring Autoconf 2.70 or later.
24247 case $CONFIG_FILES in #(
24248 *\'*) :
24249 eval set x "$CONFIG_FILES" ;; #(
24250 *) :
24251 set x $CONFIG_FILES ;; #(
24252 *) :
24253 ;;
24254 esac
24255 shift
24256 # Used to flag and report bootstrapping failures.
24257 am_rc=0
24258 for am_mf
24259 do
24260 # Strip MF so we end up with the name of the file.
24261 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
24262 # Check whether this is an Automake generated Makefile which includes
24263 # dependency-tracking related rules and includes.
24264 # Grep'ing the whole file directly is not great: AIX grep has a line
24265 # limit of 2048, but all sed's we know have understand at least 4000.
24266 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
24267 || continue
24268 am_dirpart=`$as_dirname -- "$am_mf" ||
24269 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24270 X"$am_mf" : 'X\(//\)[^/]' \| \
24271 X"$am_mf" : 'X\(//\)$' \| \
24272 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24273 printf "%s\n" X"$am_mf" |
24274 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24275 s//\1/
24276 q
24277 }
24278 /^X\(\/\/\)[^/].*/{
24279 s//\1/
24280 q
24281 }
24282 /^X\(\/\/\)$/{
24283 s//\1/
24284 q
24285 }
24286 /^X\(\/\).*/{
24287 s//\1/
24288 q
24289 }
24290 s/.*/./; q'`
24291 am_filepart=`$as_basename -- "$am_mf" ||
24292 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
24293 X"$am_mf" : 'X\(//\)$' \| \
24294 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
24295 printf "%s\n" X/"$am_mf" |
24296 sed '/^.*\/\([^/][^/]*\)\/*$/{
24297 s//\1/
24298 q
24299 }
24300 /^X\/\(\/\/\)$/{
24301 s//\1/
24302 q
24303 }
24304 /^X\/\(\/\).*/{
24305 s//\1/
24306 q
24307 }
24308 s/.*/./; q'`
24309 { echo "$as_me:$LINENO: cd "$am_dirpart" \
24310 && sed -e '/# am--include-marker/d' "$am_filepart" \
24311 | $MAKE -f - am--depfiles" >&5
24312 (cd "$am_dirpart" \
24313 && sed -e '/# am--include-marker/d' "$am_filepart" \
24314 | $MAKE -f - am--depfiles) >&5 2>&5
24315 ac_status=$?
24316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24317 (exit $ac_status); } || am_rc=$?
24318 done
24319 if test $am_rc -ne 0; then
24320 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24321 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
24322 as_fn_error $? "Something went wrong bootstrapping makefile fragments
24323 for automatic dependency tracking. If GNU make was not used, consider
24324 re-running the configure script with MAKE=\"gmake\" (or whatever is
24325 necessary). You can also try re-running configure with the
24326 '--disable-dependency-tracking' option to at least be able to build
24327 the package (albeit without support for automatic dependency tracking).
24328 See \`config.log' for more details" "$LINENO" 5; }
24329 fi
24330 { am_dirpart=; unset am_dirpart;}
24331 { am_filepart=; unset am_filepart;}
24332 { am_mf=; unset am_mf;}
24333 { am_rc=; unset am_rc;}
24334 rm -f conftest-deps.mk
24335 }
24336 ;;
24337 "po-directories":C)
24338 for ac_file in $CONFIG_FILES; do
24339 # Support "outfile[:infile[:infile...]]"
24340 case "$ac_file" in
24341 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
24342 esac
24343 # PO directories have a Makefile.in generated from Makefile.in.in.
24344 case "$ac_file" in */Makefile.in)
24345 # Adjust a relative srcdir.
24346 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
24347 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
24348 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
24349 # In autoconf-2.13 it is called $ac_given_srcdir.
24350 # In autoconf-2.50 it is called $srcdir.
24351 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
24352 case "$ac_given_srcdir" in
24353 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
24354 /*) top_srcdir="$ac_given_srcdir" ;;
24355 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
24356 esac
24357 # Treat a directory as a PO directory if and only if it has a
24358 # POTFILES.in file. This allows packages to have multiple PO
24359 # directories under different names or in different locations.
24360 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
24361 rm -f "$ac_dir/POTFILES"
24362 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
24363 gt_tab=`printf '\t'`
24364 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
24365 POMAKEFILEDEPS="POTFILES.in"
24366 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
24367 # on $ac_dir but don't depend on user-specified configuration
24368 # parameters.
24369 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
24370 # The LINGUAS file contains the set of available languages.
24371 if test -n "$OBSOLETE_ALL_LINGUAS"; then
24372 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
24373 fi
24374 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
24375 # Hide the ALL_LINGUAS assignment from automake < 1.5.
24376 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
24377 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
24378 else
24379 # The set of available languages was given in configure.in.
24380 # Hide the ALL_LINGUAS assignment from automake < 1.5.
24381 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
24382 fi
24383 # Compute POFILES
24384 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
24385 # Compute UPDATEPOFILES
24386 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
24387 # Compute DUMMYPOFILES
24388 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
24389 # Compute GMOFILES
24390 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
24391 case "$ac_given_srcdir" in
24392 .) srcdirpre= ;;
24393 *) srcdirpre='$(srcdir)/' ;;
24394 esac
24395 POFILES=
24396 UPDATEPOFILES=
24397 DUMMYPOFILES=
24398 GMOFILES=
24399 for lang in $ALL_LINGUAS; do
24400 POFILES="$POFILES $srcdirpre$lang.po"
24401 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
24402 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
24403 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
24404 done
24405 # CATALOGS depends on both $ac_dir and the user's LINGUAS
24406 # environment variable.
24407 INST_LINGUAS=
24408 if test -n "$ALL_LINGUAS"; then
24409 for presentlang in $ALL_LINGUAS; do
24410 useit=no
24411 if test "%UNSET%" != "$LINGUAS"; then
24412 desiredlanguages="$LINGUAS"
24413 else
24414 desiredlanguages="$ALL_LINGUAS"
24415 fi
24416 for desiredlang in $desiredlanguages; do
24417 # Use the presentlang catalog if desiredlang is
24418 # a. equal to presentlang, or
24419 # b. a variant of presentlang (because in this case,
24420 # presentlang can be used as a fallback for messages
24421 # which are not translated in the desiredlang catalog).
24422 case "$desiredlang" in
24423 "$presentlang"*) useit=yes;;
24424 esac
24425 done
24426 if test $useit = yes; then
24427 INST_LINGUAS="$INST_LINGUAS $presentlang"
24428 fi
24429 done
24430 fi
24431 CATALOGS=
24432 if test -n "$INST_LINGUAS"; then
24433 for lang in $INST_LINGUAS; do
24434 CATALOGS="$CATALOGS $lang.gmo"
24435 done
24436 fi
24437 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
24438 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
24439 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
24440 if test -f "$f"; then
24441 case "$f" in
24442 *.orig | *.bak | *~) ;;
24443 *) cat "$f" >> "$ac_dir/Makefile" ;;
24444 esac
24445 fi
24446 done
24447 fi
24448 ;;
24449 esac
24450 done ;;
24451 "tests/atconfig":C) cat >tests/atconfig <<ATEOF
24452 # Configurable variable values for building test suites.
24453 # Generated by $0.
24454 # Copyright (C) 2021 Free Software Foundation, Inc.
24455
24456 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
24457 at_testdir='tests'
24458 abs_builddir='$ac_abs_builddir'
24459 at_srcdir='$ac_srcdir'
24460 abs_srcdir='$ac_abs_srcdir'
24461 at_top_srcdir='$ac_top_srcdir'
24462 abs_top_srcdir='$ac_abs_top_srcdir'
24463 at_top_build_prefix='$ac_top_build_prefix'
24464 abs_top_builddir='$ac_abs_top_builddir'
24465
24466 # Backward compatibility with Autotest <= 2.59b:
24467 at_top_builddir=\$at_top_build_prefix
24468
24469
24470 EXEEXT='$ac_cv_exeext'
24471 AUTOTEST_PATH='tests'
24472
24473 SHELL=\${CONFIG_SHELL-'$SHELL'}
24474 ATEOF
24475 ;;
24476
24477 esac
24478 done # for ac_tag
24479
24480
24481 as_fn_exit 0
24482 _ACEOF
24483 ac_clean_files=$ac_clean_files_save
24484
24485 test $ac_write_fail = 0 ||
24486 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24487
24488
24489 # configure is writing to config.log, and then calls config.status.
24490 # config.status does its own redirection, appending to config.log.
24491 # Unfortunately, on DOS this fails, as config.log is still kept open
24492 # by configure, so config.status won't be able to write to it; its
24493 # output is simply discarded. So we exec the FD to /dev/null,
24494 # effectively closing config.log, so it can be properly (re)opened and
24495 # appended to by config.status. When coming back to configure, we
24496 # need to make the FD available again.
24497 if test "$no_create" != yes; then
24498 ac_cs_success=:
24499 ac_config_status_args=
24500 test "$silent" = yes &&
24501 ac_config_status_args="$ac_config_status_args --quiet"
24502 exec 5>/dev/null
24503 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24504 exec 5>>config.log
24505 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24506 # would make configure fail if this is the last instruction.
24507 $ac_cs_success || as_fn_exit 1
24508 fi
24509 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24511 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24512 fi
24513
24514